OSDN Git Service

make TS_BLOCK a substructure of TS_BASE
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
2
3         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
4         TS_BASE instead of TS_COMMON.
5         (find_decls_types_r): Check for TS_TYPED structure before looking at
6         TREE_TYPE.
7         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
8         Add chain field.
9         (BLOCK_CHAIN): Use new chain field.
10
11 2011-05-26  Pat Haugen <pthaugen@us.ibm.com>
12
13         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
14         moves expensive on Power7 also.
15
16 2011-05-26  Richard Guenther  <rguenther@suse.de>
17
18         * fold-const.c (fold_unary_loc): Remove bogus code.
19
20 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
21
22         * tree.h (struct tree_identifier): Inherit from tree_typed, not
23         tree_common.
24         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
25         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
26         TS_BASE instead of TS_COMMON.
27         * varasm.c (assemble_name): Remove assert.
28
29 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
30
31         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
32         substituted first.
33         * libgcc-std.ver: Delete file.
34
35 2011-05-26  Richard Guenther  <rguenther@suse.de>
36
37         PR tree-optimization/48702
38         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
39         only when we know the base address is within bounds.
40         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
41         assume the base address of TARGET_MEM_REFs is in bounds.
42
43 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
44
45         PR target/49099
46         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
47         declaration in TARGET_SOLARIS.
48
49 2011-05-26  Hariharan Sandanagobalane <hariharan@picochip.com>
50
51         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
52           The instruction is then expanded explicitly.
53         (supported_compare): Callable instruction.
54         (compare): Likewise.
55
56 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
57
58         PR c++/49165
59         * gimplify.c (shortcut_cond_r): Don't special case
60         COND_EXPRs if they have void type on one of their arms.
61
62 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
63
64         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
65         to reduce duplication, and to achieve a slightly more logical order
66         of operations.
67
68 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
69
70         PR tree-optimization/49161
71         * tree-vrp.c (struct case_info): New type.
72         (compare_case_labels): Sort case_info structs instead of
73         trees, and not primarily by CASE_LABEL uids but by
74         label_for_block indexes.
75         (find_switch_asserts): Put case labels into struct case_info
76         array instead of TREE_VEC, adjust sorting, compare label_for_block
77         values instead of CASE_LABELs.
78
79 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
80
81         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
82         ("orndi3_neon"): Likewise.
83         ("bic<mode>3_neon"): Likewise.
84
85 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
86
87         PR tree-optimization/49038
88         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
89         Ensure at least one epilogue iteration if required by data
90         accesses with gaps.
91         * tree-vectorizer.h (struct _loop_vec_info): Add new field
92         to mark loops that require peeling for gaps.
93         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
94         (vect_get_known_peeling_cost): Take peeling for gaps into
95         account.
96         (vect_transform_loop): Generate epilogue if required by data
97         access with gaps.
98         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
99         loop as requiring an epilogue if there are gaps in the end of
100         the strided group.
101
102 2011-05-25  Ian Lance Taylor  <iant@google.com>
103
104         * godump.c (go_format_type): Output the first field with a usable
105         Go type, if any.
106
107 2011-05-25  Ian Lance Taylor  <iant@google.com>
108
109         * godump.c (go_format_type): Check for invalid type names, pointer
110         target types, and struct field types.
111
112 2011-05-25  Jason Merrill  <jason@redhat.com>
113
114         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
115
116 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
117
118         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
119
120 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
121
122         * config/i386/i386.md (*movqi_extv_1)): Put back
123         "register_operand" check in "type" calculation.
124         (*movqi_extzv_2): Likewise.
125
126 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
127
128         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
129
130 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
131
132         PR bootstrap/49160
133         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
134         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
135         __divxc3, __divtc3): Wrap definitions in #ifndef.
136
137 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
138
139         PR target/49142
140         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
141         "register_operand" check and replace q_regs_operand with
142         QIreg_operand in "type" calculation.
143         (*movqi_extv_1): Likewise.
144         (*movqi_extzv_2_rex64): Likewise.
145         (*movqi_extzv_2): Likewise.
146
147         * config/i386/predicates.md (QIreg_operand): New.
148
149 2011-05-25  Richard Guenther  <rguenther@suse.de>
150
151         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
152         type-based offset disambiguation, streamline MEM_REF and
153         TARGET_MEM_REF handling.
154
155 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
156
157         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
158         (bdesc_special_args): Add pause intrinsic.
159
160         * config/i386/i386.md (UNSPEC_PAUSE): New.
161         (pause): Likewise.
162         (*pause): Likewise.
163         * config/i386/ia32intrin.h (__pause): Likewise.
164
165         * doc/extend.texi (X86 Built-in Functions): Add documentation for
166         pause intrinsic.
167
168 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
169
170         PR tree-optimization/46728
171         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
172         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
173
174 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
175
176         * tree.h (struct tree_exp): Inherit from struct tree_typed.
177         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
178         instead of TS_COMMON.
179
180 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
181
182         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
183         LIBGCC2_GNU_PREFIX is defined.
184         (__N): New macro.
185         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
186         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
187         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
188         __clz_tab): Define using __N.
189         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
190         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
191         * target.def (libfunc_gnu_prefix): New hook.
192         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
193         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
194         * doc/tm.texi: Regenerate.
195         * system.h (LIBGCC2_GNU_PREFIX): Poison.
196         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
197         account.
198         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
199         (init_optabs): Likewise for the bswap libfuncs.
200         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
201         and divide.
202         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
203         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
204         * libgcc-std.ver: Remove.
205         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
206         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
207         libgcc-std.ver.
208         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
209         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
210         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
211         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
212         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
213         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
214         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
215         * config/fixed-bit.h (FIXED_OP): Define differently depending on
216         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
217         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
218
219 2011-05-25  Jan Hubicka  <jh@suse.cz>
220
221         * lto-streamer-out.c (output_record_start): Use lto_output_enum
222         (lto_output_tree): Use output_record_start.
223         * lto-streamer-in.c (input_record_start): Use lto_input_enum
224         (lto_get_pickled_tree): Use input_record_start.
225         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
226         (lto_value_range_error): New function.
227         * lto-streamer.h (lto_value_range_error): Declare.
228         (lto_output_int_in_range, lto_input_int_in_range): New functions.
229         (lto_output_enum, lto_input_enum): New macros.
230
231 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
232
233         * common.opt (flag_stack_usage_info): New variable.
234         (-Wstack-usage): New option.
235         * doc/invoke.texi (Warning options): Document -Wstack-usage.
236         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
237         <OPT_fstack_usage>: Likewise.
238         * toplev.c (output_stack_usage): Handle -Wstack-usage.
239         * calls.c (expand_call): Test flag_stack_usage_info variable instead
240         of flag_stack_usage.
241         (emit_library_call_value_1): Likewise.
242         * explow.c (allocate_dynamic_stack_space): Likewise.
243         * function.c (instantiate_virtual_regs ): Likewise.
244         (prepare_function_start): Likewise.
245         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
246         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
247         * config/arm/arm.c (arm_expand_prologue): Likewise.
248         (thumb1_expand_prologue): Likewise.
249         * config/avr/avr.c (expand_prologue): Likewise.
250         * config/i386/i386.c (ix86_expand_prologue): Likewise.
251         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
252         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
253         * config/mips/mips.c (mips_expand_prologue): Likewise.
254         * config/pa/pa.c (hppa_expand_prologue): Likewise.
255         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
256         * config/s390/s390.c (s390_emit_prologue): Likewise.
257         * config/sh/sh.c (sh_expand_prologue): Likewise.
258         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
259         * config/spu/spu.c (spu_expand_prologue): Likewise.
260
261 2011-05-25  Richard Guenther  <rguenther@suse.de>
262
263         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
264         (gimple_canonical_types_compatible_p): Likewise.
265
266 2011-05-25  Jan Hubicka  <jh@suse.cz>
267
268         PR middle-end/49062
269         * ipa.c (function_and_variable_visibility): Only add to same
270         comdat group list if DECL_ONE_ONLY.
271
272 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
273
274         PR rtl-optimization/49014
275         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
276
277 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
278
279         PR target/49128
280         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
281
282 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
283
284         PR rtl-optimization/48757
285         * ira-build.c (loop_with_eh_edge_p): Rename to
286         loop_with_complex_edge_p, check edges on complexity, make function
287         conditional.
288         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
289         conditional.
290
291 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
292
293         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
294         force flag_ira_share_save_slots to 0.
295
296 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
297
298         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
299         (vt_initialize): Set PROLOGUE_BB unconditionally.
300         Add block comment about CFA_BASE_RTX machinery.
301         Reset FP_CFA_OFFSET to -1 on all invalid paths.
302         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
303
304 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
305
306         PR objc/48187
307         * c-parser.c (c_parser_objc_class_instance_variables): More robust
308         parsing of syntax error in ObjC instance variable lists.  In
309         particular, avoid an infinite loop if there is a stray ']'.
310         Updated error message.
311
312 2011-05-24  Ian Lance Taylor  <iant@google.com>
313
314         * godump.c (go_define): Don't accept a string immediately after
315         another operand.
316
317 2011-05-24  Ian Lance Taylor  <iant@google.com>
318
319         * godump.c (struct godump_container): Add invalid_hash field.
320         (go_format_type): Return false if type is found in invalid_hash.
321         (go_output_typedef): Add invalid type to invalid_hash.
322         (go_finish): Create and delete invalid_hash.
323
324 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
325
326         PR tree-optimization/46728
327         * tree-ssa-math-opts.c (powi_table): New.
328         (powi_lookup_cost): New.
329         (powi_cost): New.
330         (powi_as_mults_1): New.
331         (powi_as_mults): New.
332         (gimple_expand_builtin_powi): New.
333         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
334         (gate_cse_sincos): Remove sincos/cexp restriction.
335
336 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
337
338         PR target/3746
339         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
340         mips-tdump native.
341         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
342         * mips-tdump.c: Likewise.
343
344 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
345
346         PR target/49128
347         * config/i386/driver-i386.c (host_detect_local_cpu): Always
348         add -mno-XXX.  Handle FMA.
349
350 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
351
352         PR rtl-optimization/48633
353         * ira-build.c (loop_with_eh_edge_p): New function.
354         (mark_loops_for_removal): Use it.
355
356 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
357
358         PR rtl-optimization/48971
359         * ira.c (setup_pressure_classes): Don't check register move cost
360         for classes with one registers.  Don't add pressure class if there
361         is a pressure class with the same available hard registers.
362         Check contains_reg_of_mode.  Fix a typo in collecting
363         temp_hard_regset.  Ignore hard registers not belonging to a class.
364
365 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
366
367         PR target/49133
368         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
369
370 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
371             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
372
373         PR gcov-profile/48845
374         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
375
376 2011-05-24  Richard Guenther  <rguenther@suse.de>
377
378         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
379         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
380         (gimple_types_compatible_p_1): Adjust.
381         (iterative_hash_canonical_type): Do not bother about complete vs.
382         incomplete types.
383         (gimple_canonical_types_compatible_p): Likewise.
384
385 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
386
387         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
388
389 2011-05-24  Richard Guenther  <rguenther@suse.de>
390
391         PR bootstrap/49078
392         * gimple.c (gimple_register_canonical_type): Revert
393         previous change.
394         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
395         does not for a tree for the case where it matters.  Cache
396         pointer-type alias-sets.
397
398 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
399
400         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
401         (OBJS): Remove options.o, opts-common.o and prefix.o.
402         (OBJS-libcommon-target): New.
403         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
404         (BACKEND): Include libcommon-target.a.
405         (MOSTLYCLEANFILES): Include libcommon-target.a.
406         (libcommon-target.a): New.
407         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
408         prefix.o.
409
410 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
411
412         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
413         parts of output shared with the driver.
414         * optc-gen.awk: Don't generate parts of output not shared with the
415         driver.
416         * opth-gen.awk: Remove GCC_DRIVER conditionals.
417         * doc/options.texi (SourcerInclude): Mention options-save.c.
418         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
419         (OBJS): Add options-save.o.
420         (options-save.c, options-save.o): New.
421         (options.o): Update dependencies.
422         (gcc-options.o): Remove.
423         (mostlyclean): Remove options-save.c.
424
425 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
426
427         PR debug/49032
428         * dbxout.c: Include cgraph.h.
429         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
430         and without value expr, return NULL if no varpool node exists for
431         it or if it is not needed.
432         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
433
434         PR c/49120
435         * c-decl.c (start_decl): Convert expr to void_type_node.
436
437 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
438
439         PR rtl-optimization/48826
440         * emit-rtl.c (try_split): When splitting a call that is followed
441         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
442
443 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
444
445         * cfgexpand.c (expand_debug_expr): For unused non-addressable
446         parameters passed in memory prefer using DECL_INCOMING_RTL over
447         the pseudos it will be copied into.
448
449 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
450
451         PR target/47315
452         * config/i386/i386.c (ix86_option_override_internal): Save the
453         initial options after checking vzeroupper.
454
455 2011-05-23  David Li  <davidxl@google.com>
456
457         PR tree-optimization/48988
458         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
459         Initialize has_valid_pred for each pred chain.
460
461 2011-05-23  Richard Guenther  <rguenther@suse.de>
462
463         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
464         (iterative_hash_gimple_type): Always hash type names.
465
466 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
467
468         * c-typeck.c (build_function_call_vec): Tweak call to
469         check_function_arguments.
470
471 2011-05-23  Richard Guenther  <rguenther@suse.de>
472
473         PR tree-optimization/49115
474         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
475         is not necessarily carried out, do not claim it kills the ref.
476         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
477
478 2011-05-23  Richard Guenther  <rguenther@suse.de>
479
480         PR middle-end/15419
481         * builtins.c (fold_builtin_memory_op): Be less restrictive about
482         what pointer types we accept for folding.
483
484 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
485
486         * gthr-gnat.c: Remove.
487         * gthr-gnat.h: Remove.
488         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
489         * config/t-freebsd (LIB2ADDEH): Likewise.
490         * config/t-linux (LIB2ADDEH): Likewise.
491         * config/t-sol2 (LIB2ADDEH): Likewise.
492         * config/ia64/t-vms (LIB2ADDEH): Likewise.
493         * configure.ac (target_thread_file): Remove gnat handling.
494         * configure: Regenerate.
495         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
496
497 2011-05-23  Tristan Gingold  <gingold@adacore.com>
498             Eric Botcazou  <ebotcazou@adacore.com>
499
500         * gcov.c (create_file_names): If no object directory is specified,
501         keep the directory of the file.
502
503 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
504
505         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
506         * configure: Regenerate.
507
508 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
509
510         PR middle-end/48973
511         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
512         failed and the comparison has a single bit signed type, use
513         constm1_rtx instead of const1_rtx for true value.
514         (do_store_flag): If ops->type is single bit signed type, disable
515         signel bit test optimization and pass -1 instead of 1 as last
516         parameter to emit_store_flag_force.
517
518 2011-05-23  Tom de Vries  <tom@codesourcery.com>
519
520         PR target/45098
521         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
522         function.
523         (infer_loop_bounds_from_undefined): Use new function.
524
525 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
526
527         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
528         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
529         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
530         and -O0 otherwise.
531         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
532
533 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
534
535         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
536         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
537         returns true.
538
539 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
540
541         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
542
543 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
544
545         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
546         UNSPEC_MOVE_PIC pattern.
547
548 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
549
550         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
551         (sparc-*-rtems*): Likewise.
552         (sparc64-*-elf*): Likewise.
553         (sparc64-*-rtems*): Likewise.
554         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
555         * config/sparc/t-crtin: New file.
556         * config/sparc/t-sol2 (crti.o): Delete rule.
557         (crtn.o): Likewise.
558         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
559         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
560         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
561         (ENDFILE_SPEC): Add crtn.o.
562
563 2011-05-22  Tom de Vries  <tom@codesourcery.com>
564
565         PR middle-end/48689
566         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
567         CODE_CONTAINS_STRUCT (TS_COMMON).
568
569 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
570
571         PR middle-end/49029
572         * expmed.c (extract_fixed_bit_field): Test whether target can be used
573         only after deciding which mode to use.
574
575 2011-05-22  Tom de Vries  <tom@codesourcery.com>
576
577         PR target/45098
578         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
579         for call to get_shiftadd_cost.
580
581 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
582
583         PR target/49104
584         * config/i386/cpuid.h (bit_MMXEXT): New define.
585
586 2011-05-22  Nick Clifton  <nickc@redhat.com>
587
588         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
589         initialisation of non-existant args[2] element.  Use args[] array
590         not arg[] array to pass arguments to build_function_type_list.
591
592 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
593
594         PR tree-optimization/49087
595         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
596
597 2011-05-21  Jason Merrill  <jason@redhat.com>
598
599         PR c++/49092
600         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
601         static storage duration.
602
603 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
604
605         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
606         frame pointer.
607
608 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
609
610         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
611         false if there are call-saved registers here...
612         (sparc_can_use_return_insn_p): ...but here instead.
613         (save_or_restore_regs): Fix thinko.
614         (sparc_expand_prologue): Use current_function_is_leaf.
615         (sparc_frame_pointer_required): Likewise.
616
617 2011-05-21  Nick Clifton  <nickc@redhat.com>
618
619         PR target/49098
620         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
621
622 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
623
624         * gengtype.c (walk_type): Implemented "atomic" GTY option.
625         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
626
627 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
628
629         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
630         * optc-gen.awk: Move common code to opt-read.awk.
631         * opth-gen.awk: Likewise.
632         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
633
634 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
635
636         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
637
638 2011-05-20  Tom de Vries  <tom@codesourcery.com>
639
640         PR target/45098
641         * tree-ssa-loop-ivopts.c: Include expmed.h.
642         (get_shiftadd_cost): New function.
643         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
644
645 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
646
647         PR bootstrap/49086
648         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
649         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
650
651 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
652
653         * Makefile.in: Update comment referring to $(OBJS-common).
654
655 2011-05-20  Ian Lance Taylor  <iant@google.com>
656
657         * godump.c (go_output_typedef): Put enum constants in the macro
658         hash table to avoid duplicate Go const definitions.
659
660 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
661
662         * Makefile.in (LIBDEPS): Add libcommon.a.
663         (LIBS): Likewise.
664         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
665         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
666         pretty-print.o and version.o.
667         (OBJS-libcommon): New.
668         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
669         (BACKEND): Add libcommon.a.
670         (MOSTLYCLEANFILES): Likewise.
671         (libcommon.a): New.
672         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
673         (cpp$(exeext)): Likewise.
674         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
675         pretty-print.o and input.o.
676         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
677         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
678         (errors.o): Remove.
679         (mips-tfile): Don't explicitly use version.o.
680         (mips-tdump): Likewise.
681         (gcov.o): Depend on $(DIAGNOSTIC_H).
682         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
683         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
684         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
685         * gcov-dump.c: Include intl.h and diagnostic.h.
686         (main): Initialize diagnostics.
687         * gcov.c: Include diagnostic.h.
688         (fnotice): Remove.
689         (main): Initialize diagnostics.
690         * lto-wrapper.c: Include diagnostic.h.
691         (main): Initialize diagnostics.
692
693 2011-05-20  Michael Matz  <matz@suse.de>
694
695         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
696
697 2011-05-20  Michael Matz  <matz@suse.de>
698             Richard Guenther  <rguenther@suse.de>
699
700         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
701         use lto_streamer_cache_append directly instead of returning a VEC.
702         (preload_common_node): Remove.
703         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
704         track seen nodes.
705         (lto_streamer_cache_create): Call lto_preload_common_nodes.
706
707 2011-05-20  Richard Guenther  <rguenther@suse.de>
708
709         PR tree-optimization/49079
710         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
711         MEM_REFs correctly for the trailing array access detection.
712         Special case constants the same way as decls for overall size
713         constraining.
714
715 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
716
717         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
718         argument expansion.
719
720 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
721
722         PR tree-optimization/49073
723         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
724         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
725         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
726
727 2011-05-20  Richard Guenther  <rguenther@suse.de>
728
729         PR middle-end/48849
730         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
731         of pointer types the same way the middle-end does.
732
733 2011-05-20  Richard Guenther  <rguenther@suse.de>
734
735         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
736         or pointer-to chains.  Delay all fixup to uniquify_nodes.
737
738 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
739
740         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
741         (fma4_fmaddsub): Likewise
742
743 2011-05-19  Jan Hubicka  <jh@suse.cz>
744
745         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
746         (GIMPLE_TYPE_PAIR_SIZE): New macro.
747         (type_pair_cache): New static var.
748         (lookup_type_pair): Use fixed sized custom hash; make inline.
749         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
750         calls of lookup_type_pair.
751         (print_gimple_types_stats): Remove cache stats.
752         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
753         and gtc_ob.
754
755 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
756
757         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
758         when TARGET_RDRND is active.
759         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
760         Generate dummy SImode target register when target is NULL.
761
762 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
763
764         * config/arm/arm-fpus.def: New.
765         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
766         arm-fpus.def.
767         * config/arm/arm-tables.opt: Regenerate.
768         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
769         (arm_option_override): Don't decode FPU name to string here.
770         * config/arm/arm.opt (mfpu=): Use Enum.
771         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
772         Update dependencies.
773
774 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
775
776         * collect2.c: Include diagnostic.h.
777         (fatal_perror, fatal, error, fancy_abort): Remove.
778         (main): Set progname.  Call xmalloc_set_program_name and
779         diagnostic_initialize.
780         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
781         scan_libraries, resolve_lib_name): Call fatal_error instead of
782         fatal and fatal_perror.
783         * collect2.h (error, fatal, fatal_perror): Don't declare.
784         * tlink.c: Include diagnostic-core.h.
785         (recompile_files): Call fatal_error instead of fatal_perror.
786         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
787         pretty-print.o and input.o.
788         (collect2.o, tlink.o): Update dependencies.
789
790 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
791
792         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
793
794 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
795
796         PR target/40483
797         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
798         COMDAT group syntax, both SPARC and x86 variants.
799         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
800         * configure: Regenerate.
801         * config/sol2.h (TARGET_SOLARIS): Define.
802         (PUSHSECTION_FORMAT): Remove.
803         (SECTION_NAME_FORMAT): Define.
804         * config/sol2.c: Include hashtab.h.
805         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
806         expansion, using SECTION_NAME_FORMAT.
807         (solaris_comdat_htab): New variable.
808         (struct comdat_entry): Define.
809         (comdat_hash): New function.
810         (comdat_eq): New function.
811         (solaris_elf_asm_comdat_section): New function.
812         (solaris_define_comdat_signature): New function.
813         (solaris_code_end): New function.
814         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
815         (solaris_code_end): Declare.
816         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
817         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
818         solaris_code_end.
819         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
820         Remove ATTRIBUTE_UNUSED.
821         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
822         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
823         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
824         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
825         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
826         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
827         (PUSHSECTION_FORMAT): Remove.
828         (SECTION_NAME_FORMAT): Redefine.
829
830 2011-05-19  Kai Tietz  <ktietz@redhat.com>
831
832         * tree-cfg.c (verify_gimple_assign_binary): Barf on
833         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
834         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
835
836 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
837             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
838
839         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
840
841 2011-05-19  Richard Guenther  <rguenther@suse.de>
842
843         PR middle-end/48985
844         * tree-object-size.c (addr_object_size): If the pointed-to
845         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
846
847 2011-05-19  Richard Guenther  <rguenther@suse.de>
848
849         * gimple.c (gimple_types_compatible_p_1): Compare names of
850         the types themselves.
851         (iterative_hash_gimple_type): And hash them that way.
852         (gimple_register_type_1): If we register a main variant properly
853         initialize the leader to ourselves.
854
855 2011-05-19  Tom de Vries  <tom@codesourcery.com>
856
857         PR target/45098
858         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
859         get_loop_invariant_expr_id.
860         (get_loop_invariant_expr_id): Use get_expr_id.
861         (parm_decl_cost): New function.
862         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
863         Improve bound cost estimation.  Use different inv_expr_id for elim and
864         express cases.
865
866 2011-05-19  Tom de Vries  <tom@codesourcery.com>
867
868         PR target/45098
869         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
870         cost_base.cost == 0.
871
872 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
873
874         PR target/49002
875         * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
876         Properly handle load cast.
877
878 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
879
880         PR tree-optimization/49039
881         * tree-vrp.c (extract_range_from_binary_expr): For
882         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
883         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
884
885 2011-05-18  Tom de Vries  <tom@codesourcery.com>
886
887         PR target/45098
888         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
889
890 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
891
892         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
893         (*tls_global_dynamic_64): Ditto.
894         (*tls_local_dynamic_base_32_gnu): Ditto.
895         (*tls_local_dynamic_base_64): Ditto.
896         (tls_initial_exec_64_sun): Ditto.
897
898 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
899
900         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
901         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
902         bf592-none.
903         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
904         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
905         * config/bfin/bfin.c (bfin_cpus): Add bf592.
906         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
907         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
908         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
909         * config/bfin/elf.h (LIB_SPEC): Add bf592.
910
911 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
912
913         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
914         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
915         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
916         target_thread_pointer, arm_structure_size_boundary, struct
917         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
918         struct abi_name, arm_all_abis): Remove.
919         (arm_option_override) Don't process most enumerated option values here.
920         Don't process target_fpe_name here.  Work with integer not string for
921         structure size boundary; use separate diagnostics for each case.
922         * config/arm/arm.h (enum float_abi_type, enum
923         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
924         to arm-opts.h.
925         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
926         arm_structure_size_boundary): Remove.
927         * config/arm/arm.opt (mabi=): Use Enum and Init.
928         (arm_abi_type): New Enum and EnumValue entries.
929         (mfloat-abi=): Use Enum and Init.
930         (float_abi_type): New Enum and EnumValue entries.
931         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
932         (mfp16-format=): Use Enum and Init.
933         (arm_fp16_format_type): New Enum and EnumValue entries.
934         (mstructure-size-boundary=): Use UInteger and Init.
935         (mtp=): Use Enum and Init.
936         (arm_tp_type): New Enum and EnumValue entries.
937
938 2011-05-18  Richard Guenther  <rguenther@suse.de>
939
940         PR tree-optimization/49018
941         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
942         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
943         gimple_has_side_effects.
944
945 2011-05-18  Richard Guenther  <rguenther@suse.de>
946
947         * gimple.c (gimple_register_type_1): New function, split out from ...
948         (gimple_register_type): ... here.  Avoid infinite recursion.
949
950 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
951
952         PR tree-optimization/41881
953         * tree-vectorizer.h (struct _loop_vec_info): Add new field
954         reduction_chains along with a macro for its access.
955         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
956         (destroy_loop_vec_info): Free reduction chains.
957         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
958         (vect_is_slp_reduction): New function.
959         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
960         (vect_create_epilog_for_reduction): Support SLP reduction chains.
961         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
962         definition types for reduction chains.
963         (vect_supported_load_permutation_p): Don't allow permutations for
964         reduction chains.
965         (vect_analyze_slp_instance): Support reduction chains.
966         (vect_analyze_slp): Try to build SLP instance from reduction chains.
967         (vect_get_constant_vectors):  Handle reduction chains.
968         (vect_schedule_slp_instance): Mark the first statement of the
969         reduction chain as reduction.
970
971 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
972
973         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
974         names for group elements access.
975         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
976         reduction chains as well.  Remove data reference and interleaving
977         related words from the fields names.
978         * tree-vect-loop.c (vect_transform_loop): Use new names for group
979         elements access.
980         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
981         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
982         vect_update_interleaving_chain, vect_same_range_drs,
983         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
984         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
985         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
986         vect_analyze_group_access, vect_analyze_data_ref_access,
987         vect_create_data_ref_ptr, vect_transform_strided_load,
988         vect_record_strided_load_vectors): Likewise.
989         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
990         vect_model_load_cost, vectorizable_store, vectorizable_load,
991         vect_remove_stores, new_stmt_vec_info): Likewise.
992         * tree-vect-slp.c (vect_build_slp_tree,
993         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
994
995 2011-05-18  Richard Guenther  <rguenther@suse.de>
996
997         PR middle-end/48989
998         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
999         operand verification.
1000         (verify_gimple_assign_binary): Likewise.
1001         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
1002         to non-1-precision BOOLEAN_TYPEs.
1003
1004 2011-05-18  Tom de Vries  <tom@codesourcery.com>
1005
1006         PR target/45098
1007         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
1008
1009 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
1010
1011         PR tree-optimization/49000
1012         * tree-ssa.c (execute_update_addresses_taken): Call
1013         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
1014         be rewritten and decl has been marked for renaming, reset
1015         the debug stmt.
1016
1017 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
1018
1019         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1020         enum_opts_set when testing if attributes have set -mfpmath=.
1021
1022 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
1023
1024         * config/mips/mips.c (mips_handle_option): Remove unused variable.
1025
1026 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
1027
1028         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
1029         info->entry with 0
1030         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
1031         id.transform_lang_insert_block with NULL.
1032
1033 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
1034
1035         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
1036         (output_fp_compare): Change args 3 and 4 to bool.
1037         (ix86_expand_call): Change arg 6 to bool.
1038         (ix86_attr_length_immediate_default): Change arg 2 to bool.
1039         (ix86_attr_length_vex_default): Change arg 3 to bool.
1040         * config/i386/i386.md: Update all uses.
1041         * config/i386/i386.c: Ditto.
1042         (ix86_flags_dependent): Change return type to bool.
1043
1044 2011-05-17  Richard Guenther  <rguenther@suse.de>
1045
1046         * gimple.c (type_hash_pair_compare): Fix comparison.
1047
1048 2011-05-17  Richard Guenther  <rguenther@suse.de>
1049
1050         * gimple.c (iterative_hash_gimple_type): Simplify singleton
1051         case some more, fix final hash value of the non-singleton case.
1052
1053 2011-05-17  Richard Guenther  <rguenther@suse.de>
1054
1055         PR bootstrap/49013
1056         Revert
1057         2011-05-16  Richard Guenther  <rguenther@suse.de>
1058
1059         * gimple.c (gimple_types_compatible_p_1): Use names of the
1060         type itself, not its main variant.
1061         (iterative_hash_gimple_type): Likewise.
1062
1063 2011-05-17  Richard Guenther  <rguenther@suse.de>
1064
1065         * gimple.c (gimple_register_canonical_type): Use the main-variant
1066         leader for computing the canonical type.
1067
1068 2011-05-17  Nick Clifton  <nickc@redhat.com>
1069
1070         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
1071         moves.
1072
1073         * config/rx/rx.md: Add peephole to remove redundant extensions
1074         after loads.
1075         (bitset_in_memory): Use rx_restricted_mem_operand.
1076         (bitinvert_in_memory): Likewise.
1077         (bitclr_in_memory): Likewise.
1078
1079 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
1080             Nick Clifton  <nickc@redhat.com>
1081
1082         * config/rx/rx.md: Add peepholes to match a register move followed
1083         by a comparison of the moved register.  Replace these with an
1084         addition of zero that does both actions in one instruction.
1085
1086 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
1087
1088         PR target/48986
1089         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
1090         predicate to allow CONST_INT.
1091         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
1092
1093 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
1094
1095         * opts-common.c (opt_enum_arg_to_value): New.
1096         * opts.h (opt_enum_arg_to_value): Declare.
1097         * config/i386/i386.opt (fpmath): Remove.
1098         (mfpmath=): Use Enum, Init and Save.
1099         (fpmath_unit): New Enum and EnumValue entries.
1100         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
1101         name for function fpmath state.
1102         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
1103         * config/i386/i386.c: Include diagnostic.h.
1104         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
1105         (ix86_target_string): Take enum fpmath_unit value instead of string.
1106         (ix86_debug_options): Update call to ix86_target_string.
1107         (ix86_option_override_internal): Don't process fpmath strings here.
1108         (x86_function_specific_save, ix86_function_specific_restore):
1109         Don't handle fpmath state specially.
1110         (ix86_function_specific_print): Pass fpmath state to
1111         ix86_target_string instead of printing in this function.
1112         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
1113         Handle enum attributes.
1114         (IX86_ATTR_ENUM, ix86_opt_enum): New.
1115         (ix86_valid_target_attribute_tree): Update option_strings
1116         handling.  Handle fpmath as enum option.
1117         (ix86_can_inline_p): Update field names for function fpmath state.
1118         (ix86_expand_builtin): Update call to ix86_target_string.
1119         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
1120         (ix86_fpmath): Remove.
1121         * config/i386/t-i386 (i386.o): Update dependencies.
1122
1123 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
1124
1125         PR preprocessor/48677
1126         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
1127         from decoded_options[0], not from itself.
1128
1129 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
1130
1131         * config/i386/constraints.md (z): New constraint.
1132         * config/i386/i386.c (c): New mode attribute.
1133         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
1134         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
1135         constraint for operand 0.
1136         (*call_vzeroupper): Ditto.
1137         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
1138         (*call_rex64_ms_sysv_vzeroupper): Ditto.
1139         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
1140         Use "lzm" constraint for operand 0.
1141         (*call_pop_vzeroupper): Ditto.
1142         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
1143         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
1144         constraint for operand 0.
1145         (*sibcall_vzeroupper): Ditto.
1146         (*sibcall_rex64_ms_sysv): Ditto.
1147         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
1148         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
1149         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
1150         (*sibcall_pop_vzeroupper): Ditto.
1151         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
1152         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
1153         mode iterator.  Use "<c>zm" constraint for operand 1.
1154         (*call_value_vzeroupper): Ditto.
1155         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
1156         for operand 1.
1157         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
1158         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
1159         *call_value_pop_1.  Use "lzm" constraint for operand 1.
1160         (*call_value_pop_vzeroupper): Ditto.
1161         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
1162         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
1163         mode iterator.  Use "Uz" constraint for operand 1.
1164         (*sibcall_value_vzeroupper): Ditto.
1165         (*sibcall_value_rex64_ms_sysv): Ditto.
1166         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
1167         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
1168         constraint for operand 1.
1169         (*sibcall_value_pop_vzeroupper): Ditto.
1170         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
1171         and "z" constraint for operand 2.
1172         (*tls_global_dynamic_32_gnu): Ditto.
1173         (*tls_local_dynamic_base_32_gnu): Ditto.
1174         (*tls_local_dynamic_base_64): Ditto.
1175         (*tls_local_dynamic_32_once): Ditto.
1176         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
1177         Update all callers.
1178         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
1179
1180 2011-05-16  Richard Guenther  <rguenther@suse.de>
1181
1182         * gimple.c (gimple_types_compatible_p_1): Use names of the
1183         type itself, not its main variant.
1184         (iterative_hash_gimple_type): Likewise.
1185
1186 2011-05-16  Richard Guenther  <rguenther@suse.de>
1187
1188         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
1189         always visit pointer target and function result and argument types.
1190
1191 2011-05-16  Jason Merrill  <jason@redhat.com>
1192
1193         PR c++/48999
1194         * tree-inline.c (copy_statement_list): Put back recursion.
1195
1196 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
1197
1198         PR target/27663
1199         PR target/41076
1200         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
1201         * config/avr/avr.md ("*ior<mode>qi.byte0",
1202         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
1203
1204 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
1205
1206         PR target/45099
1207         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
1208         register is needed for a function argument.
1209
1210 2011-05-16  Richard Guenther  <rguenther@suse.de>
1211
1212         * gimple.c (struct type_hash_pair): New type.
1213         (type_hash_pair_compare): New function.
1214         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
1215
1216 2011-05-16  Revital Eres  <revital.eres@linaro.org>
1217
1218         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
1219
1220 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
1221
1222         * config/i386/i386.md (floating point move splitters): Fix
1223         usage of standard_80387_constant_p.
1224         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
1225
1226 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
1227
1228         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
1229
1230 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
1231
1232         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
1233         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
1234         (tree_ssa_lim_finalize): Likewise.
1235
1236 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
1237
1238         * config/i386/constraint.md (Yd, Yx): New register constraints.
1239         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
1240         Yd conditional register constraint.
1241         (*movtf_internal): Use standard_sse_constant_opcode.
1242         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
1243         Yx conditional register constraint.
1244         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
1245         Yd conditional register constraint.  Use standard_sse_constant_p to
1246         check for valid SSE constants and call standard_sse_constant_opcode to
1247         output SSE insn.
1248         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
1249         constants and call standard_sse_constant_opcode to output SSE insn.
1250         * config/i386/i386.c (ix86_option_ovverride_internal): Set
1251         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
1252         optimize_size is set.
1253         (standard_sse_constant_opcode): Output conditional AVX insn templates.
1254
1255 2011-05-14  Tobias Burnus  <burnus@net-b.de>
1256
1257         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
1258
1259 2011-05-13  Martin Jambor  <mjambor@suse.cz>
1260
1261         * ipa-prop.c (ipa_cst_from_jfunc): New function.
1262         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
1263         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
1264         (evaluate_conditions_for_ipcp_clone): Removed.
1265         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
1266         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
1267         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
1268
1269 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
1270
1271         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
1272         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
1273         lieu of MAY_HAVE_DEBUG_STMTS.
1274         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
1275         debug statements if !MAY_HAVE_DEBUG_STMTS.
1276
1277 2011-05-13  Martin Thuresson  <martint@google.com>
1278
1279         PR gcov-profile/47793
1280         * libgcov.c (gcov_exit): Support relative profile paths.
1281         * doc/invoke.texi (-fprofile-dir): Update for above change.
1282
1283 2011-05-13  Richard Guenther  <rguenther@suse.de>
1284
1285         * gimple.c (gimple_canonical_types_compatible_p): Do not use
1286         type-pair caching, do not compare hashes.
1287
1288 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
1289
1290         PR middle-end/48965
1291         * tree-cfg.c (edge_to_cases_cleanup): Return true.
1292         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
1293
1294 2011-05-13  Kai Tietz  <ktietz@redhat.com>
1295
1296         * gimplify.c (gimplify_expr): Make sure operand is boolified.
1297         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
1298         compatible type for TRUTH_NOT_EXPR.
1299
1300 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
1301
1302         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
1303         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
1304         can_create_pseudo_p ().
1305
1306 2011-05-13  Richard Guenther  <rguenther@suse.de>
1307
1308         PR lto/48978
1309         * gimple.c (iterative_hash_gimple_type): Revert change in
1310         pointer target and function result and argument hashing.
1311
1312 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
1313
1314         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
1315         (*movxf_internal_nointeger): Ditto.
1316         (*movdf_internal_rex64): Ditto.
1317         (*movdf_internal): Ditto.
1318         (*movdf_internal_nointeger): Ditto.
1319         (*movsf_internal): Ditto.
1320         (sincos splitters): Use can_create_pseudo ().
1321
1322 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
1323
1324         * config/i386/i386-opts.h: New.
1325         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
1326         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
1327         ix86_section_threshold): Remove.
1328         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
1329         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
1330         OPT_mbranch_cost_.
1331         (ix86_option_override_internal): Don't decode strings for options
1332         other than -march=, -mtune= and -mfpmath=.  Don't allow for
1333         __attribute__ uses in remaining diagnostics for options with
1334         string arguments.  Don't check for integer arguments being negative.
1335         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
1336         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
1337         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
1338         ix86_branch_cost, ix86_section_threshold): Remove.
1339         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
1340         HeaderInclude.
1341         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
1342         but not Var.
1343         (masm=): Use Enum and Init.
1344         (asm_dialect): New Enum and EnumValue entries.
1345         (mbranch-cost=): Use UInteger.
1346         (mlarge-data-threshold=): Use UInteger and Init.
1347         (mcmodel=): Use Enum and Init.
1348         (cmodel): New Enum and EnumValue entries.
1349         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
1350         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
1351         mregparm=): Use UInteger.
1352         (mstringop-strategy=): Use Enum and Init.
1353         (stringop_alg): New Enum and EnumValue entries.
1354         (mtls-dialect=): Use Enum and Init.
1355         (tls_dialect): New Enum and EnumValue entries.
1356         (mabi=): Use Enum and Init.
1357         (calling_abi): New Enum and EnumValue entries.
1358         (mveclibabi=): Use Enum and Init.
1359         (ix86_veclibabi): New Enum and EnumValue entries.
1360
1361 2011-05-13  Nick Clifton  <nickc@redhat.com>
1362
1363         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
1364         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
1365
1366 2011-05-13  Kai Tietz  <ktietz@redhat.com>
1367
1368         PR middle-end/48984
1369         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
1370         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
1371         (gimple_boolify): Check for cast for boolean_type_node instead for
1372         BOOLEAN_TYPE.
1373
1374 2011-05-13  Richard Guenther  <rguenther@suse.de>
1375
1376         PR tree-optimization/48172
1377         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
1378         multiplying by number of iterations for equal step.
1379         (vect_create_cond_for_alias_checks): Likewise.
1380
1381 2011-05-13  Andreas Schwab  <schwab@redhat.com>
1382
1383         * configure.ac: Use AS_HELP_STRING throughout.
1384         * configure: Regenerate.
1385
1386 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
1387
1388         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
1389         (ix86_emit_restore_regs_using_mov): Likewise.
1390         (ix86_emit_restore_sse_regs_using_mov): Likewise.
1391
1392 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
1393
1394         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
1395         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
1396         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
1397         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
1398         RTX_OK_FOR_OLO10_P): ...here.
1399         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
1400         SYMBOLIC_CONST.
1401
1402 2011-05-12  Kai Tietz  <ktietz@redhat.com>
1403
1404         * gimplify.c (gimple_boolify): Re-boolify expression
1405         arguments even if expression type is of kind BOOLEAN_TYPE.
1406         (gimplify_boolean_expr): Removed.
1407         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
1408         and XOR. Additional take care that we keep expression's type.
1409         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
1410         of TRUTH_AND|OR|XOR_EXPR.
1411
1412 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
1413
1414         PR tree-optimization/48975
1415         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
1416         on all bbs here and free and clear ifc_bbs at the end.
1417
1418 2011-05-12  Richard Guenther  <rguenther@suse.de>
1419
1420         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
1421         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
1422         until after simple checks.
1423         (gimple_types_compatible_p): Likewise.
1424         (iterative_hash_gimple_type): Always hash pointer targets
1425         and function return and argument types.
1426         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
1427         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
1428         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
1429         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
1430         completely in the simple compare section.
1431         (gimple_register_canonical_type): Query the cache again after
1432         registering.
1433
1434 2011-05-12  Richard Guenther  <rguenther@suse.de>
1435
1436         PR tree-optimization/48172
1437         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
1438         the number of iterations from the segment size calculation.
1439         (vect_create_cond_for_alias_checks): Adjust.
1440
1441 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
1442
1443         PR debug/48967
1444         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
1445         if validate_subreg fails.
1446
1447 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
1448
1449         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
1450         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
1451         early.
1452
1453 2011-05-12  DJ Delorie  <dj@redhat.com>
1454
1455         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
1456         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
1457         created builtin into rx_builtins array.
1458         (rx_builtin_decl): New function.
1459         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
1460
1461 2011-05-12  DJ Delorie  <dj@redhat.com>
1462             Nick Clifton  <nickc@redhat.com>
1463
1464         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
1465         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
1466         (rx_is_legitimate_address): Add pre-decrement and post-increment
1467         addressing in HImode and QImode.  Fix test for out of range
1468         REG+INT addressing.
1469         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
1470         (rx_align_for_label): Test label before extracting its usage count.
1471         (rx_adjust_insn_lengths): Fix selection of insn codes.
1472         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
1473
1474 2011-05-11  Jason Merrill  <jason@redhat.com>
1475
1476         * tree.c (type_hash_canon): Use struct tree_type_non_common.
1477
1478 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
1479
1480         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
1481         reindent the subsequent block.
1482
1483 2011-05-11  Satoru Takabayashi  <satorux@google.com>
1484             Paul Pluzhnikov  <ppluzhnikov@google.com>
1485
1486         * doc/install.texi (Configuration): Document --with-linker-hash-style.
1487         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
1488         * config.in: Add LINKER_HASH_STYLE.
1489         * configure.ac: Add --with-linker-hash-style.
1490         * configure: Regenerate.
1491
1492 2011-05-11  Richard Guenther  <rguenther@suse.de>
1493
1494         PR middle-end/48964
1495         * gimple.c (iterative_hash_canonical_type): Fix typo.
1496
1497 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
1498
1499         * config/i386/i386.c (legitimize_tls_address)
1500         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1501         expanders directly for TARGET_GNU2_TLS.  Determine pic and
1502         __tls_get_addr symbol reference here.  Update call to
1503         gen_tls_global_dynamic_{32,64} for added arguments.
1504         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1505         expanders directly for TARGET_GNU2_TLS.  Determine
1506         __tls_get_addr symbol reference here.  Update call to
1507         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
1508         unique UNSPEC REG_EQUIV to libcall block.
1509         (ix86_tls_get_addr): Declare static.
1510         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
1511         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
1512         Do not determine pic and __tls_get_addr symbol reference here. Do not
1513         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
1514         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
1515         (tls_global_dynamic_64): Add operand 2.  Do not determine
1516         __tls_get_addr symbol reference here.  Do not call
1517         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
1518         (tls_local_dynamic_base64): Ditto for operand 1.
1519
1520 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
1521
1522         * function.c (expand_function_start): Initialize stack_check_probe_note
1523         only if the generic stack checking mechanism is used.
1524
1525 2011-05-11  Richard Guenther  <rguenther@suse.de>
1526
1527         PR tree-optimization/15256
1528         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1529         (A & B) | C, combine (A op CST1) op CST2.
1530         (tree_ssa_forward_propagate_single_use_vars): Only bother to
1531         visit assigns that have uses.
1532
1533 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
1534
1535         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
1536         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1537         (unpack_ts_type_common_value_fields): ...this.  Update comment.
1538         (unpack_value_fields): Adjust for renaming.
1539         (lto_input_ts_type_tree_pointers): Split into...
1540         (lto_input_ts_type_common_tree_pointer): ...this and...
1541         (lto_input_ts_type_non_common_tree_pointers): ...this.
1542         (lto_input_tree_pointers): Adjust for above split.
1543         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1544         (pack_ts_type_common_value_fields): ...this.  Update comment.
1545         (lto_output_ts_type_tree_pointers): Split into...
1546         (lto_output_ts_type_common_tree_pointers): ...this and...
1547         (lto_output_ts_type_non_common_tree_pointers): ...this.
1548         (lto_output_tree_pointers): Adjust for above split.
1549         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1550         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1551         * stor-layout.c (vector_type_mode): Adjust location of mode field.
1552         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1553         Define.
1554         (struct tree_type): Split into...
1555         (struct tree_type_common: ...this and...
1556         (struct tree_type_with_lang_specific): ...this and...
1557         (struct tree_type_non_common): ...this.  Adjust accessor macros
1558         accordingly.
1559         (TYPE_VALUES_RAW): Define.
1560         (union tree_node): Update for above changes.
1561         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1562         TS_TYPE_NON_COMMON.
1563         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1564         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1565         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1566         * treestructu.def (TS_TYPE): Remove.
1567         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1568         Define.
1569
1570 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
1571
1572         PR debug/48159
1573         * tree-ssa.c (reset_debug_uses): New function.
1574         * tree-flow.h (reset_debug_uses): New prototype.
1575         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1576         * tree-loop-distribution.c (generate_loops_for_partition): Call
1577         reset_debug_uses on the stmts that will be removed.  Keep around
1578         all debug stmts, don't count them as bits in partition bitmap.
1579         (generate_builtin): Don't count debug stmts or labels as bits in
1580         partition bitmap.
1581
1582 2011-05-11  Richard Guenther  <rguenther@suse.de>
1583
1584         * gimple.c (gimple_type_hash_1): Merge with ...
1585         (gimple_type_hash): ... this.
1586         (gtc_visit): Remove mode parameter and simplify accordingly.
1587         (gimple_types_compatible_p_1): Likewise.
1588         (gimple_types_compatible_p): Likewise.
1589         (iterative_hash_gimple_type): Likewise.
1590         (visit): Likewise.
1591         (gimple_type_eq): Adjust.
1592
1593 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1594
1595         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1596         enters the branch create an anti edge in the opposite direction
1597         to prevent the creation of reg-moves.
1598         * modulo-sched.c: Adjust comment to reflect the fact we are
1599         scheduling closing branch.
1600         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1601         (stage_count): New field in struct partial_schedule.
1602         (calculate_stage_count): New function.
1603         (normalize_sched_times): Rename to reset_sched_times and handle
1604         incrementing the sched time of the nodes by a constant value
1605         passed as parameter.
1606         (duplicate_insns_of_cycles): Skip closing branch.
1607         (sms_schedule_by_order): Schedule closing branch.
1608         (ps_insn_find_column): Handle closing branch.
1609         (sms_schedule): Call reset_sched_times and adjust the code to
1610         support scheduling of the closing branch.
1611         (ps_insert_empty_row): Update calls to normalize_sched_times
1612         and rotate_partial_schedule functions.
1613
1614 2011-05-11  Richard Guenther  <rguenther@suse.de>
1615
1616         PR middle-end/48953
1617         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1618
1619 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
1620
1621         * opts.c (finish_options): Move warning settings from process_options.
1622         * toplev.c (process_options): Move warning settings to finish_options.
1623
1624 2011-05-11  Richard Guenther  <rguenther@suse.de>
1625
1626         PR tree-optimization/18041
1627         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1628         (simplify_bitwise_binary): ... this.  Handle operand conversions
1629         by applying them to the result instead.
1630         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
1631
1632 2011-05-11  Richard Guenther  <rguenther@suse.de>
1633
1634         * gimple.c (gimple_canonical_types_compatible_p): Split out
1635         from gimple_types_compatible_p and friends.  Do not recurse
1636         to pointed-to types.
1637         (gimple_canonical_type_eq): Use it.
1638         (iterative_hash_canonical_type): Split out from
1639         iterative_hash_gimple_type and friends.  Do not recurse
1640         to pointed-to types.
1641         (gimple_canonical_type_hash): Use it, allocate the hash here.
1642
1643 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1644
1645         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1646         recognizing doloop.
1647
1648 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1649
1650         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1651         instead of PREV_INSN.
1652
1653 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1654
1655         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1656         * loop-doloop.c (doloop_condition_get): Likewise.
1657         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1658         (doloop_end): New.
1659         * config/arm/arm.md (*addsi3_compare0): Remove "*".
1660
1661 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
1662
1663         * tree.def (CASE_LABEL_EXPR): Add an operand.
1664         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1665
1666 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1667
1668         * c-decl.c (c_override_global_bindings_to_false): Remove.
1669         (global_bindings_p): Don't check
1670         c_override_global_bindings_to_false.
1671         * c-tree.h (c_override_global_bindings_to_false): Remove.
1672         * c-typeck.c (composite_type): Don't set
1673         c_override_global_bindings_to_false.
1674
1675 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1676
1677         PR target/48857, 48495
1678         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1679         (VSX_MODE): Ditto.
1680         (VSX_MOVE_MODE): Ditto.
1681         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1682         VSX vector types.  Add V2DImode.
1683         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1684         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1685         (MODES_TIEABLE_P): Ditto.
1686
1687         * config/rs6000/rs6000.c (rs6000_emit_move): Use
1688         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1689         VSX_VECTOR_MODE.
1690         (init_cumulative_args): Ditto.
1691         (rs6000_function_arg_boundary): Ditto.
1692         (rs6000_function_arg_advance_1): Ditto.
1693         (rs6000_function_arg): Ditto.
1694         (rs6000_function_ok_for_sibcall): Ditto.
1695         (emit_frame_save): Ditto.
1696         (rs6000_function_value): Ditto.
1697         (rs6000_libcall_value): Ditto.
1698
1699 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1700
1701         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1702         i386/darwin-lib.h to $libgcc_tm_file.
1703         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1704
1705 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1706
1707         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1708
1709 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1710
1711         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1712         * config/rs6000/rs6000-tables.opt: New file (generated).
1713         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1714         rs6000/rs6000-tables.opt to extra_options.
1715         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1716         * config/rs6000/rs6000.c (rs6000_select): Remove.
1717         (processor_target_table): Move contents to rs6000-cpus.def.
1718         (darwin_rs6000_override_options): Check
1719         global_options_set.x_rs6000_cpu_index instead of
1720         rs6000_select[1].string.
1721         (rs6000_option_override_internal): Likewise.
1722         (rs6000_handle_option): Don't assert that global structures are in
1723         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
1724         (rs6000_default_cpu): New variable.
1725         (rs6000_file_start): Set it instead of local default_cpu.  Check
1726         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1727         global_options_set.x_rs6000_tune_index instead of rs6000_select.
1728         (rs6000_darwin_file_start): Check rs6000_default_cpu and
1729         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1730         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1731         rs6000_select): Remove.
1732         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1733         Remove.
1734         (mcpu=, mtune=): Use Var, Init, Enum and Save.
1735         * config/rs6000/t-rs6000
1736         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1737         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1738         global_options_set.x_rs6000_cpu_index instead of
1739         rs6000_select[1].string.
1740         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1741         global_options_set.x_rs6000_cpu_index instead of
1742         rs6000_select[1].string.
1743
1744 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1745
1746         * config.gcc (libgcc_tm_file): Define instead of including files
1747         from ../../libgcc/config/ in tm_file.
1748         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1749         * configure: Regenerate.
1750         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1751         libgcc_tm.h, cs-libgcc_tm.h): New.
1752         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1753         (clean): Remove libgcc_tm.h.
1754         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1755         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1756         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1757
1758 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
1759
1760         PR target/48896
1761         * config/avr/avr.c (avr_ret_register): Return unsigned int
1762         instead of int.
1763         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1764         it to avr_libcall_value.
1765         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1766         expand_expr.
1767         (avr_expand_binop_builtin): Ditto.
1768         (avr_expand_unop_builtin): Ditto.
1769
1770 2011-05-10  DJ Delorie  <dj@redhat.com>
1771
1772         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1773         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1774         * config/rx/rx.c (rx_align_for_label): Add label and
1775         uses_threshold parameters.  Do not align when the label is not
1776         used enough.
1777         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1778
1779 2011-05-10  Richard Guenther  <rguenther@suse.de>
1780
1781         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1782         a series of conversions and apply foldings similar to what
1783         fold-const does.
1784         (tree_ssa_forward_propagate_single_use_vars): Call it.
1785
1786 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
1787
1788         PR tree-optimization/48611
1789         PR tree-optimization/48794
1790         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1791         referenced from RESX or EH_DISPATCH arguments.
1792
1793         PR debug/48928
1794         * dfp.c (decimal_to_decnumber): Handle conversion from
1795         dconst{1,2,m1,half}.
1796
1797 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1798
1799         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1800         for !flag_prefer_avx128.
1801         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1802
1803 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
1804
1805         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1806         (fold_ternary_loc): Use expr_location_or.
1807
1808 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1809
1810         PR debug/48853
1811         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1812         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1813         Pmode and mem_mode is not VOIDmode.
1814
1815 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
1816
1817         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1818         TYPE_QUAL_RESTRICT): Convert to enum.
1819
1820 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1821
1822         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1823         (const_pow2_1_to_8_operand): Ditto.
1824         (const_pow2_1_to_128_operand): Ditto.
1825         (const_pow2_1_to_32768_operand): Ditto.
1826         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1827         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
1828         in insn constraint to check integer value of operand 3.
1829         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1830
1831         (PINSR_MODE): New mode iterator.
1832         (sse2p4_1): New mode attribute.
1833         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1834         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1835         iterator.  Use const_int_operand instead of
1836         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
1837         exact_log2 in insn constraint to check integer value of operand 3.
1838
1839 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1840
1841         * config/i386/sse.md (blendbits): Remove mode attribute.
1842         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1843         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1844         Check integer value of operand 3 in insn constraint.
1845
1846 2011-05-09  Richard Guenther  <rguenther@suse.de>
1847
1848         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1849         for diagnostics.
1850         (lto_symtab_merge): Likewise.  Do not register types here.
1851         (lto_symtab_merge_decls_2): Likewise.
1852         (lto_symtab_merge_decls_1): Likewise.
1853         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1854         * gimple.c (enum gtc_mode): Declare.
1855         (gimple_types_compatible_p): Make static.
1856
1857 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1858
1859         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1860         temporary register to match Pmode.
1861
1862 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1863
1864         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1865         and *vec_concatv4si_1_avx.
1866
1867 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1868
1869         PR rtl-optimization/48927
1870         * ira-conflicts.c (commutative_constraint_p): Use
1871         recog_data.alternative_enabled_p to disable alternatives where
1872         "enabled" attribute is false.
1873         (get_dup_num): Ditto.
1874         * ira-lives.c (single_reg_class): Ditto.
1875         (ira_implicitly_set_insn_hard_regs): Ditto.
1876
1877 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
1878
1879         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1880         (dataflow_set_preserve_mem_locs): Likewise.
1881
1882 2011-05-09  Philipp Thomas  <pth@suse.de>
1883
1884         * config/mep/mep.c (mep_validate_vliw): Syntax description
1885         should not be translated.
1886
1887 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
1888
1889         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1890         * config/mips/mips-tables.opt: New file (generated).
1891         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1892         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1893         MIPS_ARCH_OPTION_NATIVE): Define.
1894         * config/mips/mips.c (mips_cpu_info_table): Move contents to
1895         mips-cpus.def.
1896         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1897         mips_parse_cpu): Remove.
1898         (mips_cpu_info_from_opt, mips_default_arch): New.
1899         (mips_handle_option): Don't assert that global structures are in
1900         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1901         (mips_option_override): Use new variables and functions to set
1902         state of these options.  Use strcmp to check for individual CPU names.
1903         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1904         definition.
1905         * config/mips/mips.opt (march=): Use ToLower and Enum.
1906         (mips): Use ToLower, Enum and Var.
1907         (mtune=): Use ToLower and Enum.
1908         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1909
1910 2011-05-08  Jan Hubicka  <jh@suse.cz>
1911
1912         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1913         Arrange type pairs to be UID ordered.
1914         (gimple_lookup_type_leader): Make inline.
1915
1916 2011-05-09  Nick Clifton  <nickc@redhat.com>
1917
1918         PR target/48899
1919         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1920         PROCESSOR_DEFAULT.
1921
1922         PR target/48897
1923         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1924         variable 's'.
1925
1926 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
1927
1928         * combine.c (simplify_comparison): Abstract out parts into...
1929         (simplify_compare_const): ... new function.
1930         (try_combine): Generalize parallel arithmetic/compare combining
1931         to call simplify_compare_const() and CANONICALIZE_COMPARE().
1932
1933 2011-05-08  Jan Hubicka  <jh@suse.cz>
1934
1935         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1936         (cgraph_create_virtual_clone): Call hooks once virtual clone
1937         is finished.
1938         * cgraph.h (cgraph_clone_node): Update prototype.
1939         * ipa-cp.c (ipcp_estimate_growth): Use
1940         estimate_ipcp_clone_size_and_time.
1941         * ipa-inline-transform.c (clone_inlined_nodes): Update.
1942         * lto-cgraph.c (input_node): Update.
1943         * ipa-inline.c (recursive_inlining): Update.
1944         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1945         (evaluate_conditions_for_known_args): Break out from ...
1946         (evaluate_conditions_for_edge): ... here.
1947         (evaluate_conditions_for_ipcp_clone): New function.
1948         (inline_node_duplication_hook): Update clone summary based
1949         on parameter map.
1950         (estimate_callee_size_and_time): Rename to ...
1951         (estimate_node_size_and_time): take NODE instead of EDGE;
1952         take POSSIBLE_TRUTHS as argument.
1953         (estimate_callee_size_and_time): Update.
1954         (estimate_ipcp_clone_size_and_time): New function.
1955         (do_estimate_edge_time): Update.
1956
1957 2011-05-08  Richard Guenther  <rguenther@suse.de>
1958
1959         PR middle-end/48908
1960         PR middle-end/48905
1961         * expmed.c (expand_shift_1): Compute adjusted constant shift
1962         amount manually.
1963
1964 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1965
1966         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1967
1968 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1969
1970         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1971
1972 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
1973
1974         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1975
1976 2011-05-07  Jan Hubicka  <jh@suse.cz>
1977
1978         * ipa-inline-transform.c (inline_call): Account when program size
1979         decreases.
1980         * ipa-inline.c (relative_time_benefit): New function.
1981         (edge_badness): Reorganize to be power 2 based; fix thinko when
1982         computing badness for negative growth; update comments to match
1983         reality; better dumps.
1984
1985 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
1986
1987         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1988         type to bool and adjust comment.
1989         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1990         (fold_mathfn_compare): Remove calls to global_bindings_p.
1991         (fold_inf_compare): Likewise.
1992         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1993         * c-tree.h (global_bindings_p): Adjust prototype.
1994         * c-decl.c (global_bindings_p): Return bool and simplify.
1995
1996 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
1997
1998         PR tree-optimization/48837
1999         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2000         when accumulator transformation is performed.
2001
2002 2011-05-06  Jan Hubicka  <jh@suse.cz>
2003
2004         * i386.h (ix86_tune_indices): Add
2005         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
2006         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
2007         * i386.c (initial_ix86_tune_features): Add
2008         X86_SOFTARE_PREFETCHING_BENEFICIAL.
2009         (software_prefetching_beneficial_p): Remove predicate.
2010         (ix86_option_override_internal): Use new macro.
2011
2012 2011-05-06  Jan Hubicka  <jh@suse.cz>
2013
2014         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2015
2016 2011-05-06  Jan Hubicka  <jh@suse.cz>
2017
2018         * cgraph.c (cgraph_add_thunk): Create real function node instead
2019         of alias node; finalize it and mark needed/reachale; arrange visibility
2020         to be right and add it into the corresponding same comdat group list.
2021         (dump_cgraph_node): Dump thunks.
2022         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
2023         cgraph_function_with_gimple_body_p,
2024         cgraph_first_function_with_gimple_body,
2025         cgraph_next_function_with_gimple_body): New functions.
2026         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
2027         New macros.
2028         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
2029         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2030         * cgraphunit.c (cgraph_finalize_function): Only look into possible
2031         devirtualization when optimizing.
2032         (verify_cgraph_node): Verify thunks.
2033         (cgraph_analyze_function): Analyze thunks.
2034         (cgraph_mark_functions_to_output): Output thunks only in combination
2035         with function they are assigned to.
2036         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
2037         alias into normal node.
2038         (assemble_thunks): New functoin.
2039         (cgraph_expand_function): Use it.
2040         * lto-cgraph.c (lto_output_node): Stream thunks.
2041         (input_overwrite_node): Stream in thunks.
2042         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
2043         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
2044         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
2045         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
2046         (inline_analyze_function): Do not care about thunk jump functions.
2047         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
2048         * ipa-prop.c (ipa_prop_write_jump_functions): Use
2049         cgraph_function_with_gimple_body_p.
2050         * passes.c (do_per_function_toporder): Use
2051         cgraph_function_with_gimple_body_p.
2052         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2053         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
2054         (function_called_by_processed_nodes_p): Likewise.
2055
2056 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
2057
2058         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
2059         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
2060         entries.
2061         (mabi=): Replace with separate entries for mabi=altivec,
2062         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
2063         mabi=ieeelongdouble and mabi=ibmlongdouble.
2064         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2065         check for -mabi=spe without SPE ABI support here.
2066         (rs6000_handle_option): Replace OPT_mabi_ handling with
2067         OPT_mabi_altivec and OPT_mabi_spe handling.
2068
2069 2011-05-06  Cary Coutant  <ccoutant@google.com>
2070
2071         * dwarf2out.c (contains_subprogram_definition): New function.
2072         (should_move_die_to_comdat): Call it.
2073
2074 2011-05-06  Jeff Law  <law@redhat.com>
2075
2076         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
2077         remove_ctrl_stmt_and_useless_edges.
2078         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
2079         (fixup_template_block, thread_single_edge): Likewise.
2080         (mark_threaded_blocks): Use THREAD_TARGET.
2081
2082 2011-05-06  Alan Modra  <amodra@gmail.com>
2083
2084         PR target/48900
2085         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2086         const0_rtx as the arg to the dummy __tls_get_addr libcall.
2087
2088 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
2089
2090         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2091         constraint modifier to "r".
2092
2093 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
2094
2095         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
2096         fall through for OPT_mcmodel_.
2097
2098 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2099
2100         * config/s390/s390.c (s390_asm_trampoline_template): Comment
2101         instruction sizes.
2102         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
2103
2104 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2105
2106         PR target/47930
2107         * config/arm/arm.opt (marm): Document it.
2108         (mthumb): Reject negative variant.
2109
2110 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
2111
2112         PR target/48898
2113         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2114         Fix typo in "ccvt" variable name.
2115
2116 2011-05-06  Tristan Gingold  <gingold@adacore.com>
2117
2118         PR target/48895
2119         * config/vms/vms-ar.c (main): Remove cwd variable.
2120
2121 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
2122
2123         PR debug/48902
2124         * var-tracking.c (prepare_call_arguments): Move else before #endif.
2125
2126 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
2127
2128         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
2129         * gimplify.c (gimplify_switch_expr): Likewise.
2130         * omp-low.c (expand_omp_sections): Likewise.
2131         * tree-eh.c (lower_try_finally_switch): Likewise.
2132         (lower_eh_dispatch): Likewise.
2133         * tree.h (build_case_label): Declare.
2134         * tree.c (build_case_label): Define.
2135
2136 2011-05-05  Jason Merrill  <jason@redhat.com>
2137
2138         PR c++/40975
2139         * tree-inline.c (copy_tree_r): Use copy_statement_list.
2140         (copy_statement_list): Don't recurse.
2141         * stor-layout.c (copy_self_referential_tree_r): Don't allow
2142         STATEMENT_LIST.
2143
2144 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
2145
2146         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
2147         through from -mfpu= handling.
2148         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
2149
2150 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
2151
2152         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
2153         POST_MODIFY.
2154
2155 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
2156
2157         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
2158         for 11.31.
2159         (hppa[12]*-*-hpux11*): Ditto.
2160         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
2161         * config/ia64/hpux-unix2003.h: New.
2162         * config/pa/pa-hpux1131.opt: New.
2163         * config/pa/pa-hpux1131.h: New.
2164         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
2165         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
2166         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
2167
2168 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
2169
2170         PR debug/48853
2171         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
2172         instead of mode as 3rd argument to recursive call.
2173         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
2174         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
2175         VOIDmode.
2176         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
2177         don't give up if mode is Pmode and mem_mode is not VOIDmode.
2178         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
2179         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
2180
2181 2011-05-05  Julian Brown  <julian@codesourcery.com>
2182
2183         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2184         parenthesis in D-register case.
2185
2186 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
2187
2188         * opt-functions.awk (var_type_struct): Handle Enum options.
2189         * optc-gen.awk: Don't check range of variables of character type.
2190         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
2191         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
2192         rs6000_sdata_name, rs6000_explicit_options): Remove.
2193         (rs6000_option_override_internal): Check for -malign-power here.
2194         Use global_options_set instead of rs6000_explicit_options.
2195         (rs6000_parse_fpu_option): Remove.
2196         (rs6000_handle_option): Access variables via opts and opts_set
2197         pointers.  Use error_at and warning_at.  Add fall-through
2198         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
2199         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
2200         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
2201         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
2202         here.  Don't use rs6000_parse_fpu_option.
2203         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
2204         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
2205         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
2206         (mrecip=): Use Var.
2207         (mspe): Use Var and Save.
2208         (mtraceback=): Use Enum and Var.
2209         (rs6000_traceback_type): New Enum and EnumValue entries.
2210         (mfloat-gprs=): Use Enum, Var and Save.
2211         (rs6000_float_gprs): New Enum and EnumValue entries.
2212         (mlong-double-): use Var and Save.
2213         (msched-costly-dep=, minsert-sched-nops=): Use Var.
2214         (malign-): Use Enum and Var.
2215         (rs6000_alignment_flags): New Enum and EnumValue entries.
2216         (mfpu=): Use Enum.
2217         (fpu_type_t): New Enum and EnumValue entries.
2218         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2219         global_options_set instead of rs6000_explicit_options.
2220         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2221         global_options_set instead of rs6000_explicit_options.
2222         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2223         global_options_set instead of rs6000_explicit_options.
2224         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2225         global_options_set instead of rs6000_explicit_options.
2226         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
2227         global_options_set instead of rs6000_explicit_options.
2228         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2229         global_options_set instead of rs6000_explicit_options.
2230         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
2231         definition.
2232         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2233         global_options_set instead of rs6000_explicit_options.
2234         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
2235         (rs6000_cmodel): New Enum and EnumValue entries.
2236         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2237         global_options_set instead of rs6000_explicit_options.
2238         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
2239         (mtls-size=): Use Enum and Var.
2240         (rs6000_tls_size): New Enum and EnumValue entries.
2241
2242 2011-05-05  Michael Matz  <matz@suse.de>
2243
2244         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
2245         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
2246         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
2247         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
2248         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
2249         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
2250         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
2251         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
2252         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
2253         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
2254         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
2255         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
2256         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
2257         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
2258         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
2259         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
2260
2261 2011-05-05  Richard Guenther  <rguenther@suse.de>
2262
2263         * expmed.c (expand_variable_shift): Rename to ...
2264         (expand_shift_1): ... this.  Take an expanded shift amount.
2265         For rotates recurse directly not building trees for the shift amount.
2266         (expand_variable_shift): Wrap around expand_shift_1.
2267         (expand_shift): Adjust.
2268
2269 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
2270
2271         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
2272
2273 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
2274
2275         * tree.h (get_pending_sizes): Remove prototype.
2276         (put_pending_size): Likewise.
2277         (put_pending_sizes): Likewise.
2278         * stor-layout.c (pending_sizes): Delete.
2279         (get_pending_sizes): Likewise.
2280         (put_pending_size): Likewise.
2281         (put_pending_sizes): Likewise.
2282         (variable_size): Do not call put_pending_size and tidy up.
2283         * function.h (struct function): Remove dont_save_pending_sizes_p.
2284         * lto-streamer-in.c (input_function): Do not stream it.
2285         * lto-streamer-out.c (output_function): Likewise.
2286         * tree-inline.c (initialize_cfun): Do not copy it.
2287         * c-decl.c (store_parm_decls): Do not set it.
2288         * omp-low.c (create_task_copyfn): Likewise.
2289         * tree-optimize.c (tree_rest_of_compilation): Likewise.
2290
2291 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
2292
2293         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
2294         conditions.
2295         (*movdf_internal): Ditto.
2296         (*movdf_internal_nointeger): Ditto.
2297         (*movsf_internal): Ditto.
2298
2299 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
2300
2301         * c-decl.c (finish_decl): Don't call get_pending_sizes.
2302         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
2303         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
2304         (c_variable_size): Remove.
2305         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
2306         call put_pending_sizes.
2307         (get_parm_info): Add parameter expr.  Use it to set
2308         arg_info->pending_sizes.
2309         (store_parm_decls): Use arg_info->pending_sizes instead or calling
2310         get_pending_sizes.
2311         * c-parser.c (c_parser_parms_declarator): Update call to
2312         c_parser_parms_list_declarator.
2313         (c_parser_parms_list_declarator): Take parameter expr.  Update
2314         call to push_parm_decl.  Update recursive call.  Don't call
2315         get_pending_sizes.  Update calls to get_parm_info.
2316         (c_parser_objc_method_definition): Update calls to
2317         c_parser_objc_method_decl and objc_start_method_definition.
2318         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
2319         (c_parser_objc_method_decl): Add parameter expr.  Update call to
2320         grokparm.
2321         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
2322         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
2323         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
2324
2325 2011-05-05  Michael Hope  <michael.hope@linaro.org>
2326
2327         PR pch/45979
2328         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
2329         __ARM_EABI__ hosts.
2330
2331 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2332
2333         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
2334         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
2335         (spu_output_mi_thunk): New function.
2336
2337 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2338
2339         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
2340         targetm.asm_out.print_operand.
2341         * config/sol2.c: Include target.h.
2342
2343 2011-05-04  Jan Hubicka  <jh@suse.cz>
2344
2345         * ipa-inline.c (reset_edge_caches): New function.
2346         (update_caller_keys): Add check_inlinablity_for; do not
2347         reset edge caches; remove now unnecesary loop.
2348         (update_callee_keys): Add comments; reset node_growth_cache of callee.
2349         (update_all_callee_keys): Likewise.
2350         (inline_small_functions): Sanity check cache; update code
2351         recomputing it.
2352
2353 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
2354
2355         PR rtl-optimization/47612
2356         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
2357         as the last insn of the sequence to be moved.
2358
2359 2011-05-04  Tobias Burnus  <burnus@net-b.de>
2360
2361         PR fortran/48864
2362         * doc/invoke.texi (Ofast): Document that it
2363         enables Fortran's -fno-protect-parens.
2364
2365 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
2366
2367         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
2368
2369 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
2370
2371         * stor-layout.c (variable_size): Do not issue errors.
2372
2373 2011-05-04  Richard Guenther  <rguenther@suse.de>
2374
2375         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
2376         for array-ref indices.
2377         (tree_coverage_counter_addr): Likewise.
2378         (build_fn_info_type): Use size_int for index types.
2379         (build_gcov_info): Likewise.
2380
2381 2011-05-04  Richard Guenther  <rguenther@suse.de>
2382
2383         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
2384         to build_int_cst.
2385         * c-typeck.c (really_start_incremental_init): Use bitsize_int
2386         for constructor indices.
2387         (push_init_level): Likewise.
2388
2389 2011-05-04  Richard Guenther  <rguenther@suse.de>
2390
2391         * explow.c (promote_mode): Move variable declarations before code.
2392
2393 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
2394
2395         * tree.h (build_function_type_array): Declare.
2396         (build_varargs_function_type_array): Declare.
2397         (build_function_type_vec, build_varargs_function_type_vec): Define.
2398         * tree.c (build_function_type_array_1): New function.
2399         (build_function_type_array): New function.
2400         (build_varargs_function_type_array): New function.
2401
2402 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
2403
2404         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
2405         before setting STMT_VINFO_TYPE.
2406
2407 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2408
2409         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
2410         instead of spu_pass_by_reference.
2411
2412 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2413
2414         * calls.c (emit_library_call_value_1): Invoke
2415         promote_function_mode hook on libcall arguments.
2416         * explow.c (promote_function_mode, promote_mode): Handle TYPE
2417         argument being NULL.
2418         * targhooks.c (default_promote_function_mode): Lisewise.
2419         * config/s390/s390.c (s390_promote_function_mode): Likewise.
2420         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
2421
2422         * doc/tm.texi: Document that TYPE argument might be NULL.
2423
2424 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2425
2426         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
2427
2428 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2429
2430         From Bernd Schmidt
2431         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
2432
2433 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2434
2435         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
2436         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
2437         Move ...
2438         * mips-tfile.c: ... here.
2439         Don't include coretypes.h, tm.h, filenames.h.
2440         (saber_stop): Remove definition and all calls.
2441         [__SABER__]: Remove.
2442         (__LINE__): Remove default.
2443         (Size_t, Ptrdiff_t): Remove definitions.
2444         Replace by size_t, ptrdiff_t.
2445         [!MIPS_DEBUGGING_INFO]: Remove.
2446         (SHASH_SIZE, THASH_SIZE): Remove defaults.
2447         (progname): Add const.
2448         (STATIC): Remove.
2449         Replace all uses by static.
2450         (ALIGN_SYMTABLE_OFFSET): Remove default.
2451         * mips-tdump.c: Don't include coretypes.h, tm.h.
2452         Remove !MIPS_IS_STAB guard.
2453         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
2454         $(TM_H), filenames.h dependencies.
2455         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
2456
2457 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2458
2459         From Jie Zhang
2460         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
2461         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2462
2463 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2464
2465         From Bernd Schmidt
2466         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
2467         account and save/restore RETS.
2468         (PROFILE_BEFORE_PROLOGUE): Define.
2469         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
2470         the push insn to use predecrement.
2471
2472 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2473
2474         From Jie Zhang
2475         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
2476
2477 2011-05-04  Nick Clifton  <nickc@redhat.com>
2478
2479         * config/mn10300/mn10300.c: Include cfgloop.h.
2480         (DUMP): New macro.
2481         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
2482         Lcc or a FLcc insn into the instruction stream.
2483         (mn10300_block_contains_call): New function.  Returns true if the
2484         given basic block contains a CALL insn.
2485         (mn10300_loop_contains_call_insn): New function.  Returns true if
2486         the given loop contains a CALL insn.
2487         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
2488         to use the SETLB and Lcc or FLcc insns.
2489         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
2490         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
2491         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
2492         disable the SETLB optimization.
2493         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
2494         __SETLB__ or __NO_SETLB__.
2495         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
2496         (movsf_internal): Handle MDR register.
2497         (cmpsi): Make visible.
2498         (setlb): New pattern.
2499         (Lcc): New pattern.
2500         (FLcc): New pattern.
2501
2502 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
2503
2504         PR target/48860
2505         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
2506         for reg<->xmm moves.
2507         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
2508         (vec_concatv2di_rex64_sse): Ditto.
2509         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
2510         (*vec_extractv2di_1_rex64): Ditto.
2511
2512         Revert:
2513         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2514
2515         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2516         reg<->xmm moves.
2517         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
2518
2519 2011-05-04  Richard Guenther  <rguenther@suse.de>
2520
2521         * tree.h (int_const_binop): Remove notrunc argument.
2522         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
2523         create integer constants that are properly truncated.
2524         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2525         (const_binop): Remove zero notrunc argument to int_const_binop.
2526         (size_binop_loc): Likewise.
2527         (fold_div_compare): Likewise.
2528         (maybe_canonicalize_comparison_1): Likewise.
2529         (fold_comparison): Likewise.
2530         (fold_binary_loc): Likewise.
2531         (multiple_of_p): Likewise.
2532         * expr.c (store_constructor): Likewise.
2533         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2534         (maybe_fold_stmt_addition): Likewise.
2535         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2536         * stor-layout.c (layout_type): Likewise.
2537         * tree-data-ref.c (tree_fold_divides_p): Likewise.
2538         * tree-sra.c (build_ref_for_offset): Likewise.
2539         (build_user_friendly_ref_for_offset): Likewise.
2540         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2541         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2542         * tree-ssa-loop-niter.c (inverse): Likewise.
2543         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2544         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2545         * tree-switch-conversion.c (check_range): Likewise.
2546         (build_constructors): Likewise.
2547         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2548         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2549         (extract_range_from_assert): Likewise.
2550         (vrp_int_const_binop): Likewise.
2551         (extract_range_from_binary_expr): Likewise.
2552         (extract_range_from_unary_expr): Likewise.
2553         (check_array_ref): Likewise.
2554         (find_case_label_range): Likewise.
2555         (simplify_div_or_mod_using_ranges): Likewise.
2556         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2557         comparing case labels for merging.
2558
2559 2011-05-03  Mark Wielaard  <mjw@redhat.com>
2560
2561         * dwarf2out.c (debug_str_hash_forced): Removed.
2562         (gen_label_for_indirect_string): Removed.
2563         (get_debug_string_label): Removed.
2564         (AT_string_form): Generate label directly.
2565         (output_indirect_string): Test indirect_string_node for
2566         DW_FORM_strp instead of checking label and refcount.
2567         (prune_indirect_string): Removed.
2568         (prune_unused_types): Don't check debug_str_hash_forced or
2569         call prune_indirect_string.
2570
2571 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
2572
2573         PR other/48093
2574         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2575
2576 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
2577
2578         PR debug/47994
2579         PR debug/47919
2580         * combine.c (try_combine): Skip debug insns at m_split tests.
2581
2582 2011-04-26  Mark Wielaard  <mjw@redhat.com>
2583
2584         PR42288
2585         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2586         when info_section_emitted.
2587
2588 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
2589
2590         * config/mips/mips-opts.h: New.
2591         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2592         to mips-opts.h.
2593         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2594         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2595         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
2596         via opts pointer.
2597         * config/mips/mips.h (enum mips_code_readable_setting): Move to
2598         mips-opts.h.
2599         (mips_abi, mips_code_readable): Don't declare.
2600         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
2601         (mabi=): Use Enum and Var.
2602         (mips_abi): New Enum and EnumValue entries.
2603         (mcode-readable=): Use Enum and Var.
2604         (mips_code_readable_setting): New Enum and EnumValue entries.
2605         (mr10k-cache-barrier=): Use Enum and Var.
2606         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2607
2608 2011-05-03  Jan Hubicka  <jh@suse.cz>
2609
2610         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2611         replace hash by pointer map.
2612         (cgraph_node_set_element_def, cgraph_node_set_element,
2613         const_cgraph_node_set_element, varpool_node_set_element_def,
2614         varpool_node_set_element, const_varpool_node_set_element): Remove.
2615         (free_cgraph_node_set, free_varpool_node_set): New function.
2616         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2617         * tree-emutls.c: Free varpool node set.
2618         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2619         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2620         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2621         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2622         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2623         Move here from ipa.c; implement using pointer_map
2624         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2625         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2626         debug_cgraph_node_set, varpool_node_set_new,
2627         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2628         dump_varpool_node_set, debug_varpool_node_set):
2629         Move to ipa-uitls.c.
2630         * passes.c (ipa_write_summaries): Update.
2631
2632 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2633
2634         From Mike Frysinger:
2635         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2636         bf542/bf544/bf547/bf548/bf549.
2637
2638 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2639
2640         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2641
2642 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2643
2644         From Bernd Schmidt:
2645         * config/bfin/bfin.md (MOVCC): New mode_macro.
2646         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2647         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
2648         comments from generated assembly.
2649
2650 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2651
2652         From Bernd Schmidt
2653         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2654         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2655         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2656         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2657         * config/bfin/lib1funcs.asm (___muldi3): New function.
2658
2659 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2660
2661         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2662         build_function_type_list instead of build_function_type.
2663         Rearrange initialization of `args' to do so.
2664
2665 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2666
2667         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2668         instead of build_function_type.
2669
2670 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2671
2672         * config/rs6000/rs6000.c (spe_init_builtins): Call
2673         build_function_type_list instead of build_function_type.
2674         (paired_init_builtins, altivec_init_builtins): Likewise.
2675         (builtin_function_type): Likewise.
2676
2677 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2678
2679         * config/sh/sh.c (sh_media_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/sparc/sparc.c (sparc_file_end): Call
2685         build_function_type_list instead of build_function_type.
2686
2687 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2688
2689         * config/alpha/alpha.c (alpha_init_builtins): Call
2690         build_function_type_list instead of build_function_type.
2691
2692 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2693
2694         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2695         build_function_type_list instead of build_function_type.
2696
2697 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2698
2699         * config/iq2000/i2000.c (iq2000_init_builtins): Call
2700         build_function_type_list instead of build_function_type.
2701         Delete `endlink' variable.
2702
2703 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2704
2705         * config/avr/avr.c (avr_init_builtins): Call
2706         build_function_type_list instead of build_function_type.
2707
2708 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2709
2710         * config/picochip/picochip.c (picochip_init_builtins): Call
2711         build_function_type_list instead of build_function_type.
2712         Delete `endlink' variable.
2713
2714 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2715
2716         * config/bfin/bfin.c (bfin_init_builtins): Call
2717         build_function_type_list instead of build_function_type.
2718
2719 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2720
2721         From Bernd Schmidt
2722         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2723         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
2724
2725 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2726
2727         From Jie Zhang:
2728         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2729         libbffastfp overrides libgcc when -mfast-fp.
2730
2731 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2732
2733         Originally from Bernd Schmidt
2734         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2735         * config/bfin/bfin.c (override_options): Test it and error if
2736         TARGET_FDPIC.
2737
2738 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2739
2740         Originally From Bernd Schmidt
2741         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2742         FD-PIC.
2743
2744 2011-05-03  Jeff Law  <law@redhat.com>
2745
2746         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2747         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2748         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2749         than accessing AUX field directly.  Free the AUX field before
2750         clearing it.
2751         (thread_block, thread_through_loop_header): Likewise.
2752         (thread_single_edge, mark_threaded_blocks): Likewise.
2753         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
2754         (register_jump_thread): Do not attempt to thread to a NULL edge.
2755
2756 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
2757
2758         * function.c (init_function_start): Call decide_function_section.
2759         * varasm.c (decide_function_section): New function.
2760         (assemble_start_function): When not using
2761         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2762         or first_function_block_is_cold.
2763         * rtl.h (decide_function_section): Declare.
2764
2765 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2766             Jakub Jelinek  <jakub@redhat.com>
2767
2768         PR target/48774
2769         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2770         only succeed if req_mode is the same as set_mode.
2771
2772 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
2773
2774         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2775         * genemit.c (gen_exp): Handle RETURN.
2776         * emit-rtl.c (verify_rtx_sharing): Likewise.
2777         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2778         * rtl.c (copy_rtx): RETURN is shared.
2779         * rtl.h (enum global_rtl_index): Add GR_RETURN.
2780         (ret_rtx): New.
2781         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2782         * config/s390/s390.c (s390_emit_epilogue): Likewise.
2783         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2784         * config/cris/cris.c (cris_expand_return): Likewise.
2785         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2786         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2787         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2788         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2789         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2790         Likewise.
2791         * config/v850/v850.c (expand_epilogue): Likewise.
2792         * config/bfin/bfin.c (bfin_expand_call): Likewise.
2793         * config/arm/arm.md (epilogue): Likewise.
2794         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2795         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2796         variable to ret_reg.
2797
2798 2011-05-03  Richard Guenther  <rguenther@suse.de>
2799
2800         PR lto/48846
2801         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2802         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2803         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2804
2805 2011-05-03  Richard Guenther  <rguenther@suse.de>
2806
2807         * c-decl.c (grokdeclarator): Instead of looking at
2808         TREE_OVERFLOW check if the constant fits in the index type.
2809
2810 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2811
2812         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2813         (vec_store_lanes<mode><mode>): Likewise.
2814
2815 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2816
2817         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2818         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2819         convert_optab_index values.
2820         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2821         * genopinit.c (optabs): Initialize the new optabs.
2822         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2823         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2824         (expand_STORE_LANES): New functions.
2825         * tree.h (build_array_type_nelts): Declare.
2826         * tree.c (build_array_type_nelts): New function.
2827         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2828         (vect_model_load_cost): Likewise.
2829         (vect_store_lanes_supported, vect_load_lanes_supported)
2830         (vect_record_strided_load_vectors): Declare.
2831         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2832         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2833         (vect_transform_strided_load): Split out statement recording into...
2834         (vect_record_strided_load_vectors): ...this new function.
2835         * tree-vect-stmts.c (create_vector_array, read_vector_array)
2836         (write_vector_array, create_array_ref): New functions.
2837         (vect_model_store_cost): Add store_lanes_p argument.
2838         (vect_model_load_cost): Add load_lanes_p argument.
2839         (vectorizable_store): Try to use store-lanes functions for
2840         interleaved stores.
2841         (vectorizable_load): Likewise load-lanes and loads.
2842         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2843         to vect_model_store_cost.
2844         (vect_build_slp_tree): Likewise vect_model_load_cost.
2845
2846 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2847
2848         * hooks.h (hook_bool_mode_uhwi_false): Declare.
2849         * hooks.c (hook_bool_mode_uhwi_false): New function.
2850         * target.def (array_mode_supported_p): New hook.
2851         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2852         * doc/tm.texi: Regenerate.
2853         * stor-layout.c (mode_for_array): New function.
2854         (layout_type): Use it.
2855         * config/arm/arm.c (arm_array_mode_supported_p): New function.
2856         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2857
2858 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
2859
2860         PR target/48723
2861         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2862         for -fstack-check if the size to allocate is negative.
2863
2864 2011-05-02  Lawrence Crowl  <crowl@google.com>
2865
2866         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2867         (timevar_cond_start): New for starting a timer only when it is not
2868         already running.
2869         (timevar_cond_stop): New for stopping a timer when it was not already
2870         running.
2871
2872         * timevar.c (timevar_stop): Enable start/stop timers to start again.
2873         (timevar_cond_start): New as above.
2874         (timevar_cond_stop): New as above.
2875
2876         * timevar.def: Add start/stop timers for compiler phases,
2877         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2878         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2879         and TV_PHASE_FINALIZE.
2880         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2881         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2882         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2883         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2884         Make unused TV_OVERLOAD into a start/stop timer.
2885
2886         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2887         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2888         to indicate that they are start/stop timers.
2889
2890         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2891         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2892         Move initialization to do_compile.
2893         (do_compile): Add initialization from above.
2894         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2895
2896         * c-decl.c (c_write_global_declarations): Add start/stop of
2897         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2898
2899         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2900         or TV_PARSE_INLINE, as appropriate.
2901         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2902         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2903
2904 2011-05-02  Jason Merrill  <jason@redhat.com>
2905
2906         PR c++/40975
2907         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2908
2909 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
2910
2911         PR c/35445
2912         * c-decl.c (finish_decl): Only create a composite if the types are
2913         compatible.
2914
2915 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
2916
2917         * config/fr30/fr30-protos.h (Mmode): Don't define.
2918         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
2919         definition where used.
2920         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2921         define.  Expand definitions where used.
2922         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2923         Expand definitions where used.
2924         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2925         rx_function_arg, rx_function_arg_advance,
2926         rx_function_arg_boundary): Expand definitions of those macros.
2927         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
2928         definition where used.
2929
2930 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2931
2932         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2933         reg<->xmm moves.
2934         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2935         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
2936         with *movv2sf_internal_rex64_avx.
2937         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2938         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2939         Use %v prefix in insn mnemonic to handle TARGET_AVX.
2940         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
2941         "vex" in "prefix" attribute calculation.
2942         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
2943
2944 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
2945
2946         PR target/47951
2947         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2948         inputs match the output.
2949
2950 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
2951
2952         PR target/47955
2953         * config/m68k/m68k.c (m68k_expand_prologue): Set
2954         current_function_static_stack_size.
2955
2956 2011-05-02   Jan Hubicka  <jh@suse.cz>
2957
2958         * lto-streamer.c (lto_streamer_cache_insert_1,
2959         lto_streamer_cache_lookup, lto_streamer_cache_create,
2960         lto_streamer_cache_delete): Use pointer map instead of hashtable.
2961         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2962
2963 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
2964
2965         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2966         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2967         config/m68k/t-opts: New files.
2968         * config/m68k/m68k-tables.opt: New file (generated).
2969         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2970         extra_options and m68k/t-opts to tmake_file.
2971         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2972         (all_isas): Initialize using m68k-isas.def.
2973         (all_microarchs): Initialize using m68k-microarchs.def.
2974         (m68k_find_selection): Remove.
2975         (m68k_handle_option): Don't assert that global structures are in
2976         use.  Use error_at.  Access variables via opts pointer.  Don't
2977         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
2978         directly for -m68020-40 and -m68020-60.
2979         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2980         m68k_tune_entry here.
2981         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2982         to m68k-opts.h.
2983         (m68k_library_id_string): Remove declaration.
2984         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2985         (m68k_library_id_string): New Variable.
2986         (march=, mcpu=, mtune=): Use Enum and Var.
2987
2988 2011-05-02  Richard Guenther  <rguenther@suse.de>
2989
2990         * varasm.c (output_constructor_regular_field): Compute zero-based
2991         index with double-ints.  Make sure to ICE instead of producing
2992         wrong code.
2993         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2994         in asserts.  Properly use a signed type.
2995
2996 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2997
2998         * config/i386/sse.md (V): New mode iterator.
2999         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
3000         TARGET_SSE2.
3001         (V_256): Rename from AVX256MODE.
3002         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
3003         condition to all users.
3004         (VF1): Ditto.
3005         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
3006         condition to all users.
3007         (VF_128): Make V4SF mode unconditional.
3008         (VF_256): Rename from AVX256MODEF2P.
3009         (VI4F_128): Rename from SSEMODE4S.
3010         (VI8F_128): Rename from SSEMODE2D.
3011         (VI4F_256): Rename from AVX256MODE8P.
3012         (VI8F_256): Rename from AVX256MODE4P.
3013         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3014         (ssescalarmodesuffix): Remove SF and DF modes.
3015         (SSEMODE124): Remove.
3016         (SSEMODE1248): Ditto.
3017         (SSEMODEF2P): Ditto.
3018         (AVXMODEF2P): Ditto.
3019         (AVXMODEFDP): Ditto.
3020         (AVXMODEFSP): Ditto.
3021         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
3022         unconditional.
3023         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
3024         unconditional.
3025         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
3026         xop_pcmov_<mode>256.  Use V mode iterator.
3027
3028         Adjust RTX patterns globally for renamed mode attributes.
3029
3030 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3031
3032         * haifa-sched.c (sched_emit_insn): Emit insn before first
3033         non-scheduled insn.  Inform back-end about new insn.  Add
3034         new insn to scheduled_insns list.
3035
3036 2011-05-02  Richard Guenther  <rguenther@suse.de>
3037
3038         PR tree-optimization/48822
3039         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
3040         (process_scc): Indicate which iteration we start.
3041
3042 2011-05-02  Jan Hubicka  <jh@suse.cz>
3043
3044         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
3045         (lto_section_overrun): New.
3046         * lto-section-out.c (append_block): Rename to ...
3047         (lto_append_block): ... this one; export.
3048         (lto_output_1_stream): Move lto lto-streamer.h
3049         (lto_output_data_stream): Update.
3050         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
3051         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
3052         functions.
3053
3054 2011-05-02  Richard Guenther  <rguenther@suse.de>
3055
3056         * tree.c (tree_code_counts): New global array.
3057         (record_node_allocation_statistics): Count individual tree codes.
3058         (dump_tree_statistics): Dump individual code stats.
3059
3060 2011-05-01  Jan Hubicka  <jh@suse.cz>
3061
3062         * ipa-inline.c (caller_growth_limits): Fix thinko when
3063         looking for largest stack frame.
3064         * ipa-inline.h (dump_inline_summary): Declare.
3065         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
3066         on stack usage.
3067         (dump_inline_summary): Export.
3068         (debug_inline_summary): Declare as DEBUG_FUNCTION.
3069
3070 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
3071
3072         * reginfo.c (memory_move_cost): Change rclass argument type form
3073         'enum reg_class' to reg_class_t.
3074         * reload.h (memory_move_cost): Update prototype.
3075         * postreload.c reload_cse_simplify_set): Change type dclass var to
3076         reg_class_t.
3077         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
3078         Update prototype.
3079         (ira_allocate_and_set_costs): Change aclass argument type form
3080         'enum reg_class' to reg_class_t.
3081         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
3082         Change aclass argument type to reg_class_t.
3083         (update_conflict_hard_reg_costs): Change type aclass and pref vars
3084         to reg_class_t.
3085         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
3086         memory_move_cost call.
3087
3088         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
3089         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
3090         Change type tmp var to reg_class_t.
3091
3092 2011-04-30  Jan Hubicka  <jh@suse.cz>
3093
3094         * ipa-inline.c (can_inline_edge_p): Disregard limits when
3095         inlining into function with flatten attribute.
3096         (want_inline_small_function_p): Be more realistic about inlining
3097         cold calls where callee size grows.
3098
3099 2011-04-30  Jan Hubicka  <jh@suse.cz>
3100
3101         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
3102         flags.
3103
3104 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
3105
3106         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3107         PRINT_OPERAND_PUNCT_VALID_P): Remove.
3108         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
3109         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
3110         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3111         (print_operand): Rename to...
3112         (sparc_print_operand): ...this. Make static. Adjust
3113         sparc_print_operand function call.
3114         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
3115         functions.
3116
3117 2011-04-30  Jan Hubicka  <jh@suse.cz>
3118
3119         PR middle-end/48752
3120         * ipa-inline.c (early_inliner): Disable when doing late
3121         addition of function.
3122
3123 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
3124
3125         * dwarf2out.c (get_address_mode): New inline.
3126         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
3127         if not dwarf_strict emit
3128         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
3129         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
3130         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
3131         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
3132         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
3133         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
3134         mem_loc_descriptor callers.
3135         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3136         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
3137         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
3138         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
3139         (base_types): New variable.
3140         (get_base_type_offset, calc_base_type_die_sizes,
3141         base_type_for_mode, mark_base_types, base_type_cmp,
3142         move_marked_base_types): New functions.
3143         (calc_die_sizes): Assert that die_offset is 0 or equal to
3144         next_die_offset.
3145         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
3146         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
3147         callers.  If not dwarf_strict, call mem_loc_descriptor even for
3148         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
3149         (gen_subprogram_die): Don't give up on call site parameters
3150         with non-integral or large integral modes.  Adjust
3151         mem_loc_descriptor callers.
3152         (prune_unused_types): Call prune_unused_types_mark on base_types
3153         vector entries.
3154         (resolve_addr): Call mark_base_types.
3155         (dwarf2out_finish): Call move_marked_base_types.
3156
3157         PR tree-optimization/48809
3158         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
3159         type.
3160         (gen_inbound_check): Don't compute index_expr - range_min in utype
3161         again, instead reuse SSA_NAME initialized in build_arrays.
3162         Remove two useless gsi_for_stmt calls.
3163
3164 2011-04-29  Jeff Law  <law@redhat.com>
3165
3166         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
3167
3168 2011-04-29  Martin Jambor  <mjambor@suse.cz>
3169
3170         * cgraph.h (cgraph_postorder): Remove declaration.
3171         * ipa-utils.h (ipa_free_postorder_info): Declare.
3172         (ipa_reverse_postorder): Likewise.
3173         * cgraphunit.c: Include ipa-utils.h.
3174         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
3175         * ipa-inline.c: Include ipa-utils.h.
3176         (ipa_inline): Update call to ipa_reverse_postorder.
3177         * ipa-pure-const.c (propagate_pure_const): Update call to
3178         ipa_reduced_postorder and ipa_print_order.  Call
3179         ipa_free_postorder_info to clean up.
3180         (propagate_nothrow): Likewise.
3181         * ipa-reference.c (propagate): Removed a useless call to
3182         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
3183         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
3184         * ipa.c: Include ipa-utils.h.
3185         (ipa_profile): Update call to ipa_reverse_postorder.
3186         (cgraph_postorder): Moved to...
3187         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
3188         (ipa_utils_print_order): Renamed to ipa_print_order.
3189         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
3190         comments.
3191         (ipa_free_postorder_info): New function.
3192         * passes.c: Include ipa-utils.h.
3193         (do_per_function_toporder): Update call to ipa_reverse_postorder.
3194         (ipa_write_summaries): Likewise.
3195         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
3196         (cgraphunit.o): Likewise.
3197         (ipa.o): Likewise.
3198         (ipa-inline.o): Likewise.
3199
3200 2011-04-29  Jan Hubicka  <jh@suse.cz>
3201
3202         * gcc.dg/tree-ssa/inline-10.c: New testcase.
3203         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
3204         * ipa-inline.h (clause_t): Turn into unsigned int.
3205         * ipa-inline-analysis.c (add_clause): Do more simplification.
3206         (and_predicates): Shortcut more cases.
3207         (predicates_equal_p): Move forward; check that clauses are properly
3208         ordered.
3209         (or_predicates): Shortcut more cases.
3210         (edge_execution_predicate): Rewrite as...
3211         (set_cond_stmt_execution_predicate): ... this function; handle
3212         __builtin_constant_p.
3213         (set_switch_stmt_execution_predicate): New .
3214         (compute_bb_predicates): New.
3215         (will_be_nonconstant_predicate): Update TODO.
3216         (estimate_function_body_sizes): Use compute_bb_predicates
3217         and free them later, always try to estimate if stmt is constant.
3218         (estimate_time_after_inlining, estimate_size_after_inlining):
3219         Gracefully handle optimized out edges.
3220         (read_predicate): Fix off by one error.
3221
3222 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
3223
3224         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
3225
3226 2011-04-27  Xinliang David Li  <davidxl@google.com>
3227
3228         * tree-profile.c (init_ic_make_global_vars): Set
3229         tls attribute on ic vars.
3230         * coverage.c (coverage_end_function): Initialize
3231         function_list with zero.
3232
3233 2011-04-29  Richard Guenther  <rguenther@suse.de>
3234
3235         * builtins.c (fold_builtin_classify_type): Use integer_type_node
3236         for the type of the result.
3237         (fold_builtin_isascii): Likewise.
3238         (fold_builtin_toascii): Use integer_type_node where appropriate.
3239         (fold_builtin_logb): Likewise.
3240         (fold_builtin_frexp): Likewise.
3241         (fold_builtin_strstr): Likewise.
3242         (fold_builtin_strpbrk): Likewise.
3243         (fold_builtin_fputs): Likewise.
3244         (fold_builtin_sprintf): Likewise.
3245         (fold_builtin_snprintf): Likewise.
3246         (fold_builtin_printf): Likewise.
3247         (do_mpfr_remquo): Use a proper type for the assigned constant.
3248         (do_mpfr_lgamma_r): Likewise.
3249         * dwarf2out.c (resolve_one_addr): Use size_int.
3250         * except.c (init_eh): Likewise.
3251         (assign_filter_values): Use integer_type_node for filter values.
3252         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
3253         indices.
3254         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
3255         for EH region numbers.
3256         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
3257         for the shift amount.
3258
3259 2011-04-29  Richard Guenther  <rguenther@suse.de>
3260
3261         * expr.h (expand_shift): Rename to ...
3262         (expand_variable_shift): ... this.
3263         (expand_shift): Take a constant shift amount.
3264         * expmed.c (expand_shift): Rename to ...
3265         (expand_variable_shift): ... this.
3266         (expand_shift): New wrapper around expand_variable_shift.
3267         * expr.c (convert_move, emit_group_load_1, emit_group_store,
3268         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
3269         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
3270         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
3271         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
3272         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
3273         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
3274         emit_store_flag_1, emit_store_flag): Likewise.
3275         * builtins.c (expand_builtin_signbit): Likewise.
3276         * calls.c (load_register_parameters): Likewise.
3277         * function.c (assign_parm_setup_block): Likewise.
3278         * lower-subreg.c (resolve_shift_zext): Likewise.
3279         * optabs.c (widen_bswap, expand_abs_nojump,
3280         expand_one_cmpl_abs_nojump, expand_float): Likewise.
3281         * spu/spu.c (spu_expand_extv): Likewise.
3282         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3283
3284 2011-04-29  Richard Guenther  <rguenther@suse.de>
3285
3286         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
3287         for the remapped region number.
3288         * predict.c (build_predict_expr): Use integer_type_node for the
3289         predict kind.
3290         * fold-const.c (fold_binary_loc): Use integer_type_node for
3291         the shift amount.  Use a proper type for the PLUS_EXPR operand.
3292
3293 2011-04-29  Michael Matz  <matz@suse.de>
3294
3295         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
3296         other trees that just builtins.
3297         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
3298
3299 2011-04-29  Richard Guenther  <rguenther@suse.de>
3300
3301         * tree-nested.c (get_trampoline_type): Use size_int.
3302         (get_nl_goto_field): Likewise.
3303         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
3304         for all indexes.
3305         (lower_eh_constructs_2): Likewise.
3306         (lower_resx): Likewise.
3307         (lower_eh_dispatch): Likewise.
3308         * tree-mudflap.c (mf_build_string): Use size_int.
3309         (mudflap_register_call): Use integer_type_node for the flag.
3310         (mudflap_enqueue_constant): Use size_int.
3311         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
3312         instead of rebuilding it.
3313
3314 2011-04-29  Richard Guenther  <rguenther@suse.de>
3315
3316         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
3317         Handle OBJ_TYPE_REF.
3318         (find_func_aliases_for_call): Use it more consistently.
3319
3320 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
3321
3322         * haifa-sched.c (last_nondebug_scheduled_insn): New.
3323         (rank_for_schedule): Use it.
3324         (schedule_block): Set it.
3325
3326 2011-04-28  David Li  <davidxl@google.com>
3327
3328         * tree.c (crc32_string): Use crc32_byte.
3329         (crc32_byte): New function.
3330         * tree.h (crc32_byte): New function.
3331         * gcov.c (read_graph_file): Handle new cfg_cksum.
3332         (read_count_file): Ditto.
3333         * profile.c (instrument_values): Ditto.
3334         (get_exec_counts): Ditto.
3335         (read_profile_edge_counts): Ditto.
3336         (compute_branch_probabilities): Ditto.
3337         (compute_value_histograms): Ditto.
3338         (branch_prob): Ditto.
3339         (end_branch_prob): Ditto.
3340         * coverage.c (read_counts_file): Ditto.
3341         (get_coverage_counts): Ditto.
3342         (tree_coverage_counter_addr): Ditto.
3343         (coverage_checksum_string): Ditto.
3344         (coverage_begin_output): Ditto.
3345         (coverage_end_function): Ditto.
3346         (build_fn_info_type): Ditto.
3347         (build_fn_info_value): Ditto.
3348         * libgcov.c (gcov_exit): Ditto.
3349         * gcov-dump.c (tag_function): Ditto.
3350         (compute_checksum): Remove.
3351
3352 2011-04-29  Alan Modra  <amodra@gmail.com>
3353
3354         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3355         unspec plus offset.  Tidy macho code.
3356
3357 2011-04-29  Martin Jambor  <mjambor@suse.cz>
3358
3359         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
3360         node instead of a decl.  Update all callers.
3361         * cgraph.h: Update declaration.
3362
3363 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
3364
3365         PR tree-optimization/48765
3366         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
3367         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
3368         to indicate if loop aware SLP is being used.  Scan the statements
3369         and update the vectorization factor according to the type of
3370         vectorization before statement analysis.
3371         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
3372         pass it to vect_analyze_loop_operations.
3373         (vectorizable_reduction): Set number of copies to 1 in case of pure
3374         SLP statement.
3375         * tree-vect-stmts.c (vectorizable_conversion,
3376         vectorizable_assignment, vectorizable_shift,
3377         vectorizable_operation, vectorizable_type_demotion,
3378         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
3379         Likewise.
3380         (vectorizable_condition): Move the check that it is not SLP
3381         vectorization before the number of copies check.
3382         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
3383         to vectorize the loop using SLP.
3384
3385 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
3386
3387         PR middle-end/48597
3388         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
3389         inline asm.
3390
3391 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
3392
3393         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
3394         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
3395         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3396         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3397         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
3398         linux*.h headers.
3399         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
3400         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3401         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3402         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3403         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3404         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
3405         REG_NAME.
3406         * config/i386/linux.h (REG_NAME): Don't define.
3407         * config/i386/linux64.h (REG_NAME): Don't define.
3408         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
3409         Undefine before defining.
3410
3411 2011-04-28  Jan Hubicka  <jh@suse.cz>
3412
3413         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
3414         nonconstant_names array.
3415         (estimate_function_body_sizes): Build nonconstant_names array; handle
3416         BUILT_IN_CONSTANT_P.
3417
3418 2011-04-28  Richard Guenther  <rguenther@suse.de>
3419
3420         PR bootstrap/48804
3421         Revert
3422         2011-04-28  Richard Guenther  <rguenther@suse.de>
3423
3424         * tree-ssa-structalias.c (solve_constraints): Build succ graph
3425         as late as possible.
3426
3427 2011-04-28  Richard Guenther  <rguenther@suse.de>
3428
3429         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
3430         (debug_constraint): Do it here.
3431         (dump_constraints): And here.
3432         (rewrite_constraints): And here.
3433         (dump_constraint_edge): Remove.
3434         (dump_constraint_graph): Rewrite to produce DOT output.
3435         (solve_constraints): Build succ graph as late as possible.
3436         Dump constraint graphs before and after solving.
3437
3438 2011-04-28  Richard Guenther  <rguenther@suse.de>
3439
3440         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3441         New function split out from ...
3442         (find_func_aliases): ... here.  Call it.
3443         (find_func_aliases_for_call): Likewise.
3444
3445 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3446
3447         * internal-fn.h (internal_fn_name_array): Declare.
3448         (internal_fn_flags_array): Likewise.
3449
3450 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
3451
3452         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
3453         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
3454         Move from sse.md.
3455         (ssemodefsuffix): Remove.
3456         (ssevecmodesuffix): New mode attribute.
3457         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
3458         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3459         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3460         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3461         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
3462         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
3463         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
3464         ssemodesuffix mode attribute.
3465         (float splitters): Use ssevecmodesuffix mode attribute.
3466         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
3467         (sseinsmode): Rename from avxvecmode.
3468         (avxsizesuffix): Rename from avxmodesuffix.
3469         (sseintvecmode): Rename from avxpermvecmode.
3470         (ssedoublevecmode): Rename from ssedoublesizemode.
3471         (ssehalfvecmode): Rename from avxhalfvecmode.
3472         (ssescalarmode): Rename from avxscalarmode.
3473         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
3474         templates for ssemodesuffix mode attribute.
3475         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
3476         mode attribute.
3477
3478         Adjust RTX patterns globally for renamed mode attributes.
3479
3480 2011-04-27  Jan Hubcika  <jh@suse.cz>
3481
3482         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
3483         * ipa-inline-analysis.c: Include alloc-pool.h.
3484         (edge_predicate_pool): New.
3485         (trye_predicate_p): New function
3486         (false_predicate_p): New function.
3487         (add_clause): Sanity check that false clauses are "optimized";
3488         never add clauses to predicate that is already known to be false.
3489         (and_predicate): Use flase_predicate_p.
3490         (evaulate_predicate): Rename to ...
3491         (evaluate_predicate): ... this one; update all callers; assert
3492         that false is not listed among possible truths.
3493         (dump_predicate): Use true_predicate_p.
3494         (account_size_time): Use false_predicate_p.
3495         (evaulate_conditions_for_edge): Rename to ...
3496         (evaluate_conditions_for_edge) ... this one.
3497         (edge_set_predicate): New function.
3498         (inline_edge_duplication_hook): Duplicate edge predicates.
3499         (inline_edge_removal_hook): Free edge predicates.
3500         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
3501         (dump_inline_summary): Update.
3502         (estimate_function_body_sizes): Set edge predicates.
3503         (estimate_calls_size_and_time): Handle predicates.
3504         (estimate_callee_size_and_time): Update.
3505         (remap_predicate): Add toplev_predicate; update comment.
3506         (remap_edge_predicates): New function.
3507         (inline_merge_summary): Compute toplev predicate; update.
3508         (read_predicate): New function.
3509         (read_inline_edge_summary): Use it.
3510         (inline_read_section): Likewise.
3511         (write_predicate): New function.
3512         (write_inline_edge_summary): Use it.
3513         (inline_write_summary): Likewise.
3514         (inline_free_summary): Free alloc pool and edge summary vec.
3515
3516 2011-04-27  Richard Guenther  <rguenther@suse.de>
3517
3518         * tree-ssa-structalias.c (changed_count): Remove.
3519         (changed): Use a bitmap.
3520         (unify_nodes): Adjust.
3521         (do_sd_constraint): Likewise.
3522         (do_ds_constraint): Likewise.
3523         (do_complex_constraint): Likewise.
3524         (solve_graph): Likewise.
3525
3526 2011-04-27  Jan Hubicka  <jh@suse.cz>
3527
3528         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3529
3530 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
3531
3532         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3533         (avx_vperm2f128_*_operand): Ditto.
3534         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3535         Use avx_vpermilp_parallel in insn condition.
3536         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3537         Use avx_vperm2f128_parallel in insn condition.
3538
3539 2011-04-27  Richard Guenther  <rguenther@suse.de>
3540
3541         * Makefile.in (tree-ssa-structalias.o): Remove
3542         gt-tree-ssa-structalias.h dependency.
3543         (GTFILES): Remove tree-ssa-structalias.c.
3544         * tree.c (allocate_decl_uid): New function.
3545         (make_node_stat): Use it.
3546         (copy_node_stat): Likewise.
3547         * tree.h (allocate_decl_uid): Declare.
3548         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3549         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3550         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
3551         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
3552         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3553         (struct heapvar_map): Likewise.
3554         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3555         heapvar_insert): Likewise.
3556         (make_heapvar_for): Rename to ...
3557         (make_heapvar): ... this.  Simplify.
3558         (fake_var_decl_obstack): New global var.
3559         (build_fake_var_decl): New function.
3560         (make_constraint_from_heapvar): Adjust.
3561         (handle_lhs_call): Likewise.
3562         (create_function_info_for): Likewise.
3563         (intra_create_variable_infos): Likewise.
3564         (init_alias_vars): Allocate fake_var_decl_obstack.
3565         (init_alias_heapvars, delete_alias_heapvars): Remove.
3566         (compute_points_to_sets): Do not call init_alias_heapvars.
3567         (ipa_pta_execute): Likewise.
3568         (delete_points_to_sets): Free fake_var_decl_obstack.
3569
3570 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3571
3572         * config/spu/divmovti4.c (union qword_UTItype): New data type.
3573         (si_from_UTItype, si_to_UTItype): New functions.
3574         (__udivmodti4): Use them to implement type-punning.
3575         * config/spu/multi3.c (union qword_TItype): New data type.
3576         (si_from_TItype, si_to_TItype): New functions.
3577         (__multi3): Use them to implement type-punning.
3578
3579 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3580
3581         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3582
3583 2011-04-27  Jan Hubicka  <jh@suse.cz>
3584
3585         * ipa-prop.c (function_insertion_hook_holder): New holder.
3586         (ipa_add_new_function): New function.
3587         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3588         Register/deregister holder.
3589
3590 2011-04-27  Richard Guenther  <rguenther@suse.de>
3591
3592         PR tree-optimization/48772
3593         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
3594
3595 2011-04-27  Richard Guenther  <rguenther@suse.de>
3596
3597         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3598         TARGET_MEM_REF handling.
3599
3600 2011-04-27  Nick Clifton  <nickc@redhat.com>
3601
3602         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3603         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3604         (REG_CLASS_NAMES): Likewise.
3605         (REG_CLASS_CONTENTS): Likewise.
3606         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
3607         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
3608         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
3609         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
3610         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
3611         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3612         duplicate register classes.
3613         (frv_class_likely_spilled_p): Likewise.
3614         (frv_register_move_cost): Likewise.
3615
3616         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3617         end of the regno_reg_class array.
3618
3619 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
3620
3621         PR c/48742
3622         * c-typeck.c (build_binary_op): Don't wrap arguments if
3623         int_operands is true.
3624
3625 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
3626
3627         PR target/48767
3628         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3629         targetm.calls.must_pass_in_stack for void type.
3630
3631 2011-04-26  Jan Hubicka  <jh@suse.cz>
3632
3633         * cgraphbuild.c (build_cgraph_edges): Update call
3634         of cgraph_create_edge and cgraph_create_indirect_edge.
3635         * cgraph.c (cgraph_create_edge_including_clones,
3636         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3637         cgraph_update_edges_for_call_stmt_node): Do not take nest
3638         argument; do not initialize call_stmt_size/time.
3639         (dump_cgraph_node): Do not dump nest.
3640         (cgraph_clone_edge): Do not take loop_nest argument;
3641         do not propagate it; do not clone call_stmt_size/time.
3642         (cgraph_clone_node): Likewise.
3643         (cgraph_create_virtual_clone): Update.
3644         * cgraph.h (struct cgraph_edge): Remove
3645         call_stmt_size/call_stmt_time/loop_nest.
3646         (cgraph_create_edge, cgraph_create_indirect_edge,
3647         cgraph_create_edge_including_clones, cgraph_clone_node): Update
3648         prototype.
3649         * tree-emutls.c (gen_emutls_addr): Update.
3650         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3651         loop_nest; handle indirect calls, too.
3652         (clone_inlined_nodes): Do not care about updating inline summaries.
3653         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3654         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3655         stream call_stmt_size/call_stmt_time/loop_nest.
3656         * ipa-inline.c (edge_badness): Update.
3657         (ipa_inline): dump summaries after inlining.
3658         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3659         New.
3660         (inline_edge_summary): New function.
3661         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3662         (inline_edge_removal_hook): Handle edge summaries.
3663         (inline_edge_duplication_hook): New hook.
3664         (inline_summary_alloc): Alloc hooks.
3665         (initialize_growth_caches): Do not register removal hooks.
3666         (free_growth_caches); Do not free removal hook.
3667         (dump_inline_edge_summary): New function.
3668         (dump_inline_summary): Use it.
3669         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3670         (inline_update_callee_summaries): New function.
3671         (inline_merge_summary): Use it.
3672         (do_estimate_edge_time, do_estimate_edge_growth): Update.
3673         (read_inline_edge_summary): New function.
3674         (inline_read_section): Use it.
3675         (write_inline_edge_summary): New function.
3676         (inline_write_summary): Use it.
3677         (inline_free_summary): Free edge new holders.
3678         * tree-inline.c (copy_bb): Update.
3679
3680 2011-04-26  Jason Merrill  <jason@redhat.com>
3681
3682         * tree-eh.c (lower_try_finally_switch): Create the label along with
3683         the CASE_LABEL_EXPR.
3684
3685 2011-04-26  David S. Miller  <davem@davemloft.net>
3686             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3687
3688         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3689         * configure: Regenerate.
3690
3691 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
3692
3693         PR target/48258
3694         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3695         reduction.
3696         (VEC_reduc): New code iterator and splitters for vector reduction.
3697         (VEC_reduc_name): Ditto.
3698         (VEC_reduc_rtx): Ditto.
3699         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3700         (reduc_<VEC_reduc_name>_v4sf): Ditto.
3701
3702         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3703         support for extracting SF on VSX.
3704
3705         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3706         generating xscvspdp.
3707         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3708         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3709         double add, minimum, maximum vector reduction.
3710         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3711         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3712         optimize double vector reduction.
3713         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3714
3715 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
3716
3717         * config/fr30/fr30.h (inhibit_libc): Don't define.
3718         * config/m32r/m32r-protos.h: Correct comment.
3719         * config/v850/v850.h (GHS_default_section_names,
3720         GHS_current_section_names): Use tree, not union tree_node *.
3721
3722 2011-04-26  Xinliang David Li  <davidxl@google.com>
3723
3724         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
3725         * c-family/c-opts.c (c_common_handle_option): Set
3726         warn_maybe_uninitialized.
3727         * opts.c (common_handle_option): Ditto.
3728         * common.opt:  New option.
3729         * tree-ssa.c (warn_uninit): Add one more parameter.
3730         (warn_uninitialized_var): Pass warning code.
3731         * tree-flow.h: Interface change.
3732
3733
3734 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3735
3736         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3737         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3738         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3739
3740 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3741
3742         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3743         * config/mips/mips.opt (mmips-tfile): Remove.
3744
3745         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3746         mips-tdump reference to ...
3747         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
3748         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3749         reference by Tru64 UNIX.
3750
3751 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
3752
3753         PR debug/48768
3754         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3755         is error_mark_node, set value to NULL.
3756
3757         PR tree-optimization/48734
3758         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3759         if return value from maybe_fold_*_comparsions isn't something
3760         the code is prepared to handle.
3761
3762 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
3763
3764         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3765         mode check.
3766         (ext_QIreg_nomode_operands): Remove.
3767         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3768         (*andsi_1): Ditto.
3769         (*andhi_1): Ditto.
3770
3771 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
3772
3773         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3774
3775 2011-04-26  Richard Guenther  <rguenther@suse.de>
3776
3777         * c-typeck.c (build_unary_op): Do not expand array-refs via
3778         pointer arithmetic.  Only adjust qualifiers for function types.
3779
3780 2011-04-26  Richard Guenther  <rguenther@suse.de>
3781
3782         PR middle-end/48694
3783         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3784         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3785         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
3786         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3787
3788 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
3789
3790         * doc/extend.texi: Document __underlying_type.
3791
3792 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
3793
3794         * config/rs6000/titan.md (automata_option "progress"): Remove.
3795
3796 2011-04-25  Jeff Law  <law@redhat.com>
3797
3798         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3799
3800 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
3801
3802         * system.h (ENUM_BITFIELD): Remove.
3803
3804 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
3805             Eric Botcazou  <ebotcazou@adacore.com>
3806
3807         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3808         for STORE_FLAG_VALUE==-1 case.
3809
3810 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
3811
3812         PR target/43804
3813         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3814         LEGITIMATE_PIC_OPERAND_P.
3815
3816 2011-04-24  Jan Hubicka  <jh@suse.cz>
3817
3818         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3819         WPA hack.
3820         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3821         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3822         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3823         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3824         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3825         Sanity check predicate length.
3826         (remap_predicate): Likewise; sanity check jump functions.
3827         (inline_read_section, inline_write_summary): Sanity check
3828         predicate length.
3829
3830 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
3831
3832         PR other/48748
3833         * doc/extend.texi (Type Traits): Document __is_standard_layout,
3834         __is_literal_type, and __is_trivial; update throughout about
3835         possibly cv-qualified void types.
3836
3837 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
3838
3839         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3840         testsuite and make it version agnostic.
3841
3842 2011-04-22  Jan Hubicka  <jh@suse.cz>
3843
3844         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3845
3846 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
3847
3848         PR c/48685
3849         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3850         to VOID_TYPE even around MODIFY_EXPR.
3851
3852 2011-04-22  Mike Stump  <mikestump@comcast.net>
3853
3854         * gensupport.c (read_md_rtx): Fix typo in comment.
3855         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3856         comment.
3857
3858 2011-04-22  Jan Hubicka  <jh@suse.cz>
3859
3860         * gengtype.c (open_base_files): Add ipa-inline.h include.
3861         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3862         ipa-prop.c; update all uses.
3863         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3864         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3865         merge summary of inlined function into former caller.
3866         * ipa-inline.c (max_benefit): Remove.
3867         (edge_badness): Compensate for removal of benefits.
3868         (update_caller_keys): Use
3869         reset_node_growth_cache/reset_edge_growth_cache.
3870         (update_callee_keys): Likewise.
3871         (update_all_callee_keys): Likewise.
3872         (inline_small_functions): Do not collect max_benefit; do not reset
3873         estimated_growth; call free_growth_caches and initialize_growth_caches.
3874         * ipa-inline.h (struct condition, type clause_t, struct predicate,
3875         struct size_time_entry): New structures.
3876         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3877         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3878         and estimated_growth.
3879         (edge_growth_cache_entry): New structure.
3880         (node_growth_cache, edge_growth_cache): New global vars.
3881         (estimate_growth): Turn into inline.
3882         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3883         initialize_growth_caches, free_growth_caches): Declare.
3884         (estimate_edge_growth): Rewrite.
3885         (estimate_edge_time): Implement as inline cache lookup.
3886         (reset_node_growth_cache, reset_edge_growth_cache): New inline
3887         functions.
3888         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3889         (NUM_CONDITIONS): New constant.
3890         (predicate_conditions): New enum.
3891         (IS_NOT_CONSTANT): New constant.
3892         (edge_removal_hook_holder): New var.
3893         (node_growth_cache, edge_growth_cache): New global vars.
3894         (true_predicate, single_cond_predicate, false_predicate,
3895         not_inlined_predicate, add_condition, add_clause, and_predicates,
3896         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3897         dump_clause, dump_predicate, account_size_time,
3898         evaulate_conditions_for_edge): New functions.
3899         (inline_summary_alloc): Move to heap.
3900         (inline_node_removal_hook): Clear condition and entry vectors.
3901         (inline_edge_removal_hook): New function.
3902         (initialize_growth_caches, free_growth_caches): New function.
3903         (dump_inline_summary): Update.
3904         (edge_execution_predicate): New function.
3905         (will_be_nonconstant_predicate): New function.
3906         (estimate_function_body_sizes): Compute BB and constantness predicates.
3907         (compute_inline_parameters): Do not clear estimated_growth.
3908         (estimate_edge_size_and_time): New function.
3909         (estimate_calls_size_and_time): New function.
3910         (estimate_callee_size_and_time): New function.
3911         (remap_predicate): New function.
3912         (inline_merge_summary): New function.
3913         (do_estimate_edge_time): New function based on...
3914         (estimate_edge_time): ... this one.
3915         (do_estimate_edge_growth): New function.
3916         (do_estimate_growth): New function based on....
3917         (estimate_growth): ... this one.
3918         (inline_analyze_function): Analyze after deciding on jump functions.
3919         (inline_read_section): New function.
3920         (inline_read_summary): Use it.
3921         (inline_write_summary): Write all the new data.
3922         * ipa-prop.c (ipa_get_param_decl_index): Export.
3923         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3924         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3925         Declare.
3926         (ipa_get_lattice): Move here from ipa-cp.c
3927         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3928         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3929         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3930         cgraph_edge_inlinable_p): Remove.
3931         * cgraphunit.c: Include ipainline.h
3932         (cgraph_process_new_functions): Update call of
3933         compute_inline_parameters.
3934
3935 2011-04-22  Richard Guenther  <rguenther@suse.de>
3936
3937         * tree.c (build_int_cst): Properly create canonicalized integer
3938         constants.
3939         (build_int_cst_type): Remove scary comments.
3940
3941 2011-04-22  Xinliang David Li  <davidxl@google.com>
3942
3943         * toplev.c (process_options): Enable -Werror=coverage-mismatch
3944         by default when -Wno-error is not specified.
3945         * opts-global.c (decode_options): Remove call to
3946         control_warning_options.
3947
3948 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
3949
3950         PR tree-optimization/48717
3951         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3952         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3953
3954 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
3955
3956         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
3957         definition where used.
3958
3959 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
3960
3961         PR c/48716
3962         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3963         TREE_STATIC variables declared inside of some OpenMP construct.
3964
3965 2011-04-22  Martin Jambor  <mjambor@suse.cz>
3966
3967         PR middle-end/48585
3968         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3969
3970 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
3971
3972         PR c/36750
3973         * c-typeck.c (pop_init_level): Do not warn about initializing
3974         with ` = {0}'.
3975
3976 2011-04-22  Alan Modra  <amodra@gmail.com>
3977
3978         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3979         when returning call_cookie.
3980         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3981         pointers, to functions with no more vector args than the current
3982         function, and some non-local calls for ABI_V4.
3983         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3984         sibcall_nonlocal_aix64): Combine to ..
3985         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
3986         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3987         (sibcall_value_nonlocal_aix<mode>): ..likewise.
3988         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3989         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
3990         operand.
3991         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3992         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3993         sibcall_value_symbolic_64): Delete.
3994
3995 2011-04-21  Xinliang David Li  <davidxl@google.com>
3996
3997         * cgraph.h: Remove pid.
3998         * cgraph.c: Remove pid.
3999         * value-prof.c (init_node_map): New function.
4000         (del_node_map): New function.
4001         (find_func_by_funcdef_no): New function.
4002         (gimple_ic_transform): Call new function.
4003         * cgraphunit.c (cgraph_finalize_function): Remove pid.
4004         * function.c (get_last_funcdef_no): New function.
4005         * function.h (get_last_funcdef_no): New function.
4006         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
4007         to libgcov function.
4008         (tree-profiling): Call node map init and delete function.
4009
4010 2011-04-21  Ian Lance Taylor  <iant@google.com>
4011
4012         * godump.c (go_format_type): Use exported Go name for anonymous
4013         field name.
4014
4015 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4016
4017         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4018         Call builtin_function_type_list instead of builtin_function_type.
4019         (UNARY, BINARY, TRINARY, QUAD): Likewise.
4020
4021 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4022
4023         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
4024         build_function_type_list instead of build_function_type.
4025         Delete variable `endlink'.
4026
4027 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4028
4029         * config/s390/s390.c (s390_init_builtins): Call
4030         build_function_type_list instead of build_function_type.
4031
4032 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4033
4034         * config/ia64/ia64.c (ia64_init_builtins): Call
4035         build_function_type_list instead of builtin_function_type.
4036
4037 2011-04-21  Easwaran Raman  <eraman@google.com>
4038
4039         * cfgexpand.c (stack_var): Remove OFFSET...
4040         (add_stack_var): ...and its reference here...
4041         (expand_stack_vars): ...and here.
4042         (stack_var_cmp): Sort by descending order of size.
4043         (partition_stack_vars): Change heuristic.
4044         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
4045         (dump_stack_var_partition): Add newline after each partition.
4046
4047 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
4048             Jeff Law  <law@redhat.com>
4049
4050         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
4051         * gengtype.c (matching_file_name_substitute): Likewise.
4052
4053 2011-04-21  Richard Guenther  <rguenther@suse.de>
4054
4055         PR lto/48703
4056         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
4057
4058 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
4059
4060         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
4061
4062 2011-04-21  Richard Guenther  <rguenther@suse.de>
4063
4064         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
4065         file name.
4066
4067 2011-04-21  Richard Guenther  <rguenther@suse.de>
4068
4069         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4070         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
4071         Use DECL_P, not SSA_VAR_P.
4072         (ptr_derefs_may_alias_p): Likewise.
4073         (ptr_deref_may_alias_ref_p_1): Likewise.
4074         (decl_refs_may_alias_p): Likewise.
4075         (refs_may_alias_p_1): Likewise.
4076         (ref_maybe_used_by_call_p_1): Likewise.
4077         (call_may_clobber_ref_p_1): Likewise.
4078         (indirect_ref_may_alias_decl_p): Assume indirect refrences
4079         are either MEM_REF or TARGET_MEM_REF.
4080         (indirect_refs_may_alias_p): Likewise.
4081         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
4082         for MEM_EXPR of indirect calls.
4083
4084 2011-04-21  Tristan Gingold  <gingold@adacore.com>
4085
4086         * vmsdbgout.c (write_srccorr): Compute file length from the string.
4087         (dst_file_info_struct): Remove flen field.
4088         (lookup_filename): Remove code that set flen field.
4089
4090 2011-04-21  Tristan Gingold  <gingold@adacore.com>
4091
4092         * config/ia64/ia64.c (ia64_start_function): Add a guard.
4093
4094 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
4095
4096         PR target/48708
4097         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
4098         vec_extract and vec_concat for non-SSE4_1 targets.
4099
4100 2011-04-21  Richard Guenther  <rguenther@suse.de>
4101
4102         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
4103         return statements.
4104
4105 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
4106
4107         * config/i386/cygming.h (union tree_node, TREE): Don't define or
4108         undefine.
4109         (FILE): Don't undefine.
4110
4111 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
4112
4113         * config/alpha/alpha.c (struct machine_function): Use rtx, not
4114         struct rtx_def *.
4115         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
4116         struct rtx_def *.
4117         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
4118         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
4119         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
4120         rtx_def *.
4121         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
4122         definitions where used.
4123         * config/microblaze/microblaze.h (struct microblaze_args): Use
4124         rtx, not struct rtx_def *.
4125         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
4126         rtx_def *.
4127         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
4128         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
4129         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
4130         not struct rtx_def *.
4131         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
4132         struct rtx_def *.
4133         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
4134         rtx_def *.
4135         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
4136
4137 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4138
4139         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
4140         operand_equal_p to compare DR_BASE_ADDRESSes.
4141         (vect_check_interleaving): Likewise.
4142
4143 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4144
4145         PR target/46329
4146         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
4147         for all Neon struct constants.
4148
4149 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4150
4151         * target.def (legitimate_constant_p): New hook.
4152         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
4153         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
4154         * doc/tm.texi: Regenerate.
4155         * hooks.h (hook_bool_mode_rtx_true): Declare.
4156         * hooks.c (hook_bool_mode_rtx_true): Define.
4157         * system.h (LEGITIMATE_CONSTANT_P): Poison.
4158         * calls.c (precompute_register_parameters): Replace uses of
4159         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
4160         (emit_library_call_value_1): Likewise.
4161         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
4162         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
4163         * ira-costs.c (scan_one_insn): Likewise.
4164         * recog.c (general_operand, immediate_operand): Likewise.
4165         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
4166         * reload1.c (init_eliminable_invariants): Likewise.
4167
4168         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
4169         mode argument.
4170         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
4171         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
4172         argument.
4173         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4174         * config/alpha/predicates.md (input_operand): Update call to
4175         alpha_legitimate_constant_p.
4176
4177         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
4178         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
4179         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
4180         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4181         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
4182         (arm_legitimate_constant_p): New functions.
4183         (arm_cannot_force_const_mem): Make static.
4184
4185         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
4186
4187         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
4188         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
4189         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
4190         instead of bfin_legitimate_constant_p.
4191         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
4192         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4193
4194         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
4195
4196         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
4197
4198         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
4199         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
4200         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4201         (frv_legitimate_constant_p): Make static.  Add a mode argument.
4202
4203         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
4204         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
4205         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
4206
4207         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
4208         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
4209         * config/i386/i386.c (legitimate_constant_p): Rename to...
4210         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
4211         argument.
4212         (ix86_cannot_force_const_mem): Update accordingly.
4213         (ix86_legitimate_address_p): Likewise.
4214         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4215         * config/i386/i386.md: Update commentary.
4216
4217         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
4218         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
4219         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4220         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
4221
4222         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
4223
4224         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
4225         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
4226         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4227         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
4228
4229         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
4230         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
4231         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
4232
4233         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
4234         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4235         (m32r_legitimate_constant_p): New function.
4236
4237         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
4238         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
4239         LEGITIMATE_CONSTANT_P.
4240         (LEGITIMATE_CONSTANT_P): Delete.
4241         * config/m68k/m68k.c (m68k_expand_prologue): Call
4242         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
4243         (m68k_legitimate_constant_p): New function.
4244         * config/m68k/m68k.md: Update comments.
4245
4246         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
4247         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4248         (mcore_legitimate_constant_p): New function.
4249
4250         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
4251         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
4252         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
4253         Add a mode argument.
4254         (mep_legitimate_address): Update accordingly.
4255         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4256
4257         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
4258         Delete.
4259         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
4260         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
4261         static.  Check OP's mode for VOIDmode.
4262         (microblaze_legitimate_constant_p): New function.
4263         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4264
4265         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
4266         * config/mips/mips.c (mips_legitimate_constant_p): New function.
4267         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
4268         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4269         * config/mips/predicates.md: Update comments.
4270
4271         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
4272         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
4273         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4274         (mmix_legitimate_constant_p): Make static, return a bool, and take
4275         a mode argument.
4276         (mmix_print_operand_address): Update accordingly.
4277
4278         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
4279         Delete.
4280         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
4281         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
4282         static.  Add a mode argument.
4283         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4284
4285         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
4286
4287         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
4288         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4289         (pa_legitimate_constant_p): New function.
4290
4291         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
4292
4293         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
4294         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4295         (pdp11_legitimate_constant_p): New function.
4296
4297         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
4298         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4299         (rs6000_legitimate_constant_p): New function.
4300
4301         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
4302         (rx_legitimate_constant_p): ...this.
4303         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
4304         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
4305         (rx_legitimate_constant_p): ...this.
4306         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4307         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
4308
4309         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
4310         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
4311         * config/s390/s390.c (legitimate_constant_p): Rename to...
4312         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
4313         and add a mode argument.
4314         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4315
4316         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
4317
4318         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
4319         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4320         (sh_legitimate_constant_p): New function.
4321
4322         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
4323         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
4324         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4325         (legitimate_constant_p): Rename to...
4326         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
4327         argument.
4328         (constant_address_p): Update accordingly.
4329
4330         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
4331         argument and return a bool.
4332         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
4333         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4334         (spu_legitimate_constant_p): Add a mode argument and return a bool.
4335         (spu_rtx_costs): Update accordingly.
4336         * config/spu/predicates.md (vec_imm_operand): Likewise.
4337
4338         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
4339
4340         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
4341         * config/v850/v850.c (v850_legitimate_constant_p): New function.
4342         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4343
4344         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
4345         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
4346         * config/vax/vax.c (legitimate_constant_p): Likewise.
4347
4348         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
4349         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4350         (xtensa_legitimate_constant_p): New function.
4351
4352 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4353
4354         * target.def (cannot_force_const_mem): Add a mode argument.
4355         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
4356         * doc/tm.texi: Regenerate.
4357         * hooks.h (hook_bool_mode_rtx_false): Declare.
4358         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
4359         (hook_bool_mode_const_rtx_true): Likewise.
4360         (hook_bool_mode_rtx_false): New function.
4361         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
4362         to be non-VOID.  Update call to cannot_force_const_mem.
4363         (find_reloads): Update accordingly.
4364         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
4365         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
4366         argument.
4367         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
4368         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
4369         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
4370         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
4371         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
4372         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
4373         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
4374         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4375         (m68k_cannot_force_const_mem): ...this new function.
4376         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
4377         argument.
4378         (mips_const_insns, mips_legitimize_const_move): Update calls.
4379         (mips_secondary_reload_class): Likewise.
4380         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4381         (pa_cannot_force_const_mem): ...this new function.
4382         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
4383         (rs6000_cannot_force_const_mem): ...this new function.
4384         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
4385         argument.
4386         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
4387         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
4388         to...
4389         (xtensa_cannot_force_const_mem): ...this new function.
4390
4391 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4392
4393         * config/mips/mips.c (mips16_build_function_stub): Call
4394         build_function_type_list instead of build_function_type.
4395         (mips16_build_call_stub): Likewise.
4396
4397 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4398
4399         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
4400         instead of build_function_type.
4401
4402 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4403
4404         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
4405         instead of build_function_type.
4406
4407 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
4408
4409         PR target/48678
4410         * config/i386/i386.md (insv): Change operand 0 constraint to
4411         "register_operand".  Change operand 1 and 2 constraint to
4412         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
4413         * config/i386/sse.md (sse4_1_pinsrb): Export.
4414         (sse2_pinsrw): Ditto.
4415         (sse4_1_pinsrd): Ditto.
4416         (sse4_1_pinsrq): Ditto.
4417         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
4418         * config/i386/i386.c (ix86_expand_pinsr): New.
4419
4420 2011-04-20  Easwaran Raman  <eraman@google.com>
4421
4422         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
4423         containing union type only with -fstrict-aliasing.
4424
4425 2011-04-20  Jim Meyering  <meyering@redhat.com>
4426
4427         Remove useless if-before-free tests.
4428         * calls.c (expand_call, save_area): Likewise.
4429         * cfgcleanup.c (try_forward_edges): Likewise.
4430         * collect2.c (collect_execute): Likewise.
4431         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
4432         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4433         * coverage.c (coverage_checksum_string): Likewise.
4434         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
4435         * cselib.c (cselib_init): Likewise.
4436         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
4437         (df_set_clean_cfg): Likewise.
4438         * function.c (free_after_compilation): Likewise.
4439         * gcc.c (do_spec_1, main): Likewise.
4440         * gcov.c (create_file_names): Likewise.
4441         * gensupport.c (identify_predicable_attribute): Likewise.
4442         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
4443         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
4444         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
4445         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
4446         * ipa-pure-const.c (local_pure_const): Likewise.
4447         * ipa-reference.c (propagate): Likewise.
4448         * ira-costs.c (free_ira_costs): Likewise.
4449         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
4450         * matrix-reorg.c (mat_free): Likewise.
4451         * prefix.c (get_key_value): Likewise.
4452         * profile.c (compute_value_histograms): Likewise.
4453         * reload1.c (free_reg_equiv): Likewise.
4454         * sched-deps.c (free_deps): Likewise.
4455         * sel-sched-ir.c (fence_clear): Likewise.
4456         * sese.c (set_rename, if_region_set_false_region): Likewise.
4457         * tree-data-ref.c (free_rdg): Likewise.
4458         * tree-eh.c (lower_try_finally): Likewise.
4459         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
4460         * tree-ssa-live.c (delete_var_map): Likewise.
4461         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
4462         * tree-ssa-pre.c (phi_trans_add): Likewise.
4463
4464 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
4465
4466         PR tree-optimization/48611
4467         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
4468         beyond ERT_MUST_NOT_THROW region.
4469
4470 2011-04-20  Catherine Moore  <clm@codesourcery.com>
4471
4472         * config/mips/mips.opt (mfix-24k): New.
4473         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
4474         * config/mips/mips.md (length): Increase by 4 for stores if
4475         fixing 24K errata.
4476         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
4477         all noreorder if fixing 24K errata.
4478         * doc/invoke.texi: Document mfix-24k.
4479
4480 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
4481
4482         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
4483         quad-word modes, reduce to 9-bit index range when above 1016 limit.
4484
4485 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
4486
4487         * config/arm/arm.c (arm_gen_constant): Move movw support ....
4488         (const_ok_for_op): ... to here.
4489
4490 2011-04-20  Kai Tietz  <ktietz@redhat.com>
4491
4492         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
4493         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
4494
4495 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
4496
4497         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
4498
4499 2011-04-20  Richard Guenther  <rguenther@suse.de>
4500
4501         PR tree-optimization/47892
4502         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
4503         are if-convertible.
4504
4505 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
4506
4507         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4508
4509 2011-04-20  Tristan Gingold  <gingold@adacore.com>
4510
4511         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
4512
4513 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
4514
4515         PR target/18145
4516
4517         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
4518         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
4519         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4520         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
4521         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
4522
4523         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4524         New prototype.
4525
4526         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4527         (avr_asm_named_section, avr_asm_output_aligned_common,
4528         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4529         New functions to update...
4530         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4531         (avr_asm_init_sections): Overwrite section callbacks for
4532         data_section, bss_section.
4533         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4534         from here to...
4535         (avr_file_end): ...here.
4536
4537 2011-04-20  Richard Guenther  <rguenther@suse.de>
4538
4539         PR middle-end/48695
4540         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
4541         objects and types here.  Adjust for their offset before comparing.
4542
4543 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
4544
4545         * tree-vect-stmts.c (vectorizable_store): Only chain one related
4546         statement per copy.
4547
4548 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
4549
4550         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4551         (GIMPLE_H): Include $(INTERNAL_FN_H).
4552         (OBJS-common): Add internal-fn.o.
4553         (internal-fn.o): New rule.
4554         * internal-fn.def: New file.
4555         * internal-fn.h: Likewise.
4556         * internal-fn.c: Likewise.
4557         * gimple.h: Include internal-fn.h.
4558         (GF_CALL_INTERNAL): New gf_mask.
4559         (gimple_statement_call): Put fntype into a union with a new
4560         internal_fn field.
4561         (gimple_build_call_internal): Declare.
4562         (gimple_build_call_internal_vec): Likewise.
4563         (gimple_call_same_target_p): Likewise.
4564         (gimple_call_internal_p): New function.
4565         (gimple_call_internal_fn): Likewise.
4566         (gimple_call_fntype): Return null for internal calls.
4567         (gimple_call_set_fntype): Assert that the function is not internal.
4568         (gimple_call_set_fn): Likewise.
4569         (gimple_call_set_fndecl): Likewise.
4570         (gimple_call_set_internal_fn): New function.
4571         (gimple_call_addr_fndecl): Handle null functions.
4572         (gimple_call_return_type): Likewise null types.
4573         * gimple.c (gimple_build_call_internal_1): New function.
4574         (gimple_build_call_internal): Likewise.
4575         (gimple_build_call_internal_vec): Likewise.
4576         (gimple_call_same_target_p): Likewise.
4577         (gimple_call_flags): Handle calls to internal functions.
4578         (gimple_call_fnspec): New function.
4579         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4580         (gimple_has_side_effects): Handle null functions.
4581         (gimple_rhs_has_side_effects): Likewise.
4582         (gimple_call_copy_skip_args): Handle calls to internal functions.
4583         * cfgexpand.c (expand_call_stmt): Likewise.
4584         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4585         * gimple-fold.c (gimple_fold_call): Handle null functions.
4586         (gimple_fold_stmt_to_constant_1): Don't fold
4587         calls to internal functions.
4588         * gimple-low.c (gimple_check_call_args): Handle calls to internal
4589         functions.
4590         * gimple-pretty-print.c (dump_gimple_call): Likewise.
4591         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4592         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4593         (do_warn_unused_result): Likewise.
4594         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4595         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4596         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4597         the target of a call.
4598         (initialize_hash_element): Update accordingly.
4599         (hashable_expr_equal_p): Use gimple_call_same_target_p.
4600         (iterative_hash_hashable_expr): Handle calls to internal functions.
4601         (print_expr_hash_elt): Likewise.
4602         * tree-ssa-pre.c (can_value_number_call): Likewise.
4603         (eliminate): Handle null functions.
4604         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4605         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4606         (find_func_aliases): Likewise.
4607         * value-prof.c (gimple_ic_transform): Likewise.
4608         (gimple_indirect_call_to_profile): Likewise.
4609         * lto-streamer-in.c (input_gimple_stmt): Likewise.
4610         * lto-streamer-out.c (output_gimple_stmt): Likewise.
4611
4612 2011-04-19  Jan Hubicka  <jh@suse.cz>
4613
4614         * ipa-inline-transform.c (save_inline_function_body): Add comments.
4615         * ipa-inline.c (inline_small_functions): Compute summaries first,
4616         populate heap later.
4617
4618 2011-04-19  Jan Hubicka  <jh@suse.cz>
4619
4620         * cgraph.h (save_inline_function_body): Remove.
4621         * ipa-inline-transform.c: New file, broke out of...
4622         * ipa-inline.c: ... this one; Update toplevel comment.
4623         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4624         make global.
4625         (update_noncloned_frequencies): Move to ipa-inline-transform.c
4626         (cgraph_mark_inline_edge): Rename to inline_call; move to
4627         ipa-inline-transform.c.
4628         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4629         move to ipa-inline-transform.c
4630         (recursive_inlining, inline_small_functions, flatten_function,
4631         ipa_inline, inline_always_inline_functions,
4632         early_inline_small_functions): Update.
4633         (inline_transform): Move to ipa-inline-transform.c.
4634         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4635         Declare.
4636         * Makefile.in (ipa-inline-transform.o): New file.
4637         * cgraphunit.c (save_inline_function_body): Move to
4638         ipa-inline-transform.c
4639
4640 2011-04-19  DJ Delorie  <dj@redhat.com>
4641
4642         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4643         registers if we already know there aren't any.
4644         (m32c_emit_epilogue): Don't emit a barrier here.
4645         (m32c_emit_eh_epilogue): Likewise.
4646         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4647         operands at expand time.
4648         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4649         int" wchar type.
4650         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4651         duplicates.  Provide aliases instead.
4652         * config/m32c/prologue.md (eh_return): Emit a barrier here.
4653         (eh_epilogue): Add a "(return)" here as a hint to other parts of
4654         the compiler.
4655
4656 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
4657
4658         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4659         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4660         (general_or_i64_p, sparc_register_move_cost): New function.
4661
4662 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4663
4664         * doc/install.texi (Configuration, --enable-threads): Remove mach.
4665         Add lynx, mipssde.  Sort table.
4666
4667 2011-04-19  Xinliang David Li  <davidxl@google.com>
4668
4669         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4670         not negative.
4671
4672 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
4673
4674         PR target/48678
4675         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4676         is a SUBREG with non-MODE_INT mode inside of it.
4677
4678 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4679
4680         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4681         also according to actual contants.
4682         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4683         (gimple_fold_call): Use it.
4684         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4685
4686 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4687
4688         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4689         non-pointer assignments.
4690
4691 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4692
4693         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4694         account anc_offset and otr_type from the indirect edge info.
4695         * ipa-prop.c (get_ancestor_addr_info): New function.
4696         (compute_complex_ancestor_jump_func): Assignment analysis moved to
4697         get_ancestor_addr_info, call it.
4698         (ipa_note_param_call): Do not initialize information about polymorphic
4699         calls, return the indirect call graph edge.  Remove the last
4700         parameter, adjust all callers.
4701         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4702         parameters.  Initialize polymorphic information in the indirect edge.
4703
4704 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4705
4706         PR lto/48148
4707         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4708         the types if they have different enumeration identifiers.
4709
4710 2011-04-19  Jan Hubicka  <jh@suse.cz>
4711
4712         * cgraph.h (cgraph_optimize_for_size_p): Declare.
4713         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4714         * predict.c (cgraph_optimize_for_size_p): Break out from ...
4715         (optimize_function_for_size_p) ... here.
4716
4717 2011-04-19  Richard Guenther  <rguenther@suse.de>
4718
4719         PR lto/48207
4720         * tree.c (free_lang_data): Do not reset the decl-assembler-name
4721         langhook.
4722
4723 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4724
4725         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4726         if DECL_NO_INLINE_WARNING_P is set on the function.
4727
4728 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
4729
4730         PR fortran/47976
4731         * reload1.c (inc_for_reload): Return void. All callers changed.
4732         (emit_input_reload_insns): Don't try to delete previous output
4733         reloads to a register, or record spill_reg_store for autoincs.
4734
4735 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
4736
4737         * gengtype.h: Updated copyright year.
4738         (struct input_file_st): Add inpisplugin field.
4739         (type_fileloc): New function.
4740         * gengtype.c
4741         (write_typed_struct_alloc_def): Add gcc_assert.
4742         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4743         (write_typed_alloc_defns): Don't output for plugin files.
4744         (input_file_by_name): Clear inpisplugin field.
4745         (main): Set inpisplugin field for plugin files.
4746
4747 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
4748
4749         * gengtype-state.c (string_eq): New.
4750         (read_state): Use string_eq instead of strcmp when creating the
4751         state_ident_tab.
4752
4753 2011-04-19  Wei Guozhi  <carrot@google.com>
4754
4755         PR target/47855
4756         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4757         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4758         linkage.
4759         * config/arm/constraints.md (Uu): New constraint.
4760         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4761
4762 2011-04-19  Tristan Gingold  <gingold@adacore.com>
4763
4764         * config.gcc (-*-*-*vms): Added.
4765         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4766         definitions moved.
4767         * config/vms/vms-ld.c: New file.
4768         * config/vms/vms-ar.c: New file.
4769         * config/vms/t-vmsnative: New file.
4770
4771 2011-04-18  Xinliang David Li  <davidxl@google.com>
4772
4773         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4774
4775 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
4776
4777         PR middle-end/48661
4778         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4779         if TREE_TYPE (v) is non-NULL.
4780
4781         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4782         gimple_get_virt_mehtod_for_binfo.
4783         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4784         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4785         callers.
4786         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4787
4788 2011-04-18  Michael Matz  <matz@suse.de>
4789             Steve Ellcey  <sje@cup.hp.com>
4790
4791         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4792         use its mode as source mode if it isn't VOIDmode.
4793
4794 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
4795
4796         * doc/passes.texi: Fill crossref nodes.
4797
4798 2011-04-18  Jim Meyering  <meyering@redhat.com>
4799
4800         Fix doubled-word typos in comments and strings
4801         * config/alpha/vms-unwind.h: s/for for/for/
4802         * config/arm/unwind-arm.h: Likewise.
4803         * config/microblaze/microblaze.c: Likewise.
4804         * config/sh/constraints.md: s/in in/in/
4805         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4806
4807 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
4808
4809         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4810         (AVX_FLOAT_MODE_P): Ditto.
4811         (AVX128_VEC_FLOAT_MODE_P): Ditto.
4812         (AVX256_VEC_FLOAT_MODE_P): Ditto.
4813         (AVX_VEC_FLOAT_MODE_P): Ditto.
4814         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4815         (UNSPEC_MASKSTORE): Ditto.
4816         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4817         Merge from <sse>_movmsk<ssemodesuffix> and
4818         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
4819         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
4820         iterator.
4821         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4822         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4823         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4824
4825 2011-04-18  Jan Hubicka  <jh@suse.cz>
4826
4827         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4828
4829         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4830         (want_inline_function_called_once_p): Break out the logic from
4831         ipa_inline.
4832         (edge_badness): Ensure that profile is not misupdated.
4833         (lookup_recursive_calls): Prioritize by call frequencies.
4834         (inline_small_functions): Move program size estimates here;
4835         actually process whole queue even when unit growth has been
4836         met. (to properly compute inline_failed reasons and for the
4837         case unit size decrease.) Revisit comments on recursive inlining.
4838         (ipa_inline): Remove unit summary code; first inline hot calls
4839         of functions called once, cold calls next.
4840         (order, nnodes): Remove unused variables.
4841         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4842         (GTFILES): Remove ipa-inline.c
4843         * sel-sched.c (fill_insns): Silence uninitialized var warning.
4844
4845 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4846
4847         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4848
4849 2011-04-18  Jie Zhang  <jie@codesourcery.com>
4850             Richard Earnshaw  <rearnsha@arm.com>
4851
4852         * arm.c (neon_builtin_type_bits): Remove.
4853         (typedef enum neon_builtin_mode): New.
4854         (T_MAX): Don't define.
4855         (typedef enum neon_builtin_datum): Remove bits, codes[],
4856         num_vars and base_fcode.  Add mode, code and fcode.
4857         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4858         VAR10): Change accordingly.
4859         (neon_builtin_data[]): Change accordingly
4860         (arm_init_neon_builtins): Change accordingly.
4861         (neon_builtin_compare): Remove.
4862         (locate_neon_builtin_icode): Remove.
4863         (arm_expand_neon_builtin): Change accordingly.
4864
4865         * arm.h (enum arm_builtins): Move to ...
4866         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4867
4868         * arm.c (arm_builtin_decl): Declare.
4869         (TARGET_BUILTIN_DECL): Define.
4870         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4871         (arm_builtin_decls[]): New.
4872         (arm_init_neon_builtins): Store builtin declarations in
4873         arm_builtin_decls[].
4874         (arm_init_tls_builtins): Likewise.
4875         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
4876         (arm_builtin_decl): New.
4877
4878 2011-04-18  Richard Guenther  <rguenther@suse.de>
4879
4880         * tree.c (upper_bound_in_type): Build properly canonicalized
4881         INTEGER_CSTs.
4882         (lower_bound_in_type): Likewise.
4883
4884 2011-04-18  Richard Guenther  <rguenther@suse.de>
4885
4886         * gimple.h (gimple_call_addr_fndecl): New function.
4887         (gimple_call_fndecl): Use it.
4888         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4889         for direct calls.
4890         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4891         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4892
4893 2011-04-18  Richard Guenther  <rguenther@suse.de>
4894
4895         PR middle-end/48650
4896         * tree.c (build_string): STRING_CST is now derived from tree_typed.
4897
4898 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4899
4900         PR lto/48492
4901         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4902         DECL_IN_CONSTANT_POOL without RTL.
4903
4904 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
4905             Ira Rosen  <ira.rosen@linaro.org>
4906
4907         PR target/48252
4908         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4909         to match neon_vzip/vuzp/vtrn_internal.
4910         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4911         outputs explicitly dependent on both inputs.
4912         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4913
4914 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
4915
4916         PR tree-optimization/48616
4917         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4918         whether the shift is by scalar or vector based on whether all SLP
4919         scalar stmts have the same rhs.
4920
4921 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
4922
4923         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4924         memory operands.
4925
4926 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
4927
4928         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4929         registers.
4930
4931 2011-04-17  Jan Hubicka  <jh@suse.cz>
4932
4933         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4934         * cgrpahunit.c (cgraph_finalize_function): Do not set
4935         finalized_by_frontend.
4936         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4937         finalized_by_frontend.
4938
4939 2011-04-17  Jan Hubicka  <jh@suse.cz>
4940
4941         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4942         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4943         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4944         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4945         method.
4946         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4947         gimple-fold.c
4948         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4949
4950 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
4951
4952         PR lto/48538
4953         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4954         is non-null before accessing it.
4955         (input_cgraph): Remove trailing spaces.
4956
4957 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4958
4959         * params.def (sms-min-sc): New param flag.
4960         * modulo-sched.c (sms_schedule): Use it.
4961         * doc/invoke.texi (sms-min-sc): Document it.
4962
4963 2011-04-17  Jan Hubicka  <jh@suse.cz>
4964
4965         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4966         present, also set gimple_call_set_cannot_inline.
4967         * ipa-inline.c: Update toplevel comment.
4968         (MAX_TIME): Remove.
4969         (cgraph_clone_inlined_nodes): Fix linebreaks.
4970         (cgraph_check_inline_limits): Restructure to ...
4971         (caller_growth_limits): ... this one; be more tolerant
4972         on growth in nested inline chains; add explanatory comment;
4973         fix stack accounting thinko introduced by previous patch.
4974         (cgraph_default_inline_p): Remove.
4975         (report_inline_failed_reason): New function.
4976         (can_inline_edge_p): New function.
4977         (can_early_inline_edge_p): New function.
4978         (leaf_node_p): Move upwards in file.
4979         (want_early_inline_function_p): New function.
4980         (want_inline_small_function_p): New function.
4981         (want_inline_self_recursive_call_p): New function.
4982         (cgraph_edge_badness): Rename to ...
4983         (edge_badness) ... this one; fix linebreaks.
4984         (update_edge_key): Update call of edge_baddness; add
4985         detailed dump about queue updates.
4986         (update_caller_keys): Use can_inline_edge_p and
4987         want_inline_small_function_p.
4988         (cgraph_decide_recursive_inlining): Rename to...
4989         (recursive_inlining): Use can_inline_edge_p and
4990         want_inline_self_recursive_call_p; simplify and remove no longer
4991         valid FIXME.
4992         (cgraph_set_inline_failed): Remove.
4993         (add_new_edges_to_heap): Use can_inline_edge_p and
4994         want_inline_small_function_p.
4995         (cgraph_decide_inlining_of_small_functions): Rename to ...
4996         (inline_small_functions): ... this one; cleanup; use
4997         can/want predicates; cleanup debug ouput; work edges till fibheap
4998         is exhausted and do not stop once unit growth is reached; remove
4999         later loop processing remaining edges.
5000         (cgraph_flatten): Rename to ...
5001         (flatten_function): ... this one; use can_inline_edge_p
5002         and can_early_inline_edge_p predicates.
5003         (cgraph_decide_inlining): Rename to ...
5004         (ipa_inline): ... this one; remove unreachable nodes before
5005         inlining functions called once; simplify the pass.
5006         (cgraph_perform_always_inlining): Rename to ...
5007         (inline_always_inline_functions): ... this one; use
5008         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
5009         (cgraph_decide_inlining_incrementally): Rename to ...
5010         (early_inline_small_functions): ... this one; simplify
5011         using new predicates; cleanup; make dumps prettier.
5012         (cgraph_early_inlining): Rename to ...
5013         (early_inliner): newer inline regular functions into always-inlines;
5014         fix updating of call stmt summaries.
5015         (pass_early_inline): Update for new names.
5016         (inline_transform): Fix formating.
5017         (gate_cgraph_decide_inlining): Rename to ...
5018         (pass_ipa_inline): ... this one.
5019         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5020         * ipa-inline-analysis.c (dump_inline_summary): Update.
5021         (compute_inline_parameters): Do not compute disregard_inline_limits;
5022         look for mismatching arguments.
5023         (estimate_growth): Fix handlig of non-trivial self recursion.
5024         (inline_read_summary): Do not read info->disregard_inline_limits.
5025         (inline_write_summary): Do not write info->disregard_inline_limits.
5026         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
5027         and move all checks into can_inline_edge_p predicate; re-enable code
5028         comparing optimization levels.
5029         (expand_call_inline): Do not test inline_forbidden_into_p.
5030         * Makefile.in (ipa-inline.o): Update arguments.
5031
5032 2011-04-17  Revital Eres  <revital.eres@linaro.org>
5033
5034         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
5035
5036 2011-04-17  Revital Eres  <revital.eres@linaro.org>
5037
5038         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
5039
5040 2011-04-17  Michael Matz  <matz@suse.de>
5041
5042         PR tree-optimization/48622
5043         PR lto/48645
5044         * ipa-inline-analysis.c (inline_read_summary): Read size/time
5045         in same order as they're written.
5046
5047 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5048
5049         * config/pa/predicates.md: Reorganize and simplify predicates.
5050         Eliminate duplicate code checks.
5051         (arith_operand): Rename to arith14_operand
5052         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
5053         * config/pa/pa.md: Use renamed operands.
5054         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
5055         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
5056         arith11_operand, adddi3_operand, indexed_memory_operand,
5057         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
5058         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
5059         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
5060         move_dest_operand, move_src_operand, prefetch_cc_operand,
5061         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
5062         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
5063         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
5064         div_operand, int5_operand, movb_comparison_operator,
5065         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
5066         arith_double_operand, ireg_operand, lhs_lshift_operand,
5067         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
5068         integer_store_memory_operand): Likewise.
5069         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
5070         (integer_store_memory_operand, read_only_operand,
5071         function_label_operand, borx_reg_operand,
5072         non_hard_reg_operand): Likewise.
5073         (eq_neq_comparison_operator): Delete unused operator.
5074         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
5075         function_label_operand.
5076         (emit_move_sequence): Likewise.
5077
5078 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
5079
5080         * config/i386/sse.md (sseunpackmode): New mode attribute.
5081         (ssepackmode): Ditto.
5082         (vec_pack_trunc_<mode>): Macroize expander from
5083         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
5084         (vec_unpacks_lo_<mode>): Macroize expander from
5085         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5086         (vec_unpacks_hi_<mode>): Macroize expander from
5087         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5088         (vec_unpacku_lo_<mode>): Macroize expander from
5089         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5090         (vec_unpacku_hi_<mode>): Macroize expander from
5091         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5092         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
5093         ix86_expand_sse4_unpack.
5094         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
5095
5096 2011-04-16  Jan Hubicka  <jh@suse.cz>
5097
5098         * cgraphbuild.c: Include ipa-inline.h.
5099         (reset_inline_failed): Use initialize_inline_failed.
5100         * cgraph.c: Include ipa-inline.h.
5101         (cgraph_create_node_1): Do not initialize estimated_growth.
5102         (initialize_inline_failed): More to ipa-inline-analysis.c
5103         (dump_cgraph_node): Do not dump inline flags.
5104         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
5105         and disregard_inline_limits flags.
5106         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
5107         time, size, estimated_growth.
5108         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
5109         Update.
5110         * cgraphunit.c (cgraph_decide_is_function_needed): Use
5111         DECL_DISREGARD_INLINE_LIMITS.
5112         (cgraph_analyze_function): Do not initialize
5113         node->local.disregard_inline_limits.
5114         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5115         inlinable, versionable and disregard_inline_limits.
5116         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
5117         cgraph_check_inline_limits, cgraph_default_inline_p,
5118         cgraph_edge_badness, update_caller_keys, update_callee_keys,
5119         add_new_edges_to_heap): Update.
5120         (cgraph_decide_inlining_of_small_function): Update; set
5121         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
5122         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
5123         cgraph_decide_inlining_incrementally): Update.
5124         * ipa-inline.h (inline_summary): Add inlinable, versionable,
5125         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
5126         time, size and estimated_growth parameters.
5127         (estimate_edge_growth): Update.
5128         (initialize_inline_failed): Declare.
5129         * ipa-split.c: Include ipa-inline.h
5130         (execute_split_functions): Update.
5131         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
5132         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
5133         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
5134         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
5135         estimated_growth to INT_MIN.
5136         (inline_node_duplication_hook): Likewise.
5137         (dump_inline_summary): Dump new fields.
5138         (compute_inline_parameters): Update.
5139         (estimate_edge_time, estimate_time_after_inlining,
5140         estimate_size_after_inlining, estimate_growth, inline_read_summary,
5141         inline_write_summary):
5142         (initialize_inline_failed): Move here from cgraph.c.
5143         * tree-sra.c: Include ipa-inline.h.
5144         (ipa_sra_preliminary_function_checks): Update.
5145         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
5146         ipa-inline.h.
5147
5148 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
5149
5150         * config/i386/sse.md (V16): New mode iterator.
5151         (VI1, VI8): Ditto.
5152         (AVXMODEQI, AVXMODEDI): Remove.
5153         (sse2, sse3): New mode attribute.
5154         (mov<mode>): Use V16 mode iterator.
5155         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
5156         (push<mode>1): Use V16 mode iterator.
5157         (movmisalign<mode>): Ditto.
5158         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5159         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
5160         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5161         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
5162         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
5163         avx_movdqu<avxmodesuffix>.
5164         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
5165         *avx_movdqu<avxmodesuffix>.
5166         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
5167         avx_lddqu<avxmodesuffix>.
5168         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
5169         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
5170         avx_movnt<AVXMODEDI:mode>.
5171         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
5172         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
5173
5174 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
5175
5176         PR target/48629
5177         * haifa-sched.c (prune_ready_list, schedule_block): Use
5178         sched_pressure_p rather than flag_sched_pressure.
5179
5180 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
5181
5182         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5183         cgraph_get_node instead of cgraph_get_create_node.
5184
5185 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
5186
5187         * cfgexpand.c (expand_debug_expr): Use
5188         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
5189
5190 2011-04-15  Michael Matz  <matz@suse.de>
5191
5192         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
5193         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
5194         * function.c (gimplify_parameters): Ditto.
5195         * gimplify.c (gimplify_vla_decl): Ditto.
5196
5197         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
5198         (gimple_call_set_alloca_for_var): New inline function.
5199         (gimple_call_alloca_for_var_p): Ditto.
5200         * gimple.c (gimple_build_call_from_tree): Remember
5201         CALL_ALLOCA_FOR_VAR_P state.
5202         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
5203
5204         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
5205         calls if they were for VLA objects.
5206
5207 2011-04-15  Martin Jambor  <mjambor@suse.cz>
5208
5209         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
5210         of ADR_EXPRs.
5211
5212 2011-04-15  Martin Jambor  <mjambor@suse.cz>
5213
5214         PR middle-end/48601
5215         * tree-emutls.c (lower_emutls_function_body): Call
5216         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
5217         result is non-NULL.
5218
5219 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
5220
5221         * c-decl.c (detect_field_duplicates): Call
5222         objc_detect_field_duplicates instead of objc_get_interface_ivars.
5223
5224 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
5225
5226         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
5227         * gimple.c (gimple_asm_clobbers_memory_p): Define.
5228         * ipa-pure-const.c (check_stmt): Call it.
5229         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
5230
5231 2011-04-15  Richard Guenther  <rguenther@suse.de>
5232
5233         PR tree-optimization/48290
5234         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
5235         Properly decide inhibiting propagation based on the valueized
5236         operand.  Do loop-closed SSA form preserving here ...
5237         (init_copy_prop): ... not here.
5238
5239 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
5240
5241         PR target/48612
5242         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
5243         (*ieee_smax<mode>3): Likewise.
5244
5245 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5246
5247         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
5248         Replace match_operand with match_dup for the third operand in
5249         these expanders.
5250
5251 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
5252
5253         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
5254         to track processing of conditionals.  Update all callers.
5255         (try_combine, simplify_if_then_else): Update.
5256
5257 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
5258
5259         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
5260         -fsched-pressure.
5261
5262 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
5263
5264         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
5265         instead of match_operand for operand 3.
5266
5267 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
5268
5269         * recog.h (insn_operand_data): Add an "allows_mem" field.
5270         * genoutput.c (output_operand_data): Initialize it.
5271         * optabs.c (maybe_legitimize_operand_same_code): New function.
5272         (maybe_legitimize_operand): Use it when matching the original
5273         op->value.
5274
5275 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
5276
5277         * gimplify.c: Fix issues in comments throughout.
5278         (voidify_wrapper_expr): Fix long line.
5279         (build_stack_save_restore): Likewise.
5280         (gimplify_loop_expr): Likewise.
5281         (gimplify_compound_lval): Likewise.
5282         (gimplify_init_ctor_eval): Likewise.
5283         (gimplify_modify_expr_rhs): Likewise.
5284         (omp_notice_threadprivate_variable): Likewise.
5285
5286 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
5287
5288         * cfgexpand.c (expand_call_stmt): Convert the function type to the
5289         original one if this is not a builtin function.
5290
5291 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
5292
5293         PR target/48605
5294         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
5295         offset it as needed based on top 2 bits in operands[3], change
5296         MEM mode to SFmode and mask those 2 bits away from operands[3].
5297
5298 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
5299
5300         * c-parser.c (c_parser_objc_protocol_definition): Updated for
5301         change from objc_declare_protocols() to objc_declare_protocol().
5302
5303 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
5304
5305         * config/i386/sse.md (sse4_1): New mode attribute.
5306         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
5307         avx_blend<ssemodesuffix><avxmodesuffix> and
5308         sse4_1_blend<ssemodesuffix> using VF mode iterator.
5309         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
5310         avx_blendv<ssemodesuffix><avxmodesuffix> and
5311         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
5312         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
5313         avx_dp<ssemodesuffix><avxmodesuffix> and
5314         sse4_1_dp<ssemodesuffix> using VF mode iterator.
5315         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
5316         (sse4_1_packusdw): Merge with *avx_packusdw.
5317         (sse4_1_pblendvb): Merge with *avx_pblendvb.
5318         (sse4_1_pblendw): Merge with *avx_pblendw.
5319         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
5320         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
5321         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
5322         VF mode iterator.
5323         (sse4_1_round<ssescalarmodesuffix>): Merge with
5324         *avx_round<ssescalarmodesuffix>.
5325         (aesenc): Merge with *avx_aesenc.
5326         (aesenclast): Merge with *avx_aesenclast.
5327         (aesdec): Merge with *avx_aesdec.
5328         (aesdeclast): Merge with *avx_aesdeclast.
5329         (pclmulqdq): Merge with *pclmulqdq.
5330         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
5331         New predicate.
5332         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
5333
5334 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
5335
5336         PR middle-end/48608
5337         * cfgexpand.c (get_decl_align_unit): Renamed to ...
5338         (align_local_variable): This.  Update DECL_ALIGN.
5339         (add_stack_var): Updated.
5340         (expand_one_stack_var): Likewise.
5341
5342 2011-04-14  Richard Guenther  <rguenther@suse.de>
5343
5344         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
5345         Remove.
5346         (dse_initialize_block_local_data, dse_leave_block,
5347         record_voperand_set, get_stmt_uid): Likewise.
5348         (dse_possible_dead_store_p): Allow any kind of killing stmt.
5349         (dse_optimize_stmt): Remove voperand set handling code.
5350         Simplify and improve to handle any kind of killing stmt.
5351         (dse_record_phi): Remove.
5352         (dse_enter_block): Simplify.
5353         (tree_ssa_dse): Likewise.
5354         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
5355
5356 2011-04-14  Jan Hubicka  <jh@suse.cz>
5357
5358         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
5359         * cgraph.h (struct inline_summary): Move to ipa-inline.h
5360         (cgraph_local_info): Remove inline_summary.
5361         * ipa-cp.c: Include ipa-inline.h.
5362         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
5363         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
5364         accesor.
5365         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
5366         (input_overwrite_node): Do not set inline summary.
5367         (input_node): Do not stream inline summary.
5368         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
5369         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
5370         growth; we do not have inline parameters computed for that anyway.
5371         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
5372         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
5373         (inline_summary_t): New type and VECtor.
5374         (debug_inline_summary, dump_inline_summaries): Declare.
5375         (inline_summary): Use VOCtor.
5376         (estimate_edge_growth): Kill hack computing call stmt size directly.
5377         * lto-section-in.c (lto_section_name): Add inline section.
5378         * ipa-inline-analysis.c: Include lto-streamer.h
5379         (node_removal_hook_holder, node_duplication_hook_holder): New holders
5380         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
5381         (inline_summary_vec): Define.
5382         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
5383         dump_inline_summaries): New functions.
5384         (estimate_function_body_sizes): Properly compute size/time of outgoing
5385         calls.
5386         (compute_inline_parameters): Alloc inline_summary; do not compute
5387         size/time of incomming calls.
5388         (estimate_edge_time): Avoid missing time summary hack.
5389         (inline_read_summary): Read inline summary info.
5390         (inline_write_summary): Write inline summary info.
5391         (inline_free_summary): Free all hooks and inline summary vector.
5392         * lto-streamer.h: Add LTO_section_inline_summary section.
5393         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
5394         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
5395
5396 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5397
5398         * tree-vectorizer.h (vect_strided_store_supported): Add a
5399         HOST_WIDE_INT argument.
5400         (vect_strided_load_supported): Likewise.
5401         (vect_permute_store_chain): Return void.
5402         (vect_transform_strided_load): Likewise.
5403         (vect_permute_load_chain): Delete.
5404         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
5405         count argument.  Check that the count is a power of two.
5406         (vect_strided_load_supported): Likewise.
5407         (vect_permute_store_chain): Return void.  Update after above changes.
5408         Assert that the access is supported.
5409         (vect_permute_load_chain): Likewise.
5410         (vect_transform_strided_load): Return void.
5411         * tree-vect-stmts.c (vectorizable_store): Update calls after
5412         above interface changes.
5413         (vectorizable_load): Likewise.
5414         (vect_analyze_stmt): Don't check for strided powers of two here.
5415
5416 2011-04-14  Richard Guenther  <rguenther@suse.de>
5417
5418         PR tree-optimization/48590
5419         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5420         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5421         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
5422         BUILT_IN_STACK_SAVE.
5423         * tree-ssa-dce.c (propagate_necessity): Handle
5424         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5425
5426 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
5427
5428         * c-parser.c (c_parser_objc_class_declaration): Updated call to
5429         objc_declare_class.
5430
5431 2011-04-14  Richard Guenther  <rguenther@suse.de>
5432
5433         * tree.h (get_object_alignment_1): Declare.
5434         * builtins.c (get_object_alignment_1): Split out worker from ...
5435         (get_object_alignment): ... here.
5436         * fold-const.c (get_pointer_modulus_and_residue): Use
5437         get_object_alignment_1.
5438
5439 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5440
5441         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
5442         type parameter.
5443         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
5444         parameter.  Generalise code to handle arrays as well as vectors.
5445         (vect_setup_realignment): Update accordingly.
5446         * tree-vect-stmts.c (vectorizable_store): Likewise.
5447         (vectorizable_load): Likewise.
5448
5449 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5450
5451         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
5452         within the per-copy loop.
5453
5454 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5455
5456         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
5457         in the dump file.
5458
5459 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5460
5461         * doc/options.texi (Negative): Explicitly mention that the
5462         Negative chain must be circular.
5463
5464 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
5465
5466         * function.h (block_chainon): Declare.
5467         * function.c (block_chainon): Define.
5468
5469 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
5470             Eric Weddington  <eric.weddington@atmel.com>
5471             Georg-Johann Lay  <avr@gjlay.de>
5472
5473         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
5474         New Includes
5475         (avr_init_builtins, avr_expand_builtin,
5476         avr_expand_delay_cycles, avr_expand_unop_builtin,
5477         avr_expand_binop_builtin ): New functions.
5478         (avr_builtin_id): New enum
5479         (struct avr_builtin_description): New struct
5480         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
5481         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5482
5483         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5484         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
5485         UNSPECV_DELAY_CYCLES): new enumeration values
5486         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
5487         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
5488         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
5489         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
5490         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
5491         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
5492         "fmulsu"): New insns
5493
5494         * config/avr/avr-c.c: fix line endings
5495         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
5496         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
5497         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
5498         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
5499         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5500
5501         * doc/extend.texi (AVR Built-in Functions): New node
5502         (Target Builtins): Add documentation of AVR
5503         built-in functions.
5504
5505 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
5506
5507         PR target/44643
5508         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
5509         alone. Error if non-const data has attribute progmem.
5510
5511 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5512
5513         * tree.h (struct tree_constructor): Include tree_typed instead of
5514         tree_common.
5515         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
5516         TS_TYPED instead of TS_COMMON.
5517
5518 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
5519
5520         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
5521         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
5522         (sse2_psadbw): Merge with *avx_psadbw.
5523         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5524         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5525         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5526         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5527         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5528         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5529         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5530         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5531         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5532         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5533         (ssse3_palignrti): Merge with *avx_palignrti.
5534
5535 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5536
5537         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5538         * tree-ssanames.c (fini_ssanames): VEC_free it.
5539         (make_ssa_name_fn): Update for VECness of free_ssanames.
5540         (release_ssa_name, release_dead_ssa_names): Likewise.
5541         * tree.h (struct tree_ssa_name): Include tree_typed instead of
5542         tree_common.
5543         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5544         TS_TYPED instead of TS_COMMON.
5545
5546 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5547
5548         * postreload-gcse.c (gcse_after_reload_main): Add calls to
5549         statistics_counter_event.
5550         * tree-ssa-copyrename.c (stats): Define.
5551         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
5552         statistics_counter_event.
5553         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5554         (bswap_stats, widen_mul_stats): Define.
5555         (insert_reciprocals): Increment rdivs_inserted.
5556         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
5557         rfuncs_inserted.  Add calls to statistics_counter_event.
5558         (execute_cse_sincos_1): Increment inserted.
5559         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
5560         statistics_counter_event.
5561         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
5562         of bswap_stats.  Add calls to statistics_counter_event.
5563         (convert_mult_to_widen): Increment widen_mults_inserted.
5564         (convert_plusminus_to_widen): Increment maccs_inserted.
5565         (convert_mult_to_fma): Increment fmas_inserted.
5566         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
5567         calls to statistics_counter_event.
5568
5569 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
5570
5571         PR rtl-optimization/48455
5572         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5573         `temp_costs->mem_cost'.
5574
5575 2011-04-13  Jan Hubicka  <jh@suse.cz>
5576
5577         * ipa-inline.h: New file.
5578         * ipa-inline-analysis.c: New file. Broken out of ...
5579         * ipa-inline.c: ... this file; update toplevel comment;
5580         include ipa-inline.h
5581         (inline_summary): Move to ipa-inline.h
5582         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5583         ipa-inline-analysis.c.
5584         (cgraph_estimate_time_after_inlining): Rename to
5585         estiamte_time_after_inlining; move to ipa-inline-analysis.c
5586         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5587         to estimate_edge_growth.
5588         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5589         rename to estimate_size_after_inlining.
5590         (cgraph_mark_inline_edge): Update for new naming convention.
5591         (cgraph_check_inline_limits): Likewise.
5592         (cgraph_edge_badness): Likewise.
5593         (cgraph_decide_recursive_inlining): Likewise.
5594         (cgraph_decide_inlining_of_small_functions): Likewise.
5595         (cgraph_decide_inlining_incrementally): Likewise.
5596         (cgraph_estimate_growth): Rename to estimate_growth; move to
5597         ipa-inline-analysis.c.
5598         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5599         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5600         (compute_inline_parameters): Likewise.
5601         (compute_inline_parameters_for_current): Likewise.
5602         (pass_inline_parameters): Likewise.
5603         (inline_indirect_intraprocedural_analysis): Likewise.
5604         (analyze_function): Rename to inline_analyze_function; likewise.
5605         (add_new_function): Move to ipa-inline-analysis.c.
5606         (inline_generate_summary): Likewise.
5607         (inline_read_summary): Likewise.
5608         (inline_write_summary): Likewise.
5609         * Makefile.in (ipa-inline-analysis.c): New file.
5610
5611 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5612
5613         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5614         * configure: Regenerate.
5615
5616 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5617
5618         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5619         instead of tree_common.
5620         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5621         Likewise.
5622         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5623         TS_TYPED rather than TS_COMMON.
5624         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5625
5626 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
5627
5628         PR target/45263
5629         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5630         r20 around calls of __tablejump_elpm__
5631
5632 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
5633
5634         PR middle-end/48591
5635         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5636         NULL.
5637         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5638
5639 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
5640
5641         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5642         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5643         (cfi_vec): New typedef.
5644         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5645         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5646         (cie_cfi_vec): New static variable.
5647         (cie_cfi_head): Delete.
5648         (add_cfi): Accept a cfi_vec * as first argument. All callers and
5649         declaration changed. Use vector rather than list operations.
5650         (new_cfi): Don't initialize the dw_cfi_next field.
5651         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5652         rather than list operations.
5653         (lookup_cfa): Use vector rather than list operations.
5654         (output_cfis): New argument upto. Accept a cfi_vec rather than
5655         a dw_cfi_ref list head as argument. All callers changed.
5656         Iterate over the vector using upto as a maximum index.
5657         (output_all_cfis): New static function.
5658         (output_fde): Use vector rather than list operations. Use the
5659         new upto argument for output_cfis rather than manipulating a
5660         list.
5661         (dwarf2out_begin_prologue): Change initializations to match
5662         new struct members.
5663         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5664         from the vector length rather than searching for the end of a list.
5665         Use output_all_cfis.
5666         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5667
5668 2011-04-13  Nick Clifton  <nickc@redhat.com>
5669
5670         * config/rx/rx.md (movmemsi): Do not use this pattern when
5671         volatile pointers are involved.
5672
5673 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
5674
5675         * config/i386/sse.md (pinsrbits): Remove.
5676         (sse2_packsswb): Merge with *avx_packsswb.
5677         (sse2_packssdw): Merge with *avx_packssdw.
5678         (sse2_packuswb): Merge with *avx_packuswb.
5679         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5680         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5681         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5682         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5683         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5684         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5685         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5686         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5687         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5688         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5689         (sse2_loadld): Merge with *avx_loadld.
5690         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5691         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5692         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5693         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5694         (vec_concatv2di): Merge with *vec_concatv2di_avx.
5695
5696 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
5697
5698         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5699         calling TREE_CHAIN.
5700         * print-tree.c (print_node): Likewise.
5701         * tree-inline.c (copy_tree_r): Likewise.
5702         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5703         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5704         instead of TS_COMMON.
5705         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5706         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5707         (copy_node_stat): Zero TREE_CHAIN only if necessary.
5708         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5709         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5710         ...and these...
5711         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5712         * tree.h: ...here.
5713         (TREE_CHAIN): Check for a TS_COMMON structure.
5714         (TREE_TYPE): Check for a TS_TYPED structure.
5715
5716 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
5717
5718         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5719         cgraph_get_create_node instead of cgraph_node.
5720
5721 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5722
5723         * c-parser.c (c_parser_initelt): Updated call to
5724         objc_build_message_expr.
5725         (c_parser_postfix_expression): Likewise.
5726
5727 2011-04-12  Kai Tietz  <ktietz@redhat.com>
5728
5729         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5730         MASK_MS_BITFIELD_LAYOUT bit.
5731
5732 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5733
5734         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5735         assert it is always true.
5736         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5737         moves.
5738
5739 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5740
5741         * c-parser.c (c_lex_one_token): Rewritten conditional used when
5742         compiling Objective-C to be more efficient.
5743
5744 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
5745
5746         * opts-common.c (decode_cmdline_options_to_array): Remove variable
5747         argv_copied.
5748
5749 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5750
5751         * recog.h, genoutput.c, optabs.c: Revert last patch.
5752
5753 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5754
5755         PR target/48090
5756         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
5757
5758 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5759
5760         * recog.h (insn_operand_data): Add an "allows_mem" field.
5761         * genoutput.c (output_operand_data): Initialize it.
5762         * optabs.c (maybe_legitimize_operand_same_code): New function.
5763         (maybe_legitimize_operand): Use it when matching the original
5764         op->value.
5765
5766 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5767
5768         * genpreds.c (process_define_predicate): Move most processing
5769         to gensupport.c.  Continue to validate the expression.
5770         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5771         (process_define_predicate): Move processing to gensupport.c.
5772         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5773         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5774         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
5775         argument.
5776         (valid_predicate_name_p): New function, split out from old
5777         genpreds.c:process_define_predicate.
5778         (process_define_predicate): New function, combining code from
5779         old genpreds.c and genrecog.c functions.
5780         (process_rtx): Call it for DEFINE_PREDICATE and
5781         DEFINE_SPECIAL_PREDICATE.
5782
5783 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5784
5785         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5786         size of a '%A' memory reference.
5787         (T_DREG, T_QREG): New neon_builtin_type_bits.
5788         (arm_init_neon_builtins): Assert that the load and store operands
5789         are neon_struct_operands.
5790         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5791         (NEON_ARG_MEMORY): New builtin_arg.
5792         (neon_dereference_pointer): New function.
5793         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5794         Handle NEON_ARG_MEMORY.
5795         (arm_expand_neon_builtin): Update after above interface changes.
5796         Use NEON_ARG_MEMORY for loads and stores.
5797         * config/arm/predicates.md (neon_struct_operand): New predicate.
5798         * config/arm/iterators.md (V_two_elem): Tweak formatting.
5799         (V_three_elem): Use BLKmode for accesses that have no associated mode.
5800         (V_four_elem): Tweak formatting.
5801         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5802         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5803         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5804         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5805         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5806         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5807         (neon_vst4<mode>): Replace pointer operand with a memory operand.
5808         Use %A in the output template.
5809         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5810         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5811         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5812         the width of the memory access.  Remove post-increment.
5813         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5814
5815 2011-04-12  Nick Clifton  <nickc@redhat.com>
5816
5817         * config/v850/v850.c (expand_prologue): Do not use the CALLT
5818         instruction for interrupt handlers if the target is the basic V850
5819         architecture.
5820         (expand_epilogue): Likewise.
5821
5822 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5823
5824         PR rtl-optimization/48549
5825         * combine.c (propagate_for_debug): Also stop after BB_END of
5826         this_basic_block.  Process LAST and just stop processing after it.
5827         (combine_instructions): If last_combined_insn has been deleted,
5828         set last_combined_insn to its PREV_INSN.
5829
5830 2011-04-12  Richard Guenther  <rguenther@suse.de>
5831
5832         PR tree-optimization/46076
5833         * gimple.h (struct gimple_statement_call): Add fntype field.
5834         (gimple_call_fntype): Adjust.
5835         (gimple_call_set_fntype): New function.
5836         * gimple.c (gimple_build_call_1): Set the call function type.
5837         * gimplify.c (gimplify_call_expr): Preserve the function
5838         type the frontend used for the call.
5839         (gimplify_modify_expr): Likewise.
5840         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5841         function type.
5842         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5843         function type.
5844         * tree-ssa.c (useless_type_conversion_p): Function pointer
5845         conversions are useless.
5846
5847 2011-04-12  Martin Jambor  <mjambor@suse.cz>
5848
5849         * cgraph.h (cgraph_node): Remove function declaration.
5850         (cgraph_create_node): Declare.
5851         (cgraph_get_create_node): Likewise.
5852         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5853         Updated all callers.
5854         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5855         the decl does not already exist.  Call cgraph_get_create_node instead
5856         of cgraph_node.
5857         (cgraph_get_create_node): New function.
5858         (cgraph_same_body_alias): Update comment.
5859         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5860         assert it does not return NULL.
5861         (cgraph_update_edges_for_call_stmt): Likewise.
5862         (cgraph_clone_edge): Likewise.
5863         (cgraph_create_virtual_clone): Likewise.
5864         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5865         instead of cgraph_node.
5866         (cgraph_add_new_function): Call cgraph_create_node or
5867         cgraph_get_create_node instead of cgraph_node.
5868         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5869         instead of cgraph_node.
5870         (record_eh_tables): Likewise.
5871         (mark_address): Likewise.
5872         (mark_load): Likewise.
5873         (build_cgraph_edges): Call cgraph_get_create_node instead
5874         of cgraph_node.
5875         (rebuild_cgraph_edges): Likewise.
5876         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5877         instead of cgraph_node.
5878         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5879         cgraph_node.
5880         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5881         cgraph_create_node instead of cgraph_node.
5882         * c-decl.c (finish_function): Call cgraph_get_create_node instead
5883         of cgraph_node.
5884         * lto-cgraph.c (input_node): Likewise.
5885         * lto-streamer-in.c (input_function): Likewise.
5886         * varasm.c (mark_decl_referenced): Likewise.
5887         (assemble_alias): Likewise.
5888
5889 2011-04-12  Martin Jambor  <mjambor@suse.cz>
5890
5891         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5892         instead of cgraph_node and assert it does not return NULL.
5893         * lto-streamer-in.c (lto_read_body): Likewise.
5894         * omp-low.c (new_omp_context): Likewise.
5895         (create_task_copyfn): Likewise.
5896         * tree-emutls.c (lower_emutls_function_body): Likewise.
5897         * matrix-reorg.c (transform_allocation_sites): Likewise.
5898
5899 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5900
5901         PR c/48552
5902         * c-typeck.c (build_asm_expr): Error out on attempts to use
5903         void type outputs or inputs for constraints that allow reg or
5904         don't allow memory.
5905
5906 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
5907             Richard Earnshaw  <rearnsha@arm.com>
5908
5909         PR target/48250
5910         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5911         to use sign-magnitude offsets. Reject unsupported unaligned
5912         cases. Add detailed description in comments.
5913         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5914         condition from TARGET_32BIT to TARGET_ARM.
5915
5916 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
5917
5918         * tree.h (struct typed_tree): New.
5919         (struct tree_common): Include it instead of tree_base.
5920         (TREE_TYPE): Update for new location of type field.
5921         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5922         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5923         (union tree_node): Add typed field.
5924         * treestruct.def (TS_TYPED): New.
5925         * lto-streamer.c (check_handled_ts_structures): Handle it.
5926         * tree.c (MARK_TS_TYPED): New macro.
5927         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5928
5929 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
5930
5931         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5932         (force_nonfallthru): Do not alter the loop nest if no basic block
5933         was created.
5934
5935 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
5936
5937         * config/i386/sse.md (VI): New mode iterator.
5938         (SSEMODEI): Remove.
5939         (AVX256MODEI): Ditto.
5940         (AVXMODEF4P): Ditto.
5941         (avxvecpsmode): Ditto.
5942         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
5943         (sse2_andnot<mode>3): New expander.
5944         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5945         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
5946         (<any_logic:code><mode>3): Use VI mode iterator.
5947         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5948         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
5949         (*andnottf3): Handle AVX three-operand constraints.
5950         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5951
5952 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5953             Robert Millan  <rmh@gnu.org>
5954
5955         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5956         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5957         GNU_USER_DYNAMIC_LINKER64): Define.
5958         (REG_NAME): Don't undefine.
5959         (MD_UNWIND_SUPPORT): Undefine.
5960         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5961         (REG_NAME): Don't undefine.
5962         (MD_UNWIND_SUPPORT): Undefine.
5963         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5964
5965 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5966
5967         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5968         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5969
5970 2011-04-11  Xinliang David Li  <davidxl@google.com>
5971
5972         * value-profile.c (check_ic_target): New function.
5973         (gimple_ic_transform): Sanity check indirect call target.
5974         * gimple-low.c (gimple_check_call_args): Interface change.
5975         (gimple_check_call_matching_types): New function.
5976         * tree-inline.c (tree_can_inline_p): Call new function.
5977
5978 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
5979
5980         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5981         tree-pretty-print.h & realmpfr.h.
5982
5983 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
5984
5985         PR middle-end/48464
5986         * ira.c (setup_pressure_classes): Fix typo in loop condition.
5987         (setup_allocno_and_important_classes): Ditto.
5988
5989 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5990
5991         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5992         GNU_USER_DYNAMIC_LINKER.
5993         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5994         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5995         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5996         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5997         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5998         GNU_USER_TARGET_OS_CPP_BUILTINS.
5999         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
6000         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6001         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6002         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6003         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
6004         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6005         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6006         GNU_USER_TARGET_OS_CPP_BUILTINS.
6007         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6008         GNU_USER_DYNAMIC_LINKER.
6009         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6010         GNU_USER_TARGET_OS_CPP_BUILTINS.
6011         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6012         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6013         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6014         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6015         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6016         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6017         GNU_USER_DYNAMIC_LINKER64): Remove.
6018         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6019         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6020         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6021         GNU_USER_DYNAMIC_LINKER.
6022         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6023         GNU_USER_TARGET_OS_CPP_BUILTINS.
6024         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6025         GNU_USER_TARGET_OS_CPP_BUILTINS.
6026         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
6027         to GNU_USER_TARGET_OS_CPP_BUILTINS.
6028         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6029         GNU_USER_TARGET_OS_CPP_BUILTINS.
6030         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
6031         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
6032         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6033         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
6034         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6035         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6036         GNU_USER_DYNAMIC_LINKER.
6037         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6038         GNU_USER_TARGET_OS_CPP_BUILTINS.
6039         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
6040         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6041         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6042         GNU_USER_DYNAMIC_LINKER.
6043         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6044         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6045         * config/mips/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/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
6050         GNU_USER_DYNAMIC_LINKERN32.
6051         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
6052         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
6053         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
6054         GNU_USER_DYNAMIC_LINKER32.
6055         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
6056         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6057         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6058         GNU_USER_DYNAMIC_LINKER.
6059         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6060         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6061         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
6062         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6063         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6064         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
6065         GNU_USER_DYNAMIC_LINKER32.
6066         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6067         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
6068         GNU_USER_DYNAMIC_LINKER.
6069         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
6070         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6071         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6072         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
6073         GNU_USER_DYNAMIC_LINKER64.
6074         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
6075         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6076         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6077         GNU_USER_DYNAMIC_LINKER.
6078         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
6079         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6080         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6081         GNU_USER_DYNAMIC_LINKER.
6082         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
6083         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6084         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6085         GNU_USER_DYNAMIC_LINKER32.
6086         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6087         GNU_USER_DYNAMIC_LINKER64.
6088         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6089         GNU_USER_DYNAMIC_LINKER64.
6090         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
6091         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6092         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
6093         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6094         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6095
6096 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6097
6098         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
6099         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
6100         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
6101         GNU_USER_DYNAMIC_LINKER.
6102         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6103         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
6104         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
6105         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
6106         GNU_USER_DYNAMIC_LINKER64.
6107         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6108         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
6109         GNU_USER_LINK_EMULATION.
6110         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
6111         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
6112         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
6113         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
6114         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
6115         CPP_SPEC, CC1_SPEC): Remove.
6116         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
6117         (GNU_USER_DYNAMIC_LINKER): Define.
6118         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
6119         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
6120         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
6121         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
6122         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
6123         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
6124         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6125         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
6126         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
6127         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
6128         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
6129         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
6130         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
6131         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
6132         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
6133         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6134         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6135         GNU_USER_DYNAMIC_LINKER.
6136         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6137         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
6138         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6139         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
6140         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6141         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
6142         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
6143         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
6144         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
6145         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
6146
6147 2011-04-11  Kai Tietz  <ktietz@redhat.com>
6148
6149         PR target/9601
6150         PR target/11772
6151         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
6152         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
6153         comment.
6154         (ix86_is_msabi_thiscall): Removed.
6155         (ix86_is_type_thiscall): Likewise.
6156         (ix86_get_callcvt): New function.
6157         (ix86_comp_type_attributes): Simplify check.
6158         (ix86_function_regparm): Use ix86_get_callcvt for calling
6159         convention attribute checks.
6160         (ix86_return_pops_args): Likewise.
6161         (ix86_static_chain): Likewise.
6162         (x86_this_parameter): Likewise.
6163         (x86_output_mi_thunk): Likewise.
6164         (ix86_function_type_abi): Optimize check for types without attributes.
6165         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
6166         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
6167         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
6168         by flag-values.
6169         (IX86_BASE_CALLCVT): Helper macro.
6170         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6171         Use ix86_get_callcvt for calling convention attribute checks and avoid
6172         symbol-decoration for stdcall in TARGET_RTD case.
6173         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
6174         Likewise.
6175         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
6176         for declaration.
6177
6178 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
6179
6180         * config/i386/sse.md (VI_128): New mode iterator.
6181         (VI12_128): Rename from SSEMODE12.
6182         (VI14_128): Rename from SSEMODE14.
6183         (VI124_128): New mode iterator.
6184         (VI24_128): Rename from SSEMODE248.
6185         (VI248_128): Rename from SSEMODE248.
6186         (SSEMODE124C8): Remove.
6187         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6188         (*sse2_<plusminus_insn><mode>3): Merge with
6189         *avx_<plusminus_insn><mode>3.
6190         (*mulv8hi3): Merge with *avx_mulv8hi3.
6191         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
6192         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
6193         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
6194         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
6195         (ashr<mode>3): Merge with *avx_ashr<mode>3.
6196         (lshr<mode>3): Merge with *avx_lshr<mode>3.
6197         (ashl<mode>3): Merge with *avx_ashl<mode>3.
6198         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
6199         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
6200         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6201         (*<smaxmin:code>v8hi3): Ditto.
6202         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
6203         (*<smaxmin:code>v16qi3): Ditto.
6204         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
6205         (*sse2_eq<mode>3): Ditto.
6206         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
6207         (*sse2_gt<mode>3): Ditto.
6208         (vcondv2di): Split out of vcond<mode>.
6209         (vconduv2di): Split out of vcondu<mode>.
6210
6211 2011-04-11  Richard Guenther  <rguenther@suse.de>
6212
6213         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
6214         before calling tree_low_cst.
6215
6216 2011-04-11  Richard Guenther  <rguenther@suse.de>
6217
6218         * stor-layout.c (layout_type): Compute all array index size operations
6219         in the original type.
6220         (initialize_sizetypes): Add comment.
6221         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
6222
6223 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6224
6225         * common.opt (Tbss=, Tdata=, Ttext=): New options.
6226
6227 2011-04-11  Martin Jambor  <mjambor@suse.cz>
6228
6229         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
6230         of cgraph_node, handle NULL return value.
6231         (cgraph_global_info): Likewise.
6232         (cgraph_rtl_info): Likewise.
6233         * tree-inline.c (estimate_num_insns): Likewise.
6234         * gimplify.c (unshare_body): Likewise.
6235         (unvisit_body): Likewise.
6236         (gimplify_body): Likewise.
6237         * predict.c (optimize_function_for_size_p): Likewise.
6238         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6239         (call_may_clobber_ref_p_1): Likewise.
6240         * varasm.c (function_section_1): Likewise.
6241         (assemble_start_function): Likewise.
6242
6243 2011-04-11  Martin Jambor  <mjambor@suse.cz>
6244
6245         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
6246         of cgraph_node.
6247         * final.c (rest_of_clean_state): Likewise.
6248         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
6249         * passes.c (pass_init_dump_file): Likewise.
6250         (execute_all_ipa_transforms): Likewise.
6251         (function_called_by_processed_nodes_p): Likewise.
6252         * predict.c (maybe_hot_frequency_p): Likewise.
6253         (probably_never_executed_bb_p): Likewise.
6254         (compute_function_frequency): Likewise.
6255         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
6256         (unnest_nesting_tree_1): Likewise.
6257         (lower_nested_functions): Likewise.
6258         * tree-optimize.c (execute_fixup_cfg): Likewise.
6259         (tree_rest_of_compilation): Likewise.
6260         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
6261         * tree-sra.c (ipa_early_sra): Likewise.
6262         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6263         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
6264         * ipa.c (record_cdtor_fn): Likewise.
6265         * ipa-inline.c (cgraph_early_inlining): Likewise.
6266         (compute_inline_parameters_for_current): Likewise.
6267         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6268         * ipa-pure-const.c (local_pure_const): Likewise.
6269         * ipa-split.c (split_function): Likewise.
6270         (execute_split_functions): Likewise.
6271         * cgraphbuild.c (build_cgraph_edges): Likewise.
6272         (rebuild_cgraph_edges): Likewise.
6273         (cgraph_rebuild_references): Likewise.
6274         (remove_cgraph_callee_edges): Likewise.
6275         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
6276         (verify_cgraph_node): Likewise.
6277         (cgraph_analyze_functions): Likewise.
6278         (cgraph_preserve_function_body_p): Likewise.
6279         (save_inline_function_body): Likewise.
6280         (save_inline_function_body): Likewise.
6281         * tree-inline.c (copy_bb): Likewise.
6282         (optimize_inline_calls): Likewise.
6283
6284 2011-04-11  Martin Jambor  <mjambor@suse.cz>
6285
6286         PR tree-optimization/48195
6287         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
6288         ipa_check_create_edge_args.
6289         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
6290         ipa_check_create_edge_args.
6291         * ipa-inline.c (inline_generate_summary): Do not call
6292         ipa_check_create_node_params and ipa_check_create_edge_args.
6293         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
6294         ipa_check_create_edge_args.
6295
6296 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
6297
6298         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
6299         instead of loop.
6300         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6301         * function.c (record_hard_reg_sets): Likewise.
6302         * ira.c (compute_regs_asm_clobbered): Likewise.
6303         * sched-deps.c (sched_analyze_1): Likewise.
6304         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
6305
6306 2011-04-09  Xinliang David Li  <davidxl@google.com>
6307
6308         PR tree-optimization/PR48484
6309         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
6310         has_valid_pred lazily
6311
6312 2011-04-09  Duncan Sands  <baldrick@free.fr>
6313
6314         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
6315
6316 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
6317
6318         * combine.c (combine_validate_cost): Adjust comments.  Set registered
6319         cost of I0 to zero at the end, if any.
6320
6321 2011-04-08  Xinliang David Li  <davidxl@google.com>
6322
6323         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
6324         to insane profile data.
6325
6326 2011-04-08  Xinliang David Li  <davidxl@google.com>
6327
6328         * ipa-cp.c (ipcp_update_profiling): Correct
6329          negative scale factor due to insane profile data.
6330
6331 2011-04-08  Xinliang David Li  <davidxl@google.com>
6332
6333         * final.c (dump_basic_block_info): New function.
6334         (final): Dump basic block.
6335         (final_scan_insn): Remove old dump.
6336
6337 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
6338
6339         PR target/47829
6340         * config.gcc (i386-*-freebsd): Disable unwind table generation for
6341         crtbegin/crtend.
6342
6343 2011-04-08  Michael Matz  <matz@suse.de>
6344
6345         PR middle-end/48389
6346         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
6347         functions.
6348         (rebuild_jump_labels): Call rebuild_jump_labels_1.
6349         * rtl.h (rebuild_jump_labels_chain): Declare.
6350         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
6351         insns inserted on edges.
6352
6353 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
6354
6355         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
6356         * config/arm/arm-arches.def: New.
6357         * config/arm/arm-opts.h: New.
6358         * config/arm/genopt.sh: New.
6359         * config/arm/arm-tables.opt: New (generated).
6360         * config/arm/arm.c (arm_handle_option, arm_target_help,
6361         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
6362         (all_architectures): Get most table contents from arm-arches.def.
6363         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
6364         arm_selected_tune here.
6365         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
6366         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
6367         (march=, mcpu=, mtune=): Use Enum and Var.
6368         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
6369         (arm.o): Update dependencies.
6370
6371 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
6372
6373         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
6374         of header_file.
6375         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
6376         (write_typed_alloc_defns): Likewise.
6377         (main): Calls write_typed_alloc_defns with output_header.
6378
6379 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
6380
6381         PR inline-asm/48435
6382         * ira-color.c (setup_profitable_hard_regs): Add comments.
6383         Don't take prohibited hard regs into account.
6384         (setup_conflict_profitable_regs): Rename to
6385         get_conflict_profitable_regs.
6386         (check_hard_reg_p): Check prohibited hard regs.
6387
6388 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
6389
6390         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
6391         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
6392         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
6393
6394 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6395
6396         PR target/48366
6397         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
6398         move from floating point to shift amount register.
6399         (emit_move_sequence): Remove secondary reload support for floating
6400         point to shift amount amount register copies.
6401         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
6402         amount register copies.
6403         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
6404         register, return false if mode isn't a scalar integer mode.
6405         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
6406
6407 2011-04-08  Richard Guenther  <rguenther@suse.de>
6408
6409         * gimple.c (gimple_call_flags): Remove kludge.
6410
6411 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6412
6413         * sel-sched.c (sel_region_init): Move call to
6414         sel_setup_region_sched_flags after setup_current_loop_nest.
6415
6416 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
6417
6418         PR rtl-optimization/48272
6419         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
6420         init_insn_reg_pressure_info.  Adjust a caller.
6421         * sched-int.h (init_insn_reg_pressure_info): Declare.
6422         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
6423         when sched-pressure is enabled.
6424
6425 2011-04-08  Richard Guenther  <rguenther@suse.de>
6426
6427         * gimple.c (gimple_set_modified): Do not queue calls to
6428         MODIFIED_NORETURN_CALLS here ...
6429         * tree-ssa-operands.c (update_stmt_operands): ... but here.
6430
6431 2011-04-08  Richard Guenther  <rguenther@suse.de>
6432
6433         PR lto/48467
6434         * toplev.c (lang_dependent_init): Do not open asm_out_file
6435         in WPA mode, nor perform debug machinery initialization.
6436         (finalize): Do not unlink asm_out_file in WPA mode.
6437
6438 2011-04-08  Richard Guenther  <rguenther@suse.de>
6439
6440         * gimple.h (gimple_call_fntype): New function.
6441         (gimple_call_return_type): Use it.
6442         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
6443         * gimple-low.c (gimple_check_call_args): Likewise.
6444         * gimple.c (gimple_call_flags): Likewise.
6445         (gimple_call_arg_flags): Likewise.
6446         (gimple_call_return_flags): Likewise.
6447         * tree-cfg.c (verify_gimple_call): Likewise.
6448         (do_warn_unused_result): Likewise.
6449         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6450         * value-prof.c (gimple_ic_transform): Fix fndecl check.
6451
6452 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
6453
6454         PR rtl-optimization/48235
6455         * sel-sched.c (code_motion_process_successors): Recompute the last
6456         insn in basic block if control flow changed.
6457         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
6458         Update condition for ilist_remove.
6459
6460 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6461
6462         PR rtl-optimization/48302
6463         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
6464         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
6465         it to record added preheader blocks.
6466         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
6467         on to sel_add_loop_preheaders.
6468         (sel_region_init): Move call to setup_current_loop_nest after
6469         sel_init_bbs.
6470
6471 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6472
6473         PR target/48273
6474         * cfgloop.h (loop_has_exit_edges): New helper.
6475         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
6476         non-clonable.
6477         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
6478         that have no exit edges.
6479
6480 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6481
6482         PR rtl-optimization/48442
6483         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
6484         all callers.  Adjust assert.
6485
6486 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
6487
6488         PR tree-optimization/48377
6489         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
6490         is_packed to true even for types with smaller TYPE_ALIGN than
6491         TYPE_SIZE.
6492
6493 2011-04-08  Richard Guenther  <rguenther@suse.de>
6494
6495         PR bootstrap/48513
6496         * doc/tm.texi: Re-generate.
6497
6498 2011-04-08  Wei Guozhi  <carrot@google.com>
6499
6500         PR target/47855
6501         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
6502         * config/arm/arm.c (arm_attr_length_push_multi): New function.
6503         * config/arm/arm.md (*push_multi): Change the length computation to
6504         call a C function.
6505
6506 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
6507
6508         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
6509         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
6510         * doc/tm.texi: Regenerate.
6511         * system.h (ASM_OUTPUT_BSS): Poison.
6512         * varasm.c (asm_output_bss): Remove function.
6513         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
6514
6515         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
6516         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
6517         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
6518         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6519         Likewise.
6520         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6521         Likewise.
6522         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6523         Likewise.
6524         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6525
6526 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
6527
6528         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6529         EnumValue lines.
6530
6531 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
6532
6533         * config/m68k/m68k.c (m68k_handle_option): Don't handle
6534         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6535         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6536         OPT_mcpu32.
6537         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6538         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6539         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6540         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6541         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6542         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6543         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6544         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6545         options.  Don't map other m68k options manually.  Don't handle
6546         old-style options as canonical.
6547         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6548         * doc/install.texi (m68k-*-*): Document binutils version requirement.
6549
6550 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
6551
6552         * basic-block.h (force_nonfallthru): Move to...
6553         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6554         (force_nonfallthru): ...here.
6555         * cfghooks.c (force_nonfallthru): New function.
6556         * cfgrtl.c (force_nonfallthru): Rename into...
6557         (rtl_force_nonfallthru): ...this.
6558         (commit_one_edge_insertion): Do not set AUX field.
6559         (commit_edge_insertions): Do not discover new basic blocks.
6560         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6561         (cfg_layout_rtl_cfg_hooks): Likewise.
6562         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6563         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
6564         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6565
6566 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
6567
6568         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6569         Remove macros.
6570
6571 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
6572
6573         * config/i386/sse.md: Update copyright year.
6574         (avxcvtvecmode): Remove.
6575         (sse_movhlps): Merge with *avx_movhlps.
6576         (sse_movlhps): Merge with *avx_movlhps.
6577         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6578         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6579         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6580         (sse_loadhps): Merge with *avx_loadhps.
6581         (sse_storelps): Merge with *avx_storelps.
6582         (sse_loadlps): Merge with *avx_loadlps.
6583         (sse_movss): Merge with *avx_movss.
6584         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6585         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6586         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6587         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6588         (vec_set<mode>_0): Ditto.
6589         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6590         (sse4_1_insertps): Merge with *avx_insertps.
6591         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6592         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6593         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6594         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6595         (sse2_storehpd): Merge with *avx_storehpd.
6596         (sse2_loadhpd): Merge with *avx_loadhpd.
6597         (sse2_loadlpd): Merge with *avx_loadlpd.
6598         (sse2_movsd): Merge with *avx_movsd.
6599         (*vec_concatv2df): Merge with *vec_concatv2df.
6600
6601 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
6602
6603         PR debug/48343
6604         * combine.c (combine_instructions): Add last_combined_insn,
6605         update it if insn is after it, pass it to all try_combine calls.
6606         (try_combine): Add last_combined_insn parameter, pass it instead of
6607         i3 to propagate_for_debug.
6608
6609 2011-04-07  Nick Clifton  <nickc@redhat.com>
6610
6611         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6612         to handle MDR <-> data register transfers.
6613         (movhi_internal): Likewise.
6614
6615 2011-04-07  Alan Modra  <amodra@gmail.com>
6616
6617         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6618         previous stack info.
6619
6620 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6621
6622         PR target/43920
6623         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
6624         flow_find_cross_jump.  Swap variables to implement backward replacement.
6625         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6626
6627 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6628
6629         PR target/43920
6630         * cfgcleanup.c (walk_to_nondebug_insn): New function.
6631         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
6632         and bb2.
6633         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6634         src1 or src2.  Redirect edges to the last basic block.  Update
6635         frequency and count on multiple basic blocks in case of fallthru.
6636
6637 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6638
6639         PR target/43920
6640         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6641         function.
6642         (old_insns_match_p): Change return type.  Replace return false/true
6643         with return dir_none/dir_both.  Use can_replace_by.
6644         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
6645         direction from dir_p.  Register replacement direction in dir, last_dir
6646         and afterlast_dir.  Handle new return type of old_insns_match_p using
6647         merge_dir.  Return replacement direction in dir_p.
6648         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6649         return type of old_insns_match_p.
6650         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6651         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6652         flow_find_cross_jump.
6653         * basic-block.h (enum replace_direction): New type.
6654         (flow_find_cross_jump): Add parameter to declaration.
6655
6656 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
6657
6658         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6659         (AVXMODEDCVTPS2DQ): Ditto.
6660         (VEC_FLOAT_MODE): Ditto.
6661         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
6662         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6663         (<any_logic:code><mode>3): Use VF mode iterator.
6664         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6665         Use VF mode iterator.
6666         (copysign<mode>3): Use VF mode iterator.
6667         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
6668         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6669         (*<any_logic:code><MODEF:mode>3): Merge with
6670         *avx_<any_logic:code><MODEF:mode>3.
6671         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6672         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6673         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6674         (avx_cvtdq2ps<avxmodesuffix>): Remove.
6675         (sse2_cvtdq2ps): Use %v modifier.
6676         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6677         (avx_cvtps2dq<avxmodesuffix>): Remove.
6678         (sse2_cvtps2dq): Use %v modifier.
6679         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6680         (avx_cvttps2dq<avxmodesuffix>): Remove.
6681         (sse2_cvttps2dq): Use %v modifier.
6682         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6683         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6684         (sse2_cvtsd2siq): Fix insn template.
6685         (sse2_cvtsd2siq_2): Ditto.
6686         (sse2_cvttsd2siq): Ditto.
6687         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6688         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6689
6690 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
6691
6692         * gcov-io.c: Use GCC Runtime Library Exception.
6693
6694 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
6695
6696         PR debug/48466
6697         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6698         as base_reg whatever register reg has been eliminated to, instead
6699         of hardcoding STACK_POINTER_REGNUM.
6700
6701 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
6702
6703         * doc/tm.texi.in: Document C target hooks as separate from general
6704         target hooks.
6705         * doc/tm.texi: Regenerate.
6706         * genhooks.c (struct hook_desc): Add docname field.
6707         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
6708         docname field.
6709         (hook_array): Include c-target.def.
6710         (emit_documentation): Use docname field in output.
6711         (emit_init_macros): Take docname argument.  Only emit definitions
6712         for hooks matching docname.
6713         (main): Expect additional arguments in all cases.  Pass argument
6714         to emit_init_macros.
6715         * target.def: Move initial macro definitions and comments to
6716         target-hooks-macros.h.
6717         (gcc_targetcm): Move to c-family/c-target.def.
6718         * target.h (targetcm): Move declaration to c-family/c-target.h.
6719         * targhooks.c (default_handle_c_option): Move to
6720         c-family/c-opts.c.
6721         * targhooks.h (default_handle_c_option): Move declaration to
6722         c-family/c-common.h.
6723         * target-hooks-macros.h: New file.
6724         * config.gcc (target_has_targetcm): Define and use to add to
6725         c_target_objs and cxx_target_objs.
6726         * config/default-c.c: New file.
6727         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6728         of target.h and target-def.h.
6729         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6730         (darwin_objc_construct_string, darwin_cfstring_ref_p,
6731         darwin_check_cfstring_format_arg): Make static.
6732         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6733         TARGET_STRING_OBJECT_REF_TYPE_P,
6734         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6735         * config/darwin-protos.h (darwin_objc_construct_string,
6736         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6737         declare.
6738         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6739         TARGET_STRING_OBJECT_REF_TYPE_P,
6740         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6741         * config/t-darwin (darwin-c.o): Update dependencies.
6742         * system.h (TARGET_HAS_TARGETCM): Poison.
6743         * Makefile.in (TARGET_H): Update.
6744         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6745         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6746         (default-c.o): New target.
6747         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6748         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6749         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
6750         c-target.def.
6751         (build/genhooks.o): Update dependencies.
6752
6753 2011-04-06  Richard Guenther  <rguenther@suse.de>
6754
6755         * ipa-inline.c (enum inlining_mode): Remove.
6756         (cgraph_flatten): Use some other token.
6757         (cgraph_edge_early_inlinable_p): New function, split out from ...
6758         (cgraph_perform_always_inlining): New function, split out from ...
6759         (cgraph_decide_inlining_incrementally): ... here.
6760         (cgraph_mark_inline_edge): Adjust.
6761         (cgraph_early_inlining): Re-structure.
6762         (pass_early_inline): Require SSA form.
6763
6764 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
6765             Julian Brown  <julian@codesourcery.com>
6766             Mark Shinwell  <shinwell@codesourcery.com>
6767
6768         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6769         LO_REGS only for Thumb-1.
6770         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6771         be used in short instructions when optimising for size on Thumb-2.
6772
6773 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6774
6775         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6776         associated with user returns to be preserved.
6777
6778 2011-04-06  Tristan Gingold  <gingold@adacore.com>
6779
6780         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6781         symbol_queue_size, DBXOUT_DECR_NESTING,
6782         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6783         if XCOFF_DEBUGGING_INFO.
6784
6785 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
6786
6787         * config/i386/i386.md (attribute isa): New.
6788         (attribute enabled): New.
6789         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6790         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6791         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6792         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6793         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6794         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6795         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6796         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6797
6798         * config/i386/sse.md (VF): New mode iterator.
6799         (VF1): Ditto.
6800         (VF2): Ditto.
6801         (VF_128): Ditto.
6802         (SSEMODEF4): Remove.
6803         (attribute sse): Handle V8SF and V4DF modes.
6804         (<absneg:code><mode>2): Use VF mode iterator.
6805         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
6806         mode iterator.
6807         (<plusminus_insn><mode>3): Use VF mode iterator.
6808         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6809         Use VF mode iterator.
6810         (<sse>_vm<plusminus_insn><mode>3): Merge with
6811         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
6812         (mul<mode>3): Use VF mode iterator.
6813         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
6814         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
6815         mode iterator.
6816         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6817         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6818         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
6819         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
6820         mode iterator.
6821         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6822         Use VF1 mode iterator.
6823         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6824         (sqrt<VF2:mode>2): New expander.
6825         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6826         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6827         and sqrtv2df2.  Use VF mode iterator.
6828         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
6829         mode iterator.
6830         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6831         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6832         Use VF1 mode iterator.
6833         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6834         (<smaxmin:code><mode>3): Use VF mode iterator.
6835         (*<smaxmin:code><mode>3_finite): Merge with
6836         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
6837         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6838         (<sse>_vm<smaxmin:code><mode>2): Merge with
6839         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
6840         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
6841         mode iterator.
6842         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
6843         mode iterator.
6844         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6845         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6846         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6847         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6848         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
6849         VF mode iterator.
6850         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6851         Use VF_128 mode iterator.
6852         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
6853         mode iterator.
6854         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
6855         VF_128 mode iterator.
6856         (vcond<mode>): Use VF mode iterator.
6857         * config/i386/predicates.md (sse_comparison_operator): Merge with
6858         avx_comparison_float_operator.  Do not declare as special_predicate.
6859         * config/i386/i386.c (struct builtin_description): Update for renamed
6860         compare patterns.
6861         (ix86_expand_args_builtin): Ditto.
6862         (ix86_expand_sse_compare_mask): Ditto.
6863
6864 2011-04-06  Richard Guenther  <rguenther@suse.de>
6865
6866         * tree-inline.c (estimate_num_insns): For calls simply account
6867         for all passed arguments and a used return value.
6868
6869 2011-04-06  Richard Guenther  <rguenther@suse.de>
6870
6871         PR tree-optimization/47663
6872         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6873         call_stmt_time fields.
6874         (cgraph_edge_inlinable_p): Declare.
6875         (cgraph_edge_recursive_p): New inline function.
6876         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6877         (cgraph_clone_edge): Copy it.
6878         * ipa-inline.c (cgraph_estimate_edge_time): New function.
6879         Account for call stmt time.
6880         (cgraph_estimate_time_after_inlining): Take edge argument.
6881         (cgraph_estimate_edge_growth): Account call stmt size.
6882         (cgraph_estimate_size_after_inlining): Take edge argument.
6883         (cgraph_mark_inline_edge): Adjust.
6884         (cgraph_check_inline_limits): Likewise.
6885         (cgraph_recursive_inlining_p): Remove.
6886         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6887         (cgraph_decide_recursive_inlining): Take edge argument and
6888         adjust.
6889         (cgraph_decide_inlining_of_small_functions): Do not avoid
6890         diags for recursive inlining here.
6891         (cgraph_flatten): Adjust.
6892         (cgraph_decide_inlining_incrementally): Likewise.
6893         (estimate_function_body_sizes): Remove call cost handling.
6894         (compute_inline_parameters): Initialize caller edge call costs.
6895         (cgraph_estimate_edge_growth): New function.
6896         (cgraph_estimate_growth): Use it.
6897         (cgraph_edge_badness): Likewise.
6898         (cgraph_check_inline_limits): Take an edge argument.
6899         (cgraph_decide_inlining_of_small_functions): Adjust.
6900         (cgraph_decide_inlining): Likewise.
6901         * tree-inline.c (estimate_num_insns): Only account for call
6902         return value if it is used.
6903         (expand_call_inline): Avoid diagnostics on recursive inline
6904         functions here.
6905         * lto-cgraph.c (lto_output_edge): Output edge call costs.
6906         (input_edge): Input edge call costs.
6907
6908 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6909
6910         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6911
6912 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
6913
6914         * doc/invoke.texi (Spec Files): Fix typo.
6915
6916 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6917
6918         * profile.c (branch_prob): Move declaration of local variable.  Remove
6919         obsolete ??? comment.  Expand the location explicitly instead of using
6920         the LOCATION_FILE and LOCATION_LINE macros.
6921
6922 2011-04-06  Wei Guozhi  <carrot@google.com>
6923
6924         PR target/47855
6925         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6926         (arm_cond_branch): Likewise.
6927         (arm_cond_branch_reversed): Likewise.
6928         (arm_jump): Likewise.
6929         (push_multi): Likewise.
6930         * config/arm/constraints.md (Py): New constraint.
6931
6932 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6933
6934         PR bootstrap/48471
6935         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6936         Move these...
6937         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6938         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6939         #ifdef DBX_DEBUGGING_INFO.
6940
6941 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
6942
6943         PR bootstrap/48403
6944         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6945         if old and new states differ.
6946
6947 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
6948
6949         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6950         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6951         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6952         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6953         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6954         mcfv4e): Use Alias.
6955         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6956         ColdFire options to -mcpu= options.
6957
6958 2011-04-05  Jeff Law  <law@redhat.com>
6959
6960         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6961         check if BB is a successor of LOOP->header and return
6962         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6963
6964 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6965
6966         * cprop.c (struct reg_use): Remove.
6967         (reg_use_table): Make an array of RTX.
6968         (find_used_regs, constprop_register, local_cprop_pass,
6969         bypass_block): Simplify users of reg_use_table.
6970         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
6971         on one of the uses found by find_used_regs.
6972
6973 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6974
6975         PR bootstrap/48469
6976         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6977         declaration.
6978
6979 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6980
6981         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6982         as an rtx.
6983         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6984
6985 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6986
6987         PR middle-end/48441
6988         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6989
6990 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6991
6992         * combine.c: Include obstack.h.
6993         (struct insn_link): Define.
6994         (uid_log_links): Adjust type.
6995         (FOR_EACH_LOG_LINK): New macro.
6996         (insn_link_obstack): Declare.
6997         (alloc_insn_link): Define.
6998         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
6999         type of link variables.
7000         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
7001         (try_combine, record_promoted_values, distribute_notes): Likewise.
7002         (distribute_links): Likewise.  Tweak prototype.
7003         (clear_log_links): Delete.
7004         (adjust_for_new_dest): Call alloc_insn_link.
7005         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
7006
7007 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7008
7009         * gcse.c (modify_mem_list): Convert to an array of VECs.
7010         (canon_modify_mem_list, compute_transp): Tweak formatting.
7011         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
7012         (load_killed_in_block_p): Likewise.
7013         (record_last_mem_set_info): Likewise.
7014         (clear_modify_mem_tables): Likewise.
7015
7016 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7017
7018         PR middle-end/48461
7019         * function.c (emit_use_return_register_into_block): Only define if
7020         HAVE_return.
7021
7022 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
7023
7024         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
7025
7026 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
7027
7028         * config/rx/rx-opts.h: New.
7029         * config/rx/rx.c (rx_cpu_type): Remove.
7030         (rx_handle_option): Don't assert that global structures are in
7031         use.  Access variables via opts pointer.  Defer most handling of
7032         OPT_mint_register_.  Use error_at.
7033         (rx_option_override): Handle deferred OPT_mint_register_ here.
7034         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
7035         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
7036         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
7037         (rx_cpu_types): New Enum and EnumValue entries.
7038         (mint-register=): Use Defer and use Var accordingly.
7039
7040 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7041
7042         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
7043         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
7044         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
7045         Move these...
7046         (debug_free_queue, debug_nesting, symbol_queue_index):
7047         ...and these...
7048         * dbxout.c: ...to here.  Make static.
7049
7050 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7051
7052         * gcse.c (modify_pair): Define.  Define a VEC of it.
7053         (canon_modify_mem_list): Convert to an array of VECs.
7054         (free_insn_expr_list_list): Delete.
7055         (clear_modify_mem_tables): Call VEC_free instead.
7056         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
7057         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
7058         (canon_list_insert, compute_transp): Likewise.
7059
7060 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7061
7062         PR target/43920
7063         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
7064         for size.
7065
7066 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7067
7068         PR target/43920
7069         * function.c (emit_use_return_register_into_block): New function.
7070         (thread_prologue_and_epilogue_insns): Use
7071         emit_use_return_register_into_block.
7072
7073 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7074
7075         PR target/43920
7076         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
7077         insn.
7078
7079 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7080
7081         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
7082
7083 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
7084
7085         * config/arm/arm.md (define_constants for unspec): Replace with
7086         define_c_enum.
7087         (define_constants for unspecv): Replace with define_c_enum.
7088         * config/arm/neon.md (define_constants for unspec): Replace with
7089         define_c_enum.
7090
7091 2011-04-04  Richard Henderson  <rth@redhat.com>
7092
7093         PR bootstrap/48400
7094         * dwarf2out.c (output_line_info): Always emit line info from
7095         at least one section.
7096         (dwarf2out_init): Create text_section_line_info here ...
7097         (set_cur_line_info_table): ... not here.
7098
7099 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
7100
7101         PR target/48380
7102         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
7103         not called.
7104
7105         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
7106
7107 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
7108
7109         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
7110         (expr_equiv_p): Remove.
7111         (insert_set_in_table): Look at <dest, src> pair instead of expr.
7112         (hash_scan_set): Update call to insert_set_in_table.
7113         (dump_hash_table): Dump <dest, src> pair.
7114         (lookup_set): Simplify.  Lookup <dest, src> pair.
7115         (compute_transp): Remove, fold heavily simplified code into...
7116         (compute_local_properties): ...here.  Expect COMP and TRANSP
7117         unconditionally.
7118         (find_avail_set): Take set directly from struct expr.
7119         (find_bypass-set): Likewise.
7120         (bypass_block): Likewise.
7121         (cprop_insn): Likewise.  Remove redundant INSN_P test.
7122
7123         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
7124         checks on form of COND from find_implicit_sets to here.
7125         (find_implicit_sets): Cleanup control flow. Split critical edges
7126         if it exposes implicit sets.  Allocate/resize implicit_sets as
7127         necessary.
7128         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
7129         changed something.  Run df_analyze after find_implicit_sets if any
7130         edges were split.  Do not allocate implicit_sets here.
7131
7132         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
7133         (gcse_obstack): Renamed to cprop_obstack.
7134         (GNEW, GNEWVEC, GNEWVAR): Remove.
7135         (gmalloc): Remove.
7136         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
7137         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
7138         (gcse_alloc): Likewise, and rename to cprop_alloc.
7139         (alloc_gcse_men, free_gcse_mem): Remove.
7140         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
7141         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
7142         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
7143
7144         * cprop.c (oprs_not_set_p): Remove.
7145         (mark_set, mark_clobber): Remove.
7146         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
7147         (reg_not_set_p): New function.
7148         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
7149         (cprop_insn): Likewise.
7150         (cprop_jump): Use FOR_EACH_EDGE.
7151
7152 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
7153
7154         PR bootstrap/48403
7155         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
7156         (rank_for_schedule): Use scheduled_insns vector instead of
7157         last_scheduled_insn.
7158         (ok_for_early_queue_removal): Likewise.
7159         (queue_to_ready): Search forward in nonscheduled_insns_begin if
7160         we have a dbg_cnt.
7161         (choose_ready): Likewise.
7162         (commit_schedule): Use VEC_iterate.
7163         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
7164         a dbg_cnt, use it and ensure the first insn is in the ready list.
7165         (haifa_sched_init): Allocate scheduled_insns.
7166         (sched_extend_ready_list): Don't allocate it; reserve space.
7167         (haifa_sched_finish): Free it.
7168
7169 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
7170
7171         * optc-gen.awk: Always remove type from Variable entry before
7172         recording in var_seen.
7173
7174 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
7175
7176         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
7177         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
7178         call to tidy_fallthru_edges.
7179
7180 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
7181
7182         * doc/options.texi (ToLower): Document.
7183         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
7184         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
7185         * opts.h (cl_option): Add cl_tolower field.
7186         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
7187         arguments with lowercase strings.
7188         * config/rx/rx.opt (mcpu=): Add ToLower.
7189         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
7190         argument.
7191
7192 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
7193
7194         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
7195
7196 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
7197
7198         * config/vax/vax.c: Include reload.h.
7199
7200 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
7201
7202         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
7203         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7204         (sparc_preferred_reload_class): New function.
7205
7206 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
7207
7208         PR debug/48401
7209         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7210         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
7211
7212 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
7213
7214         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
7215         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
7216
7217 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
7218
7219         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
7220         (ASM_OUTPUT_ALIGNED_BSS): Define.
7221
7222 2011-04-03  Michael Matz  <matz@suse.de>
7223
7224         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
7225         and next_slot members.
7226         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
7227         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
7228         (lto_streamer_cache_append): Declare.
7229         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
7230         unsigned index, remove offset parameter, ensure that we append
7231         or update existing entries.
7232         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
7233         parameter, update next_slot for append.
7234         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
7235         parameter.
7236         (lto_streamer_cache_insert_at): Likewise.
7237         (lto_streamer_cache_append): New function.
7238         (lto_streamer_cache_lookup): Use unsigned index.
7239         (lto_streamer_cache_get): Likewise.
7240         (lto_record_common_node): Don't test tree_node_can_be_shared.
7241         (preload_common_node): Adjust call to lto_streamer_cache_insert.
7242         (lto_streamer_cache_delete): Don't free offsets member.
7243         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
7244         (lto_output_string_with_length): Use lto_output_data_stream.
7245         (lto_output_tree_header): Remove ix parameter, don't write it.
7246         (lto_output_builtin_tree): Likewise.
7247         (lto_write_tree): Adjust callers to above, don't track and write
7248         offset, write unsigned index.
7249         (output_unreferenced_globals): Don't emit all global vars.
7250         (write_global_references): Use unsigned indices.
7251         (lto_output_decl_state_refs): Likewise.
7252         (write_symbol): Likewise.
7253         * lto-streamer-in.c (lto_input_chain): Move earlier.
7254         (input_function): Use unsigned index.
7255         (input_alias_pairs): Don't read and then ignore all global vars.
7256         (lto_materialize_tree): Remove ix_p parameter, don't read index,
7257         don't pass it back, use lto_streamer_cache_append.
7258         (lto_register_var_decl_in_symtab): Use unsigned index.
7259         (lto_register_function_decl_in_symtab): Likewise.
7260         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
7261         index.
7262         (lto_get_builtin_tree): Don't read index, use
7263         lto_streamer_cache_append.
7264         (lto_read_tree): Adjust call to lto_materialize_tree.
7265
7266         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
7267         don't use function calls in arguments to MIN.
7268
7269         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
7270         twice.
7271
7272         * gimple.c (gimple_type_leader_entry): Mark deletable.
7273
7274 2011-04-03  Alan Modra  <amodra@gmail.com>
7275
7276         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
7277
7278 2011-04-03  Michael Matz  <matz@suse.de>
7279
7280         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
7281         an integer.
7282         * tree.h (tree_decl_non_common.vindex): Adjust comment.
7283
7284 2011-04-03  Michael Matz  <matz@suse.de>
7285
7286         * cgraphbuild.c (record_reference): Canonicalize constructor values.
7287         * gimple-fold.c (canonicalize_constructor_val): Accept being called
7288         without function context.
7289         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
7290         current_function_decl and cfun.
7291
7292 2011-04-03  Michael Matz  <matz@suse.de>
7293
7294         * tree.c (decl_init_priority_insert): Don't create entry for
7295         default priority.
7296         (decl_fini_priority_insert): Ditto.
7297         (fields_compatible_p, find_compatible_field): Remove.
7298         * tree.h (fields_compatible_p, find_compatible_field): Remove.
7299         * gimple.c (gimple_compare_field_offset): Adjust block comment.
7300
7301 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
7302
7303         * combine.c (try_combine): Remove useless local variable.
7304
7305 2011-04-03  Richard Guenther  <rguenther@suse.de>
7306             Ira Rosen  <ira.rosen@linaro.org>
7307
7308         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
7309         non-variable offsets and compare the remaining bases of the two
7310         accesses instead of looking for exact same data-ref.
7311
7312 2011-04-02  Kai Tietz  <ktietz@redhat.com>
7313
7314         PR target/48416
7315         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
7316
7317         * i386.c (ix86_is_msabi_thiscall): New helper function.
7318         (ix86_is_type_thiscall): New helper function.
7319         (ix86_comp_type_attributes): Handle thiscall for method-functions
7320         special.
7321         (init_cumulative_args): Likewise.
7322         (find_drap_reg): Likewise.
7323         (ix86_static_chain): Likewise.
7324         (x86_this_parameter): Likewise.
7325         (x86_output_mi_thunk): Likewise.
7326
7327 2011-04-01  Olivier Hainque  <hainque@adacore.com>
7328             Nicolas Setton  <setton@adacore.com>
7329             Eric Botcazou  <ebotcazou@adacore.com>
7330
7331         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
7332         (add_gnat_descriptive_type_attribute): New function.
7333         (gen_array_type_die): Call it.
7334         (gen_enumeration_type_die): Likewise.
7335         (gen_struct_or_union_type_die): Likewise.
7336         (modified_type_die): Likewise.
7337         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
7338         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
7339         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
7340
7341 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
7342
7343         PR bootstrap/48148
7344         * dwarf2out.c (resolve_addr): Don't call force_decl_die
7345         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
7346
7347         Revert:
7348         2011-03-17  Richard Guenther  <rguenther@suse.de>
7349
7350         PR bootstrap/48148
7351         * lto-cgraph.c (input_overwrite_node): Clear the abstract
7352         origin for decls in other ltrans units.
7353         (input_varpool_node): Likewise.
7354
7355 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
7356
7357         PR middle-end/48335
7358         * expr.c (expand_assignment): Handle all possibilities
7359         if TO_RTX is CONCAT.
7360         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
7361         (store_split_bit_field): If SUBREG_REG (op0) or
7362         op0 itself has smaller mode than word, return it
7363         for offset 0 and const0_rtx for out-of-bounds stores.
7364         If word is const0_rtx, skip it.
7365
7366 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
7367
7368         * config/h8300/h8300.c (print_operand_address): Rename to...
7369         (h8300_print_operand_address): ...this. Make static. Adjust comments.
7370         Call h8300_print_operand and h8300_print_operand_address instead of
7371         print_operand and print_operand_address. Declare.
7372         (print_operand): Renake to...
7373         (h8300_print_operand): ...this. Make static. Adjust comments.
7374         Call h8300_print_operand instead of print_operand. Declare.
7375         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
7376         (h8300_register_move_cost): Likewise.
7377         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
7378         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
7379         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
7380         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
7381         * config/h8300/h8300-protos.h (print_operand): Delete.
7382         (print_operand_address): Delete.
7383
7384 2011-04-01  Richard Henderson  <rth@redhat.com>
7385
7386         PR 48400
7387         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
7388         in strict mode before dwarf4.  Re-order tests to early out
7389         before switching sections.
7390
7391 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
7392
7393         * config/h8300/constraints.md: New file.
7394         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
7395         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
7396         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
7397         * config/h8300/predicates.md (bit_operand): Likewise.
7398         (incdec_operand): Use satisfies_constraint_M and
7399         satisfies_constraint_O.  Don't use C code block.
7400         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
7401         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
7402         (compute_mov_length): Use satisfies_constraint_G.
7403         (fix_bit_operand): Use satisfies_constraint_U.
7404         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
7405         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
7406         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
7407         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
7408         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
7409         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
7410         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7411         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
7412         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
7413         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
7414         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
7415         (EXTRA_MEMORY_CONSTRAINT): Delete.
7416
7417 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
7418             Michael Meissner  <meissner@linux.vnet.ibm.com>
7419
7420         PR target/48262
7421         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
7422         operands, as per the specifications.
7423
7424         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
7425         (vec_extract_evenv4sf): Ditto.
7426         (vec_extract_evenv8hi): Ditto.
7427         (vec_extract_evenv16qi): Ditto.
7428         (vec_extract_oddv4si): Ditto.
7429
7430 2011-03-31  Mark Wielaard  <mjw@redhat.com>
7431
7432         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
7433         high_pc attribute if the CU has no associated code. Only output
7434         DW_AT_entry_pc for CU if not generating strict dwarf and
7435         dwarf_version < 4.
7436
7437 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
7438
7439         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
7440         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
7441         out of ...
7442         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
7443         * final.c (final_start_function): Call the new function rather
7444         than using a NULL argument for dwarf2out_frame_debug.
7445
7446         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
7447         that contains the prologue.
7448
7449         * haifa-sched.c (queue_insn): New arg REASON.  All callers
7450         changed.  Print it in debugging output.
7451
7452         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
7453
7454         * sched-ebb.c (begin_schedule_ready): Remove second argument.
7455         Split most of the code into...
7456         (begin_move_insn): ... here.  New function.
7457         (ebb_sched_info): Add a pointer to it.
7458         * haifa-sched.c (scheduled_insns): New static variable.
7459         (sched_extend_ready_list): Allocate it.
7460         (schedule_block): Use it to record the order of scheduled insns.
7461         Perform RTL changes to move insns only after all scheduling
7462         decisions have been made.
7463         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
7464         begin_move_insn field.
7465         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7466         * sched-int.h (struct haifa_sched_info): Remove second argument
7467         from begin_schedule_ready hook.  Add new member begin_move_insn.
7468         * sched-rgn.c (begin_schedule_ready): Remove second argument.
7469         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
7470
7471         * haifa-sched.c (prune_ready_list): New function, broken out of
7472         schedule_block.
7473         (schedule_block): Use it.
7474
7475 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7476
7477         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
7478
7479 2011-04-01  Kai Tietz  <ktietz@redhat.com>
7480
7481         * config.gcc (*-*-mingw*): Allow as option the
7482         posix threading model.
7483         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
7484         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
7485         definition.
7486         (CPP_SPEC): Add pthread/no-pthread handling.
7487         (LIB_SPEC): Likewise.
7488         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
7489         (LIB_SPEC): Likewise.
7490         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
7491         flag to pass -pthread option for shared libgcc build.
7492         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
7493         for shared libgcc build.
7494         * config/i386/t-mingw-pthread: New file.
7495         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
7496         New define to enable use of library pthread by default.
7497         * config/i386/mingw.opt (pthread): New driver option.
7498         (no-pthread): New driver option.
7499         * config/i386/cygming.opt: Make sure trailing empty line is retained.
7500         * config/i386/mingw-w64.opt: Likewise.
7501
7502 2011-04-01  Gary Funck  <gary@intrepid.com>
7503
7504         * c-decl.c (grokdeclarator): Fix formatting.
7505
7506 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7507
7508         * expr.c (emit_block_move_via_movmem): Use n_generator_args
7509         instead of n_operands.
7510         (set_storage_via_setmem): Likewise.
7511         * optabs.c (maybe_gen_insn): Likewise.
7512         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
7513         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
7514         (mips_expand_builtin_direct): Likewise.
7515         * config/spu/spu.c (expand_builtin_args): Likewise.
7516
7517 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7518
7519         * recog.h (insn_data_d): Add n_generator_args.
7520         * genoutput.c (data): Likewise.
7521         (output_insn_data): Print it.
7522         (max_opno, num_dups): Delete.
7523         (scan_operands): Just fill in "d->operand[...]".
7524         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7525
7526 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7527
7528         * gensupport.h (pattern_stats): New structure.
7529         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7530         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7531         (max_operand_1, max_operand_vec): Delete.
7532         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7533
7534 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
7535
7536         * emit-rtl.c (emit_pattern_after_setloc): New function.
7537         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7538         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7539         (emit_pattern_after): New function.
7540         (emit_insn_after, emit_jump_insn_after): Call it.
7541         (emit_call_insn_after, emit_debug_insn_after): Likewise.
7542         (emit_pattern_before_setloc): New function.
7543         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7544         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7545         Likewise.
7546         (emit_pattern_before): New function.
7547         (emit_insn_before, emit_jump_insn_before): Call it.
7548         (emit_call_insn_before, emit_debug_insn_before): Likewise.
7549
7550 2011-03-31  Richard Henderson  <rth@redhat.com>
7551
7552         * dwarf2out.c (dw_separate_line_info_ref): Remove.
7553         (dw_separate_line_info_entry): Remove.
7554         (enum dw_line_info_opcode): New.
7555         (dw_line_info_entry): Use it.
7556         (dw_line_info_table, dw_line_info_table_p): New.
7557         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7558         (line_info_table, line_info_label_num): Remove.
7559         (line_info_table_in_use): Remove.
7560         (separate_line_info_table): Remove.
7561         (separate_line_info_table_allocated): Remove.
7562         (separate_line_info_table_in_use): Remove.
7563         (LINE_INFO_TABLE_INCREMENT): Remove.
7564         (line_info_label_num): New.
7565         (cur_line_info_table): New.
7566         (text_section_line_info, cold_text_section_line_info): New.
7567         (separate_line_info): New.
7568         (SEPARATE_LINE_CODE_LABEL): Remove.
7569         (print_dwarf_line_table): Remove.
7570         (debug_dwarf): Don't dump it.
7571         (output_one_line_info_table): New.
7572         (output_line_info): Use it.
7573         (new_line_info_table): New.
7574         (set_cur_line_info_table): New.
7575         (dwarf2out_switch_text_section): Use it.
7576         (dwarf2out_begin_function): Likewise.
7577         (push_dw_line_info_entry): New.
7578         (dwarf2out_source_line): Rewrite for new line info tables.
7579         (dwarf2out_init): Remove dead initailizations.
7580
7581 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
7582
7583         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
7584         various flags.
7585         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7586         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7587         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7588         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7589         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7590         * opt-functions.awk (flag_init, switch_bit_fields): New.
7591         (switch_flags): Don't handle flags moved to bit-fields.  Don't
7592         generate CL_MISSING_OK or CL_SAVE.
7593         * optc-gen.awk: Update to generate bit-field output as well as
7594         flags field.
7595         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7596         bit-field instead of CL_REJECT_DRIVER flag.
7597         * opts-common.c (generate_canonical_option,
7598         decode_cmdline_option): Use bit-fields instead of CL_* flags.
7599         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7600         instead of CL_REJECT_NEGATIVE flag.
7601         * toplev.c (print_switch_values): Use cl_report bit-field instead
7602         of CL_REPORT flag.
7603
7604 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
7605
7606         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7607         a zero minimum index only if it is redundant.
7608
7609 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
7610
7611         PR rtl-optimization/48381
7612         * ira-color.c (assign_hard_reg): Use hard reg set intersection
7613         instead of ira_class_hard_reg_index for calculating conflicting
7614         hard registers.
7615
7616 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
7617
7618         * cprop.c: Clean up hash table building.
7619         (reg_avail_info): Remove.
7620         (oprs_available_p): Remove.
7621         (record_last_reg_set_info): Remove.
7622         (record_last_set_info): Remove.
7623         (reg_available_p): New function.
7624         (gcse_constant_p): Do not treat unfolded conditions as constants.
7625         (make_set_regs_unavailable): New function.
7626         (hash_scan_set): Simplify with new reg_available_p.
7627         (compute_hash_table_work): Traverse insns stream only once.
7628         Do not compute reg_avail_info. Traverse insns in reverse order.
7629         Record implicit sets after recording explicit sets from the block.
7630
7631 2011-03-31  Michael Matz  <matz@suse.de>
7632
7633         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7634
7635 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
7636
7637         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7638         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7639         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7640         (h8300_mode_dependent_address_p): New function.
7641         (h8300_get_index): Make static.
7642
7643 2011-03-31  Jeff Law  <law@redhat.com>
7644
7645         * reload1.c (elimination_effects): Fix typo in recent change.
7646
7647         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7648         typo potentially leading to null pointer dereference.
7649
7650         * caller-save.c (new_saved_hard_reg): Eliminate return value.
7651         (setup_save_areas): Corresponding changes to avoid useless
7652         assignments.
7653
7654         * jump.c (reversed_comparison_code_parts): Avoid successive return
7655         statements when REVERSE_CONDITION is defined.
7656
7657         * expr.c (expand_assignment): Avoid useless assignments.
7658         (expand_expr_real_1): Likewise.
7659         (expand_expr_real_2): Avoid useless statements.
7660
7661         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7662
7663         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7664
7665         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7666         statements.
7667
7668         * stmt.c (expand_expr_stmt): Avoid useless assignment.
7669
7670 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
7671
7672         PR target/47109
7673         * doc/tm.texi.in (TARGET_VERSION): Remove.
7674         * doc/tm.texi: Regenerate.
7675         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7676         * collect2.c (main): Don't use TARGET_VERSION.
7677         * mips-tdump.c (main): Don't use TARGET_VERSION.
7678         * mips-tfile.c (main): Don't use TARGET_VERSION.
7679         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7680         * config/rs6000/vxworksae.h: Remove.
7681         * config/alpha/alpha.h (TARGET_VERSION): Remove.
7682         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7683         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7684         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7685         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7686         * config/arm/arm.h (TARGET_VERSION): Remove.
7687         * config/arm/coff.h (TARGET_VERSION): Remove.
7688         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7689         * config/arm/elf.h (TARGET_VERSION): Remove.
7690         * config/arm/freebsd.h (TARGET_VERSION): Remove.
7691         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7692         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7693         * config/arm/pe.h (TARGET_VERSION): Remove.
7694         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7695         * config/arm/semi.h (TARGET_VERSION): Remove.
7696         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7697         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7698         * config/arm/vxworks.h (TARGET_VERSION): Remove.
7699         * config/avr/avr.h (TARGET_VERSION): Remove.
7700         * config/bfin/bfin.h (TARGET_VERSION): Remove.
7701         * config/fr30/fr30.h (TARGET_VERSION): Remove.
7702         * config/frv/frv.h (TARGET_VERSION): Remove.
7703         * config/h8300/h8300.h (TARGET_VERSION): Remove.
7704         * config/i386/cygwin.h (TARGET_VERSION): Remove.
7705         * config/i386/darwin.h (TARGET_VERSION): Remove.
7706         * config/i386/darwin64.h (TARGET_VERSION): Remove.
7707         * config/i386/djgpp.h (TARGET_VERSION): Remove.
7708         * config/i386/freebsd.h (TARGET_VERSION): Remove.
7709         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7710         * config/i386/gnu.h (TARGET_VERSION): Remove.
7711         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7712         * config/i386/i386elf.h (TARGET_VERSION): Remove.
7713         * config/i386/linux.h (TARGET_VERSION): Remove.
7714         * config/i386/linux64.h (TARGET_VERSION): Remove.
7715         * config/i386/lynx.h (TARGET_VERSION): Remove.
7716         * config/i386/mingw32.h (TARGET_VERSION): Remove.
7717         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7718         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7719         * config/i386/netware.h (TARGET_VERSION): Remove.
7720         * config/i386/nto.h (TARGET_VERSION): Remove.
7721         * config/i386/openbsd.h (TARGET_VERSION): Remove.
7722         * config/i386/vxworks.h (TARGET_VERSION): Remove.
7723         * config/ia64/elf.h (TARGET_VERSION): Remove.
7724         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7725         * config/ia64/hpux.h (TARGET_VERSION): Remove.
7726         * config/ia64/linux.h (TARGET_VERSION): Remove.
7727         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7728         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7729         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7730         * config/lm32/lm32.h (TARGET_VERSION): Remove.
7731         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7732         * config/m32c/m32c.h (TARGET_VERSION): Remove.
7733         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7734         * config/m32r/m32r.h (TARGET_VERSION): Remove.
7735         * config/m68k/linux.h (TARGET_VERSION): Remove.
7736         * config/m68k/m68k.h (TARGET_VERSION): Remove.
7737         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7738         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7739         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7740         * config/mep/mep.h (TARGET_VERSION): Remove.
7741         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7742         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7743         * config/mips/iris6.h (MACHINE_TYPE): Remove.
7744         * config/mips/linux.h (TARGET_VERSION): Remove.
7745         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7746         * config/mips/vxworks.h (TARGET_VERSION): Remove.
7747         * config/mmix/mmix.h (TARGET_VERSION): Remove.
7748         * config/mn10300/linux.h (TARGET_VERSION): Remove.
7749         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7750         * config/pa/pa.h (TARGET_VERSION): Remove.
7751         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7752         * config/picochip/picochip.h (TARGET_VERSION): Remove.
7753         * config/rs6000/aix.h (TARGET_VERSION): Remove.
7754         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7755         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7756         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7757         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7758         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7759         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7760         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7761         * config/rs6000/linux.h (TARGET_VERSION): Remove.
7762         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7763         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7764         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7765         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7766         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7767         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7768         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7769         * config/s390/linux.h (TARGET_VERSION): Remove.
7770         * config/s390/s390.h (TARGET_VERSION): Remove.
7771         * config/s390/tpf.h (TARGET_VERSION): Remove.
7772         * config/score/score.h (TARGET_VERSION): Remove.
7773         * config/sh/linux.h (TARGET_VERSION): Remove.
7774         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7775         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7776         * config/sh/sh.h (TARGET_VERSION): Remove.
7777         * config/sh/sh64.h (TARGET_VERSION): Remove.
7778         * config/sh/superh.h (TARGET_VERSION): Remove.
7779         * config/sh/vxworks.h (TARGET_VERSION): Remove.
7780         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7781         * config/sparc/linux.h (TARGET_VERSION): Remove.
7782         * config/sparc/linux64.h (TARGET_VERSION): Remove.
7783         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7784         TARGET_NAME32, TARGET_NAME): Remove.
7785         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7786         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7787         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7788         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7789         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7790         * config/spu/spu.h (TARGET_VERSION): Remove.
7791         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7792         * config/v850/v850.h (TARGET_VERSION): Remove.
7793         * config/vax/linux.h (TARGET_VERSION): Remove.
7794         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7795         * config/xtensa/elf.h (TARGET_VERSION): Remove.
7796         * config/xtensa/linux.h (TARGET_VERSION): Remove.
7797
7798 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
7799
7800         PR target/48142
7801         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7802         frame-related from frame-unrelated adjustments to the stack pointer.
7803
7804 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
7805
7806         * common.opt (fdebug-types-section): Move earlier.
7807         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7808
7809 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
7810
7811         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7812         var.
7813
7814 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
7815
7816         * tree.h (CASE_CHAIN): Define.
7817         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7818         (gimple_redirect_edge_and_branch): Likewise.
7819
7820 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7821
7822         PR middle-end/48367
7823         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7824         calculation.
7825
7826 2011-03-30  Jeff Law  <law@redhat.com>
7827
7828         * PR bootstrap/48371
7829         * reload1.c (reload): Fix botch in last change.
7830
7831         * reload.h (struct reload): Fix typo introduced in last change.
7832
7833 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7834
7835         * config/arm/arm.opt (mhard-float, msoft-float): Mark
7836         Undocumented.  Remove help text.
7837         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7838         -mhard-float.
7839
7840 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7841
7842         * doc/options.texi (NegativeAlias): Document.
7843         (Alias): Mention NegativeAlias.
7844         * opt-functions.awk: Handle NegativeAlias.
7845         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
7846         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7847         * opts.h (CL_NEGATIVE_ALIAS): Define.
7848         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7849         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7850         OPT_mspe_.
7851         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7852         Alias entries.
7853         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7854         mno-spe and mno-isel instead of mspe=no and -misel=no.
7855
7856 2011-03-29  Mark Wielaard  <mjw@redhat.com>
7857
7858         * common.opt (fdebug-types-section): New flag.
7859         * doc/invoke.texi: Document new -fno-debug-types-section flag.
7860         * dwarf2out.c (use_debug_types): New define.
7861         (struct die_struct): Mark die_id with GTY desc use_debug_types.
7862         (print_die): Guard output of type unit signatures using
7863         use_debug_types.
7864         (build_abbrev_table): Replace assert of dwarf_version >= 4
7865         with assert on use_debug_types.
7866         (size_of_die): Likewise.
7867         (unmark_dies): Likewise.
7868         (value_format): Decide AT_ref_external form on use_debug_types.
7869         (output_die): Replace dwarf_version version check guard with
7870         use_debug_types where appropriate.
7871         (modified_type_die): Likewise.
7872         (gen_reference_type_die): Likewise.
7873         (dwarf2out_start_source_file): Likewise.
7874         (dwarf2out_end_source_file): Likewise.
7875         (prune_unused_types_walk_attribs): Likewise.
7876         (dwarf2out_finish): Likewise.
7877
7878 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7879
7880         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7881
7882 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7883
7884         PR rtl-optimization/48332
7885         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7886         mode of input operand N and modeN to its actual mode.
7887
7888 2011-03-30  Jeff Law  <law@redhat.com>
7889
7890         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7891         define accessor macro.
7892         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7893         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7894         (reg_equiv_init): Likewise.
7895         (reg_equivs_size): New variable.
7896         (reg_equiv_init_size): Remove.
7897         (allocate_initial_values): Move prototype to here from....
7898         * integrate.h (allocate_initial_values): Remove prototype.
7899         * integrate.c: Include reload.h.
7900         (allocate_initial_values): Corresponding changes.
7901         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7902         (fix_reg_equiv_init, no_equiv): Corresponding changes.
7903         (update_equiv_regs): Corresponding changes.
7904         (ira): Corresponding changes.
7905         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7906         (push_secondary_reload): Corresponding changes.
7907         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7908         (make_memloc, find_reloads_address): Corresponding changes.
7909         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7910         (find_reloads_address_1): Corresponding changes.
7911         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7912         (refers_to_regno_for_reload_p): Corresponding changes.
7913         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7914         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7915         * reload1.c: Include ggc.h.
7916         (grow_reg_equivs): New function.
7917         (replace_pseudos_in, reload): Corresponding changes.
7918         (calculate_needs_all_insns, alter_regs): Corresponding changes.
7919         (eliminate_regs_1, elimination_effects): Corresponding changes.
7920         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7921         (delete_output_reload): Likewise.
7922         * caller-save.c (mark_referenced_regs): Corresponding changes.
7923         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7924         * frv/predicates.md (frv_load_operand): Corresponding changes.
7925         * microblaze/microblaze.c (double_memory_operand): Corresponding
7926         changes.
7927         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7928         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7929         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7930         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7931         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7932         changes.
7933         * pa/pa.c (emit_move_sequence): Corresponding changes.
7934         * vax/vax.c (nonindexed_address_p): Corresponding changes.
7935
7936 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7937
7938         PR target/47551
7939         * config/arm/arm.c (coproc_secondary_reload_class): Handle
7940         structure modes.  Don't check neon_vector_mem_operand for
7941         vector or structure modes.
7942
7943 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7944             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7945
7946         PR target/43590
7947         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7948         operand 1 and reshuffle the operands to match.
7949         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7950
7951 2011-03-30  Christian Schüler  <cschueler@gmx.de>
7952
7953         PR driver/48208
7954         * config/c.opt (F): Added 'Driver' to -F option.
7955
7956         PR driver/48260
7957         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7958           handler function.
7959         * config/darwin.opt: Added '-arch' option.
7960
7961 2011-03-30  Nick Clifton  <nickc@redhat.com>
7962
7963         * config/rx/rx.md: Add peepholes and patterns to combine
7964         extending loads and simple arithmetic instructions.
7965         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7966         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7967         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7968         modes to use pre-decrement and post-increment addressing.
7969         (rx_is_restricted_memory_address): Add range checking of REG+INT
7970         addresses.
7971         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
7972         (rx_memory_move_cost): Adjust cost of stores.
7973         (rx_adjust_insn_length): New function.
7974
7975 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
7976
7977         PR c/48305
7978         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7979         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7980         matching arg00/arg01 types.
7981
7982 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
7983
7984         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7985         last_location to UNKNOWN_LOCATION.
7986
7987 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
7988
7989         PR target/48349
7990         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7991         FLOAT_SSE_REGS.
7992
7993 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7994             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7995
7996         PR bootstrap/48337
7997         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7998         Init(PROCESSOR_V7).
7999         (sparc_cpu): Likewise.
8000         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
8001         PROCESSOR_V7.
8002
8003 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
8004
8005         PR target/48336
8006         PR middle-end/48342
8007         PR rtl-optimization/48345
8008         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
8009         hard regs for given mode from profitable regs when doing secondary
8010         allocation.
8011
8012 2011-03-29  Jeff Law  <law@redhat.com>
8013
8014         PR bootstrap/48327
8015         * tree-ssa-threadupdate.c (struct redirection_data): Remove
8016         do_not_duplicate field.
8017         (lookup_redirection_data): Corresponding changes.
8018         (create_duplicates): Always create a template block.
8019         (redirect_edges): Remove code which reused the original block
8020         when it was going to become unreachable code.
8021         (thread_block): Don't set do_not_duplicate field.
8022
8023 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
8024
8025         * lto-opts.c (register_user_option_p, lto_register_user_option):
8026         Make type argument unsigned.
8027         * lto-streamer.h (lto_register_user_option): Make type argument
8028         unsigned.
8029         * opth-gen.awk: Make CL_* macros unsigned.
8030         * opts-common.c (find_opt): Make lang_mask argument unsigned.
8031         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8032         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
8033         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
8034         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
8035         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
8036         (find_opt): Make lang_mask argument unsigned.
8037
8038 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
8039
8040         PR rtl-optimization/48331
8041         PR rtl-optimization/48334
8042         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
8043         for any used algorithm.
8044
8045 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
8046
8047         * ira-conflicts.c (build_object_conflicts): Add unused attribute
8048         to parent_max.
8049
8050 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
8051
8052         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
8053         (alpha_option_override): Don't set alpha_sr_alias_set.
8054         (emit_frame_store_1): Use gen_frame_mem rather than calling
8055         set_mem_alias_set.
8056         (alpha_expand_epilogue): Ditto.
8057
8058 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
8059
8060         PR tree-optimization/48290
8061         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
8062         vectorization, check that relevant phis in the basic block after
8063         the inner loop are really inner loop's exit phis.
8064
8065 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
8066
8067         PR debug/48190
8068         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
8069         (cached_dw_loc_list_def): New structure.
8070         (cached_dw_loc_list): New typedef.
8071         (cached_dw_loc_list_table): New variable.
8072         (cached_dw_loc_list_table_hash): New function.
8073         (cached_dw_loc_list_table_eq): Likewise.
8074         (add_location_or_const_value_attribute): Take a bool cache_p.
8075         Cache the list when the parameter is true.
8076         (gen_formal_parameter_die): Update caller.
8077         (gen_variable_die): Likewise.
8078         (dwarf2out_finish): Likewise.
8079         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
8080         while generating debug info for the decl.
8081         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
8082         (dwarf2out_init): Initialize cached_dw_loc_list_table.
8083         (resolve_addr): Cache the result of resolving a chain of
8084         location lists.
8085
8086 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
8087
8088         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
8089         conflict object hard regset nodes have intersecting hard reg sets.
8090
8091         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
8092         after regstat_init_n_sets_and_refs.
8093
8094         * ira.c: Add more comments at the top.
8095         (setup_stack_reg_pressure_class, setup_pressure_classes):
8096         Add comments how we compute the register pressure classes.
8097         (setup_allocno_and_important_classes): Add more comments.
8098         (setup_class_translate_array, reorder_important_classes)
8099         (setup_reg_class_relations): Add comments.
8100
8101         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
8102         start of the file.
8103
8104         * ira-color.c: Add 2011 to the Copyright line.
8105         (assign_hard_reg):  Add more comments.
8106         (improve_allocation): Ditto.
8107
8108         * ira-costs.c: Add 2011 to the Copyright line.
8109         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
8110         comments.
8111         (setup_regno_cost_classes_by_mode): Ditto.
8112
8113         Initial patches from ira-improv branch:
8114
8115         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
8116
8117         * ira-build.c (ira_create_object): Remove initialization of
8118         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
8119         (ira_create_allocno): Remove initialization of
8120         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
8121         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
8122         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8123         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
8124         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
8125         Initialize ALLOCNO_ADD_DATA.
8126         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
8127         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
8128         ALLOCNO_REG.
8129         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
8130         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
8131
8132         * ira.c (ira_reallocate): Remove.
8133         (setup_pressure_classes): Call
8134         ira_init_register_move_cost_if_necessary.  Use
8135         ira_register_move_cost instead of ira_get_register_move_cost.
8136         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
8137         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
8138
8139         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
8140         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8141         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
8142         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
8143         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
8144         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
8145         Fix formatting.
8146         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
8147         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8148         (struct allocno_color_data): New.
8149         (allocno_color_data_t): New typedef.
8150         (allocno_color_data): New definition.
8151         (ALLOCNO_COLOR_DATA): New macro.
8152         (struct object_color_data): New.
8153         (object_color_data_t): New typedef.
8154         (object_color_data): New definition.
8155         (OBJECT_COLOR_DATA): New macro.
8156         (update_copy_costs, calculate_allocno_spill_cost): Call
8157         ira_init_register_move_cost_if_necessary.  Use
8158         ira_register_move_cost instead of ira_get_register_move_cost.
8159         (move_spill_restore, update_curr_costs): Ditto.
8160         (allocno_spill_priority): Make it inline.
8161         (color_pass): Allocate and free allocno_color_dat and object_color_data.
8162         (struct coalesce_data, coalesce_data_t): New.
8163         (allocno_coalesce_data): New definition.
8164         (ALLOCNO_COALESCE_DATA): New macro.
8165         (merge_allocnos, coalesced_allocno_conflict_p): Use
8166         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
8167         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
8168         (coalesce_allocnos): Ditto.
8169         (setup_coalesced_allocno_costs_and_nums): Ditto.
8170         (collect_spilled_coalesced_allocnos): Ditto.
8171         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
8172         (setup_slot_coalesced_allocno_live_ranges): Ditto.
8173         (coalesce_spill_slots): Ditto.
8174         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
8175         free allocno_coalesce_data.
8176
8177         * ira-conflicts.c: Fix formatting.
8178         (process_regs_for_copy): Call
8179         ira_init_register_move_cost_if_necessary.  Use
8180         ira_register_move_cost instead of ira_get_register_move_cost.
8181         (build_object_conflicts): Optimize.
8182
8183         * ira-costs.c (record_reg_classes): Optimize.  Call
8184         ira_init_register_move_cost_if_necessary.  Use
8185         ira_register_move_cost, ira_may_move_in_cost, and
8186         ira_may_move_out_cost instead of ira_get_register_move_cost and
8187         ira_get_may_move_cost.
8188         (record_address_regs): Ditto.
8189         (scan_one_insn): Optimize.
8190         (find_costs_and_classes): Optimize.
8191         (process_bb_node_for_hard_reg_moves): Call
8192         ira_init_register_move_cost_if_necessary.  Use
8193         ira_register_move_cost instead of ira_get_register_move_cost.
8194
8195         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
8196         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
8197         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
8198         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
8199         definitions.
8200         (ira_initiate_emit_data, ira_finish_emit_data)
8201         (create_new_allocno): New functions.
8202         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
8203         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
8204         Use ira_register_move_cost instead of ira_get_register_move_cost.
8205
8206         * ira-int.h: Fix some comments.
8207         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
8208         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8209         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
8210         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
8211         add_data.
8212         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
8213         bitfield after mode.  Make hard_regno a short int.  Make
8214         hard_regno short.  Remove first_coalesced_allocno and
8215         next_coalesced_allocno.  Move mem_optimized_dest_p,
8216         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
8217         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
8218         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
8219         temp, colorable_p.  Add new member add_data.
8220         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
8221         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
8222         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
8223         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
8224         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
8225         (ALLOCNO_ADD_DATA): New macro.
8226         (ira_emit_data_t): New typedef.
8227         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
8228         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
8229         from struct ira_allocno.
8230         (ALLOCNO_EMIT_DATA): New macro.
8231         (ira_allocno_emit_data, allocno_emit_reg): New.
8232         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
8233         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
8234         (OBJECT_ADD_DATA): New macro.
8235         (ira_reallocate): Remove.
8236         (ira_initiate_emit_data, ira_finish_emit_data): New.
8237         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
8238         (ira_init_register_move_cost_if_necessary): New.
8239         (ira_object_conflict_iter_next): Merge into
8240         ira_object_conflict_iter_cond.
8241         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
8242
8243         * ira-live.c (process_single_reg_class_operands): Call
8244         ira_init_register_move_cost_if_necessary.  Use
8245         ira_register_move_cost instead of ira_get_register_move_cost.
8246
8247         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
8248
8249         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
8250
8251         * ira-costs.c: Fix formatting.
8252         (cost_classes, cost_classes_num): Remove.
8253         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
8254         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
8255         (cost_classes_del, cost_classes_htab): New.
8256         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
8257         (initiate_regno_cost_classes, setup_cost_classes): New.
8258         (setup_regno_cost_classes_by_aclass): New.
8259         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
8260         (record_reg_classes): Use regno_cost_classes instead of
8261         cost_classes.  Move checking opposite operand up.
8262         (record_address_regs): Use regno_cost_classes
8263         instead of cost_classes.
8264         (scan_one_insn): Ditto.  Use always general register.
8265         (print_allocno_costs): Use regno_cost_classes instead of
8266         cost_classes.
8267         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
8268         (find_costs_and_classes): Set up cost classes for each registers.
8269         Use also their mode for this.  Use regno_cost_classes instead of
8270         cost_classes.
8271         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
8272         cost_classes.
8273         (free_ira_costs, ira_init_costs): Don't use cost_classes.
8274         (ira_costs, ira_set_pseudo_classes): Call
8275         initiate_regno_cost_classes and finish_regno_cost_classes.
8276
8277         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
8278
8279         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
8280
8281         * target.def (ira_cover_classes): Remove.
8282
8283         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
8284
8285         * doc/tm.texi.in: Ditto.
8286
8287         * ira-conflicts.c: Remove mentioning cover classes from the file.
8288         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
8289         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
8290
8291         * targhooks.c (default_ira_cover_classes): Remove.
8292
8293         * targhooks.h (default_ira_cover_classes): Ditto.
8294
8295         * haifa-sched.c: Remove mentioning cover classes from the file.
8296         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
8297         ira_pressure_classes and ira_pressure_classes_num instead of
8298         ira_reg_class_cover_size and ira_reg_class_cover.  Use
8299         sched_regno_pressure_class instead of sched_regno_cover_class.
8300         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
8301         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8302
8303         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
8304         classes from the file.
8305         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
8306         (struct object_hard_regs, struct object_hard_regs_node): New.
8307         (struct ira_object): New members profitable_hard_regs,
8308         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
8309         (struct ira_allocno): Rename cover_class to aclass.  Rename
8310         cover_class_cost and updated_cover_class_cost to class_cost and
8311         updated_class_cost.  Remove splay_removed_p and
8312         left_conflict_size.  Add new members colorable_p.
8313         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
8314         (ALLOCNO_COLORABLE_P): New macro.
8315         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
8316         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
8317         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
8318         (OBJECT_...): Rename parameter C to O.
8319         (OBJECT_PROFITABLE_HARD_REGS): New macro.
8320         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
8321         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
8322         (struct target_ira_int): New members x_ira_max_memory_move_cost,
8323         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
8324         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
8325         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
8326         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
8327         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
8328         x_ira_reg_class_subunion.
8329         (ira_max_memory_move_cost, ira_max_register_move_cost)
8330         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
8331         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
8332         (ira_important_class_nums, ira_reg_class_superunion): New macros.
8333         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
8334         (ira_reg_class_union): Rename to ira_reg_class_subunion.
8335         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8336         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8337         (ira_tune_allocno_costs_and_cover_classes): Rename to
8338         ira_tune_allocno_costs.
8339         (ira_debug_hard_regs_forest): New.
8340         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
8341         (ira_object_conflict_iter_next): Fix comments.
8342         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
8343         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
8344         cover_class to aclass.
8345         (ira_allocate_and_accumulate_costs): Ditto.
8346         (ira_allocate_and_set_or_copy_costs): Ditto.
8347
8348         * opts.c (decode_options): Remove ira_cover_class check.
8349
8350         * ira-color.c: Remove mentioning cover classes from the file.  Use
8351         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
8352         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
8353         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
8354         (splay-tree.h): Remove include.
8355         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
8356         before copy_freq_compare_func.
8357         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
8358         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
8359         New definitions.
8360         (hard_regs_roots, hard_regs_node_vec): Ditto.
8361         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
8362         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
8363         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
8364         (create_new_object_hard_regs_node): Ditto.
8365         (add_new_object_hard_regs_node_to_forest): Ditto.
8366         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
8367         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
8368         Ditto.
8369         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
8370         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
8371         (remove_unused_object_hard_regs_nodes): Ditto.
8372         (enumerate_object_hard_regs_nodes): Ditto.
8373         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
8374         (object_hard_regs_subnode_t): Ditto.
8375         (struct object_hard_regs_subnode): Ditto.
8376         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
8377         (setup_object_hard_regs_subnode_index): Ditto.
8378         (get_object_hard_regs_subnodes_num): Ditto.
8379         (form_object_hard_regs_nodes_forest): Ditto.
8380         (finish_object_hard_regs_nodes_tree): Ditto.
8381         (finish_object_hard_regs_nodes_forest): Ditto.
8382         (allocnos_have_intersected_live_ranges_p): Rename to
8383         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
8384         (pseudos_have_intersected_live_ranges_p): Rename to
8385         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
8386         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
8387         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
8388         (update_copy_costs): Remove assert.  Skip cost update if the hard
8389         reg does not belong the class.
8390         (assign_hard_reg): Process only profitable hard regs.
8391         (uncolorable_allocnos_num): Make it scalar.
8392         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8393         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
8394         and ira_reg_class_max_nregs.
8395         (bucket_allocno_compare_func): Check frequency first.
8396         (sort_bucket): Add compare function as a parameter.
8397         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
8398         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
8399         (push_allocno_to_stack): Rewrite for checking new allocno
8400         colorability.
8401         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
8402         (push_only_colorable): Pass new parameter to sort_bucket.
8403         (push_allocno_to_spill): Remove.
8404         (allocno_spill_priority_compare): Make it inline and rewrite.
8405         (splay_tree_allocate, splay_tree_free): Remove.
8406         (allocno_spill_sort_compare): New function.
8407         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
8408         build and use splay tree.  Choose first allocno in uncolorable
8409         allocno bucket to spill.  Remove setting spill cost.
8410         (all_conflicting_hard_regs): Remove.
8411         (setup_allocno_available_regs_num): Check only profitable hard
8412         regs.  Print info about hard regs nodes.
8413         (setup_allocno_left_conflicts_size): Remove.
8414         (put_allocno_into_bucket): Don't call
8415         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
8416         (improve_allocation): New.
8417         (color_allocnos): Call setup_profitable_hard_regs,
8418         form_object_hard_regs_nodes_forest, improve_allocation,
8419         finish_object_hard_regs_nodes_forest.  Setup spill cost.
8420         (print_loop_title): Use pressure classes.
8421         (color_allocnso): Ditto.
8422         (do_coloring): Remove allocation and freeing splay_tree_node_pool
8423         and allocnos_for_spilling.
8424         (ira_sort_regnos_for_alter_reg): Don't setup members
8425         {first,next}_coalesced_allocno.
8426         (color): Remove allocating and freeing removed_splay_allocno_vec.
8427         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
8428         prohibited_class_mode_regs.
8429
8430         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
8431         formatting.
8432         (update_allocno_pressure_excess_length): Use pressure classes.
8433         (inc_register_pressure, dec_register_pressure): Check for pressure
8434         class.
8435         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
8436         pressure class.  Use ira_reg_class_nregs instead of
8437         ira_reg_class_max_nregs.
8438         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
8439         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
8440         (single_reg_class): Use ira_reg_class_nregs instead of
8441         ira_reg_class_max_nregs.
8442         (process_bb_node_lives): Use pressure classes.
8443
8444         * ira-emit.c: Remove mentioning cover classes from the file.  Use
8445         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
8446         (change_loop): Use pressure classes.
8447         (modify_move_list): Call ira_set_allocno_class instead of
8448         ira_set_allocno_cover_class.
8449
8450         * ira-build.c: Remove mentioning cover classes from the file.  Use
8451         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
8452         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
8453         ALLOCNO_UPDATED_CLASS_COST instead of
8454         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
8455         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
8456         (ira_create_allocno): Remove initialization of
8457         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
8458         ALLOCNO_COLORABLE_P.
8459         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8460         Update conflict regs for the objects.
8461         (create_cap_allocno): Remove assert.  Don't propagate
8462         ALLOCNO_AVAILABLE_REGS_NUM.
8463         (ira_free_allocno_costs): New function.
8464         (finish_allocno): Change a part of code into call of
8465         ira_free_allocno_costs.
8466         (low_pressure_loop_node_p): Use pressure classes.
8467         (object_range_compare_func): Don't compare classes.
8468         (setup_min_max_conflict_allocno_ids): Ditto.
8469
8470         * loop-invariant.c: Remove mentioning cover classes from the file.
8471         Use ira_pressure_classes and ira_pressure_classes_num instead of
8472         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
8473         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
8474         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8475         Use reg_allocno_class instead of reg_cover_class.
8476         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
8477         STACK_REG_COVER_CLASS.
8478         (get_regno_cover_class): Rename to get_regno_pressure_class.
8479         (move_loop_invariants): Initialize and finalize regstat.
8480
8481         * ira.c: Remove mentioning cover classes from the file.  Add
8482         comments about coloring without cover classes.  Use ALLOCNO_CLASS
8483         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
8484         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
8485         setup_class_subset_and_memory_move_costs.
8486         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
8487         (setup_cover_and_important_classes): Rename to
8488         setup_allocno_and_important_classes.
8489         (setup_class_translate_array): New.
8490         (setup_class_translate): Call it for allocno and pressure classes.
8491         (cover_class_order): Rename to allocno_class_order.
8492         (comp_reg_classes_func): Use ira_allocno_class_translate instead
8493         of ira_class_translate.
8494         (reorder_important_classes): Set up ira_important_class_nums.
8495         (setup_reg_class_relations): Set up ira_reg_class_superunion.
8496         (print_class_cover): Rename to print_classes.  Add parameter.
8497         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8498         Print pressure classes too.
8499         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
8500         setup_reg_subclasses.
8501         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8502         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8503         (setup_prohibited_class_mode_regs): Use
8504         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
8505         (clarify_prohibited_class_mode_regs): New function.
8506         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
8507         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
8508         (ira_init_once): Initialize them.
8509         (free_register_move_costs): Process them.
8510         (ira_init): Move calls of find_reg_classes and
8511         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
8512         Call clarify_prohibited_class_mode_regs.
8513         (ira_no_alloc_reg): Remove.
8514         (too_high_register_pressure_p): Use pressure classes.
8515
8516         * sched-deps.c: Remove mentioning cover classes from the file.
8517         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
8518         ira_pressure_classes and ira_pressure_classes_num instead of
8519         ira_reg_class_cover_size and ira_reg_class_cover.
8520         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
8521         sched_regno_pressure_class instead of sched_regno_cover_class.
8522         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
8523         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8524
8525         * ira.h: Add 2010 to Copyright.
8526         (ira_no_alloc_reg): Remove external.
8527         (struct target_ira): Rename x_ira_hard_regno_cover_class,
8528         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8529         x_ira_class_translate to x_ira_hard_regno_allocno_class,
8530         x_ira_allocno_classes_num, x_ira_allocno_classes, and
8531         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
8532         x_ira_pressure_classes, x_ira_pressure_class_translate, and
8533         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
8534         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
8535         x_ira_no_alloc_regs.
8536         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8537         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8538         ira_allocno_classes_num and ira_allocno_classes.
8539         (ira_class_translate): Rename to ira_allocno_class_translate.
8540         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8541         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8542         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8543         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8544         (ira_no_alloc_regs): New.
8545
8546         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
8547         classes from the file.  Use ALLOCNO_CLASS instead of
8548         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
8549         ALLOCNO_COVER_CLASS_COST.
8550         (regno_cover_class): Rename to regno_aclass.
8551         (record_reg_classes): Use ira_reg_class_subunion instead of
8552         ira_reg_class_union.
8553         (record_address_regs): Check overflow.
8554         (scan_one_insn): Ditto.
8555         (print_allocno_costs): Print total mem cost fore regional allocation.
8556         (print_pseudo_costs): Use REG_N_REFS.
8557         (find_costs_and_classes): Use classes intersected with them on the
8558         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
8559         ira_reg_class_union.  Use ira_allocno_class_translate and
8560         regno_aclass instead of ira_class_translate and regno_cover_class.
8561         Modify code for finding regno_aclass.  Setup preferred classes for
8562         the next pass.
8563         (setup_allocno_cover_class_and_costs): Rename to
8564         setup_allocno_class_and_costs.  Use regno_aclass instead of
8565         regno_cover_class.  Use ira_set_allocno_class instead of
8566         ira_set_allocno_cover_class.
8567         (init_costs, finish_costs): Use regno_aclass instead of
8568         regno_cover_class.
8569         (ira_costs): Use setup_allocno_class_and_costs instead of
8570         setup_allocno_cover_class_and_costs.
8571         (ira_tune_allocno_costs_and_cover_classes): Rename to
8572         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
8573         by processing objects.  Use ira_reg_class_max_nregs instead of
8574         ira_reg_class_nregs.
8575
8576         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8577
8578         * sched-int.h: Remove mentioning cover classes from the file.
8579         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8580
8581         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
8582         classes from the file.
8583         (struct reg_pref): Rename coverclass into allocnoclass.
8584         (reg_cover_class): Rename to reg_allocno_class.
8585
8586         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
8587
8588         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8589
8590         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8591
8592         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8593
8594         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8595
8596         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8597
8598         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8599
8600         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8601
8602         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8603
8604         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8605
8606         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8607         (i386_ira_cover_classes): Ditto.
8608
8609         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8610
8611         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8612
8613         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8614
8615         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8616
8617         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8618
8619         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8620
8621         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8622         (mips_ira_cover_classes): Ditto.
8623
8624         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8625
8626         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8627
8628         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8629
8630         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8631
8632         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8633
8634         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8635         (IRA_COVER_CLASSES_VSX): Ditto.
8636
8637         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8638         (rs6000_ira_cover_classes): Ditto.
8639
8640         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8641
8642         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8643
8644         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8645
8646         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8647
8648         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8649
8650         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8651
8652         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8653
8654         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8655
8656         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8657
8658         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8659
8660 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
8661
8662         PR debug/48253
8663         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8664         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8665         dw_fde_unlikely_section_end_label, cold_in_std_section,
8666         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8667         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8668         fields.
8669         (output_fde): Use dw_fde_second_{begin,end} if second is
8670         true, otherwise dw_fde_{begin,end}.
8671         (output_call_frame_info): Test dw_fde_second_begin != NULL
8672         instead of dw_fde_switched_sections.
8673         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8674         fields, initialize new fields.  Initialize in_std_section
8675         unconditionally from the first partition.
8676         (dwarf2out_end_epilogue): Don't override dw_fde_end when
8677         dw_fde_second_begin is non-NULL.
8678         (dwarf2out_switch_text_section): Stop initializing removed
8679         dw_fde_struct fields, initialize new fields, initialize
8680         also dw_fde_end here.  Set dw_fde_switch_cfi even when
8681         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
8682         (struct var_loc_list_def): Add last_before_switch field.
8683         (arange_table, arange_table_allocated, arange_table_in_use,
8684         ARANGE_TABLE_INCREMENT, add_arange): Removed.
8685         (size_of_aranges): Count !in_std_section and !second_in_std_section
8686         hunks in fdes, instead of looking at arange_table_in_use.
8687         (output_aranges): Add aranges_length argument, don't call
8688         size_of_aranges here.  Instead of using aranges_table*
8689         emit ranges for fdes when !in_std_section resp.
8690         !second_in_std_section.
8691         (dw_loc_list): Break ranges crossing section switch.
8692         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
8693         use dw_fde_second_end instead of dw_fde_end as end of last range.
8694         (gen_subprogram_die): Don't call add_arange.  Use
8695         dw_fde_{begin,end} for first partition and if switched
8696         section dw_fde_second_{begin,end} for the second.
8697         (var_location_switch_text_section_1,
8698         var_location_switch_text_section): New functions.
8699         (dwarf2out_begin_function): Initialize cold_text_section even
8700         when function_section () isn't text_section.
8701         (prune_unused_types): Don't walk arange_table.
8702         (dwarf2out_finish): Don't needlessly test
8703         flag_reorder_blocks_and_partition when testing cold_text_section_used.
8704         If info_section_emitted, call size_of_aranges and if it indicates
8705         non-empty .debug_aranges, call output_aranges with the computed
8706         size.  Stop using removed dw_fde_struct fields, use
8707         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8708         for second.
8709
8710         PR debug/48203
8711         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8712         create ENTRY_VALUE if incoming or address of incoming's MEM
8713         is a hard REG.
8714         * dwarf2out.c (mem_loc_descriptor): Don't emit
8715         DW_OP_GNU_entry_value of DW_OP_fbreg.
8716         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8717         on ENTRY_VALUE is able to find the canonical parameter VALUE.
8718         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8719         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8720         ENTRY_VALUE_EXPs.
8721         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8722         is a REG_P or MEM_P with REG_P address, compute hash directly
8723         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8724         (preserve_only_constants): Don't clear VALUES forwaring
8725         ENTRY_VALUE to some other VALUE.
8726
8727 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
8728
8729         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8730         instead of GEN_INT.
8731
8732 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8733
8734         * cfgexpand.c (expand_gimple_cond): Always set the source location and
8735         block before expanding the statement.
8736         (expand_gimple_stmt_1): Likewise.  Set them here...
8737         (expand_gimple_stmt): ...and not here.  Tidy.
8738         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8739         unknown.
8740
8741 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8742
8743         * Makefile.in: New rule for cprop.o.
8744         * gcse.c: Move constant/copy propagation to cprop.c.
8745         (compute_local_properties): Only handle expression tables.
8746         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8747         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8748         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8749         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8750         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8751         compute_cprop_data, find_used_regs, try_replace_reg,
8752         find_avail_set, cprop_jump, constprop_register, cprop_insn,
8753         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8754         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8755         find_bypass_set, reg_killed_on_edge, bypass_block,
8756         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8757         execute_rtl_cprop, pass_rtl_cprop): Move to...
8758         * cprop.c: ...here.  New file, constant/copy propagation for RTL
8759         moved from gcse.c to here with minor cleanups in duplicated code.
8760
8761 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
8762
8763         * config/i386/i386.c (flag_opts): Fix a typo in
8764         -mavx256-split-unaligned-store.
8765
8766 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
8767
8768         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8769         LIBCALL_VALUE): Remove macros.
8770         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8771         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8772         (h8300_function_value, h8300_libcall_value,
8773         h8300_function_value_regno_p): New functions.
8774
8775 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
8776
8777         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8778
8779 2011-03-28  Jeff Law  <law@redhat.com>
8780
8781         * tree-ssa-threadupdate.c (redirect_edges): Call
8782         create_edge_and_update_destination_phis as needed.
8783         (create_edge_and_update_destination_phis): Accept new BB argument.
8784         All callers updated.
8785         (thread_block): Do not update the profile when threading around
8786         intermediate blocks.
8787         (thread_single_edge): Likewise.
8788         (determine_bb_domination_status): If BB is not a successor of the
8789         loop header, return NONDOMINATING.
8790         (register_jump_thread): Note when we register a jump thread around
8791         an intermediate block.
8792         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8793         (thread_across_edge): Use it.
8794
8795 2011-03-28  Tristan Gingold  <gingold@adacore.com>
8796
8797         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8798         when for_return is 2.
8799
8800 2011-03-28  Jeff Law  <law@redhat.com>
8801
8802         * var-tracking.c (canonicalize_values_mark): Delete unused
8803         lhs assignment.
8804         (canonicalize_values_star, set_variable_part): Likewise.
8805         (clobber_variable_part, delete_variable_part): Likewise.
8806
8807 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8808
8809         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8810
8811 2011-03-28  Martin Jambor  <mjambor@suse.cz>
8812
8813         * tree-inline.c (expand_call_inline): Do not check that destination
8814         node is analyzed.
8815         (optimize_inline_calls): Assert that destination node is analyzed.
8816         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8817         not call tree_lowering_passes.
8818         * cgraph.h (cgraph_analyze_function): Declare.
8819         * cgraphunit.c (cgraph_analyze_function): Make public.
8820
8821 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
8822
8823         * config/sparc/sparc-opts.h: New.
8824         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8825         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8826         (sparc_option_override): Store processor_type enumeration rather
8827         than string in cpu_default.  Remove name and enumeration from
8828         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
8829         without using sparc_select.  Use target_flags_explicit instead of
8830         fpu_option_set.
8831         * config/sparc/sparc.h (enum processor_type): Move to
8832         sparc-opts.h.
8833         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8834         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8835         HeaderInclude entry.
8836         (mcpu=, mtune=): Use Var and Enum.
8837         (sparc_processor_type): New Enum and EnumValue entries.
8838
8839 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8840             Iain Sandoe  <iains@gcc.gnu.org>
8841
8842         PR target/48245
8843         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8844
8845 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8846
8847         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8848         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8849         Insert new statements at it in lieu of STMT.
8850         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8851         * tree-vect-stmts.c (vectorizable_store): Likewise.
8852         (vectorizable_load): Likewise.
8853
8854 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
8855
8856         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8857         (divtf3): Ditto.
8858         (multf3): Ditto.
8859         (subtf3): Ditto.
8860
8861 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8862
8863         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8864         unaligned 256bit load/store.
8865         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8866         (*avx_movdqu<avxmodesuffix>): Likewise.
8867
8868 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8869
8870         PR target/48288
8871         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8872         * config/pa/pa.md (iordi3): Use new predicate in expander.
8873         (iorsi3): Likewise.
8874
8875 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
8876
8877         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
8878         FUNCTION_VALUE_REGNO_P): Remove macros.
8879         * config/mips/mips-protos.h (mips_function_value): Remove.
8880         * config/mips/mips.c (mips_function_value): Rename to...
8881         (mips_function_value_1): ... this. Make static.  Handle receiving
8882         the function type in 'fn_decl_or_type' argument.
8883         (mips_function_value, mips_libcall_value,
8884         mips_function_value_regno_p): New function.
8885         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8886         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8887
8888 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8889
8890         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8891         and -mavx256-split-unaligned-store.
8892         (ix86_option_override_internal): Split 32-byte AVX unaligned
8893         load/store by default.
8894         (ix86_avx256_split_vector_move_misalign): New.
8895         (ix86_expand_vector_move_misalign): Use it.
8896
8897         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8898         -mavx256-split-unaligned-store.
8899
8900         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8901         256bit load/store.  Generate unaligned store on misaligned memory
8902         operand.
8903         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8904         256bit load/store.
8905         (*avx_movdqu<avxmodesuffix>): Likewise.
8906
8907         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8908         -mavx256-split-unaligned-store.
8909
8910 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
8911
8912         PR target/38598
8913         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8914         Update commentary.
8915
8916 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
8917
8918         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8919         opno arguments with an expand_operand.  Use create_input_operand.
8920         (mips_prepare_builtin_target): Delete.
8921         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8922         functions.
8923         (mips_expand_builtin_direct): Use create_output_operand and
8924         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
8925         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
8926         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8927
8928 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
8929
8930         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8931         function.
8932         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8933
8934 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
8935
8936         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8937         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
8938         basic blocks and call commit_edge_insertions directly.
8939         (fixup_abnormal_edges): Move from here to...
8940         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
8941         on the edges and return whether some have actually been inserted.
8942         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8943         compensation code.
8944
8945 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
8946
8947         PR rtl-optimization/48144
8948         * sel-sched-ir.c (merge_history_vect): Factor out from ...
8949         (merge_expr_data): ... here.
8950         (av_set_intersect): Rename to av_set_code_motion_filter.
8951         Update all callers.  Call merge_history_vect when an expression
8952         is found in both sets.
8953         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8954
8955 2011-03-26  Alan Modra  <amodra@gmail.com>
8956
8957         * config/rs6000/predicates.md (word_offset_memref_op): Handle
8958         cmodel medium addresses.
8959         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8960         64-bit gpr loads and stores.
8961         (rs6000_secondary_reload_ppc64): New function.
8962         * config/rs6000/rs6000-protos.h: Declare it.
8963         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8964
8965 2011-03-26  Alan Modra  <amodra@gmail.com>
8966
8967         PR target/47487
8968         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8969         GNU Go in traceback table.
8970
8971 2011-03-25  Richard Henderson  <rth@redhat.com>
8972
8973         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8974         if there are exactly 6 operands.
8975         (set_storage_via_setmem): Similarly.
8976
8977 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8978
8979         * collect2.c (write_c_file_stat): Handle backslash
8980         as right-hand directory separator.
8981         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8982         checking just for slash.
8983         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8984         instead of checking for trailing slash.
8985         * gcc.c (record_temp_file): Use filename_cmp instead
8986         of strcmp.
8987         (do_spec_1): Likewise.
8988         (replace_outfile_spec_function): Likewise.
8989         (is_directory): Use filename_ncmp instead of strncmp.
8990         (print_multilib_info): Likewise.
8991         * gcov.c (find_source): Use filename_cmp instead
8992         instead of strcmp.
8993         (make_gcov_file_name): Fix order of slash/backslash
8994         checks.
8995         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8996         (add_standard_paths): Likewise.
8997         * mips-tfile.c (saber_stop): Handle backslash.
8998         * prefix.c (update_path): Use filename_ncmp instead of
8999         strncmp.
9000         * profile.c (output_location): Use filename_cmp instead
9001         of strcmp.
9002         * read-md.c (handle_toplevel_file): Handle backslash.
9003         * tlink.c (frob_extension):  Likewise.
9004         * tree-cfg.c (same_line_p): Use filename_cmp instead of
9005         strcmp.
9006         * tree-dump.c (dequeue_and_dump): Handle backslash.
9007         * tree.c (get_file_function_name): Likewise.
9008         * gengtype.c (read_input_list): Likewise.
9009         (get_file_realbasename): Likewise.
9010         (get_output_file_with_visibility): Use filename_cmp
9011         instead of strcmp.
9012
9013 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
9014
9015         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9016         case to VFPv1.
9017
9018 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
9019
9020         * fold-const.c (expr_location_or): New function.
9021         (fold_truth_not_expr): Call it.
9022
9023 2011-03-25  Jeff Law  <law@redhat.com>
9024
9025         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
9026         va_end.
9027         * c-family/c-common.c (def_fn_type): Likewise.
9028         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
9029         * emit-rtl.c (gen_rtvec): Likewise.
9030         * lto/lto-lang.c (def_fn_type): Likewise.
9031
9032 2011-03-25  Richard Guenther  <rguenther@suse.de>
9033
9034         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
9035         also generate copies.
9036         (fini_copy_prop): Handle constant values properly.
9037
9038 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
9039
9040         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
9041         mode size instead of bitsize with DWARF2_ADDR_SIZE.
9042         (hash_loc_operands, compare_loc_operands): Handle
9043         DW_OP_GNU_entry_value.
9044
9045 2011-03-25  Kai Tietz  <ktietz@redhat.com>
9046
9047         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
9048         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
9049         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
9050         comment and use macro TARGET_64BIT_MS_ABI instead.
9051         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
9052         and change default behavior for 32-bit MS_ABI.
9053         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
9054         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
9055         32-bit, too.
9056         (ix86_cfun_abi): Likewise.
9057         (ix86_maybe_switch_abi): Adjust comment.
9058         (init_cumulative_args): Check for bit-ness in MS_ABI case.
9059         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
9060         instead of checking for SYSV_ABI.
9061         (ix86_nsaved_sseregs): Likewise.
9062         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
9063         to 16 bytes.
9064         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
9065         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
9066         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
9067         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
9068         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
9069
9070 2011-03-25  Richard Guenther  <rguenther@suse.de>
9071
9072         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
9073         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9074         (verify_gimple): Remove.
9075         * tree-cfg.c (verify_gimple_call): Merge verification
9076         from verify_stmts.
9077         (verify_gimple_phi): Merge verification from verify_stmts.
9078         (verify_gimple_label): New function.
9079         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
9080         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9081         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
9082         (verify_stmts): Rename to verify_gimple_in_cfg.
9083         (verify_gimple_in_cfg): New function.
9084         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
9085         * tree-ssa.c (verify_ssa): Likewise.
9086         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
9087
9088 2011-03-25  Richard Guenther  <rguenther@suse.de>
9089
9090         * passes.c (init_optimization_passes): Add FRE pass after
9091         early SRA.
9092
9093 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
9094             Andrew Stubbs  <ams@codesourcery.com>
9095
9096         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
9097         for Cortex-A8.
9098         (arm_movdi_vfp_cortexa8): New pattern.
9099         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
9100         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
9101         instructions when tuning for Cortex-A8.  Set attribute "arch".
9102         * config/arm/arm.md: Move include arm-tune.md up a bit.
9103         (define_attr "arch"): Add "onlya8" and "nota8" values.
9104         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
9105
9106 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
9107
9108         PR bootstrap/48282
9109         Revert:
9110         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9111
9112         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9113         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
9114         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9115         * passes.c (init_optimization_passes): Move
9116         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9117
9118 2011-03-25  Kai Tietz  <ktietz@redhat.com>
9119
9120         * c-typeck.c (comptypes_internal): Replace target
9121         hook call of comp_type_attributes by version in tree.c file.
9122         * gimple.c (gimple_types_compatible_p_1): Likewise.
9123         * tree-ssa.c (useless_type_conversion_p): Likewise.
9124         * tree.c (build_type_attribute_qual_variant): Likewise.
9125         (attribute_value_equal): New static helper function.
9126         (comp_type_attributes): New function.
9127         (merge_attributes): Use attribute_value_equal for comparison.
9128         (attribute_list_contained): Likewise.
9129         * tree.h (comp_type_attributes): New prototype.
9130
9131 2011-03-25  Richard Guenther  <rguenther@suse.de>
9132
9133         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
9134         of complex types at -O0.
9135         (verify_gimple_assign_binary): Likewise.
9136         (verify_gimple_assign_ternary): Likewise.
9137
9138 2011-03-24  Mark Wielaard  <mjw@redhat.com>
9139
9140         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
9141         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
9142
9143 2011-03-24  Mark Wielaard  <mjw@redhat.com>
9144
9145         PR debug/48041
9146         * dwarf2out.c (output_abbrev_section): Only write table when
9147         abbrev_die_table_in_use > 1.
9148
9149 2011-02-24  Richard Henderson  <rth@redhat.com>
9150
9151         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
9152         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
9153         (alpha_expand_unaligned_load_words): Use extql.
9154         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
9155         (emit_insxl): Handle all modes for consistency.
9156
9157 2011-02-24  Richard Henderson  <rth@redhat.com>
9158
9159         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
9160         (alpha_expand_unaligned_load): Likewise.
9161         (alpha_expand_unaligned_store): Likewise.
9162         (alpha_expand_unaligned_load_words): Likewise.
9163         (alpha_expand_unaligned_store_words): Likewise.
9164         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
9165         (alpha_split_lock_test_and_set_12): Likewise.
9166         (print_operand, alpha_fold_builtin_extxx): Likewise.
9167         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
9168         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
9169         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
9170         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
9171         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
9172         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
9173         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
9174         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
9175         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
9176         (extwl, extll, extql): Similarly.
9177         (inswh, inslh, insqh): Similarly.
9178         (mskbl, mskwl, mskll, mskql): Similarly.
9179         (mskwh, msklh, mskqh): Similarly.
9180
9181 2011-02-24  Richard Henderson  <rth@redhat.com>
9182
9183         * config/alpha/alpha.md (attribute isa): Add er, ner.
9184         (attribute enabled): Handle them.
9185         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
9186
9187 2011-02-24  Richard Henderson  <rth@redhat.com>
9188
9189         * config/alpha/alpha.md (attribute isa): Add vms.
9190         (attribute enabled): Handle it.
9191         (*movsf): Merge *movsf_{nofix,fix,nofp}.
9192         (*movdf): Merge *movdf_{nofix,fix,nofp}.
9193         (*movtf): Rename from *movtf_internal for consistency.
9194         (*movsi): Merge with *movsi_nt_vms.
9195         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
9196         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
9197         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
9198         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
9199
9200 2011-02-24  Richard Henderson  <rth@redhat.com>
9201
9202         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
9203         (extendqisi2, extendhisi2): Likewise.
9204         (extendqidi2): Simplify BWX/non-BWX expansions.
9205         (extendhidi2): Similarly.
9206
9207 2011-02-24  Richard Henderson  <rth@redhat.com>
9208
9209         * config/alpha/alpha.md (attribute isa): New.
9210         (attribute enabled): New.
9211         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
9212         (zero_extendqisi2, zero_extendqidi2): Similarly.
9213         (zero_extendhisi2, zero_extendhidi2): Similarly.
9214         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
9215
9216 2011-02-24  Richard Henderson  <rth@redhat.com>
9217
9218         * config/alpha/predicates.md (input_operand): Revert last change;
9219         update comment to mention 32-bit VMS rather than Windows.
9220
9221 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9222
9223         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9224         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
9225         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9226         * passes.c (init_optimization_passes): Move
9227         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9228
9229 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
9230
9231         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
9232
9233 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
9234
9235         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
9236         correctly.
9237
9238 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
9239
9240         PR debug/48204
9241         * simplify-rtx.c (simplify_const_unary_operation): Call
9242         real_convert when changing mode class with FLOAT_EXTEND.
9243
9244 2011-03-24  Nick Clifton  <nickc@redhat.com>
9245
9246         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
9247         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9248         * config/rx/rx.c (rx_option_override): Set align_jumps,
9249         align_loops and align_labels if not set by the user.
9250         (rx_align_for_label): New function.
9251         (rx_max_skip_for_label): New function.
9252         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
9253         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
9254         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
9255         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
9256         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
9257
9258 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9259
9260         PR rtl-optimization/48263
9261         * optabs.c (expand_binop_directly): Reinstate convert_modes code
9262         and original commutative_p handling.  Use maybe_gen_insn.
9263
9264 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9265
9266         * reload.c (find_reloads_subreg_address): Add address_reloaded
9267         parameter and return true there if the full address has been
9268         reloaded.
9269         (find_reloads_toplev): Pass address_reloaded flag.
9270         (find_reloads_address_1): Don't use address_reloaded parameter.
9271
9272 2011-03-24  Jeff Law  <law@redhat.com>
9273
9274         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
9275         unused variable "ann".
9276         (remove_unused_locals): Likewise.
9277
9278         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
9279         statement.
9280
9281         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
9282         after it is freed.
9283
9284 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9285
9286         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
9287         for invalid symbolic addresses.
9288         (s390_secondary_reload): Don't use s390_check_symref_alignment for
9289         larl operands.
9290
9291 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
9292
9293         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
9294         the argument in calls to fold_truth_not_expr.
9295
9296 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9297
9298         * tree.c (record_node_allocation_statistics): New function.
9299         (make_node_stat, copy_node_stat, build_string): Call it.
9300         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
9301         (build1_stat, build_omp_clause): Likewise.
9302
9303 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9304
9305         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
9306         last commit.
9307
9308 2011-03-24  Richard Guenther  <rguenther@suse.de>
9309
9310         PR tree-optimization/48271
9311         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
9312         blocks that still exist.
9313
9314 2011-03-24  Richard Guenther  <rguenther@suse.de>
9315
9316         PR tree-optimization/48270
9317         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
9318         not free datarefs before ddrs.
9319
9320 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
9321
9322         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
9323         from the address built for a reference with variable offset.
9324
9325 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
9326
9327         PR target/48237
9328         * config/i386/i386.md (*movdf_internal_rex64): Do not split
9329         alternatives that can be handled with movq or movabsq insn.
9330         (*movdf_internal): Disable for !TARGET_64BIT.
9331         (*movdf_internal_nointeger): Ditto.
9332         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
9333
9334 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9335
9336         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9337         (FUNCTION_ARG_ADVANCE): Likewise.
9338         * tm.texi.in: Change references to them to hook references.
9339         * tm.texi: Regenerate.
9340         * targhooks.c (default_function_arg): Eliminate check for target macro.
9341         (default_function_incoming_arg): Likewise.
9342         (default_function_arg_advance): Likewise.
9343         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9344         (function_arg_advance): Likewise.
9345         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9346
9347 2011-03-24  Richard Guenther  <rguenther@suse.de>
9348
9349         PR middle-end/48269
9350         * tree-object-size.c (addr_object_size): Do not double-account
9351         for MEM_REF offsets.
9352
9353 2011-03-24  Diego Novillo  <dnovillo@google.com>
9354
9355         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
9356         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
9357         (lto_input_data_block): Move from lto-opts.c.  Make extern.
9358         Update all users.
9359         (lto_input_string): Rename from input_string.  Make extern.
9360         Update all users.
9361         * lto-streamer-out.c (lto_output_string_with_length): Rename from
9362         output_string_with_length.
9363         Output 0 to indicate a non-NULL string.  Update all callers to
9364         not emit 0.
9365         (lto_output_string): Rename from output_string.  Make extern.
9366         Update all users.
9367         (lto_output_decl_state_streams): Make extern.
9368         (lto_output_decl_state_refs): Make extern.
9369         * lto-streamer.h (lto_input_string): Declare.
9370         (lto_input_data_block): Declare.
9371         (lto_output_string): Declare.
9372         (lto_output_string_with_length): Declare.
9373         (lto_output_decl_state_streams): Declare.
9374         (lto_output_decl_state_refs): Declare.
9375
9376 2011-03-24  Richard Guenther  <rguenther@suse.de>
9377
9378         PR tree-optimization/46562
9379         * tree.c (build_invariant_address): New function.
9380         * tree.h (build_invariant_address): Declare.
9381         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
9382         a renamed function moved ...
9383         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
9384         Take valueization callback parameter.
9385         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
9386         * gimple-fold.h: New file.
9387         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
9388         (ccp_fold, fold_const_aggregate_ref,
9389         fold_ctor_reference, fold_nonarray_ctor_reference,
9390         fold_array_ctor_reference, fold_string_cst_ctor_reference,
9391         get_base_constructor): Move ...
9392         * gimple-fold.c: ... here.
9393         (gimple_fold_stmt_to_constant_1): New function
9394         split out from ccp_fold.  Take a valueization callback parameter.
9395         Valueize all operands.
9396         (gimple_fold_stmt_to_constant): New wrapper function.
9397         (fold_const_aggregate_ref_1): New function split out from
9398         fold_const_aggregate_ref.  Take a valueization callback parameter.
9399         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
9400         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
9401         invariant POINTER_PLUS_EXPRs to invariant form.
9402         (vn_valueize): New function.
9403         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
9404         * tree-vrp.c (vrp_valueize): New function.
9405         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
9406         to fold statements to constants.
9407         * tree-ssa-pre.c (eliminate): Properly guard propagation of
9408         function declarations.
9409         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
9410         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
9411
9412 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9413
9414         * config/h8300/predicates.md (jump_address_operand): Fix register
9415         mode check.
9416
9417 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
9418
9419         * doc/invoke.texi (max-stores-to-sink): Document.
9420         * params.h (MAX_STORES_TO_SINK): Define.
9421         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
9422         if either vectorization or if-conversion is disabled.
9423         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
9424         tree-vect-data-refs.c vect_equal_offsets.
9425         (dr_equal_offsets_p): New function.
9426         (find_data_references_in_bb): Remove static.
9427         * tree-data-ref.h (find_data_references_in_bb): Declare.
9428         (dr_equal_offsets_p): Likewise.
9429         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
9430         (vect_drs_dependent_in_basic_block): Update calls to
9431         vect_equal_offsets.
9432         (vect_check_interleaving): Likewise.
9433         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
9434         (cond_if_else_store_replacement): Rename to...
9435         (cond_if_else_store_replacement_1): ... this.  Change arguments and
9436         documentation.
9437         (cond_if_else_store_replacement): New function.
9438         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
9439         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
9440
9441 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
9442
9443         PR target/46934
9444         * config/arm/arm.md (casesi): Use the gen_int_mode() function
9445         to subtract lower bound instead of GEN_INT().
9446
9447 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
9448
9449         PR other/48179
9450         PR other/48221
9451         PR other/48234
9452         * doc/extend.texi (Alignment): Move section to match order in TOC.
9453         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
9454         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
9455
9456 2011-03-23  Jeff Law  <law@redhat.com>
9457
9458         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
9459         before removing the edge.
9460
9461         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
9462         it may have been freed by redirect_branch_edge or
9463         redirect_edge_succ_nodup.
9464
9465 2011-03-23  Richard Guenther  <rguenther@suse.de>
9466
9467         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
9468         (check_va_list_escapes): Likewise.
9469         (check_all_va_list_escapes): Likewise.
9470
9471 2011-03-23  Richard Guenther  <rguenther@suse.de>
9472
9473         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
9474         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
9475         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
9476         (alias.o): Likewise.
9477         (ipa-type-escape.o): Remove.
9478         (ipa-struct-reorg.o): Likewise.
9479         (GTFILES): Remove ipa-struct-reorg.c.
9480         * alias.c: Do not include ipa-type-escape.h.
9481         * tree-ssa-alias.c: Likewise.
9482         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
9483         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
9484         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
9485         and ipa-type-escape passes.
9486         * tree-pass.h (pass_ipa_type_escape): Remove.
9487         (pass_ipa_struct_reorg): Likewise.
9488         * ipa-struct-reorg.h: Remove.
9489         * ipa-struct-reorg.c: Likewise.
9490         * ipa-type-escape.h: Likewise.
9491         * ipa-type-escape.c: Likewise.
9492         * doc/invoke.texi (-fipa-struct-reorg): Remove.
9493         (--param struct-reorg-cold-struct-ratio): Likewise.
9494         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9495         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9496         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
9497
9498 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9499
9500         * config/s390/2084.md: Enable all insn reservations also for z9_ec
9501         cpu attribute value.
9502         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
9503         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
9504         * config/s390/s390.c (processor_flags_table): New constant array.
9505         (s390_handle_arch_option): Remove.
9506         (s390_handle_option): Remove s390_handle_arch_option invocations
9507         and OPT_mwarn_framesize_ handling.
9508         (s390_option_override): Remove s390_handle_arch_option invocation.
9509         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
9510         warnings.
9511         * config/s390/s390.md (cpu attribute): Add z9_ec value.
9512         * config/s390/s390.opt (s390_tune, s390_arch)
9513         (march=): Replace s390_arch_option enum and values with
9514         processor_type.  Set variable name to s390_arch.  Set
9515         initialization value.
9516         (mtune=): Replace s390_arch_option with processor_type.  Set
9517         variable name to s390_tune.  Set initialization value.
9518
9519 2011-03-23  Julian Brown  <julian@codesourcery.com>
9520
9521         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
9522         accesses which are not naturally aligned.
9523
9524 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
9525
9526         PR target/47553
9527         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9528
9529 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
9530
9531         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9532         parameter from "int" to "enum insn_code".
9533         (expand_operand_type): New enum.
9534         (expand_operand): New structure.
9535         (create_expand_operand): New function.
9536         (create_fixed_operand, create_output_operand): Likewise
9537         (create_input_operand, create_convert_operand_to): Likewise.
9538         (create_convert_operand_from, create_address_operand): Likewise.
9539         (create_integer_operand): Likewise.
9540         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9541         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9542         (expand_insn, expand_jump_insn): Likewise.
9543         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9544         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9545         (expand_movstr, expand_builtin___clear_cache): Likewise.
9546         (expand_builtin_lock_release): Likewise.
9547         * explow.c (allocate_dynamic_stack_space): Likewise.
9548         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
9549         and use the default handling in that case.
9550         * expmed.c (check_predicate_volatile_ok): Delete.
9551         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9552         (emit_cstore): Likewise.
9553         * expr.c (emit_block_move_via_movmem): Likewise.
9554         (set_storage_via_setmem, expand_assignment): Likewise.
9555         (emit_storent_insn, try_casesi): Likewise.
9556         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
9557         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9558         (expand_vec_shift_expr, expand_binop_directly): Likewise.
9559         (expand_twoval_unop, expand_twoval_binop): Likewise.
9560         (expand_unop_direct, emit_indirect_jump): Likewise.
9561         (emit_conditional_move, vector_compare_rtx): Likewise.
9562         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9563         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9564         (expand_sync_lock_test_and_set): Likewise.
9565         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
9566         (emit_unop_insn): Likewise.
9567         (expand_copysign_absneg): Change icode to an insn_code.
9568         (create_convert_operand_from_type): New function.
9569         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9570         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9571         (expand_insn, expand_jump_insn): Likewise.
9572         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9573         than const_int_operand for operand 2.
9574
9575 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9576
9577         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9578         if possible.
9579
9580 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9581
9582         * emit-rtl.c (emit_pattern_before_noloc): New function.
9583         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9584         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9585         (emit_pattern_after_noloc): New function.
9586         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9587         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9588
9589 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9590
9591         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9592         (__ffsDI2): Likewise.
9593
9594 2011-03-22  Richard Henderson  <rth@redhat.com>
9595
9596         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9597         of !TARGET_ABI_OPEN_VMS.
9598         (alpha_trampoline_init, alpha_start_function): Likewise.
9599         (alpha_expand_epilogue, alpha_file_start): Likewise.
9600         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9601         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9602         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9603         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9604         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9605
9606 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9607
9608         * config/s390/s390-opts.h: New.
9609         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9610         s390_arch_flags, s390_warn_framesize, s390_stack_size,
9611         s390_stack_guard): Remove.
9612         (s390_handle_arch_option): Return void.  Take enum
9613         s390_arch_option value instead of string and searching array.
9614         (s390_handle_option): Don't assert that global structures are in
9615         use.  Access variables via opts pointer.  Use error_at.  Don't use
9616         sscanf for -mstack-guard= or -mstack-size=.  Update call to
9617         s390_handle_arch_option.
9618         (s390_option_override): Update call to s390_handle_arch_option.
9619         (s390_emit_prologue): Use %d format for s390_stack_size in
9620         diagnostic.  Use %wd for HOST_WIDE_INT.
9621         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9622         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9623         * config/s390/s390.opt (config/s390/s390-opts.h): New
9624         HeaderInclude entry.
9625         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9626         s390_arch_flags, s390_warn_framesize): New Variable entries.
9627         (s390_arch_option): New Enum and EnumValue entries.
9628         (march=): Use Enum instead of Var.
9629         (mstack-guard=, mstack-size=): Use UInteger and Var.
9630         (mtune=): Use Enum.
9631
9632 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9633
9634         * config/score/score.c (score_handle_option): Don't assert that
9635         global structures are in use.  Access target_flags via opts
9636         pointer.  Use value of -march= option to determine target_flags
9637         settings.
9638         * config/score/score.opt (march=): Use Enum.
9639         (score_arch): New Enum and EnumValue entries.
9640
9641 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9642
9643         * config/mep/mep.c (option_mtiny_specified): Remove.
9644         (mep_option_override): Move register handling for -mivc2 from
9645         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
9646         instead of option_mtiny_specified.
9647         (mep_handle_option): Access target_flags via opts pointer.  Don't
9648         assert that global structures are in use.  Defer part of -mivc2
9649         handling and move it to mep_option_override.
9650         * config/mep/mep.opt (IVC2): New Mask entry.
9651         (mivc2): Use Var and Defer instead of Mask.
9652
9653 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9654
9655         * config/v850/v850-opts.h: New.
9656         * config/v850/v850.c (small_memory): Replace with
9657         small_memory_physical_max array.  Make that array static const.
9658         (v850_handle_memory_option): Take integer value of argument.  Take
9659         gcc_options pointer, option text and location.  Return void.
9660         Update for changes to small memory structures.
9661         (v850_handle_option): Access target_flags via opts pointer.  Don't
9662         assert that global structures are in use.  Update calls to
9663         v850_handle_memory_option.
9664         (v850_encode_data_area): Update references to small memory settings.
9665         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9666         (enum small_memory_type): Move to v850-opts.h.
9667         * config/v850/v850.opt (config/v850/v850-opts.h): New
9668         HeaderInclude entry.
9669         (small_memory_max): New Variable entry.
9670         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
9671         (mtda, mzda): Likewise.
9672
9673 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9674
9675         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9676         pointer.  Don't assert that global structures are in use.
9677
9678 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9679
9680         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9681         via opts pointer.  Don't assert that global structures are in use.
9682
9683 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9684
9685         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9686         (munix=93): Use Var.
9687         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9688         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9689         * config/pa/pa-opts.h: New.
9690         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9691         (pa_handle_option): Don't assert that global structures are in
9692         use.  Access target_flags via opts pointer.  Don't handle
9693         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9694         OPT_munix_98 here.
9695         (pa_option_override): Handle deferred OPT_mfixed_range_.
9696
9697 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9698
9699         * config/mn10300/mn10300-opts.h: New.
9700         * config/mn10300/mn10300.c (mn10300_processor,
9701         mn10300_tune_string): Remove.
9702         (mn10300_handle_option): Don't assert that global structures are
9703         in use.  Access mn10300_processor via opts pointer.  Don't handle
9704         OPT_mtune_ here.
9705         * config/mn10300/mn10300.h (enum processor_type): Move to
9706         mn10300-opts.h.
9707         (mn10300_processor): Remove.
9708         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9709         HeaderInclude entry.
9710         (mn10300_processor): New Variable entry.
9711         (mtune=): Use Var.
9712
9713 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9714
9715         * config/microblaze/microblaze.c: Don't include opts.h.
9716         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9717         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9718         (mno-clearbss): Use Var and Warn.
9719
9720 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9721
9722         * config/m32r/m32r-opts.h: New.
9723         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9724         (m32r_handle_option): Don't assert that global structures are in
9725         use.  Access target_flags and m32r_cache_flush_func via opts
9726         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
9727         OPT_mno_flush_trap here.
9728         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9729         include of m32r-opts.h.
9730         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9731         HeaderInclude entry.
9732         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9733         (mmodel=): Use Enum and Var.
9734         (m32r_model): New Enum and EnumValue entries.
9735         (mno-flush-trap): Use Var.
9736         (msdata=): Use Enum and Var.
9737         (m32r_sdata): New Enum and EnumValue entries.
9738
9739 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9740
9741         * config/m32c/m32c.c: Don't include opts.h.
9742         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9743         m32c_handle_option): Remove.
9744         (m32c_option_override): Check global_options_set.x_target_memregs
9745         instead of target_memregs_set.
9746         * config/m32c/m32c.h (target_memregs): Remove.
9747         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9748         variable.
9749
9750 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9751
9752         * config/iq2000/iq2000-opts.h: New.
9753         * config/iq2000/iq2000.c: Don't include opts.h.
9754         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
9755         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
9756         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9757         HeaderInclude entry.
9758         (iq2000_tune): New Variable entry.
9759         (march=): Add comment.  Use Enum.
9760         (iq2000_arch): New Enum and EnumValue entries.
9761         (mcpu=): Use Enum and Var.
9762         (iq2000_tune): New Enum and EnumValue entries.
9763
9764 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9765
9766         * config/ia64/ia64-opts.h: New.
9767         * config/ia64/ia64.c (ia64_tune): Remove.
9768         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9769         here.  Use error_at.
9770         (ia64_option_override): Handle deferred OPT_mfixed_range_.
9771         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9772         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9773         HeaderInclude entry.
9774         (ia64_tune): New Variable entry.
9775         (mfixed-range=): Use Defer and Var.
9776         (mtune=): Use Enum and Var.
9777         (ia64_tune): New Enum and EnumValue entries.
9778
9779 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9780
9781         * config/frv/frv-opts.h: New.
9782         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9783         frv-opts.h.
9784         (frv_cpu_type): Remove.
9785         * config/frv/frv.c: Don't include opts.h.
9786         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9787         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9788         (frv_cpu_type): New Variable entry.
9789         (frv_cpu): New Enum and EnumValue entries.
9790
9791 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9792
9793         * config/cris/cris.c (cris_handle_option): Access target_flags via
9794         opts pointer.  Don't assert that global structures are in use.
9795         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9796         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9797
9798 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9799
9800         * config/bfin/bfin-opts.h: New.
9801         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9802         bfin_si_revision, bfin_workarounds): Remove.
9803         (bfin_cpus): Make static const.
9804         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9805         not bfin_lib_id_given.
9806         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
9807         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9808         pointer. Use error_at.  Don't assert that global structures are in use.
9809         * config/bfin/bfin.h: Include bfin-opts.h.
9810         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9811         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9812         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9813         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9814         entries.
9815
9816 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9817
9818         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9819         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9820         or -msoft-float here.
9821         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9822         -msoft-float and -mhard-float.
9823         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9824         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9825         msoft-float.
9826         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9827         -msoft-float.
9828         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9829         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9830         not mhard-float.
9831         (LIBGCC_SPEC): Don't handle -msoft-float.
9832         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9833         -mhard-float.
9834         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9835         msoft-float.
9836         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9837         -mfloat-abi=*, not -msoft-float and -mhard-float.
9838         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9839         -msoft-float.
9840         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9841         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9842         mhard-float and msoft-float.
9843         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9844         mfloat-abi=soft in comments, not mhard-float and msoft-float.
9845         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9846         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9847         mhard-float.
9848         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9849         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9850         msoft-float.
9851         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9852         not mhard-float.
9853         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9854         not msoft-float.
9855
9856 2011-03-22  Richard Henderson  <rth@redhat.com>
9857
9858         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9859         TARGET_ABI_WINDOWS_NT.
9860         (alpha_output_function_end_prologue): Likewise.
9861         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9862         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9863         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9864         (trap, *movsi_nt_vms): Likewise.
9865         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9866         (*tablejump_osf_nt_internal): Remove.
9867         * config/alpha/predicates.md (input_operand): Only test Pmode.
9868
9869 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9870
9871         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9872         via opts pointer.  Use error_at.  Don't assert that global
9873         structures are in use.
9874
9875 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9876
9877         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9878         (ix86_handle_option): Access ix86_isa_flags and
9879         ix86_isa_flags_explicit via opts pointer.  Don't assert that
9880         global structures are in use.
9881         (ix86_function_specific_save, ix86_function_specific_restore):
9882         Update ix86_isa_flags_explicit field name.
9883         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
9884         (ix86_isa_flags_explicit): Rename TargetSave entry to
9885         x_ix86_isa_flags_explicit.
9886
9887 2011-03-22  Richard Henderson  <rth@redhat.com>
9888
9889         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9890         (alpha_option_override, direct_return): Likewise.
9891         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9892         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9893         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9894         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9895         (alpha_expand_epilogue, alpha_end_function): Likewise.
9896         (alpha_init_libfuncs): Likewise.
9897         (struct machine_function): Remove unicosmk members.
9898         (print_operand) ['t']: Remove.
9899         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9900         unicosmk_output_module_name, unicosmk_output_common,
9901         current_section_align, unicosmk_output_text_section_asm_op,
9902         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9903         unicosmk_section_type_flags, unicosmk_unique_section,
9904         unicosmk_asm_named_section, unicosmk_insert_attributes,
9905         unicosmk_output_align, unicosmk_defer_case_vector,
9906         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9907         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9908         unicosmk_output_ssib, unicosmk_add_call_info_word,
9909         unicosmk_extern_head, unicosmk_output_default_externs,
9910         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9911         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9912         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9913         * config/alpha/alpha-protos.h: Update.
9914         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9915         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9916         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9917         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9918         (*mulsi_se, mulvsi3): Likewise.
9919         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9920         (*divmodsi_internal, call, call_value, realign): Likewise.
9921         (moddi3, umoddi3): Likewise; remove duplicate expander.
9922         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9923         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9924         (*movdi_nofix): Remove r/U alternative.
9925         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9926         * config/alpha/constraints.md ("U"): Remove.
9927         * config/alpha/predicates.md (call_operand"): Don't test
9928         TARGET_ABI_UNICOSMK.
9929
9930 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9931
9932         * target.def (handle_option): Take gcc_options and
9933         cl_decoded_option pointers and location_t.
9934         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9935         * doc/tm.texi: Regenerate.
9936         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9937         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9938         * lto-opts.c (lto_reissue_options): Generate option structure for
9939         targetm.handle_option call.
9940         * opts.c (target_handle_option): Update call to
9941         targetm.handle_option.  Remove assertions about values now passed
9942         down to hook.
9943         * targhooks.c (default_target_handle_option): New.
9944         * targhooks.h (default_target_handle_option): Declare.
9945         * config/alpha/alpha.c: Include opts.h.
9946         (alpha_handle_option): Update to new hook interface.
9947         * config/arm/arm.c: Include opts.h.
9948         (arm_handle_option): Update to new hook interface.
9949         * config/arm/t-arm (arm.o): Update dependencies.
9950         * config/bfin/bfin.c: Include opts.h.
9951         (bfin_handle_option): Update to new hook interface.
9952         * config/cris/cris.c: Include opts.h.
9953         (cris_handle_option): Update to new hook interface.
9954         * config/frv/frv.c: Include opts.h.
9955         (frv_handle_option): Update to new hook interface.
9956         * config/i386/i386.c: Include opts.h.
9957         (ix86_handle_option): Update to new hook interface.
9958         (ix86_valid_target_attribute_inner_p): Generate option structure
9959         for call to ix86_handle_option.
9960         * config/i386/t-i386 (i386.o): Update dependencies.
9961         * config/ia64/ia64.c: Include opts.h.
9962         (ia64_handle_option): Update to new hook interface.
9963         * config/ia64/t-ia64 (ia64.o): Update dependencies.
9964         * config/iq2000/iq2000.c: Include opts.h.
9965         (iq2000_handle_option): Update to new hook interface.
9966         * config/m32c/m32c.c: Include opts.h.
9967         (m32c_handle_option): Update to new hook interface.
9968         * config/m32r/m32r.c: Include opts.h.
9969         (m32r_handle_option): Update to new hook interface.
9970         * config/m68k/m68k.c: Include opts.h.
9971         (m68k_handle_option): Update to new hook interface.
9972         * config/mep/mep.c: Include opts.h.
9973         (mep_handle_option): Update to new hook interface.
9974         * config/microblaze/microblaze.c: Include opts.h.
9975         (microblaze_handle_option): Update to new hook interface.
9976         * config/mips/mips.c: Include opts.h.
9977         (mips_handle_option): Update to new hook interface.
9978         * config/mn10300/mn10300.c: Include opts.h.
9979         (mn10300_handle_option): Update to new hook interface.
9980         * config/pa/pa.c: Include opts.h.
9981         (pa_handle_option): Update to new hook interface.
9982         * config/pdp11/pdp11.c: Include opts.h.
9983         (pdp11_handle_option): Update to new hook interface.
9984         * config/rs6000/rs6000.c: Include opts.h.
9985         (rs6000_handle_option): Update to new hook interface.
9986         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9987         * config/rx/rx.c: Include opts.h.
9988         (rx_handle_option): Update to new hook interface.
9989         * config/s390/s390.c: Include opts.h.
9990         (s390_handle_option): Update to new hook interface.
9991         * config/score/score.c: Include opts.h.
9992         (score_handle_option): Update to new hook interface.
9993         * config/sh/sh.c: Include opts.h.
9994         (sh_handle_option): Update to new hook interface.
9995         * config/sparc/sparc.c: Include opts.h.
9996         (sparc_handle_option): Update to new hook interface.
9997         * config/v850/v850.c: Include opts.h.
9998         (v850_handle_option): Update to new hook interface.
9999
10000 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10001
10002         * gcc.c (driver_unknown_option_callback): Only permit and save
10003         unknown -Wno- options.
10004         (driver_wrong_lang_callback): Save options directly instead of via
10005         driver_unknown_option_callback.
10006
10007 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
10008
10009         * combine.c (simplify_set): Try harder to find the best CC mode when
10010         simplifying a nested COMPARE on the RHS.
10011
10012 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10013
10014         * config/alpha/gnu.h: Remove.
10015         * config/arc: Remove directory.
10016         * config/arm/netbsd.h: Remove.
10017         * config/arm/t-pe: Remove.
10018         * config/crx: Remove directory.
10019         * config/i386/netbsd.h: Remove.
10020         * config/m68hc11: Remove directory.
10021         * config/m68k/uclinux-oldabi.h: Remove.
10022         * config/mcore/mcore-pe.h: Remove.
10023         * config/mcore/t-mcore-pe: Remove.
10024         * config/netbsd-aout.h: Remove.
10025         * config/rs6000/gnu.h: Remove.
10026         * config/sh/sh-symbian.h: Remove.
10027         * config/sh/symbian-base.c: Remove.
10028         * config/sh/symbian-c.c: Remove.
10029         * config/sh/symbian-cxx.c: Remove.
10030         * config/sh/symbian-post.h: Remove.
10031         * config/sh/symbian-pre.h: Remove.
10032         * config/sh/t-symbian: Remove.
10033         * config/svr3.h: Remove.
10034         * config/vax/netbsd.h: Remove.
10035         * config.build: Don't handle i[34567]86-*-pe.
10036         * config.gcc: Remove handling of deprecations for most deprecated
10037         targets.
10038         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
10039         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
10040         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
10041         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
10042         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
10043         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
10044         Remove cases.
10045         * config.host: Don't handle i[34567]86-*-pe.
10046         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
10047         (ASM_SPEC32): Don't handle -mcall-gnu.
10048         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
10049         -mcall-gnu.
10050         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
10051         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
10052         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10053         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
10054         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
10055         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
10056         conditional on SYMBIAN.
10057         * configure.ac: Don't handle powerpc*-*-gnu*.
10058         * configure: Regenerate.
10059         * doc/extend.texi (interrupt attribute): Don't mention CRX.
10060         * doc/install-old.texi (m6811, m6812): Don't mention.
10061         * doc/install.texi (arc-*-elf*): Don't document multilib option.
10062         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
10063         (m68k-uclinuxoldabi): Don't mention.
10064         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
10065         Remove.
10066         (-mcall-gnu): Remove.
10067         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
10068         families): Remove constraint documentation.
10069
10070 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
10071
10072         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
10073         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
10074         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
10075
10076 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
10077
10078         PR target/48226
10079         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
10080         vector when peeking at the next token for vector, don't expand the
10081         keywords.
10082
10083 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
10084
10085         * config/avr/avr-protos.h (expand_epilogue): Change prototype
10086         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
10087         * config/avr/avr.c (init_cumulative_args)
10088         (avr_function_arg_advance): Use it.
10089         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
10090         sibcall epilogues.
10091         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
10092         (avr_function_ok_for_sibcall): ...this new function.
10093         (avr_lookup_function_attribute1): New static Function.
10094         (avr_naked_function_p, interrupt_function_p)
10095         (signal_function_p, avr_OS_task_function_p)
10096         (avr_OS_main_function_p): Use it.
10097         * config/avr/avr.md ("sibcall", "sibcall_value")
10098         ("sibcall_epilogue"): New expander.
10099         ("*call_insn", "*call_value_insn"): New insn.
10100         ("call_insn", "call_value_insn"): Remove
10101         ("call", "call_value", "epilogue"): Change expander to handle
10102         sibling calls.
10103
10104 2011-03-21  Nick Clifton  <nickc@redhat.com>
10105
10106         * doc/invoke.texi (Overall Options): Move closing brace to end of
10107         options list.
10108         (Optimization Options): Add missing @gol.
10109         (Directory Options): Likewise.
10110         (i386 and x86-64 Options): Likewise.
10111         (RS6000 and PowerPC Options): Likewise.
10112         (i386 and x86-64 Windows Options): Likewise.
10113         (V850 Options): Add text missing from descriptions.
10114
10115 2011-03-22  Richard Henderson  <rth@redhat.com>
10116
10117         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
10118         (avr_incoming_return_addr_rtx): New.
10119         (emit_push_byte): New.
10120         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
10121         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
10122         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
10123         (emit_pop_byte): New.
10124         (expand_epilogue): Use it.  Pop frame pointer by bytes.
10125         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
10126         (INCOMING_RETURN_ADDR_RTX): New.
10127         (INCOMING_FRAME_SP_OFFSET): New.
10128         (ARG_POINTER_CFA_OFFSET): New.
10129         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
10130         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
10131         (pophi): Remove.
10132
10133         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
10134
10135 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
10136
10137         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10138         (FUNCTION_ARG_ADVANCE): Likewise.
10139         * tm.texi.in: Change references to them to hook references.
10140         * tm.texi: Regenerate.
10141         * targhooks.c (default_function_arg): Eliminate check for target
10142         macro.
10143         (default_function_incoming_arg): Likewise.
10144         (default_function_arg_advance): Likewise.
10145         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10146         (function_arg_advance): Likewise.
10147         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10148
10149 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
10150
10151         * tree.c (build_call_1): New function.
10152         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
10153
10154 2011-03-22  Richard Guenther  <rguenther@suse.de>
10155
10156         PR tree-optimization/48228
10157         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
10158         for single-arg PHIs.
10159
10160 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
10161
10162         PR rtl-optimization/48143
10163         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
10164         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
10165         sse2_cvtps2pd): Likewise.
10166
10167 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10168
10169         * recog.c (canonicalize_change_group): Use validate_unshare_change.
10170
10171 2011-03-22  Richard Guenther  <rguenther@suse.de>
10172
10173         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
10174         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
10175         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
10176         and REALIGN_LOAD_EXPR.
10177         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
10178         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
10179         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
10180         DOT_PROD_EXPR case ...
10181         (expand_expr_real_2): ... here.
10182         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
10183         and REALIGN_LOAD_EXPR.
10184         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
10185         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
10186         (vect_create_epilog_for_reduction): Likewise.
10187         (vectorizable_reduction): Likewise.
10188         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
10189         * tree-vect-stmts.c (vectorizable_load): Likewise.
10190
10191 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
10192
10193         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
10194
10195 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10196
10197         * config/s390/s390.c (s390_delegitimize_address): Fix offset
10198         handling for PLTOFF/GOTOFF.
10199
10200 2011-03-22  Nick Clifton  <nickc@redhat.com>
10201
10202         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
10203         trailing backslash from the end of the macro definition.
10204
10205 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10206
10207         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
10208         and PLT unspecs.
10209
10210 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
10211
10212         * expr.h (prepare_operand): Move to...
10213         * optabs.h (prepare_operand): ...here and change the insn code
10214         parameter from "int" to "enum insn_code".
10215         (insn_operand_matches): Declare.
10216         * expr.c (init_expr_target): Use insn_operand_matches.
10217         (compress_float_constant): Likewise.
10218         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
10219         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
10220         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
10221         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
10222         Likewise.
10223         (gen_cond_trap): Likewise.
10224         (prepare_operand): Likewise.  Change icode to an insn_code.
10225         (insn_operand_matches): New function.
10226         * reload.c (find_reloads_address_1): Use insn_operand_matches.
10227         * reload1.c (gen_reload): Likewise.
10228         * targhooks.c (default_secondary_reload): Likewise.
10229
10230 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
10231
10232         * config/alpha/alpha.md (unspec): New define_c_enum.
10233         (unspecv): Ditto.
10234
10235 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
10236
10237         PR debug/48214
10238         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
10239         between a call and its CALL_ARG_LOCATION note.
10240
10241 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
10242
10243         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
10244
10245 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
10246
10247         PR c/42544
10248         PR c/48197
10249         * c-common.c (shorten_compare): If primopN is first sign-extended
10250         to opN and then zero-extended to result type, set primopN to opN.
10251
10252 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
10253
10254         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
10255         for barrier handlers.
10256
10257 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
10258
10259         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
10260         UNSPEC constants to be in the unspec enumeration, and redefine
10261         all UNSPECV constants to be in the unspecv enumeration, so that
10262         dumps print which unspec/unspec_volatile this is.
10263         * config/rs6000/vector.md (UNSPEC_*): Ditto.
10264         * config/rs6000/paired.md (UNSPEC_*): Ditto.
10265         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
10266         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
10267         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
10268
10269         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
10270         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
10271         UNSPECV_LWSYNC, since these are used as unspec_volatile.
10272         * config/rs6000/sync.md (isync, lwsync): Ditto.
10273
10274 2011-03-21  Richard Guenther  <rguenther@suse.de>
10275
10276         * params.def (lto-min-partition): Fix typo.
10277
10278 2011-03-21  Richard Guenther  <rguenther@suse.de>
10279
10280         PR c/47939
10281         * c-decl.c (grokdeclarator): Drop to the main variant only
10282         for array types.  Drop flag_gen_aux_info check.
10283
10284 2011-03-21  Richard Guenther  <rguenther@suse.de>
10285
10286         PR translation/47911
10287         * params.def (lto-partitions): Fix typo.
10288         (lto-min-partition): Fix wording.
10289
10290 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
10291
10292         * config/rs6000/t-freebsd: Remove duplication from file.
10293
10294 2011-03-21  Richard Guenther  <rguenther@suse.de>
10295
10296         PR middle-end/47661
10297         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
10298
10299 2011-03-21  Richard Guenther  <rguenther@suse.de>
10300
10301         PR lto/48210
10302         * params.def (lto-partitions): Require at least 1 partition.
10303
10304 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10305
10306         * gthr-solaris.h: Remove.
10307         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
10308         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
10309         (LIB_SPEC): Likewise.
10310         * config/sol2.opt (threads): Remove.
10311         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
10312         (sparc*-*-solaris2*): Likewise.
10313         * configure.ac (enable_threads): Enable solaris support.
10314         * configure: Regenerate.
10315         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
10316         * doc/install.texi (Configuration, --enable-threads=lib): Remove
10317         solaris.
10318
10319 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10320
10321         * config.gcc: Obsolete *-*-solaris2.8*.
10322         * doc/install.texi (Specific, *-*-solaris2*): Document it.
10323
10324 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10325
10326         PR bootstrap/48135
10327         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
10328         reference.  Solaris 8 perl works.
10329
10330 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10331
10332         PR bootstrap/48135
10333         * doc/install.texi (Prerequisites): Move jar etc. up.
10334         Explain support library version requirements.
10335
10336 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10337
10338         PR bootstrap/48135
10339         * doc/install.texi (Prerequisites): Move Perl to build
10340         requirements.  Always necessary on Solaris 2 with Sun ld.
10341
10342 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10343
10344         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
10345         binutils 2.21.
10346         (Specific, i?86-*-solaris2.[89]): Likewise.
10347         (Specific, i?86-*-solaris2.10): Likewise.
10348         (Specific, mips-sgi-irix6): Likewise.
10349         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
10350         Update for binutils 2.21.
10351
10352 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10353
10354         * configure.ac (gcc_cv_lto_plugin): Fix typo.
10355         Allow -fuse-linker-plugin for non-default plugin linker.
10356         * configure: Regenerate.
10357
10358 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
10359
10360         PR bootstrap/48167
10361         * gengtype.c (files_rules): Added rule for cp/parser.h.
10362
10363 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
10364
10365         PR target/48213
10366         * config/s390/s390.c (s390_delegitimize_address): Don't call
10367         lowpart_subreg if orig_x has BLKmode.
10368
10369 2011-03-21  Kai Tietz  <ktietz@redhat.com>
10370
10371         PR target/12171
10372         * doc/plugins.texi: Adjust documentation for plugin register_callback.
10373         * tree.h (attribute_spec): Add new member affects_type_identity.
10374         * attribs.c (empty_attribute_table): Adjust attribute_spec
10375         initializers.
10376         * config/alpha/alpha.c: Likewise.
10377         * config/arc/arc.c: Likewise.
10378         * config/arm/arm.c: Likewise.
10379         * config/avr/avr.c: Likewise.
10380         * config/bfin/bfin.c: Likewise.
10381         * config/crx/crx.c: Likewise.
10382         * config/darwin.h: Likewise.
10383         * config/h8300/h8300.c: Likewise.
10384         * config/i386/cygming.h: Likewise.
10385         * config/i386/i386.c: Likewise.
10386         * config/ia64/ia64.c: Likewise.
10387         * config/m32c/m32c.c: Likewise.
10388         * config/m32r/m32r.c: Likewise.
10389         * config/m68hc11/m68hc11.c: Likewise.
10390         * config/m68k/m68k.c: Likewise.
10391         * config/mcore/mcore.c: Likewise.
10392         * config/mep/mep.c: Likewise.
10393         * config/microblaze/microblaze.c: Likewise.
10394         * config/mips/mips.c: Likewise.
10395         * config/rs6000/rs6000.c: Likewise.
10396         * config/rx/rx.c: Likewise.
10397         * config/sh/sh.c: Likewise.
10398         * config/sol2.h: Likewise.
10399         * config/sparc/sparc.c: Likewise.
10400         * config/spu/spu.c: Likewise.
10401         * config/stormy16/stormy16.c: Likewise.
10402         * config/v850/v850.c: Likewise.
10403
10404 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
10405
10406         * simplify-rtx.c (simplify_binary_operation_1): Handle
10407         (xor (and A B) C) case when B and C are both constants.
10408
10409 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
10410
10411         * tree-dfa.c (add_referenced_var): Fix typo in comment.
10412
10413 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
10414
10415         PR bootstrap/48168
10416         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
10417
10418 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
10419
10420         PR rtl-optimization/48156
10421         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
10422         assume df and df_lr are not NULL.
10423
10424 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10425
10426         PR debug/48023
10427         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
10428         between a call and its CALL_ARG_LOCATION note.
10429
10430 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
10431
10432         PR debug/48178
10433         * config/sh/sh.c (find_barrier): Don't emit a constant pool
10434         between a call and its corresponding CALL_ARG_LOCATION note.
10435
10436 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
10437
10438         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
10439         instead of loop. Use HARD_REGISTER_NUM_P predicate.
10440         * haifa-sched.c (setup_ref_regs): Ditto.
10441         * caller-save.c (add_used_regs_1): Ditto.
10442         * dse.c (look_for_hardregs): Ditto.
10443         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
10444         * sched-rgn.c (check_live_1): Ditto.
10445
10446 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
10447
10448         * c-decl.c (diagnose_mismatched_decls): Give an error for
10449         redefining a typedef with variably modified type.
10450
10451 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
10452
10453         * c-decl.c (grokfield): Don't allow typedefs for structures or
10454         unions with no tag by default.
10455         * doc/extend.texi (Unnamed Fields): Update.
10456
10457 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
10458
10459         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
10460         Rewrite using indirect functions.
10461         (lwp_slwpcb): Ditto.
10462         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
10463         (avx_vinsertf128<mode>): Ditto.
10464
10465 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10466
10467         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
10468         unspecs.
10469
10470 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10471
10472         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
10473         splitting between a call and its corresponding CALL_ARG_LOCATION note.
10474
10475 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
10476
10477         PR rtl-optimization/48170
10478         * gcse.c (hoist_code): Remove bogus asserts.
10479
10480 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
10481
10482         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
10483         computation for prologue/epilogue.
10484
10485 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10486
10487         * Makefile.in (check-consistency): Remove.
10488
10489 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
10490
10491         PR debug/48176
10492         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
10493         arange_table_in_use is 0, but either text_section_used or
10494         cold_text_section_used is true.  Don't call it if
10495         !info_section_emitted.
10496
10497 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
10498
10499         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
10500         FUNCTION_VALUE_REGNO_P): Remove.
10501         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
10502         Remove.
10503         * config/avr/avr.c (avr_ret_register): Make static inline.
10504         (avr_function_value_regno_p): New function.
10505         (avr_libcall_value): Make static. Add 'func' argument.
10506         (avr_function_value): Make static. Rename 'func' argument to
10507         'fn_decl_or_type', forward it to avr_libcall_value. Call
10508         avr_ret_register function instead of RET_REGISTER macro.
10509         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10510
10511 2011-03-18  Jason Merrill  <jason@redhat.com>
10512
10513         PR c++/23372
10514         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
10515
10516 2011-03-18  Richard Guenther  <rguenther@suse.de>
10517
10518         * doc/install.texi (--enable-gold): Remove.
10519         (--with-plugin-ld): Document.
10520         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
10521
10522 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
10523
10524         PR middle-end/47790
10525         * expr.c (optimize_bitfield_assignment_op): Revamp to work
10526         again after expansion changes.
10527
10528 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
10529
10530         * combine.c (try_combine): Do simplification only call of
10531         subst() on i2 even when i1 is present. Update comments.
10532
10533 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
10534
10535         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10536         and UNSPEC_PCREL_SYMOFF.
10537
10538 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10539
10540         * config/s390/s390.md: Use define_c_enum for the unspec constant
10541         definitions.
10542
10543 2011-03-18  Richard Henderson  <rth@redhat.com>
10544             Jakub Jelinek  <jakub@redhat.com>
10545
10546         PR bootstrap/48161
10547         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10548         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10549
10550 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10551
10552         PR middle-end/47725
10553         * combine.c (cant_combine_insn_p): Don't check zero/sign
10554         extended hard registers.
10555
10556 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10557
10558         PR middle-end/47725
10559         * combine.c (cant_combine_insn_p): Check zero/sign extended
10560         hard registers.
10561
10562 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
10563
10564         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10565         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10566         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10567         Change return type to bool.
10568         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10569
10570 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10571
10572         PR debug/48163
10573         * var-tracking.c (prepare_call_arguments): If CALL target
10574         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10575         pc instead of looking it up using cselib_lookup and use
10576         Pmode for it if x has VOIDmode.
10577         * dwarf2out.c (gen_subprogram_die): If also both first and
10578         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10579
10580         PR debug/48163
10581         * function.c (assign_parms): For data.passed_pointer parms
10582         use MEM of data.entry_parm instead of data.entry_parm itself
10583         as DECL_INCOMING_RTL.
10584         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10585         also when passed and declared mode is the same, DECL_RTL
10586         is a MEM with pseudo as address and DECL_INCOMING_RTL is
10587         a MEM too.
10588
10589 2011-03-16  Jeff Law  <law@redhat.com>
10590
10591         PR rtl-optimization/37273
10592         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10593         handle them like argument loads from stack slots.  Do not double
10594         count memory for memory constants and argument loads from stack slots.
10595
10596 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10597
10598         PR debug/48160
10599         * var-tracking.c (prepare_call_arguments): Check SUBREG.
10600
10601 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10602
10603         PR target/48171
10604         * config/i386/i386.opt: Add Save to -mavx and -mfma.
10605
10606 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10607
10608         PR bootstrap/48153
10609         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10610         if dwarf_strict.
10611         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10612         Clear call_arg_locations and call_arg_loc_last always.
10613
10614         PR middle-end/48152
10615         * var-tracking.c (prepare_call_arguments): If argument needs to be
10616         passed by reference, adjust argtype and mode.
10617
10618 2011-03-17  Richard Guenther  <rguenther@suse.de>
10619
10620         PR middle-end/48134
10621         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10622         a value make sure to fold the statement.
10623
10624 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
10625
10626         PR target/43872
10627         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10628         return condition with !cfun->calls_alloca.
10629
10630 2011-03-17  Richard Guenther  <rguenther@suse.de>
10631
10632         PR bootstrap/48148
10633         * lto-cgraph.c (input_overwrite_node): Clear the abstract
10634         origin for decls in other ltrans units.
10635         (input_varpool_node): Likewise.
10636
10637 2011-03-17  Richard Guenther  <rguenther@suse.de>
10638
10639         PR middle-end/48165
10640         * tree-object-size.c (compute_object_offset): Properly return
10641         the offset operand of MEM_REFs as sizetype.
10642
10643 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10644
10645         PR rtl-optimization/48141
10646         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10647         * dse.c: Include params.h.
10648         (active_local_stores_len): New variable.
10649         (add_wild_read, dse_step1): Clear it when setting active_local_stores
10650         to NULL.
10651         (record_store, check_mem_read_rtx): Decrease it when removing
10652         from the chain.
10653         (scan_insn): Likewise.  Increase it when adding to chain, if it
10654         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10655         set active_local_stores to NULL before the addition.
10656         * Makefile.in (dse.o): Depend on $(PARAMS_H).
10657
10658         PR rtl-optimization/48141
10659         * dse.c (record_store): If no positions are needed in an insn
10660         that cannot be deleted, at least unchain it from active_local_stores.
10661
10662 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
10663
10664         PR debug/47510
10665         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10666         (lookup_type_die_strip_naming_typedef): ... here.
10667         (get_context_die): Use it.
10668         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10669         the anonymous struct named by the naming typedef.
10670
10671 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10672
10673         PR target/48154
10674         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10675         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10676
10677 2011-03-16  Jeff Law  <law@redhat.com>
10678
10679         * tree-vrp.c (identify_jump_threads): Slightly simplify type
10680         check for operands of conditional.  Allow type to be a pointer.
10681
10682 2011-03-16  Richard Guenther  <rguenther@suse.de>
10683
10684         PR tree-optimization/48149
10685         * fold-const.c (fold_binary_loc): Fold
10686         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10687
10688 2011-03-16  Richard Guenther  <rguenther@suse.de>
10689
10690         PR tree-optimization/26134
10691         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10692         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10693         (non_rewritable_mem_ref_base): Handle complex type component
10694         accesses, constrain offsets for vector and complex extracts
10695         more properly.
10696
10697 2011-03-16  Richard Guenther  <rguenther@suse.de>
10698
10699         PR tree-optimization/48146
10700         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10701         operands avoiding the need for renaming.
10702
10703 2011-03-16  Richard Guenther  <rguenther@suse.de>
10704
10705         * gimple-fold.c (maybe_fold_reference): Open-code relevant
10706         constant folding.  Move MEM_REF canonicalization first.
10707         Rely on fold_const_aggregate_ref for initializer folding.
10708         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10709
10710 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10711
10712         PR middle-end/48136
10713         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10714         arg0/arg1 or their arguments are always fold converted to matching
10715         types.
10716
10717         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10718         to nargs.
10719
10720 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10721
10722         PR lto/46944
10723         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10724         Handle in-tree gold.
10725         (ld_vers): Extract binutils version for gold.
10726         (gcc_cv_ld_hidden): Handle gold here.
10727         (gcc_cv_lto_plugin): Determine level of linker plugin support.
10728         * configure: Regenerate.
10729         * config.in: Regenerate.
10730         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10731         -fuse-linker-plugin otherwise.
10732         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
10733         (LINK_COMMAND_SPEC): Use it.
10734         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10735
10736 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10737
10738         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10739         * calls.c: Remove debug.h include.
10740         (emit_call_1): Don't call virtual_call_token debug hook.
10741         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10742         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10743         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10744         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10745         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10746         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10747         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10748         dwarf2out_virtual_call): Remove.
10749         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10750         copy_call_info and virtual_call hooks.
10751         (dwarf2out_init): Don't initialize vcall_insn_table,
10752         debug_dcall_section and debug_vcall_section.
10753         (prune_unused_types): Don't mark nodes from dcall_table.
10754         (dwarf2out_finish): Don't output dcall or vcall tables.
10755         * final.c (final_scan_insn): Don't call direct_call or
10756         virtual_call debug hooks.
10757         * debug.h (struct gcc_debug_hooks): Remove direct_call,
10758         virtual_call_token, copy_call_info and virtual_call hooks.
10759         (debug_nothing_uid): Remove prototype.
10760         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10761         copy_call_info and virtual_call hooks.
10762         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10763         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10764         * debug.c (do_nothing_debug_hooks): Likewise.
10765         (debug_nothing_uid): Remove.
10766         * doc/invoke.texi (-fenable-icf-debug): Remove.
10767         * common.opt (-fenable-icf-debug): Likewise.
10768
10769         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10770         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10771         call's MEM.  Handle functions returning aggregate through a hidden
10772         first pointer.  For virtual calls add clobbered pc to call arguments
10773         chain.
10774         * dwarf2out.c (gen_subprogram_die): Emit
10775         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10776         can't be emitted.
10777
10778         PR debug/45882
10779         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10780         * rtl.h (ENTRY_VALUE_EXP): Define.
10781         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10782         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10783         * print-rtl.c (print_rtx): Likewise.
10784         * gengtype.c (adjust_field_rtx_def): Likewise.
10785         * var-tracking.c (vt_add_function_parameter): Adjust
10786         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10787         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10788         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10789         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10790         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10791
10792         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10793         Call var_location debug hook even on CALL_INSNs.
10794         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10795         * rtl.def (ENTRY_VALUE): New.
10796         * dwarf2out.c: Include cfglayout.h.
10797         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10798         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10799         (struct call_arg_loc_node): New type.
10800         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10801         tail_call_site_count): New variables.
10802         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10803         DW_TAG_GNU_call_site_parameter.
10804         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10805         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10806         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10807         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10808         and DW_AT_GNU_all_source_call_sites.
10809         (mem_loc_descriptor): Handle ENTRY_VALUE.
10810         (add_src_coords_attributes): Don't add enything if
10811         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10812         (dwarf2out_abstract_function): Save and clear call_arg_location,
10813         call_site_count and tail_call_site_count around dwarf2out_decl call.
10814         (gen_call_site_die): New function.
10815         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10816         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10817         (dwarf2out_function_decl): Clear call_arg_locations,
10818         call_arg_loc_last, set call_site_count and tail_call_site_count
10819         to -1 and free block_map.
10820         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10821         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
10822         followed by any real instructions.
10823         (dwarf2out_begin_function): Set call_site_count and
10824         tail_call_site_count to 0.
10825         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10826         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10827         attempt to force a DIE for it and worst case remove the attribute.
10828         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10829         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10830         the decl itself.
10831         * var-tracking.c: Include tm_p.h.
10832         (vt_stack_adjustments): For calls call note_register_arguments.
10833         (argument_reg_set): New variable.
10834         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10835         ensure the VALUE is resolved.
10836         (call_arguments): New variable.
10837         (prepare_call_arguments): New function.
10838         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10839         (struct expand_loc_callback_data): Add ignore_cur_loc field.
10840         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10841         always use the best expression.
10842         (vt_expand_loc): Add ignore_cur_loc argument.
10843         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10844         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10845         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10846         note for all calls.
10847         (vt_add_function_parameter): Use cselib_lookup_from_insn.
10848         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10849         argument.  Don't call cselib_preserve_only_values and
10850         cselib_reset_table.
10851         (note_register_arguments): New function.
10852         (vt_initialize): Compute argument_reg_set.  Call
10853         vt_add_function_parameters before processing basic blocks instead of
10854         afterwards.  For calls call prepare_call_arguments before calling
10855         cselib_process_insn.
10856         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10857         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10858         (var-tracking.o): Depend on $(TM_P_H).
10859         * cfglayout.h (insn_scope): New prototype.
10860         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10861         * cfglayout.c (insn_scope): No longer static.
10862         * insn-notes.def (CALL_ARG_LOCATION): New.
10863         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10864         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10865         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10866         nothing for DECL_EXTERNAL BLOCK_VARS.
10867
10868 2011-03-16  Alan Modra  <amodra@gmail.com>
10869
10870         PR target/45844
10871         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10872         create invalid offset address for vsx splat insn.
10873         * config/rs6000/predicates.md (splat_input_operand): New.
10874         * config/rs6000/vsx.md (vsx_splat_*): Use it.
10875
10876 2011-03-15  Xinliang David Li  <davidxl@google.com>
10877
10878         PR c/47837
10879         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10880         (normalize_preds): New function.
10881         (is_use_properly_guarded): Normalize def predicates.
10882
10883 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10884
10885         PR target/46788
10886         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10887         in the output template.
10888
10889 2011-03-15  Richard Guenther  <rguenther@suse.de>
10890
10891         PR middle-end/47650
10892         * tree-pretty-print.c (dump_function_declaration): Properly
10893         dump unprototyped and varargs function types.
10894
10895 2011-03-15  Richard Guenther  <rguenther@suse.de>
10896
10897         PR tree-optimization/13954
10898         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10899         and friends.
10900
10901 2011-03-15  Richard Guenther  <rguenther@suse.de>
10902
10903         PR tree-optimization/48037
10904         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10905         selects into BIT_FIELD_REFs.
10906         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10907         vector select.
10908
10909 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
10910
10911         PR tree-optimization/48129
10912         * builtins.c (fold_builtin_snprintf): Convert to type of
10913         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10914         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10915
10916 2011-03-15  Richard Guenther  <rguenther@suse.de>
10917
10918         PR tree-optimization/41490
10919         * tree-ssa-dce.c (propagate_necessity): Handle returns without
10920         value but with VUSE.
10921         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10922         return statements.
10923         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10924         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10925         * tree-tailcall.c (find_tail_calls): Ignore returns.
10926
10927 2011-03-15  Richard Guenther  <rguenther@suse.de>
10928
10929         PR middle-end/48031
10930         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10931         or variable-indexed array accesses when in gimple form.
10932
10933 2011-03-15  Richard Guenther  <rguenther@suse.de>
10934
10935         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10936
10937 2011-03-15  Alan Modra  <amodra@gmail.com>
10938
10939         PR target/48032
10940         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10941         presume symbol_refs without a symbol_ref_decl are suitably
10942         aligned, nor other trees we may see here.  Handle anchor symbols.
10943         (legitimate_constant_pool_address_p): Comment.  Add mode param.
10944         Check cmodel=medium addresses.  Adjust all calls.
10945         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10946         creating cmodel=medium optimized access to locals.
10947         * config/rs6000/constraints.md (R): Pass QImode to
10948         legitimate_constant_pool_address_p.
10949         * config/rs6000/predicates.md (input_operand): Pass mode to
10950         legitimate_constant_pool_address_p.
10951         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10952         Update prototype.
10953
10954 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
10955
10956         PR target/48053
10957         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10958         64-bit constants being loaded into registers other than GPRs such
10959         as loading 0 into a VSX register.
10960
10961 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10962
10963         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10964
10965 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10966
10967         PR middle-end/47917
10968         * builtins.c (fold_builtin_snprintf): New function.
10969         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10970         (fold_builtin_4): Likewise.
10971
10972         PR middle-end/38878
10973         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10974         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
10975         and C - X == X also strip nops from +/-/p+ operand.
10976         When optimizing -X == C, fold C to arg0's type.
10977
10978         PR debug/47946
10979         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10980         emit it as add_AT_int instead of add_AT_unsigned.
10981
10982 2011-03-14  Tom Tromey  <tromey@redhat.com>
10983
10984         * unwind-dw2.c: Include sys/sdt.h if it exists.
10985         (_Unwind_DebugHook): Use STAP_PROBE2.
10986         * config.in, configure: Rebuild.
10987         * configure.ac: Check for sys/sdt.h.
10988
10989 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
10990
10991         * config/i386/i386.md (ROUND_FLOOR): New constant.
10992         (ROUND_CEIL): Ditto.
10993         (ROUND_TRUNC): Ditto.
10994         (ROUND_MXCSR): Ditto.
10995         (ROUND_NO_EXC): Ditto.
10996         (rint<mode>2): Use new defines instead of numerical constants.
10997         (floor<mode>2): Ditto.
10998         (ceil<mode>2): Ditto.
10999         (btrunc<mode>2): Ditto.
11000         * config/i386/i386-builtin-types.def: Define ROUND function type
11001         aliases.
11002         * config/i386/i386.c (enum ix86_builtins): Add
11003         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
11004         (struct builtin_description): Add
11005         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
11006         (ix86_expand_sse_round): New static function.
11007         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
11008         function types.
11009         (ix86_builtin_vectorized_function): Handle
11010         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11011
11012 2011-03-14  Tom Tromey  <tromey@redhat.com>
11013
11014         * c-parser.c (c_parser_asm_string_literal): Clear
11015         warn_overlength_strings.
11016
11017 2011-03-14  Tom Tromey  <tromey@redhat.com>
11018
11019         * c-parser.c (disable_extension_diagnostics): Save
11020         warn_overlength_strings.
11021         (restore_extension_diagnostics): Restore warn_overlength_strings.
11022
11023 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
11024
11025         * BASE-VER: Change to 4.7.0.
11026
11027 2011-03-14  Richard Guenther  <rguenther@suse.de>
11028
11029         PR middle-end/48098
11030         * tree.c (build_vector_from_val): Adjust assert to requirements
11031         and reality.
11032
11033 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
11034
11035         PR bootstrap/48102
11036         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
11037
11038 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
11039
11040         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
11041         terms of target_flags_explicit. Adjust copyright year.
11042
11043         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
11044         * config/rs6000/t-freebsd: New file. Add override for
11045         LIB2FUNCS_EXTRA.
11046
11047 2011-03-13  Chris Demetriou  <cgd@google.com>
11048
11049         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
11050         (-fno-diagnostics-show-option): this, to reflect current default.
11051         (-Werror=): Update text about -fno-diagnostics-show-option.
11052
11053 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
11054
11055         PR target/48053
11056         * config/rs6000/predicates.md (easy_vector_constant_add_self,
11057         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
11058         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
11059         mode is not V2DImode or V2DFmode.
11060         (vspltis_constant): Do not handle V2DImode and V2DFmode.
11061         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
11062         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
11063         registers to 0.
11064         (movdi_internal64): Likewise.
11065
11066 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
11067
11068         PR tree-optimization/47127
11069         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
11070         parameter.
11071         (set_cloog_options): Same.
11072         (scop_to_clast): Same.
11073         (print_clast_stmt): Do not call cloog_state_malloc and
11074         cloog_state_free.
11075         (print_generated_program): Same.
11076         (gloog): Same.
11077         * graphite-clast-to-gimple.h (cloog_state): Declared.
11078         (scop_to_clast): Adjust declaration.
11079         * graphite.c (cloog_state): Defined here.
11080         (graphite_initialize): Call cloog_state_malloc.
11081         (graphite_finalize): Call cloog_state_free.
11082
11083 2011-03-11  Jason Merrill  <jason@redhat.com>
11084
11085         * attribs.c (lookup_attribute_spec): Take const_tree.
11086         * tree.h: Adjust.
11087
11088 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
11089
11090         * config/sparc/sparc.c (sparc_option_override): Use
11091         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
11092
11093 2011-03-11  Richard Guenther  <rguenther@suse.de>
11094
11095         PR tree-optimization/48067
11096         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
11097         multiplication result will be only used once on the target
11098         stmt.
11099
11100 2011-03-11  Richard Guenther  <rguenther@suse.de>
11101
11102         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
11103
11104 2011-03-11  Richard Guenther  <rguenther@suse.de>
11105
11106         PR lto/48073
11107         * tree.c (find_decls_types_r): Do not walk types only reachable
11108         from IDENTIFIER_NODEs.
11109
11110 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
11111
11112         PR middle-end/48044
11113         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
11114         all vnode->force_output nodes as needed.
11115
11116 2011-03-11  Jason Merrill  <jason@redhat.com>
11117
11118         PR c++/48069
11119         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
11120         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
11121
11122 2011-03-11  Martin Jambor  <mjambor@suse.cz>
11123
11124         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
11125         cgraph_node.
11126
11127 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
11128
11129         PR tree-optimization/48063
11130         * ipa-inline.c (cgraph_decide_inlining): Don't try to
11131         inline functions called once if !tree_can_inline_p (node->callers).
11132
11133 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
11134
11135         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
11136         extra_objs.
11137         * config/score/score3.c: Delete.
11138         * config/score/score3.h: Delete.
11139         * config/score/mul-div.S: Delete.
11140         * config/score/sfp-machine.h: Add new file.
11141         * config/score/constraints.md: Add new file.
11142         * config/score/t-score-softfp: Add new file.
11143         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
11144         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
11145         (score7_extra_constraint): Delete.
11146         (score7_option_override): Remove unused code.
11147         * config/score/score.c: Remove score3 and score5 define and code.
11148         * config/score/score.h: Remove score3 and score5 define and code.
11149         * config/score/score.md: Remove score3 template and unusual insn.
11150         * config/score/score.opt: Remove score3 and score5 options.
11151
11152 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11153
11154         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
11155         when _HPUX_SOURCE is defined.
11156         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
11157
11158 2011-03-10  Jason Merrill  <jason@redhat.com>
11159
11160         PR c++/48029
11161         * stor-layout.c (layout_type): Don't set structural equality
11162         on arrays of incomplete type.
11163         * tree.c (type_hash_eq): Handle comparing them properly.
11164
11165 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
11166
11167         PR debug/48043
11168         * config/s390/s390.c (s390_delegitimize_address): Make sure the
11169         result mode matches original rtl mode.
11170
11171 2011-03-10  Nick Clifton  <nickc@redhat.com>
11172
11173         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
11174         (andsi3, andsi3_flags): Fix timings for three operand alternative.
11175
11176 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
11177
11178         PR rtl-optimization/47866
11179         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
11180         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
11181         if target wasn't scalar.
11182         * function.c (assign_stack_temp_for_type): Assert that neither
11183         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
11184         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
11185         macro.
11186         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
11187
11188 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11189
11190         * config/s390/s390-protos.h (s390_label_align): New prototype.
11191         * config/s390/s390.c (s390_label_align): New function.
11192         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
11193
11194 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
11195
11196         PR target/47755
11197         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
11198         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
11199         (output_vec_const_move): Ditto.
11200
11201 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
11202
11203         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
11204         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
11205         * config/mips/mips.c (mips_preferred_reload_class): Make static.
11206         Change 'rclass' argument and result type to reg_class_t.
11207         (TARGET_PREFERRED_RELOAD_CLASS): Define.
11208
11209 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
11210
11211         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11212         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
11213         (TARGET_MEMORY_MOVE_COST): Define.
11214         (avr_register_move_cost, avr_memory_move_cost): New Functions.
11215
11216 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
11217
11218         PR debug/47881
11219         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
11220         removed anything.
11221
11222         PR tree-optimization/48022
11223         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
11224         for EQ/NE_EXPR.
11225
11226 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
11227
11228         PR debug/47991
11229         * var-tracking.c (find_use_val): Return NULL for
11230         cui->sets && cui->store_p BLKmode MEMs.
11231
11232 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
11233
11234         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
11235         Remove.
11236         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
11237         xstormy16_print_operand_address): Remove.
11238         * config/stormy16/stormy16.c (xstormy16_print_operand,
11239         xstormy16_print_operand_address): Make static.
11240         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11241
11242 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
11243
11244         PR target/47862
11245         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11246         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
11247         before definition.
11248
11249 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
11250
11251         PR bootstrap/48000
11252         * cfgloopmanip.c (fix_bb_placements): Return immediately
11253         if FROM is BASE_LOOP's header.
11254
11255 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
11256
11257         * gimplify.c (gimplify_function_tree): Fix building calls
11258         to __builtin_return_address.
11259
11260 2011-03-07  Alan Modra  <amodra@gmail.com>
11261
11262         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
11263         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
11264         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
11265         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
11266         return_mode args.
11267         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
11268         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
11269         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
11270         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
11271         * config/rs6000/rs6000.c
11272         (rs6000_elf_end_indicate_exec_stack): Rename to..
11273         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
11274         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
11275         (rs6000_file_start): ..here.
11276         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
11277         file scope variables.
11278         (call_ABI_of_interest): New function.
11279         (init_cumulative_args): Set above vars when function return value
11280         is a float, vector, or small struct.
11281         (rs6000_function_arg_advance_1): Likewise for function args.
11282         (rs6000_va_start): Set rs6000_passes_float if variable arg function
11283         references float args.
11284
11285 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
11286
11287         * doc/cfg.texi: Remove "See" before @ref.
11288         * doc/invoke.texi: Likewise.
11289
11290 2011-03-05  Jason Merrill  <jason@redhat.com>
11291
11292         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
11293
11294 2011-03-05  Anthony Green  <green@moxielogic.com>
11295
11296         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
11297
11298 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
11299
11300         PR rtl-optimization/47899
11301         * cfgloopmanip.c (fix_bb_placements): Fix first argument
11302         to flow_loop_nested_p when moving the loop upward.
11303
11304 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
11305
11306         PR target/47719
11307         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
11308
11309 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
11310
11311         PR tree-optimization/47967
11312         * ipa-cp.c (build_const_val): Return NULL instead of creating
11313         VIEW_CONVERT_EXPR for mismatching sizes.
11314         (ipcp_create_replace_map): Return NULL if build_const_val failed.
11315         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
11316         give up on versioning.
11317
11318 2011-03-05  Alan Modra  <amodra@gmail.com>
11319
11320         PR target/47986
11321         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11322         full cmodel medium/large lo_sum + high addresses.
11323
11324 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11325
11326         * config/s390/s390.c (s390_decompose_address): Reject non-literal
11327         pool references in UNSPEC_LTREL_OFFSET.
11328
11329 2011-03-04  Jan Hubicka  <jh@suse.cz>
11330
11331         PR lto/47497
11332         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
11333         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
11334         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
11335         Add node pointers.
11336         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
11337         cgraph_add_thunk): Add node pointers.
11338         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
11339         associated to right node.
11340         (input_node): Update use of cgraph_same_body_alias
11341         and cgraph_add_thunk.
11342
11343 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
11344
11345         * config/i386/i386.opt (mprefer-avx128): New flag.
11346         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
11347         modes when the flag -mprefer-avx128 is on.
11348
11349 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
11350
11351         * dwarf2out.c (compare_loc_operands): Fix address handling.
11352
11353 2011-03-04  Alan Modra  <amodra@gmail.com>
11354
11355         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
11356
11357 2011-03-04  Richard Guenther  <rguenther@suse.de>
11358
11359         PR middle-end/47968
11360         * expmed.c (extract_bit_field_1): Prefer vector modes that
11361         vec_extract patterns can handle.
11362
11363 2011-03-04  Richard Guenther  <rguenther@suse.de>
11364
11365         PR middle-end/47975
11366         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
11367
11368 2011-03-04  Richard Henderson  <rth@redhat.com>
11369
11370         * explow.c (emit_stack_save): Remove 'after' parameter.
11371         (emit_stack_restore): Likewise.
11372         * expr.h: Update to match.
11373         * builtins.c, calls.c, stmt.c: Likewise.
11374         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
11375         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
11376         * function.c (expand_function_end): Insert the emit_stack_save
11377         sequence before parm_birth_insn instead of after.
11378
11379 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
11380
11381         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
11382         (ssse3_pmaddubsw128): Ditto.
11383         (ssse3_pmaddubsw): Ditto.
11384
11385 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
11386
11387         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
11388
11389 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
11390
11391         PR c/47963
11392         * gimplify.c (omp_add_variable): Only call omp_notice_variable
11393         on TYPE_SIZE_UNIT if it is a DECL.
11394
11395         PR debug/47283
11396         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
11397         first operand is not is_gimple_mem_ref_addr, try to fold it.
11398         If the operand still isn't is_gimple_mem_ref_addr, clear
11399         MEM_EXPR on op0.
11400
11401 2011-03-03  Richard Guenther  <rguenther@suse.de>
11402
11403         PR middle-end/47283
11404         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
11405         match comment.
11406         (refs_may_alias_p_1): For release branches return true if
11407         we are confused by our input.
11408
11409 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11410
11411         * config/s390/s390.c (s390_function_value): Rename to ...
11412         (s390_function_and_libcall_value): ... this.
11413         (s390_function_value): New function.
11414         (s390_libcall_value): New function.
11415         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
11416         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
11417         target macro definitions.
11418         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
11419
11420 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
11421
11422         * config/i386/freebsd64.h (CC1_SPEC): Define.
11423         * config/i386/linux64.h (CC1_SPEC): Define.
11424         * config/i386/x86-64.h (CC1_SPEC): Don't define.
11425
11426 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
11427
11428         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11429         Remove.
11430         * config/stormy16/stormy16.c: Include reload.h.
11431         (xstormy16_memory_move_cost): New function.
11432         (TARGET_MEMORY_MOVE_COST): Define.
11433
11434 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
11435
11436         PR rtl-optimization/47925
11437         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
11438         with side effects.  Remove the more-specific check for volatile asms.
11439
11440 2011-03-02  Alan Modra  <amodra@gmail.com>
11441
11442         PR target/47935
11443         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
11444         toc relative addresses for valid offsets.
11445
11446 2011-03-01  Richard Guenther  <rguenther@suse.de>
11447
11448         PR tree-optimization/47890
11449         * tree-vect-loop.c (get_initial_def_for_induction): Set
11450         related stmt properly.
11451
11452 2011-03-01  Richard Guenther  <rguenther@suse.de>
11453
11454         PR lto/47924
11455         * lto-streamer.c (lto_record_common_node): Also register
11456         the canonical type.
11457
11458 2011-03-01  Richard Guenther  <rguenther@suse.de>
11459
11460         PR lto/46911
11461         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11462         Do not stream DECL_ABSTRACT_ORIGIN.
11463         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11464         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11465         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11466         Do not stream DECL_ABSTRACT_ORIGIN.
11467         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11468         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11469
11470 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
11471
11472         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
11473         FUNCTION_VALUE_REGNO_P): Remove.
11474         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
11475         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
11476         Add 'outgoing' argument.
11477         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
11478         function.
11479         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11480         TARGET_FUNCTION_VALUE_REGNO_P): Define.
11481
11482 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
11483
11484         PR debug/28047
11485         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
11486         (lookup_filename): Likewise.
11487         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
11488
11489 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
11490             Jakub Jelinek  <jakub@redhat.com>
11491
11492         PR middle-end/47893
11493         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
11494         (assign_stack_local_1): Change last argument type to int.
11495         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
11496         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
11497         don't record padding space into frame_space_list nor use those areas.
11498         (assign_stack_local): Adjust caller.
11499         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
11500         of assign_stack_local, pass 0 as last argument.
11501         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
11502         callers.
11503
11504 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
11505
11506         PR debug/47283
11507         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
11508         Use target address_mode and pointer_mode hooks instead of hardcoded
11509         Pmode and ptr_mode.  Handle some simple cases of extending if
11510         POINTERS_EXTEND_UNSIGNED < 0.
11511         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
11512         Call convert_debug_memory_address.
11513         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
11514         convert_debug_memory_address.
11515
11516         PR middle-end/46790
11517         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
11518         * configure: Regenerated.
11519         * config.in: Regenerated.
11520         * varasm.c (default_function_section): Return NULL
11521         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
11522
11523 2011-02-28  Martin Jambor  <mjambor@suse.cz>
11524
11525         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11526         the description to match the printed values.
11527
11528 2011-02-28  Richard Guenther  <rguenther@suse.de>
11529
11530         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11531         of the copied scope tree.
11532
11533 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11534
11535         * doc/extend.texi (Function Attributes): Avoid deeply (and
11536         wrongly) nested tables.
11537
11538 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
11539
11540         PR middle-end/47903
11541         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11542         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11543         r isn't op0 nor op1.
11544
11545 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
11546
11547         * config/avr/avr.md: Remove magic comment for emacs.
11548
11549 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
11550
11551         PR target/45261
11552         * config/avr/avr.c (avr_option_override): Use error on bad options.
11553         (avr_help): New function.
11554         (TARGET_HELP): Define.
11555
11556 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
11557
11558         PR target/42240
11559         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11560         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11561
11562 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
11563
11564         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11565         (ARM Options): Ditto.
11566         (i386 and x86-64 Options): Ditto.
11567         (RX Options): Ditto.
11568         (SPARC Options): Ditto.
11569
11570 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
11571
11572         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11573         FreeBSD 6 and later.  Generally use cpu generic.
11574
11575 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
11576
11577         * doc/cpp.texi: Update copyright years.
11578
11579 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11580
11581         PR target/46898
11582         * config/lm32/lm32.md (ashrsi3): Added needed variable.
11583
11584 2011-02-25  Jon Beniston  <jon@beniston.com>
11585
11586         PR target/46898
11587         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11588         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11589         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11590         (lm32_block_move_inline): Add type cast to remove warning.
11591         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
11592         (gen_int_relational): Move declarations to start of function.
11593
11594 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
11595
11596         PR tree-optimization/45470
11597         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11598         can throw internally only.
11599         * tree-vect-stmts.c (vectorizable_call): Likewise.
11600
11601 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
11602
11603         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11604         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11605         * config/stormy16/stormy16-protos.h
11606         (xstormy16_preferred_reload_class): Remove.
11607         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11608         static. Change 'rclass' argument and return type to reg_class_t.
11609         (TARGET_PREFERRED_RELOAD_CLASS,
11610         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11611
11612 2011-02-24  Richard Guenther  <rguenther@suse.de>
11613
11614         * lto-streamer-in.c (input_bb): Do not find referenced vars
11615         in debug statements.
11616
11617 2011-02-23  Jason Merrill  <jason@redhat.com>
11618
11619         * common.opt (fabi-version): Document v5 and v6.
11620
11621 2011-02-23  Richard Guenther  <rguenther@suse.de>
11622
11623         PR tree-optimization/47849
11624         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11625
11626 2011-02-23  Jie Zhang  <jie@codesourcery.com>
11627
11628         * opts-common.c (decode_cmdline_option): Print empty string
11629         argument as "" in decoded->orig_option_with_args_text.
11630         * gcc.c (execute): Print empty string argument as ""
11631         in the verbose output.
11632         (do_spec_1): Keep empty string argument.
11633
11634 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
11635
11636         * config.gcc: Declare score-* and crx-* obsolete.
11637
11638 2011-02-23  Jie Zhang  <jie@codesourcery.com>
11639
11640         PR rtl-optimization/47763
11641         * web.c (web_main): Ignore naked clobber when replacing register.
11642
11643 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
11644
11645         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11646         Remove.
11647
11648 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
11649
11650         PR doc/47848
11651         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11652
11653 2011-02-22  Mike Stump  <mikestump@comcast.net>
11654
11655         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11656         assembler.
11657         * configure: Regenerate.
11658
11659 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
11660
11661         PR rtl-optimization/46002
11662         * ira-color.c (update_copy_costs): Change class intersection
11663         test to reg_class_contents[] test of 'hard_regno'.
11664
11665 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
11666
11667         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11668         than Driver option.
11669         * config/hpux11.opt (mt): Likewise.
11670         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11671         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11672         * config/vax/elf.opt (mno-asm-pic): Likewise.
11673         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11674
11675 2011-02-21  Mike Stump  <mikestump@comcast.net>
11676
11677         PR target/47822
11678         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11679         tree so we can get save the type.
11680         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11681         for CFString instead of trying to use past the end of the builtins.
11682         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11683         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11684         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11685         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11686         Rename to darwin_builtin_cfstring.
11687         (darwin_init_cfstring_builtins): Return the built type.
11688
11689 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
11690
11691         PR target/47840
11692         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11693         (_mm256_insert_epi64): Use _mm_insert_epi64.
11694
11695 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
11696
11697         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11698         * config/stormy16/stormy16-protos.h
11699         (xstormy16_mode_dependent_address_p): Remove.
11700         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11701         Make static. Change return type to bool. Change argument type to
11702         const_rtx. Remove dead code.
11703         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11704
11705 2011-02-21  Richard Guenther  <rguenther@suse.de>
11706
11707         PR lto/47820
11708         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11709         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11710         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11711         TUs context.
11712         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11713         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11714
11715 2011-02-20  Richard Guenther  <rguenther@suse.de>
11716
11717         PR lto/47822
11718         * tree.c (free_lang_data_in_decl): Clean builtins from
11719         the TU decl BLOCK_VARS.
11720
11721 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
11722
11723         PR debug/47620
11724         PR debug/47630
11725         * haifa-sched.c (fix_tick_ready): Skip tick computation
11726         for debug insns.
11727
11728 2011-02-19  Richard Guenther  <rguenther@suse.de>
11729
11730         PR lto/47647
11731         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11732         Remove lazy BLOCK_VARS streaming.
11733         (lto_input_ts_block_tree_pointers): Likewise.
11734         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11735
11736 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11737
11738         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11739
11740 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11741
11742         * config/i386/biarch32.h, config/i386/mach.h,
11743         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11744
11745 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
11746
11747         PR target/47800
11748         * config/i386/i386.md (peephole2 for shift and plus): Use
11749         operands[1] original mode in the first insn.
11750
11751 2011-02-18  Mike Stump  <mikestump@comcast.net>
11752
11753         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
11754
11755 2011-02-18  Jan Hubicka  <jh@suse.cz>
11756
11757         PR middle-end/47788
11758         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11759         to zero when the function is not inlinable at all.
11760
11761 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11762
11763         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11764         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11765         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11766         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11767         * config/pa/t-pa64: Likewise.
11768         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11769
11770 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11771
11772         PR driver/47787
11773         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11774
11775 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11776
11777         PR target/47792
11778         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11779
11780 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
11781
11782         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11783         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11784         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11785         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11786         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11787         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11788         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11789         m32r_load_postinc_p, m32r_store_preinc_predec_p,
11790         m32r_legitimate_address_p): New functions.
11791         * config/m32r/constraints.md (constraint "S"): Don't use
11792         STORE_PREINC_PREDEC_P.
11793         (constraint "U"): Don't use LOAD_POSTINC_P.
11794
11795 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
11796
11797         PR rtl-optimization/46178
11798         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11799         compute ira_hard_regno_cover_class[].
11800
11801 2011-02-18  Richard Guenther  <rguenther@suse.de>
11802
11803         PR lto/47798
11804         * lto-streamer.h (lto_global_var_decls): Declare.
11805         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11806         statics for global var processing.
11807
11808 2011-02-18  Richard Guenther  <rguenther@suse.de>
11809
11810         PR tree-optimization/47737
11811         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11812         edge dominance check.
11813
11814 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11815
11816         PR debug/47780
11817         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11818         avoid invalid rtx sharing.
11819
11820 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
11821
11822         * doc/cpp.texi (Obsolete Features): Add background on the
11823         origin of assertions.
11824
11825 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
11826
11827         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11828         objc_abi == 2.
11829         * config/darwin.c (output_objc_section_asm_op): Added support for
11830         ABI v1 and v2.
11831         (is_objc_metadata): New.
11832         (darwin_objc2_section): New.
11833         (darwin_objc1_section): New.
11834         (machopic_select_section): Added support for ABI v1 and v2.
11835         (darwin_emit_objc_zeroed): New.
11836         (darwin_output_aligned_bss): Detect objc metadata and treat it
11837         appropriately.
11838         (darwin_asm_output_aligned_decl_common): Same.
11839         (darwin_asm_output_aligned_decl_local): Same.
11840         * config/darwin-sections.def: Updated for ABI v1 and v2.
11841         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11842         compiling Objective-C code for the NeXT runtime, default to using
11843         ABI version 0 for 32-bit, and version 2 for 64-bit.
11844
11845 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11846
11847         * common.opt (optimize_fast): New Variable.
11848         * opts.c (default_options_optimization): Use opts->x_optimize_fast
11849         instead of local variable ofast.
11850
11851 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
11852
11853         * doc/invoke.texi (fobjc-abi-version): Documented.
11854         (fobjc-nilcheck): Documented.
11855         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11856         version.
11857
11858 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11859
11860         PR driver/47390
11861         * common.opt (export-dynamic): New Driver option.
11862         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11863
11864 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11865
11866         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11867
11868 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
11869             Jan Hubicka  <jh@suse.cz>
11870
11871         PR debug/47106
11872         PR debug/47402
11873         * cfgexpand.c (account_used_vars_for_block): Remove.
11874         (estimated_stack_frame_size): Use referenced vars.
11875         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11876         that were referenced in the original function.  Test src_fn
11877         rather than cfun.  Drop redundant get_var_ann.
11878         (setup_one_parameter): Drop redundant get_var_ann.
11879         (declare_return_variable): Likewise.
11880         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11881         (copy_arguments_for_versioning): Drop redundant get_var_ann.
11882         * ipa-inline.c (compute_inline_parameters): Do not compute
11883         disregard_inline_limits here.
11884         (compute_inlinable_for_current, pass_inlinable): New.
11885         (pass_inline_parameters): Require PROP_referenced_vars.
11886         * cgraphunit.c (cgraph_process_new_functions): Don't run
11887         compute_inline_parameters explicitly unless function is in SSA form.
11888         (cgraph_analyze_function): Set .disregard_inline_limits.
11889         * tree-sra.c (convert_callers): Compute inliner parameters
11890         only for functions already in SSA form.
11891
11892 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11893
11894         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11895         -mlittle-endian-data.
11896
11897 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11898
11899         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11900         -mno-fpu, not -fpu and -no-fpu.
11901         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11902         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11903
11904 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
11905
11906         PR target/43653
11907         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11908         input reload with PLUS RTX.
11909
11910 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11911
11912         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11913         of InverseVar(MDMX).
11914
11915 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11916
11917         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11918         --m4-340.
11919
11920 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11921
11922         * config/mn10300/mn10300.opt (mno-crt0): New.
11923
11924 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11925
11926         * config/m68k/uclinux.opt (static-libc): New Driver option.
11927
11928 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11929
11930         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11931
11932 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11933
11934         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11935         %{muser-extend-enabled}.
11936
11937 2011-02-16  Richard Guenther  <rguenther@suse.de>
11938
11939         PR tree-optimization/47738
11940         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11941         the TODO from tree_predictive_commoning.
11942
11943 2011-02-15  Jeff Law  <law@redhat.com>
11944
11945         Revert
11946         2011-01-25  Jeff Law  <law@redhat.com>
11947
11948         PR rtl-optimization/37273
11949         * ira-costs.c (scan_one_insn): Detect constants living in memory and
11950         handle them like argument loads from stack slots.  Do not double
11951         count memory for memory constants and argument loads from stack slots.
11952
11953 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
11954
11955         PR middle-end/47725
11956         * combine.c (cant_combine_insn_p): Revert the last change.
11957
11958 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
11959
11960         PR target/47755
11961         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11962         mode for vector constants.  Remove code that checks for TImode.
11963
11964 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11965
11966         PR debug/47106
11967         PR debug/47402
11968         * cgraph.h (compute_inline_parameters): Return void.
11969         * ipa-inline.c (compute_inline_parameters): Adjust.
11970
11971 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11972
11973         PR debug/47106
11974         PR debug/47402
11975         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11976         rather than decl.
11977         * cfgexpand.c (estimated_stack_frame_size): Likewise.
11978         * ipa-inline.c (compute_inline_parameters): Adjust.
11979
11980 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11981
11982         PR debug/47106
11983         PR debug/47402
11984         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11985         Adjust all users.  Pass FN to...
11986         * tree-flow-inline.h (first_referenced_var): ... this.  Add
11987         fn argument.
11988         * ipa-struct-reorg.c: Adjust.
11989         * tree-dfa.c: Adjust.
11990         * tree-into-ssa.c: Adjust.
11991         * tree-sra.c: Adjust.
11992         * tree-ssa-alias.c: Adjust.
11993         * tree-ssa-live.c: Adjust.
11994         * tree-ssa.c: Adjust.
11995         * tree-ssanames.c: Adjust.
11996         * tree-tailcall.c: Adjust.
11997
11998 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11999
12000         PR debug/47106
12001         PR debug/47402
12002         * tree-flow.h (referenced_var_lookup): Add fn parameter.
12003         Adjust all callers.
12004         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
12005         * tree-flow-inline.h: Adjust.
12006         * gimple-pretty-print.c: Adjust.
12007         * tree-into-ssa.c: Adjust.
12008         * tree-ssa.c: Adjust.
12009         * cfgexpand.c: Adjust.
12010
12011 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
12012
12013         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12014         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12015         (EXTRA_CONSTRAINT): Delete.
12016         * config/iq2000/constraints.md: New file.
12017         * config/iq2000/iq2000.md: Include it.
12018         (define_insn ""): Delete.
12019         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12020         unsupported constraint letters from patterns.
12021         (call_value, call_value_internal1): Likewise.
12022         (call_value_multiple_internal1): Likewise.
12023
12024 2011-02-15  Nick Clifton  <nickc@redhat.com>
12025
12026         * config/mn10300/mn10300.c: Include tm-constrs.h.
12027         (struct liw_data): New data structure describing an LIW candidate
12028         instruction.
12029         (extract_bundle): Use struct liw_data.  Allow small integer
12030         operands for some instructions.
12031         (check_liw_constraints): Use struct liw_data.  Remove swapped
12032         parameter.  Add comments describing the checks.  Fix bug when
12033         assigning the source of liw1 to the source of liw2.
12034         (liw_candidate): Delete.  Code moved into extract_bundle.
12035         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
12036         before swapping.
12037         * config/mn10300/predicates.md (liw_operand): New predicate.
12038         Allows registers and small integer constants.
12039         * config/mn10300/constraints.md (O): New constraint.  Accetps
12040         integers in the range -8 to +7 inclusive.
12041         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
12042         for moving a small integer into a register.  Give this alternative
12043         LIW attributes.
12044         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
12045         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
12046         using the J,K,L and M constraints,
12047         (liw): Remove SI mode on second operands to allow for HI and QI
12048         mode values.
12049         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
12050         instruction.
12051
12052 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
12053
12054         PR middle-end/47725
12055         * combine.c (cant_combine_insn_p): Check zero/sign extended
12056         hard registers.
12057
12058 2011-02-15  Richard Guenther  <rguenther@suse.de>
12059
12060         PR tree-optimization/47743
12061         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
12062         for a non-type-compatible VN lookup bail out.
12063
12064 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
12065
12066         * config/fr30/constraints.md: New file.
12067         * config/fr30/fr30.md: Include it.
12068         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
12069         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12070         (EXTRA_CONSTRAINT): Delete.
12071
12072 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
12073
12074         * config/frv/constraints.md: New file.
12075         * config/frv/predicates.md: Include it.
12076         * config/frv/frv.c (reg_class_from_letter): Delete.
12077         (frv_option_override): Don't initialize it.
12078         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
12079         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
12080         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
12081         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12082         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
12083         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12084         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
12085         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
12086         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
12087         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
12088         (REG_CLASS_FROM_CONSTRAINT): Delete.
12089
12090 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
12091
12092         PR middle-end/47581
12093         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
12094         if frame size is 0 in a leaf function.
12095
12096 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12097
12098         PR pch/14940
12099         * config/alpha/host-osf.c: New file.
12100         * config/alpha/x-osf: New file.
12101         * config.host (alpha*-dec-osf*): Use it.
12102
12103 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
12104
12105         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12106         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
12107         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
12108         (rx_mode_dependent_address_p): ...this. Make static. Change argument
12109         type to const_rtx.
12110         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12111
12112 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
12113
12114         * config/stormy16/constraints.md: New file.
12115         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
12116         Use satisfies_constraint_Q and satisfies_constraint_R.
12117         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
12118         Delete.
12119         (xstormy16_legitiamte_address_p): Declare.
12120         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
12121         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12122         (EXTRA_CONSTRAINT): Delete.
12123         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12124         Un-staticize.
12125         (xstormy16_extra_constraint_p): Delete.
12126
12127 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
12128
12129         PR tree-optimization/46494
12130         * loop-unroll.c (split_edge_and_insert): Adjust comment.
12131         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
12132         (pass_rtl_loop_done): Add TODO_verify_flow.
12133         * fwprop.c (pass_rtl_fwprop): Likewise.
12134         * modulo-sched.c (pass_sms): Likewise.
12135         * tree-ssa-dom.c (pass_dominator): Likewise.
12136         * tree-ssa-loop-ch.c (pass_ch): Likewise.
12137         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
12138         (pass_tree_loop_done): Likewise.
12139         * tree-ssa-pre.c (execute_pre): Likewise.
12140         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
12141         * tree-ssa-sink.c (pass_sink_code): Likewise.
12142         * tree-vrp.c (pass_vrp): Likewise.
12143
12144 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
12145
12146         * config/v850/constraints.md: New file.
12147         * config/v850/v850.md: Include it.
12148         * config/v850/predicates.md (reg_or_0_operand): Use
12149         satisfies_constraint_G.
12150         (special_symbolref_operand): Use satisfies_constraint_K.
12151         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
12152         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12153         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
12154         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12155         (EXTRA_CONSTRAINT): Delete.
12156         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
12157         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
12158         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
12159
12160 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
12161
12162         PR target/47696
12163         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
12164         description.
12165
12166 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
12167
12168         * config/mcore/constraints.md: New file.
12169         * config/mcore/mcore.md: Include it.
12170         * config/mcore/mcore.c (reg_class_from_letter): Delete.
12171         * config/mcore/mcore.h (reg_class_from_letter): Delete.
12172         (REG_CLASS_FROM_LETTER): Delete.
12173         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
12174         insn_const_int_ok_for_constraint.
12175         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
12176         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
12177         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12178         (EXTRA_CONSTRAINT): Delete.
12179
12180 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12181
12182         PR ada/41929
12183         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
12184         (IS_SIGHANDLER): Define.
12185         (sparc64_is_sighandler): New function, split off from
12186         sparc64_fallback_frame_state.
12187         (sparc_is_sighandler): New function, split off from
12188         sparc_fallback_frame_state.
12189         (sparc64_fallback_frame_state): Merge with ...
12190         (sparc_fallback_frame_state): ... this into ...
12191         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
12192         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
12193         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
12194         stack instead of hardcoded offsets.
12195
12196 2011-02-14  Andriy Gapon  <avg@freebsd.org>
12197
12198         PR target/45808
12199         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
12200
12201 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12202
12203         * configure: Regenerate.
12204
12205 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
12206
12207         PR driver/45731
12208         * gcc.c (asm_options): Correct spec matching --target-help.
12209
12210 2011-02-12  Martin Jambor  <mjambor@suse.cz>
12211
12212         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
12213         to gimple call error.
12214
12215 2011-02-12  Mike Stump  <mikestump@comcast.net>
12216
12217         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
12218         comments in backslash regions.
12219
12220 2011-02-12  Mike Stump  <mikestump@comcast.net>
12221             Jakub Jelinek  <jakub@redhat.com>
12222             Iain Sandoe  <iains@gcc.gnu.org>
12223
12224         PR target/47324
12225         * dwarf2out.c (output_cfa_loc): When required, apply the
12226         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
12227         (output_loc_sequence): Likewise.
12228         (output_loc_operands_raw): Likewise.
12229         (output_loc_sequence_raw): Likewise.
12230         (output_cfa_loc): Likewise.
12231         (output_loc_list): Suppress register number adjustment when
12232         calling output_loc_sequence()
12233         (output_die): Likewise.
12234
12235 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
12236
12237         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12238         Remove macros.
12239         * config/xtensa/xtensa.c (xtensa_register_move_cost,
12240         xtensa_memory_move_cost): New functions.
12241         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
12242
12243 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
12244
12245         PR lto/47225
12246         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
12247         in the current directory.
12248         * configure: Rebuilt.
12249
12250 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
12251
12252         * config/darwin.c (darwin_override_options): Add a hunk missed
12253         from the commit of r168571.  Trim comment line lengths and
12254         correct indents of the preceding block.
12255
12256 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
12257
12258         * gcc.c (driver_handle_option): Concatenate the argument to -F with
12259         the switch.
12260
12261 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
12262
12263         * common.opt (nostartfiles): New Driver option.
12264
12265 2011-02-11  Xinliang David Li  <davidxl@google.com>
12266
12267         PR tree-optimization/47707
12268         * tree-chrec.c (convert_affine_scev): Keep type precision.
12269
12270 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
12271
12272         PR tree-optimization/47420
12273         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
12274
12275 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
12276
12277         PR rtl-optimization/47614
12278         * rtl.h (check_for_inc_dec): Declare.
12279         * dse.c (check_for_inc_dec): Externalize...
12280         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
12281         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
12282
12283 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
12284
12285         PR driver/47678
12286         * gcc.c (main): Do not compile inputs if there were errors in
12287         option handling.
12288         * opts-common.c (read_cmdline_option): Check for wrong language
12289         after other error checks.
12290
12291 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
12292
12293         * cgraph.c: Fix comment typos.
12294         * cgraph.h: Likewise.
12295         * cgraphunit.c: Likewise.
12296         * ipa-cp.c: Likewise.
12297         * ipa-inline.c: Likewise.
12298         * ipa-prop.c: Likewise.
12299         * ipa-pure-const.c: Likewise.
12300         * ipa-ref.c: Likewise.
12301         * ipa-reference.c: Likewise.
12302
12303 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
12304
12305         PR debug/47684
12306         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
12307
12308 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12309
12310         PR testsuite/47400
12311         * doc/sourcebuild.texi (Require Support): Document
12312         dg-require-ascii-locale.
12313
12314 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
12315
12316         * doc/lto.texi (Write summary): Fix missing parentheses.
12317
12318 2011-02-10  DJ Delorie  <dj@redhat.com>
12319
12320         * config/m32c/m32c.c (m32c_option_override): Disable
12321         -fcombine-stack-adjustments until flag value tracking and compare
12322         optimization can be rewritten.
12323
12324 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
12325
12326         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
12327         PROCESSOR_POWER7.
12328         (PROCESSOR_DEFAULT64): Likewise.
12329
12330 2011-02-10  Richard Henderson  <rth@redhat.com>
12331
12332         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
12333         change from 2011-02-03.
12334         * config/rx/rx.c (flags_from_code): Likewise.
12335         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
12336         is valid, n/pz otherwise.
12337         (rx_select_cc_mode): Return CCmode if Y is not zero.
12338
12339 2011-02-10  Richard Guenther  <rguenther@suse.de>
12340
12341         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
12342
12343 2011-02-10  Richard Guenther  <rguenther@suse.de>
12344
12345         PR tree-optimization/47677
12346         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
12347
12348 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
12349
12350         PR target/47665
12351         * combine.c (make_compound_operation): Only change shifts into
12352         multiplication for SCALAR_INT_MODE_P.
12353
12354 2011-02-10  Jie Zhang  <jie@codesourcery.com>
12355
12356         PR testsuite/47622
12357         Revert
12358         2011-02-05  Jie Zhang  <jie@codesourcery.com>
12359         PR debug/42631
12360         * web.c (entry_register): Don't clobber the number of the
12361         first uninitialized reference in used[].
12362
12363 2011-02-09  Richard Guenther  <rguenther@suse.de>
12364
12365         PR tree-optimization/47664
12366         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
12367         all edges again.
12368
12369 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
12370
12371         PR target/46481
12372         PR target/47032
12373         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
12374         PROCESSOR_POWER7.
12375         (PROCESSOR_DEFAULT64): Same.
12376         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
12377
12378 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12379
12380         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
12381
12382 2011-02-09  Martin Jambor  <mjambor@suse.cz>
12383
12384         PR middle-end/45505
12385         * tree-sra.c (struct access): New flags grp_scalar_read and
12386         grp_scalar_write.  Changed description of assignment read and write
12387         flags.
12388         (dump_access): Dump new flags, reorder all of them.
12389         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
12390         to detect multiple scalar reads.
12391         (analyze_access_subtree): Use the new scalar read write flags instead
12392         of the old flags.  Adjusted comments.
12393
12394 2011-02-08  DJ Delorie  <dj@redhat.com>
12395
12396         PR target/47548
12397         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
12398         patterns.
12399
12400 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12401
12402         * config/m68k/uclinux.opt: New.
12403         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
12404
12405 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12406
12407         * config/cris/elf.opt (sim): New Driver option.
12408
12409 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12410
12411         * config/xtensa/elf.opt: New.
12412         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
12413
12414 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12415
12416         * config/vax/elf.opt: New.
12417         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
12418
12419 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12420
12421         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
12422
12423 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12424
12425         * config/gnu-user.opt: New.
12426         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
12427         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
12428         *-*-uclinux*): Use gnu-user.opt.
12429
12430 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
12431
12432         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
12433         * config/i386/gnu.h (CPP_SPEC): Likewise.
12434
12435 2011-02-08  Ian Lance Taylor  <iant@google.com>
12436
12437         * common.opt (fcx-limited-range): Add SetByCombined flag.
12438         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
12439         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
12440         (fassociative-math, freciprocal-math): Likewise.
12441         (funsafe-math-optimizations): Likewise.
12442         * opth-gen.awk: Handle SetByCombined.
12443         * optc-gen.awk: Likewise.
12444         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
12445         (set_unsafe_math_optimizations_flags): Likewise.
12446         * doc/options.texi (Option properties): Document SetByCombined.
12447
12448 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12449
12450         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
12451         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
12452         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
12453         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
12454         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
12455
12456 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
12457
12458         PR tree-optimization/46834
12459         PR tree-optimization/46994
12460         PR tree-optimization/46995
12461         * graphite-sese-to-poly.c (used_outside_reduction): New.
12462         (detect_commutative_reduction): Call used_outside_reduction.
12463         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
12464         translate_scalar_reduction_to_array only when at least one
12465         loop-phi/close-phi tuple has been detected.
12466
12467 2011-02-08  Richard Guenther  <rguenther@suse.de>
12468
12469         PR middle-end/47639
12470         * tree-vect-generic.c (expand_vector_operations_1): Update
12471         stmts here ...
12472         (expand_vector_operations): ... not here.  Cleanup EH info
12473         and the CFG if required.
12474
12475 2011-02-08  Richard Guenther  <rguenther@suse.de>
12476
12477         PR tree-optimization/47641
12478         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
12479         require type compatibility.
12480
12481 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12482
12483         * gimple-low.c (lower_function_body): Don't remove the location of
12484         the return statement here.
12485         (lower_gimple_return): Do it here instead but only if the return
12486         statement is actually used twice.
12487
12488 2011-02-08  Richard Guenther  <rguenther@suse.de>
12489
12490         PR tree-optimization/47632
12491         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
12492         unused up_to_stmt parameter, return whether cfg-cleanup is
12493         necessary, remove EH info properly.
12494         (forward_propagate_into_gimple_cond): Adjust caller.
12495         (forward_propagate_into_cond): Likewise.
12496         (forward_propagate_comparison): Likewise.
12497         (tree_ssa_forward_propagate_single_use_vars): Make
12498         forward_propagate_comparison case similar to the two others.
12499
12500 2011-02-08  Nick Clifton  <nickc@redhat.com>
12501
12502         * config/mn10300/mn10300.opt (mliw): New command line option.
12503         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
12504         (liw_bundling): New automaton.
12505         (liw): New attribute.
12506         (liw_op): New attribute.
12507         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
12508         (movsi_internal): Add LIW attributes.
12509         (andsi3): Likewise.
12510         (iorsi3): Likewise.
12511         (xorsi3): Likewise.
12512         (addsi3): Separate register and immediate alternatives.
12513         Add LIW attributes.
12514         (subsi3): Likewise.
12515         (cmpsi): Likewise.
12516         (aslsi3): Likewise.
12517         (lshrsi3): Likewise.
12518         (ashrsi3): Likewise.
12519         (liw): New pattern.
12520         * config/mn10300/mn10300.c (liw_op_names): New
12521         (mn10300_print_operand): Handle 'W' operand descriptor.
12522         (extract_bundle): New function.
12523         (check_liw_constraints): New function.
12524         (liw_candidate): New function.
12525         (mn10300_bundle_liw): New function.
12526         (mn10300_reorg): New function.
12527         (TARGET_MACHINE_DEPENDENT_REORG): Define.
12528         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12529         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12530         __LIW__ or __NO_LIW__.
12531         * doc/invoke.texi: Describe the -mliw command line option.
12532
12533 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12534
12535         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12536         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12537         pthread_mutex_unlock): Remove.
12538         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12539         * config/pa/t-pa64: Likewise.
12540         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12541         shared libc if not linking against libpthread.
12542         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12543
12544 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
12545
12546         PR target/47558
12547         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12548         on 10.6 and later to ensure that we always use the unwinder from
12549         the system.  Only add -no_compact_unwind when tarteting darwin
12550         10.6 or later.
12551
12552 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
12553
12554         PR target/46997
12555         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12556         (vec_interleave_lowv2sf): Ditto.
12557         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12558         (vec_extract_oddv2sf): Ditto.
12559
12560 2011-02-07  Mike Stump  <mikestump@comcast.net>
12561
12562         PR target/42333
12563         Add __ieee_divdc3 entry point.
12564         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12565         entry point.
12566         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12567         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12568         * config/darwin.c (darwin_rename_builtins): Add.
12569         * config/darwin-protos.h (darwin_rename_builtins): Add.
12570
12571 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
12572
12573         PR target/47636
12574         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12575         for the condition.
12576
12577 2011-02-07  Mike Stump  <mikestump@comcast.net>
12578
12579         * config/darwin.opt (mmacosx-version-min): Update default OS version.
12580
12581 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
12582
12583         PR target/47534
12584         * config/avr/libgcc.S (exit): Move .endfunc
12585
12586 2011-02-07  Richard Guenther  <rguenther@suse.de>
12587
12588         PR tree-optimization/47615
12589         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12590         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12591         (run_scc_vn): Initialize it.
12592         (visit_reference_op_load): Use it.
12593         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12594
12595 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12596
12597         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12598         DImode trapping arithmetic libfuncs.
12599
12600 2011-02-07  Richard Guenther  <rguenther@suse.de>
12601
12602         PR tree-optimization/47621
12603         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12604         two duplicates ...
12605         (execute_update_addresses_taken): ... here.  Make it more
12606         conservative in what we accept.
12607
12608 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
12609
12610         * config/sparc/freebsd.h (ASM_SPEC): Define.
12611         * config/sparc/vxworks.h (ASM_SPEC): Define.
12612
12613 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
12614
12615         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12616
12617 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
12618
12619         * doc/invoke.texi: Remove reference to compiler internals from
12620         user documentation.
12621
12622         * reg-notes.def: Remove REG_VALUE_PROFILE.
12623         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12624
12625 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
12626
12627         PR middle-end/47610
12628         * varasm.c (default_section_type_flags): If decl is NULL,
12629         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12630
12631 2011-02-05  Jie Zhang  <jie@codesourcery.com>
12632
12633         PR debug/42631
12634         * web.c (entry_register): Don't clobber the number of the
12635         first uninitialized reference in used[].
12636
12637 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
12638
12639         PR tree-optimization/46194
12640         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12641         (build_classic_dist_vector_1): Do not represent classic distance
12642         vectors when the access functions are variating in different loops.
12643
12644 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12645
12646         * config/mips/iris6.opt: New.
12647         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12648
12649 2011-02-04  Richard Henderson  <rth@redhat.com>
12650             Steve Ellcey  <sje@cup.hp.com>
12651
12652         PR target/46997
12653         * config/ia64/predicates.md (mux1_brcst_element): New.
12654         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12655         * config/ia64/ia64.c (ia64_unpack_assemble): New.
12656         (ia64_unpack_sign): New.
12657         (ia64_expand_unpack): Rewrite using new routines.
12658         (ia64_expand_widen_sum): Ditto.
12659         (ia64_expand_dot_prod_v8qi): Ditto.
12660         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12661         routines, add endian check.
12662         (pmpy2_even): Rename from pmpy2_r, add endian check.
12663         (pmpy2_odd): Rename from pmpy2_l, add endian check.
12664         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12665         (vec_widen_smult_hi_v4hi): Ditto.
12666         (vec_widen_umult_lo_v4hi): Ditto.
12667         (vec_widen_umult_hi_v4hi): Ditto.
12668         (mulv2si3): Change endian checks.
12669         (sdot_prodv4hi): Rewrite with new calls.
12670         (udot_prodv4hi): New.
12671         (vec_pack_ssat_v4hi): Add endian check.
12672         (vec_pack_usat_v4hi): Ditto.
12673         (vec_pack_ssat_v2si): Ditto.
12674         (max1_even): Rename from max1_r, add endian check.
12675         (max1_odd): Rename from max1_l, add endian check.
12676         (*mux1_rev): Format change.
12677         (*mux1_mix): Ditto.
12678         (*mux1_shuf): Ditto.
12679         (*mux1_alt): Ditto.
12680         (*mux1_brcst_v8qi): Use new predicate.
12681         (vec_extract_evenv8qi): Remove endian check.
12682         (vec_extract_oddv8qi): Ditto.
12683         (vec_interleave_lowv4hi): Format change.
12684         (vec_interleave_highv4hi): Ditto.
12685         (mix2_even): Rename from mix2_r, add endian check.
12686         (mix2_odd): Rename from mux2_l, add endian check.
12687         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12688         (vec_extract_evenodd_helper): Format change.
12689         (vec_extract_evenv4hi): Remove endian check.
12690         (vec_extract_oddv4hi): Remove endian check.
12691         (vec_interleave_lowv2si): Format change.
12692         (vec_interleave_highv2si): Format change.
12693         (vec_initv2si): Remove endian check.
12694         (vecinit_v2si): Add endian check.
12695         (reduc_splus_v2sf): Add endian check.
12696         (reduc_smax_v2sf): Ditto.
12697         (reduc_smin_v2sf): Ditto.
12698         (vec_initv2sf): Remove endian check.
12699         (fpack): Add endian check.
12700         (fswap): Add endian check.
12701         (vec_interleave_highv2sf): Add endian check.
12702         (vec_interleave_lowv2sf): Add endian check.
12703         (fmix_lr): Add endian check.
12704         (vec_setv2sf): Format change.
12705         (*vec_extractv2sf_0_be): Use shift to extract operand.
12706         (*vec_extractv2sf_1_be): New.
12707         (vec_pack_trunc_v4hi): Add endian check.
12708         (vec_pack_trunc_v2si): Format change.
12709
12710 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
12711
12712         PR inline-asm/23200
12713         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
12714         do bb, locus and block comparison and disallow loads if it is not set.
12715         (stmt_is_replaceable_p): New function.
12716         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12717         callers.
12718         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12719         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12720         SSA_NAME_DEF_STMT.
12721         * tree-flow.h (stmt_is_replaceable_p): New prototype.
12722
12723 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12724
12725         * config/rs6000/xilinx.opt: New.
12726         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12727
12728 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12729
12730         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12731
12732 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
12733
12734         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12735         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12736         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12737         secondary_reload_info, xtensa_secondary_reload): Remove.
12738         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12739         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12740         (xtensa_preferred_reload_class): Make static. Change return and
12741         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12742         Use CONST_DOUBLE_P predicate.
12743         (xtensa_preferred_output_reload_class): New function.
12744         (xtensa_secondary_reload): Make static.
12745
12746 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
12747
12748         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12749         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12750         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12751
12752 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12753
12754         PR middle-end/31490
12755         * output.h (SECTION_RELRO): Define.
12756         (SECTION_MACH_DEP): Adjust.
12757         (get_variable_section): New prototype.
12758         * varpool.c (varpool_finalize_named_section_flags): New function.
12759         (varpool_assemble_pending_decls): Call it.
12760         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12761         * cgraphunit.c (cgraph_output_in_order): Call
12762         varpool_finalize_named_section_flags.
12763         * varasm.c (get_section): Allow section flags conflicts between
12764         relro and read-only sections if the section hasn't been declared yet.
12765         Set SECTION_OVERRIDE after diagnosing section type conflict.
12766         (get_variable_section): No longer static.
12767         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12768         readonly sections that need relocations.
12769         (decl_readonly_section_1): New function.
12770         (decl_readonly_section): Use it.
12771
12772         Revert:
12773         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
12774                     Steve Ellcey  <sje@cup.hp.com>
12775
12776         PR middle-end/31490
12777         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12778         if section attribute used.
12779
12780 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12781
12782         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12783         * config/darwin.c (SECTION_NO_ANCHOR): Define.
12784         (darwin_init_sections): Remove assertion.
12785
12786 2011-02-03  Nick Clifton  <nickc@redhat.com>
12787
12788         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12789         lt and ge.
12790         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12791         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12792         instead of "n" and "pz".
12793         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12794         CC_FLAG_S.
12795
12796 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12797
12798         PR target/47312
12799         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12800         fma, expand FMA_EXPR as fma{,f,l} call.
12801
12802         PR lto/47274
12803         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12804         copy them into a unsigned char variable and pass address of it to
12805         lto_output_data_stream.
12806
12807         PR target/47564
12808         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12809         around backend_init_target and lang_dependent_init_target calls.
12810         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12811         (verify_cgraph_node): Don't call set_cfun here.  Use
12812         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12813         Set error_found for incorrectly represented calls to thunks.
12814
12815 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
12816
12817         PR debug/43092
12818         PR rtl-optimization/43494
12819         * rtl.h (for_each_inc_dec_fn): New type.
12820         (for_each_inc_dec): Declare.
12821         * rtlanal.c (struct for_each_inc_dec_ops): New type.
12822         (for_each_inc_dec_find_inc_dec): New fn.
12823         (for_each_inc_dec_find_mem): New fn.
12824         (for_each_inc_dec): New fn.
12825         * dse.c (struct insn_size): Remove.
12826         (replace_inc_dec, replace_inc_dec_mem): Remove.
12827         (emit_inc_dec_insn_before): New fn.
12828         (check_for_inc_dec): Use it, along with for_each_inc_dec.
12829         (canon_address): Pass mem modes to cselib_lookup.
12830         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
12831         (cselib_lookup_from_insn): Likewise.
12832         (cselib_subst_to_values): Likewise.
12833         * cselib.c (find_slot_memmode): New var.
12834         (cselib_find_slot): New fn.  Use it instead of
12835         htab_find_slot_with_hash everywhere.
12836         (entry_and_rtx_equal_p): Use find_slot_memmode.
12837         (autoinc_split): New fn.
12838         (rtx_equal_for_cselib_p): Rename and implement in terms of...
12839         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
12840         Deal with autoinc.  Special-case recursion into MEMs.
12841         (cselib_hash_rtx): Likewise.
12842         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
12843         address and MEM modes.
12844         (cselib_subst_to_values): Add memmode, pass it on.
12845         Deal with autoinc.
12846         (cselib_lookup): Add memmode argument, pass it on.
12847         (cselib_lookup_from_insn): Add memmode.
12848         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12849         (struct cselib_record_autoinc_data): New.
12850         (cselib_record_autoinc_cb): New fn.
12851         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
12852         mode to cselib_lookup.  Reset autoinced REGs here instead of...
12853         (cselib_process_insn): ... here.
12854         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12855         to cselib_lookup.
12856         (add_uses): Likewise, also to cselib_subst_to_values.
12857         (add_stores): Likewise.
12858         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
12859         cselib_subst_to_values.
12860         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
12861         * gcse.c (do_local_cprop): Adjusted.
12862         * postreload.c (reload_cse_simplify_set): Adjusted.
12863         (reload_cse_simplify_operands): Adjusted.
12864         * sel-sched-dump (debug_mem_addr_value): Pass mode.
12865
12866 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
12867
12868         PR tree-optimization/45122
12869         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12870         unsafe assumptions when there's more than one loop exit.
12871
12872 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12873
12874         PR target/47272
12875         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12876         Document using vector double with the load/store builtins, and
12877         that the load/store builtins always use Altivec instructions.
12878
12879         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12880         to use altivec memory instructions, even on VSX.
12881         (vector_altivec_store_<mode>): Ditto.
12882
12883         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12884         function.
12885
12886         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12887         V2DF, V2DI support to load/store overloaded builtins.
12888
12889         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12890         altivec load/store builtins for V2DF/V2DI types.
12891
12892         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12893         set avoid indexed addresses on power6 if -maltivec.
12894         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12895         vector_altivec_load/vector_altivec_store builtins.
12896         (altivec_expand_st_builtin): Ditto.
12897         (altivec_expand_builtin): Add VSX memory builtins.
12898         (rs6000_init_builtins): Add V2DI types to internal types.
12899         (altivec_init_builtins): Add support for V2DF/V2DI altivec
12900         load/store builtins.
12901         (rs6000_address_for_altivec): Insure memory address is appropriate
12902         for Altivec.
12903
12904         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12905         vec_vsx_ld and vec_vsx_st.
12906         (vsx_store_<mode>): Ditto.
12907
12908         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12909         variables to hold long long types for VSX vector memory builtins.
12910         (RS6000_BTI_unsigned_long_long): Ditto.
12911         (long_long_integer_type_internal_node): Ditti.
12912         (long_long_unsigned_type_internal_node): Ditti.
12913
12914         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12915         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12916         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12917
12918         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12919         short cuts.
12920         (vec_vsx_st): Ditto.
12921
12922 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12923
12924         * config/pa/pa-hpux10.opt: New.
12925         * config/hpux11.opt (pthread): New Driver option.
12926         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12927         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12928
12929 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12930
12931         * config/ia64/vms.opt: New.
12932         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12933
12934 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
12935
12936         PR target/47580
12937         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12938         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12939         generator functions.
12940         (vsx_floatuns<VSi><mode>2): Ditto.
12941         (vsx_fix_trunc<mode><VSi>2): Ditto.
12942         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12943
12944 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12945
12946         * config/i386/djgpp.opt (posix): New Driver option.
12947
12948 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
12949
12950         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12951         Move to the unsupported targets list.
12952
12953 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
12954
12955         PR rtl-optimization/47525
12956         * df-scan.c: Update copyright years.
12957         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12958         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12959
12960 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12961
12962         * config/i386/sysv4.h (TARGET_VERSION): Remove.
12963         (SUBTARGET_RETURN_IN_MEMORY): Remove.
12964         (ASM_OUTPUT_ASCII): Remove.
12965         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12966
12967 2011-02-02  Jeff Law  <law@redhat.com>
12968
12969         PR middle-end/47543
12970         * reload.c (find_reloads_address): Handle reg+d address where both
12971         components are invalid by reloading the entire address.
12972
12973 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
12974             Richard Guenther  <rguenther@suse.de>
12975
12976         PR tree-optimization/40979
12977         PR bootstrap/47044
12978         * passes.c (init_optimization_passes): After LIM call copy_prop
12979         and DCE to clean up.
12980         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12981
12982 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
12983
12984         PR tree-optimization/47576
12985         PR tree-optimization/47555
12986         * doc/invoke.texi (scev-max-expr-complexity): Documented.
12987         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12988         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12989         * tree-scalar-evolution.c (follow_ssa_edge): Use
12990         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12991
12992 2011-02-02  Richard Guenther  <rguenther@suse.de>
12993
12994         PR tree-optimization/47566
12995         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12996
12997 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
12998
12999         PR debug/47106
13000         PR debug/47402
13001         * tree-inline.c (declare_return_variable): Remove unused caller
13002         variable.
13003
13004         PR debug/47106
13005         PR debug/47402
13006         * tree-flow-inline.h (clear_is_used, is_used_p): New.
13007         * cfgexpand.c (account_used_vars_for_block): Use them.
13008         * tree-nrv.c (tree_nrv): Likewise.
13009         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13010         (dump_scope_block): Likewise.
13011         (remove_unused_locals): Likewise.
13012
13013         PR debug/47106
13014         PR debug/47402
13015         * tree-inline.c (declare_return_variable): Add result decl to
13016         local decls only once.
13017         * gimple-low.c (record_vars_into): Mark newly-created variables
13018         as referenced.
13019
13020 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
13021
13022         PR debug/47498
13023         PR debug/47501
13024         PR debug/45136
13025         PR debug/45130
13026         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13027         debug insns.
13028         (no_real_insns_p, schedule_block, set_priorities): Drop special
13029         treatment of boundary debug insns.
13030         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13031         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
13032         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13033         (BOUNDARY_DEBUG_INSN_P): Likewise.
13034         (SCHEDULE_DEBUG_INSN_P): Likewise.
13035         * sched-rgn.c (init_ready_list): Drop special treatment of
13036         boundary debug insns.
13037         * final.c (rest_of_clean_state): Clear notes' BB.
13038
13039 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13040
13041         * config/openbsd.opt (assert=): New Driver option.
13042
13043 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13044
13045         * config/i386/nto.opt: New.
13046         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
13047
13048 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13049
13050         * config/i386/netware.opt: New.
13051         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
13052
13053 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13054
13055         * config/interix.opt (posix): New Driver option.
13056
13057 2011-02-01  DJ Delorie  <dj@redhat.com>
13058
13059         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
13060
13061         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
13062         class for A0/A1.
13063
13064 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
13065
13066         PR tree-optimization/47561
13067         * toplev.c (process_options): Print the Graphite flags.  Add
13068         flag_loop_flatten to the list of options requiring Graphite.
13069
13070 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13071
13072         * config/i386/cygming.opt (posix): New Driver option.
13073
13074 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13075
13076         * config/arm/vxworks.opt: New.
13077         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
13078
13079 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13080
13081         * config/alpha/elf.opt: New.
13082         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
13083         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
13084
13085 2011-02-01  Richard Guenther  <rguenther@suse.de>
13086
13087         PR tree-optimization/47559
13088         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
13089         store-motion on references that can throw.
13090
13091 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
13092
13093         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
13094         * tree-pass.h (TDF_CSELIB): New macro.
13095         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
13096         cselib_lookup): Check for it rather than for TDF_DETAILS.
13097
13098 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
13099
13100         PR driver/47547
13101         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
13102         is HOST_BIT_BUCKET.
13103
13104         * opts.c (finish_options): Don't add x_aux_base_name if it is
13105         HOST_BIT_BUCKET.
13106
13107 2011-02-01  Richard Guenther  <rguenther@suse.de>
13108
13109         PR tree-optimization/47555
13110         Revert
13111         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
13112
13113         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13114
13115 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
13116
13117         PR gcc/46692
13118         * config/lm32/t-lm32: Add multilib for all CPU options.
13119
13120 2011-02-01  Richard Guenther  <rguenther@suse.de>
13121
13122         PR tree-optimization/47541
13123         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13124         sure to have a field at offset zero.
13125
13126 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
13127
13128         * config/arc/arc.opt (EB, EL): New Driver options.
13129
13130 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
13131
13132         * config/alpha/osf5.opt: New.
13133         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
13134
13135 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
13136
13137         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
13138
13139 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
13140
13141         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
13142         -floop-interchange.
13143         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
13144         is an alias of -floop-interchange and that it requires the
13145         Graphite infrastructure.
13146         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
13147         flag_loop_interchange based on the value of flag_tree_loop_linear.
13148
13149 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
13150             Richard Guenther  <rguenther@suse.de>
13151
13152         PR tree-optimization/47538
13153         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
13154         type instead of r1type, except for comparisons.  For right
13155         shifts and comparisons punt if there are mismatches in
13156         sizetype vs. non-sizetype types.
13157
13158 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13159
13160         * doc/sourcebuild.texi (Effective-Target Keywords): Document
13161         avx_runtime.
13162
13163 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13164
13165         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
13166         version number.
13167         * configure: Regenerate.
13168
13169 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13170
13171         * configure.ac (gcc_cv_ld_static_option): Define.
13172         (gcc_cv_ld_dynamic_option): Define.
13173         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
13174         instead.
13175         (HAVE_LD_STATIC_DYNAMIC): Update message.
13176         (LD_STATIC_OPTION): Define.
13177         (LD_DYNAMIC_OPTION): Define.
13178         * configure: Regenerate.
13179         * config.in: Regenerate.
13180         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
13181         HAVE_LD_STATIC_DYNAMIC]: Use them.
13182
13183 2011-01-31  Nick Clifton  <nickc@redhat.com>
13184
13185         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
13186         registers inside interrupt handlers if the handler is not a leaf
13187         function.
13188
13189 2011-01-31  Nick Clifton  <nickc@redhat.com>
13190
13191         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
13192         reg_renumber returning an INVALID_REGNUM.
13193
13194 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
13195
13196         PR libgcj/44341
13197         * doc/install.texi: Document host options discarded when cross
13198         configuring target libraries.
13199
13200 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
13201
13202         Reverted:
13203         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
13204         PR debug/45136
13205         PR debug/45130
13206         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13207         debug insns.
13208         (no_real_insns_p, schedule_block, set_priorities): Drop special
13209         treatment of boundary debug insns.
13210         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13211         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13212         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13213         (BOUNDARY_DEBUG_INSN_P): Likewise.
13214         (SCHEDULE_DEBUG_INSN_P): Likewise.
13215         * sched-rgn.c (init_ready_list): Drop special treatment of
13216         boundary debug insns.
13217         * final.c (rest_of_clean-state): Clear notes' BB.
13218
13219 2011-01-31  Alan Modra  <amodra@gmail.com>
13220
13221         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
13222         toc relative expressions as we do in print_operand_address.
13223
13224 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
13225
13226         * doc/extend.texi: Follow spelling conventions.
13227         * doc/invoke.texi: Fix a typo.
13228
13229 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
13230
13231         * config/hpux11.opt: New.
13232         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
13233         ia64*-*-hpux*): Use hpux11.opt.
13234
13235 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
13236
13237         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
13238         to tmake_file.
13239
13240 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
13241
13242         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
13243         support sites.
13244
13245 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
13246
13247         * doc/install.texi (Binaries): Remove outdated reference for
13248         Motorola 68HC11/68HC12 downloads.
13249
13250 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
13251
13252         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
13253         Drepper's paper.
13254
13255 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
13256
13257         PR bootstrap/47147
13258         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
13259         used by NetBSD.
13260
13261 2011-01-28  Ahmad Sharif  <asharif@google.com>
13262
13263         * value-prof.c (check_counter): Corrected error message.
13264
13265 2011-01-29  Jie Zhang  <jie@codesourcery.com>
13266
13267         * config/arm/arm.c (arm_legitimize_reload_address): New.
13268         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13269         arm_legitimize_reload_address.
13270         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
13271
13272 2011-01-28  Ian Lance Taylor  <iant@google.com>
13273
13274         * godump.c (go_define): Ignore macros whose definitions include
13275         two adjacent operands.
13276
13277 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
13278
13279         PR target/42894
13280         * varasm.c (force_const_mem): Store copy of x in desc->constant
13281         instead of x itself.
13282         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
13283         itself into REG_EQUAL note.
13284
13285 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
13286
13287         * config/freebsd.opt (posix, rdynamic): New Driver options.
13288
13289 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13290
13291         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
13292         -Bstatic/-Bdynamic.
13293         * configure: Regenerate.
13294
13295 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
13296
13297         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
13298         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
13299
13300 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
13301
13302         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
13303         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
13304         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13305         (s390_preferred_reload_class): Make static. Change return and
13306         'rclass' argument type to reg_class_t.
13307
13308 2011-01-27  Jan Hubicka  <jh@suse.cz>
13309
13310         PR middle-end/46949
13311         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
13312         (process_function_and_variable_attributes): Check defined weakrefs.
13313
13314 2011-01-27  Martin Jambor  <mjambor@suse.cz>
13315
13316         PR tree-optimization/47228
13317         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
13318         build_ref_for_offset.
13319
13320 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13321
13322         * config/spu/spu-elf.h (ASM_SPEC): Remove.
13323
13324 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
13325
13326         PR rtl-optimization/46856
13327         * postreload.c (reload_combine_recognize_const_pattern): Do not
13328         separate cc0 setter and user on cc0 targets.
13329
13330 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
13331
13332         PR c/43082
13333         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
13334         passed a VOID_TYPE expression, immediately emit an error and
13335         return error_mark_node.
13336
13337 2011-01-26  Jeff Law  <law@redhat.com>
13338
13339         PR rtl-optimization/47464
13340         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
13341         rather than may_trap_p as needed.
13342
13343 2011-01-26  DJ Delorie  <dj@redhat.com>
13344
13345         PR rtl-optimization/46878
13346         * combine.c (insn_a_feeds_b): Check for the implicit cc0
13347         setter/user dependency as well.
13348
13349 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
13350
13351         PR rtl-optimization/44469
13352         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
13353         after removing trivially dead basic blocks.
13354
13355 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13356
13357         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
13358         * config/frv/frv.h (LINK_SPEC): Likewise.
13359         * config/i386/netware.h (LINK_SPEC): Likewise.
13360         * config/m68k/linux.h (ASM_SPEC): Likewise.
13361         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
13362         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13363         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13364         * config/sparc/linux.h (ASM_SPEC): Likewise.
13365         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13366         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13367
13368 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13369
13370         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
13371         * config/frv/frv.h (ASM_SPEC): Likewise.
13372         * config/m68k/linux.h (ASM_SPEC): Likewise.
13373         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13374         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
13375         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13376         * config/sparc/linux.h (ASM_SPEC): Likewise.
13377         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13378         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13379
13380 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13381
13382         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
13383         * config/frv/frv.h (LINK_SPEC): Likewise.
13384         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13385
13386 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13387
13388         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
13389         * config/frv/frv.h (ASM_SPEC): Likewise.
13390         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
13391         * config/m68k/linux.h (ASM_SPEC): Likewise.
13392         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13393         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13394         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13395         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
13396         * config/sparc/linux.h (ASM_SPEC): Likewise.
13397         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13398         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13399         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
13400
13401 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
13402
13403         PR target/46997
13404         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
13405         (*mux2): Ditto.
13406         (vec_extract_evenodd_help): Ditto.
13407         (vec_extract_evenv4hi): Ditto.
13408         (vec_extract_oddv4hi): Ditto.
13409         (vec_interleave_lowv2si): Ditto.
13410         (vec_interleave_highv2si): Ditto.
13411         (vec_extract_evenv2si): Ditto.
13412         (vec_extract_oddv2si: Ditto.
13413         (vec_pack_trunc_v2si): Ditto.
13414
13415 2011-01-22  Jan Hubicka  <jh@suse.cz>
13416
13417         PR target/47237
13418         * cgraph.h (cgraph_local_info): New field can_change_signature.
13419         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
13420         signature can change.
13421         (ipcp_estimate_growth): Call sequence simplify only if calle signature
13422         can change.
13423         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
13424         (cgraph_function_versioning): We can not change signature of functions
13425         that don't allow that.
13426         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
13427         (lto_input_node): Likewise.
13428         * ipa-inline.c (compute_inline_parameters): Compute
13429         local.can_change_signature.
13430         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
13431         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
13432         functions that can not change signature.
13433         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
13434         init_cumulative_args): Do not use local calling conventions
13435         for functions that can not change signature.
13436
13437 2011-01-22  Jan Hubicka  <jh@suse.cz>
13438
13439         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
13440
13441 2011-01-26  Richard Guenther  <rguenther@suse.de>
13442
13443         PR tree-optimization/47190
13444         * cgraphunit.c (process_common_attributes): New function.
13445         (process_function_and_variable_attributes): Use it.
13446
13447 2011-01-26  Richard Guenther  <rguenther@suse.de>
13448
13449         PR lto/47423
13450         * cgraphbuild.c (record_eh_tables): Record reference to personality
13451         function.
13452
13453 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
13454
13455         PR debug/45454
13456         * sel-sched.c (moveup_expr): Don't let debug insns prevent
13457         non-debug insns from moving up.
13458
13459 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
13460
13461         PR target/40125
13462         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
13463         t-dlldir{,-x} fragment for build and add it to tmake_file.
13464         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
13465         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
13466         * config/i386/t-dlldir: New file.
13467         (SHLIB_DLLDIR): Define.
13468         * config/i386/t-dlldir-x: New file.
13469         (SHLIB_DLLDIR): Define.
13470         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
13471         (SHLIB_INSTALL): Use it.
13472
13473 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
13474
13475         PR target/47246
13476         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
13477         lower bound of the allowed Thumb-2 coprocessor load/store
13478         index range to -256. Add explaining comment.
13479
13480 2011-01-25  Ian Lance Taylor  <iant@google.com>
13481
13482         * godump.c (go_define): Improve lexing of macro expansion to only
13483         accept expressions which match Go spec.
13484
13485 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
13486
13487         PR c++/43601
13488         * tree.c (handle_dll_attribute): Handle it.
13489         * doc/extend.texi (@item dllexport): Mention it.
13490         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
13491
13492 2011-01-25  Ian Lance Taylor  <iant@google.com>
13493
13494         PR tree-optimization/26854
13495         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
13496         (decl_jump_unsafe): Move higher in file, with no other change.
13497         (bind): Set has_jump_unsafe_decl if appropriate.
13498         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
13499         (check_earlier_gotos): Likewise.
13500         (c_check_switch_jump_warnings): Likewise.
13501
13502 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
13503
13504         * doc/invoke.texi (Warning Options): Add missing hyphen.
13505         (-fprofile-dir): Minor grammatical fixes.
13506         (-fbranch-probabilities): Likewise.
13507
13508 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
13509
13510         PR debug/45136
13511         PR debug/45130
13512         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13513         debug insns.
13514         (no_real_insns_p, schedule_block, set_priorities): Drop special
13515         treatment of boundary debug insns.
13516         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13517         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13518         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13519         (BOUNDARY_DEBUG_INSN_P): Likewise.
13520         (SCHEDULE_DEBUG_INSN_P): Likewise.
13521         * sched-rgn.c (init_ready_list): Drop special treatment of
13522         boundary debug insns.
13523         * final.c (rest_of_clean-state): Clear notes' BB.
13524
13525 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13526
13527         * Makefile.in (LAMBDA_H): Removed.
13528         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13529         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13530         lambda-trans.o, and tree-loop-linear.o.
13531         (lto-symtab.o): Remove dependence on LAMBDA_H.
13532         (tree-loop-linear.o): Remove rule.
13533         (lambda-mat.o): Same.
13534         (lambda-trans.o): Same.
13535         (lambda-code.o): Same.
13536         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13537         (tree-vect-slp.o): Same.
13538         * hwint.h (gcd): Moved here.
13539         (least_common_multiple): Same.
13540         * lambda-code.c: Removed.
13541         * lambda-mat.c: Removed.
13542         * lambda-trans.c: Removed.
13543         * lambda.h: Removed.
13544         * tree-loop-linear.c: Removed.
13545         * lto-symtab.c: Do not include lambda.h.
13546         * omega.c (gcd): Removed.
13547         * passes.c (init_optimization_passes): Remove pass_linear_transform.
13548         * tree-data-ref.c (print_lambda_vector): Moved here.
13549         (lambda_vector_copy): Same.
13550         (lambda_matrix_copy): Same.
13551         (lambda_matrix_id): Same.
13552         (lambda_vector_first_nz): Same.
13553         (lambda_matrix_row_add): Same.
13554         (lambda_matrix_row_exchange): Same.
13555         (lambda_vector_mult_const): Same.
13556         (lambda_vector_negate): Same.
13557         (lambda_matrix_row_negate): Same.
13558         (lambda_vector_equal): Same.
13559         (lambda_matrix_right_hermite): Same.
13560         * tree-data-ref.h: Do not include lambda.h.
13561         (lambda_vector): Moved here.
13562         (lambda_matrix): Same.
13563         (dependence_level): Same.
13564         (lambda_transform_legal_p): Removed declaration.
13565         (lambda_collect_parameters): Same.
13566         (lambda_compute_access_matrices): Same.
13567         (lambda_vector_gcd): Same.
13568         (lambda_vector_new): Same.
13569         (lambda_vector_clear): Same.
13570         (lambda_vector_lexico_pos): Same.
13571         (lambda_vector_zerop): Same.
13572         (lambda_matrix_new): Same.
13573         * tree-flow.h (least_common_multiple): Removed declaration.
13574         * tree-parloops.c (lambda_trans_matrix): Moved here.
13575         (LTM_MATRIX): Same.
13576         (LTM_ROWSIZE): Same.
13577         (LTM_COLSIZE): Same.
13578         (LTM_DENOMINATOR): Same.
13579         (lambda_trans_matrix_new): Same.
13580         (lambda_matrix_vector_mult): Same.
13581         (lambda_transform_legal_p): Same.
13582         * tree-pass.h (pass_linear_transform): Removed declaration.
13583         * tree-ssa-loop.c (tree_linear_transform): Removed.
13584         (gate_tree_linear_transform): Removed.
13585         (pass_linear_transform): Removed.
13586         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13587         flag_loop_interchange.
13588
13589 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13590
13591         PR tree-optimization/47265
13592         PR tree-optimization/47443
13593         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13594         if name still has some uses.
13595
13596 2011-01-25  Martin Jambor  <mjambor@suse.cz>
13597
13598         PR tree-optimization/47382
13599         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13600         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13601
13602 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
13603
13604         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13605         sjlj_except_unwind_info.
13606
13607 2011-01-25  Richard Guenther  <rguenther@suse.de>
13608
13609         PR tree-optimization/47426
13610         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13611         visible functions results escape.
13612
13613 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13614
13615         PR target/45701
13616         * config/arm/arm.c (any_sibcall_uses_r3): New function.
13617         (arm_get_frame_offsets): Use it.
13618
13619 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13620             Jakub Jelinek  <jakub@redhat.com>
13621
13622         PR tree-optimization/47271
13623         * tree-if-conv.c (bb_postdominates_preds): New.
13624         (if_convertible_bb_p): Call bb_postdominates_preds.
13625         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13626         (predicate_scalar_phi): Call bb_postdominates_preds.
13627
13628 2011-01-25  Nick Clifton  <nickc@redhat.com>
13629
13630         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13631         * config/rx/rx.c (rx_function_value): Likewise.
13632         (rx_promote_function_mode): Likewise.
13633         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13634         in order to make it legitimate.
13635         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13636         make sure that the first operand is the same as the result register.
13637         (addsi3_unspec): Delete.
13638         (subdi3): Do not accept immediate operands.
13639         (subdi3_internal): Likewise.
13640
13641 2011-01-25  Jeff Law  <law@redhat.com>
13642
13643         PR rtl-optimization/37273
13644         * ira-costs.c (scan_one_insn): Detect constants living in memory and
13645         handle them like argument loads from stack slots.  Do not double
13646         count memory for memory constants and argument loads from stack slots.
13647
13648 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13649
13650         PR tree-optimization/47427
13651         PR tree-optimization/47428
13652         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13653         coalesce if the new root var would be TREE_READONLY.
13654
13655 2011-01-25  Richard Guenther  <rguenther@suse.de>
13656
13657         PR middle-end/47414
13658         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13659         correct type for TBAA.
13660
13661 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13662
13663         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13664         (close_phi_written_to_memory): Call for_each_index with
13665         dr_indices_valid_in_loop.
13666
13667 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13668
13669         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13670         when it is initialized.
13671
13672 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13673
13674         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13675         call to graphite_find_data_references_in_stmt.
13676         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13677         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
13678         call to graphite_find_data_references_in_stmt.
13679         (analyze_drs_in_stmts): Same.
13680         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13681         in which the scalar analysis of indices is performed.
13682         (create_data_ref): Same.  Update call to dr_analyze_indices.
13683         (find_data_references_in_stmt): Update call to create_data_ref.
13684         (graphite_find_data_references_in_stmt): Same.
13685         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13686         declaration.
13687         (create_data_ref): Same.
13688         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13689         call to create_data_ref.
13690
13691 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13692
13693         * graphite-sese-to-poly.c (build_poly_scop): Move
13694         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13695
13696 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13697
13698         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13699         VAR_DECL, PARM_DECL, and RESULT_DECL.
13700
13701 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13702
13703         * graphite-dependences.c (reduction_dr_1): Allow several reductions
13704         in a reduction PBB.
13705         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13706         that have already been marked as PBB_IS_REDUCTION.
13707
13708 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13709
13710         * graphite-scop-detection.c (same_close_phi_node): New.
13711         (remove_duplicate_close_phi): New.
13712         (make_close_phi_nodes_unique): New.
13713         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13714
13715 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13716
13717         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13718         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13719         of both data references to be the same.
13720
13721 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13722
13723         * graphite-dependences.c (build_lexicographical_constraint): Remove
13724         the gdim parameter.
13725         (build_lexicographical_constraint): Adjust call to
13726         ppl_powerset_is_empty.
13727         (dependence_polyhedron): Same.
13728         (graphite_legal_transform_dr): Same.
13729         (graphite_carried_dependence_level_k): Same.
13730         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13731         parameter.
13732         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13733
13734 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13735
13736         * graphite-sese-to-poly.c
13737         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13738         (close_phi_written_to_memory): New.
13739         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13740         and unshare_expr.
13741
13742 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13743
13744         * doc/install.texi: Update the expected version number of PPL to 0.11.
13745         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13746         #if PPL_VERSION_MINOR < 11.
13747
13748 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13749
13750         * graphite-dependences.c: Include graphite-cloog-util.h.
13751         (new_poly_ddr): Inlined into dependence_polyhedron.
13752         (free_poly_ddr): Moved close by new_poly_ddr.
13753         (dependence_polyhedron_1): Renamed dependence_polyhedron.
13754         Early return NULL when ppl_powerset_is_empty returns true.
13755         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
13756         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
13757         (graphite_legal_transform_dr): Call new_poly_ddr.
13758         (graphite_carried_dependence_level_k): Same.
13759         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
13760         (dot_transformed_deps_stmt_1): Removed.
13761         (dot_deps_stmt_1): Call dot_deps_stmt_2.
13762         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
13763         (dot_deps_1): Call dot_deps_2.
13764         * Makefile.in (graphite-dependences.o): Add missing dependence on
13765         graphite-cloog-util.h.
13766
13767 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13768
13769         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13770         (build_lexicographical_constraint): Same.
13771         (dependence_polyhedron_1): Same.
13772         (graphite_legal_transform_dr): Same.
13773         (graphite_carried_dependence_level_k): Same.
13774         * graphite-ppl.c (ppl_powerset_is_empty): New.
13775         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13776         * tree-data-ref.c (dump_data_reference): Print the basic block index.
13777
13778 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13779
13780         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13781         the "a followed by b" relation and document it.
13782
13783 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13784
13785         * graphite-dependences.c (build_lexicographical_constraint): Stop the
13786         iteration when the bag of constraints is empty.
13787
13788 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13789
13790         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13791
13792 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13793
13794         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13795         nest and two loop depths as parameters.
13796         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13797         lst_perfect_nestify.
13798
13799 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13800
13801         * graphite-dependences.c (print_pddr): Call
13802         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13803
13804 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13805
13806         * graphite-ppl.c (debug_gmp_value): New.
13807         * graphite-ppl.h (debug_gmp_value): Declared.
13808
13809 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
13810
13811         * doc/install.texi: Document availability of cloog-0.16.
13812
13813 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
13814
13815         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13816         invalid postdominance info.
13817
13818 2011-01-24  Jan Hubicka  <jh@suse.cz>
13819
13820         PR c/21659
13821         * doc/extend.texi (weak pragma): Drop claim that it must
13822         appear before definition.
13823         * varasm.c (merge_weak, declare_weak): Only sanity check
13824         that DECL is not output at a time it is declared weak.
13825
13826 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
13827
13828         * machmode.def: Fixed comments.
13829
13830 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
13831
13832         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13833
13834 2011-01-24  Paul Koning  <ni1d@arrl.net>
13835
13836         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13837         WORDS_BIG_ENDIAN.
13838
13839 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
13840
13841         PR target/46519
13842         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13843         (block_info): Add scanned and prev.
13844         (move_or_delete_vzeroupper_2): Return if the basic block
13845         has been scanned and the upper 128bit state is unchanged
13846         from the last scan.
13847         (move_or_delete_vzeroupper_1): Return true if the exit
13848         state is changed.
13849         (move_or_delete_vzeroupper): Visit basic blocks using the
13850         work-list based algorithm based on vt_find_locations in
13851         var-tracking.c.
13852
13853         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13854
13855 2011-01-24  Nick Clifton  <nickc@redhat.com>
13856
13857         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13858         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13859         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
13860         then define __v850e1__.
13861         * doc/invoke.texi: Document -mv850es.
13862
13863 2011-01-24  Richard Henderson  <rth@redhat.com>
13864
13865         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13866         compound unordered comparisons.
13867         * config/rx/rx.c (rx_split_fp_compare): Remove.
13868         * config/rx/rx-protos.h: Update.
13869         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13870         (cbranchsf4): Don't call rx_split_fp_compare.
13871         (*cbranchsf4): Use rx_split_cbranch.
13872         (*cmpsf): Don't accept "i" constraint.
13873         (*conditional_branch): Only valid after reload.
13874         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
13875
13876 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
13877
13878         PR target/47385
13879         * config/rs6000/altivec.md (vector constant splitters): Add
13880         support for creating vector single precision constants if -mvsx is
13881         used and we would create the constant using Altivec primitives.
13882
13883 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
13884             Richard Sandiford  <rdsandiford@googlemail.com>
13885
13886         PR rtl-optimization/47166
13887         * reload1.c (emit_reload_insns): Disable the spill_reg_store
13888         mechanism for PRE_MODIFY and POST_MODIFY.
13889         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13890         reloadreg.
13891
13892 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
13893
13894         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13895
13896 2011-01-22  Jan Hubicka  <jh@suse.cz>
13897
13898         PR lto/47333
13899         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13900
13901 2011-01-22  Jan Hubicka  <jh@suse.cz>
13902
13903         PR tree-optimization/43884
13904         PR lto/44334
13905         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13906         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13907
13908 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
13909
13910         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13911         * config/s390/s390.c (s390_register_move_cost,
13912         s390_memory_move_cost): New.
13913         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13914
13915 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13916
13917         PR middle-end/47401
13918         * except.c (sjlj_assign_call_site_values): Move setting the
13919         crtl->uses_eh_lsda flag to ...
13920         (sjlj_mark_call_sites): ... here.
13921         (sjlj_emit_function_enter): Support NULL dispatch label.
13922         (sjlj_build_landing_pads): In a function with no landing pads
13923         that still has must-not-throw regions, generate code to register
13924         a personality function with empty LSDA.
13925
13926 2011-01-21  Richard Henderson  <rth@redhat.com>
13927
13928         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13929
13930         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13931
13932         * compare-elim.c: New file.
13933         * Makefile.in (OBJS-common): Add it.
13934         (compare-elim.o): New.
13935         * common.opt (fcompare-elim): New.
13936         * opts.c (default_options_table): Add OPT_fcompare_elim.
13937         * tree-pass.h (pass_compare_elim_after_reload): New.
13938         * passes.c (init_optimization_passes): Add it.
13939         * recog.h: Protect against re-inclusion.
13940         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13941         * doc/invoke.texi (-fcompare-elim): Document it.
13942         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13943         * doc/tm.texi: Rebuild.
13944
13945 2011-01-22  Nick Clifton  <nickc@redhat.com>
13946
13947         * config/rx/rx.md (cstoresf4): Pass comparison operator to
13948         rx_split_fp_compare.
13949
13950 2011-01-22  Nick Clifton  <nickc@redhat.com>
13951
13952         * config/rx/rx.md (UNSPEC_CONST): New.
13953         (deallocate_and_return): Wrap the amount popped off the stack in
13954         an UNSPEC_CONST in order to stop it being rejected by
13955         -mmax-constant-size.
13956         (pop_and_return): Add a "(return)" rtx.
13957         (call): Drop the immediate operand.
13958         (call_internal): Likewise.
13959         (call_value): Likewise.
13960         (call_value_internal): Likewise.
13961         (sibcall_internal): Likewise.
13962         (sibcall_value_internal): Likewise.
13963         (sibcall): Likewise.  Generate an explicit call using
13964         sibcall_internal.
13965         (sibcall_value): Likewise.
13966         (mov<>): FAIL if a constant operand is not legitimate.
13967         (addsi3_unpsec): New pattern.
13968
13969         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13970         (ok_for_max_constant): New function.
13971         (gen_safe_add): New function.
13972         (rx_expand_prologue): Use gen_safe_add.
13973         (rx_expand_epilogue): Likewise.
13974         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
13975         UNSPEC CONSTs.
13976
13977 2011-01-21  Jeff Law  <law@redhat.com>
13978
13979         PR tree-optimization/47053
13980         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13981         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13982         statements are deleted.
13983         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
13984         is nonempty, then purge dead edges and cleanup the CFG.
13985
13986 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13987
13988         PR debug/47402
13989         Temporarily revert:
13990         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13991         PR debug/47106
13992         * tree-dfa.c (create_var_ann): Mark variable as used.
13993
13994 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13995
13996         PR middle-end/45566
13997         * except.c (convert_to_eh_region_ranges): Emit queued no-region
13998         notes from other section in hot/cold partitioning even if
13999         last_action is -3.  Increment call_site_base.
14000
14001         PR rtl-optimization/47366
14002         * fwprop.c (forward_propagate_into): Return bool.  If
14003         any changes are made, -fnon-call-exceptions is used and
14004         REG_EH_REGION note is present, call purge_dead_edges
14005         and return true if it purged anything.
14006         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
14007         any EH edges were purged.
14008
14009 2011-01-21  Jeff Law  <law@redhat.com>
14010
14011         PR rtl-optimization/41619
14012         * caller-save.c (setup_save_areas): Break out code to determine
14013         which hard regs are live across calls by examining the reload chains
14014         so that it is always used.
14015         Eliminate code which checked REG_N_CALLS_CROSSED.
14016
14017 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
14018
14019         PR tree-optimization/47355
14020         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14021         NOP has non-debug uses beyond PHIs in new_bb.
14022
14023 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
14024
14025         PR debug/47106
14026         * cfgexpand.c (account_used_vars_for_block): Only account vars
14027         that are annotated as used.
14028         (estimated_stack_frame_size): Don't set TREE_USED.
14029         * tree-dfa.c (create_var_ann): Mark variable as used.
14030
14031 2011-01-21  Richard Guenther  <rguenther@suse.de>
14032
14033         PR middle-end/47395
14034         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
14035
14036 2011-01-21  Richard Guenther  <rguenther@suse.de>
14037
14038         PR tree-optimization/47365
14039         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
14040         (vn_reference_lookup_pieces): Adjust.
14041         (vn_reference_lookup): Likewise.
14042         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
14043         (vn_reference_lookup_3): Only look through kills if in
14044         VN_WALKREWRITE mode.
14045         (vn_reference_lookup_pieces): Adjust.
14046         (vn_reference_lookup): Likewise.
14047         (visit_reference_op_load): Likewise.
14048         (visit_reference_op_store): Likewise.
14049         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
14050         (compute_avail): Likewise.
14051         (eliminate): Likewise.
14052
14053 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
14054
14055         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
14056         DECL_IGNORED_P non-reg vars if they are used.
14057
14058         PR tree-optimization/47391
14059         * varpool.c (const_value_known_p): Return false if
14060         decl is volatile.
14061
14062 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
14063
14064         PR bootstrap/47215
14065         * config/i386/i386.c (ix86_local_alignment): Handle
14066         case for va_list_type_node is nil.
14067         (ix86_canonical_va_list_type): Likewise.
14068
14069 2011-01-21  Alan Modra  <amodra@gmail.com>
14070
14071         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
14072         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
14073
14074 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14075
14076         * config/arm/arm.md (define_attr type): Rename f_load
14077         and f_store to f_fpa_load and f_fpa_store. Update.
14078         (write_conflict): Deal with rename fallout.
14079         (*push_fp_multi): Likewise.
14080         * config/arm/fpa.md (f_load): Use f_fpa_load.
14081         (f_store): Use f_fpa_store.
14082         (*movsf_fpa): Likewise.
14083         (*movdf_fpa): Likewise.
14084         (*movxf_fpa): Likewise.
14085         (*thumb2_movsf_fpa): Likewise.
14086         (*thumb2_movdf_fpa): Likewise.
14087         (*thumb2_movxf_fpa): Likewise.
14088         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
14089         f_loadd and f_stored.
14090         (*thumb2_movdi_vfp): Likewise.
14091         (*thumb2_movsf_vfp): Fix attribute to f_loads.
14092         (*thumb2_movsi_vfp): Likewise.
14093         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
14094         Use f_loads instead of f_load.
14095         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
14096
14097 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
14098
14099         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14100         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
14101         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14102         (xtensa_mode_dependent_address_p): New function.
14103         (constantpool_address_p): Make static. Change return type to bool.
14104         Change argument type to const_rtx. Use CONST_INT_P predicate.
14105
14106 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
14107
14108         PR debug/46583
14109         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
14110
14111 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
14112
14113         PR debug/47283
14114         * cfgexpand.c (expand_debug_expr): Instead of generating
14115         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
14116         etc. handling.
14117
14118 2011-01-20  Richard Guenther  <rguenther@suse.de>
14119
14120         PR middle-end/47370
14121         * tree-inline.c (remap_gimple_op_r): Recurse manually for
14122         the pointer operand of MEM_REFs.
14123
14124 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
14125
14126         PR tree-optimization/46130
14127         * ipa-split.c (consider_split): If return_bb contains non-virtual
14128         PHIs other than for retval or if split_function would not adjust it,
14129         refuse to split.
14130
14131 2011-01-20  Richard Guenther  <rguenther@suse.de>
14132
14133         PR tree-optimization/47167
14134         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14135         Revert previous change, only avoid enumeral type changes.
14136
14137 2011-01-19  Mike Stump  <mikestump@comcast.net>
14138
14139         * doc/tm.texi.in (BRANCH_COST): Englishify.
14140         * doc/tm.texi (BRANCH_COST): Likewise.
14141
14142 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
14143
14144         PR c++/47291
14145         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
14146         (gen_scheduled_generic_parms_dies): New functions.
14147         (gen_struct_or_union_type_die): Schedule template parameters DIEs
14148         generation for the end of CU compilation.
14149         (dwarf2out_finish): Generate template parameters DIEs here.
14150
14151 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
14152
14153         PR debug/46240
14154         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
14155         debug bind stmt on merge edges.
14156
14157 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
14158
14159         PR debug/47079
14160         PR debug/46724
14161         * function.c (instantiate_expr): Instantiate incoming rtl of
14162         implicit arguments, and recurse on VALUE_EXPRs.
14163         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
14164         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
14165
14166 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
14167
14168         * c-parser.c (c_parser_for_statement): Initialize
14169         collection_expression.
14170
14171 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14172
14173         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
14174
14175 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14176
14177         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
14178         (LINK_SHLIB_SPEC): Don't use %(link_path).
14179         (SUBTARGET_EXTRA_SPECS): Remove link_path.
14180
14181 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14182
14183         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
14184         (NO_SHARED_LIB_SUPPORT): Remove.
14185         (LINK_SHLIB_SPEC): Remove one conditional definition.
14186
14187 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14188
14189         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
14190         %{call_shared}.
14191         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
14192         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
14193         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
14194         %{call_shared} and conditionals on these options not being passed.
14195         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
14196         %{call_shared}.
14197
14198 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
14199
14200         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
14201         simplify.
14202
14203         * ipa-split.c: Spelling fixes.
14204
14205 2011-01-19  Richard Henderson  <rth@redhat.com>
14206
14207         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
14208         (*mulsi3): Likewise.
14209
14210         * longlong.h [__mn10300__] (count_leading_zeros): New.
14211         [__mn10300__] (umul_ppmm, smul_ppmm): New.
14212         [__mn10300__] (add_ssaaaa, subddmmss): New.
14213         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
14214         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
14215
14216 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14217
14218         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
14219
14220 2011-01-19  Richard Henderson  <rth@redhat.com>
14221
14222         * config/mn10300/mn10300.md (addsi3_flags): New.
14223         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
14224         (subsi3_flags, subc_internal, subdi3): New.
14225         (subdi3_internal, *subdi3_degenerate): New.
14226         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
14227
14228         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
14229         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
14230         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
14231         * config/mn10300/mn10300-protos.h: Update.
14232         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
14233         (return_ret): Likewise.  Rename from return_internal_regs.
14234         (return_internal): Remove.
14235
14236         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
14237         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
14238         (mn10300_legitimate_constant_p): Likewise.
14239         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
14240         (mn10300_frame_size): New.
14241         (mn10300_expand_prologue): Use it.
14242         (mn10300_expand_epilogue): Likewise.
14243         (mn10300_initial_offset): Likewise.
14244         * config/mn10300/mn10300-protos.h: Update.
14245         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
14246         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
14247         (prologue, epilogue, return_internal): Tidy output code.
14248         (mn10300_store_multiple_operation, return): Likewise.
14249         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
14250         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
14251         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
14252         (load_pic, am33_load_pic): New.
14253         (mn10300_load_pic0, mn10300_load_pic1): New.
14254
14255         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
14256         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
14257         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
14258         (cc_flags_for_mode, cc_flags_for_code): New.
14259         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
14260         overflow flag is not valid.  Validate that the flags we need
14261         for the comparison are valid.
14262         (mn10300_output_cmp): Remove.
14263         (mn10300_output_add): New.
14264         (mn10300_select_cc_mode): Use cc_flags_for_code.
14265         (mn10300_split_cbranch): New.
14266         (mn10300_match_ccmode): New.
14267         (mn10300_split_and_operand_count): New.
14268         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
14269         to the function.
14270         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
14271         (addsi3): ... here.  Use mn10300_output_add.
14272         (*addsi3_flags): New.
14273         (*am33_subsi3, *mn10300_subsi3): Merge...
14274         (subsi3): ... here.  Use attribute isa.
14275         (*subsi3_flags): New.
14276         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
14277         when possible.
14278         (*am33_andsi3, *mn10300_andsi3): Merge...
14279         (andsi3): ... here.
14280         (*andsi3_flags): New.
14281         (andsi3 splitters): New.
14282         (*am33_iorsi3, *mn10300_iorsi3): Merge...
14283         (iorsi3): ... here.
14284         (*iorsi3_flags): New.
14285         (*am33_xorsi3, *mn10300_xorsi3): Merge...
14286         (xorsi3): ... here.
14287         (*xorsi3_flags): New.
14288         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
14289         (one_cmplsi2): ... here.
14290         (*one_cmplsi2_flags): New.
14291         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
14292         instead of "dax" in constraints.  Use mn10300_split_cbranch.
14293         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
14294         use matching constraints to eliminate a self-comparison.
14295         (*integer_conditional_branch): Rename from integer_conditional_branch.
14296         Use int_mode_flags to match CC_REG.
14297         (*cbranchsi4_btst, *btstsi): New.
14298         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
14299         mn10300_split_cbranch.
14300         (*am33_cmpsf): Rename from am33_cmpsf.
14301         (*float_conditional_branch): Rename from float_conditional_branch.
14302         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
14303         (zero_extendqisi2): ... here.
14304         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
14305         (zero_extendhisi2): ... here.
14306         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
14307         (extendqisi2): ... here.
14308         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
14309         (extendhisi2): ... here.
14310         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
14311         (ashlsi3): ... here.
14312         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
14313         (lshrsi3): ... here.
14314         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
14315         (ashrsi3): ... here.
14316         (consecutive add peephole): Remove.
14317         * config/mn10300/predicates.md (label_ref_operand): New.
14318         (int_mode_flags): New.
14319         (CCZN_comparison_operator): New.
14320
14321         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
14322         (throughput_42_latency_43): New reservation.
14323         (mulsidi3, umulsidi3): New expanders.
14324         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
14325         the MDR register to allocation; separately allocate the low and
14326         high parts of the DImode result.
14327         (umulsidi3_internal): Similarly.
14328         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
14329         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
14330         (udivsi3, umodsi3): Remove.
14331         (udivmodsi4, divmodsi4): New expanders.
14332         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
14333         (*divmodsi4): Simiarly.
14334         (ext_internal): New.
14335
14336         * config/mn10300/constraints.md ("z"): New constraint.
14337         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
14338         (FIXED_REGISTERS): Don't fix MDR.
14339         (CALL_USED_REGSITERS): Reformat nicely.
14340         (REG_ALLOC_ORDER): Add MDR.
14341         (enum regclass): Add MDR_REGS.
14342         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
14343         (IRA_COVER_CLASSES): Add MDR_REGS.
14344         (REGNO_REG_CLASS): Handle MDR_REG.
14345         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
14346         (mn10300_register_move_cost): Likewise.
14347         * config/mn10300/mn10300.md (MDR_REG): New.
14348         (*movsi_internal): Handle moves to/from MDR_REGS.
14349
14350         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
14351         POST_MODIFY.
14352         (mn10300_secondary_reload): Tidy combination reload classes.
14353         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
14354         addresses for AM33.  Allow symbolic offsets for reg+imm.
14355         (mn10300_regno_in_class_p): New.
14356         (mn10300_legitimize_reload_address): New.
14357         * config/mn10300/mn10300.h (enum reg_class): Remove
14358         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
14359         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
14360         SP_OR_GENERAL_REGS.
14361         (REG_CLASS_NAMES): Update to match.
14362         (REG_CLASS_CONTENTS): Likewise.
14363         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
14364         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
14365         (REGNO_IN_RANGE_P): Remove.
14366         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
14367         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
14368         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
14369         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
14370         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
14371         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
14372         (REGNO_GENERAL_P): New.
14373         (HAVE_POST_MODIFY_DISP): New.
14374         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
14375         (LEGITIMIZE_RELOAD_ADDRESS): New.
14376         * config/mn10300/mn10300-protos.h: Update.
14377
14378         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
14379         DATA_REGS for AM33 stack-pointer destination.
14380         (mn10300_preferred_output_reload_class): Likewise.
14381         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
14382         into a form appropriate for ...
14383         (TARGET_SECONDARY_RELOAD): New.
14384         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
14385         * config/mn10300/mn10300-protos.h: Update.
14386         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
14387         reload_insi; use the "A" constraint for the scratch; handle AM33
14388         moves of sp to non-address registers.
14389
14390         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
14391         (*movqi_internal): ... here.
14392         (*am33_movhi, *mn10300_movhi): Merge into...
14393         (*movhi_internal): ... here.
14394         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
14395         as the source/destination of moves from/to SP.
14396         (movsf): Only allow for AM33-2.
14397         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
14398         any integer constant constraint.  Only allow for AM33-2.  Tidy
14399         all of the alternative outputs.
14400         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
14401         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
14402         for MN103.
14403         (udivsi3, umodsi3): New patterns for MN103 only.
14404
14405 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
14406
14407         * doc/tm.texi.in: Spell out that a lack of register class unions
14408         can lead to ICEs.
14409         * doc/tm.texi: Regenerate.
14410
14411 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
14412
14413         PR rtl-optimization/47337
14414         * dce.c (check_argument_store): New function.
14415         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
14416
14417         PR tree-optimization/47290
14418         * tree-eh.c (infinite_empty_loop_p): New function.
14419         (cleanup_empty_eh): Use it.
14420
14421 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
14422
14423         PR target/46997
14424         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
14425         (a64_expand_widen_sum): Ditto.
14426         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
14427         (vec_extract_evenodd_help): Ditto.
14428         (vec_extract_evenv4hi): Ditto.
14429         (vec_extract_oddv4hi): Ditto.
14430         (vec_extract_evenv2si): Ditto.
14431         (vec_extract_oddv2si): Ditto.
14432         (vec_extract_evenv2sf): Ditto.
14433         (vec_extract_oddv2sf): Ditto.
14434         (vec_pack_trunc_v4hi: Ditto.
14435         (vec_pack_trunc_v2si): Ditto.
14436         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
14437         (vec_interleave_highv8qi): Ditto.
14438         (mix1_r): Ditto.
14439         (vec_extract_oddv8qi): Ditto.
14440         (vec_interleave_lowv4hi): Ditto.
14441         (vec_interleave_highv4hi): Ditto.
14442         (vec_interleave_lowv2si): Ditto.
14443         (vec_interleave_highv2si): Ditto.
14444
14445 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14446
14447         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
14448         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
14449         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
14450         (pa_c_mode_for_suffix): New.
14451         (TARGET_EXPAND_BUILTIN): Define.
14452         (TARGET_C_MODE_FOR_SUFFIX): Define.
14453         (pa_builtins): Define.
14454         (pa_init_builtins): Register __float128 type and init new support
14455         builtins.
14456         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
14457         * config/pa/quadlib.c (_U_Qfcopysign): New.
14458
14459 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
14460
14461         PR middle-end/46894
14462         * explow.c (allocate_dynamic_stack_space): Do not assume more than
14463         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
14464         are defined.
14465
14466 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14467
14468         PR tree-optimization/47179
14469         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
14470         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
14471
14472 2011-01-18  Richard Guenther  <rguenther@suse.de>
14473
14474         PR rtl-optimization/47216
14475         * emit-rtl.c: Include tree-flow.h.
14476         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
14477         of replicating it with different semantics.
14478         * Makefile.in (emit-rtl.o): Adjust.
14479
14480 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14481
14482         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
14483         (cortex_a9_dp): Handle neon types correctly.
14484
14485 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
14486
14487         PR rtl-optimization/47299
14488         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
14489         subtarget.  Use normal multiplication if both operands are constants.
14490         * expmed.c (expand_widening_mult): Don't try to optimize constant
14491         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
14492         before using it.
14493
14494 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14495
14496         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
14497         spacing after 'e.g.', typos, comma, hyphenation.
14498
14499 2011-01-17  Richard Henderson  <rth@redhat.com>
14500
14501         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
14502         (rx_restricted_mem_operand): New.
14503         (rx_shift_operand): Use register_operand.
14504         (rx_source_operand, rx_compare_operand): Likewise.
14505         * config/rx/rx.md (addsi3_flags): New expander.
14506         (adddi3): Rewrite as expander.
14507         (adc_internal, *adc_flags, adddi3_internal): New patterns.
14508         (subsi3_flags): New expander.
14509         (subdi3): Rewrite as expander.
14510         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
14511
14512         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
14513         (rx_init_builtins): Remove sat builtin.
14514         (rx_expand_builtin): Likewise.
14515         * config/rx/rx.md (ssaddsi3): New.
14516         (*sat): Rename from sat.  Represent the CC_REG input.
14517
14518         * config/rx/predicates.md (rshift_operator): New.
14519         * config/rx/rx.c (rx_expand_insv): Remove.
14520         * config/rx/rx-protos.h: Update.
14521         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
14522         operand to the canonical position.
14523         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14524         (*bitclr, *bitclr_in_memory): Similarly.
14525         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14526         (insv): Retain the zero_extract in the expansion.
14527
14528         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14529         (bswaphi2, bitinvert, revw): Likewise.
14530
14531         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14532         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14533         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14534         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14535         (bitset, bitset_in_memory): Likewise.
14536         (bitinvert, bitinvert_in_memory): Likewise.
14537         (bitclr, bitclr_in_memory): Likewise.
14538         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14539         (rx_strend, rx_cmpstrn): Likewise.
14540         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
14541         (bitop peep2 patterns): Remove.
14542
14543         * config/rx/rx.c (rx_match_ccmode): New.
14544         * config/rx/rx-protos.h: Update.
14545         * config/rx/rx.md (abssi2): Clobber, don't set flags.
14546         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14547         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14548         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14549         (fix_truncsfsi2, floatsisf2): Likewise.
14550         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14551         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14552         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14553         (*subsi3_flags, *xorsi3_flags): New.
14554
14555         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14556
14557         * config/rx/rx.c (rx_print_operand): Remove workaround for
14558         unsplit comparison operations.
14559
14560         * config/rx/rx.md (movsicc): Split after reload.
14561         (*movsicc): Merge *movsieq and *movsine via match_operator.
14562         (*stcc): New pattern.
14563
14564         * config/rx/rx.c (rx_float_compare_mode): Remove.
14565         * config/rx/rx.h (rx_float_compare_mode): Remove.
14566         * config/rx/rx.md (cstoresi4): Split after reload.
14567         (*sccc): New pattern.
14568
14569         * config/rx/predicates.md (label_ref_operand): New.
14570         (rx_z_comparison_operator): New.
14571         (rx_zs_comparison_operator): New.
14572         (rx_fp_comparison_operator): New.
14573         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14574         Validate that the flags are set properly for the comparison.
14575         (rx_gen_cond_branch_template): Remove.
14576         (rx_cc_modes_compatible): Remove.
14577         (mode_from_flags): New.
14578         (flags_from_code): Rename from flags_needed_for_conditional.
14579         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14580         (rx_select_cc_mode): Likewise.
14581         (rx_split_fp_compare): New.
14582         (rx_split_cbranch): New.
14583         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14584         (*cbranchsi4): Use match_operator and rx_split_cbranch.
14585         (*cbranchsf4): Similarly.
14586         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
14587         match_operator and rx_split_cbranch.
14588         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14589         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
14590         (*cmpsi): Rename from cmpsi.
14591         (*tstsi): Rename from tstsi.
14592         (*cmpsf): Rename from cmpsf; use CC_Fmode.
14593         (*conditional_branch): Rename from conditional_branch.
14594         (*reveresed_conditional_branch): Remove.
14595         (b<code>): Remove expander.
14596         * config/rx/rx-protos.h: Update.
14597
14598         * config/rx/rx.c (rx_compare_redundant): Remove.
14599         * config/rx/rx.md (cmpsi): Don't use it.
14600         * config/rx/rx-protos.h: Update.
14601
14602         * config/rx/rx-modes.def (CC_F): New mode.
14603         * config/rx/rx.c (rx_select_cc_mode): New.
14604         * config/rx/rx.h (SELECT_CC_MODE): Use it.
14605         * config/rx/rx-protos.h: Update.
14606
14607 2011-01-17  Richard Henderson  <rth@redhat.com>
14608
14609         * except.c (dump_eh_tree): Fix stray ; after for statement.
14610
14611 2011-01-17  Richard Guenther  <rguenther@suse.de>
14612
14613         PR tree-optimization/47313
14614         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14615         handling before copying the body.  Properly deal with
14616         by-reference result in SSA form.
14617
14618 2011-01-17  Ian Lance Taylor  <iant@google.com>
14619
14620         PR target/47219
14621         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14622         (struct_value_alias_set): Don't define.
14623         (sparc_option_override): Don't set sparc_sr_alias_set and
14624         struct_value_alias_set.
14625         (save_or_restore_regs): Use gen_frame_mem rather than calling
14626         set_mem_alias_set.
14627         (sparc_struct_value_rtx): Likewise.
14628
14629 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
14630
14631         PR target/47318
14632         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14633         (_mm_maskstore_pd): Likewise.
14634         (_mm_maskload_ps): Likewise.
14635         (_mm_maskstore_ps): Likewise.
14636         (_mm256_maskload_pd): Change mask to __m256i.
14637         (_mm256_maskstore_pd): Likewise.
14638         (_mm256_maskload_ps): Likewise.
14639         (_mm256_maskstore_ps): Likewise.
14640
14641         * config/i386/i386-builtin-types.def: Updated.
14642         (ix86_expand_special_args_builtin): Likewise.
14643
14644         * config/i386/i386.c (bdesc_special_args): Update
14645         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14646         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14647         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14648         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14649
14650         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14651         Use <avxpermvecmode> on mask register.
14652         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14653
14654 2011-01-17  Olivier Hainque  <hainque@adacore.com>
14655             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
14656             Eric Botcazou  <ebotcazou@adacore.com>
14657
14658         PR target/46655
14659         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14660         if <= USHRT_MAX in 32-bit mode.
14661
14662 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14663
14664         * doc/install.texi (Configuration, Specific): Wrap long
14665         lines in examples.  Allow line wrapping in long options
14666         and URLs where beneficial for PDF output.
14667
14668 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
14669
14670         * config/mips/mips.c (mips_classify_symbol): Don't return
14671         SYMBOL_PC_RELATIVE for nonlocal labels.
14672
14673 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
14674
14675         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14676
14677 2011-01-15  Jan Hubicka  <jh@suse.cz>
14678
14679         PR tree-optimization/47276
14680         * ipa.c (function_and_variable_visibility): Do not try to mark alias
14681         declarations as needed.
14682
14683 2011-01-15  Martin Jambor  <mjambor@suse.cz>
14684
14685         * common.opt (fdevirtualize): New flag.
14686         * doc/invoke.texi (Option Summary): Document it.
14687         * opts.c (default_options_table): Add devirtualize flag.
14688         * ipa-prop.c (detect_type_change): Return immediately if
14689         devirtualize flag is not set.
14690         (detect_type_change_ssa): Likewise.
14691         (compute_known_type_jump_func): Likewise.
14692         (ipa_analyze_virtual_call_uses): Likewise.
14693
14694 2011-01-14  Martin Jambor  <mjambor@suse.cz>
14695
14696         PR tree-optimization/45934
14697         PR tree-optimization/46302
14698         * ipa-prop.c (type_change_info): New type.
14699         (stmt_may_be_vtbl_ptr_store): New function.
14700         (check_stmt_for_type_change): Likewise.
14701         (detect_type_change): Likewise.
14702         (detect_type_change_ssa): Likewise.
14703         (compute_complex_assign_jump_func): Check for dynamic type change.
14704         (compute_complex_ancestor_jump_func): Likewise.
14705         (compute_known_type_jump_func): Likewise.
14706         (compute_scalar_jump_functions): Likewise.
14707         (ipa_analyze_virtual_call_uses): Likewise.
14708         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14709
14710 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14711
14712         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14713         * config/i386/i386.opt (msse5): New Alias.
14714
14715 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14716
14717         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14718         * config/sparc/linux64.h (CC1_SPEC): Likewise.
14719         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14720         * config/sparc/sparc.h (CC1_SPEC): Likewise.
14721
14722 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14723
14724         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14725         -mcpu options.
14726         * config/sparc/linux64.h (CC1_SPEC): Likewise.
14727         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14728         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14729         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14730         Likewise.
14731         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14732
14733 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14734
14735         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14736
14737 2011-01-14  Mike Stump  <mikestump@comcast.net>
14738
14739         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14740         * config/fr30/fr30.md: Likweise
14741         (movsi_push): Likewise.
14742         (movsi_pop): Likewise.
14743         (enter_func): Likewise.
14744         * config/moxie/moxie.md (movsi_push): Likewise.
14745         (movsi_pop): Likewise.
14746
14747 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14748
14749         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14750         %{no_archive} %{exact_version}.
14751         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14752         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14753         %{no_archive} %{exact_version}.
14754         * config/mips/openbsd.h (LINK_SPEC): Likewise.
14755         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14756         * config/mips/vxworks.h: Likewise.
14757
14758 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14759
14760         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14761
14762 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14763
14764         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14765         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14766
14767 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14768
14769         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14770         -nodefaultlib.
14771
14772 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14773
14774         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14775         for mcpu not cpu.
14776         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14777         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14778         not cpu.
14779         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14780         Don't handle -shlib.
14781
14782 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14783
14784         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14785         (CC1_SPEC): Don't handle -profile.
14786
14787 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14788
14789         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14790         * config/mips/mips.h (CC1_SPEC): Likewise.
14791
14792 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14793
14794         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14795         * config/mips/mips.h (CC1_SPEC): Likewise.
14796
14797 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14798
14799         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14800         * config/m32r/linux.h (LINK_SPEC): Likewise.
14801         * config/mips/linux.h (LINK_SPEC): Likewise.
14802         * config/mips/linux64.h (LINK_SPEC): Likewise.
14803         * config/sparc/linux.h (LINK_SPEC): Likewise.
14804         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14805         LINK_SPEC): Likewise.
14806         * config/xtensa/linux.h (LINK_SPEC): Likewise.
14807
14808 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14809
14810         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14811         %{version:-v}.
14812         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14813
14814 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14815
14816         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14817         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14818
14819 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14820
14821         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14822
14823 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14824
14825         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14826         supports -Bstatic/-Bdynamic.
14827         * configure: Regenerate.
14828
14829 2011-01-14  Jan Hubicka  <jh@suse.cz>
14830             Jack Howarth  <howarth@bromo.med.uc.edu>
14831
14832         PR target/46037
14833         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14834         when checking debug_info_level. Test write_symbols instead of
14835         debug_hooks->var_location when setting flag_var_tracking_uninit.
14836
14837 2011-01-14  Richard Guenther  <rguenther@suse.de>
14838
14839         PR tree-optimization/47179
14840         * target.def (ref_may_alias_errno): New target hook.
14841         * targhooks.h (default_ref_may_alias_errno): Declare.
14842         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14843         (default_ref_may_alias_errno): New function.
14844         * target.h (struct ao_ref_s): Declare.
14845         * tree-ssa-alias.c: Include target.h.
14846         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14847         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14848         (targhooks.o): Likewise.
14849         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14850         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14851
14852 2011-01-14  Richard Guenther  <rguenther@suse.de>
14853
14854         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
14855
14856 2011-01-14  Richard Guenther  <rguenther@suse.de>
14857
14858         PR tree-optimization/47280
14859         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14860         return CFG changes.
14861         (tree_ssa_forward_propagate_single_use_vars): Deal with
14862         CFG changes from associate_plusminus.
14863
14864 2011-01-14  Richard Guenther  <rguenther@suse.de>
14865
14866         PR middle-end/47281
14867         Revert
14868         2011-01-11  Richard Guenther  <rguenther@suse.de>
14869
14870         PR tree-optimization/46076
14871         * tree-ssa.c (useless_type_conversion_p): Conversions from
14872         unprototyped to empty argument list function types are useless.
14873
14874 2011-01-14  Richard Guenther  <rguenther@suse.de>
14875
14876         PR tree-optimization/47286
14877         * tree-ssa-structalias.c (new_var_info): Register variables are global.
14878
14879 2011-01-14  Martin Jambor  <mjambor@suse.cz>
14880
14881         PR middle-end/46823
14882         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14883
14884 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
14885
14886         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14887         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14888         * config/xtensa/xtensa.c (xtensa_libcall_value,
14889         xtensa_function_value_regno_p): New functions.
14890         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14891
14892 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
14893
14894         PR c++/47213
14895         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14896         PE specific hook.
14897         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14898         New function prototype.
14899         * config/i386/winnt.c (i386_pe_assemble_visibility):
14900         Warn only if attribute was specified by user.
14901
14902 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
14903
14904         PR target/47251
14905         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14906         floating point.
14907         (floatunsdidf2_fcfidu): Ditto.
14908
14909 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14910
14911         * config/s390/s390.c (print_operand_address): Replace 'error' with
14912         'output_operand_lossage'.
14913         (print_operand): Likewise.
14914
14915 2011-01-13  Jeff Law  <law@redhat.com>
14916
14917         PR rtl-optimization/39077
14918         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14919         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14920         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14921         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14922         * gcse.c (prune_insertions_deletions): New function.
14923         (compute_pre_data): Use it.
14924
14925 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
14926
14927         PR debug/PR46973
14928         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14929         static function.
14930         (prune_unused_types_mark): Use it.
14931
14932 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
14933
14934         PR rtl-optimization/45352
14935         * sel-sched.c: Update copyright years.
14936         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14937         in the advancing loop when we have issued issue_rate insns.
14938
14939 2011-01-12  Richard Henderson  <rth@redhat.com>
14940
14941         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14942         (TARGET_MD_ASM_CLOBBERS): New.
14943
14944         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14945         (TARGET_DELEGITIMIZE_ADDRESS): New.
14946
14947         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14948         (clzsi2, *bsch): New patterns.
14949
14950         * config/mn10300/mn10300.md (INT): New mode iterator.
14951         (*mov<INT>_clr): New pattern, and peep2 to generate it.
14952
14953         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14954         flag_split_wide_types.
14955
14956         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14957         (mn10300_trampoline_init): Rewrite without a template, an immediate
14958         load and a direct branch.
14959         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14960
14961 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
14962
14963         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14964         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14965         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14966         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14967
14968 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
14969
14970         PR debug/47209
14971         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14972         of type.
14973
14974 2011-01-12  Jan Hubicka  <jh@suse.cz>
14975
14976         PR driver/47244
14977         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14978         (PLUGIN_COND_CLOSE): New macro.
14979         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14980
14981 2011-01-12  Richard Guenther  <rguenther@suse.de>
14982
14983         PR lto/47259
14984         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14985         register variables in a MEM_REF.
14986
14987 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
14988
14989         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14990         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14991         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14992         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14993         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14994         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14995         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14996         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14997         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14998         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14999         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
15000         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
15001         * config/gnu-user.h: New.  Copied from linux.h.
15002         (LINUX_TARGET_STARTFILE_SPEC): Rename to
15003         GNU_USER_TARGET_STARTFILE_SPEC.
15004         (LINUX_TARGET_ENDFILE_SPEC): Rename to
15005         GNU_USER_TARGET_ENDFILE_SPEC.
15006         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
15007         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
15008         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
15009         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15010         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15011         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15012         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15013         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15014         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15015         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15016         * config/arm/linux-eabi.h (CC1_SPEC): Use
15017         GNU_USER_TARGET_CC1_SPEC.
15018         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15019         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15020         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15021         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
15022         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
15023         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
15024         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
15025         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
15026
15027 2011-01-12  Richard Guenther  <rguenther@suse.de>
15028
15029         PR other/46946
15030         * doc/invoke.texi (ffast-math): Document it is turned on
15031         with -Ofast.
15032
15033 2011-01-12  Jan Hubicka  <jh@suse.cz>
15034
15035         PR tree-optimization/47233
15036         * opts.c (common_handle_option): Disable ipa-reference with profile
15037         feedback.
15038
15039 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
15040
15041         * c-parser.c (c_parser_objc_at_property_declaration): Improved
15042         error message.
15043
15044 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
15045
15046         * c-parser.c (c_lex_one_token): Updated and reindented some
15047         comments.  No changes in code.
15048
15049 2011-01-11  Ian Lance Taylor  <iant@google.com>
15050
15051         * godump.c (go_output_var): Don't output the variable if there is
15052         already a type with the same name.
15053
15054 2011-01-11  Ian Lance Taylor  <iant@google.com>
15055
15056         * godump.c (go_format_type): Don't generate float80.
15057
15058 2011-01-11  Richard Henderson  <rth@redhat.com>
15059
15060         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
15061         declaration.  Rewrite for both speed and size.
15062         (mn10300_address_cost_1): Remove.
15063         (mn10300_register_move_cost): New.
15064         (mn10300_memory_move_cost): New.
15065         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
15066         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
15067         extensions, shifts, BSWAP, CLZ.
15068         (mn10300_wide_const_load_uses_clr): Remove.
15069         (TARGET_REGISTER_MOVE_COST): New.
15070         (TARGET_MEMORY_MOVE_COST): New.
15071         * config/mn10300/mn10300-protos.h: Update.
15072         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
15073
15074         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
15075         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
15076         * config/mn10300/mn10300-protos.h: Update.
15077         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
15078         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
15079         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
15080         (*test_int_bitfield, *test_byte_bitfield): Remove.
15081         (*bit_test, *subreg_bit_test): Remove.
15082         * config/mn10300/predicates.md (const_8bit_operand): Remove.
15083
15084         * config/mn10300/constraints.md ("c"): Rename from "A".
15085         ("A", "D"): New constraint letters.
15086         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
15087         (fmssf4, fnmasf4, fnmssf4): Likewise.
15088
15089         * config/mn10300/mn10300.md (isa): New attribute.
15090         (enabled): New attribute.
15091
15092         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
15093         (abssf2, negsf2): Define only for hardware fp.
15094         (sqrtsf2): Reformat.
15095         (addsf3, subsf3, mulsf3): Merge expander and insn.
15096
15097         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
15098         (DEBUGGER_AUTO_OFFSET): Remove.
15099         (DEBUGGER_ARG_OFFSET): Remove.
15100
15101         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
15102         Emit register stores with the same offsets as the hardware.
15103         (mn10300_store_multiple_operation): Don't check that the register
15104         save offsets are monotonic.
15105         * config/mn10300/mn10300-protos.h: Update.
15106
15107         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
15108
15109         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
15110         in terms of the value on the stack, not the MDR register.
15111
15112 2011-01-11  Jan Hubicka  <jh@suse.cz>
15113
15114         PR lto/45721
15115         PR lto/45375
15116         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
15117         (symbol_alias_set_destroy, symbol_alias_set_contains,
15118         propagate_aliases_backward): Declare.
15119         * lto-streamer-out.c (struct sets): New sturcture.
15120         (trivally_defined_alias): New function.
15121         (output_alias_pair_p): Rewrite.
15122         (output_unreferenced_globals): Fix output of alias pairs.
15123         (produce_symtab): Likewise.
15124         * ipa.c (function_and_variable_visibility): Set weak alias destination
15125         as needed in lto.
15126         * varasm.c (symbol_alias_set_t): Remove.
15127         (symbol_alias_set_destroy): Export.
15128         (propagate_aliases_forward, propagate_aliases_backward): New functions
15129         based on ...
15130         (compute_visible_aliases): ... this one; remove.
15131         (trivially_visible_alias): New
15132         (trivially_defined_alias): New.
15133         (remove_unreachable_alias_pairs): Rewrite.
15134         (finish_aliases_1): Reorganize code checking if alias is defined.
15135         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
15136         in LTO mode.
15137
15138 2011-01-11  Richard Guenther  <rguenther@suse.de>
15139
15140         PR tree-optimization/46076
15141         * tree-ssa.c (useless_type_conversion_p): Conversions from
15142         unprototyped to empty argument list function types are useless.
15143
15144 2011-01-11  Richard Guenther  <rguenther@suse.de>
15145
15146         PR middle-end/45235
15147         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
15148         volatile MEMs as MEM_READONLY_P.
15149
15150 2011-01-11  Richard Guenther  <rguenther@suse.de>
15151
15152         PR tree-optimization/47239
15153         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
15154
15155 2011-01-11  Jeff Law  <law@redhat.com>
15156
15157         PR tree-optimization/47086
15158         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
15159         IVs from statements that might throw.
15160
15161 2011-01-10  Jan Hubicka  <jh@suse.cz>
15162
15163         PR lto/45375
15164         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
15165
15166 2011-01-10  Jan Hubicka  <jh@suse.cz>
15167
15168         PR lto/45375
15169         * profile.c (read_profile_edge_counts): Ignore profile inconistency
15170         when correcting profile.
15171
15172 2011-01-10  Jan Hubicka  <jh@suse.cz>
15173
15174         PR lto/46083
15175         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
15176         DECL_FINI_PRIORITY.
15177         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
15178         Restore DECL_FINI_PRIORITY.
15179
15180 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15181
15182         * doc/gimple.texi: Fix quoting of multi-word return values in
15183         @deftypefn statements.  Ensure presence of return value.  Wrap
15184         overlong @deftypefn lines.
15185         (is_gimple_operand, is_gimple_min_invariant_address): Remove
15186         descriptions of removed functions.
15187         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
15188         of multi-word return value in @deftypefn statement.
15189
15190 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15191
15192         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
15193         (Conditional Expressions, Logical Operators)
15194         (Statement and operand traversals): Do not indent smallexample
15195         code.  Fix duplicate function argument in example.
15196
15197 2011-01-10  Jeff Law  <law@redhat.com>
15198
15199         PR tree-optimization/47141
15200         * ipa-split.c (split_function): Handle case where we are
15201         returning a value and the return block has a virtual operand phi.
15202
15203 2011-01-10  Jan Hubicka  <jh@suse.cz>
15204
15205         PR tree-optimization/47234
15206         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
15207         (pass_feedback_split_functions): Declare.
15208         * passes.c (init_optimization_passes): Add ipa-split as subpass of
15209         tree-profile.
15210         * ipa-split.c (gate_split_functions): Update comments; disable
15211         split-functions for profile_arc_flag and branch_probabilities.
15212         (gate_feedback_split_functions): New function.
15213         (execute_feedback_split_functions): New function.
15214         (pass_feedback_split_functions): New global var.
15215
15216 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
15217
15218         PR lto/46760
15219         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
15220         calling gimple_call_set_cannot_inline.
15221
15222 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
15223
15224         * config/darwin-sections.def: Remove unused section.
15225
15226 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
15227
15228         PR c++/47218
15229         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
15230
15231 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
15232
15233         PR objc/47232
15234         * c-parser.c (c_parser_declaration_or_fndef): Improved
15235         error message.
15236
15237 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
15238
15239         * config/i386/winnt.c (i386_pe_start_function): Make sure
15240         to switch back to function's section.
15241
15242 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
15243
15244         PR gcc/46902
15245         PR testsuite/46912
15246         * plugin.c: Move include of dlfcn.h from here...
15247         * system.h: ... to here.
15248
15249 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15250
15251         * doc/cpp.texi (C++ Named Operators): Fix markup for header
15252         file name.
15253         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
15254         two extra empty pages in PDF output.
15255
15256 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
15257
15258         PR objc/47078
15259         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
15260         for error recovery purposes behave as if it was not specified so
15261         that the default type is usd.
15262
15263 2011-01-07  Jan Hubicka  <jh@suse.cz>
15264
15265         PR tree-optmization/46469
15266         * ipa.c (function_and_variable_visibility): Clear needed flags on
15267         nodes with external decls; handle weakrefs merging correctly.
15268
15269 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
15270
15271         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
15272         not false.
15273
15274 2011-01-07  Jan Hubicka  <jh@suse.cz>
15275
15276         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
15277         and no longer claim that gold is required for linker plugin.
15278         * configure: Regenerate.
15279         * gcc.c (PLUGIN_COND): New macro.
15280         (LINK_COMMAND_SPEC): Use it.
15281         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
15282         * config.in (HAVE_LTO_PLUGIN): New.
15283         * configure.ac (--with-lto-plugin): New parameter; autodetect
15284         HAVE_LTO_PLUGIN.
15285
15286 2011-01-07  Jan Hubicka  <jh@suse.cz>
15287
15288         PR tree-optimization/46367
15289         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
15290         when we can update original.
15291         (cgraph_mark_inline_edge): Sanity check.
15292         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
15293
15294 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15295
15296         * config/spu/spu.h (ASM_COMMENT_START): Define.
15297
15298 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
15299
15300         PR driver/42445
15301         * gcc.c (%>S): New.
15302         (SWITCH_KEEP_FOR_GCC): Likewise.
15303         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
15304         (do_spec_1): Handle "%>".
15305
15306         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
15307
15308 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
15309
15310         PR target/47201
15311         * config/i386/i386.c (ix86_delegitimize_address): If
15312         simplify_gen_subreg fails, return orig_x.
15313
15314         PR bootstrap/47187
15315         * value-prof.c (gimple_stringop_fixed_value): Handle
15316         lhs of the call properly.
15317
15318 2011-01-07  Jan Hubicka  <jh@suse.cz>
15319
15320         PR lto/45375
15321         * lto-opt.c (lto_reissue_options): Set flag_shlib.
15322
15323 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
15324
15325         * target.def (function_switched_text_sections): New hook.
15326         * doc/tm.texi: Regenerated.
15327         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15328         * final.c (default_function_switched_text_sections): New.
15329         (final_scan_insn): Call function_switched_text_sections when a
15330         mid-function section change occurs.
15331         * output.h (default_function_switched_text_sections): Declare.
15332         * config/darwin-protos.h (darwin_function_switched_text_sections):
15333         Likewise.
15334         * config/darwin.c (darwin_function_switched_text_sections): New.
15335         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15336
15337 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
15338
15339         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
15340         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
15341         the secondary code fragment when outputting for DWARF == 2.
15342
15343 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
15344
15345         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15346         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
15347         Remove.
15348         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
15349         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15350
15351 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
15352
15353         PR debug/46704
15354         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
15355         when it is not empty.
15356
15357 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
15358
15359         Bobcat Enablement
15360         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
15361         (case ${target}): Add btver1.
15362         * config/i386/driver-i386.c (host_detect_local_cpu): Let
15363         -march=native recognize btver1 processors.
15364         * config/i386/i386-c.c (ix86_target_macros_internal): Add
15365         btver1 def_and_undef
15366         * config/i386/i386.c (struct processor_costs btver1_cost): New
15367         btver1 cost table.
15368         (m_BTVER1): New definition.
15369         (m_AMD_MULTIPLE): Includes m_BTVER1.
15370         (initial_ix86_tune_features): Add btver1 tune.
15371         (processor_target_table): Add btver1 entry.
15372         (static const char *const cpu_names): Add btver1 entry.
15373         (software_prefetching_beneficial_p): Add btver1.
15374         (ix86_option_override_internal): Add btver1 instruction sets.
15375         (ix86_issue_rate): Add btver1.
15376         (ix86_adjust_cost): Add btver1.
15377         * config/i386/i386.h (TARGET_BTVER1): New definition.
15378         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
15379         (enum processor_type): Add PROCESSOR_BTVER1.
15380         * config/i386/i386.md (define_attr "cpu"): Add btver1.
15381
15382 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15383
15384         PR target/43309
15385         * config/i386/i386.c (legitimize_tls_address)
15386         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
15387         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
15388         (tls_initial_exec_64_sun): New pattern.
15389
15390 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
15391
15392         * doc/invoke.texi (Overall Options): Improve wording and markup
15393         of the description of -wrapper.
15394
15395 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
15396
15397         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
15398         rdynamic, threads): New Driver options.
15399
15400 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15401
15402         PR target/38118
15403         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
15404         if coming from .tdata.
15405         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
15406
15407 2011-01-06  Jan Hubicka  <jh@suse.cz>
15408
15409         PR lto/47188
15410         * collect2.c (main): Do not enable LTOmode when plugin is active.
15411
15412 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15413
15414         PR other/45915
15415         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
15416         --version output if supported.
15417         * configure: Regenerate.
15418
15419 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
15420
15421         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
15422         Driver options.
15423
15424 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
15425
15426         PR c/47150
15427         * c-convert.c (convert): When converting a complex expression
15428         other than COMPLEX_EXPR to a different complex type, ensure
15429         c_save_expr is called instead of save_expr, unless in_late_binary_op.
15430         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
15431         when converting COMPLEX_TYPE.
15432
15433 2011-01-06  Ira Rosen  <irar@il.ibm.com>
15434
15435         PR tree-optimization/47139
15436         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
15437         only the last reduction value is used outside the loop.  Update
15438         documentation.
15439
15440 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
15441
15442         * config/rtems.opt: New.
15443         * config.gcc (*-*-rtems*): Use rtems.opt.
15444
15445 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
15446
15447         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
15448         processors do not support 3DNow instructions.
15449
15450 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15451
15452         * config/spu/spu.c (spu_option_override): Set parameter
15453         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
15454
15455 2011-01-05  Jan Hubicka  <jh@suse.cz>
15456
15457         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
15458         at the command line.
15459
15460 2011-01-05  Martin Jambor  <mjambor@suse.cz>
15461
15462         PR lto/47162
15463         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
15464         deltas on streamed outgoing edges.
15465         (output_node_opt_summary): Output info for outgoing edges only when
15466         the node is in new parameter set.
15467         (output_cgraph_opt_summary): New parameter set, passed to the two
15468         aforementioned functions.  Update its forward declaration and its
15469         callee too.
15470
15471 2011-01-05  Tom Tromey  <tromey@redhat.com>
15472
15473         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
15474         operator to c_finish_omp_atomic.
15475         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
15476         (build_unary_op): Update.
15477         (build_modify_expr): Update.
15478         (build_asm_expr): Update.
15479
15480 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15481
15482         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
15483         newly inserted insns.
15484         (pad_bb): Likewise.
15485         (spu_emit_branch_hint): Likewise.
15486         (insert_hbrp_for_ilb_runout): Likewise.
15487         (spu_machine_dependent_reorg): Call df_finish_pass after
15488         schedule_insns returns.
15489
15490 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15491
15492         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
15493
15494 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
15495
15496         PR tree-optimization/47005
15497         * tree-sra.c (struct access): Add 'non_addressable' bit.
15498         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
15499         (decide_one_param_reduction): Return 0 if the parameter is passed by
15500         reference and one of the accesses in the group is non_addressable.
15501
15502 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15503
15504         PR tree-optimization/47056
15505         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
15506         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
15507         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
15508
15509 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15510
15511         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
15512         initializer.  Skip view conversions from aggregate types.
15513
15514 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
15515
15516         PR bootstrap/47055
15517         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
15518
15519 2011-01-04  Philipp Thomas  <pth@suse.de>
15520
15521         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
15522         obvious typo.
15523
15524 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15525
15526         * function.c (thread_prologue_and_epilogue_insns): Do not crash
15527         on empty epilogue sequences.
15528
15529 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
15530
15531         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15532         non-static): New Driver options.
15533
15534 2011-01-04  Jie Zhang  <jie@codesourcery.com>
15535
15536         PR driver/47137
15537         * gcc.c (default_compilers[]): Set combinable field to 0
15538         for all assembly languages.
15539
15540 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
15541
15542         * config/mips/loongson3a.md: New file.
15543         * config/mips/mips.md: Include loongson3a.md.
15544         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15545         TUNE_LOONGSON_3A.
15546
15547 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
15548
15549         PR middle-end/47017
15550         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15551         instead of convert_memory_address_addr_space on the base expression.
15552
15553 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15554
15555         * config/spu/spu.c (spu_option_override): Update error text
15556         for bad -march= / -mtune= values.
15557
15558 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15559
15560         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15561         if branch-hint optimization will be performed.
15562
15563 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
15564
15565         PR tree-optimization/47148
15566         * ipa-split.c (split_function): Convert arguments to
15567         DECL_ARG_TYPE if possible.
15568
15569         PR tree-optimization/47155
15570         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15571         when computing uns.
15572
15573         PR rtl-optimization/47157
15574         * combine.c (try_combine): If undobuf.other_insn becomes
15575         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15576         and set *new_direct_jump_p too.
15577
15578 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
15579
15580         PR tree-optimization/47021
15581         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15582
15583 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
15584
15585         * gcc.c (process_command): Update copyright notice dates.
15586         * gcov.c (print_version): Likewise.
15587         * gcov-dump.c (print_version): Likewise.
15588         * mips-tfile.c (main): Likewise.
15589         * mips-tdump.c (main): Likewise.
15590
15591 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15592
15593         PR tree-optimization/46801
15594         * tree-sra.c (type_internals_preclude_sra_p): Check whether
15595         aggregate fields start at byte boundary instead of the bit-field flag.
15596
15597 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
15598
15599         PR driver/47137
15600         * gcc.c (main): Revert revision 168407.
15601
15602 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15603
15604         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15605
15606 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15607
15608         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15609         vector optab to expand vector/scalar shift, update gimple to vector.
15610
15611 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15612
15613         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15614         a thunk.
15615
15616 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15617
15618         PR tree-optimization/46984
15619         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15620         HOST_WIDE_INT.
15621         (cgraph_create_indirect_edge): Fixed line length.
15622         (cgraph_indirect_call_info): Declare.
15623         (cgraph_make_edge_direct) Update declaration.
15624         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15625         (cgraph_create_indirect_edge): Use it.
15626         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
15627         callees.
15628         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15629         the new thunk_delta representation.
15630         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15631         HOST_WIDE_INT.
15632         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15633         (ipa_read_indirect_edge_info): Likewise.
15634         * lto-cgraph.c (output_edge_opt_summary): New function.
15635         (output_node_opt_summary): Call it on all outgoing edges.
15636         (input_edge_opt_summary): New function.
15637         (input_node_opt_summary): Call it on all outgoing edges.
15638
15639 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
15640
15641         PR driver/47137
15642         * gcc.c (main): Don't check have_o when settting combine_inputs.
15643
15644 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
15645
15646         * regrename.c: Add general comment describing the pass.
15647         (struct du_head): Remove 'length' field.
15648         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15649         (regrename_optimize): Do not sort chains.  Rework comments, add others.
15650         Force renaming to the preferred class (if any) in the first pass and do
15651         not consider registers that belong to it in the second pass.
15652         (create_new_chain): Do not set 'length' field.
15653         (scan_rtx_reg): Likewise.
15654
15655 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
15656
15657         PR tree-optimization/47140
15658         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15659         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15660         to bit_value_binop.
15661
15662         PR rtl-optimization/47028
15663         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15664         parm_birth_insn instead of at the beginning of first bb.
15665
15666 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
15667
15668         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15669         Remove the word "see" before "@pxref".
15670         * doc/rtl.texi: Remove the word "see" before "@pxref".
15671
15672 2011-01-01  Jan Hubicka  <jh@suse.cz>
15673
15674         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15675         memory.
15676
15677 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
15678
15679         PR target/38662
15680         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15681
15682 \f
15683 Copyright (C) 2011 Free Software Foundation, Inc.
15684
15685 Copying and distribution of this file, with or without modification,
15686 are permitted in any medium without royalty provided the copyright
15687 notice and this notice are preserved.