Put back "register_operand" check in 32bit QI ext patterns.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
2
3         * config/i386/i386.md (*movqi_extv_1)): Put back
4         "register_operand" check in "type" calculation.
5         (*movqi_extzv_2): Likewise.
6
7 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
8
9         * doc/extend.texi (X86 Built-in Functions): Update pause
10         intrinsic.
11
12 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
13
14         PR bootstrap/49160
15         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
16         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
17         __divxc3, __divtc3): Wrap definitions in #ifndef.
18
19 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
20
21         PR target/49142
22         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
23         "register_operand" check and replace q_regs_operand with
24         QIreg_operand in "type" calculation.
25         (*movqi_extv_1): Likewise.
26         (*movqi_extzv_2_rex64): Likewise.
27         (*movqi_extzv_2): Likewise.
28
29         * config/i386/predicates.md (QIreg_operand): New.
30
31 2011-05-25  Richard Guenther  <rguenther@suse.de>
32
33         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
34         type-based offset disambiguation, streamline MEM_REF and
35         TARGET_MEM_REF handling.
36
37 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
38
39         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
40         (bdesc_special_args): Add pause intrinsic.
41
42         * config/i386/i386.md (UNSPEC_PAUSE): New.
43         (pause): Likewise.
44         (*pause): Likewise.
45         * config/i386/ia32intrin.h (__pause): Likewise.
46
47         * doc/extend.texi (X86 Built-in Functions): Add documentation for
48         pause intrinsic.
49
50 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
51
52         PR tree-optimization/46728
53         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
54         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
55         
56 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
57
58         * tree.h (struct tree_exp): Inherit from struct tree_typed.
59         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
60         instead of TS_COMMON.
61
62 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
63
64         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
65         LIBGCC2_GNU_PREFIX is defined.
66         (__N): New macro.
67         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
68         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
69         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
70         __clz_tab): Define using __N.
71         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
72         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
73         * target.def (libfunc_gnu_prefix): New hook.
74         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
75         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
76         * doc/tm.texi: Regenerate.
77         * system.h (LIBGCC2_GNU_PREFIX): Poison.
78         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
79         account.
80         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
81         (init_optabs): Likewise for the bswap libfuncs.
82         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
83         and divide.
84         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
85         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
86         * libgcc-std.ver: Remove.
87         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
88         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
89         libgcc-std.ver.
90         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
91         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
92         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
93         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
94         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
95         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
96         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
97         * config/fixed-bit.h (FIXED_OP): Define differently depending on
98         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
99         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
100
101 2011-05-25  Jan Hubicka  <jh@suse.cz>
102
103         * lto-streamer-out.c (output_record_start): Use lto_output_enum
104         (lto_output_tree): Use output_record_start.
105         * lto-streamer-in.c (input_record_start): Use lto_input_enum
106         (lto_get_pickled_tree): Use input_record_start.
107         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
108         (lto_value_range_error): New function.
109         * lto-streamer.h (lto_value_range_error): Declare.
110         (lto_output_int_in_range, lto_input_int_in_range): New functions.
111         (lto_output_enum, lto_input_enum): New macros.
112
113 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
114
115         * common.opt (flag_stack_usage_info): New variable.
116         (-Wstack-usage): New option.
117         * doc/invoke.texi (Warning options): Document -Wstack-usage.
118         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
119         <OPT_fstack_usage>: Likewise.
120         * toplev.c (output_stack_usage): Handle -Wstack-usage.
121         * calls.c (expand_call): Test flag_stack_usage_info variable instead
122         of flag_stack_usage.
123         (emit_library_call_value_1): Likewise.
124         * explow.c (allocate_dynamic_stack_space): Likewise.
125         * function.c (instantiate_virtual_regs ): Likewise.
126         (prepare_function_start): Likewise.
127         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
128         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
129         * config/arm/arm.c (arm_expand_prologue): Likewise.
130         (thumb1_expand_prologue): Likewise.
131         * config/avr/avr.c (expand_prologue): Likewise.
132         * config/i386/i386.c (ix86_expand_prologue): Likewise.
133         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
134         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
135         * config/mips/mips.c (mips_expand_prologue): Likewise.
136         * config/pa/pa.c (hppa_expand_prologue): Likewise.
137         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
138         * config/s390/s390.c (s390_emit_prologue): Likewise.
139         * config/sh/sh.c (sh_expand_prologue): Likewise.
140         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
141         * config/spu/spu.c (spu_expand_prologue): Likewise.
142
143 2011-05-25  Richard Guenther  <rguenther@suse.de>
144
145         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
146         (gimple_canonical_types_compatible_p): Likewise.
147
148 2011-05-25  Jan Hubicka  <jh@suse.cz>
149
150         PR middle-end/49062
151         * ipa.c (function_and_variable_visibility): Only add to same
152         comdat group list if DECL_ONE_ONLY.
153
154 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
155
156         PR rtl-optimization/49014
157         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
158
159 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
160
161         PR target/49128
162         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
163
164 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
165
166         PR rtl-optimization/48757
167         * ira-build.c (loop_with_eh_edge_p): Rename to
168         loop_with_complex_edge_p, check edges on complexity, make function
169         conditional.
170         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
171         conditional.
172
173 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
174
175         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
176         force flag_ira_share_save_slots to 0.
177
178 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
179
180         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
181         (vt_initialize): Set PROLOGUE_BB unconditionally.
182         Add block comment about CFA_BASE_RTX machinery.
183         Reset FP_CFA_OFFSET to -1 on all invalid paths.
184         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
185
186 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
187
188         PR objc/48187
189         * c-parser.c (c_parser_objc_class_instance_variables): More robust
190         parsing of syntax error in ObjC instance variable lists.  In
191         particular, avoid an infinite loop if there is a stray ']'.
192         Updated error message.
193
194 2011-05-24  Ian Lance Taylor  <iant@google.com>
195
196         * godump.c (go_define): Don't accept a string immediately after
197         another operand.
198
199 2011-05-24  Ian Lance Taylor  <iant@google.com>
200
201         * godump.c (struct godump_container): Add invalid_hash field.
202         (go_format_type): Return false if type is found in invalid_hash.
203         (go_output_typedef): Add invalid type to invalid_hash.
204         (go_finish): Create and delete invalid_hash.
205
206 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
207         
208         PR tree-optimization/46728
209         * tree-ssa-math-opts.c (powi_table): New.
210         (powi_lookup_cost): New.
211         (powi_cost): New.
212         (powi_as_mults_1): New.
213         (powi_as_mults): New.
214         (gimple_expand_builtin_powi): New.
215         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
216         (gate_cse_sincos): Remove sincos/cexp restriction.
217
218 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
219
220         PR target/3746
221         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
222         mips-tdump native.
223         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
224         * mips-tdump.c: Likewise.
225
226 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
227
228         PR target/49128
229         * config/i386/driver-i386.c (host_detect_local_cpu): Always
230         add -mno-XXX.  Handle FMA.
231
232 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
233
234         PR rtl-optimization/48633
235         * ira-build.c (loop_with_eh_edge_p): New function.
236         (mark_loops_for_removal): Use it.
237
238 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
239
240         PR rtl-optimization/48971
241         * ira.c (setup_pressure_classes): Don't check register move cost
242         for classes with one registers.  Don't add pressure class if there
243         is a pressure class with the same available hard registers.
244         Check contains_reg_of_mode.  Fix a typo in collecting
245         temp_hard_regset.  Ignore hard registers not belonging to a class.
246
247 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
248
249         PR target/49133
250         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
251
252 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
253             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
254
255         PR gcov-profile/48845
256         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
257
258 2011-05-24  Richard Guenther  <rguenther@suse.de>
259
260         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
261         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
262         (gimple_types_compatible_p_1): Adjust.
263         (iterative_hash_canonical_type): Do not bother about complete vs.
264         incomplete types.
265         (gimple_canonical_types_compatible_p): Likewise.
266
267 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
268
269         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
270
271 2011-05-24  Richard Guenther  <rguenther@suse.de>
272
273         PR bootstrap/49078
274         * gimple.c (gimple_register_canonical_type): Revert
275         previous change.
276         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
277         does not for a tree for the case where it matters.  Cache
278         pointer-type alias-sets.
279
280 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
281
282         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
283         (OBJS): Remove options.o, opts-common.o and prefix.o.
284         (OBJS-libcommon-target): New.
285         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
286         (BACKEND): Include libcommon-target.a.
287         (MOSTLYCLEANFILES): Include libcommon-target.a.
288         (libcommon-target.a): New.
289         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
290         prefix.o.
291
292 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
293
294         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
295         parts of output shared with the driver.
296         * optc-gen.awk: Don't generate parts of output not shared with the
297         driver.
298         * opth-gen.awk: Remove GCC_DRIVER conditionals.
299         * doc/options.texi (SourcerInclude): Mention options-save.c.
300         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
301         (OBJS): Add options-save.o.
302         (options-save.c, options-save.o): New.
303         (options.o): Update dependencies.
304         (gcc-options.o): Remove.
305         (mostlyclean): Remove options-save.c.
306
307 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
308
309         PR debug/49032
310         * dbxout.c: Include cgraph.h.
311         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
312         and without value expr, return NULL if no varpool node exists for
313         it or if it is not needed.
314         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
315
316         PR c/49120
317         * c-decl.c (start_decl): Convert expr to void_type_node.
318
319 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
320
321         PR rtl-optimization/48826
322         * emit-rtl.c (try_split): When splitting a call that is followed
323         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
324
325 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
326
327         * cfgexpand.c (expand_debug_expr): For unused non-addressable
328         parameters passed in memory prefer using DECL_INCOMING_RTL over
329         the pseudos it will be copied into.
330
331 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
332
333         PR target/47315
334         * config/i386/i386.c (ix86_option_override_internal): Save the
335         initial options after checking vzeroupper.
336
337 2011-05-23  David Li  <davidxl@google.com>
338
339         PR tree-optimization/48988
340         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
341         Initialize has_valid_pred for each pred chain.
342
343 2011-05-23  Richard Guenther  <rguenther@suse.de>
344
345         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
346         (iterative_hash_gimple_type): Always hash type names.
347
348 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
349
350         * c-typeck.c (build_function_call_vec): Tweak call to
351         check_function_arguments.
352
353 2011-05-23  Richard Guenther  <rguenther@suse.de>
354
355         PR tree-optimization/49115
356         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
357         is not necessarily carried out, do not claim it kills the ref.
358         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
359
360 2011-05-23  Richard Guenther  <rguenther@suse.de>
361
362         PR middle-end/15419
363         * builtins.c (fold_builtin_memory_op): Be less restrictive about
364         what pointer types we accept for folding.
365
366 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
367
368         * gthr-gnat.c: Remove.
369         * gthr-gnat.h: Remove.
370         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
371         * config/t-freebsd (LIB2ADDEH): Likewise.
372         * config/t-linux (LIB2ADDEH): Likewise.
373         * config/t-sol2 (LIB2ADDEH): Likewise.
374         * config/ia64/t-vms (LIB2ADDEH): Likewise.
375         * configure.ac (target_thread_file): Remove gnat handling.
376         * configure: Regenerate.
377         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
378
379 2011-05-23  Tristan Gingold  <gingold@adacore.com>
380             Eric Botcazou  <ebotcazou@adacore.com>
381
382         * gcov.c (create_file_names): If no object directory is specified,
383         keep the directory of the file.
384
385 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
386
387         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
388         * configure: Regenerate.
389
390 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
391
392         PR middle-end/48973
393         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
394         failed and the comparison has a single bit signed type, use
395         constm1_rtx instead of const1_rtx for true value.
396         (do_store_flag): If ops->type is single bit signed type, disable
397         signel bit test optimization and pass -1 instead of 1 as last
398         parameter to emit_store_flag_force.
399
400 2011-05-23  Tom de Vries  <tom@codesourcery.com>
401
402         PR target/45098
403         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
404         function.
405         (infer_loop_bounds_from_undefined): Use new function.
406
407 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
408
409         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
410         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
411         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
412         and -O0 otherwise.
413         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
414
415 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
416
417         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
418         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
419         returns true.
420
421 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
422
423         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
424
425 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
426
427         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
428         UNSPEC_MOVE_PIC pattern.
429
430 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
431
432         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
433         (sparc-*-rtems*): Likewise.
434         (sparc64-*-elf*): Likewise.
435         (sparc64-*-rtems*): Likewise.
436         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
437         * config/sparc/t-crtin: New file.
438         * config/sparc/t-sol2 (crti.o): Delete rule.
439         (crtn.o): Likewise.
440         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
441         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
442         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
443         (ENDFILE_SPEC): Add crtn.o.
444
445 2011-05-22  Tom de Vries  <tom@codesourcery.com>
446
447         PR middle-end/48689
448         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
449         CODE_CONTAINS_STRUCT (TS_COMMON).
450
451 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
452
453         PR middle-end/49029
454         * expmed.c (extract_fixed_bit_field): Test whether target can be used
455         only after deciding which mode to use.
456
457 2011-05-22  Tom de Vries  <tom@codesourcery.com>
458
459         PR target/45098
460         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
461         for call to get_shiftadd_cost.
462
463 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
464
465         PR target/49104
466         * config/i386/cpuid.h (bit_MMXEXT): New define.
467
468 2011-05-22  Nick Clifton  <nickc@redhat.com>
469
470         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
471         initialisation of non-existant args[2] element.  Use args[] array
472         not arg[] array to pass arguments to build_function_type_list.
473
474 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
475
476         PR tree-optimization/49087
477         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
478
479 2011-05-21  Jason Merrill  <jason@redhat.com>
480
481         PR c++/49092
482         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
483         static storage duration.
484
485 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
486
487         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
488         frame pointer.
489
490 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
491
492         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
493         false if there are call-saved registers here...
494         (sparc_can_use_return_insn_p): ...but here instead.
495         (save_or_restore_regs): Fix thinko.
496         (sparc_expand_prologue): Use current_function_is_leaf.
497         (sparc_frame_pointer_required): Likewise.
498
499 2011-05-21  Nick Clifton  <nickc@redhat.com>
500
501         PR target/49098
502         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
503
504 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
505
506         * gengtype.c (walk_type): Implemented "atomic" GTY option.
507         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
508
509 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
510
511         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
512         * optc-gen.awk: Move common code to opt-read.awk.
513         * opth-gen.awk: Likewise.
514         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
515
516 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
517
518         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
519
520 2011-05-20  Tom de Vries  <tom@codesourcery.com>
521
522         PR target/45098
523         * tree-ssa-loop-ivopts.c: Include expmed.h.
524         (get_shiftadd_cost): New function.
525         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
526
527 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
528
529         PR bootstrap/49086
530         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
531         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
532
533 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
534
535         * Makefile.in: Update comment referring to $(OBJS-common).
536
537 2011-05-20  Ian Lance Taylor  <iant@google.com>
538
539         * godump.c (go_output_typedef): Put enum constants in the macro
540         hash table to avoid duplicate Go const definitions.
541
542 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
543
544         * Makefile.in (LIBDEPS): Add libcommon.a.
545         (LIBS): Likewise.
546         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
547         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
548         pretty-print.o and version.o.
549         (OBJS-libcommon): New.
550         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
551         (BACKEND): Add libcommon.a.
552         (MOSTLYCLEANFILES): Likewise.
553         (libcommon.a): New.
554         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
555         (cpp$(exeext)): Likewise.
556         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
557         pretty-print.o and input.o.
558         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
559         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
560         (errors.o): Remove.
561         (mips-tfile): Don't explicitly use version.o.
562         (mips-tdump): Likewise.
563         (gcov.o): Depend on $(DIAGNOSTIC_H).
564         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
565         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
566         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
567         * gcov-dump.c: Include intl.h and diagnostic.h.
568         (main): Initialize diagnostics.
569         * gcov.c: Include diagnostic.h.
570         (fnotice): Remove.
571         (main): Initialize diagnostics.
572         * lto-wrapper.c: Include diagnostic.h.
573         (main): Initialize diagnostics.
574
575 2011-05-20  Michael Matz  <matz@suse.de>
576
577         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
578
579 2011-05-20  Michael Matz  <matz@suse.de>
580             Richard Guenther  <rguenther@suse.de>
581
582         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
583         use lto_streamer_cache_append directly instead of returning a VEC.
584         (preload_common_node): Remove.
585         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
586         track seen nodes.
587         (lto_streamer_cache_create): Call lto_preload_common_nodes.
588
589 2011-05-20  Richard Guenther  <rguenther@suse.de>
590
591         PR tree-optimization/49079
592         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
593         MEM_REFs correctly for the trailing array access detection.
594         Special case constants the same way as decls for overall size
595         constraining.
596
597 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
598
599         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
600         argument expansion.
601
602 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
603
604         PR tree-optimization/49073
605         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
606         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
607         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
608
609 2011-05-20  Richard Guenther  <rguenther@suse.de>
610
611         PR middle-end/48849
612         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
613         of pointer types the same way the middle-end does.
614
615 2011-05-20  Richard Guenther  <rguenther@suse.de>
616
617         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
618         or pointer-to chains.  Delay all fixup to uniquify_nodes.
619
620 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
621
622         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
623         (fma4_fmaddsub): Likewise
624
625 2011-05-19  Jan Hubicka  <jh@suse.cz>
626
627         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
628         (GIMPLE_TYPE_PAIR_SIZE): New macro.
629         (type_pair_cache): New static var.
630         (lookup_type_pair): Use fixed sized custom hash; make inline.
631         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
632         calls of lookup_type_pair.
633         (print_gimple_types_stats): Remove cache stats.
634         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
635         and gtc_ob.
636
637 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
638
639         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
640         when TARGET_RDRND is active.
641         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
642         Generate dummy SImode target register when target is NULL.
643
644 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
645
646         * config/arm/arm-fpus.def: New.
647         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
648         arm-fpus.def.
649         * config/arm/arm-tables.opt: Regenerate.
650         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
651         (arm_option_override): Don't decode FPU name to string here.
652         * config/arm/arm.opt (mfpu=): Use Enum.
653         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
654         Update dependencies.
655
656 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
657
658         * collect2.c: Include diagnostic.h.
659         (fatal_perror, fatal, error, fancy_abort): Remove.
660         (main): Set progname.  Call xmalloc_set_program_name and
661         diagnostic_initialize.
662         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
663         scan_libraries, resolve_lib_name): Call fatal_error instead of
664         fatal and fatal_perror.
665         * collect2.h (error, fatal, fatal_perror): Don't declare.
666         * tlink.c: Include diagnostic-core.h.
667         (recompile_files): Call fatal_error instead of fatal_perror.
668         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
669         pretty-print.o and input.o.
670         (collect2.o, tlink.o): Update dependencies.
671
672 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
673
674         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
675
676 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
677
678         PR target/40483
679         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
680         COMDAT group syntax, both SPARC and x86 variants.
681         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
682         * configure: Regenerate.
683         * config/sol2.h (TARGET_SOLARIS): Define.
684         (PUSHSECTION_FORMAT): Remove.
685         (SECTION_NAME_FORMAT): Define.
686         * config/sol2.c: Include hashtab.h.
687         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
688         expansion, using SECTION_NAME_FORMAT.
689         (solaris_comdat_htab): New variable.
690         (struct comdat_entry): Define.
691         (comdat_hash): New function.
692         (comdat_eq): New function.
693         (solaris_elf_asm_comdat_section): New function.
694         (solaris_define_comdat_signature): New function.
695         (solaris_code_end): New function.
696         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
697         (solaris_code_end): Declare.
698         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
699         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
700         solaris_code_end.
701         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
702         Remove ATTRIBUTE_UNUSED.
703         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
704         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
705         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
706         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
707         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
708         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
709         (PUSHSECTION_FORMAT): Remove.
710         (SECTION_NAME_FORMAT): Redefine.
711
712 2011-05-19  Kai Tietz  <ktietz@redhat.com>
713
714         * tree-cfg.c (verify_gimple_assign_binary): Barf on
715         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
716         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
717
718 2011-05-19  Anatoly Sokolov <aesok@post.ru>
719             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
720
721         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
722
723 2011-05-19  Richard Guenther  <rguenther@suse.de>
724
725         PR middle-end/48985
726         * tree-object-size.c (addr_object_size): If the pointed-to
727         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
728
729 2011-05-19  Richard Guenther  <rguenther@suse.de>
730
731         * gimple.c (gimple_types_compatible_p_1): Compare names of
732         the types themselves.
733         (iterative_hash_gimple_type): And hash them that way.
734         (gimple_register_type_1): If we register a main variant properly
735         initialize the leader to ourselves.
736
737 2011-05-19  Tom de Vries  <tom@codesourcery.com>
738
739         PR target/45098
740         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
741         get_loop_invariant_expr_id.
742         (get_loop_invariant_expr_id): Use get_expr_id.
743         (parm_decl_cost): New function.
744         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
745         Improve bound cost estimation.  Use different inv_expr_id for elim and
746         express cases.
747
748 2011-05-19  Tom de Vries  <tom@codesourcery.com>
749
750         PR target/45098
751         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
752         cost_base.cost == 0.
753
754 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
755
756         PR target/49002
757         * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
758         Properly handle load cast.
759
760 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
761
762         PR tree-optimization/49039
763         * tree-vrp.c (extract_range_from_binary_expr): For
764         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
765         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
766
767 2011-05-18  Tom de Vries  <tom@codesourcery.com>
768
769         PR target/45098
770         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
771
772 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
773
774         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
775         (*tls_global_dynamic_64): Ditto.
776         (*tls_local_dynamic_base_32_gnu): Ditto.
777         (*tls_local_dynamic_base_64): Ditto.
778         (tls_initial_exec_64_sun): Ditto.
779
780 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
781
782         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
783         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
784         bf592-none.
785         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
786         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
787         * config/bfin/bfin.c (bfin_cpus): Add bf592.
788         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
789         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
790         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
791         * config/bfin/elf.h (LIB_SPEC): Add bf592.
792
793 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
794
795         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
796         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
797         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
798         target_thread_pointer, arm_structure_size_boundary, struct
799         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
800         struct abi_name, arm_all_abis): Remove.
801         (arm_option_override) Don't process most enumerated option values here.
802         Don't process target_fpe_name here.  Work with integer not string for
803         structure size boundary; use separate diagnostics for each case.
804         * config/arm/arm.h (enum float_abi_type, enum
805         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
806         to arm-opts.h.
807         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
808         arm_structure_size_boundary): Remove.
809         * config/arm/arm.opt (mabi=): Use Enum and Init.
810         (arm_abi_type): New Enum and EnumValue entries.
811         (mfloat-abi=): Use Enum and Init.
812         (float_abi_type): New Enum and EnumValue entries.
813         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
814         (mfp16-format=): Use Enum and Init.
815         (arm_fp16_format_type): New Enum and EnumValue entries.
816         (mstructure-size-boundary=): Use UInteger and Init.
817         (mtp=): Use Enum and Init.
818         (arm_tp_type): New Enum and EnumValue entries.
819
820 2011-05-18  Richard Guenther  <rguenther@suse.de>
821
822         PR tree-optimization/49018
823         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
824         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
825         gimple_has_side_effects.
826
827 2011-05-18  Richard Guenther  <rguenther@suse.de>
828
829         * gimple.c (gimple_register_type_1): New function, split out from ...
830         (gimple_register_type): ... here.  Avoid infinite recursion.
831
832 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
833
834         PR tree-optimization/41881
835         * tree-vectorizer.h (struct _loop_vec_info): Add new field
836         reduction_chains along with a macro for its access.
837         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
838         (destroy_loop_vec_info): Free reduction chains.
839         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
840         (vect_is_slp_reduction): New function.
841         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
842         (vect_create_epilog_for_reduction): Support SLP reduction chains.
843         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
844         definition types for reduction chains.
845         (vect_supported_load_permutation_p): Don't allow permutations for
846         reduction chains.
847         (vect_analyze_slp_instance): Support reduction chains.
848         (vect_analyze_slp): Try to build SLP instance from reduction chains.
849         (vect_get_constant_vectors):  Handle reduction chains.
850         (vect_schedule_slp_instance): Mark the first statement of the
851         reduction chain as reduction.
852
853 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
854
855         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
856         names for group elements access.
857         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
858         reduction chains as well.  Remove data reference and interleaving
859         related words from the fields names.
860         * tree-vect-loop.c (vect_transform_loop): Use new names for group
861         elements access.
862         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
863         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
864         vect_update_interleaving_chain, vect_same_range_drs,
865         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
866         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
867         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
868         vect_analyze_group_access, vect_analyze_data_ref_access,
869         vect_create_data_ref_ptr, vect_transform_strided_load,
870         vect_record_strided_load_vectors): Likewise.
871         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
872         vect_model_load_cost, vectorizable_store, vectorizable_load,
873         vect_remove_stores, new_stmt_vec_info): Likewise.
874         * tree-vect-slp.c (vect_build_slp_tree,
875         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
876
877 2011-05-18  Richard Guenther  <rguenther@suse.de>
878
879         PR middle-end/48989
880         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
881         operand verification.
882         (verify_gimple_assign_binary): Likewise.
883         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
884         to non-1-precision BOOLEAN_TYPEs.
885
886 2011-05-18  Tom de Vries  <tom@codesourcery.com>
887
888         PR target/45098
889         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
890
891 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
892
893         PR tree-optimization/49000
894         * tree-ssa.c (execute_update_addresses_taken): Call
895         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
896         be rewritten and decl has been marked for renaming, reset
897         the debug stmt.
898
899 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
900
901         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
902         enum_opts_set when testing if attributes have set -mfpmath=.
903
904 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
905
906         * config/mips/mips.c (mips_handle_option): Remove unused variable.
907
908 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
909
910         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
911         info->entry with 0
912         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
913         id.transform_lang_insert_block with NULL.
914
915 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
916
917         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
918         (output_fp_compare): Change args 3 and 4 to bool.
919         (ix86_expand_call): Change arg 6 to bool.
920         (ix86_attr_length_immediate_default): Change arg 2 to bool.
921         (ix86_attr_length_vex_default): Change arg 3 to bool.
922         * config/i386/i386.md: Update all uses.
923         * config/i386/i386.c: Ditto.
924         (ix86_flags_dependent): Change return type to bool.
925
926 2011-05-17  Richard Guenther  <rguenther@suse.de>
927
928         * gimple.c (type_hash_pair_compare): Fix comparison.
929
930 2011-05-17  Richard Guenther  <rguenther@suse.de>
931
932         * gimple.c (iterative_hash_gimple_type): Simplify singleton
933         case some more, fix final hash value of the non-singleton case.
934
935 2011-05-17  Richard Guenther  <rguenther@suse.de>
936
937         PR bootstrap/49013
938         Revert
939         2011-05-16  Richard Guenther  <rguenther@suse.de>
940
941         * gimple.c (gimple_types_compatible_p_1): Use names of the
942         type itself, not its main variant.
943         (iterative_hash_gimple_type): Likewise.
944
945 2011-05-17  Richard Guenther  <rguenther@suse.de>
946
947         * gimple.c (gimple_register_canonical_type): Use the main-variant
948         leader for computing the canonical type.
949
950 2011-05-17  Nick Clifton  <nickc@redhat.com>
951
952         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
953         moves.
954
955         * config/rx/rx.md: Add peephole to remove redundant extensions
956         after loads.
957         (bitset_in_memory): Use rx_restricted_mem_operand.
958         (bitinvert_in_memory): Likewise.
959         (bitclr_in_memory): Likewise.
960
961 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
962             Nick Clifton  <nickc@redhat.com>
963
964         * config/rx/rx.md: Add peepholes to match a register move followed
965         by a comparison of the moved register.  Replace these with an
966         addition of zero that does both actions in one instruction.
967
968 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
969
970         PR target/48986
971         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
972         predicate to allow CONST_INT.
973         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
974
975 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
976
977         * opts-common.c (opt_enum_arg_to_value): New.
978         * opts.h (opt_enum_arg_to_value): Declare.
979         * config/i386/i386.opt (fpmath): Remove.
980         (mfpmath=): Use Enum, Init and Save.
981         (fpmath_unit): New Enum and EnumValue entries.
982         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
983         name for function fpmath state.
984         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
985         * config/i386/i386.c: Include diagnostic.h.
986         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
987         (ix86_target_string): Take enum fpmath_unit value instead of string.
988         (ix86_debug_options): Update call to ix86_target_string.
989         (ix86_option_override_internal): Don't process fpmath strings here.
990         (x86_function_specific_save, ix86_function_specific_restore):
991         Don't handle fpmath state specially.
992         (ix86_function_specific_print): Pass fpmath state to
993         ix86_target_string instead of printing in this function.
994         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
995         Handle enum attributes.
996         (IX86_ATTR_ENUM, ix86_opt_enum): New.
997         (ix86_valid_target_attribute_tree): Update option_strings
998         handling.  Handle fpmath as enum option.
999         (ix86_can_inline_p): Update field names for function fpmath state.
1000         (ix86_expand_builtin): Update call to ix86_target_string.
1001         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
1002         (ix86_fpmath): Remove.
1003         * config/i386/t-i386 (i386.o): Update dependencies.
1004
1005 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
1006
1007         PR preprocessor/48677
1008         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
1009         from decoded_options[0], not from itself.
1010
1011 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
1012
1013         * config/i386/constraints.md (z): New constraint.
1014         * config/i386/i386.c (c): New mode attribute.
1015         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
1016         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
1017         constraint for operand 0.
1018         (*call_vzeroupper): Ditto.
1019         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
1020         (*call_rex64_ms_sysv_vzeroupper): Ditto.
1021         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
1022         Use "lzm" constraint for operand 0.
1023         (*call_pop_vzeroupper): Ditto.
1024         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
1025         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
1026         constraint for operand 0.
1027         (*sibcall_vzeroupper): Ditto.
1028         (*sibcall_rex64_ms_sysv): Ditto.
1029         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
1030         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
1031         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
1032         (*sibcall_pop_vzeroupper): Ditto.
1033         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
1034         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
1035         mode iterator.  Use "<c>zm" constraint for operand 1.
1036         (*call_value_vzeroupper): Ditto.
1037         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
1038         for operand 1.
1039         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
1040         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
1041         *call_value_pop_1.  Use "lzm" constraint for operand 1.
1042         (*call_value_pop_vzeroupper): Ditto.
1043         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
1044         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
1045         mode iterator.  Use "Uz" constraint for operand 1.
1046         (*sibcall_value_vzeroupper): Ditto.
1047         (*sibcall_value_rex64_ms_sysv): Ditto.
1048         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
1049         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
1050         constraint for operand 1.
1051         (*sibcall_value_pop_vzeroupper): Ditto.
1052         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
1053         and "z" constraint for operand 2.
1054         (*tls_global_dynamic_32_gnu): Ditto.
1055         (*tls_local_dynamic_base_32_gnu): Ditto.
1056         (*tls_local_dynamic_base_64): Ditto.
1057         (*tls_local_dynamic_32_once): Ditto.
1058         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
1059         Update all callers.
1060         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
1061
1062 2011-05-16  Richard Guenther  <rguenther@suse.de>
1063
1064         * gimple.c (gimple_types_compatible_p_1): Use names of the
1065         type itself, not its main variant.
1066         (iterative_hash_gimple_type): Likewise.
1067
1068 2011-05-16  Richard Guenther  <rguenther@suse.de>
1069
1070         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
1071         always visit pointer target and function result and argument types.
1072
1073 2011-05-16  Jason Merrill  <jason@redhat.com>
1074
1075         PR c++/48999
1076         * tree-inline.c (copy_statement_list): Put back recursion.
1077
1078 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
1079
1080         PR target/27663
1081         PR target/41076
1082         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
1083         * config/avr/avr.md ("*ior<mode>qi.byte0",
1084         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
1085
1086 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
1087
1088         PR target/45099
1089         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
1090         register is needed for a function argument.
1091
1092 2011-05-16  Richard Guenther  <rguenther@suse.de>
1093
1094         * gimple.c (struct type_hash_pair): New type.
1095         (type_hash_pair_compare): New function.
1096         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
1097
1098 2011-05-16  Revital Eres  <revital.eres@linaro.org>
1099
1100         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
1101
1102 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
1103
1104         * config/i386/i386.md (floating point move splitters): Fix
1105         usage of standard_80387_constant_p.
1106         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
1107
1108 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
1109
1110         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
1111
1112 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
1113
1114         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
1115         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
1116         (tree_ssa_lim_finalize): Likewise.
1117
1118 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
1119
1120         * config/i386/constraint.md (Yd, Yx): New register constraints.
1121         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
1122         Yd conditional register constraint.
1123         (*movtf_internal): Use standard_sse_constant_opcode.
1124         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
1125         Yx conditional register constraint.
1126         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
1127         Yd conditional register constraint.  Use standard_sse_constant_p to
1128         check for valid SSE constants and call standard_sse_constant_opcode to
1129         output SSE insn.
1130         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
1131         constants and call standard_sse_constant_opcode to output SSE insn.
1132         * config/i386/i386.c (ix86_option_ovverride_internal): Set
1133         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
1134         optimize_size is set.
1135         (standard_sse_constant_opcode): Output conditional AVX insn templates.
1136
1137 2011-05-14  Tobias Burnus  <burnus@net-b.de>
1138
1139         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
1140
1141 2011-05-13  Martin Jambor  <mjambor@suse.cz>
1142
1143         * ipa-prop.c (ipa_cst_from_jfunc): New function.
1144         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
1145         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
1146         (evaluate_conditions_for_ipcp_clone): Removed.
1147         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
1148         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
1149         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
1150
1151 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
1152
1153         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
1154         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
1155         lieu of MAY_HAVE_DEBUG_STMTS.
1156         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
1157         debug statements if !MAY_HAVE_DEBUG_STMTS.
1158
1159 2011-05-13  Martin Thuresson  <martint@google.com>
1160
1161         PR gcov-profile/47793
1162         * libgcov.c (gcov_exit): Support relative profile paths.
1163         * doc/invoke.texi (-fprofile-dir): Update for above change.
1164
1165 2011-05-13  Richard Guenther  <rguenther@suse.de>
1166
1167         * gimple.c (gimple_canonical_types_compatible_p): Do not use
1168         type-pair caching, do not compare hashes.
1169
1170 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
1171
1172         PR middle-end/48965
1173         * tree-cfg.c (edge_to_cases_cleanup): Return true.
1174         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
1175
1176 2011-05-13  Kai Tietz  <ktietz@redhat.com>
1177
1178         * gimplify.c (gimplify_expr): Make sure operand is boolified.
1179         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
1180         compatible type for TRUTH_NOT_EXPR.
1181
1182 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
1183
1184         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
1185         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
1186         can_create_pseudo_p ().
1187
1188 2011-05-13  Richard Guenther  <rguenther@suse.de>
1189
1190         PR lto/48978
1191         * gimple.c (iterative_hash_gimple_type): Revert change in
1192         pointer target and function result and argument hashing.
1193
1194 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
1195
1196         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
1197         (*movxf_internal_nointeger): Ditto.
1198         (*movdf_internal_rex64): Ditto.
1199         (*movdf_internal): Ditto.
1200         (*movdf_internal_nointeger): Ditto.
1201         (*movsf_internal): Ditto.
1202         (sincos splitters): Use can_create_pseudo ().
1203
1204 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
1205
1206         * config/i386/i386-opts.h: New.
1207         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
1208         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
1209         ix86_section_threshold): Remove.
1210         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
1211         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
1212         OPT_mbranch_cost_.
1213         (ix86_option_override_internal): Don't decode strings for options
1214         other than -march=, -mtune= and -mfpmath=.  Don't allow for
1215         __attribute__ uses in remaining diagnostics for options with
1216         string arguments.  Don't check for integer arguments being negative.
1217         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
1218         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
1219         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
1220         ix86_branch_cost, ix86_section_threshold): Remove.
1221         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
1222         HeaderInclude.
1223         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
1224         but not Var.
1225         (masm=): Use Enum and Init.
1226         (asm_dialect): New Enum and EnumValue entries.
1227         (mbranch-cost=): Use UInteger.
1228         (mlarge-data-threshold=): Use UInteger and Init.
1229         (mcmodel=): Use Enum and Init.
1230         (cmodel): New Enum and EnumValue entries.
1231         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
1232         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
1233         mregparm=): Use UInteger.
1234         (mstringop-strategy=): Use Enum and Init.
1235         (stringop_alg): New Enum and EnumValue entries.
1236         (mtls-dialect=): Use Enum and Init.
1237         (tls_dialect): New Enum and EnumValue entries.
1238         (mabi=): Use Enum and Init.
1239         (calling_abi): New Enum and EnumValue entries.
1240         (mveclibabi=): Use Enum and Init.
1241         (ix86_veclibabi): New Enum and EnumValue entries.
1242
1243 2011-05-13  Nick Clifton  <nickc@redhat.com>
1244
1245         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
1246         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
1247
1248 2011-05-13  Kai Tietz  <ktietz@redhat.com>
1249
1250         PR middle-end/48984
1251         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
1252         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
1253         (gimple_boolify): Check for cast for boolean_type_node instead for
1254         BOOLEAN_TYPE.
1255
1256 2011-05-13  Richard Guenther  <rguenther@suse.de>
1257
1258         PR tree-optimization/48172
1259         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
1260         multiplying by number of iterations for equal step.
1261         (vect_create_cond_for_alias_checks): Likewise.
1262
1263 2011-05-13  Andreas Schwab  <schwab@redhat.com>
1264
1265         * configure.ac: Use AS_HELP_STRING throughout.
1266         * configure: Regenerate.
1267
1268 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
1269
1270         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
1271         (ix86_emit_restore_regs_using_mov): Likewise.
1272         (ix86_emit_restore_sse_regs_using_mov): Likewise.
1273
1274 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
1275
1276         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
1277         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
1278         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
1279         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
1280         RTX_OK_FOR_OLO10_P): ...here.
1281         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
1282         SYMBOLIC_CONST.
1283
1284 2011-05-12  Kai Tietz  <ktietz@redhat.com>
1285
1286         * gimplify.c (gimple_boolify): Re-boolify expression
1287         arguments even if expression type is of kind BOOLEAN_TYPE.
1288         (gimplify_boolean_expr): Removed.
1289         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
1290         and XOR. Additional take care that we keep expression's type.
1291         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
1292         of TRUTH_AND|OR|XOR_EXPR.
1293
1294 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
1295
1296         PR tree-optimization/48975
1297         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
1298         on all bbs here and free and clear ifc_bbs at the end.
1299
1300 2011-05-12  Richard Guenther  <rguenther@suse.de>
1301
1302         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
1303         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
1304         until after simple checks.
1305         (gimple_types_compatible_p): Likewise.
1306         (iterative_hash_gimple_type): Always hash pointer targets
1307         and function return and argument types.
1308         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
1309         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
1310         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
1311         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
1312         completely in the simple compare section.
1313         (gimple_register_canonical_type): Query the cache again after
1314         registering.
1315
1316 2011-05-12  Richard Guenther  <rguenther@suse.de>
1317
1318         PR tree-optimization/48172
1319         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
1320         the number of iterations from the segment size calculation.
1321         (vect_create_cond_for_alias_checks): Adjust.
1322
1323 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
1324
1325         PR debug/48967
1326         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
1327         if validate_subreg fails.
1328
1329 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
1330
1331         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
1332         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
1333         early.
1334
1335 2011-05-12  DJ Delorie  <dj@redhat.com>
1336
1337         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
1338         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
1339         created builtin into rx_builtins array.
1340         (rx_builtin_decl): New function.
1341         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
1342
1343 2011-05-12  DJ Delorie  <dj@redhat.com>
1344             Nick Clifton  <nickc@redhat.com>
1345
1346         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
1347         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
1348         (rx_is_legitimate_address): Add pre-decrement and post-increment
1349         addressing in HImode and QImode.  Fix test for out of range
1350         REG+INT addressing.
1351         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
1352         (rx_align_for_label): Test label before extracting its usage count.
1353         (rx_adjust_insn_lengths): Fix selection of insn codes.
1354         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
1355
1356 2011-05-11  Jason Merrill  <jason@redhat.com>
1357
1358         * tree.c (type_hash_canon): Use struct tree_type_non_common.
1359
1360 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
1361
1362         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
1363         reindent the subsequent block.
1364
1365 2011-05-11  Satoru Takabayashi  <satorux@google.com>
1366             Paul Pluzhnikov  <ppluzhnikov@google.com>
1367
1368         * doc/install.texi (Configuration): Document --with-linker-hash-style.
1369         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
1370         * config.in: Add LINKER_HASH_STYLE.
1371         * configure.ac: Add --with-linker-hash-style.
1372         * configure: Regenerate.
1373
1374 2011-05-11  Richard Guenther  <rguenther@suse.de>
1375
1376         PR middle-end/48964
1377         * gimple.c (iterative_hash_canonical_type): Fix typo.
1378
1379 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
1380
1381         * config/i386/i386.c (legitimize_tls_address)
1382         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1383         expanders directly for TARGET_GNU2_TLS.  Determine pic and
1384         __tls_get_addr symbol reference here.  Update call to
1385         gen_tls_global_dynamic_{32,64} for added arguments.
1386         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1387         expanders directly for TARGET_GNU2_TLS.  Determine
1388         __tls_get_addr symbol reference here.  Update call to
1389         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
1390         unique UNSPEC REG_EQUIV to libcall block.
1391         (ix86_tls_get_addr): Declare static.
1392         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
1393         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
1394         Do not determine pic and __tls_get_addr symbol reference here. Do not
1395         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
1396         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
1397         (tls_global_dynamic_64): Add operand 2.  Do not determine
1398         __tls_get_addr symbol reference here.  Do not call
1399         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
1400         (tls_local_dynamic_base64): Ditto for operand 1.
1401
1402 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
1403
1404         * function.c (expand_function_start): Initialize stack_check_probe_note
1405         only if the generic stack checking mechanism is used.
1406
1407 2011-05-11  Richard Guenther  <rguenther@suse.de>
1408
1409         PR tree-optimization/15256
1410         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1411         (A & B) | C, combine (A op CST1) op CST2.
1412         (tree_ssa_forward_propagate_single_use_vars): Only bother to
1413         visit assigns that have uses.
1414
1415 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
1416
1417         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
1418         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1419         (unpack_ts_type_common_value_fields): ...this.  Update comment.
1420         (unpack_value_fields): Adjust for renaming.
1421         (lto_input_ts_type_tree_pointers): Split into...
1422         (lto_input_ts_type_common_tree_pointer): ...this and...
1423         (lto_input_ts_type_non_common_tree_pointers): ...this.
1424         (lto_input_tree_pointers): Adjust for above split.
1425         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1426         (pack_ts_type_common_value_fields): ...this.  Update comment.
1427         (lto_output_ts_type_tree_pointers): Split into...
1428         (lto_output_ts_type_common_tree_pointers): ...this and...
1429         (lto_output_ts_type_non_common_tree_pointers): ...this.
1430         (lto_output_tree_pointers): Adjust for above split.
1431         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1432         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1433         * stor-layout.c (vector_type_mode): Adjust location of mode field.
1434         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1435         Define.
1436         (struct tree_type): Split into...
1437         (struct tree_type_common: ...this and...
1438         (struct tree_type_with_lang_specific): ...this and...
1439         (struct tree_type_non_common): ...this.  Adjust accessor macros
1440         accordingly.
1441         (TYPE_VALUES_RAW): Define.
1442         (union tree_node): Update for above changes.
1443         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1444         TS_TYPE_NON_COMMON.
1445         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1446         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1447         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1448         * treestructu.def (TS_TYPE): Remove.
1449         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1450         Define.
1451
1452 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
1453
1454         PR debug/48159
1455         * tree-ssa.c (reset_debug_uses): New function.
1456         * tree-flow.h (reset_debug_uses): New prototype.
1457         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1458         * tree-loop-distribution.c (generate_loops_for_partition): Call
1459         reset_debug_uses on the stmts that will be removed.  Keep around
1460         all debug stmts, don't count them as bits in partition bitmap.
1461         (generate_builtin): Don't count debug stmts or labels as bits in
1462         partition bitmap.
1463
1464 2011-05-11  Richard Guenther  <rguenther@suse.de>
1465
1466         * gimple.c (gimple_type_hash_1): Merge with ...
1467         (gimple_type_hash): ... this.
1468         (gtc_visit): Remove mode parameter and simplify accordingly.
1469         (gimple_types_compatible_p_1): Likewise.
1470         (gimple_types_compatible_p): Likewise.
1471         (iterative_hash_gimple_type): Likewise.
1472         (visit): Likewise.
1473         (gimple_type_eq): Adjust.
1474
1475 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1476
1477         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1478         enters the branch create an anti edge in the opposite direction
1479         to prevent the creation of reg-moves.
1480         * modulo-sched.c: Adjust comment to reflect the fact we are
1481         scheduling closing branch.
1482         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1483         (stage_count): New field in struct partial_schedule.
1484         (calculate_stage_count): New function.
1485         (normalize_sched_times): Rename to reset_sched_times and handle
1486         incrementing the sched time of the nodes by a constant value
1487         passed as parameter.
1488         (duplicate_insns_of_cycles): Skip closing branch.
1489         (sms_schedule_by_order): Schedule closing branch.
1490         (ps_insn_find_column): Handle closing branch.
1491         (sms_schedule): Call reset_sched_times and adjust the code to
1492         support scheduling of the closing branch.
1493         (ps_insert_empty_row): Update calls to normalize_sched_times
1494         and rotate_partial_schedule functions.
1495
1496 2011-05-11  Richard Guenther  <rguenther@suse.de>
1497
1498         PR middle-end/48953
1499         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1500
1501 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
1502
1503         * opts.c (finish_options): Move warning settings from process_options.
1504         * toplev.c (process_options): Move warning settings to finish_options.
1505
1506 2011-05-11  Richard Guenther  <rguenther@suse.de>
1507
1508         PR tree-optimization/18041
1509         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1510         (simplify_bitwise_binary): ... this.  Handle operand conversions
1511         by applying them to the result instead.
1512         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
1513
1514 2011-05-11  Richard Guenther  <rguenther@suse.de>
1515
1516         * gimple.c (gimple_canonical_types_compatible_p): Split out
1517         from gimple_types_compatible_p and friends.  Do not recurse
1518         to pointed-to types.
1519         (gimple_canonical_type_eq): Use it.
1520         (iterative_hash_canonical_type): Split out from
1521         iterative_hash_gimple_type and friends.  Do not recurse
1522         to pointed-to types.
1523         (gimple_canonical_type_hash): Use it, allocate the hash here.
1524
1525 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1526
1527         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1528         recognizing doloop.
1529
1530 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1531
1532         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1533         instead of PREV_INSN.
1534
1535 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1536
1537         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1538         * loop-doloop.c (doloop_condition_get): Likewise.
1539         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1540         (doloop_end): New.
1541         * config/arm/arm.md (*addsi3_compare0): Remove "*".
1542
1543 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
1544
1545         * tree.def (CASE_LABEL_EXPR): Add an operand.
1546         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1547
1548 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1549
1550         * c-decl.c (c_override_global_bindings_to_false): Remove.
1551         (global_bindings_p): Don't check
1552         c_override_global_bindings_to_false.
1553         * c-tree.h (c_override_global_bindings_to_false): Remove.
1554         * c-typeck.c (composite_type): Don't set
1555         c_override_global_bindings_to_false.
1556
1557 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1558
1559         PR target/48857, 48495
1560         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1561         (VSX_MODE): Ditto.
1562         (VSX_MOVE_MODE): Ditto.
1563         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1564         VSX vector types.  Add V2DImode.
1565         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1566         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1567         (MODES_TIEABLE_P): Ditto.
1568
1569         * config/rs6000/rs6000.c (rs6000_emit_move): Use
1570         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1571         VSX_VECTOR_MODE.
1572         (init_cumulative_args): Ditto.
1573         (rs6000_function_arg_boundary): Ditto.
1574         (rs6000_function_arg_advance_1): Ditto.
1575         (rs6000_function_arg): Ditto.
1576         (rs6000_function_ok_for_sibcall): Ditto.
1577         (emit_frame_save): Ditto.
1578         (rs6000_function_value): Ditto.
1579         (rs6000_libcall_value): Ditto.
1580
1581 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1582
1583         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1584         i386/darwin-lib.h to $libgcc_tm_file.
1585         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1586
1587 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1588
1589         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1590
1591 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1592
1593         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1594         * config/rs6000/rs6000-tables.opt: New file (generated).
1595         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1596         rs6000/rs6000-tables.opt to extra_options.
1597         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1598         * config/rs6000/rs6000.c (rs6000_select): Remove.
1599         (processor_target_table): Move contents to rs6000-cpus.def.
1600         (darwin_rs6000_override_options): Check
1601         global_options_set.x_rs6000_cpu_index instead of
1602         rs6000_select[1].string.
1603         (rs6000_option_override_internal): Likewise.
1604         (rs6000_handle_option): Don't assert that global structures are in
1605         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
1606         (rs6000_default_cpu): New variable.
1607         (rs6000_file_start): Set it instead of local default_cpu.  Check
1608         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1609         global_options_set.x_rs6000_tune_index instead of rs6000_select.
1610         (rs6000_darwin_file_start): Check rs6000_default_cpu and
1611         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1612         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1613         rs6000_select): Remove.
1614         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1615         Remove.
1616         (mcpu=, mtune=): Use Var, Init, Enum and Save.
1617         * config/rs6000/t-rs6000
1618         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1619         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1620         global_options_set.x_rs6000_cpu_index instead of
1621         rs6000_select[1].string.
1622         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1623         global_options_set.x_rs6000_cpu_index instead of
1624         rs6000_select[1].string.
1625
1626 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1627
1628         * config.gcc (libgcc_tm_file): Define instead of including files
1629         from ../../libgcc/config/ in tm_file.
1630         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1631         * configure: Regenerate.
1632         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1633         libgcc_tm.h, cs-libgcc_tm.h): New.
1634         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1635         (clean): Remove libgcc_tm.h.
1636         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1637         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1638         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1639
1640 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
1641
1642         PR target/48896
1643         * config/avr/avr.c (avr_ret_register): Return unsigned int
1644         instead of int.
1645         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1646         it to avr_libcall_value.
1647         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1648         expand_expr.
1649         (avr_expand_binop_builtin): Ditto.
1650         (avr_expand_unop_builtin): Ditto.
1651
1652 2011-05-10  DJ Delorie  <dj@redhat.com>
1653
1654         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1655         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1656         * config/rx/rx.c (rx_align_for_label): Add label and
1657         uses_threshold parameters.  Do not align when the label is not
1658         used enough.
1659         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1660
1661 2011-05-10  Richard Guenther  <rguenther@suse.de>
1662
1663         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1664         a series of conversions and apply foldings similar to what
1665         fold-const does.
1666         (tree_ssa_forward_propagate_single_use_vars): Call it.
1667
1668 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
1669
1670         PR tree-optimization/48611
1671         PR tree-optimization/48794
1672         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1673         referenced from RESX or EH_DISPATCH arguments.
1674
1675         PR debug/48928
1676         * dfp.c (decimal_to_decnumber): Handle conversion from
1677         dconst{1,2,m1,half}.
1678
1679 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1680
1681         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1682         for !flag_prefer_avx128.
1683         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1684
1685 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
1686
1687         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1688         (fold_ternary_loc): Use expr_location_or.
1689
1690 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1691
1692         PR debug/48853
1693         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1694         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1695         Pmode and mem_mode is not VOIDmode.
1696
1697 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
1698
1699         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1700         TYPE_QUAL_RESTRICT): Convert to enum.
1701
1702 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1703
1704         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1705         (const_pow2_1_to_8_operand): Ditto.
1706         (const_pow2_1_to_128_operand): Ditto.
1707         (const_pow2_1_to_32768_operand): Ditto.
1708         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1709         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
1710         in insn constraint to check integer value of operand 3.
1711         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1712
1713         (PINSR_MODE): New mode iterator.
1714         (sse2p4_1): New mode attribute.
1715         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1716         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1717         iterator.  Use const_int_operand instead of
1718         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
1719         exact_log2 in insn constraint to check integer value of operand 3.
1720
1721 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1722
1723         * config/i386/sse.md (blendbits): Remove mode attribute.
1724         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1725         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1726         Check integer value of operand 3 in insn constraint.
1727
1728 2011-05-09  Richard Guenther  <rguenther@suse.de>
1729
1730         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1731         for diagnostics.
1732         (lto_symtab_merge): Likewise.  Do not register types here.
1733         (lto_symtab_merge_decls_2): Likewise.
1734         (lto_symtab_merge_decls_1): Likewise.
1735         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1736         * gimple.c (enum gtc_mode): Declare.
1737         (gimple_types_compatible_p): Make static.
1738
1739 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1740
1741         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1742         temporary register to match Pmode.
1743
1744 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1745
1746         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1747         and *vec_concatv4si_1_avx.
1748
1749 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1750
1751         PR rtl-optimization/48927
1752         * ira-conflicts.c (commutative_constraint_p): Use
1753         recog_data.alternative_enabled_p to disable alternatives where
1754         "enabled" attribute is false.
1755         (get_dup_num): Ditto.
1756         * ira-lives.c (single_reg_class): Ditto.
1757         (ira_implicitly_set_insn_hard_regs): Ditto.
1758
1759 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
1760
1761         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1762         (dataflow_set_preserve_mem_locs): Likewise.
1763
1764 2011-05-09  Philipp Thomas  <pth@suse.de>
1765
1766         * config/mep/mep.c (mep_validate_vliw): Syntax description
1767         should not be translated.
1768
1769 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
1770
1771         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1772         * config/mips/mips-tables.opt: New file (generated).
1773         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1774         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1775         MIPS_ARCH_OPTION_NATIVE): Define.
1776         * config/mips/mips.c (mips_cpu_info_table): Move contents to
1777         mips-cpus.def.
1778         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1779         mips_parse_cpu): Remove.
1780         (mips_cpu_info_from_opt, mips_default_arch): New.
1781         (mips_handle_option): Don't assert that global structures are in
1782         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1783         (mips_option_override): Use new variables and functions to set
1784         state of these options.  Use strcmp to check for individual CPU names.
1785         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1786         definition.
1787         * config/mips/mips.opt (march=): Use ToLower and Enum.
1788         (mips): Use ToLower, Enum and Var.
1789         (mtune=): Use ToLower and Enum.
1790         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1791
1792 2011-05-08  Jan Hubicka  <jh@suse.cz>
1793
1794         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1795         Arrange type pairs to be UID ordered.
1796         (gimple_lookup_type_leader): Make inline.
1797
1798 2011-05-09  Nick Clifton  <nickc@redhat.com>
1799
1800         PR target/48899
1801         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1802         PROCESSOR_DEFAULT.
1803
1804         PR target/48897
1805         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1806         variable 's'.
1807
1808 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
1809
1810         * combine.c (simplify_comparison): Abstract out parts into...
1811         (simplify_compare_const): ... new function.
1812         (try_combine): Generalize parallel arithmetic/compare combining
1813         to call simplify_compare_const() and CANONICALIZE_COMPARE().
1814
1815 2011-05-08  Jan Hubicka  <jh@suse.cz>
1816
1817         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1818         (cgraph_create_virtual_clone): Call hooks once virtual clone
1819         is finished.
1820         * cgraph.h (cgraph_clone_node): Update prototype.
1821         * ipa-cp.c (ipcp_estimate_growth): Use
1822         estimate_ipcp_clone_size_and_time.
1823         * ipa-inline-transform.c (clone_inlined_nodes): Update.
1824         * lto-cgraph.c (input_node): Update.
1825         * ipa-inline.c (recursive_inlining): Update.
1826         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1827         (evaluate_conditions_for_known_args): Break out from ...
1828         (evaluate_conditions_for_edge): ... here.
1829         (evaluate_conditions_for_ipcp_clone): New function.
1830         (inline_node_duplication_hook): Update clone summary based
1831         on parameter map.
1832         (estimate_callee_size_and_time): Rename to ...
1833         (estimate_node_size_and_time): take NODE instead of EDGE;
1834         take POSSIBLE_TRUTHS as argument.
1835         (estimate_callee_size_and_time): Update.
1836         (estimate_ipcp_clone_size_and_time): New function.
1837         (do_estimate_edge_time): Update.
1838
1839 2011-05-08  Richard Guenther  <rguenther@suse.de>
1840
1841         PR middle-end/48908
1842         PR middle-end/48905
1843         * expmed.c (expand_shift_1): Compute adjusted constant shift
1844         amount manually.
1845
1846 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1847
1848         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1849
1850 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1851
1852         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1853
1854 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
1855
1856         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1857
1858 2011-05-07  Jan Hubicka  <jh@suse.cz>
1859
1860         * ipa-inline-transform.c (inline_call): Account when program size
1861         decreases.
1862         * ipa-inline.c (relative_time_benefit): New function.
1863         (edge_badness): Reorganize to be power 2 based; fix thinko when
1864         computing badness for negative growth; update comments to match
1865         reality; better dumps.
1866
1867 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
1868
1869         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1870         type to bool and adjust comment.
1871         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1872         (fold_mathfn_compare): Remove calls to global_bindings_p.
1873         (fold_inf_compare): Likewise.
1874         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1875         * c-tree.h (global_bindings_p): Adjust prototype.
1876         * c-decl.c (global_bindings_p): Return bool and simplify.
1877
1878 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
1879
1880         PR tree-optimization/48837
1881         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1882         when accumulator transformation is performed.
1883
1884 2011-05-06  Jan Hubicka  <jh@suse.cz>
1885
1886         * i386.h (ix86_tune_indices): Add
1887         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1888         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1889         * i386.c (initial_ix86_tune_features): Add
1890         X86_SOFTARE_PREFETCHING_BENEFICIAL.
1891         (software_prefetching_beneficial_p): Remove predicate.
1892         (ix86_option_override_internal): Use new macro.
1893
1894 2011-05-06  Jan Hubicka  <jh@suse.cz>
1895
1896         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1897
1898 2011-05-06  Jan Hubicka  <jh@suse.cz>
1899
1900         * cgraph.c (cgraph_add_thunk): Create real function node instead
1901         of alias node; finalize it and mark needed/reachale; arrange visibility
1902         to be right and add it into the corresponding same comdat group list.
1903         (dump_cgraph_node): Dump thunks.
1904         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1905         cgraph_function_with_gimple_body_p,
1906         cgraph_first_function_with_gimple_body,
1907         cgraph_next_function_with_gimple_body): New functions.
1908         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1909         New macros.
1910         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1911         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1912         * cgraphunit.c (cgraph_finalize_function): Only look into possible
1913         devirtualization when optimizing.
1914         (verify_cgraph_node): Verify thunks.
1915         (cgraph_analyze_function): Analyze thunks.
1916         (cgraph_mark_functions_to_output): Output thunks only in combination
1917         with function they are assigned to.
1918         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1919         alias into normal node.
1920         (assemble_thunks): New functoin.
1921         (cgraph_expand_function): Use it.
1922         * lto-cgraph.c (lto_output_node): Stream thunks.
1923         (input_overwrite_node): Stream in thunks.
1924         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1925         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1926         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1927         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1928         (inline_analyze_function): Do not care about thunk jump functions.
1929         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1930         * ipa-prop.c (ipa_prop_write_jump_functions): Use
1931         cgraph_function_with_gimple_body_p.
1932         * passes.c (do_per_function_toporder): Use
1933         cgraph_function_with_gimple_body_p.
1934         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1935         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1936         (function_called_by_processed_nodes_p): Likewise.
1937
1938 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
1939
1940         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1941         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1942         entries.
1943         (mabi=): Replace with separate entries for mabi=altivec,
1944         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1945         mabi=ieeelongdouble and mabi=ibmlongdouble.
1946         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1947         check for -mabi=spe without SPE ABI support here.
1948         (rs6000_handle_option): Replace OPT_mabi_ handling with
1949         OPT_mabi_altivec and OPT_mabi_spe handling.
1950
1951 2011-05-06  Cary Coutant  <ccoutant@google.com>
1952
1953         * dwarf2out.c (contains_subprogram_definition): New function.
1954         (should_move_die_to_comdat): Call it.
1955
1956 2011-05-06  Jeff Law  <law@redhat.com>
1957
1958         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1959         remove_ctrl_stmt_and_useless_edges.
1960         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1961         (fixup_template_block, thread_single_edge): Likewise.
1962         (mark_threaded_blocks): Use THREAD_TARGET.
1963
1964 2011-05-06  Alan Modra  <amodra@gmail.com>
1965
1966         PR target/48900
1967         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1968         const0_rtx as the arg to the dummy __tls_get_addr libcall.
1969
1970 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
1971
1972         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1973         constraint modifier to "r".
1974
1975 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
1976
1977         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1978         fall through for OPT_mcmodel_.
1979
1980 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1981
1982         * config/s390/s390.c (s390_asm_trampoline_template): Comment
1983         instruction sizes.
1984         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1985
1986 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1987
1988         PR target/47930
1989         * config/arm/arm.opt (marm): Document it.
1990         (mthumb): Reject negative variant.
1991
1992 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
1993
1994         PR target/48898
1995         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1996         Fix typo in "ccvt" variable name.
1997
1998 2011-05-06  Tristan Gingold  <gingold@adacore.com>
1999
2000         PR target/48895
2001         * config/vms/vms-ar.c (main): Remove cwd variable.
2002
2003 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
2004
2005         PR debug/48902
2006         * var-tracking.c (prepare_call_arguments): Move else before #endif.
2007
2008 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
2009
2010         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
2011         * gimplify.c (gimplify_switch_expr): Likewise.
2012         * omp-low.c (expand_omp_sections): Likewise.
2013         * tree-eh.c (lower_try_finally_switch): Likewise.
2014         (lower_eh_dispatch): Likewise.
2015         * tree.h (build_case_label): Declare.
2016         * tree.c (build_case_label): Define.
2017
2018 2011-05-05  Jason Merrill  <jason@redhat.com>
2019
2020         PR c++/40975
2021         * tree-inline.c (copy_tree_r): Use copy_statement_list.
2022         (copy_statement_list): Don't recurse.
2023         * stor-layout.c (copy_self_referential_tree_r): Don't allow
2024         STATEMENT_LIST.
2025
2026 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
2027
2028         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
2029         through from -mfpu= handling.
2030         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
2031
2032 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
2033
2034         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
2035         POST_MODIFY.
2036
2037 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
2038
2039         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
2040         for 11.31.
2041         (hppa[12]*-*-hpux11*): Ditto.
2042         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
2043         * config/ia64/hpux-unix2003.h: New.
2044         * config/pa/pa-hpux1131.opt: New.
2045         * config/pa/pa-hpux1131.h: New.
2046         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
2047         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
2048         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
2049
2050 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
2051
2052         PR debug/48853
2053         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
2054         instead of mode as 3rd argument to recursive call.
2055         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
2056         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
2057         VOIDmode.
2058         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
2059         don't give up if mode is Pmode and mem_mode is not VOIDmode.
2060         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
2061         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
2062
2063 2011-05-05  Julian Brown  <julian@codesourcery.com>
2064
2065         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2066         parenthesis in D-register case.
2067
2068 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
2069
2070         * opt-functions.awk (var_type_struct): Handle Enum options.
2071         * optc-gen.awk: Don't check range of variables of character type.
2072         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
2073         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
2074         rs6000_sdata_name, rs6000_explicit_options): Remove.
2075         (rs6000_option_override_internal): Check for -malign-power here.
2076         Use global_options_set instead of rs6000_explicit_options.
2077         (rs6000_parse_fpu_option): Remove.
2078         (rs6000_handle_option): Access variables via opts and opts_set
2079         pointers.  Use error_at and warning_at.  Add fall-through
2080         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
2081         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
2082         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
2083         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
2084         here.  Don't use rs6000_parse_fpu_option.
2085         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
2086         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
2087         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
2088         (mrecip=): Use Var.
2089         (mspe): Use Var and Save.
2090         (mtraceback=): Use Enum and Var.
2091         (rs6000_traceback_type): New Enum and EnumValue entries.
2092         (mfloat-gprs=): Use Enum, Var and Save.
2093         (rs6000_float_gprs): New Enum and EnumValue entries.
2094         (mlong-double-): use Var and Save.
2095         (msched-costly-dep=, minsert-sched-nops=): Use Var.
2096         (malign-): Use Enum and Var.
2097         (rs6000_alignment_flags): New Enum and EnumValue entries.
2098         (mfpu=): Use Enum.
2099         (fpu_type_t): New Enum and EnumValue entries.
2100         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2101         global_options_set instead of rs6000_explicit_options.
2102         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2103         global_options_set instead of rs6000_explicit_options.
2104         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2105         global_options_set instead of rs6000_explicit_options.
2106         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2107         global_options_set instead of rs6000_explicit_options.
2108         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
2109         global_options_set instead of rs6000_explicit_options.
2110         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2111         global_options_set instead of rs6000_explicit_options.
2112         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
2113         definition.
2114         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2115         global_options_set instead of rs6000_explicit_options.
2116         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
2117         (rs6000_cmodel): New Enum and EnumValue entries.
2118         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2119         global_options_set instead of rs6000_explicit_options.
2120         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
2121         (mtls-size=): Use Enum and Var.
2122         (rs6000_tls_size): New Enum and EnumValue entries.
2123
2124 2011-05-05  Michael Matz  <matz@suse.de>
2125
2126         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
2127         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
2128         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
2129         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
2130         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
2131         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
2132         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
2133         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
2134         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
2135         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
2136         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
2137         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
2138         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
2139         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
2140         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
2141         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
2142
2143 2011-05-05  Richard Guenther  <rguenther@suse.de>
2144
2145         * expmed.c (expand_variable_shift): Rename to ...
2146         (expand_shift_1): ... this.  Take an expanded shift amount.
2147         For rotates recurse directly not building trees for the shift amount.
2148         (expand_variable_shift): Wrap around expand_shift_1.
2149         (expand_shift): Adjust.
2150
2151 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
2152
2153         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
2154
2155 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
2156
2157         * tree.h (get_pending_sizes): Remove prototype.
2158         (put_pending_size): Likewise.
2159         (put_pending_sizes): Likewise.
2160         * stor-layout.c (pending_sizes): Delete.
2161         (get_pending_sizes): Likewise.
2162         (put_pending_size): Likewise.
2163         (put_pending_sizes): Likewise.
2164         (variable_size): Do not call put_pending_size and tidy up.
2165         * function.h (struct function): Remove dont_save_pending_sizes_p.
2166         * lto-streamer-in.c (input_function): Do not stream it.
2167         * lto-streamer-out.c (output_function): Likewise.
2168         * tree-inline.c (initialize_cfun): Do not copy it.
2169         * c-decl.c (store_parm_decls): Do not set it.
2170         * omp-low.c (create_task_copyfn): Likewise.
2171         * tree-optimize.c (tree_rest_of_compilation): Likewise.
2172
2173 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
2174
2175         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
2176         conditions.
2177         (*movdf_internal): Ditto.
2178         (*movdf_internal_nointeger): Ditto.
2179         (*movsf_internal): Ditto.
2180
2181 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
2182
2183         * c-decl.c (finish_decl): Don't call get_pending_sizes.
2184         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
2185         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
2186         (c_variable_size): Remove.
2187         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
2188         call put_pending_sizes.
2189         (get_parm_info): Add parameter expr.  Use it to set
2190         arg_info->pending_sizes.
2191         (store_parm_decls): Use arg_info->pending_sizes instead or calling
2192         get_pending_sizes.
2193         * c-parser.c (c_parser_parms_declarator): Update call to
2194         c_parser_parms_list_declarator.
2195         (c_parser_parms_list_declarator): Take parameter expr.  Update
2196         call to push_parm_decl.  Update recursive call.  Don't call
2197         get_pending_sizes.  Update calls to get_parm_info.
2198         (c_parser_objc_method_definition): Update calls to
2199         c_parser_objc_method_decl and objc_start_method_definition.
2200         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
2201         (c_parser_objc_method_decl): Add parameter expr.  Update call to
2202         grokparm.
2203         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
2204         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
2205         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
2206
2207 2011-05-05  Michael Hope  <michael.hope@linaro.org>
2208
2209         PR pch/45979
2210         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
2211         __ARM_EABI__ hosts.
2212
2213 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2214
2215         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
2216         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
2217         (spu_output_mi_thunk): New function.
2218
2219 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2220
2221         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
2222         targetm.asm_out.print_operand.
2223         * config/sol2.c: Include target.h.
2224
2225 2011-05-04  Jan Hubicka  <jh@suse.cz>
2226
2227         * ipa-inline.c (reset_edge_caches): New function.
2228         (update_caller_keys): Add check_inlinablity_for; do not
2229         reset edge caches; remove now unnecesary loop.
2230         (update_callee_keys): Add comments; reset node_growth_cache of callee.
2231         (update_all_callee_keys): Likewise.
2232         (inline_small_functions): Sanity check cache; update code
2233         recomputing it.
2234
2235 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
2236
2237         PR rtl-optimization/47612
2238         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
2239         as the last insn of the sequence to be moved.
2240
2241 2011-05-04  Tobias Burnus  <burnus@net-b.de>
2242
2243         PR fortran/48864
2244         * doc/invoke.texi (Ofast): Document that it
2245         enables Fortran's -fno-protect-parens.
2246
2247 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
2248
2249         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
2250
2251 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
2252
2253         * stor-layout.c (variable_size): Do not issue errors.
2254
2255 2011-05-04  Richard Guenther  <rguenther@suse.de>
2256
2257         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
2258         for array-ref indices.
2259         (tree_coverage_counter_addr): Likewise.
2260         (build_fn_info_type): Use size_int for index types.
2261         (build_gcov_info): Likewise.
2262
2263 2011-05-04  Richard Guenther  <rguenther@suse.de>
2264
2265         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
2266         to build_int_cst.
2267         * c-typeck.c (really_start_incremental_init): Use bitsize_int
2268         for constructor indices.
2269         (push_init_level): Likewise.
2270
2271 2011-05-04  Richard Guenther  <rguenther@suse.de>
2272
2273         * explow.c (promote_mode): Move variable declarations before code.
2274
2275 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
2276
2277         * tree.h (build_function_type_array): Declare.
2278         (build_varargs_function_type_array): Declare.
2279         (build_function_type_vec, build_varargs_function_type_vec): Define.
2280         * tree.c (build_function_type_array_1): New function.
2281         (build_function_type_array): New function.
2282         (build_varargs_function_type_array): New function.
2283
2284 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
2285
2286         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
2287         before setting STMT_VINFO_TYPE.
2288
2289 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2290
2291         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
2292         instead of spu_pass_by_reference.
2293
2294 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2295
2296         * calls.c (emit_library_call_value_1): Invoke
2297         promote_function_mode hook on libcall arguments.
2298         * explow.c (promote_function_mode, promote_mode): Handle TYPE
2299         argument being NULL.
2300         * targhooks.c (default_promote_function_mode): Lisewise.
2301         * config/s390/s390.c (s390_promote_function_mode): Likewise.
2302         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
2303
2304         * doc/tm.texi: Document that TYPE argument might be NULL.
2305
2306 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2307
2308         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
2309
2310 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2311
2312         From Bernd Schmidt
2313         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
2314
2315 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2316
2317         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
2318         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
2319         Move ...
2320         * mips-tfile.c: ... here.
2321         Don't include coretypes.h, tm.h, filenames.h.
2322         (saber_stop): Remove definition and all calls.
2323         [__SABER__]: Remove.
2324         (__LINE__): Remove default.
2325         (Size_t, Ptrdiff_t): Remove definitions.
2326         Replace by size_t, ptrdiff_t.
2327         [!MIPS_DEBUGGING_INFO]: Remove.
2328         (SHASH_SIZE, THASH_SIZE): Remove defaults.
2329         (progname): Add const.
2330         (STATIC): Remove.
2331         Replace all uses by static.
2332         (ALIGN_SYMTABLE_OFFSET): Remove default.
2333         * mips-tdump.c: Don't include coretypes.h, tm.h.
2334         Remove !MIPS_IS_STAB guard.
2335         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
2336         $(TM_H), filenames.h dependencies.
2337         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
2338
2339 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2340
2341         From Jie Zhang
2342         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
2343         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2344
2345 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2346
2347         From Bernd Schmidt
2348         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
2349         account and save/restore RETS.
2350         (PROFILE_BEFORE_PROLOGUE): Define.
2351         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
2352         the push insn to use predecrement.
2353
2354 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2355
2356         From Jie Zhang
2357         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
2358
2359 2011-05-04  Nick Clifton  <nickc@redhat.com>
2360
2361         * config/mn10300/mn10300.c: Include cfgloop.h.
2362         (DUMP): New macro.
2363         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
2364         Lcc or a FLcc insn into the instruction stream.
2365         (mn10300_block_contains_call): New function.  Returns true if the
2366         given basic block contains a CALL insn.
2367         (mn10300_loop_contains_call_insn): New function.  Returns true if
2368         the given loop contains a CALL insn.
2369         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
2370         to use the SETLB and Lcc or FLcc insns.
2371         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
2372         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
2373         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
2374         disable the SETLB optimization.
2375         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
2376         __SETLB__ or __NO_SETLB__.
2377         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
2378         (movsf_internal): Handle MDR register.
2379         (cmpsi): Make visible.
2380         (setlb): New pattern.
2381         (Lcc): New pattern.
2382         (FLcc): New pattern.
2383
2384 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
2385
2386         PR target/48860
2387         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
2388         for reg<->xmm moves.
2389         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
2390         (vec_concatv2di_rex64_sse): Ditto.
2391         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
2392         (*vec_extractv2di_1_rex64): Ditto.
2393
2394         Revert:
2395         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2396
2397         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2398         reg<->xmm moves.
2399         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
2400
2401 2011-05-04  Richard Guenther  <rguenther@suse.de>
2402
2403         * tree.h (int_const_binop): Remove notrunc argument.
2404         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
2405         create integer constants that are properly truncated.
2406         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2407         (const_binop): Remove zero notrunc argument to int_const_binop.
2408         (size_binop_loc): Likewise.
2409         (fold_div_compare): Likewise.
2410         (maybe_canonicalize_comparison_1): Likewise.
2411         (fold_comparison): Likewise.
2412         (fold_binary_loc): Likewise.
2413         (multiple_of_p): Likewise.
2414         * expr.c (store_constructor): Likewise.
2415         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2416         (maybe_fold_stmt_addition): Likewise.
2417         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2418         * stor-layout.c (layout_type): Likewise.
2419         * tree-data-ref.c (tree_fold_divides_p): Likewise.
2420         * tree-sra.c (build_ref_for_offset): Likewise.
2421         (build_user_friendly_ref_for_offset): Likewise.
2422         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2423         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2424         * tree-ssa-loop-niter.c (inverse): Likewise.
2425         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2426         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2427         * tree-switch-conversion.c (check_range): Likewise.
2428         (build_constructors): Likewise.
2429         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2430         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2431         (extract_range_from_assert): Likewise.
2432         (vrp_int_const_binop): Likewise.
2433         (extract_range_from_binary_expr): Likewise.
2434         (extract_range_from_unary_expr): Likewise.
2435         (check_array_ref): Likewise.
2436         (find_case_label_range): Likewise.
2437         (simplify_div_or_mod_using_ranges): Likewise.
2438         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2439         comparing case labels for merging.
2440
2441 2011-05-03  Mark Wielaard  <mjw@redhat.com>
2442
2443         * dwarf2out.c (debug_str_hash_forced): Removed.
2444         (gen_label_for_indirect_string): Removed.
2445         (get_debug_string_label): Removed.
2446         (AT_string_form): Generate label directly.
2447         (output_indirect_string): Test indirect_string_node for
2448         DW_FORM_strp instead of checking label and refcount.
2449         (prune_indirect_string): Removed.
2450         (prune_unused_types): Don't check debug_str_hash_forced or
2451         call prune_indirect_string.
2452
2453 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
2454
2455         PR other/48093
2456         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2457
2458 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
2459
2460         PR debug/47994
2461         PR debug/47919
2462         * combine.c (try_combine): Skip debug insns at m_split tests.
2463
2464 2011-04-26  Mark Wielaard  <mjw@redhat.com>
2465
2466         PR42288
2467         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2468         when info_section_emitted.
2469
2470 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
2471
2472         * config/mips/mips-opts.h: New.
2473         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2474         to mips-opts.h.
2475         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2476         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2477         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
2478         via opts pointer.
2479         * config/mips/mips.h (enum mips_code_readable_setting): Move to
2480         mips-opts.h.
2481         (mips_abi, mips_code_readable): Don't declare.
2482         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
2483         (mabi=): Use Enum and Var.
2484         (mips_abi): New Enum and EnumValue entries.
2485         (mcode-readable=): Use Enum and Var.
2486         (mips_code_readable_setting): New Enum and EnumValue entries.
2487         (mr10k-cache-barrier=): Use Enum and Var.
2488         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2489
2490 2011-05-03  Jan Hubicka  <jh@suse.cz>
2491
2492         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2493         replace hash by pointer map.
2494         (cgraph_node_set_element_def, cgraph_node_set_element,
2495         const_cgraph_node_set_element, varpool_node_set_element_def,
2496         varpool_node_set_element, const_varpool_node_set_element): Remove.
2497         (free_cgraph_node_set, free_varpool_node_set): New function.
2498         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2499         * tree-emutls.c: Free varpool node set.
2500         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2501         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2502         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2503         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2504         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2505         Move here from ipa.c; implement using pointer_map
2506         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2507         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2508         debug_cgraph_node_set, varpool_node_set_new,
2509         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2510         dump_varpool_node_set, debug_varpool_node_set):
2511         Move to ipa-uitls.c.
2512         * passes.c (ipa_write_summaries): Update.
2513
2514 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2515
2516         From Mike Frysinger:
2517         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2518         bf542/bf544/bf547/bf548/bf549.
2519
2520 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2521
2522         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2523
2524 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2525
2526         From Bernd Schmidt:
2527         * config/bfin/bfin.md (MOVCC): New mode_macro.
2528         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2529         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
2530         comments from generated assembly.
2531
2532 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2533
2534         From Bernd Schmidt
2535         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2536         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2537         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2538         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2539         * config/bfin/lib1funcs.asm (___muldi3): New function.
2540
2541 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2542
2543         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2544         build_function_type_list instead of build_function_type.
2545         Rearrange initialization of `args' to do so.
2546
2547 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2548
2549         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2550         instead of build_function_type.
2551
2552 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2553
2554         * config/rs6000/rs6000.c (spe_init_builtins): Call
2555         build_function_type_list instead of build_function_type.
2556         (paired_init_builtins, altivec_init_builtins): Likewise.
2557         (builtin_function_type): Likewise.
2558
2559 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2560
2561         * config/sh/sh.c (sh_media_init_builtins): Call
2562         build_function_type_list instead of build_function_type.
2563
2564 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2565
2566         * config/sparc/sparc.c (sparc_file_end): Call
2567         build_function_type_list instead of build_function_type.
2568
2569 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2570
2571         * config/alpha/alpha.c (alpha_init_builtins): Call
2572         build_function_type_list instead of build_function_type.
2573
2574 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2575
2576         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2577         build_function_type_list instead of build_function_type.
2578
2579 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2580
2581         * config/iq2000/i2000.c (iq2000_init_builtins): Call
2582         build_function_type_list instead of build_function_type.
2583         Delete `endlink' variable.
2584
2585 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2586
2587         * config/avr/avr.c (avr_init_builtins): Call
2588         build_function_type_list instead of build_function_type.
2589
2590 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2591
2592         * config/picochip/picochip.c (picochip_init_builtins): Call
2593         build_function_type_list instead of build_function_type.
2594         Delete `endlink' variable.
2595
2596 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2597
2598         * config/bfin/bfin.c (bfin_init_builtins): Call
2599         build_function_type_list instead of build_function_type.
2600
2601 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2602
2603         From Bernd Schmidt
2604         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2605         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
2606
2607 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2608
2609         From Jie Zhang:
2610         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2611         libbffastfp overrides libgcc when -mfast-fp.
2612
2613 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2614
2615         Originally from Bernd Schmidt
2616         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2617         * config/bfin/bfin.c (override_options): Test it and error if
2618         TARGET_FDPIC.
2619
2620 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2621
2622         Originally From Bernd Schmidt
2623         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2624         FD-PIC.
2625
2626 2011-05-03  Jeff Law  <law@redhat.com>
2627
2628         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2629         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2630         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2631         than accessing AUX field directly.  Free the AUX field before
2632         clearing it.
2633         (thread_block, thread_through_loop_header): Likewise.
2634         (thread_single_edge, mark_threaded_blocks): Likewise.
2635         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
2636         (register_jump_thread): Do not attempt to thread to a NULL edge.
2637
2638 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
2639
2640         * function.c (init_function_start): Call decide_function_section.
2641         * varasm.c (decide_function_section): New function.
2642         (assemble_start_function): When not using
2643         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2644         or first_function_block_is_cold.
2645         * rtl.h (decide_function_section): Declare.
2646
2647 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2648             Jakub Jelinek  <jakub@redhat.com>
2649
2650         PR target/48774
2651         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2652         only succeed if req_mode is the same as set_mode.
2653
2654 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
2655
2656         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2657         * genemit.c (gen_exp): Handle RETURN.
2658         * emit-rtl.c (verify_rtx_sharing): Likewise.
2659         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2660         * rtl.c (copy_rtx): RETURN is shared.
2661         * rtl.h (enum global_rtl_index): Add GR_RETURN.
2662         (ret_rtx): New.
2663         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2664         * config/s390/s390.c (s390_emit_epilogue): Likewise.
2665         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2666         * config/cris/cris.c (cris_expand_return): Likewise.
2667         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2668         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2669         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2670         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2671         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2672         Likewise.
2673         * config/v850/v850.c (expand_epilogue): Likewise.
2674         * config/bfin/bfin.c (bfin_expand_call): Likewise.
2675         * config/arm/arm.md (epilogue): Likewise.
2676         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2677         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2678         variable to ret_reg.
2679
2680 2011-05-03  Richard Guenther  <rguenther@suse.de>
2681
2682         PR lto/48846
2683         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2684         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2685         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2686
2687 2011-05-03  Richard Guenther  <rguenther@suse.de>
2688
2689         * c-decl.c (grokdeclarator): Instead of looking at
2690         TREE_OVERFLOW check if the constant fits in the index type.
2691
2692 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2693
2694         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2695         (vec_store_lanes<mode><mode>): Likewise.
2696
2697 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2698
2699         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2700         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2701         convert_optab_index values.
2702         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2703         * genopinit.c (optabs): Initialize the new optabs.
2704         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2705         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2706         (expand_STORE_LANES): New functions.
2707         * tree.h (build_array_type_nelts): Declare.
2708         * tree.c (build_array_type_nelts): New function.
2709         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2710         (vect_model_load_cost): Likewise.
2711         (vect_store_lanes_supported, vect_load_lanes_supported)
2712         (vect_record_strided_load_vectors): Declare.
2713         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2714         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2715         (vect_transform_strided_load): Split out statement recording into...
2716         (vect_record_strided_load_vectors): ...this new function.
2717         * tree-vect-stmts.c (create_vector_array, read_vector_array)
2718         (write_vector_array, create_array_ref): New functions.
2719         (vect_model_store_cost): Add store_lanes_p argument.
2720         (vect_model_load_cost): Add load_lanes_p argument.
2721         (vectorizable_store): Try to use store-lanes functions for
2722         interleaved stores.
2723         (vectorizable_load): Likewise load-lanes and loads.
2724         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2725         to vect_model_store_cost.
2726         (vect_build_slp_tree): Likewise vect_model_load_cost.
2727
2728 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2729
2730         * hooks.h (hook_bool_mode_uhwi_false): Declare.
2731         * hooks.c (hook_bool_mode_uhwi_false): New function.
2732         * target.def (array_mode_supported_p): New hook.
2733         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2734         * doc/tm.texi: Regenerate.
2735         * stor-layout.c (mode_for_array): New function.
2736         (layout_type): Use it.
2737         * config/arm/arm.c (arm_array_mode_supported_p): New function.
2738         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2739
2740 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
2741
2742         PR target/48723
2743         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2744         for -fstack-check if the size to allocate is negative.
2745
2746 2011-05-02  Lawrence Crowl  <crowl@google.com>
2747
2748         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2749         (timevar_cond_start): New for starting a timer only when it is not
2750         already running.
2751         (timevar_cond_stop): New for stopping a timer when it was not already
2752         running.
2753
2754         * timevar.c (timevar_stop): Enable start/stop timers to start again.
2755         (timevar_cond_start): New as above.
2756         (timevar_cond_stop): New as above.
2757
2758         * timevar.def: Add start/stop timers for compiler phases,
2759         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2760         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2761         and TV_PHASE_FINALIZE.
2762         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2763         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2764         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2765         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2766         Make unused TV_OVERLOAD into a start/stop timer.
2767
2768         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2769         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2770         to indicate that they are start/stop timers.
2771
2772         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2773         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2774         Move initialization to do_compile.
2775         (do_compile): Add initialization from above.
2776         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2777
2778         * c-decl.c (c_write_global_declarations): Add start/stop of
2779         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2780
2781         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2782         or TV_PARSE_INLINE, as appropriate.
2783         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2784         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2785
2786 2011-05-02  Jason Merrill  <jason@redhat.com>
2787
2788         PR c++/40975
2789         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2790
2791 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
2792
2793         PR c/35445
2794         * c-decl.c (finish_decl): Only create a composite if the types are
2795         compatible.
2796
2797 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
2798
2799         * config/fr30/fr30-protos.h (Mmode): Don't define.
2800         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
2801         definition where used.
2802         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2803         define.  Expand definitions where used.
2804         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2805         Expand definitions where used.
2806         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2807         rx_function_arg, rx_function_arg_advance,
2808         rx_function_arg_boundary): Expand definitions of those macros.
2809         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
2810         definition where used.
2811
2812 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2813
2814         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2815         reg<->xmm moves.
2816         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2817         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
2818         with *movv2sf_internal_rex64_avx.
2819         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2820         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2821         Use %v prefix in insn mnemonic to handle TARGET_AVX.
2822         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
2823         "vex" in "prefix" attribute calculation.
2824         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
2825
2826 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
2827
2828         PR target/47951
2829         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2830         inputs match the output.
2831
2832 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
2833
2834         PR target/47955
2835         * config/m68k/m68k.c (m68k_expand_prologue): Set
2836         current_function_static_stack_size.
2837
2838 2011-05-02   Jan Hubicka  <jh@suse.cz>
2839
2840         * lto-streamer.c (lto_streamer_cache_insert_1,
2841         lto_streamer_cache_lookup, lto_streamer_cache_create,
2842         lto_streamer_cache_delete): Use pointer map instead of hashtable.
2843         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2844
2845 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
2846
2847         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2848         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2849         config/m68k/t-opts: New files.
2850         * config/m68k/m68k-tables.opt: New file (generated).
2851         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2852         extra_options and m68k/t-opts to tmake_file.
2853         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2854         (all_isas): Initialize using m68k-isas.def.
2855         (all_microarchs): Initialize using m68k-microarchs.def.
2856         (m68k_find_selection): Remove.
2857         (m68k_handle_option): Don't assert that global structures are in
2858         use.  Use error_at.  Access variables via opts pointer.  Don't
2859         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
2860         directly for -m68020-40 and -m68020-60.
2861         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2862         m68k_tune_entry here.
2863         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2864         to m68k-opts.h.
2865         (m68k_library_id_string): Remove declaration.
2866         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2867         (m68k_library_id_string): New Variable.
2868         (march=, mcpu=, mtune=): Use Enum and Var.
2869
2870 2011-05-02  Richard Guenther  <rguenther@suse.de>
2871
2872         * varasm.c (output_constructor_regular_field): Compute zero-based
2873         index with double-ints.  Make sure to ICE instead of producing
2874         wrong code.
2875         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2876         in asserts.  Properly use a signed type.
2877
2878 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2879
2880         * config/i386/sse.md (V): New mode iterator.
2881         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
2882         TARGET_SSE2.
2883         (V_256): Rename from AVX256MODE.
2884         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
2885         condition to all users.
2886         (VF1): Ditto.
2887         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
2888         condition to all users.
2889         (VF_128): Make V4SF mode unconditional.
2890         (VF_256): Rename from AVX256MODEF2P.
2891         (VI4F_128): Rename from SSEMODE4S.
2892         (VI8F_128): Rename from SSEMODE2D.
2893         (VI4F_256): Rename from AVX256MODE8P.
2894         (VI8F_256): Rename from AVX256MODE4P.
2895         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2896         (ssescalarmodesuffix): Remove SF and DF modes.
2897         (SSEMODE124): Remove.
2898         (SSEMODE1248): Ditto.
2899         (SSEMODEF2P): Ditto.
2900         (AVXMODEF2P): Ditto.
2901         (AVXMODEFDP): Ditto.
2902         (AVXMODEFSP): Ditto.
2903         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2904         unconditional.
2905         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
2906         unconditional.
2907         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2908         xop_pcmov_<mode>256.  Use V mode iterator.
2909
2910         Adjust RTX patterns globally for renamed mode attributes.
2911
2912 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2913
2914         * haifa-sched.c (sched_emit_insn): Emit insn before first
2915         non-scheduled insn.  Inform back-end about new insn.  Add
2916         new insn to scheduled_insns list.
2917
2918 2011-05-02  Richard Guenther  <rguenther@suse.de>
2919
2920         PR tree-optimization/48822
2921         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2922         (process_scc): Indicate which iteration we start.
2923
2924 2011-05-02  Jan Hubicka  <jh@suse.cz>
2925
2926         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2927         (lto_section_overrun): New.
2928         * lto-section-out.c (append_block): Rename to ...
2929         (lto_append_block): ... this one; export.
2930         (lto_output_1_stream): Move lto lto-streamer.h
2931         (lto_output_data_stream): Update.
2932         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2933         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2934         functions.
2935
2936 2011-05-02  Richard Guenther  <rguenther@suse.de>
2937
2938         * tree.c (tree_code_counts): New global array.
2939         (record_node_allocation_statistics): Count individual tree codes.
2940         (dump_tree_statistics): Dump individual code stats.
2941
2942 2011-05-01  Jan Hubicka  <jh@suse.cz>
2943
2944         * ipa-inline.c (caller_growth_limits): Fix thinko when
2945         looking for largest stack frame.
2946         * ipa-inline.h (dump_inline_summary): Declare.
2947         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2948         on stack usage.
2949         (dump_inline_summary): Export.
2950         (debug_inline_summary): Declare as DEBUG_FUNCTION.
2951
2952 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
2953
2954         * reginfo.c (memory_move_cost): Change rclass argument type form
2955         'enum reg_class' to reg_class_t.
2956         * reload.h (memory_move_cost): Update prototype.
2957         * postreload.c reload_cse_simplify_set): Change type dclass var to
2958         reg_class_t.
2959         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2960         Update prototype.
2961         (ira_allocate_and_set_costs): Change aclass argument type form
2962         'enum reg_class' to reg_class_t.
2963         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
2964         Change aclass argument type to reg_class_t.
2965         (update_conflict_hard_reg_costs): Change type aclass and pref vars
2966         to reg_class_t.
2967         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2968         memory_move_cost call.
2969
2970         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2971         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2972         Change type tmp var to reg_class_t.
2973
2974 2011-04-30  Jan Hubicka  <jh@suse.cz>
2975
2976         * ipa-inline.c (can_inline_edge_p): Disregard limits when
2977         inlining into function with flatten attribute.
2978         (want_inline_small_function_p): Be more realistic about inlining
2979         cold calls where callee size grows.
2980
2981 2011-04-30  Jan Hubicka  <jh@suse.cz>
2982
2983         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2984         flags.
2985
2986 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
2987
2988         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2989         PRINT_OPERAND_PUNCT_VALID_P): Remove.
2990         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2991         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2992         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2993         (print_operand): Rename to...
2994         (sparc_print_operand): ...this. Make static. Adjust
2995         sparc_print_operand function call.
2996         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2997         functions.
2998
2999 2011-04-30  Jan Hubicka  <jh@suse.cz>
3000
3001         PR middle-end/48752
3002         * ipa-inline.c (early_inliner): Disable when doing late
3003         addition of function.
3004
3005 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
3006
3007         * dwarf2out.c (get_address_mode): New inline.
3008         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
3009         if not dwarf_strict emit
3010         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
3011         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
3012         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
3013         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
3014         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
3015         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
3016         mem_loc_descriptor callers.
3017         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3018         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
3019         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
3020         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
3021         (base_types): New variable.
3022         (get_base_type_offset, calc_base_type_die_sizes,
3023         base_type_for_mode, mark_base_types, base_type_cmp,
3024         move_marked_base_types): New functions.
3025         (calc_die_sizes): Assert that die_offset is 0 or equal to
3026         next_die_offset.
3027         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
3028         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
3029         callers.  If not dwarf_strict, call mem_loc_descriptor even for
3030         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
3031         (gen_subprogram_die): Don't give up on call site parameters
3032         with non-integral or large integral modes.  Adjust
3033         mem_loc_descriptor callers.
3034         (prune_unused_types): Call prune_unused_types_mark on base_types
3035         vector entries.
3036         (resolve_addr): Call mark_base_types.
3037         (dwarf2out_finish): Call move_marked_base_types.
3038
3039         PR tree-optimization/48809
3040         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
3041         type.
3042         (gen_inbound_check): Don't compute index_expr - range_min in utype
3043         again, instead reuse SSA_NAME initialized in build_arrays.
3044         Remove two useless gsi_for_stmt calls.
3045
3046 2011-04-29  Jeff Law  <law@redhat.com>
3047
3048         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
3049
3050 2011-04-29  Martin Jambor  <mjambor@suse.cz>
3051
3052         * cgraph.h (cgraph_postorder): Remove declaration.
3053         * ipa-utils.h (ipa_free_postorder_info): Declare.
3054         (ipa_reverse_postorder): Likewise.
3055         * cgraphunit.c: Include ipa-utils.h.
3056         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
3057         * ipa-inline.c: Include ipa-utils.h.
3058         (ipa_inline): Update call to ipa_reverse_postorder.
3059         * ipa-pure-const.c (propagate_pure_const): Update call to
3060         ipa_reduced_postorder and ipa_print_order.  Call
3061         ipa_free_postorder_info to clean up.
3062         (propagate_nothrow): Likewise.
3063         * ipa-reference.c (propagate): Removed a useless call to
3064         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
3065         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
3066         * ipa.c: Include ipa-utils.h.
3067         (ipa_profile): Update call to ipa_reverse_postorder.
3068         (cgraph_postorder): Moved to...
3069         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
3070         (ipa_utils_print_order): Renamed to ipa_print_order.
3071         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
3072         comments.
3073         (ipa_free_postorder_info): New function.
3074         * passes.c: Include ipa-utils.h.
3075         (do_per_function_toporder): Update call to ipa_reverse_postorder.
3076         (ipa_write_summaries): Likewise.
3077         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
3078         (cgraphunit.o): Likewise.
3079         (ipa.o): Likewise.
3080         (ipa-inline.o): Likewise.
3081
3082 2011-04-29  Jan Hubicka  <jh@suse.cz>
3083
3084         * gcc.dg/tree-ssa/inline-10.c: New testcase.
3085         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
3086         * ipa-inline.h (clause_t): Turn into unsigned int.
3087         * ipa-inline-analysis.c (add_clause): Do more simplification.
3088         (and_predicates): Shortcut more cases.
3089         (predicates_equal_p): Move forward; check that clauses are properly
3090         ordered.
3091         (or_predicates): Shortcut more cases.
3092         (edge_execution_predicate): Rewrite as...
3093         (set_cond_stmt_execution_predicate): ... this function; handle
3094         __builtin_constant_p.
3095         (set_switch_stmt_execution_predicate): New .
3096         (compute_bb_predicates): New.
3097         (will_be_nonconstant_predicate): Update TODO.
3098         (estimate_function_body_sizes): Use compute_bb_predicates
3099         and free them later, always try to estimate if stmt is constant.
3100         (estimate_time_after_inlining, estimate_size_after_inlining):
3101         Gracefully handle optimized out edges.
3102         (read_predicate): Fix off by one error.
3103
3104 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
3105
3106         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
3107
3108 2011-04-27  Xinliang David Li  <davidxl@google.com>
3109
3110         * tree-profile.c (init_ic_make_global_vars): Set
3111         tls attribute on ic vars.
3112         * coverage.c (coverage_end_function): Initialize
3113         function_list with zero.
3114
3115 2011-04-29  Richard Guenther  <rguenther@suse.de>
3116
3117         * builtins.c (fold_builtin_classify_type): Use integer_type_node
3118         for the type of the result.
3119         (fold_builtin_isascii): Likewise.
3120         (fold_builtin_toascii): Use integer_type_node where appropriate.
3121         (fold_builtin_logb): Likewise.
3122         (fold_builtin_frexp): Likewise.
3123         (fold_builtin_strstr): Likewise.
3124         (fold_builtin_strpbrk): Likewise.
3125         (fold_builtin_fputs): Likewise.
3126         (fold_builtin_sprintf): Likewise.
3127         (fold_builtin_snprintf): Likewise.
3128         (fold_builtin_printf): Likewise.
3129         (do_mpfr_remquo): Use a proper type for the assigned constant.
3130         (do_mpfr_lgamma_r): Likewise.
3131         * dwarf2out.c (resolve_one_addr): Use size_int.
3132         * except.c (init_eh): Likewise.
3133         (assign_filter_values): Use integer_type_node for filter values.
3134         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
3135         indices.
3136         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
3137         for EH region numbers.
3138         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
3139         for the shift amount.
3140
3141 2011-04-29  Richard Guenther  <rguenther@suse.de>
3142
3143         * expr.h (expand_shift): Rename to ...
3144         (expand_variable_shift): ... this.
3145         (expand_shift): Take a constant shift amount.
3146         * expmed.c (expand_shift): Rename to ...
3147         (expand_variable_shift): ... this.
3148         (expand_shift): New wrapper around expand_variable_shift.
3149         * expr.c (convert_move, emit_group_load_1, emit_group_store,
3150         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
3151         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
3152         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
3153         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
3154         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
3155         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
3156         emit_store_flag_1, emit_store_flag): Likewise.
3157         * builtins.c (expand_builtin_signbit): Likewise.
3158         * calls.c (load_register_parameters): Likewise.
3159         * function.c (assign_parm_setup_block): Likewise.
3160         * lower-subreg.c (resolve_shift_zext): Likewise.
3161         * optabs.c (widen_bswap, expand_abs_nojump,
3162         expand_one_cmpl_abs_nojump, expand_float): Likewise.
3163         * spu/spu.c (spu_expand_extv): Likewise.
3164         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3165
3166 2011-04-29  Richard Guenther  <rguenther@suse.de>
3167
3168         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
3169         for the remapped region number.
3170         * predict.c (build_predict_expr): Use integer_type_node for the
3171         predict kind.
3172         * fold-const.c (fold_binary_loc): Use integer_type_node for
3173         the shift amount.  Use a proper type for the PLUS_EXPR operand.
3174
3175 2011-04-29  Michael Matz  <matz@suse.de>
3176
3177         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
3178         other trees that just builtins.
3179         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
3180
3181 2011-04-29  Richard Guenther  <rguenther@suse.de>
3182
3183         * tree-nested.c (get_trampoline_type): Use size_int.
3184         (get_nl_goto_field): Likewise.
3185         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
3186         for all indexes.
3187         (lower_eh_constructs_2): Likewise.
3188         (lower_resx): Likewise.
3189         (lower_eh_dispatch): Likewise.
3190         * tree-mudflap.c (mf_build_string): Use size_int.
3191         (mudflap_register_call): Use integer_type_node for the flag.
3192         (mudflap_enqueue_constant): Use size_int.
3193         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
3194         instead of rebuilding it.
3195
3196 2011-04-29  Richard Guenther  <rguenther@suse.de>
3197
3198         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
3199         Handle OBJ_TYPE_REF.
3200         (find_func_aliases_for_call): Use it more consistently.
3201
3202 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
3203
3204         * haifa-sched.c (last_nondebug_scheduled_insn): New.
3205         (rank_for_schedule): Use it.
3206         (schedule_block): Set it.
3207
3208 2011-04-28  David Li  <davidxl@google.com>
3209
3210         * tree.c (crc32_string): Use crc32_byte.
3211         (crc32_byte): New function.
3212         * tree.h (crc32_byte): New function.
3213         * gcov.c (read_graph_file): Handle new cfg_cksum.
3214         (read_count_file): Ditto.
3215         * profile.c (instrument_values): Ditto.
3216         (get_exec_counts): Ditto.
3217         (read_profile_edge_counts): Ditto.
3218         (compute_branch_probabilities): Ditto.
3219         (compute_value_histograms): Ditto.
3220         (branch_prob): Ditto.
3221         (end_branch_prob): Ditto.
3222         * coverage.c (read_counts_file): Ditto.
3223         (get_coverage_counts): Ditto.
3224         (tree_coverage_counter_addr): Ditto.
3225         (coverage_checksum_string): Ditto.
3226         (coverage_begin_output): Ditto.
3227         (coverage_end_function): Ditto.
3228         (build_fn_info_type): Ditto.
3229         (build_fn_info_value): Ditto.
3230         * libgcov.c (gcov_exit): Ditto.
3231         * gcov-dump.c (tag_function): Ditto.
3232         (compute_checksum): Remove.
3233
3234 2011-04-29  Alan Modra  <amodra@gmail.com>
3235
3236         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3237         unspec plus offset.  Tidy macho code.
3238
3239 2011-04-29  Martin Jambor  <mjambor@suse.cz>
3240
3241         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
3242         node instead of a decl.  Update all callers.
3243         * cgraph.h: Update declaration.
3244
3245 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
3246
3247         PR tree-optimization/48765
3248         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
3249         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
3250         to indicate if loop aware SLP is being used.  Scan the statements
3251         and update the vectorization factor according to the type of
3252         vectorization before statement analysis.
3253         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
3254         pass it to vect_analyze_loop_operations.
3255         (vectorizable_reduction): Set number of copies to 1 in case of pure
3256         SLP statement.
3257         * tree-vect-stmts.c (vectorizable_conversion,
3258         vectorizable_assignment, vectorizable_shift,
3259         vectorizable_operation, vectorizable_type_demotion,
3260         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
3261         Likewise.
3262         (vectorizable_condition): Move the check that it is not SLP
3263         vectorization before the number of copies check.
3264         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
3265         to vectorize the loop using SLP.
3266
3267 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
3268
3269         PR middle-end/48597
3270         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
3271         inline asm.
3272
3273 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
3274
3275         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
3276         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
3277         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3278         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3279         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
3280         linux*.h headers.
3281         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
3282         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3283         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3284         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3285         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3286         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
3287         REG_NAME.
3288         * config/i386/linux.h (REG_NAME): Don't define.
3289         * config/i386/linux64.h (REG_NAME): Don't define.
3290         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
3291         Undefine before defining.
3292
3293 2011-04-28  Jan Hubicka  <jh@suse.cz>
3294
3295         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
3296         nonconstant_names array.
3297         (estimate_function_body_sizes): Build nonconstant_names array; handle
3298         BUILT_IN_CONSTANT_P.
3299
3300 2011-04-28  Richard Guenther  <rguenther@suse.de>
3301
3302         PR bootstrap/48804
3303         Revert
3304         2011-04-28  Richard Guenther  <rguenther@suse.de>
3305
3306         * tree-ssa-structalias.c (solve_constraints): Build succ graph
3307         as late as possible.
3308
3309 2011-04-28  Richard Guenther  <rguenther@suse.de>
3310
3311         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
3312         (debug_constraint): Do it here.
3313         (dump_constraints): And here.
3314         (rewrite_constraints): And here.
3315         (dump_constraint_edge): Remove.
3316         (dump_constraint_graph): Rewrite to produce DOT output.
3317         (solve_constraints): Build succ graph as late as possible.
3318         Dump constraint graphs before and after solving.
3319
3320 2011-04-28  Richard Guenther  <rguenther@suse.de>
3321
3322         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3323         New function split out from ...
3324         (find_func_aliases): ... here.  Call it.
3325         (find_func_aliases_for_call): Likewise.
3326
3327 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3328
3329         * internal-fn.h (internal_fn_name_array): Declare.
3330         (internal_fn_flags_array): Likewise.
3331
3332 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
3333
3334         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
3335         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
3336         Move from sse.md.
3337         (ssemodefsuffix): Remove.
3338         (ssevecmodesuffix): New mode attribute.
3339         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
3340         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3341         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3342         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3343         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
3344         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
3345         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
3346         ssemodesuffix mode attribute.
3347         (float splitters): Use ssevecmodesuffix mode attribute.
3348         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
3349         (sseinsmode): Rename from avxvecmode.
3350         (avxsizesuffix): Rename from avxmodesuffix.
3351         (sseintvecmode): Rename from avxpermvecmode.
3352         (ssedoublevecmode): Rename from ssedoublesizemode.
3353         (ssehalfvecmode): Rename from avxhalfvecmode.
3354         (ssescalarmode): Rename from avxscalarmode.
3355         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
3356         templates for ssemodesuffix mode attribute.
3357         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
3358         mode attribute.
3359
3360         Adjust RTX patterns globally for renamed mode attributes.
3361
3362 2011-04-27  Jan Hubcika  <jh@suse.cz>
3363
3364         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
3365         * ipa-inline-analysis.c: Include alloc-pool.h.
3366         (edge_predicate_pool): New.
3367         (trye_predicate_p): New function
3368         (false_predicate_p): New function.
3369         (add_clause): Sanity check that false clauses are "optimized";
3370         never add clauses to predicate that is already known to be false.
3371         (and_predicate): Use flase_predicate_p.
3372         (evaulate_predicate): Rename to ...
3373         (evaluate_predicate): ... this one; update all callers; assert
3374         that false is not listed among possible truths.
3375         (dump_predicate): Use true_predicate_p.
3376         (account_size_time): Use false_predicate_p.
3377         (evaulate_conditions_for_edge): Rename to ...
3378         (evaluate_conditions_for_edge) ... this one.
3379         (edge_set_predicate): New function.
3380         (inline_edge_duplication_hook): Duplicate edge predicates.
3381         (inline_edge_removal_hook): Free edge predicates.
3382         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
3383         (dump_inline_summary): Update.
3384         (estimate_function_body_sizes): Set edge predicates.
3385         (estimate_calls_size_and_time): Handle predicates.
3386         (estimate_callee_size_and_time): Update.
3387         (remap_predicate): Add toplev_predicate; update comment.
3388         (remap_edge_predicates): New function.
3389         (inline_merge_summary): Compute toplev predicate; update.
3390         (read_predicate): New function.
3391         (read_inline_edge_summary): Use it.
3392         (inline_read_section): Likewise.
3393         (write_predicate): New function.
3394         (write_inline_edge_summary): Use it.
3395         (inline_write_summary): Likewise.
3396         (inline_free_summary): Free alloc pool and edge summary vec.
3397
3398 2011-04-27  Richard Guenther  <rguenther@suse.de>
3399
3400         * tree-ssa-structalias.c (changed_count): Remove.
3401         (changed): Use a bitmap.
3402         (unify_nodes): Adjust.
3403         (do_sd_constraint): Likewise.
3404         (do_ds_constraint): Likewise.
3405         (do_complex_constraint): Likewise.
3406         (solve_graph): Likewise.
3407
3408 2011-04-27  Jan Hubicka  <jh@suse.cz>
3409
3410         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3411
3412 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
3413
3414         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3415         (avx_vperm2f128_*_operand): Ditto.
3416         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3417         Use avx_vpermilp_parallel in insn condition.
3418         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3419         Use avx_vperm2f128_parallel in insn condition.
3420
3421 2011-04-27  Richard Guenther  <rguenther@suse.de>
3422
3423         * Makefile.in (tree-ssa-structalias.o): Remove
3424         gt-tree-ssa-structalias.h dependency.
3425         (GTFILES): Remove tree-ssa-structalias.c.
3426         * tree.c (allocate_decl_uid): New function.
3427         (make_node_stat): Use it.
3428         (copy_node_stat): Likewise.
3429         * tree.h (allocate_decl_uid): Declare.
3430         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3431         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3432         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
3433         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
3434         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3435         (struct heapvar_map): Likewise.
3436         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3437         heapvar_insert): Likewise.
3438         (make_heapvar_for): Rename to ...
3439         (make_heapvar): ... this.  Simplify.
3440         (fake_var_decl_obstack): New global var.
3441         (build_fake_var_decl): New function.
3442         (make_constraint_from_heapvar): Adjust.
3443         (handle_lhs_call): Likewise.
3444         (create_function_info_for): Likewise.
3445         (intra_create_variable_infos): Likewise.
3446         (init_alias_vars): Allocate fake_var_decl_obstack.
3447         (init_alias_heapvars, delete_alias_heapvars): Remove.
3448         (compute_points_to_sets): Do not call init_alias_heapvars.
3449         (ipa_pta_execute): Likewise.
3450         (delete_points_to_sets): Free fake_var_decl_obstack.
3451
3452 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3453
3454         * config/spu/divmovti4.c (union qword_UTItype): New data type.
3455         (si_from_UTItype, si_to_UTItype): New functions.
3456         (__udivmodti4): Use them to implement type-punning.
3457         * config/spu/multi3.c (union qword_TItype): New data type.
3458         (si_from_TItype, si_to_TItype): New functions.
3459         (__multi3): Use them to implement type-punning.
3460
3461 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3462
3463         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3464
3465 2011-04-27  Jan Hubicka  <jh@suse.cz>
3466
3467         * ipa-prop.c (function_insertion_hook_holder): New holder.
3468         (ipa_add_new_function): New function.
3469         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3470         Register/deregister holder.
3471
3472 2011-04-27  Richard Guenther  <rguenther@suse.de>
3473
3474         PR tree-optimization/48772
3475         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
3476
3477 2011-04-27  Richard Guenther  <rguenther@suse.de>
3478
3479         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3480         TARGET_MEM_REF handling.
3481
3482 2011-04-27  Nick Clifton  <nickc@redhat.com>
3483
3484         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3485         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3486         (REG_CLASS_NAMES): Likewise.
3487         (REG_CLASS_CONTENTS): Likewise.
3488         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
3489         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
3490         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
3491         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
3492         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
3493         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3494         duplicate register classes.
3495         (frv_class_likely_spilled_p): Likewise.
3496         (frv_register_move_cost): Likewise.
3497
3498         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3499         end of the regno_reg_class array.
3500
3501 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
3502
3503         PR c/48742
3504         * c-typeck.c (build_binary_op): Don't wrap arguments if
3505         int_operands is true.
3506
3507 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
3508
3509         PR target/48767
3510         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3511         targetm.calls.must_pass_in_stack for void type.
3512
3513 2011-04-26  Jan Hubicka  <jh@suse.cz>
3514
3515         * cgraphbuild.c (build_cgraph_edges): Update call
3516         of cgraph_create_edge and cgraph_create_indirect_edge.
3517         * cgraph.c (cgraph_create_edge_including_clones,
3518         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3519         cgraph_update_edges_for_call_stmt_node): Do not take nest
3520         argument; do not initialize call_stmt_size/time.
3521         (dump_cgraph_node): Do not dump nest.
3522         (cgraph_clone_edge): Do not take loop_nest argument;
3523         do not propagate it; do not clone call_stmt_size/time.
3524         (cgraph_clone_node): Likewise.
3525         (cgraph_create_virtual_clone): Update.
3526         * cgraph.h (struct cgraph_edge): Remove
3527         call_stmt_size/call_stmt_time/loop_nest.
3528         (cgraph_create_edge, cgraph_create_indirect_edge,
3529         cgraph_create_edge_including_clones, cgraph_clone_node): Update
3530         prototype.
3531         * tree-emutls.c (gen_emutls_addr): Update.
3532         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3533         loop_nest; handle indirect calls, too.
3534         (clone_inlined_nodes): Do not care about updating inline summaries.
3535         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3536         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3537         stream call_stmt_size/call_stmt_time/loop_nest.
3538         * ipa-inline.c (edge_badness): Update.
3539         (ipa_inline): dump summaries after inlining.
3540         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3541         New.
3542         (inline_edge_summary): New function.
3543         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3544         (inline_edge_removal_hook): Handle edge summaries.
3545         (inline_edge_duplication_hook): New hook.
3546         (inline_summary_alloc): Alloc hooks.
3547         (initialize_growth_caches): Do not register removal hooks.
3548         (free_growth_caches); Do not free removal hook.
3549         (dump_inline_edge_summary): New function.
3550         (dump_inline_summary): Use it.
3551         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3552         (inline_update_callee_summaries): New function.
3553         (inline_merge_summary): Use it.
3554         (do_estimate_edge_time, do_estimate_edge_growth): Update.
3555         (read_inline_edge_summary): New function.
3556         (inline_read_section): Use it.
3557         (write_inline_edge_summary): New function.
3558         (inline_write_summary): Use it.
3559         (inline_free_summary): Free edge new holders.
3560         * tree-inline.c (copy_bb): Update.
3561
3562 2011-04-26  Jason Merrill  <jason@redhat.com>
3563
3564         * tree-eh.c (lower_try_finally_switch): Create the label along with
3565         the CASE_LABEL_EXPR.
3566
3567 2011-04-26  David S. Miller  <davem@davemloft.net>
3568             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3569
3570         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3571         * configure: Regenerate.
3572
3573 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
3574
3575         PR target/48258
3576         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3577         reduction.
3578         (VEC_reduc): New code iterator and splitters for vector reduction.
3579         (VEC_reduc_name): Ditto.
3580         (VEC_reduc_rtx): Ditto.
3581         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3582         (reduc_<VEC_reduc_name>_v4sf): Ditto.
3583
3584         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3585         support for extracting SF on VSX.
3586
3587         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3588         generating xscvspdp.
3589         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3590         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3591         double add, minimum, maximum vector reduction.
3592         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3593         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3594         optimize double vector reduction.
3595         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3596
3597 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
3598
3599         * config/fr30/fr30.h (inhibit_libc): Don't define.
3600         * config/m32r/m32r-protos.h: Correct comment.
3601         * config/v850/v850.h (GHS_default_section_names,
3602         GHS_current_section_names): Use tree, not union tree_node *.
3603
3604 2011-04-26  Xinliang David Li  <davidxl@google.com>
3605
3606         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
3607         * c-family/c-opts.c (c_common_handle_option): Set
3608         warn_maybe_uninitialized.
3609         * opts.c (common_handle_option): Ditto.
3610         * common.opt:  New option.
3611         * tree-ssa.c (warn_uninit): Add one more parameter.
3612         (warn_uninitialized_var): Pass warning code.
3613         * tree-flow.h: Interface change.
3614
3615
3616 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3617
3618         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3619         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3620         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3621
3622 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3623
3624         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3625         * config/mips/mips.opt (mmips-tfile): Remove.
3626
3627         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3628         mips-tdump reference to ...
3629         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
3630         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3631         reference by Tru64 UNIX.
3632
3633 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
3634
3635         PR debug/48768
3636         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3637         is error_mark_node, set value to NULL.
3638
3639         PR tree-optimization/48734
3640         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3641         if return value from maybe_fold_*_comparsions isn't something
3642         the code is prepared to handle.
3643
3644 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
3645
3646         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3647         mode check.
3648         (ext_QIreg_nomode_operands): Remove.
3649         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3650         (*andsi_1): Ditto.
3651         (*andhi_1): Ditto.
3652
3653 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
3654
3655         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3656
3657 2011-04-26  Richard Guenther  <rguenther@suse.de>
3658
3659         * c-typeck.c (build_unary_op): Do not expand array-refs via
3660         pointer arithmetic.  Only adjust qualifiers for function types.
3661
3662 2011-04-26  Richard Guenther  <rguenther@suse.de>
3663
3664         PR middle-end/48694
3665         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3666         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3667         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
3668         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3669
3670 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
3671
3672         * doc/extend.texi: Document __underlying_type.
3673
3674 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
3675
3676         * config/rs6000/titan.md (automata_option "progress"): Remove.
3677
3678 2011-04-25  Jeff Law  <law@redhat.com>
3679
3680         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3681
3682 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
3683
3684         * system.h (ENUM_BITFIELD): Remove.
3685
3686 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
3687             Eric Botcazou  <ebotcazou@adacore.com>
3688
3689         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3690         for STORE_FLAG_VALUE==-1 case.
3691
3692 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
3693
3694         PR target/43804
3695         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3696         LEGITIMATE_PIC_OPERAND_P.
3697
3698 2011-04-24  Jan Hubicka  <jh@suse.cz>
3699
3700         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3701         WPA hack.
3702         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3703         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3704         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3705         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3706         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3707         Sanity check predicate length.
3708         (remap_predicate): Likewise; sanity check jump functions.
3709         (inline_read_section, inline_write_summary): Sanity check
3710         predicate length.
3711
3712 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
3713
3714         PR other/48748
3715         * doc/extend.texi (Type Traits): Document __is_standard_layout,
3716         __is_literal_type, and __is_trivial; update throughout about
3717         possibly cv-qualified void types.
3718
3719 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
3720
3721         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3722         testsuite and make it version agnostic.
3723
3724 2011-04-22  Jan Hubicka  <jh@suse.cz>
3725
3726         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3727
3728 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
3729
3730         PR c/48685
3731         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3732         to VOID_TYPE even around MODIFY_EXPR.
3733
3734 2011-04-22  Mike Stump  <mikestump@comcast.net>
3735
3736         * gensupport.c (read_md_rtx): Fix typo in comment.
3737         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3738         comment.
3739
3740 2011-04-22  Jan Hubicka  <jh@suse.cz>
3741
3742         * gengtype.c (open_base_files): Add ipa-inline.h include.
3743         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3744         ipa-prop.c; update all uses.
3745         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3746         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3747         merge summary of inlined function into former caller.
3748         * ipa-inline.c (max_benefit): Remove.
3749         (edge_badness): Compensate for removal of benefits.
3750         (update_caller_keys): Use
3751         reset_node_growth_cache/reset_edge_growth_cache.
3752         (update_callee_keys): Likewise.
3753         (update_all_callee_keys): Likewise.
3754         (inline_small_functions): Do not collect max_benefit; do not reset
3755         estimated_growth; call free_growth_caches and initialize_growth_caches.
3756         * ipa-inline.h (struct condition, type clause_t, struct predicate,
3757         struct size_time_entry): New structures.
3758         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3759         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3760         and estimated_growth.
3761         (edge_growth_cache_entry): New structure.
3762         (node_growth_cache, edge_growth_cache): New global vars.
3763         (estimate_growth): Turn into inline.
3764         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3765         initialize_growth_caches, free_growth_caches): Declare.
3766         (estimate_edge_growth): Rewrite.
3767         (estimate_edge_time): Implement as inline cache lookup.
3768         (reset_node_growth_cache, reset_edge_growth_cache): New inline
3769         functions.
3770         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3771         (NUM_CONDITIONS): New constant.
3772         (predicate_conditions): New enum.
3773         (IS_NOT_CONSTANT): New constant.
3774         (edge_removal_hook_holder): New var.
3775         (node_growth_cache, edge_growth_cache): New global vars.
3776         (true_predicate, single_cond_predicate, false_predicate,
3777         not_inlined_predicate, add_condition, add_clause, and_predicates,
3778         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3779         dump_clause, dump_predicate, account_size_time,
3780         evaulate_conditions_for_edge): New functions.
3781         (inline_summary_alloc): Move to heap.
3782         (inline_node_removal_hook): Clear condition and entry vectors.
3783         (inline_edge_removal_hook): New function.
3784         (initialize_growth_caches, free_growth_caches): New function.
3785         (dump_inline_summary): Update.
3786         (edge_execution_predicate): New function.
3787         (will_be_nonconstant_predicate): New function.
3788         (estimate_function_body_sizes): Compute BB and constantness predicates.
3789         (compute_inline_parameters): Do not clear estimated_growth.
3790         (estimate_edge_size_and_time): New function.
3791         (estimate_calls_size_and_time): New function.
3792         (estimate_callee_size_and_time): New function.
3793         (remap_predicate): New function.
3794         (inline_merge_summary): New function.
3795         (do_estimate_edge_time): New function based on...
3796         (estimate_edge_time): ... this one.
3797         (do_estimate_edge_growth): New function.
3798         (do_estimate_growth): New function based on....
3799         (estimate_growth): ... this one.
3800         (inline_analyze_function): Analyze after deciding on jump functions.
3801         (inline_read_section): New function.
3802         (inline_read_summary): Use it.
3803         (inline_write_summary): Write all the new data.
3804         * ipa-prop.c (ipa_get_param_decl_index): Export.
3805         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3806         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3807         Declare.
3808         (ipa_get_lattice): Move here from ipa-cp.c
3809         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3810         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3811         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3812         cgraph_edge_inlinable_p): Remove.
3813         * cgraphunit.c: Include ipainline.h
3814         (cgraph_process_new_functions): Update call of
3815         compute_inline_parameters.
3816
3817 2011-04-22  Richard Guenther  <rguenther@suse.de>
3818
3819         * tree.c (build_int_cst): Properly create canonicalized integer
3820         constants.
3821         (build_int_cst_type): Remove scary comments.
3822
3823 2011-04-22  Xinliang David Li  <davidxl@google.com>
3824
3825         * toplev.c (process_options): Enable -Werror=coverage-mismatch
3826         by default when -Wno-error is not specified.
3827         * opts-global.c (decode_options): Remove call to
3828         control_warning_options.
3829
3830 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
3831
3832         PR tree-optimization/48717
3833         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3834         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3835
3836 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
3837
3838         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
3839         definition where used.
3840
3841 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
3842
3843         PR c/48716
3844         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3845         TREE_STATIC variables declared inside of some OpenMP construct.
3846
3847 2011-04-22  Martin Jambor  <mjambor@suse.cz>
3848
3849         PR middle-end/48585
3850         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3851
3852 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
3853
3854         PR c/36750
3855         * c-typeck.c (pop_init_level): Do not warn about initializing
3856         with ` = {0}'.
3857
3858 2011-04-22  Alan Modra  <amodra@gmail.com>
3859
3860         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3861         when returning call_cookie.
3862         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3863         pointers, to functions with no more vector args than the current
3864         function, and some non-local calls for ABI_V4.
3865         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3866         sibcall_nonlocal_aix64): Combine to ..
3867         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
3868         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3869         (sibcall_value_nonlocal_aix<mode>): ..likewise.
3870         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3871         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
3872         operand.
3873         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3874         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3875         sibcall_value_symbolic_64): Delete.
3876
3877 2011-04-21  Xinliang David Li  <davidxl@google.com>
3878
3879         * cgraph.h: Remove pid.
3880         * cgraph.c: Remove pid.
3881         * value-prof.c (init_node_map): New function.
3882         (del_node_map): New function.
3883         (find_func_by_funcdef_no): New function.
3884         (gimple_ic_transform): Call new function.
3885         * cgraphunit.c (cgraph_finalize_function): Remove pid.
3886         * function.c (get_last_funcdef_no): New function.
3887         * function.h (get_last_funcdef_no): New function.
3888         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3889         to libgcov function.
3890         (tree-profiling): Call node map init and delete function.
3891
3892 2011-04-21  Ian Lance Taylor  <iant@google.com>
3893
3894         * godump.c (go_format_type): Use exported Go name for anonymous
3895         field name.
3896
3897 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3898
3899         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3900         Call builtin_function_type_list instead of builtin_function_type.
3901         (UNARY, BINARY, TRINARY, QUAD): Likewise.
3902
3903 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3904
3905         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3906         build_function_type_list instead of build_function_type.
3907         Delete variable `endlink'.
3908
3909 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3910
3911         * config/s390/s390.c (s390_init_builtins): Call
3912         build_function_type_list instead of build_function_type.
3913
3914 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3915
3916         * config/ia64/ia64.c (ia64_init_builtins): Call
3917         build_function_type_list instead of builtin_function_type.
3918
3919 2011-04-21  Easwaran Raman  <eraman@google.com>
3920
3921         * cfgexpand.c (stack_var): Remove OFFSET...
3922         (add_stack_var): ...and its reference here...
3923         (expand_stack_vars): ...and here.
3924         (stack_var_cmp): Sort by descending order of size.
3925         (partition_stack_vars): Change heuristic.
3926         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3927         (dump_stack_var_partition): Add newline after each partition.
3928
3929 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
3930             Jeff Law  <law@redhat.com>
3931
3932         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3933         * gengtype.c (matching_file_name_substitute): Likewise.
3934
3935 2011-04-21  Richard Guenther  <rguenther@suse.de>
3936
3937         PR lto/48703
3938         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3939
3940 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
3941
3942         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3943
3944 2011-04-21  Richard Guenther  <rguenther@suse.de>
3945
3946         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3947         file name.
3948
3949 2011-04-21  Richard Guenther  <rguenther@suse.de>
3950
3951         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3952         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3953         Use DECL_P, not SSA_VAR_P.
3954         (ptr_derefs_may_alias_p): Likewise.
3955         (ptr_deref_may_alias_ref_p_1): Likewise.
3956         (decl_refs_may_alias_p): Likewise.
3957         (refs_may_alias_p_1): Likewise.
3958         (ref_maybe_used_by_call_p_1): Likewise.
3959         (call_may_clobber_ref_p_1): Likewise.
3960         (indirect_ref_may_alias_decl_p): Assume indirect refrences
3961         are either MEM_REF or TARGET_MEM_REF.
3962         (indirect_refs_may_alias_p): Likewise.
3963         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3964         for MEM_EXPR of indirect calls.
3965
3966 2011-04-21  Tristan Gingold  <gingold@adacore.com>
3967
3968         * vmsdbgout.c (write_srccorr): Compute file length from the string.
3969         (dst_file_info_struct): Remove flen field.
3970         (lookup_filename): Remove code that set flen field.
3971
3972 2011-04-21  Tristan Gingold  <gingold@adacore.com>
3973
3974         * config/ia64/ia64.c (ia64_start_function): Add a guard.
3975
3976 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
3977
3978         PR target/48708
3979         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3980         vec_extract and vec_concat for non-SSE4_1 targets.
3981
3982 2011-04-21  Richard Guenther  <rguenther@suse.de>
3983
3984         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3985         return statements.
3986
3987 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
3988
3989         * config/i386/cygming.h (union tree_node, TREE): Don't define or
3990         undefine.
3991         (FILE): Don't undefine.
3992
3993 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
3994
3995         * config/alpha/alpha.c (struct machine_function): Use rtx, not
3996         struct rtx_def *.
3997         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3998         struct rtx_def *.
3999         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
4000         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
4001         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
4002         rtx_def *.
4003         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
4004         definitions where used.
4005         * config/microblaze/microblaze.h (struct microblaze_args): Use
4006         rtx, not struct rtx_def *.
4007         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
4008         rtx_def *.
4009         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
4010         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
4011         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
4012         not struct rtx_def *.
4013         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
4014         struct rtx_def *.
4015         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
4016         rtx_def *.
4017         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
4018
4019 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4020
4021         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
4022         operand_equal_p to compare DR_BASE_ADDRESSes.
4023         (vect_check_interleaving): Likewise.
4024
4025 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4026
4027         PR target/46329
4028         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
4029         for all Neon struct constants.
4030
4031 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4032
4033         * target.def (legitimate_constant_p): New hook.
4034         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
4035         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
4036         * doc/tm.texi: Regenerate.
4037         * hooks.h (hook_bool_mode_rtx_true): Declare.
4038         * hooks.c (hook_bool_mode_rtx_true): Define.
4039         * system.h (LEGITIMATE_CONSTANT_P): Poison.
4040         * calls.c (precompute_register_parameters): Replace uses of
4041         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
4042         (emit_library_call_value_1): Likewise.
4043         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
4044         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
4045         * ira-costs.c (scan_one_insn): Likewise.
4046         * recog.c (general_operand, immediate_operand): Likewise.
4047         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
4048         * reload1.c (init_eliminable_invariants): Likewise.
4049
4050         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
4051         mode argument.
4052         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
4053         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
4054         argument.
4055         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4056         * config/alpha/predicates.md (input_operand): Update call to
4057         alpha_legitimate_constant_p.
4058
4059         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
4060         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
4061         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
4062         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4063         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
4064         (arm_legitimate_constant_p): New functions.
4065         (arm_cannot_force_const_mem): Make static.
4066
4067         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
4068
4069         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
4070         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
4071         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
4072         instead of bfin_legitimate_constant_p.
4073         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
4074         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4075
4076         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
4077
4078         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
4079
4080         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
4081         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
4082         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4083         (frv_legitimate_constant_p): Make static.  Add a mode argument.
4084
4085         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
4086         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
4087         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
4088
4089         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
4090         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
4091         * config/i386/i386.c (legitimate_constant_p): Rename to...
4092         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
4093         argument.
4094         (ix86_cannot_force_const_mem): Update accordingly.
4095         (ix86_legitimate_address_p): Likewise.
4096         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4097         * config/i386/i386.md: Update commentary.
4098
4099         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
4100         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
4101         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4102         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
4103
4104         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
4105
4106         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
4107         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
4108         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4109         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
4110
4111         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
4112         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
4113         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
4114
4115         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
4116         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4117         (m32r_legitimate_constant_p): New function.
4118
4119         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
4120         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
4121         LEGITIMATE_CONSTANT_P.
4122         (LEGITIMATE_CONSTANT_P): Delete.
4123         * config/m68k/m68k.c (m68k_expand_prologue): Call
4124         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
4125         (m68k_legitimate_constant_p): New function.
4126         * config/m68k/m68k.md: Update comments.
4127
4128         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
4129         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4130         (mcore_legitimate_constant_p): New function.
4131
4132         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
4133         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
4134         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
4135         Add a mode argument.
4136         (mep_legitimate_address): Update accordingly.
4137         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4138
4139         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
4140         Delete.
4141         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
4142         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
4143         static.  Check OP's mode for VOIDmode.
4144         (microblaze_legitimate_constant_p): New function.
4145         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4146
4147         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
4148         * config/mips/mips.c (mips_legitimate_constant_p): New function.
4149         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
4150         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4151         * config/mips/predicates.md: Update comments.
4152
4153         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
4154         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
4155         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4156         (mmix_legitimate_constant_p): Make static, return a bool, and take
4157         a mode argument.
4158         (mmix_print_operand_address): Update accordingly.
4159
4160         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
4161         Delete.
4162         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
4163         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
4164         static.  Add a mode argument.
4165         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4166
4167         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
4168
4169         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
4170         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4171         (pa_legitimate_constant_p): New function.
4172
4173         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
4174
4175         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
4176         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4177         (pdp11_legitimate_constant_p): New function.
4178
4179         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
4180         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4181         (rs6000_legitimate_constant_p): New function.
4182
4183         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
4184         (rx_legitimate_constant_p): ...this.
4185         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
4186         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
4187         (rx_legitimate_constant_p): ...this.
4188         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4189         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
4190
4191         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
4192         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
4193         * config/s390/s390.c (legitimate_constant_p): Rename to...
4194         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
4195         and add a mode argument.
4196         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4197
4198         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
4199
4200         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
4201         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4202         (sh_legitimate_constant_p): New function.
4203
4204         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
4205         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
4206         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4207         (legitimate_constant_p): Rename to...
4208         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
4209         argument.
4210         (constant_address_p): Update accordingly.
4211
4212         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
4213         argument and return a bool.
4214         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
4215         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4216         (spu_legitimate_constant_p): Add a mode argument and return a bool.
4217         (spu_rtx_costs): Update accordingly.
4218         * config/spu/predicates.md (vec_imm_operand): Likewise.
4219
4220         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
4221
4222         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
4223         * config/v850/v850.c (v850_legitimate_constant_p): New function.
4224         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4225
4226         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
4227         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
4228         * config/vax/vax.c (legitimate_constant_p): Likewise.
4229
4230         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
4231         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4232         (xtensa_legitimate_constant_p): New function.
4233
4234 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4235
4236         * target.def (cannot_force_const_mem): Add a mode argument.
4237         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
4238         * doc/tm.texi: Regenerate.
4239         * hooks.h (hook_bool_mode_rtx_false): Declare.
4240         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
4241         (hook_bool_mode_const_rtx_true): Likewise.
4242         (hook_bool_mode_rtx_false): New function.
4243         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
4244         to be non-VOID.  Update call to cannot_force_const_mem.
4245         (find_reloads): Update accordingly.
4246         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
4247         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
4248         argument.
4249         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
4250         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
4251         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
4252         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
4253         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
4254         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
4255         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
4256         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4257         (m68k_cannot_force_const_mem): ...this new function.
4258         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
4259         argument.
4260         (mips_const_insns, mips_legitimize_const_move): Update calls.
4261         (mips_secondary_reload_class): Likewise.
4262         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4263         (pa_cannot_force_const_mem): ...this new function.
4264         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
4265         (rs6000_cannot_force_const_mem): ...this new function.
4266         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
4267         argument.
4268         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
4269         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
4270         to...
4271         (xtensa_cannot_force_const_mem): ...this new function.
4272
4273 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4274
4275         * config/mips/mips.c (mips16_build_function_stub): Call
4276         build_function_type_list instead of build_function_type.
4277         (mips16_build_call_stub): Likewise.
4278
4279 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4280
4281         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
4282         instead of build_function_type.
4283
4284 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4285
4286         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
4287         instead of build_function_type.
4288
4289 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
4290
4291         PR target/48678
4292         * config/i386/i386.md (insv): Change operand 0 constraint to
4293         "register_operand".  Change operand 1 and 2 constraint to
4294         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
4295         * config/i386/sse.md (sse4_1_pinsrb): Export.
4296         (sse2_pinsrw): Ditto.
4297         (sse4_1_pinsrd): Ditto.
4298         (sse4_1_pinsrq): Ditto.
4299         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
4300         * config/i386/i386.c (ix86_expand_pinsr): New.
4301
4302 2011-04-20  Easwaran Raman  <eraman@google.com>
4303
4304         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
4305         containing union type only with -fstrict-aliasing.
4306
4307 2011-04-20  Jim Meyering  <meyering@redhat.com>
4308
4309         Remove useless if-before-free tests.
4310         * calls.c (expand_call, save_area): Likewise.
4311         * cfgcleanup.c (try_forward_edges): Likewise.
4312         * collect2.c (collect_execute): Likewise.
4313         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
4314         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4315         * coverage.c (coverage_checksum_string): Likewise.
4316         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
4317         * cselib.c (cselib_init): Likewise.
4318         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
4319         (df_set_clean_cfg): Likewise.
4320         * function.c (free_after_compilation): Likewise.
4321         * gcc.c (do_spec_1, main): Likewise.
4322         * gcov.c (create_file_names): Likewise.
4323         * gensupport.c (identify_predicable_attribute): Likewise.
4324         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
4325         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
4326         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
4327         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
4328         * ipa-pure-const.c (local_pure_const): Likewise.
4329         * ipa-reference.c (propagate): Likewise.
4330         * ira-costs.c (free_ira_costs): Likewise.
4331         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
4332         * matrix-reorg.c (mat_free): Likewise.
4333         * prefix.c (get_key_value): Likewise.
4334         * profile.c (compute_value_histograms): Likewise.
4335         * reload1.c (free_reg_equiv): Likewise.
4336         * sched-deps.c (free_deps): Likewise.
4337         * sel-sched-ir.c (fence_clear): Likewise.
4338         * sese.c (set_rename, if_region_set_false_region): Likewise.
4339         * tree-data-ref.c (free_rdg): Likewise.
4340         * tree-eh.c (lower_try_finally): Likewise.
4341         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
4342         * tree-ssa-live.c (delete_var_map): Likewise.
4343         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
4344         * tree-ssa-pre.c (phi_trans_add): Likewise.
4345
4346 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
4347
4348         PR tree-optimization/48611
4349         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
4350         beyond ERT_MUST_NOT_THROW region.
4351
4352 2011-04-20  Catherine Moore  <clm@codesourcery.com>
4353
4354         * config/mips/mips.opt (mfix-24k): New.
4355         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
4356         * config/mips/mips.md (length): Increase by 4 for stores if
4357         fixing 24K errata.
4358         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
4359         all noreorder if fixing 24K errata.
4360         * doc/invoke.texi: Document mfix-24k.
4361
4362 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
4363
4364         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
4365         quad-word modes, reduce to 9-bit index range when above 1016 limit.
4366
4367 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
4368
4369         * config/arm/arm.c (arm_gen_constant): Move movw support ....
4370         (const_ok_for_op): ... to here.
4371
4372 2011-04-20  Kai Tietz  <ktietz@redhat.com>
4373
4374         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
4375         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
4376
4377 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
4378
4379         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
4380
4381 2011-04-20  Richard Guenther  <rguenther@suse.de>
4382
4383         PR tree-optimization/47892
4384         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
4385         are if-convertible.
4386
4387 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
4388
4389         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4390
4391 2011-04-20  Tristan Gingold  <gingold@adacore.com>
4392
4393         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
4394
4395 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
4396
4397         PR target/18145
4398
4399         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
4400         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
4401         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4402         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
4403         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
4404
4405         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4406         New prototype.
4407
4408         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4409         (avr_asm_named_section, avr_asm_output_aligned_common,
4410         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4411         New functions to update...
4412         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4413         (avr_asm_init_sections): Overwrite section callbacks for
4414         data_section, bss_section.
4415         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4416         from here to...
4417         (avr_file_end): ...here.
4418
4419 2011-04-20  Richard Guenther  <rguenther@suse.de>
4420
4421         PR middle-end/48695
4422         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
4423         objects and types here.  Adjust for their offset before comparing.
4424
4425 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
4426
4427         * tree-vect-stmts.c (vectorizable_store): Only chain one related
4428         statement per copy.
4429
4430 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
4431
4432         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4433         (GIMPLE_H): Include $(INTERNAL_FN_H).
4434         (OBJS-common): Add internal-fn.o.
4435         (internal-fn.o): New rule.
4436         * internal-fn.def: New file.
4437         * internal-fn.h: Likewise.
4438         * internal-fn.c: Likewise.
4439         * gimple.h: Include internal-fn.h.
4440         (GF_CALL_INTERNAL): New gf_mask.
4441         (gimple_statement_call): Put fntype into a union with a new
4442         internal_fn field.
4443         (gimple_build_call_internal): Declare.
4444         (gimple_build_call_internal_vec): Likewise.
4445         (gimple_call_same_target_p): Likewise.
4446         (gimple_call_internal_p): New function.
4447         (gimple_call_internal_fn): Likewise.
4448         (gimple_call_fntype): Return null for internal calls.
4449         (gimple_call_set_fntype): Assert that the function is not internal.
4450         (gimple_call_set_fn): Likewise.
4451         (gimple_call_set_fndecl): Likewise.
4452         (gimple_call_set_internal_fn): New function.
4453         (gimple_call_addr_fndecl): Handle null functions.
4454         (gimple_call_return_type): Likewise null types.
4455         * gimple.c (gimple_build_call_internal_1): New function.
4456         (gimple_build_call_internal): Likewise.
4457         (gimple_build_call_internal_vec): Likewise.
4458         (gimple_call_same_target_p): Likewise.
4459         (gimple_call_flags): Handle calls to internal functions.
4460         (gimple_call_fnspec): New function.
4461         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4462         (gimple_has_side_effects): Handle null functions.
4463         (gimple_rhs_has_side_effects): Likewise.
4464         (gimple_call_copy_skip_args): Handle calls to internal functions.
4465         * cfgexpand.c (expand_call_stmt): Likewise.
4466         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4467         * gimple-fold.c (gimple_fold_call): Handle null functions.
4468         (gimple_fold_stmt_to_constant_1): Don't fold
4469         calls to internal functions.
4470         * gimple-low.c (gimple_check_call_args): Handle calls to internal
4471         functions.
4472         * gimple-pretty-print.c (dump_gimple_call): Likewise.
4473         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4474         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4475         (do_warn_unused_result): Likewise.
4476         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4477         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4478         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4479         the target of a call.
4480         (initialize_hash_element): Update accordingly.
4481         (hashable_expr_equal_p): Use gimple_call_same_target_p.
4482         (iterative_hash_hashable_expr): Handle calls to internal functions.
4483         (print_expr_hash_elt): Likewise.
4484         * tree-ssa-pre.c (can_value_number_call): Likewise.
4485         (eliminate): Handle null functions.
4486         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4487         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4488         (find_func_aliases): Likewise.
4489         * value-prof.c (gimple_ic_transform): Likewise.
4490         (gimple_indirect_call_to_profile): Likewise.
4491         * lto-streamer-in.c (input_gimple_stmt): Likewise.
4492         * lto-streamer-out.c (output_gimple_stmt): Likewise.
4493
4494 2011-04-19  Jan Hubicka  <jh@suse.cz>
4495
4496         * ipa-inline-transform.c (save_inline_function_body): Add comments.
4497         * ipa-inline.c (inline_small_functions): Compute summaries first,
4498         populate heap later.
4499
4500 2011-04-19  Jan Hubicka  <jh@suse.cz>
4501
4502         * cgraph.h (save_inline_function_body): Remove.
4503         * ipa-inline-transform.c: New file, broke out of...
4504         * ipa-inline.c: ... this one; Update toplevel comment.
4505         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4506         make global.
4507         (update_noncloned_frequencies): Move to ipa-inline-transform.c
4508         (cgraph_mark_inline_edge): Rename to inline_call; move to
4509         ipa-inline-transform.c.
4510         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4511         move to ipa-inline-transform.c
4512         (recursive_inlining, inline_small_functions, flatten_function,
4513         ipa_inline, inline_always_inline_functions,
4514         early_inline_small_functions): Update.
4515         (inline_transform): Move to ipa-inline-transform.c.
4516         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4517         Declare.
4518         * Makefile.in (ipa-inline-transform.o): New file.
4519         * cgraphunit.c (save_inline_function_body): Move to
4520         ipa-inline-transform.c
4521
4522 2011-04-19  DJ Delorie  <dj@redhat.com>
4523
4524         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4525         registers if we already know there aren't any.
4526         (m32c_emit_epilogue): Don't emit a barrier here.
4527         (m32c_emit_eh_epilogue): Likewise.
4528         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4529         operands at expand time.
4530         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4531         int" wchar type.
4532         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4533         duplicates.  Provide aliases instead.
4534         * config/m32c/prologue.md (eh_return): Emit a barrier here.
4535         (eh_epilogue): Add a "(return)" here as a hint to other parts of
4536         the compiler.
4537
4538 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
4539
4540         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4541         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4542         (general_or_i64_p, sparc_register_move_cost): New function.
4543
4544 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4545
4546         * doc/install.texi (Configuration, --enable-threads): Remove mach.
4547         Add lynx, mipssde.  Sort table.
4548
4549 2011-04-19  Xinliang David Li  <davidxl@google.com>
4550
4551         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4552         not negative.
4553
4554 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
4555
4556         PR target/48678
4557         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4558         is a SUBREG with non-MODE_INT mode inside of it.
4559
4560 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4561
4562         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4563         also according to actual contants.
4564         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4565         (gimple_fold_call): Use it.
4566         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4567
4568 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4569
4570         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4571         non-pointer assignments.
4572
4573 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4574
4575         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4576         account anc_offset and otr_type from the indirect edge info.
4577         * ipa-prop.c (get_ancestor_addr_info): New function.
4578         (compute_complex_ancestor_jump_func): Assignment analysis moved to
4579         get_ancestor_addr_info, call it.
4580         (ipa_note_param_call): Do not initialize information about polymorphic
4581         calls, return the indirect call graph edge.  Remove the last
4582         parameter, adjust all callers.
4583         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4584         parameters.  Initialize polymorphic information in the indirect edge.
4585
4586 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4587
4588         PR lto/48148
4589         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4590         the types if they have different enumeration identifiers.
4591
4592 2011-04-19  Jan Hubicka  <jh@suse.cz>
4593
4594         * cgraph.h (cgraph_optimize_for_size_p): Declare.
4595         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4596         * predict.c (cgraph_optimize_for_size_p): Break out from ...
4597         (optimize_function_for_size_p) ... here.
4598
4599 2011-04-19  Richard Guenther  <rguenther@suse.de>
4600
4601         PR lto/48207
4602         * tree.c (free_lang_data): Do not reset the decl-assembler-name
4603         langhook.
4604
4605 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4606
4607         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4608         if DECL_NO_INLINE_WARNING_P is set on the function.
4609
4610 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
4611
4612         PR fortran/47976
4613         * reload1.c (inc_for_reload): Return void. All callers changed.
4614         (emit_input_reload_insns): Don't try to delete previous output
4615         reloads to a register, or record spill_reg_store for autoincs.
4616
4617 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
4618
4619         * gengtype.h: Updated copyright year.
4620         (struct input_file_st): Add inpisplugin field.
4621         (type_fileloc): New function.
4622         * gengtype.c
4623         (write_typed_struct_alloc_def): Add gcc_assert.
4624         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4625         (write_typed_alloc_defns): Don't output for plugin files.
4626         (input_file_by_name): Clear inpisplugin field.
4627         (main): Set inpisplugin field for plugin files.
4628
4629 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
4630
4631         * gengtype-state.c (string_eq): New.
4632         (read_state): Use string_eq instead of strcmp when creating the
4633         state_ident_tab.
4634
4635 2011-04-19  Wei Guozhi  <carrot@google.com>
4636
4637         PR target/47855
4638         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4639         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4640         linkage.
4641         * config/arm/constraints.md (Uu): New constraint.
4642         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4643
4644 2011-04-19  Tristan Gingold  <gingold@adacore.com>
4645
4646         * config.gcc (-*-*-*vms): Added.
4647         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4648         definitions moved.
4649         * config/vms/vms-ld.c: New file.
4650         * config/vms/vms-ar.c: New file.
4651         * config/vms/t-vmsnative: New file.
4652
4653 2011-04-18  Xinliang David Li  <davidxl@google.com>
4654
4655         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4656
4657 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
4658
4659         PR middle-end/48661
4660         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4661         if TREE_TYPE (v) is non-NULL.
4662
4663         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4664         gimple_get_virt_mehtod_for_binfo.
4665         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4666         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4667         callers.
4668         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4669
4670 2011-04-18  Michael Matz  <matz@suse.de>
4671             Steve Ellcey  <sje@cup.hp.com>
4672
4673         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4674         use its mode as source mode if it isn't VOIDmode.
4675
4676 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
4677
4678         * doc/passes.texi: Fill crossref nodes.
4679
4680 2011-04-18  Jim Meyering  <meyering@redhat.com>
4681
4682         Fix doubled-word typos in comments and strings
4683         * config/alpha/vms-unwind.h: s/for for/for/
4684         * config/arm/unwind-arm.h: Likewise.
4685         * config/microblaze/microblaze.c: Likewise.
4686         * config/sh/constraints.md: s/in in/in/
4687         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4688
4689 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
4690
4691         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4692         (AVX_FLOAT_MODE_P): Ditto.
4693         (AVX128_VEC_FLOAT_MODE_P): Ditto.
4694         (AVX256_VEC_FLOAT_MODE_P): Ditto.
4695         (AVX_VEC_FLOAT_MODE_P): Ditto.
4696         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4697         (UNSPEC_MASKSTORE): Ditto.
4698         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4699         Merge from <sse>_movmsk<ssemodesuffix> and
4700         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
4701         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
4702         iterator.
4703         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4704         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4705         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4706
4707 2011-04-18  Jan Hubicka  <jh@suse.cz>
4708
4709         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4710
4711         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4712         (want_inline_function_called_once_p): Break out the logic from
4713         ipa_inline.
4714         (edge_badness): Ensure that profile is not misupdated.
4715         (lookup_recursive_calls): Prioritize by call frequencies.
4716         (inline_small_functions): Move program size estimates here;
4717         actually process whole queue even when unit growth has been
4718         met. (to properly compute inline_failed reasons and for the
4719         case unit size decrease.) Revisit comments on recursive inlining.
4720         (ipa_inline): Remove unit summary code; first inline hot calls
4721         of functions called once, cold calls next.
4722         (order, nnodes): Remove unused variables.
4723         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4724         (GTFILES): Remove ipa-inline.c
4725         * sel-sched.c (fill_insns): Silence uninitialized var warning.
4726
4727 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4728
4729         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4730
4731 2011-04-18  Jie Zhang  <jie@codesourcery.com>
4732             Richard Earnshaw  <rearnsha@arm.com>
4733
4734         * arm.c (neon_builtin_type_bits): Remove.
4735         (typedef enum neon_builtin_mode): New.
4736         (T_MAX): Don't define.
4737         (typedef enum neon_builtin_datum): Remove bits, codes[],
4738         num_vars and base_fcode.  Add mode, code and fcode.
4739         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4740         VAR10): Change accordingly.
4741         (neon_builtin_data[]): Change accordingly
4742         (arm_init_neon_builtins): Change accordingly.
4743         (neon_builtin_compare): Remove.
4744         (locate_neon_builtin_icode): Remove.
4745         (arm_expand_neon_builtin): Change accordingly.
4746
4747         * arm.h (enum arm_builtins): Move to ...
4748         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4749
4750         * arm.c (arm_builtin_decl): Declare.
4751         (TARGET_BUILTIN_DECL): Define.
4752         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4753         (arm_builtin_decls[]): New.
4754         (arm_init_neon_builtins): Store builtin declarations in
4755         arm_builtin_decls[].
4756         (arm_init_tls_builtins): Likewise.
4757         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
4758         (arm_builtin_decl): New.
4759
4760 2011-04-18  Richard Guenther  <rguenther@suse.de>
4761
4762         * tree.c (upper_bound_in_type): Build properly canonicalized
4763         INTEGER_CSTs.
4764         (lower_bound_in_type): Likewise.
4765
4766 2011-04-18  Richard Guenther  <rguenther@suse.de>
4767
4768         * gimple.h (gimple_call_addr_fndecl): New function.
4769         (gimple_call_fndecl): Use it.
4770         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4771         for direct calls.
4772         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4773         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4774
4775 2011-04-18  Richard Guenther  <rguenther@suse.de>
4776
4777         PR middle-end/48650
4778         * tree.c (build_string): STRING_CST is now derived from tree_typed.
4779
4780 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4781
4782         PR lto/48492
4783         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4784         DECL_IN_CONSTANT_POOL without RTL.
4785
4786 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
4787             Ira Rosen  <ira.rosen@linaro.org>
4788
4789         PR target/48252
4790         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4791         to match neon_vzip/vuzp/vtrn_internal.
4792         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4793         outputs explicitly dependent on both inputs.
4794         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4795
4796 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
4797
4798         PR tree-optimization/48616
4799         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4800         whether the shift is by scalar or vector based on whether all SLP
4801         scalar stmts have the same rhs.
4802
4803 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
4804
4805         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4806         memory operands.
4807
4808 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
4809
4810         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4811         registers.
4812
4813 2011-04-17  Jan Hubicka  <jh@suse.cz>
4814
4815         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4816         * cgrpahunit.c (cgraph_finalize_function): Do not set
4817         finalized_by_frontend.
4818         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4819         finalized_by_frontend.
4820
4821 2011-04-17  Jan Hubicka  <jh@suse.cz>
4822
4823         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4824         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4825         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4826         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4827         method.
4828         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4829         gimple-fold.c
4830         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4831
4832 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
4833
4834         PR lto/48538
4835         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4836         is non-null before accessing it.
4837         (input_cgraph): Remove trailing spaces.
4838
4839 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4840
4841         * params.def (sms-min-sc): New param flag.
4842         * modulo-sched.c (sms_schedule): Use it.
4843         * doc/invoke.texi (sms-min-sc): Document it.
4844
4845 2011-04-17  Jan Hubicka  <jh@suse.cz>
4846
4847         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4848         present, also set gimple_call_set_cannot_inline.
4849         * ipa-inline.c: Update toplevel comment.
4850         (MAX_TIME): Remove.
4851         (cgraph_clone_inlined_nodes): Fix linebreaks.
4852         (cgraph_check_inline_limits): Restructure to ...
4853         (caller_growth_limits): ... this one; be more tolerant
4854         on growth in nested inline chains; add explanatory comment;
4855         fix stack accounting thinko introduced by previous patch.
4856         (cgraph_default_inline_p): Remove.
4857         (report_inline_failed_reason): New function.
4858         (can_inline_edge_p): New function.
4859         (can_early_inline_edge_p): New function.
4860         (leaf_node_p): Move upwards in file.
4861         (want_early_inline_function_p): New function.
4862         (want_inline_small_function_p): New function.
4863         (want_inline_self_recursive_call_p): New function.
4864         (cgraph_edge_badness): Rename to ...
4865         (edge_badness) ... this one; fix linebreaks.
4866         (update_edge_key): Update call of edge_baddness; add
4867         detailed dump about queue updates.
4868         (update_caller_keys): Use can_inline_edge_p and
4869         want_inline_small_function_p.
4870         (cgraph_decide_recursive_inlining): Rename to...
4871         (recursive_inlining): Use can_inline_edge_p and
4872         want_inline_self_recursive_call_p; simplify and remove no longer
4873         valid FIXME.
4874         (cgraph_set_inline_failed): Remove.
4875         (add_new_edges_to_heap): Use can_inline_edge_p and
4876         want_inline_small_function_p.
4877         (cgraph_decide_inlining_of_small_functions): Rename to ...
4878         (inline_small_functions): ... this one; cleanup; use
4879         can/want predicates; cleanup debug ouput; work edges till fibheap
4880         is exhausted and do not stop once unit growth is reached; remove
4881         later loop processing remaining edges.
4882         (cgraph_flatten): Rename to ...
4883         (flatten_function): ... this one; use can_inline_edge_p
4884         and can_early_inline_edge_p predicates.
4885         (cgraph_decide_inlining): Rename to ...
4886         (ipa_inline): ... this one; remove unreachable nodes before
4887         inlining functions called once; simplify the pass.
4888         (cgraph_perform_always_inlining): Rename to ...
4889         (inline_always_inline_functions): ... this one; use
4890         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4891         (cgraph_decide_inlining_incrementally): Rename to ...
4892         (early_inline_small_functions): ... this one; simplify
4893         using new predicates; cleanup; make dumps prettier.
4894         (cgraph_early_inlining): Rename to ...
4895         (early_inliner): newer inline regular functions into always-inlines;
4896         fix updating of call stmt summaries.
4897         (pass_early_inline): Update for new names.
4898         (inline_transform): Fix formating.
4899         (gate_cgraph_decide_inlining): Rename to ...
4900         (pass_ipa_inline): ... this one.
4901         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4902         * ipa-inline-analysis.c (dump_inline_summary): Update.
4903         (compute_inline_parameters): Do not compute disregard_inline_limits;
4904         look for mismatching arguments.
4905         (estimate_growth): Fix handlig of non-trivial self recursion.
4906         (inline_read_summary): Do not read info->disregard_inline_limits.
4907         (inline_write_summary): Do not write info->disregard_inline_limits.
4908         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4909         and move all checks into can_inline_edge_p predicate; re-enable code
4910         comparing optimization levels.
4911         (expand_call_inline): Do not test inline_forbidden_into_p.
4912         * Makefile.in (ipa-inline.o): Update arguments.
4913
4914 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4915
4916         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4917
4918 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4919
4920         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4921
4922 2011-04-17  Michael Matz  <matz@suse.de>
4923
4924         PR tree-optimization/48622
4925         PR lto/48645
4926         * ipa-inline-analysis.c (inline_read_summary): Read size/time
4927         in same order as they're written.
4928
4929 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4930
4931         * config/pa/predicates.md: Reorganize and simplify predicates.
4932         Eliminate duplicate code checks.
4933         (arith_operand): Rename to arith14_operand
4934         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4935         * config/pa/pa.md: Use renamed operands.
4936         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4937         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4938         arith11_operand, adddi3_operand, indexed_memory_operand,
4939         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4940         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4941         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4942         move_dest_operand, move_src_operand, prefetch_cc_operand,
4943         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4944         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4945         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4946         div_operand, int5_operand, movb_comparison_operator,
4947         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4948         arith_double_operand, ireg_operand, lhs_lshift_operand,
4949         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4950         integer_store_memory_operand): Likewise.
4951         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4952         (integer_store_memory_operand, read_only_operand,
4953         function_label_operand, borx_reg_operand,
4954         non_hard_reg_operand): Likewise.
4955         (eq_neq_comparison_operator): Delete unused operator.
4956         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4957         function_label_operand.
4958         (emit_move_sequence): Likewise.
4959
4960 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
4961
4962         * config/i386/sse.md (sseunpackmode): New mode attribute.
4963         (ssepackmode): Ditto.
4964         (vec_pack_trunc_<mode>): Macroize expander from
4965         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4966         (vec_unpacks_lo_<mode>): Macroize expander from
4967         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4968         (vec_unpacks_hi_<mode>): Macroize expander from
4969         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4970         (vec_unpacku_lo_<mode>): Macroize expander from
4971         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4972         (vec_unpacku_hi_<mode>): Macroize expander from
4973         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4974         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4975         ix86_expand_sse4_unpack.
4976         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4977
4978 2011-04-16  Jan Hubicka  <jh@suse.cz>
4979
4980         * cgraphbuild.c: Include ipa-inline.h.
4981         (reset_inline_failed): Use initialize_inline_failed.
4982         * cgraph.c: Include ipa-inline.h.
4983         (cgraph_create_node_1): Do not initialize estimated_growth.
4984         (initialize_inline_failed): More to ipa-inline-analysis.c
4985         (dump_cgraph_node): Do not dump inline flags.
4986         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4987         and disregard_inline_limits flags.
4988         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4989         time, size, estimated_growth.
4990         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4991         Update.
4992         * cgraphunit.c (cgraph_decide_is_function_needed): Use
4993         DECL_DISREGARD_INLINE_LIMITS.
4994         (cgraph_analyze_function): Do not initialize
4995         node->local.disregard_inline_limits.
4996         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4997         inlinable, versionable and disregard_inline_limits.
4998         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4999         cgraph_check_inline_limits, cgraph_default_inline_p,
5000         cgraph_edge_badness, update_caller_keys, update_callee_keys,
5001         add_new_edges_to_heap): Update.
5002         (cgraph_decide_inlining_of_small_function): Update; set
5003         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
5004         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
5005         cgraph_decide_inlining_incrementally): Update.
5006         * ipa-inline.h (inline_summary): Add inlinable, versionable,
5007         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
5008         time, size and estimated_growth parameters.
5009         (estimate_edge_growth): Update.
5010         (initialize_inline_failed): Declare.
5011         * ipa-split.c: Include ipa-inline.h
5012         (execute_split_functions): Update.
5013         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
5014         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
5015         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
5016         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
5017         estimated_growth to INT_MIN.
5018         (inline_node_duplication_hook): Likewise.
5019         (dump_inline_summary): Dump new fields.
5020         (compute_inline_parameters): Update.
5021         (estimate_edge_time, estimate_time_after_inlining,
5022         estimate_size_after_inlining, estimate_growth, inline_read_summary,
5023         inline_write_summary):
5024         (initialize_inline_failed): Move here from cgraph.c.
5025         * tree-sra.c: Include ipa-inline.h.
5026         (ipa_sra_preliminary_function_checks): Update.
5027         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
5028         ipa-inline.h.
5029
5030 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
5031
5032         * config/i386/sse.md (V16): New mode iterator.
5033         (VI1, VI8): Ditto.
5034         (AVXMODEQI, AVXMODEDI): Remove.
5035         (sse2, sse3): New mode attribute.
5036         (mov<mode>): Use V16 mode iterator.
5037         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
5038         (push<mode>1): Use V16 mode iterator.
5039         (movmisalign<mode>): Ditto.
5040         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5041         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
5042         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5043         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
5044         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
5045         avx_movdqu<avxmodesuffix>.
5046         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
5047         *avx_movdqu<avxmodesuffix>.
5048         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
5049         avx_lddqu<avxmodesuffix>.
5050         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
5051         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
5052         avx_movnt<AVXMODEDI:mode>.
5053         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
5054         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
5055
5056 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
5057
5058         PR target/48629
5059         * haifa-sched.c (prune_ready_list, schedule_block): Use
5060         sched_pressure_p rather than flag_sched_pressure.
5061
5062 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
5063
5064         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5065         cgraph_get_node instead of cgraph_get_create_node.
5066
5067 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
5068
5069         * cfgexpand.c (expand_debug_expr): Use
5070         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
5071
5072 2011-04-15  Michael Matz  <matz@suse.de>
5073
5074         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
5075         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
5076         * function.c (gimplify_parameters): Ditto.
5077         * gimplify.c (gimplify_vla_decl): Ditto.
5078
5079         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
5080         (gimple_call_set_alloca_for_var): New inline function.
5081         (gimple_call_alloca_for_var_p): Ditto.
5082         * gimple.c (gimple_build_call_from_tree): Remember
5083         CALL_ALLOCA_FOR_VAR_P state.
5084         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
5085
5086         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
5087         calls if they were for VLA objects.
5088
5089 2011-04-15  Martin Jambor  <mjambor@suse.cz>
5090
5091         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
5092         of ADR_EXPRs.
5093
5094 2011-04-15  Martin Jambor  <mjambor@suse.cz>
5095
5096         PR middle-end/48601
5097         * tree-emutls.c (lower_emutls_function_body): Call
5098         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
5099         result is non-NULL.
5100
5101 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
5102
5103         * c-decl.c (detect_field_duplicates): Call
5104         objc_detect_field_duplicates instead of objc_get_interface_ivars.
5105
5106 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
5107
5108         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
5109         * gimple.c (gimple_asm_clobbers_memory_p): Define.
5110         * ipa-pure-const.c (check_stmt): Call it.
5111         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
5112
5113 2011-04-15  Richard Guenther  <rguenther@suse.de>
5114
5115         PR tree-optimization/48290
5116         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
5117         Properly decide inhibiting propagation based on the valueized
5118         operand.  Do loop-closed SSA form preserving here ...
5119         (init_copy_prop): ... not here.
5120
5121 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
5122
5123         PR target/48612
5124         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
5125         (*ieee_smax<mode>3): Likewise.
5126
5127 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5128
5129         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
5130         Replace match_operand with match_dup for the third operand in
5131         these expanders.
5132
5133 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
5134
5135         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
5136         to track processing of conditionals.  Update all callers.
5137         (try_combine, simplify_if_then_else): Update.
5138
5139 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
5140
5141         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
5142         -fsched-pressure.
5143
5144 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
5145
5146         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
5147         instead of match_operand for operand 3.
5148
5149 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
5150
5151         * recog.h (insn_operand_data): Add an "allows_mem" field.
5152         * genoutput.c (output_operand_data): Initialize it.
5153         * optabs.c (maybe_legitimize_operand_same_code): New function.
5154         (maybe_legitimize_operand): Use it when matching the original
5155         op->value.
5156
5157 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
5158
5159         * gimplify.c: Fix issues in comments throughout.
5160         (voidify_wrapper_expr): Fix long line.
5161         (build_stack_save_restore): Likewise.
5162         (gimplify_loop_expr): Likewise.
5163         (gimplify_compound_lval): Likewise.
5164         (gimplify_init_ctor_eval): Likewise.
5165         (gimplify_modify_expr_rhs): Likewise.
5166         (omp_notice_threadprivate_variable): Likewise.
5167
5168 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
5169
5170         * cfgexpand.c (expand_call_stmt): Convert the function type to the
5171         original one if this is not a builtin function.
5172
5173 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
5174
5175         PR target/48605
5176         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
5177         offset it as needed based on top 2 bits in operands[3], change
5178         MEM mode to SFmode and mask those 2 bits away from operands[3].
5179
5180 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
5181
5182         * c-parser.c (c_parser_objc_protocol_definition): Updated for
5183         change from objc_declare_protocols() to objc_declare_protocol().
5184
5185 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
5186
5187         * config/i386/sse.md (sse4_1): New mode attribute.
5188         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
5189         avx_blend<ssemodesuffix><avxmodesuffix> and
5190         sse4_1_blend<ssemodesuffix> using VF mode iterator.
5191         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
5192         avx_blendv<ssemodesuffix><avxmodesuffix> and
5193         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
5194         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
5195         avx_dp<ssemodesuffix><avxmodesuffix> and
5196         sse4_1_dp<ssemodesuffix> using VF mode iterator.
5197         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
5198         (sse4_1_packusdw): Merge with *avx_packusdw.
5199         (sse4_1_pblendvb): Merge with *avx_pblendvb.
5200         (sse4_1_pblendw): Merge with *avx_pblendw.
5201         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
5202         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
5203         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
5204         VF mode iterator.
5205         (sse4_1_round<ssescalarmodesuffix>): Merge with
5206         *avx_round<ssescalarmodesuffix>.
5207         (aesenc): Merge with *avx_aesenc.
5208         (aesenclast): Merge with *avx_aesenclast.
5209         (aesdec): Merge with *avx_aesdec.
5210         (aesdeclast): Merge with *avx_aesdeclast.
5211         (pclmulqdq): Merge with *pclmulqdq.
5212         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
5213         New predicate.
5214         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
5215
5216 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
5217
5218         PR middle-end/48608
5219         * cfgexpand.c (get_decl_align_unit): Renamed to ...
5220         (align_local_variable): This.  Update DECL_ALIGN.
5221         (add_stack_var): Updated.
5222         (expand_one_stack_var): Likewise.
5223
5224 2011-04-14  Richard Guenther  <rguenther@suse.de>
5225
5226         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
5227         Remove.
5228         (dse_initialize_block_local_data, dse_leave_block,
5229         record_voperand_set, get_stmt_uid): Likewise.
5230         (dse_possible_dead_store_p): Allow any kind of killing stmt.
5231         (dse_optimize_stmt): Remove voperand set handling code.
5232         Simplify and improve to handle any kind of killing stmt.
5233         (dse_record_phi): Remove.
5234         (dse_enter_block): Simplify.
5235         (tree_ssa_dse): Likewise.
5236         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
5237
5238 2011-04-14  Jan Hubicka  <jh@suse.cz>
5239
5240         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
5241         * cgraph.h (struct inline_summary): Move to ipa-inline.h
5242         (cgraph_local_info): Remove inline_summary.
5243         * ipa-cp.c: Include ipa-inline.h.
5244         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
5245         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
5246         accesor.
5247         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
5248         (input_overwrite_node): Do not set inline summary.
5249         (input_node): Do not stream inline summary.
5250         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
5251         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
5252         growth; we do not have inline parameters computed for that anyway.
5253         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
5254         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
5255         (inline_summary_t): New type and VECtor.
5256         (debug_inline_summary, dump_inline_summaries): Declare.
5257         (inline_summary): Use VOCtor.
5258         (estimate_edge_growth): Kill hack computing call stmt size directly.
5259         * lto-section-in.c (lto_section_name): Add inline section.
5260         * ipa-inline-analysis.c: Include lto-streamer.h
5261         (node_removal_hook_holder, node_duplication_hook_holder): New holders
5262         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
5263         (inline_summary_vec): Define.
5264         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
5265         dump_inline_summaries): New functions.
5266         (estimate_function_body_sizes): Properly compute size/time of outgoing
5267         calls.
5268         (compute_inline_parameters): Alloc inline_summary; do not compute
5269         size/time of incomming calls.
5270         (estimate_edge_time): Avoid missing time summary hack.
5271         (inline_read_summary): Read inline summary info.
5272         (inline_write_summary): Write inline summary info.
5273         (inline_free_summary): Free all hooks and inline summary vector.
5274         * lto-streamer.h: Add LTO_section_inline_summary section.
5275         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
5276         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
5277
5278 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5279
5280         * tree-vectorizer.h (vect_strided_store_supported): Add a
5281         HOST_WIDE_INT argument.
5282         (vect_strided_load_supported): Likewise.
5283         (vect_permute_store_chain): Return void.
5284         (vect_transform_strided_load): Likewise.
5285         (vect_permute_load_chain): Delete.
5286         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
5287         count argument.  Check that the count is a power of two.
5288         (vect_strided_load_supported): Likewise.
5289         (vect_permute_store_chain): Return void.  Update after above changes.
5290         Assert that the access is supported.
5291         (vect_permute_load_chain): Likewise.
5292         (vect_transform_strided_load): Return void.
5293         * tree-vect-stmts.c (vectorizable_store): Update calls after
5294         above interface changes.
5295         (vectorizable_load): Likewise.
5296         (vect_analyze_stmt): Don't check for strided powers of two here.
5297
5298 2011-04-14  Richard Guenther  <rguenther@suse.de>
5299
5300         PR tree-optimization/48590
5301         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5302         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5303         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
5304         BUILT_IN_STACK_SAVE.
5305         * tree-ssa-dce.c (propagate_necessity): Handle
5306         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5307
5308 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
5309
5310         * c-parser.c (c_parser_objc_class_declaration): Updated call to
5311         objc_declare_class.
5312
5313 2011-04-14  Richard Guenther  <rguenther@suse.de>
5314
5315         * tree.h (get_object_alignment_1): Declare.
5316         * builtins.c (get_object_alignment_1): Split out worker from ...
5317         (get_object_alignment): ... here.
5318         * fold-const.c (get_pointer_modulus_and_residue): Use
5319         get_object_alignment_1.
5320
5321 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5322
5323         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
5324         type parameter.
5325         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
5326         parameter.  Generalise code to handle arrays as well as vectors.
5327         (vect_setup_realignment): Update accordingly.
5328         * tree-vect-stmts.c (vectorizable_store): Likewise.
5329         (vectorizable_load): Likewise.
5330
5331 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5332
5333         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
5334         within the per-copy loop.
5335
5336 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5337
5338         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
5339         in the dump file.
5340
5341 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5342
5343         * doc/options.texi (Negative): Explicitly mention that the
5344         Negative chain must be circular.
5345
5346 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
5347
5348         * function.h (block_chainon): Declare.
5349         * function.c (block_chainon): Define.
5350
5351 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
5352             Eric Weddington  <eric.weddington@atmel.com>
5353             Georg-Johann Lay  <avr@gjlay.de>
5354
5355         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
5356         New Includes
5357         (avr_init_builtins, avr_expand_builtin,
5358         avr_expand_delay_cycles, avr_expand_unop_builtin,
5359         avr_expand_binop_builtin ): New functions.
5360         (avr_builtin_id): New enum
5361         (struct avr_builtin_description): New struct
5362         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
5363         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5364
5365         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5366         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
5367         UNSPECV_DELAY_CYCLES): new enumeration values
5368         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
5369         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
5370         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
5371         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
5372         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
5373         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
5374         "fmulsu"): New insns
5375
5376         * config/avr/avr-c.c: fix line endings
5377         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
5378         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
5379         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
5380         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
5381         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5382
5383         * doc/extend.texi (AVR Built-in Functions): New node
5384         (Target Builtins): Add documentation of AVR
5385         built-in functions.
5386
5387 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
5388
5389         PR target/44643
5390         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
5391         alone. Error if non-const data has attribute progmem.
5392
5393 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5394
5395         * tree.h (struct tree_constructor): Include tree_typed instead of
5396         tree_common.
5397         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
5398         TS_TYPED instead of TS_COMMON.
5399
5400 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
5401
5402         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
5403         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
5404         (sse2_psadbw): Merge with *avx_psadbw.
5405         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5406         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5407         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5408         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5409         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5410         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5411         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5412         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5413         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5414         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5415         (ssse3_palignrti): Merge with *avx_palignrti.
5416
5417 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5418
5419         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5420         * tree-ssanames.c (fini_ssanames): VEC_free it.
5421         (make_ssa_name_fn): Update for VECness of free_ssanames.
5422         (release_ssa_name, release_dead_ssa_names): Likewise.
5423         * tree.h (struct tree_ssa_name): Include tree_typed instead of
5424         tree_common.
5425         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5426         TS_TYPED instead of TS_COMMON.
5427
5428 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5429
5430         * postreload-gcse.c (gcse_after_reload_main): Add calls to
5431         statistics_counter_event.
5432         * tree-ssa-copyrename.c (stats): Define.
5433         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
5434         statistics_counter_event.
5435         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5436         (bswap_stats, widen_mul_stats): Define.
5437         (insert_reciprocals): Increment rdivs_inserted.
5438         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
5439         rfuncs_inserted.  Add calls to statistics_counter_event.
5440         (execute_cse_sincos_1): Increment inserted.
5441         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
5442         statistics_counter_event.
5443         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
5444         of bswap_stats.  Add calls to statistics_counter_event.
5445         (convert_mult_to_widen): Increment widen_mults_inserted.
5446         (convert_plusminus_to_widen): Increment maccs_inserted.
5447         (convert_mult_to_fma): Increment fmas_inserted.
5448         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
5449         calls to statistics_counter_event.
5450
5451 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
5452
5453         PR rtl-optimization/48455
5454         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5455         `temp_costs->mem_cost'.
5456
5457 2011-04-13  Jan Hubicka  <jh@suse.cz>
5458
5459         * ipa-inline.h: New file.
5460         * ipa-inline-analysis.c: New file. Broken out of ...
5461         * ipa-inline.c: ... this file; update toplevel comment;
5462         include ipa-inline.h
5463         (inline_summary): Move to ipa-inline.h
5464         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5465         ipa-inline-analysis.c.
5466         (cgraph_estimate_time_after_inlining): Rename to
5467         estiamte_time_after_inlining; move to ipa-inline-analysis.c
5468         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5469         to estimate_edge_growth.
5470         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5471         rename to estimate_size_after_inlining.
5472         (cgraph_mark_inline_edge): Update for new naming convention.
5473         (cgraph_check_inline_limits): Likewise.
5474         (cgraph_edge_badness): Likewise.
5475         (cgraph_decide_recursive_inlining): Likewise.
5476         (cgraph_decide_inlining_of_small_functions): Likewise.
5477         (cgraph_decide_inlining_incrementally): Likewise.
5478         (cgraph_estimate_growth): Rename to estimate_growth; move to
5479         ipa-inline-analysis.c.
5480         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5481         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5482         (compute_inline_parameters): Likewise.
5483         (compute_inline_parameters_for_current): Likewise.
5484         (pass_inline_parameters): Likewise.
5485         (inline_indirect_intraprocedural_analysis): Likewise.
5486         (analyze_function): Rename to inline_analyze_function; likewise.
5487         (add_new_function): Move to ipa-inline-analysis.c.
5488         (inline_generate_summary): Likewise.
5489         (inline_read_summary): Likewise.
5490         (inline_write_summary): Likewise.
5491         * Makefile.in (ipa-inline-analysis.c): New file.
5492
5493 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5494
5495         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5496         * configure: Regenerate.
5497
5498 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5499
5500         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5501         instead of tree_common.
5502         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5503         Likewise.
5504         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5505         TS_TYPED rather than TS_COMMON.
5506         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5507
5508 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
5509
5510         PR target/45263
5511         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5512         r20 around calls of __tablejump_elpm__
5513
5514 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
5515
5516         PR middle-end/48591
5517         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5518         NULL.
5519         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5520
5521 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
5522
5523         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5524         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5525         (cfi_vec): New typedef.
5526         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5527         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5528         (cie_cfi_vec): New static variable.
5529         (cie_cfi_head): Delete.
5530         (add_cfi): Accept a cfi_vec * as first argument. All callers and
5531         declaration changed. Use vector rather than list operations.
5532         (new_cfi): Don't initialize the dw_cfi_next field.
5533         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5534         rather than list operations.
5535         (lookup_cfa): Use vector rather than list operations.
5536         (output_cfis): New argument upto. Accept a cfi_vec rather than
5537         a dw_cfi_ref list head as argument. All callers changed.
5538         Iterate over the vector using upto as a maximum index.
5539         (output_all_cfis): New static function.
5540         (output_fde): Use vector rather than list operations. Use the
5541         new upto argument for output_cfis rather than manipulating a
5542         list.
5543         (dwarf2out_begin_prologue): Change initializations to match
5544         new struct members.
5545         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5546         from the vector length rather than searching for the end of a list.
5547         Use output_all_cfis.
5548         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5549
5550 2011-04-13  Nick Clifton  <nickc@redhat.com>
5551
5552         * config/rx/rx.md (movmemsi): Do not use this pattern when
5553         volatile pointers are involved.
5554
5555 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
5556
5557         * config/i386/sse.md (pinsrbits): Remove.
5558         (sse2_packsswb): Merge with *avx_packsswb.
5559         (sse2_packssdw): Merge with *avx_packssdw.
5560         (sse2_packuswb): Merge with *avx_packuswb.
5561         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5562         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5563         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5564         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5565         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5566         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5567         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5568         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5569         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5570         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5571         (sse2_loadld): Merge with *avx_loadld.
5572         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5573         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5574         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5575         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5576         (vec_concatv2di): Merge with *vec_concatv2di_avx.
5577
5578 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
5579
5580         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5581         calling TREE_CHAIN.
5582         * print-tree.c (print_node): Likewise.
5583         * tree-inline.c (copy_tree_r): Likewise.
5584         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5585         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5586         instead of TS_COMMON.
5587         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5588         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5589         (copy_node_stat): Zero TREE_CHAIN only if necessary.
5590         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5591         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5592         ...and these...
5593         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5594         * tree.h: ...here.
5595         (TREE_CHAIN): Check for a TS_COMMON structure.
5596         (TREE_TYPE): Check for a TS_TYPED structure.
5597
5598 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
5599
5600         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5601         cgraph_get_create_node instead of cgraph_node.
5602
5603 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5604
5605         * c-parser.c (c_parser_initelt): Updated call to
5606         objc_build_message_expr.
5607         (c_parser_postfix_expression): Likewise.
5608
5609 2011-04-12  Kai Tietz  <ktietz@redhat.com>
5610
5611         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5612         MASK_MS_BITFIELD_LAYOUT bit.
5613
5614 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5615
5616         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5617         assert it is always true.
5618         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5619         moves.
5620
5621 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5622
5623         * c-parser.c (c_lex_one_token): Rewritten conditional used when
5624         compiling Objective-C to be more efficient.
5625
5626 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
5627
5628         * opts-common.c (decode_cmdline_options_to_array): Remove variable
5629         argv_copied.
5630
5631 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5632
5633         * recog.h, genoutput.c, optabs.c: Revert last patch.
5634
5635 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5636
5637         PR target/48090
5638         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
5639
5640 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5641
5642         * recog.h (insn_operand_data): Add an "allows_mem" field.
5643         * genoutput.c (output_operand_data): Initialize it.
5644         * optabs.c (maybe_legitimize_operand_same_code): New function.
5645         (maybe_legitimize_operand): Use it when matching the original
5646         op->value.
5647
5648 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5649
5650         * genpreds.c (process_define_predicate): Move most processing
5651         to gensupport.c.  Continue to validate the expression.
5652         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5653         (process_define_predicate): Move processing to gensupport.c.
5654         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5655         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5656         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
5657         argument.
5658         (valid_predicate_name_p): New function, split out from old
5659         genpreds.c:process_define_predicate.
5660         (process_define_predicate): New function, combining code from
5661         old genpreds.c and genrecog.c functions.
5662         (process_rtx): Call it for DEFINE_PREDICATE and
5663         DEFINE_SPECIAL_PREDICATE.
5664
5665 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5666
5667         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5668         size of a '%A' memory reference.
5669         (T_DREG, T_QREG): New neon_builtin_type_bits.
5670         (arm_init_neon_builtins): Assert that the load and store operands
5671         are neon_struct_operands.
5672         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5673         (NEON_ARG_MEMORY): New builtin_arg.
5674         (neon_dereference_pointer): New function.
5675         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5676         Handle NEON_ARG_MEMORY.
5677         (arm_expand_neon_builtin): Update after above interface changes.
5678         Use NEON_ARG_MEMORY for loads and stores.
5679         * config/arm/predicates.md (neon_struct_operand): New predicate.
5680         * config/arm/iterators.md (V_two_elem): Tweak formatting.
5681         (V_three_elem): Use BLKmode for accesses that have no associated mode.
5682         (V_four_elem): Tweak formatting.
5683         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5684         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5685         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5686         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5687         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5688         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5689         (neon_vst4<mode>): Replace pointer operand with a memory operand.
5690         Use %A in the output template.
5691         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5692         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5693         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5694         the width of the memory access.  Remove post-increment.
5695         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5696
5697 2011-04-12  Nick Clifton  <nickc@redhat.com>
5698
5699         * config/v850/v850.c (expand_prologue): Do not use the CALLT
5700         instruction for interrupt handlers if the target is the basic V850
5701         architecture.
5702         (expand_epilogue): Likewise.
5703
5704 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5705
5706         PR rtl-optimization/48549
5707         * combine.c (propagate_for_debug): Also stop after BB_END of
5708         this_basic_block.  Process LAST and just stop processing after it.
5709         (combine_instructions): If last_combined_insn has been deleted,
5710         set last_combined_insn to its PREV_INSN.
5711
5712 2011-04-12  Richard Guenther  <rguenther@suse.de>
5713
5714         PR tree-optimization/46076
5715         * gimple.h (struct gimple_statement_call): Add fntype field.
5716         (gimple_call_fntype): Adjust.
5717         (gimple_call_set_fntype): New function.
5718         * gimple.c (gimple_build_call_1): Set the call function type.
5719         * gimplify.c (gimplify_call_expr): Preserve the function
5720         type the frontend used for the call.
5721         (gimplify_modify_expr): Likewise.
5722         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5723         function type.
5724         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5725         function type.
5726         * tree-ssa.c (useless_type_conversion_p): Function pointer
5727         conversions are useless.
5728
5729 2011-04-12  Martin Jambor  <mjambor@suse.cz>
5730
5731         * cgraph.h (cgraph_node): Remove function declaration.
5732         (cgraph_create_node): Declare.
5733         (cgraph_get_create_node): Likewise.
5734         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5735         Updated all callers.
5736         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5737         the decl does not already exist.  Call cgraph_get_create_node instead
5738         of cgraph_node.
5739         (cgraph_get_create_node): New function.
5740         (cgraph_same_body_alias): Update comment.
5741         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5742         assert it does not return NULL.
5743         (cgraph_update_edges_for_call_stmt): Likewise.
5744         (cgraph_clone_edge): Likewise.
5745         (cgraph_create_virtual_clone): Likewise.
5746         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5747         instead of cgraph_node.
5748         (cgraph_add_new_function): Call cgraph_create_node or
5749         cgraph_get_create_node instead of cgraph_node.
5750         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5751         instead of cgraph_node.
5752         (record_eh_tables): Likewise.
5753         (mark_address): Likewise.
5754         (mark_load): Likewise.
5755         (build_cgraph_edges): Call cgraph_get_create_node instead
5756         of cgraph_node.
5757         (rebuild_cgraph_edges): Likewise.
5758         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5759         instead of cgraph_node.
5760         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5761         cgraph_node.
5762         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5763         cgraph_create_node instead of cgraph_node.
5764         * c-decl.c (finish_function): Call cgraph_get_create_node instead
5765         of cgraph_node.
5766         * lto-cgraph.c (input_node): Likewise.
5767         * lto-streamer-in.c (input_function): Likewise.
5768         * varasm.c (mark_decl_referenced): Likewise.
5769         (assemble_alias): Likewise.
5770
5771 2011-04-12  Martin Jambor  <mjambor@suse.cz>
5772
5773         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5774         instead of cgraph_node and assert it does not return NULL.
5775         * lto-streamer-in.c (lto_read_body): Likewise.
5776         * omp-low.c (new_omp_context): Likewise.
5777         (create_task_copyfn): Likewise.
5778         * tree-emutls.c (lower_emutls_function_body): Likewise.
5779         * matrix-reorg.c (transform_allocation_sites): Likewise.
5780
5781 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5782
5783         PR c/48552
5784         * c-typeck.c (build_asm_expr): Error out on attempts to use
5785         void type outputs or inputs for constraints that allow reg or
5786         don't allow memory.
5787
5788 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
5789             Richard Earnshaw  <rearnsha@arm.com>
5790
5791         PR target/48250
5792         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5793         to use sign-magnitude offsets. Reject unsupported unaligned
5794         cases. Add detailed description in comments.
5795         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5796         condition from TARGET_32BIT to TARGET_ARM.
5797
5798 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
5799
5800         * tree.h (struct typed_tree): New.
5801         (struct tree_common): Include it instead of tree_base.
5802         (TREE_TYPE): Update for new location of type field.
5803         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5804         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5805         (union tree_node): Add typed field.
5806         * treestruct.def (TS_TYPED): New.
5807         * lto-streamer.c (check_handled_ts_structures): Handle it.
5808         * tree.c (MARK_TS_TYPED): New macro.
5809         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5810
5811 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
5812
5813         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5814         (force_nonfallthru): Do not alter the loop nest if no basic block
5815         was created.
5816
5817 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
5818
5819         * config/i386/sse.md (VI): New mode iterator.
5820         (SSEMODEI): Remove.
5821         (AVX256MODEI): Ditto.
5822         (AVXMODEF4P): Ditto.
5823         (avxvecpsmode): Ditto.
5824         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
5825         (sse2_andnot<mode>3): New expander.
5826         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5827         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
5828         (<any_logic:code><mode>3): Use VI mode iterator.
5829         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5830         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
5831         (*andnottf3): Handle AVX three-operand constraints.
5832         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5833
5834 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5835             Robert Millan  <rmh@gnu.org>
5836
5837         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5838         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5839         GNU_USER_DYNAMIC_LINKER64): Define.
5840         (REG_NAME): Don't undefine.
5841         (MD_UNWIND_SUPPORT): Undefine.
5842         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5843         (REG_NAME): Don't undefine.
5844         (MD_UNWIND_SUPPORT): Undefine.
5845         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5846
5847 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5848
5849         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5850         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5851
5852 2011-04-11  Xinliang David Li  <davidxl@google.com>
5853
5854         * value-profile.c (check_ic_target): New function.
5855         (gimple_ic_transform): Sanity check indirect call target.
5856         * gimple-low.c (gimple_check_call_args): Interface change.
5857         (gimple_check_call_matching_types): New function.
5858         * tree-inline.c (tree_can_inline_p): Call new function.
5859
5860 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
5861
5862         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5863         tree-pretty-print.h & realmpfr.h.
5864
5865 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
5866
5867         PR middle-end/48464
5868         * ira.c (setup_pressure_classes): Fix typo in loop condition.
5869         (setup_allocno_and_important_classes): Ditto.
5870
5871 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5872
5873         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5874         GNU_USER_DYNAMIC_LINKER.
5875         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5876         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5877         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5878         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5879         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5880         GNU_USER_TARGET_OS_CPP_BUILTINS.
5881         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5882         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5883         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5884         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5885         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5886         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5887         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5888         GNU_USER_TARGET_OS_CPP_BUILTINS.
5889         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5890         GNU_USER_DYNAMIC_LINKER.
5891         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5892         GNU_USER_TARGET_OS_CPP_BUILTINS.
5893         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5894         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5895         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5896         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5897         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5898         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5899         GNU_USER_DYNAMIC_LINKER64): Remove.
5900         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5901         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5902         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5903         GNU_USER_DYNAMIC_LINKER.
5904         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5905         GNU_USER_TARGET_OS_CPP_BUILTINS.
5906         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5907         GNU_USER_TARGET_OS_CPP_BUILTINS.
5908         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5909         to GNU_USER_TARGET_OS_CPP_BUILTINS.
5910         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5911         GNU_USER_TARGET_OS_CPP_BUILTINS.
5912         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5913         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5914         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5915         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5916         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5917         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5918         GNU_USER_DYNAMIC_LINKER.
5919         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5920         GNU_USER_TARGET_OS_CPP_BUILTINS.
5921         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5922         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5923         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5924         GNU_USER_DYNAMIC_LINKER.
5925         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5926         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5927         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5928         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5929         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5930         GNU_USER_DYNAMIC_LINKER.
5931         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5932         GNU_USER_DYNAMIC_LINKERN32.
5933         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5934         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
5935         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
5936         GNU_USER_DYNAMIC_LINKER32.
5937         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5938         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5939         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5940         GNU_USER_DYNAMIC_LINKER.
5941         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5942         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5943         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5944         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5945         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5946         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5947         GNU_USER_DYNAMIC_LINKER32.
5948         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5949         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5950         GNU_USER_DYNAMIC_LINKER.
5951         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5952         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5953         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5954         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
5955         GNU_USER_DYNAMIC_LINKER64.
5956         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5957         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5958         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5959         GNU_USER_DYNAMIC_LINKER.
5960         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
5961         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5962         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5963         GNU_USER_DYNAMIC_LINKER.
5964         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5965         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5966         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5967         GNU_USER_DYNAMIC_LINKER32.
5968         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5969         GNU_USER_DYNAMIC_LINKER64.
5970         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5971         GNU_USER_DYNAMIC_LINKER64.
5972         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5973         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5974         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5975         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5976         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5977
5978 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5979
5980         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
5981         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5982         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5983         GNU_USER_DYNAMIC_LINKER.
5984         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5985         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
5986         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5987         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5988         GNU_USER_DYNAMIC_LINKER64.
5989         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5990         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5991         GNU_USER_LINK_EMULATION.
5992         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5993         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5994         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5995         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5996         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5997         CPP_SPEC, CC1_SPEC): Remove.
5998         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5999         (GNU_USER_DYNAMIC_LINKER): Define.
6000         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
6001         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
6002         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
6003         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
6004         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
6005         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
6006         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6007         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
6008         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
6009         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
6010         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
6011         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
6012         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
6013         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
6014         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
6015         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6016         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6017         GNU_USER_DYNAMIC_LINKER.
6018         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6019         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
6020         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6021         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
6022         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6023         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
6024         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
6025         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
6026         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
6027         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
6028
6029 2011-04-11  Kai Tietz  <ktietz@redhat.com>
6030
6031         PR target/9601
6032         PR target/11772
6033         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
6034         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
6035         comment.
6036         (ix86_is_msabi_thiscall): Removed.
6037         (ix86_is_type_thiscall): Likewise.
6038         (ix86_get_callcvt): New function.
6039         (ix86_comp_type_attributes): Simplify check.
6040         (ix86_function_regparm): Use ix86_get_callcvt for calling
6041         convention attribute checks.
6042         (ix86_return_pops_args): Likewise.
6043         (ix86_static_chain): Likewise.
6044         (x86_this_parameter): Likewise.
6045         (x86_output_mi_thunk): Likewise.
6046         (ix86_function_type_abi): Optimize check for types without attributes.
6047         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
6048         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
6049         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
6050         by flag-values.
6051         (IX86_BASE_CALLCVT): Helper macro.
6052         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6053         Use ix86_get_callcvt for calling convention attribute checks and avoid
6054         symbol-decoration for stdcall in TARGET_RTD case.
6055         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
6056         Likewise.
6057         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
6058         for declaration.
6059
6060 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
6061
6062         * config/i386/sse.md (VI_128): New mode iterator.
6063         (VI12_128): Rename from SSEMODE12.
6064         (VI14_128): Rename from SSEMODE14.
6065         (VI124_128): New mode iterator.
6066         (VI24_128): Rename from SSEMODE248.
6067         (VI248_128): Rename from SSEMODE248.
6068         (SSEMODE124C8): Remove.
6069         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6070         (*sse2_<plusminus_insn><mode>3): Merge with
6071         *avx_<plusminus_insn><mode>3.
6072         (*mulv8hi3): Merge with *avx_mulv8hi3.
6073         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
6074         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
6075         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
6076         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
6077         (ashr<mode>3): Merge with *avx_ashr<mode>3.
6078         (lshr<mode>3): Merge with *avx_lshr<mode>3.
6079         (ashl<mode>3): Merge with *avx_ashl<mode>3.
6080         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
6081         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
6082         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6083         (*<smaxmin:code>v8hi3): Ditto.
6084         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
6085         (*<smaxmin:code>v16qi3): Ditto.
6086         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
6087         (*sse2_eq<mode>3): Ditto.
6088         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
6089         (*sse2_gt<mode>3): Ditto.
6090         (vcondv2di): Split out of vcond<mode>.
6091         (vconduv2di): Split out of vcondu<mode>.
6092
6093 2011-04-11  Richard Guenther  <rguenther@suse.de>
6094
6095         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
6096         before calling tree_low_cst.
6097
6098 2011-04-11  Richard Guenther  <rguenther@suse.de>
6099
6100         * stor-layout.c (layout_type): Compute all array index size operations
6101         in the original type.
6102         (initialize_sizetypes): Add comment.
6103         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
6104
6105 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6106
6107         * common.opt (Tbss=, Tdata=, Ttext=): New options.
6108
6109 2011-04-11  Martin Jambor  <mjambor@suse.cz>
6110
6111         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
6112         of cgraph_node, handle NULL return value.
6113         (cgraph_global_info): Likewise.
6114         (cgraph_rtl_info): Likewise.
6115         * tree-inline.c (estimate_num_insns): Likewise.
6116         * gimplify.c (unshare_body): Likewise.
6117         (unvisit_body): Likewise.
6118         (gimplify_body): Likewise.
6119         * predict.c (optimize_function_for_size_p): Likewise.
6120         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6121         (call_may_clobber_ref_p_1): Likewise.
6122         * varasm.c (function_section_1): Likewise.
6123         (assemble_start_function): Likewise.
6124
6125 2011-04-11  Martin Jambor  <mjambor@suse.cz>
6126
6127         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
6128         of cgraph_node.
6129         * final.c (rest_of_clean_state): Likewise.
6130         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
6131         * passes.c (pass_init_dump_file): Likewise.
6132         (execute_all_ipa_transforms): Likewise.
6133         (function_called_by_processed_nodes_p): Likewise.
6134         * predict.c (maybe_hot_frequency_p): Likewise.
6135         (probably_never_executed_bb_p): Likewise.
6136         (compute_function_frequency): Likewise.
6137         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
6138         (unnest_nesting_tree_1): Likewise.
6139         (lower_nested_functions): Likewise.
6140         * tree-optimize.c (execute_fixup_cfg): Likewise.
6141         (tree_rest_of_compilation): Likewise.
6142         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
6143         * tree-sra.c (ipa_early_sra): Likewise.
6144         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6145         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
6146         * ipa.c (record_cdtor_fn): Likewise.
6147         * ipa-inline.c (cgraph_early_inlining): Likewise.
6148         (compute_inline_parameters_for_current): Likewise.
6149         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6150         * ipa-pure-const.c (local_pure_const): Likewise.
6151         * ipa-split.c (split_function): Likewise.
6152         (execute_split_functions): Likewise.
6153         * cgraphbuild.c (build_cgraph_edges): Likewise.
6154         (rebuild_cgraph_edges): Likewise.
6155         (cgraph_rebuild_references): Likewise.
6156         (remove_cgraph_callee_edges): Likewise.
6157         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
6158         (verify_cgraph_node): Likewise.
6159         (cgraph_analyze_functions): Likewise.
6160         (cgraph_preserve_function_body_p): Likewise.
6161         (save_inline_function_body): Likewise.
6162         (save_inline_function_body): Likewise.
6163         * tree-inline.c (copy_bb): Likewise.
6164         (optimize_inline_calls): Likewise.
6165
6166 2011-04-11  Martin Jambor  <mjambor@suse.cz>
6167
6168         PR tree-optimization/48195
6169         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
6170         ipa_check_create_edge_args.
6171         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
6172         ipa_check_create_edge_args.
6173         * ipa-inline.c (inline_generate_summary): Do not call
6174         ipa_check_create_node_params and ipa_check_create_edge_args.
6175         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
6176         ipa_check_create_edge_args.
6177
6178 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
6179
6180         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
6181         instead of loop.
6182         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6183         * function.c (record_hard_reg_sets): Likewise.
6184         * ira.c (compute_regs_asm_clobbered): Likewise.
6185         * sched-deps.c (sched_analyze_1): Likewise.
6186         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
6187
6188 2011-04-09  Xinliang David Li  <davidxl@google.com>
6189
6190         PR tree-optimization/PR48484
6191         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
6192         has_valid_pred lazily
6193
6194 2011-04-09  Duncan Sands  <baldrick@free.fr>
6195
6196         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
6197
6198 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
6199
6200         * combine.c (combine_validate_cost): Adjust comments.  Set registered
6201         cost of I0 to zero at the end, if any.
6202
6203 2011-04-08  Xinliang David Li  <davidxl@google.com>
6204
6205         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
6206         to insane profile data.
6207
6208 2011-04-08  Xinliang David Li  <davidxl@google.com>
6209
6210         * ipa-cp.c (ipcp_update_profiling): Correct
6211          negative scale factor due to insane profile data.
6212
6213 2011-04-08  Xinliang David Li  <davidxl@google.com>
6214
6215         * final.c (dump_basic_block_info): New function.
6216         (final): Dump basic block.
6217         (final_scan_insn): Remove old dump.
6218
6219 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
6220
6221         PR target/47829
6222         * config.gcc (i386-*-freebsd): Disable unwind table generation for
6223         crtbegin/crtend.
6224
6225 2011-04-08  Michael Matz  <matz@suse.de>
6226
6227         PR middle-end/48389
6228         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
6229         functions.
6230         (rebuild_jump_labels): Call rebuild_jump_labels_1.
6231         * rtl.h (rebuild_jump_labels_chain): Declare.
6232         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
6233         insns inserted on edges.
6234
6235 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
6236
6237         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
6238         * config/arm/arm-arches.def: New.
6239         * config/arm/arm-opts.h: New.
6240         * config/arm/genopt.sh: New.
6241         * config/arm/arm-tables.opt: New (generated).
6242         * config/arm/arm.c (arm_handle_option, arm_target_help,
6243         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
6244         (all_architectures): Get most table contents from arm-arches.def.
6245         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
6246         arm_selected_tune here.
6247         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
6248         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
6249         (march=, mcpu=, mtune=): Use Enum and Var.
6250         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
6251         (arm.o): Update dependencies.
6252
6253 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
6254
6255         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
6256         of header_file.
6257         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
6258         (write_typed_alloc_defns): Likewise.
6259         (main): Calls write_typed_alloc_defns with output_header.
6260
6261 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
6262
6263         PR inline-asm/48435
6264         * ira-color.c (setup_profitable_hard_regs): Add comments.
6265         Don't take prohibited hard regs into account.
6266         (setup_conflict_profitable_regs): Rename to
6267         get_conflict_profitable_regs.
6268         (check_hard_reg_p): Check prohibited hard regs.
6269
6270 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
6271
6272         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
6273         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
6274         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
6275
6276 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6277
6278         PR target/48366
6279         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
6280         move from floating point to shift amount register.
6281         (emit_move_sequence): Remove secondary reload support for floating
6282         point to shift amount amount register copies.
6283         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
6284         amount register copies.
6285         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
6286         register, return false if mode isn't a scalar integer mode.
6287         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
6288
6289 2011-04-08  Richard Guenther  <rguenther@suse.de>
6290
6291         * gimple.c (gimple_call_flags): Remove kludge.
6292
6293 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6294
6295         * sel-sched.c (sel_region_init): Move call to
6296         sel_setup_region_sched_flags after setup_current_loop_nest.
6297
6298 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
6299
6300         PR rtl-optimization/48272
6301         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
6302         init_insn_reg_pressure_info.  Adjust a caller.
6303         * sched-int.h (init_insn_reg_pressure_info): Declare.
6304         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
6305         when sched-pressure is enabled.
6306
6307 2011-04-08  Richard Guenther  <rguenther@suse.de>
6308
6309         * gimple.c (gimple_set_modified): Do not queue calls to
6310         MODIFIED_NORETURN_CALLS here ...
6311         * tree-ssa-operands.c (update_stmt_operands): ... but here.
6312
6313 2011-04-08  Richard Guenther  <rguenther@suse.de>
6314
6315         PR lto/48467
6316         * toplev.c (lang_dependent_init): Do not open asm_out_file
6317         in WPA mode, nor perform debug machinery initialization.
6318         (finalize): Do not unlink asm_out_file in WPA mode.
6319
6320 2011-04-08  Richard Guenther  <rguenther@suse.de>
6321
6322         * gimple.h (gimple_call_fntype): New function.
6323         (gimple_call_return_type): Use it.
6324         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
6325         * gimple-low.c (gimple_check_call_args): Likewise.
6326         * gimple.c (gimple_call_flags): Likewise.
6327         (gimple_call_arg_flags): Likewise.
6328         (gimple_call_return_flags): Likewise.
6329         * tree-cfg.c (verify_gimple_call): Likewise.
6330         (do_warn_unused_result): Likewise.
6331         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6332         * value-prof.c (gimple_ic_transform): Fix fndecl check.
6333
6334 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
6335
6336         PR rtl-optimization/48235
6337         * sel-sched.c (code_motion_process_successors): Recompute the last
6338         insn in basic block if control flow changed.
6339         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
6340         Update condition for ilist_remove.
6341
6342 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6343
6344         PR rtl-optimization/48302
6345         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
6346         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
6347         it to record added preheader blocks.
6348         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
6349         on to sel_add_loop_preheaders.
6350         (sel_region_init): Move call to setup_current_loop_nest after
6351         sel_init_bbs.
6352
6353 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6354
6355         PR target/48273
6356         * cfgloop.h (loop_has_exit_edges): New helper.
6357         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
6358         non-clonable.
6359         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
6360         that have no exit edges.
6361
6362 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6363
6364         PR rtl-optimization/48442
6365         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
6366         all callers.  Adjust assert.
6367
6368 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
6369
6370         PR tree-optimization/48377
6371         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
6372         is_packed to true even for types with smaller TYPE_ALIGN than
6373         TYPE_SIZE.
6374
6375 2011-04-08  Richard Guenther  <rguenther@suse.de>
6376
6377         PR bootstrap/48513
6378         * doc/tm.texi: Re-generate.
6379
6380 2011-04-08  Wei Guozhi  <carrot@google.com>
6381
6382         PR target/47855
6383         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
6384         * config/arm/arm.c (arm_attr_length_push_multi): New function.
6385         * config/arm/arm.md (*push_multi): Change the length computation to
6386         call a C function.
6387
6388 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
6389
6390         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
6391         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
6392         * doc/tm.texi: Regenerate.
6393         * system.h (ASM_OUTPUT_BSS): Poison.
6394         * varasm.c (asm_output_bss): Remove function.
6395         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
6396
6397         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
6398         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
6399         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
6400         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6401         Likewise.
6402         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6403         Likewise.
6404         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6405         Likewise.
6406         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6407
6408 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
6409
6410         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6411         EnumValue lines.
6412
6413 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
6414
6415         * config/m68k/m68k.c (m68k_handle_option): Don't handle
6416         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6417         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6418         OPT_mcpu32.
6419         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6420         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6421         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6422         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6423         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6424         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6425         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6426         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6427         options.  Don't map other m68k options manually.  Don't handle
6428         old-style options as canonical.
6429         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6430         * doc/install.texi (m68k-*-*): Document binutils version requirement.
6431
6432 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
6433
6434         * basic-block.h (force_nonfallthru): Move to...
6435         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6436         (force_nonfallthru): ...here.
6437         * cfghooks.c (force_nonfallthru): New function.
6438         * cfgrtl.c (force_nonfallthru): Rename into...
6439         (rtl_force_nonfallthru): ...this.
6440         (commit_one_edge_insertion): Do not set AUX field.
6441         (commit_edge_insertions): Do not discover new basic blocks.
6442         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6443         (cfg_layout_rtl_cfg_hooks): Likewise.
6444         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6445         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
6446         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6447
6448 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
6449
6450         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6451         Remove macros.
6452
6453 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
6454
6455         * config/i386/sse.md: Update copyright year.
6456         (avxcvtvecmode): Remove.
6457         (sse_movhlps): Merge with *avx_movhlps.
6458         (sse_movlhps): Merge with *avx_movlhps.
6459         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6460         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6461         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6462         (sse_loadhps): Merge with *avx_loadhps.
6463         (sse_storelps): Merge with *avx_storelps.
6464         (sse_loadlps): Merge with *avx_loadlps.
6465         (sse_movss): Merge with *avx_movss.
6466         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6467         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6468         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6469         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6470         (vec_set<mode>_0): Ditto.
6471         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6472         (sse4_1_insertps): Merge with *avx_insertps.
6473         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6474         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6475         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6476         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6477         (sse2_storehpd): Merge with *avx_storehpd.
6478         (sse2_loadhpd): Merge with *avx_loadhpd.
6479         (sse2_loadlpd): Merge with *avx_loadlpd.
6480         (sse2_movsd): Merge with *avx_movsd.
6481         (*vec_concatv2df): Merge with *vec_concatv2df.
6482
6483 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
6484
6485         PR debug/48343
6486         * combine.c (combine_instructions): Add last_combined_insn,
6487         update it if insn is after it, pass it to all try_combine calls.
6488         (try_combine): Add last_combined_insn parameter, pass it instead of
6489         i3 to propagate_for_debug.
6490
6491 2011-04-07  Nick Clifton  <nickc@redhat.com>
6492
6493         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6494         to handle MDR <-> data register transfers.
6495         (movhi_internal): Likewise.
6496
6497 2011-04-07  Alan Modra  <amodra@gmail.com>
6498
6499         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6500         previous stack info.
6501
6502 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6503
6504         PR target/43920
6505         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
6506         flow_find_cross_jump.  Swap variables to implement backward replacement.
6507         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6508
6509 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6510
6511         PR target/43920
6512         * cfgcleanup.c (walk_to_nondebug_insn): New function.
6513         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
6514         and bb2.
6515         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6516         src1 or src2.  Redirect edges to the last basic block.  Update
6517         frequency and count on multiple basic blocks in case of fallthru.
6518
6519 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6520
6521         PR target/43920
6522         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6523         function.
6524         (old_insns_match_p): Change return type.  Replace return false/true
6525         with return dir_none/dir_both.  Use can_replace_by.
6526         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
6527         direction from dir_p.  Register replacement direction in dir, last_dir
6528         and afterlast_dir.  Handle new return type of old_insns_match_p using
6529         merge_dir.  Return replacement direction in dir_p.
6530         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6531         return type of old_insns_match_p.
6532         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6533         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6534         flow_find_cross_jump.
6535         * basic-block.h (enum replace_direction): New type.
6536         (flow_find_cross_jump): Add parameter to declaration.
6537
6538 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
6539
6540         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6541         (AVXMODEDCVTPS2DQ): Ditto.
6542         (VEC_FLOAT_MODE): Ditto.
6543         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
6544         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6545         (<any_logic:code><mode>3): Use VF mode iterator.
6546         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6547         Use VF mode iterator.
6548         (copysign<mode>3): Use VF mode iterator.
6549         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
6550         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6551         (*<any_logic:code><MODEF:mode>3): Merge with
6552         *avx_<any_logic:code><MODEF:mode>3.
6553         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6554         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6555         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6556         (avx_cvtdq2ps<avxmodesuffix>): Remove.
6557         (sse2_cvtdq2ps): Use %v modifier.
6558         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6559         (avx_cvtps2dq<avxmodesuffix>): Remove.
6560         (sse2_cvtps2dq): Use %v modifier.
6561         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6562         (avx_cvttps2dq<avxmodesuffix>): Remove.
6563         (sse2_cvttps2dq): Use %v modifier.
6564         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6565         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6566         (sse2_cvtsd2siq): Fix insn template.
6567         (sse2_cvtsd2siq_2): Ditto.
6568         (sse2_cvttsd2siq): Ditto.
6569         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6570         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6571
6572 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
6573
6574         * gcov-io.c: Use GCC Runtime Library Exception.
6575
6576 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
6577
6578         PR debug/48466
6579         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6580         as base_reg whatever register reg has been eliminated to, instead
6581         of hardcoding STACK_POINTER_REGNUM.
6582
6583 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
6584
6585         * doc/tm.texi.in: Document C target hooks as separate from general
6586         target hooks.
6587         * doc/tm.texi: Regenerate.
6588         * genhooks.c (struct hook_desc): Add docname field.
6589         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
6590         docname field.
6591         (hook_array): Include c-target.def.
6592         (emit_documentation): Use docname field in output.
6593         (emit_init_macros): Take docname argument.  Only emit definitions
6594         for hooks matching docname.
6595         (main): Expect additional arguments in all cases.  Pass argument
6596         to emit_init_macros.
6597         * target.def: Move initial macro definitions and comments to
6598         target-hooks-macros.h.
6599         (gcc_targetcm): Move to c-family/c-target.def.
6600         * target.h (targetcm): Move declaration to c-family/c-target.h.
6601         * targhooks.c (default_handle_c_option): Move to
6602         c-family/c-opts.c.
6603         * targhooks.h (default_handle_c_option): Move declaration to
6604         c-family/c-common.h.
6605         * target-hooks-macros.h: New file.
6606         * config.gcc (target_has_targetcm): Define and use to add to
6607         c_target_objs and cxx_target_objs.
6608         * config/default-c.c: New file.
6609         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6610         of target.h and target-def.h.
6611         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6612         (darwin_objc_construct_string, darwin_cfstring_ref_p,
6613         darwin_check_cfstring_format_arg): Make static.
6614         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6615         TARGET_STRING_OBJECT_REF_TYPE_P,
6616         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6617         * config/darwin-protos.h (darwin_objc_construct_string,
6618         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6619         declare.
6620         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6621         TARGET_STRING_OBJECT_REF_TYPE_P,
6622         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6623         * config/t-darwin (darwin-c.o): Update dependencies.
6624         * system.h (TARGET_HAS_TARGETCM): Poison.
6625         * Makefile.in (TARGET_H): Update.
6626         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6627         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6628         (default-c.o): New target.
6629         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6630         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6631         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
6632         c-target.def.
6633         (build/genhooks.o): Update dependencies.
6634
6635 2011-04-06  Richard Guenther  <rguenther@suse.de>
6636
6637         * ipa-inline.c (enum inlining_mode): Remove.
6638         (cgraph_flatten): Use some other token.
6639         (cgraph_edge_early_inlinable_p): New function, split out from ...
6640         (cgraph_perform_always_inlining): New function, split out from ...
6641         (cgraph_decide_inlining_incrementally): ... here.
6642         (cgraph_mark_inline_edge): Adjust.
6643         (cgraph_early_inlining): Re-structure.
6644         (pass_early_inline): Require SSA form.
6645
6646 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
6647             Julian Brown  <julian@codesourcery.com>
6648             Mark Shinwell  <shinwell@codesourcery.com>
6649
6650         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6651         LO_REGS only for Thumb-1.
6652         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6653         be used in short instructions when optimising for size on Thumb-2.
6654
6655 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6656
6657         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6658         associated with user returns to be preserved.
6659
6660 2011-04-06  Tristan Gingold  <gingold@adacore.com>
6661
6662         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6663         symbol_queue_size, DBXOUT_DECR_NESTING,
6664         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6665         if XCOFF_DEBUGGING_INFO.
6666
6667 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
6668
6669         * config/i386/i386.md (attribute isa): New.
6670         (attribute enabled): New.
6671         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6672         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6673         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6674         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6675         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6676         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6677         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6678         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6679
6680         * config/i386/sse.md (VF): New mode iterator.
6681         (VF1): Ditto.
6682         (VF2): Ditto.
6683         (VF_128): Ditto.
6684         (SSEMODEF4): Remove.
6685         (attribute sse): Handle V8SF and V4DF modes.
6686         (<absneg:code><mode>2): Use VF mode iterator.
6687         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
6688         mode iterator.
6689         (<plusminus_insn><mode>3): Use VF mode iterator.
6690         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6691         Use VF mode iterator.
6692         (<sse>_vm<plusminus_insn><mode>3): Merge with
6693         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
6694         (mul<mode>3): Use VF mode iterator.
6695         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
6696         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
6697         mode iterator.
6698         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6699         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6700         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
6701         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
6702         mode iterator.
6703         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6704         Use VF1 mode iterator.
6705         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6706         (sqrt<VF2:mode>2): New expander.
6707         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6708         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6709         and sqrtv2df2.  Use VF mode iterator.
6710         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
6711         mode iterator.
6712         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6713         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6714         Use VF1 mode iterator.
6715         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6716         (<smaxmin:code><mode>3): Use VF mode iterator.
6717         (*<smaxmin:code><mode>3_finite): Merge with
6718         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
6719         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6720         (<sse>_vm<smaxmin:code><mode>2): Merge with
6721         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
6722         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
6723         mode iterator.
6724         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
6725         mode iterator.
6726         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6727         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6728         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6729         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6730         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
6731         VF mode iterator.
6732         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6733         Use VF_128 mode iterator.
6734         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
6735         mode iterator.
6736         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
6737         VF_128 mode iterator.
6738         (vcond<mode>): Use VF mode iterator.
6739         * config/i386/predicates.md (sse_comparison_operator): Merge with
6740         avx_comparison_float_operator.  Do not declare as special_predicate.
6741         * config/i386/i386.c (struct builtin_description): Update for renamed
6742         compare patterns.
6743         (ix86_expand_args_builtin): Ditto.
6744         (ix86_expand_sse_compare_mask): Ditto.
6745
6746 2011-04-06  Richard Guenther  <rguenther@suse.de>
6747
6748         * tree-inline.c (estimate_num_insns): For calls simply account
6749         for all passed arguments and a used return value.
6750
6751 2011-04-06  Richard Guenther  <rguenther@suse.de>
6752
6753         PR tree-optimization/47663
6754         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6755         call_stmt_time fields.
6756         (cgraph_edge_inlinable_p): Declare.
6757         (cgraph_edge_recursive_p): New inline function.
6758         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6759         (cgraph_clone_edge): Copy it.
6760         * ipa-inline.c (cgraph_estimate_edge_time): New function.
6761         Account for call stmt time.
6762         (cgraph_estimate_time_after_inlining): Take edge argument.
6763         (cgraph_estimate_edge_growth): Account call stmt size.
6764         (cgraph_estimate_size_after_inlining): Take edge argument.
6765         (cgraph_mark_inline_edge): Adjust.
6766         (cgraph_check_inline_limits): Likewise.
6767         (cgraph_recursive_inlining_p): Remove.
6768         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6769         (cgraph_decide_recursive_inlining): Take edge argument and
6770         adjust.
6771         (cgraph_decide_inlining_of_small_functions): Do not avoid
6772         diags for recursive inlining here.
6773         (cgraph_flatten): Adjust.
6774         (cgraph_decide_inlining_incrementally): Likewise.
6775         (estimate_function_body_sizes): Remove call cost handling.
6776         (compute_inline_parameters): Initialize caller edge call costs.
6777         (cgraph_estimate_edge_growth): New function.
6778         (cgraph_estimate_growth): Use it.
6779         (cgraph_edge_badness): Likewise.
6780         (cgraph_check_inline_limits): Take an edge argument.
6781         (cgraph_decide_inlining_of_small_functions): Adjust.
6782         (cgraph_decide_inlining): Likewise.
6783         * tree-inline.c (estimate_num_insns): Only account for call
6784         return value if it is used.
6785         (expand_call_inline): Avoid diagnostics on recursive inline
6786         functions here.
6787         * lto-cgraph.c (lto_output_edge): Output edge call costs.
6788         (input_edge): Input edge call costs.
6789
6790 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6791
6792         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6793
6794 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
6795
6796         * doc/invoke.texi (Spec Files): Fix typo.
6797
6798 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6799
6800         * profile.c (branch_prob): Move declaration of local variable.  Remove
6801         obsolete ??? comment.  Expand the location explicitly instead of using
6802         the LOCATION_FILE and LOCATION_LINE macros.
6803
6804 2011-04-06  Wei Guozhi  <carrot@google.com>
6805
6806         PR target/47855
6807         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6808         (arm_cond_branch): Likewise.
6809         (arm_cond_branch_reversed): Likewise.
6810         (arm_jump): Likewise.
6811         (push_multi): Likewise.
6812         * config/arm/constraints.md (Py): New constraint.
6813
6814 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6815
6816         PR bootstrap/48471
6817         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6818         Move these...
6819         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6820         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6821         #ifdef DBX_DEBUGGING_INFO.
6822
6823 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
6824
6825         PR bootstrap/48403
6826         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6827         if old and new states differ.
6828
6829 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
6830
6831         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6832         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6833         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6834         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6835         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6836         mcfv4e): Use Alias.
6837         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6838         ColdFire options to -mcpu= options.
6839
6840 2011-04-05  Jeff Law  <law@redhat.com>
6841
6842         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6843         check if BB is a successor of LOOP->header and return
6844         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6845
6846 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6847
6848         * cprop.c (struct reg_use): Remove.
6849         (reg_use_table): Make an array of RTX.
6850         (find_used_regs, constprop_register, local_cprop_pass,
6851         bypass_block): Simplify users of reg_use_table.
6852         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
6853         on one of the uses found by find_used_regs.
6854
6855 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6856
6857         PR bootstrap/48469
6858         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6859         declaration.
6860
6861 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6862
6863         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6864         as an rtx.
6865         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6866
6867 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6868
6869         PR middle-end/48441
6870         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6871
6872 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6873
6874         * combine.c: Include obstack.h.
6875         (struct insn_link): Define.
6876         (uid_log_links): Adjust type.
6877         (FOR_EACH_LOG_LINK): New macro.
6878         (insn_link_obstack): Declare.
6879         (alloc_insn_link): Define.
6880         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
6881         type of link variables.
6882         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6883         (try_combine, record_promoted_values, distribute_notes): Likewise.
6884         (distribute_links): Likewise.  Tweak prototype.
6885         (clear_log_links): Delete.
6886         (adjust_for_new_dest): Call alloc_insn_link.
6887         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6888
6889 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6890
6891         * gcse.c (modify_mem_list): Convert to an array of VECs.
6892         (canon_modify_mem_list, compute_transp): Tweak formatting.
6893         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
6894         (load_killed_in_block_p): Likewise.
6895         (record_last_mem_set_info): Likewise.
6896         (clear_modify_mem_tables): Likewise.
6897
6898 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6899
6900         PR middle-end/48461
6901         * function.c (emit_use_return_register_into_block): Only define if
6902         HAVE_return.
6903
6904 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
6905
6906         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6907
6908 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
6909
6910         * config/rx/rx-opts.h: New.
6911         * config/rx/rx.c (rx_cpu_type): Remove.
6912         (rx_handle_option): Don't assert that global structures are in
6913         use.  Access variables via opts pointer.  Defer most handling of
6914         OPT_mint_register_.  Use error_at.
6915         (rx_option_override): Handle deferred OPT_mint_register_ here.
6916         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6917         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6918         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6919         (rx_cpu_types): New Enum and EnumValue entries.
6920         (mint-register=): Use Defer and use Var accordingly.
6921
6922 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6923
6924         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6925         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6926         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6927         Move these...
6928         (debug_free_queue, debug_nesting, symbol_queue_index):
6929         ...and these...
6930         * dbxout.c: ...to here.  Make static.
6931
6932 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6933
6934         * gcse.c (modify_pair): Define.  Define a VEC of it.
6935         (canon_modify_mem_list): Convert to an array of VECs.
6936         (free_insn_expr_list_list): Delete.
6937         (clear_modify_mem_tables): Call VEC_free instead.
6938         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6939         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6940         (canon_list_insert, compute_transp): Likewise.
6941
6942 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6943
6944         PR target/43920
6945         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6946         for size.
6947
6948 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6949
6950         PR target/43920
6951         * function.c (emit_use_return_register_into_block): New function.
6952         (thread_prologue_and_epilogue_insns): Use
6953         emit_use_return_register_into_block.
6954
6955 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6956
6957         PR target/43920
6958         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6959         insn.
6960
6961 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6962
6963         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6964
6965 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
6966
6967         * config/arm/arm.md (define_constants for unspec): Replace with
6968         define_c_enum.
6969         (define_constants for unspecv): Replace with define_c_enum.
6970         * config/arm/neon.md (define_constants for unspec): Replace with
6971         define_c_enum.
6972
6973 2011-04-04  Richard Henderson  <rth@redhat.com>
6974
6975         PR bootstrap/48400
6976         * dwarf2out.c (output_line_info): Always emit line info from
6977         at least one section.
6978         (dwarf2out_init): Create text_section_line_info here ...
6979         (set_cur_line_info_table): ... not here.
6980
6981 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
6982
6983         PR target/48380
6984         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6985         not called.
6986
6987         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6988
6989 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
6990
6991         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6992         (expr_equiv_p): Remove.
6993         (insert_set_in_table): Look at <dest, src> pair instead of expr.
6994         (hash_scan_set): Update call to insert_set_in_table.
6995         (dump_hash_table): Dump <dest, src> pair.
6996         (lookup_set): Simplify.  Lookup <dest, src> pair.
6997         (compute_transp): Remove, fold heavily simplified code into...
6998         (compute_local_properties): ...here.  Expect COMP and TRANSP
6999         unconditionally.
7000         (find_avail_set): Take set directly from struct expr.
7001         (find_bypass-set): Likewise.
7002         (bypass_block): Likewise.
7003         (cprop_insn): Likewise.  Remove redundant INSN_P test.
7004
7005         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
7006         checks on form of COND from find_implicit_sets to here.
7007         (find_implicit_sets): Cleanup control flow. Split critical edges
7008         if it exposes implicit sets.  Allocate/resize implicit_sets as
7009         necessary.
7010         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
7011         changed something.  Run df_analyze after find_implicit_sets if any
7012         edges were split.  Do not allocate implicit_sets here.
7013
7014         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
7015         (gcse_obstack): Renamed to cprop_obstack.
7016         (GNEW, GNEWVEC, GNEWVAR): Remove.
7017         (gmalloc): Remove.
7018         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
7019         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
7020         (gcse_alloc): Likewise, and rename to cprop_alloc.
7021         (alloc_gcse_men, free_gcse_mem): Remove.
7022         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
7023         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
7024         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
7025
7026         * cprop.c (oprs_not_set_p): Remove.
7027         (mark_set, mark_clobber): Remove.
7028         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
7029         (reg_not_set_p): New function.
7030         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
7031         (cprop_insn): Likewise.
7032         (cprop_jump): Use FOR_EACH_EDGE.
7033
7034 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
7035
7036         PR bootstrap/48403
7037         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
7038         (rank_for_schedule): Use scheduled_insns vector instead of
7039         last_scheduled_insn.
7040         (ok_for_early_queue_removal): Likewise.
7041         (queue_to_ready): Search forward in nonscheduled_insns_begin if
7042         we have a dbg_cnt.
7043         (choose_ready): Likewise.
7044         (commit_schedule): Use VEC_iterate.
7045         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
7046         a dbg_cnt, use it and ensure the first insn is in the ready list.
7047         (haifa_sched_init): Allocate scheduled_insns.
7048         (sched_extend_ready_list): Don't allocate it; reserve space.
7049         (haifa_sched_finish): Free it.
7050
7051 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
7052
7053         * optc-gen.awk: Always remove type from Variable entry before
7054         recording in var_seen.
7055
7056 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
7057
7058         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
7059         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
7060         call to tidy_fallthru_edges.
7061
7062 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
7063
7064         * doc/options.texi (ToLower): Document.
7065         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
7066         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
7067         * opts.h (cl_option): Add cl_tolower field.
7068         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
7069         arguments with lowercase strings.
7070         * config/rx/rx.opt (mcpu=): Add ToLower.
7071         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
7072         argument.
7073
7074 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
7075
7076         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
7077
7078 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
7079
7080         * config/vax/vax.c: Include reload.h.
7081
7082 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
7083
7084         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
7085         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7086         (sparc_preferred_reload_class): New function.
7087
7088 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
7089
7090         PR debug/48401
7091         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7092         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
7093
7094 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
7095
7096         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
7097         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
7098
7099 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
7100
7101         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
7102         (ASM_OUTPUT_ALIGNED_BSS): Define.
7103
7104 2011-04-03  Michael Matz  <matz@suse.de>
7105
7106         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
7107         and next_slot members.
7108         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
7109         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
7110         (lto_streamer_cache_append): Declare.
7111         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
7112         unsigned index, remove offset parameter, ensure that we append
7113         or update existing entries.
7114         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
7115         parameter, update next_slot for append.
7116         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
7117         parameter.
7118         (lto_streamer_cache_insert_at): Likewise.
7119         (lto_streamer_cache_append): New function.
7120         (lto_streamer_cache_lookup): Use unsigned index.
7121         (lto_streamer_cache_get): Likewise.
7122         (lto_record_common_node): Don't test tree_node_can_be_shared.
7123         (preload_common_node): Adjust call to lto_streamer_cache_insert.
7124         (lto_streamer_cache_delete): Don't free offsets member.
7125         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
7126         (lto_output_string_with_length): Use lto_output_data_stream.
7127         (lto_output_tree_header): Remove ix parameter, don't write it.
7128         (lto_output_builtin_tree): Likewise.
7129         (lto_write_tree): Adjust callers to above, don't track and write
7130         offset, write unsigned index.
7131         (output_unreferenced_globals): Don't emit all global vars.
7132         (write_global_references): Use unsigned indices.
7133         (lto_output_decl_state_refs): Likewise.
7134         (write_symbol): Likewise.
7135         * lto-streamer-in.c (lto_input_chain): Move earlier.
7136         (input_function): Use unsigned index.
7137         (input_alias_pairs): Don't read and then ignore all global vars.
7138         (lto_materialize_tree): Remove ix_p parameter, don't read index,
7139         don't pass it back, use lto_streamer_cache_append.
7140         (lto_register_var_decl_in_symtab): Use unsigned index.
7141         (lto_register_function_decl_in_symtab): Likewise.
7142         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
7143         index.
7144         (lto_get_builtin_tree): Don't read index, use
7145         lto_streamer_cache_append.
7146         (lto_read_tree): Adjust call to lto_materialize_tree.
7147
7148         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
7149         don't use function calls in arguments to MIN.
7150
7151         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
7152         twice.
7153
7154         * gimple.c (gimple_type_leader_entry): Mark deletable.
7155
7156 2011-04-03  Alan Modra  <amodra@gmail.com>
7157
7158         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
7159
7160 2011-04-03  Michael Matz  <matz@suse.de>
7161
7162         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
7163         an integer.
7164         * tree.h (tree_decl_non_common.vindex): Adjust comment.
7165
7166 2011-04-03  Michael Matz  <matz@suse.de>
7167
7168         * cgraphbuild.c (record_reference): Canonicalize constructor values.
7169         * gimple-fold.c (canonicalize_constructor_val): Accept being called
7170         without function context.
7171         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
7172         current_function_decl and cfun.
7173
7174 2011-04-03  Michael Matz  <matz@suse.de>
7175
7176         * tree.c (decl_init_priority_insert): Don't create entry for
7177         default priority.
7178         (decl_fini_priority_insert): Ditto.
7179         (fields_compatible_p, find_compatible_field): Remove.
7180         * tree.h (fields_compatible_p, find_compatible_field): Remove.
7181         * gimple.c (gimple_compare_field_offset): Adjust block comment.
7182
7183 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
7184
7185         * combine.c (try_combine): Remove useless local variable.
7186
7187 2011-04-03  Richard Guenther  <rguenther@suse.de>
7188             Ira Rosen  <ira.rosen@linaro.org>
7189
7190         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
7191         non-variable offsets and compare the remaining bases of the two
7192         accesses instead of looking for exact same data-ref.
7193
7194 2011-04-02  Kai Tietz  <ktietz@redhat.com>
7195
7196         PR target/48416
7197         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
7198
7199         * i386.c (ix86_is_msabi_thiscall): New helper function.
7200         (ix86_is_type_thiscall): New helper function.
7201         (ix86_comp_type_attributes): Handle thiscall for method-functions
7202         special.
7203         (init_cumulative_args): Likewise.
7204         (find_drap_reg): Likewise.
7205         (ix86_static_chain): Likewise.
7206         (x86_this_parameter): Likewise.
7207         (x86_output_mi_thunk): Likewise.
7208
7209 2011-04-01  Olivier Hainque  <hainque@adacore.com>
7210             Nicolas Setton  <setton@adacore.com>
7211             Eric Botcazou  <ebotcazou@adacore.com>
7212
7213         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
7214         (add_gnat_descriptive_type_attribute): New function.
7215         (gen_array_type_die): Call it.
7216         (gen_enumeration_type_die): Likewise.
7217         (gen_struct_or_union_type_die): Likewise.
7218         (modified_type_die): Likewise.
7219         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
7220         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
7221         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
7222
7223 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
7224
7225         PR bootstrap/48148
7226         * dwarf2out.c (resolve_addr): Don't call force_decl_die
7227         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
7228
7229         Revert:
7230         2011-03-17  Richard Guenther  <rguenther@suse.de>
7231
7232         PR bootstrap/48148
7233         * lto-cgraph.c (input_overwrite_node): Clear the abstract
7234         origin for decls in other ltrans units.
7235         (input_varpool_node): Likewise.
7236
7237 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
7238
7239         PR middle-end/48335
7240         * expr.c (expand_assignment): Handle all possibilities
7241         if TO_RTX is CONCAT.
7242         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
7243         (store_split_bit_field): If SUBREG_REG (op0) or
7244         op0 itself has smaller mode than word, return it
7245         for offset 0 and const0_rtx for out-of-bounds stores.
7246         If word is const0_rtx, skip it.
7247
7248 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
7249
7250         * config/h8300/h8300.c (print_operand_address): Rename to...
7251         (h8300_print_operand_address): ...this. Make static. Adjust comments.
7252         Call h8300_print_operand and h8300_print_operand_address instead of
7253         print_operand and print_operand_address. Declare.
7254         (print_operand): Renake to...
7255         (h8300_print_operand): ...this. Make static. Adjust comments.
7256         Call h8300_print_operand instead of print_operand. Declare.
7257         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
7258         (h8300_register_move_cost): Likewise.
7259         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
7260         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
7261         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
7262         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
7263         * config/h8300/h8300-protos.h (print_operand): Delete.
7264         (print_operand_address): Delete.
7265
7266 2011-04-01  Richard Henderson  <rth@redhat.com>
7267
7268         PR 48400
7269         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
7270         in strict mode before dwarf4.  Re-order tests to early out
7271         before switching sections.
7272
7273 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
7274
7275         * config/h8300/constraints.md: New file.
7276         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
7277         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
7278         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
7279         * config/h8300/predicates.md (bit_operand): Likewise.
7280         (incdec_operand): Use satisfies_constraint_M and
7281         satisfies_constraint_O.  Don't use C code block.
7282         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
7283         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
7284         (compute_mov_length): Use satisfies_constraint_G.
7285         (fix_bit_operand): Use satisfies_constraint_U.
7286         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
7287         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
7288         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
7289         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
7290         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
7291         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
7292         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7293         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
7294         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
7295         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
7296         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
7297         (EXTRA_MEMORY_CONSTRAINT): Delete.
7298
7299 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
7300             Michael Meissner  <meissner@linux.vnet.ibm.com>
7301
7302         PR target/48262
7303         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
7304         operands, as per the specifications.
7305
7306         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
7307         (vec_extract_evenv4sf): Ditto.
7308         (vec_extract_evenv8hi): Ditto.
7309         (vec_extract_evenv16qi): Ditto.
7310         (vec_extract_oddv4si): Ditto.
7311
7312 2011-03-31  Mark Wielaard  <mjw@redhat.com>
7313
7314         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
7315         high_pc attribute if the CU has no associated code. Only output
7316         DW_AT_entry_pc for CU if not generating strict dwarf and
7317         dwarf_version < 4.
7318
7319 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
7320
7321         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
7322         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
7323         out of ...
7324         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
7325         * final.c (final_start_function): Call the new function rather
7326         than using a NULL argument for dwarf2out_frame_debug.
7327
7328         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
7329         that contains the prologue.
7330
7331         * haifa-sched.c (queue_insn): New arg REASON.  All callers
7332         changed.  Print it in debugging output.
7333
7334         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
7335
7336         * sched-ebb.c (begin_schedule_ready): Remove second argument.
7337         Split most of the code into...
7338         (begin_move_insn): ... here.  New function.
7339         (ebb_sched_info): Add a pointer to it.
7340         * haifa-sched.c (scheduled_insns): New static variable.
7341         (sched_extend_ready_list): Allocate it.
7342         (schedule_block): Use it to record the order of scheduled insns.
7343         Perform RTL changes to move insns only after all scheduling
7344         decisions have been made.
7345         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
7346         begin_move_insn field.
7347         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7348         * sched-int.h (struct haifa_sched_info): Remove second argument
7349         from begin_schedule_ready hook.  Add new member begin_move_insn.
7350         * sched-rgn.c (begin_schedule_ready): Remove second argument.
7351         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
7352
7353         * haifa-sched.c (prune_ready_list): New function, broken out of
7354         schedule_block.
7355         (schedule_block): Use it.
7356
7357 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7358
7359         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
7360
7361 2011-04-01  Kai Tietz  <ktietz@redhat.com>
7362
7363         * config.gcc (*-*-mingw*): Allow as option the
7364         posix threading model.
7365         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
7366         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
7367         definition.
7368         (CPP_SPEC): Add pthread/no-pthread handling.
7369         (LIB_SPEC): Likewise.
7370         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
7371         (LIB_SPEC): Likewise.
7372         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
7373         flag to pass -pthread option for shared libgcc build.
7374         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
7375         for shared libgcc build.
7376         * config/i386/t-mingw-pthread: New file.
7377         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
7378         New define to enable use of library pthread by default.
7379         * config/i386/mingw.opt (pthread): New driver option.
7380         (no-pthread): New driver option.
7381         * config/i386/cygming.opt: Make sure trailing empty line is retained.
7382         * config/i386/mingw-w64.opt: Likewise.
7383
7384 2011-04-01  Gary Funck  <gary@intrepid.com>
7385
7386         * c-decl.c (grokdeclarator): Fix formatting.
7387
7388 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7389
7390         * expr.c (emit_block_move_via_movmem): Use n_generator_args
7391         instead of n_operands.
7392         (set_storage_via_setmem): Likewise.
7393         * optabs.c (maybe_gen_insn): Likewise.
7394         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
7395         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
7396         (mips_expand_builtin_direct): Likewise.
7397         * config/spu/spu.c (expand_builtin_args): Likewise.
7398
7399 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7400
7401         * recog.h (insn_data_d): Add n_generator_args.
7402         * genoutput.c (data): Likewise.
7403         (output_insn_data): Print it.
7404         (max_opno, num_dups): Delete.
7405         (scan_operands): Just fill in "d->operand[...]".
7406         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7407
7408 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7409
7410         * gensupport.h (pattern_stats): New structure.
7411         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7412         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7413         (max_operand_1, max_operand_vec): Delete.
7414         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7415
7416 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
7417
7418         * emit-rtl.c (emit_pattern_after_setloc): New function.
7419         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7420         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7421         (emit_pattern_after): New function.
7422         (emit_insn_after, emit_jump_insn_after): Call it.
7423         (emit_call_insn_after, emit_debug_insn_after): Likewise.
7424         (emit_pattern_before_setloc): New function.
7425         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7426         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7427         Likewise.
7428         (emit_pattern_before): New function.
7429         (emit_insn_before, emit_jump_insn_before): Call it.
7430         (emit_call_insn_before, emit_debug_insn_before): Likewise.
7431
7432 2011-03-31  Richard Henderson  <rth@redhat.com>
7433
7434         * dwarf2out.c (dw_separate_line_info_ref): Remove.
7435         (dw_separate_line_info_entry): Remove.
7436         (enum dw_line_info_opcode): New.
7437         (dw_line_info_entry): Use it.
7438         (dw_line_info_table, dw_line_info_table_p): New.
7439         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7440         (line_info_table, line_info_label_num): Remove.
7441         (line_info_table_in_use): Remove.
7442         (separate_line_info_table): Remove.
7443         (separate_line_info_table_allocated): Remove.
7444         (separate_line_info_table_in_use): Remove.
7445         (LINE_INFO_TABLE_INCREMENT): Remove.
7446         (line_info_label_num): New.
7447         (cur_line_info_table): New.
7448         (text_section_line_info, cold_text_section_line_info): New.
7449         (separate_line_info): New.
7450         (SEPARATE_LINE_CODE_LABEL): Remove.
7451         (print_dwarf_line_table): Remove.
7452         (debug_dwarf): Don't dump it.
7453         (output_one_line_info_table): New.
7454         (output_line_info): Use it.
7455         (new_line_info_table): New.
7456         (set_cur_line_info_table): New.
7457         (dwarf2out_switch_text_section): Use it.
7458         (dwarf2out_begin_function): Likewise.
7459         (push_dw_line_info_entry): New.
7460         (dwarf2out_source_line): Rewrite for new line info tables.
7461         (dwarf2out_init): Remove dead initailizations.
7462
7463 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
7464
7465         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
7466         various flags.
7467         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7468         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7469         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7470         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7471         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7472         * opt-functions.awk (flag_init, switch_bit_fields): New.
7473         (switch_flags): Don't handle flags moved to bit-fields.  Don't
7474         generate CL_MISSING_OK or CL_SAVE.
7475         * optc-gen.awk: Update to generate bit-field output as well as
7476         flags field.
7477         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7478         bit-field instead of CL_REJECT_DRIVER flag.
7479         * opts-common.c (generate_canonical_option,
7480         decode_cmdline_option): Use bit-fields instead of CL_* flags.
7481         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7482         instead of CL_REJECT_NEGATIVE flag.
7483         * toplev.c (print_switch_values): Use cl_report bit-field instead
7484         of CL_REPORT flag.
7485
7486 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
7487
7488         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7489         a zero minimum index only if it is redundant.
7490
7491 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
7492
7493         PR rtl-optimization/48381
7494         * ira-color.c (assign_hard_reg): Use hard reg set intersection
7495         instead of ira_class_hard_reg_index for calculating conflicting
7496         hard registers.
7497
7498 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
7499
7500         * cprop.c: Clean up hash table building.
7501         (reg_avail_info): Remove.
7502         (oprs_available_p): Remove.
7503         (record_last_reg_set_info): Remove.
7504         (record_last_set_info): Remove.
7505         (reg_available_p): New function.
7506         (gcse_constant_p): Do not treat unfolded conditions as constants.
7507         (make_set_regs_unavailable): New function.
7508         (hash_scan_set): Simplify with new reg_available_p.
7509         (compute_hash_table_work): Traverse insns stream only once.
7510         Do not compute reg_avail_info. Traverse insns in reverse order.
7511         Record implicit sets after recording explicit sets from the block.
7512
7513 2011-03-31  Michael Matz  <matz@suse.de>
7514
7515         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7516
7517 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
7518
7519         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7520         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7521         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7522         (h8300_mode_dependent_address_p): New function.
7523         (h8300_get_index): Make static.
7524
7525 2011-03-31  Jeff Law  <law@redhat.com>
7526
7527         * reload1.c (elimination_effects): Fix typo in recent change.
7528
7529         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7530         typo potentially leading to null pointer dereference.
7531
7532         * caller-save.c (new_saved_hard_reg): Eliminate return value.
7533         (setup_save_areas): Corresponding changes to avoid useless
7534         assignments.
7535
7536         * jump.c (reversed_comparison_code_parts): Avoid successive return
7537         statements when REVERSE_CONDITION is defined.
7538
7539         * expr.c (expand_assignment): Avoid useless assignments.
7540         (expand_expr_real_1): Likewise.
7541         (expand_expr_real_2): Avoid useless statements.
7542
7543         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7544
7545         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7546
7547         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7548         statements.
7549
7550         * stmt.c (expand_expr_stmt): Avoid useless assignment.
7551
7552 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
7553
7554         PR target/47109
7555         * doc/tm.texi.in (TARGET_VERSION): Remove.
7556         * doc/tm.texi: Regenerate.
7557         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7558         * collect2.c (main): Don't use TARGET_VERSION.
7559         * mips-tdump.c (main): Don't use TARGET_VERSION.
7560         * mips-tfile.c (main): Don't use TARGET_VERSION.
7561         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7562         * config/rs6000/vxworksae.h: Remove.
7563         * config/alpha/alpha.h (TARGET_VERSION): Remove.
7564         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7565         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7566         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7567         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7568         * config/arm/arm.h (TARGET_VERSION): Remove.
7569         * config/arm/coff.h (TARGET_VERSION): Remove.
7570         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7571         * config/arm/elf.h (TARGET_VERSION): Remove.
7572         * config/arm/freebsd.h (TARGET_VERSION): Remove.
7573         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7574         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7575         * config/arm/pe.h (TARGET_VERSION): Remove.
7576         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7577         * config/arm/semi.h (TARGET_VERSION): Remove.
7578         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7579         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7580         * config/arm/vxworks.h (TARGET_VERSION): Remove.
7581         * config/avr/avr.h (TARGET_VERSION): Remove.
7582         * config/bfin/bfin.h (TARGET_VERSION): Remove.
7583         * config/fr30/fr30.h (TARGET_VERSION): Remove.
7584         * config/frv/frv.h (TARGET_VERSION): Remove.
7585         * config/h8300/h8300.h (TARGET_VERSION): Remove.
7586         * config/i386/cygwin.h (TARGET_VERSION): Remove.
7587         * config/i386/darwin.h (TARGET_VERSION): Remove.
7588         * config/i386/darwin64.h (TARGET_VERSION): Remove.
7589         * config/i386/djgpp.h (TARGET_VERSION): Remove.
7590         * config/i386/freebsd.h (TARGET_VERSION): Remove.
7591         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7592         * config/i386/gnu.h (TARGET_VERSION): Remove.
7593         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7594         * config/i386/i386elf.h (TARGET_VERSION): Remove.
7595         * config/i386/linux.h (TARGET_VERSION): Remove.
7596         * config/i386/linux64.h (TARGET_VERSION): Remove.
7597         * config/i386/lynx.h (TARGET_VERSION): Remove.
7598         * config/i386/mingw32.h (TARGET_VERSION): Remove.
7599         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7600         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7601         * config/i386/netware.h (TARGET_VERSION): Remove.
7602         * config/i386/nto.h (TARGET_VERSION): Remove.
7603         * config/i386/openbsd.h (TARGET_VERSION): Remove.
7604         * config/i386/vxworks.h (TARGET_VERSION): Remove.
7605         * config/ia64/elf.h (TARGET_VERSION): Remove.
7606         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7607         * config/ia64/hpux.h (TARGET_VERSION): Remove.
7608         * config/ia64/linux.h (TARGET_VERSION): Remove.
7609         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7610         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7611         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7612         * config/lm32/lm32.h (TARGET_VERSION): Remove.
7613         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7614         * config/m32c/m32c.h (TARGET_VERSION): Remove.
7615         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7616         * config/m32r/m32r.h (TARGET_VERSION): Remove.
7617         * config/m68k/linux.h (TARGET_VERSION): Remove.
7618         * config/m68k/m68k.h (TARGET_VERSION): Remove.
7619         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7620         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7621         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7622         * config/mep/mep.h (TARGET_VERSION): Remove.
7623         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7624         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7625         * config/mips/iris6.h (MACHINE_TYPE): Remove.
7626         * config/mips/linux.h (TARGET_VERSION): Remove.
7627         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7628         * config/mips/vxworks.h (TARGET_VERSION): Remove.
7629         * config/mmix/mmix.h (TARGET_VERSION): Remove.
7630         * config/mn10300/linux.h (TARGET_VERSION): Remove.
7631         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7632         * config/pa/pa.h (TARGET_VERSION): Remove.
7633         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7634         * config/picochip/picochip.h (TARGET_VERSION): Remove.
7635         * config/rs6000/aix.h (TARGET_VERSION): Remove.
7636         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7637         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7638         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7639         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7640         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7641         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7642         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7643         * config/rs6000/linux.h (TARGET_VERSION): Remove.
7644         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7645         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7646         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7647         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7648         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7649         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7650         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7651         * config/s390/linux.h (TARGET_VERSION): Remove.
7652         * config/s390/s390.h (TARGET_VERSION): Remove.
7653         * config/s390/tpf.h (TARGET_VERSION): Remove.
7654         * config/score/score.h (TARGET_VERSION): Remove.
7655         * config/sh/linux.h (TARGET_VERSION): Remove.
7656         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7657         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7658         * config/sh/sh.h (TARGET_VERSION): Remove.
7659         * config/sh/sh64.h (TARGET_VERSION): Remove.
7660         * config/sh/superh.h (TARGET_VERSION): Remove.
7661         * config/sh/vxworks.h (TARGET_VERSION): Remove.
7662         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7663         * config/sparc/linux.h (TARGET_VERSION): Remove.
7664         * config/sparc/linux64.h (TARGET_VERSION): Remove.
7665         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7666         TARGET_NAME32, TARGET_NAME): Remove.
7667         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7668         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7669         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7670         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7671         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7672         * config/spu/spu.h (TARGET_VERSION): Remove.
7673         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7674         * config/v850/v850.h (TARGET_VERSION): Remove.
7675         * config/vax/linux.h (TARGET_VERSION): Remove.
7676         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7677         * config/xtensa/elf.h (TARGET_VERSION): Remove.
7678         * config/xtensa/linux.h (TARGET_VERSION): Remove.
7679
7680 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
7681
7682         PR target/48142
7683         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7684         frame-related from frame-unrelated adjustments to the stack pointer.
7685
7686 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
7687
7688         * common.opt (fdebug-types-section): Move earlier.
7689         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7690
7691 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
7692
7693         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7694         var.
7695
7696 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
7697
7698         * tree.h (CASE_CHAIN): Define.
7699         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7700         (gimple_redirect_edge_and_branch): Likewise.
7701
7702 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7703
7704         PR middle-end/48367
7705         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7706         calculation.
7707
7708 2011-03-30  Jeff Law  <law@redhat.com>
7709
7710         * PR bootstrap/48371
7711         * reload1.c (reload): Fix botch in last change.
7712
7713         * reload.h (struct reload): Fix typo introduced in last change.
7714
7715 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7716
7717         * config/arm/arm.opt (mhard-float, msoft-float): Mark
7718         Undocumented.  Remove help text.
7719         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7720         -mhard-float.
7721
7722 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7723
7724         * doc/options.texi (NegativeAlias): Document.
7725         (Alias): Mention NegativeAlias.
7726         * opt-functions.awk: Handle NegativeAlias.
7727         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
7728         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7729         * opts.h (CL_NEGATIVE_ALIAS): Define.
7730         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7731         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7732         OPT_mspe_.
7733         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7734         Alias entries.
7735         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7736         mno-spe and mno-isel instead of mspe=no and -misel=no.
7737
7738 2011-03-29  Mark Wielaard  <mjw@redhat.com>
7739
7740         * common.opt (fdebug-types-section): New flag.
7741         * doc/invoke.texi: Document new -fno-debug-types-section flag.
7742         * dwarf2out.c (use_debug_types): New define.
7743         (struct die_struct): Mark die_id with GTY desc use_debug_types.
7744         (print_die): Guard output of type unit signatures using
7745         use_debug_types.
7746         (build_abbrev_table): Replace assert of dwarf_version >= 4
7747         with assert on use_debug_types.
7748         (size_of_die): Likewise.
7749         (unmark_dies): Likewise.
7750         (value_format): Decide AT_ref_external form on use_debug_types.
7751         (output_die): Replace dwarf_version version check guard with
7752         use_debug_types where appropriate.
7753         (modified_type_die): Likewise.
7754         (gen_reference_type_die): Likewise.
7755         (dwarf2out_start_source_file): Likewise.
7756         (dwarf2out_end_source_file): Likewise.
7757         (prune_unused_types_walk_attribs): Likewise.
7758         (dwarf2out_finish): Likewise.
7759
7760 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7761
7762         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7763
7764 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7765
7766         PR rtl-optimization/48332
7767         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7768         mode of input operand N and modeN to its actual mode.
7769
7770 2011-03-30  Jeff Law  <law@redhat.com>
7771
7772         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7773         define accessor macro.
7774         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7775         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7776         (reg_equiv_init): Likewise.
7777         (reg_equivs_size): New variable.
7778         (reg_equiv_init_size): Remove.
7779         (allocate_initial_values): Move prototype to here from....
7780         * integrate.h (allocate_initial_values): Remove prototype.
7781         * integrate.c: Include reload.h.
7782         (allocate_initial_values): Corresponding changes.
7783         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7784         (fix_reg_equiv_init, no_equiv): Corresponding changes.
7785         (update_equiv_regs): Corresponding changes.
7786         (ira): Corresponding changes.
7787         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7788         (push_secondary_reload): Corresponding changes.
7789         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7790         (make_memloc, find_reloads_address): Corresponding changes.
7791         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7792         (find_reloads_address_1): Corresponding changes.
7793         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7794         (refers_to_regno_for_reload_p): Corresponding changes.
7795         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7796         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7797         * reload1.c: Include ggc.h.
7798         (grow_reg_equivs): New function.
7799         (replace_pseudos_in, reload): Corresponding changes.
7800         (calculate_needs_all_insns, alter_regs): Corresponding changes.
7801         (eliminate_regs_1, elimination_effects): Corresponding changes.
7802         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7803         (delete_output_reload): Likewise.
7804         * caller-save.c (mark_referenced_regs): Corresponding changes.
7805         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7806         * frv/predicates.md (frv_load_operand): Corresponding changes.
7807         * microblaze/microblaze.c (double_memory_operand): Corresponding
7808         changes.
7809         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7810         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7811         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7812         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7813         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7814         changes.
7815         * pa/pa.c (emit_move_sequence): Corresponding changes.
7816         * vax/vax.c (nonindexed_address_p): Corresponding changes.
7817
7818 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7819
7820         PR target/47551
7821         * config/arm/arm.c (coproc_secondary_reload_class): Handle
7822         structure modes.  Don't check neon_vector_mem_operand for
7823         vector or structure modes.
7824
7825 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7826             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7827
7828         PR target/43590
7829         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7830         operand 1 and reshuffle the operands to match.
7831         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7832
7833 2011-03-30  Christian Schüler  <cschueler@gmx.de>
7834
7835         PR driver/48208
7836         * config/c.opt (F): Added 'Driver' to -F option.
7837
7838         PR driver/48260
7839         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7840           handler function.
7841         * config/darwin.opt: Added '-arch' option.
7842
7843 2011-03-30  Nick Clifton  <nickc@redhat.com>
7844
7845         * config/rx/rx.md: Add peepholes and patterns to combine
7846         extending loads and simple arithmetic instructions.
7847         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7848         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7849         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7850         modes to use pre-decrement and post-increment addressing.
7851         (rx_is_restricted_memory_address): Add range checking of REG+INT
7852         addresses.
7853         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
7854         (rx_memory_move_cost): Adjust cost of stores.
7855         (rx_adjust_insn_length): New function.
7856
7857 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
7858
7859         PR c/48305
7860         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7861         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7862         matching arg00/arg01 types.
7863
7864 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
7865
7866         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7867         last_location to UNKNOWN_LOCATION.
7868
7869 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
7870
7871         PR target/48349
7872         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7873         FLOAT_SSE_REGS.
7874
7875 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7876             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7877
7878         PR bootstrap/48337
7879         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7880         Init(PROCESSOR_V7).
7881         (sparc_cpu): Likewise.
7882         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7883         PROCESSOR_V7.
7884
7885 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7886
7887         PR target/48336
7888         PR middle-end/48342
7889         PR rtl-optimization/48345
7890         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7891         hard regs for given mode from profitable regs when doing secondary
7892         allocation.
7893
7894 2011-03-29  Jeff Law  <law@redhat.com>
7895
7896         PR bootstrap/48327
7897         * tree-ssa-threadupdate.c (struct redirection_data): Remove
7898         do_not_duplicate field.
7899         (lookup_redirection_data): Corresponding changes.
7900         (create_duplicates): Always create a template block.
7901         (redirect_edges): Remove code which reused the original block
7902         when it was going to become unreachable code.
7903         (thread_block): Don't set do_not_duplicate field.
7904
7905 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
7906
7907         * lto-opts.c (register_user_option_p, lto_register_user_option):
7908         Make type argument unsigned.
7909         * lto-streamer.h (lto_register_user_option): Make type argument
7910         unsigned.
7911         * opth-gen.awk: Make CL_* macros unsigned.
7912         * opts-common.c (find_opt): Make lang_mask argument unsigned.
7913         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7914         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7915         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7916         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7917         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7918         (find_opt): Make lang_mask argument unsigned.
7919
7920 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7921
7922         PR rtl-optimization/48331
7923         PR rtl-optimization/48334
7924         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7925         for any used algorithm.
7926
7927 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7928
7929         * ira-conflicts.c (build_object_conflicts): Add unused attribute
7930         to parent_max.
7931
7932 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
7933
7934         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7935         (alpha_option_override): Don't set alpha_sr_alias_set.
7936         (emit_frame_store_1): Use gen_frame_mem rather than calling
7937         set_mem_alias_set.
7938         (alpha_expand_epilogue): Ditto.
7939
7940 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
7941
7942         PR tree-optimization/48290
7943         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7944         vectorization, check that relevant phis in the basic block after
7945         the inner loop are really inner loop's exit phis.
7946
7947 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
7948
7949         PR debug/48190
7950         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7951         (cached_dw_loc_list_def): New structure.
7952         (cached_dw_loc_list): New typedef.
7953         (cached_dw_loc_list_table): New variable.
7954         (cached_dw_loc_list_table_hash): New function.
7955         (cached_dw_loc_list_table_eq): Likewise.
7956         (add_location_or_const_value_attribute): Take a bool cache_p.
7957         Cache the list when the parameter is true.
7958         (gen_formal_parameter_die): Update caller.
7959         (gen_variable_die): Likewise.
7960         (dwarf2out_finish): Likewise.
7961         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7962         while generating debug info for the decl.
7963         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7964         (dwarf2out_init): Initialize cached_dw_loc_list_table.
7965         (resolve_addr): Cache the result of resolving a chain of
7966         location lists.
7967
7968 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
7969
7970         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7971         conflict object hard regset nodes have intersecting hard reg sets.
7972
7973         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7974         after regstat_init_n_sets_and_refs.
7975
7976         * ira.c: Add more comments at the top.
7977         (setup_stack_reg_pressure_class, setup_pressure_classes):
7978         Add comments how we compute the register pressure classes.
7979         (setup_allocno_and_important_classes): Add more comments.
7980         (setup_class_translate_array, reorder_important_classes)
7981         (setup_reg_class_relations): Add comments.
7982
7983         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
7984         start of the file.
7985
7986         * ira-color.c: Add 2011 to the Copyright line.
7987         (assign_hard_reg):  Add more comments.
7988         (improve_allocation): Ditto.
7989
7990         * ira-costs.c: Add 2011 to the Copyright line.
7991         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7992         comments.
7993         (setup_regno_cost_classes_by_mode): Ditto.
7994
7995         Initial patches from ira-improv branch:
7996
7997         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
7998
7999         * ira-build.c (ira_create_object): Remove initialization of
8000         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
8001         (ira_create_allocno): Remove initialization of
8002         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
8003         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
8004         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8005         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
8006         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
8007         Initialize ALLOCNO_ADD_DATA.
8008         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
8009         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
8010         ALLOCNO_REG.
8011         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
8012         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
8013
8014         * ira.c (ira_reallocate): Remove.
8015         (setup_pressure_classes): Call
8016         ira_init_register_move_cost_if_necessary.  Use
8017         ira_register_move_cost instead of ira_get_register_move_cost.
8018         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
8019         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
8020
8021         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
8022         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8023         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
8024         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
8025         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
8026         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
8027         Fix formatting.
8028         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
8029         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8030         (struct allocno_color_data): New.
8031         (allocno_color_data_t): New typedef.
8032         (allocno_color_data): New definition.
8033         (ALLOCNO_COLOR_DATA): New macro.
8034         (struct object_color_data): New.
8035         (object_color_data_t): New typedef.
8036         (object_color_data): New definition.
8037         (OBJECT_COLOR_DATA): New macro.
8038         (update_copy_costs, calculate_allocno_spill_cost): Call
8039         ira_init_register_move_cost_if_necessary.  Use
8040         ira_register_move_cost instead of ira_get_register_move_cost.
8041         (move_spill_restore, update_curr_costs): Ditto.
8042         (allocno_spill_priority): Make it inline.
8043         (color_pass): Allocate and free allocno_color_dat and object_color_data.
8044         (struct coalesce_data, coalesce_data_t): New.
8045         (allocno_coalesce_data): New definition.
8046         (ALLOCNO_COALESCE_DATA): New macro.
8047         (merge_allocnos, coalesced_allocno_conflict_p): Use
8048         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
8049         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
8050         (coalesce_allocnos): Ditto.
8051         (setup_coalesced_allocno_costs_and_nums): Ditto.
8052         (collect_spilled_coalesced_allocnos): Ditto.
8053         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
8054         (setup_slot_coalesced_allocno_live_ranges): Ditto.
8055         (coalesce_spill_slots): Ditto.
8056         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
8057         free allocno_coalesce_data.
8058
8059         * ira-conflicts.c: Fix formatting.
8060         (process_regs_for_copy): Call
8061         ira_init_register_move_cost_if_necessary.  Use
8062         ira_register_move_cost instead of ira_get_register_move_cost.
8063         (build_object_conflicts): Optimize.
8064
8065         * ira-costs.c (record_reg_classes): Optimize.  Call
8066         ira_init_register_move_cost_if_necessary.  Use
8067         ira_register_move_cost, ira_may_move_in_cost, and
8068         ira_may_move_out_cost instead of ira_get_register_move_cost and
8069         ira_get_may_move_cost.
8070         (record_address_regs): Ditto.
8071         (scan_one_insn): Optimize.
8072         (find_costs_and_classes): Optimize.
8073         (process_bb_node_for_hard_reg_moves): Call
8074         ira_init_register_move_cost_if_necessary.  Use
8075         ira_register_move_cost instead of ira_get_register_move_cost.
8076
8077         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
8078         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
8079         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
8080         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
8081         definitions.
8082         (ira_initiate_emit_data, ira_finish_emit_data)
8083         (create_new_allocno): New functions.
8084         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
8085         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
8086         Use ira_register_move_cost instead of ira_get_register_move_cost.
8087
8088         * ira-int.h: Fix some comments.
8089         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
8090         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8091         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
8092         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
8093         add_data.
8094         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
8095         bitfield after mode.  Make hard_regno a short int.  Make
8096         hard_regno short.  Remove first_coalesced_allocno and
8097         next_coalesced_allocno.  Move mem_optimized_dest_p,
8098         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
8099         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
8100         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
8101         temp, colorable_p.  Add new member add_data.
8102         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
8103         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
8104         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
8105         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
8106         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
8107         (ALLOCNO_ADD_DATA): New macro.
8108         (ira_emit_data_t): New typedef.
8109         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
8110         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
8111         from struct ira_allocno.
8112         (ALLOCNO_EMIT_DATA): New macro.
8113         (ira_allocno_emit_data, allocno_emit_reg): New.
8114         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
8115         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
8116         (OBJECT_ADD_DATA): New macro.
8117         (ira_reallocate): Remove.
8118         (ira_initiate_emit_data, ira_finish_emit_data): New.
8119         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
8120         (ira_init_register_move_cost_if_necessary): New.
8121         (ira_object_conflict_iter_next): Merge into
8122         ira_object_conflict_iter_cond.
8123         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
8124
8125         * ira-live.c (process_single_reg_class_operands): Call
8126         ira_init_register_move_cost_if_necessary.  Use
8127         ira_register_move_cost instead of ira_get_register_move_cost.
8128
8129         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
8130
8131         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
8132
8133         * ira-costs.c: Fix formatting.
8134         (cost_classes, cost_classes_num): Remove.
8135         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
8136         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
8137         (cost_classes_del, cost_classes_htab): New.
8138         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
8139         (initiate_regno_cost_classes, setup_cost_classes): New.
8140         (setup_regno_cost_classes_by_aclass): New.
8141         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
8142         (record_reg_classes): Use regno_cost_classes instead of
8143         cost_classes.  Move checking opposite operand up.
8144         (record_address_regs): Use regno_cost_classes
8145         instead of cost_classes.
8146         (scan_one_insn): Ditto.  Use always general register.
8147         (print_allocno_costs): Use regno_cost_classes instead of
8148         cost_classes.
8149         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
8150         (find_costs_and_classes): Set up cost classes for each registers.
8151         Use also their mode for this.  Use regno_cost_classes instead of
8152         cost_classes.
8153         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
8154         cost_classes.
8155         (free_ira_costs, ira_init_costs): Don't use cost_classes.
8156         (ira_costs, ira_set_pseudo_classes): Call
8157         initiate_regno_cost_classes and finish_regno_cost_classes.
8158
8159         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
8160
8161         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
8162
8163         * target.def (ira_cover_classes): Remove.
8164
8165         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
8166
8167         * doc/tm.texi.in: Ditto.
8168
8169         * ira-conflicts.c: Remove mentioning cover classes from the file.
8170         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
8171         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
8172
8173         * targhooks.c (default_ira_cover_classes): Remove.
8174
8175         * targhooks.h (default_ira_cover_classes): Ditto.
8176
8177         * haifa-sched.c: Remove mentioning cover classes from the file.
8178         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
8179         ira_pressure_classes and ira_pressure_classes_num instead of
8180         ira_reg_class_cover_size and ira_reg_class_cover.  Use
8181         sched_regno_pressure_class instead of sched_regno_cover_class.
8182         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
8183         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8184
8185         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
8186         classes from the file.
8187         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
8188         (struct object_hard_regs, struct object_hard_regs_node): New.
8189         (struct ira_object): New members profitable_hard_regs,
8190         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
8191         (struct ira_allocno): Rename cover_class to aclass.  Rename
8192         cover_class_cost and updated_cover_class_cost to class_cost and
8193         updated_class_cost.  Remove splay_removed_p and
8194         left_conflict_size.  Add new members colorable_p.
8195         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
8196         (ALLOCNO_COLORABLE_P): New macro.
8197         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
8198         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
8199         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
8200         (OBJECT_...): Rename parameter C to O.
8201         (OBJECT_PROFITABLE_HARD_REGS): New macro.
8202         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
8203         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
8204         (struct target_ira_int): New members x_ira_max_memory_move_cost,
8205         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
8206         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
8207         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
8208         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
8209         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
8210         x_ira_reg_class_subunion.
8211         (ira_max_memory_move_cost, ira_max_register_move_cost)
8212         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
8213         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
8214         (ira_important_class_nums, ira_reg_class_superunion): New macros.
8215         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
8216         (ira_reg_class_union): Rename to ira_reg_class_subunion.
8217         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8218         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8219         (ira_tune_allocno_costs_and_cover_classes): Rename to
8220         ira_tune_allocno_costs.
8221         (ira_debug_hard_regs_forest): New.
8222         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
8223         (ira_object_conflict_iter_next): Fix comments.
8224         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
8225         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
8226         cover_class to aclass.
8227         (ira_allocate_and_accumulate_costs): Ditto.
8228         (ira_allocate_and_set_or_copy_costs): Ditto.
8229
8230         * opts.c (decode_options): Remove ira_cover_class check.
8231
8232         * ira-color.c: Remove mentioning cover classes from the file.  Use
8233         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
8234         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
8235         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
8236         (splay-tree.h): Remove include.
8237         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
8238         before copy_freq_compare_func.
8239         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
8240         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
8241         New definitions.
8242         (hard_regs_roots, hard_regs_node_vec): Ditto.
8243         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
8244         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
8245         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
8246         (create_new_object_hard_regs_node): Ditto.
8247         (add_new_object_hard_regs_node_to_forest): Ditto.
8248         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
8249         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
8250         Ditto.
8251         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
8252         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
8253         (remove_unused_object_hard_regs_nodes): Ditto.
8254         (enumerate_object_hard_regs_nodes): Ditto.
8255         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
8256         (object_hard_regs_subnode_t): Ditto.
8257         (struct object_hard_regs_subnode): Ditto.
8258         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
8259         (setup_object_hard_regs_subnode_index): Ditto.
8260         (get_object_hard_regs_subnodes_num): Ditto.
8261         (form_object_hard_regs_nodes_forest): Ditto.
8262         (finish_object_hard_regs_nodes_tree): Ditto.
8263         (finish_object_hard_regs_nodes_forest): Ditto.
8264         (allocnos_have_intersected_live_ranges_p): Rename to
8265         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
8266         (pseudos_have_intersected_live_ranges_p): Rename to
8267         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
8268         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
8269         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
8270         (update_copy_costs): Remove assert.  Skip cost update if the hard
8271         reg does not belong the class.
8272         (assign_hard_reg): Process only profitable hard regs.
8273         (uncolorable_allocnos_num): Make it scalar.
8274         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8275         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
8276         and ira_reg_class_max_nregs.
8277         (bucket_allocno_compare_func): Check frequency first.
8278         (sort_bucket): Add compare function as a parameter.
8279         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
8280         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
8281         (push_allocno_to_stack): Rewrite for checking new allocno
8282         colorability.
8283         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
8284         (push_only_colorable): Pass new parameter to sort_bucket.
8285         (push_allocno_to_spill): Remove.
8286         (allocno_spill_priority_compare): Make it inline and rewrite.
8287         (splay_tree_allocate, splay_tree_free): Remove.
8288         (allocno_spill_sort_compare): New function.
8289         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
8290         build and use splay tree.  Choose first allocno in uncolorable
8291         allocno bucket to spill.  Remove setting spill cost.
8292         (all_conflicting_hard_regs): Remove.
8293         (setup_allocno_available_regs_num): Check only profitable hard
8294         regs.  Print info about hard regs nodes.
8295         (setup_allocno_left_conflicts_size): Remove.
8296         (put_allocno_into_bucket): Don't call
8297         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
8298         (improve_allocation): New.
8299         (color_allocnos): Call setup_profitable_hard_regs,
8300         form_object_hard_regs_nodes_forest, improve_allocation,
8301         finish_object_hard_regs_nodes_forest.  Setup spill cost.
8302         (print_loop_title): Use pressure classes.
8303         (color_allocnso): Ditto.
8304         (do_coloring): Remove allocation and freeing splay_tree_node_pool
8305         and allocnos_for_spilling.
8306         (ira_sort_regnos_for_alter_reg): Don't setup members
8307         {first,next}_coalesced_allocno.
8308         (color): Remove allocating and freeing removed_splay_allocno_vec.
8309         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
8310         prohibited_class_mode_regs.
8311
8312         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
8313         formatting.
8314         (update_allocno_pressure_excess_length): Use pressure classes.
8315         (inc_register_pressure, dec_register_pressure): Check for pressure
8316         class.
8317         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
8318         pressure class.  Use ira_reg_class_nregs instead of
8319         ira_reg_class_max_nregs.
8320         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
8321         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
8322         (single_reg_class): Use ira_reg_class_nregs instead of
8323         ira_reg_class_max_nregs.
8324         (process_bb_node_lives): Use pressure classes.
8325
8326         * ira-emit.c: Remove mentioning cover classes from the file.  Use
8327         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
8328         (change_loop): Use pressure classes.
8329         (modify_move_list): Call ira_set_allocno_class instead of
8330         ira_set_allocno_cover_class.
8331
8332         * ira-build.c: Remove mentioning cover classes from the file.  Use
8333         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
8334         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
8335         ALLOCNO_UPDATED_CLASS_COST instead of
8336         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
8337         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
8338         (ira_create_allocno): Remove initialization of
8339         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
8340         ALLOCNO_COLORABLE_P.
8341         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8342         Update conflict regs for the objects.
8343         (create_cap_allocno): Remove assert.  Don't propagate
8344         ALLOCNO_AVAILABLE_REGS_NUM.
8345         (ira_free_allocno_costs): New function.
8346         (finish_allocno): Change a part of code into call of
8347         ira_free_allocno_costs.
8348         (low_pressure_loop_node_p): Use pressure classes.
8349         (object_range_compare_func): Don't compare classes.
8350         (setup_min_max_conflict_allocno_ids): Ditto.
8351
8352         * loop-invariant.c: Remove mentioning cover classes from the file.
8353         Use ira_pressure_classes and ira_pressure_classes_num instead of
8354         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
8355         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
8356         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8357         Use reg_allocno_class instead of reg_cover_class.
8358         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
8359         STACK_REG_COVER_CLASS.
8360         (get_regno_cover_class): Rename to get_regno_pressure_class.
8361         (move_loop_invariants): Initialize and finalize regstat.
8362
8363         * ira.c: Remove mentioning cover classes from the file.  Add
8364         comments about coloring without cover classes.  Use ALLOCNO_CLASS
8365         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
8366         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
8367         setup_class_subset_and_memory_move_costs.
8368         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
8369         (setup_cover_and_important_classes): Rename to
8370         setup_allocno_and_important_classes.
8371         (setup_class_translate_array): New.
8372         (setup_class_translate): Call it for allocno and pressure classes.
8373         (cover_class_order): Rename to allocno_class_order.
8374         (comp_reg_classes_func): Use ira_allocno_class_translate instead
8375         of ira_class_translate.
8376         (reorder_important_classes): Set up ira_important_class_nums.
8377         (setup_reg_class_relations): Set up ira_reg_class_superunion.
8378         (print_class_cover): Rename to print_classes.  Add parameter.
8379         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8380         Print pressure classes too.
8381         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
8382         setup_reg_subclasses.
8383         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8384         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8385         (setup_prohibited_class_mode_regs): Use
8386         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
8387         (clarify_prohibited_class_mode_regs): New function.
8388         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
8389         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
8390         (ira_init_once): Initialize them.
8391         (free_register_move_costs): Process them.
8392         (ira_init): Move calls of find_reg_classes and
8393         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
8394         Call clarify_prohibited_class_mode_regs.
8395         (ira_no_alloc_reg): Remove.
8396         (too_high_register_pressure_p): Use pressure classes.
8397
8398         * sched-deps.c: Remove mentioning cover classes from the file.
8399         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
8400         ira_pressure_classes and ira_pressure_classes_num instead of
8401         ira_reg_class_cover_size and ira_reg_class_cover.
8402         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
8403         sched_regno_pressure_class instead of sched_regno_cover_class.
8404         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
8405         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8406
8407         * ira.h: Add 2010 to Copyright.
8408         (ira_no_alloc_reg): Remove external.
8409         (struct target_ira): Rename x_ira_hard_regno_cover_class,
8410         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8411         x_ira_class_translate to x_ira_hard_regno_allocno_class,
8412         x_ira_allocno_classes_num, x_ira_allocno_classes, and
8413         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
8414         x_ira_pressure_classes, x_ira_pressure_class_translate, and
8415         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
8416         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
8417         x_ira_no_alloc_regs.
8418         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8419         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8420         ira_allocno_classes_num and ira_allocno_classes.
8421         (ira_class_translate): Rename to ira_allocno_class_translate.
8422         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8423         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8424         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8425         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8426         (ira_no_alloc_regs): New.
8427
8428         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
8429         classes from the file.  Use ALLOCNO_CLASS instead of
8430         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
8431         ALLOCNO_COVER_CLASS_COST.
8432         (regno_cover_class): Rename to regno_aclass.
8433         (record_reg_classes): Use ira_reg_class_subunion instead of
8434         ira_reg_class_union.
8435         (record_address_regs): Check overflow.
8436         (scan_one_insn): Ditto.
8437         (print_allocno_costs): Print total mem cost fore regional allocation.
8438         (print_pseudo_costs): Use REG_N_REFS.
8439         (find_costs_and_classes): Use classes intersected with them on the
8440         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
8441         ira_reg_class_union.  Use ira_allocno_class_translate and
8442         regno_aclass instead of ira_class_translate and regno_cover_class.
8443         Modify code for finding regno_aclass.  Setup preferred classes for
8444         the next pass.
8445         (setup_allocno_cover_class_and_costs): Rename to
8446         setup_allocno_class_and_costs.  Use regno_aclass instead of
8447         regno_cover_class.  Use ira_set_allocno_class instead of
8448         ira_set_allocno_cover_class.
8449         (init_costs, finish_costs): Use regno_aclass instead of
8450         regno_cover_class.
8451         (ira_costs): Use setup_allocno_class_and_costs instead of
8452         setup_allocno_cover_class_and_costs.
8453         (ira_tune_allocno_costs_and_cover_classes): Rename to
8454         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
8455         by processing objects.  Use ira_reg_class_max_nregs instead of
8456         ira_reg_class_nregs.
8457
8458         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8459
8460         * sched-int.h: Remove mentioning cover classes from the file.
8461         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8462
8463         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
8464         classes from the file.
8465         (struct reg_pref): Rename coverclass into allocnoclass.
8466         (reg_cover_class): Rename to reg_allocno_class.
8467
8468         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
8469
8470         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8471
8472         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8473
8474         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8475
8476         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8477
8478         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8479
8480         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8481
8482         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8483
8484         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8485
8486         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8487
8488         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8489         (i386_ira_cover_classes): Ditto.
8490
8491         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8492
8493         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8494
8495         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8496
8497         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8498
8499         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8500
8501         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8502
8503         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8504         (mips_ira_cover_classes): Ditto.
8505
8506         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8507
8508         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8509
8510         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8511
8512         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8513
8514         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8515
8516         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8517         (IRA_COVER_CLASSES_VSX): Ditto.
8518
8519         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8520         (rs6000_ira_cover_classes): Ditto.
8521
8522         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8523
8524         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8525
8526         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8527
8528         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8529
8530         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8531
8532         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8533
8534         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8535
8536         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8537
8538         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8539
8540         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8541
8542 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
8543
8544         PR debug/48253
8545         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8546         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8547         dw_fde_unlikely_section_end_label, cold_in_std_section,
8548         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8549         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8550         fields.
8551         (output_fde): Use dw_fde_second_{begin,end} if second is
8552         true, otherwise dw_fde_{begin,end}.
8553         (output_call_frame_info): Test dw_fde_second_begin != NULL
8554         instead of dw_fde_switched_sections.
8555         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8556         fields, initialize new fields.  Initialize in_std_section
8557         unconditionally from the first partition.
8558         (dwarf2out_end_epilogue): Don't override dw_fde_end when
8559         dw_fde_second_begin is non-NULL.
8560         (dwarf2out_switch_text_section): Stop initializing removed
8561         dw_fde_struct fields, initialize new fields, initialize
8562         also dw_fde_end here.  Set dw_fde_switch_cfi even when
8563         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
8564         (struct var_loc_list_def): Add last_before_switch field.
8565         (arange_table, arange_table_allocated, arange_table_in_use,
8566         ARANGE_TABLE_INCREMENT, add_arange): Removed.
8567         (size_of_aranges): Count !in_std_section and !second_in_std_section
8568         hunks in fdes, instead of looking at arange_table_in_use.
8569         (output_aranges): Add aranges_length argument, don't call
8570         size_of_aranges here.  Instead of using aranges_table*
8571         emit ranges for fdes when !in_std_section resp.
8572         !second_in_std_section.
8573         (dw_loc_list): Break ranges crossing section switch.
8574         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
8575         use dw_fde_second_end instead of dw_fde_end as end of last range.
8576         (gen_subprogram_die): Don't call add_arange.  Use
8577         dw_fde_{begin,end} for first partition and if switched
8578         section dw_fde_second_{begin,end} for the second.
8579         (var_location_switch_text_section_1,
8580         var_location_switch_text_section): New functions.
8581         (dwarf2out_begin_function): Initialize cold_text_section even
8582         when function_section () isn't text_section.
8583         (prune_unused_types): Don't walk arange_table.
8584         (dwarf2out_finish): Don't needlessly test
8585         flag_reorder_blocks_and_partition when testing cold_text_section_used.
8586         If info_section_emitted, call size_of_aranges and if it indicates
8587         non-empty .debug_aranges, call output_aranges with the computed
8588         size.  Stop using removed dw_fde_struct fields, use
8589         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8590         for second.
8591
8592         PR debug/48203
8593         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8594         create ENTRY_VALUE if incoming or address of incoming's MEM
8595         is a hard REG.
8596         * dwarf2out.c (mem_loc_descriptor): Don't emit
8597         DW_OP_GNU_entry_value of DW_OP_fbreg.
8598         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8599         on ENTRY_VALUE is able to find the canonical parameter VALUE.
8600         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8601         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8602         ENTRY_VALUE_EXPs.
8603         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8604         is a REG_P or MEM_P with REG_P address, compute hash directly
8605         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8606         (preserve_only_constants): Don't clear VALUES forwaring
8607         ENTRY_VALUE to some other VALUE.
8608
8609 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
8610
8611         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8612         instead of GEN_INT.
8613
8614 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8615
8616         * cfgexpand.c (expand_gimple_cond): Always set the source location and
8617         block before expanding the statement.
8618         (expand_gimple_stmt_1): Likewise.  Set them here...
8619         (expand_gimple_stmt): ...and not here.  Tidy.
8620         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8621         unknown.
8622
8623 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8624
8625         * Makefile.in: New rule for cprop.o.
8626         * gcse.c: Move constant/copy propagation to cprop.c.
8627         (compute_local_properties): Only handle expression tables.
8628         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8629         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8630         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8631         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8632         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8633         compute_cprop_data, find_used_regs, try_replace_reg,
8634         find_avail_set, cprop_jump, constprop_register, cprop_insn,
8635         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8636         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8637         find_bypass_set, reg_killed_on_edge, bypass_block,
8638         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8639         execute_rtl_cprop, pass_rtl_cprop): Move to...
8640         * cprop.c: ...here.  New file, constant/copy propagation for RTL
8641         moved from gcse.c to here with minor cleanups in duplicated code.
8642
8643 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
8644
8645         * config/i386/i386.c (flag_opts): Fix a typo in
8646         -mavx256-split-unaligned-store.
8647
8648 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
8649
8650         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8651         LIBCALL_VALUE): Remove macros.
8652         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8653         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8654         (h8300_function_value, h8300_libcall_value,
8655         h8300_function_value_regno_p): New functions.
8656
8657 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
8658
8659         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8660
8661 2011-03-28  Jeff Law  <law@redhat.com>
8662
8663         * tree-ssa-threadupdate.c (redirect_edges): Call
8664         create_edge_and_update_destination_phis as needed.
8665         (create_edge_and_update_destination_phis): Accept new BB argument.
8666         All callers updated.
8667         (thread_block): Do not update the profile when threading around
8668         intermediate blocks.
8669         (thread_single_edge): Likewise.
8670         (determine_bb_domination_status): If BB is not a successor of the
8671         loop header, return NONDOMINATING.
8672         (register_jump_thread): Note when we register a jump thread around
8673         an intermediate block.
8674         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8675         (thread_across_edge): Use it.
8676
8677 2011-03-28  Tristan Gingold  <gingold@adacore.com>
8678
8679         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8680         when for_return is 2.
8681
8682 2011-03-28  Jeff Law  <law@redhat.com>
8683
8684         * var-tracking.c (canonicalize_values_mark): Delete unused
8685         lhs assignment.
8686         (canonicalize_values_star, set_variable_part): Likewise.
8687         (clobber_variable_part, delete_variable_part): Likewise.
8688
8689 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8690
8691         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8692
8693 2011-03-28  Martin Jambor  <mjambor@suse.cz>
8694
8695         * tree-inline.c (expand_call_inline): Do not check that destination
8696         node is analyzed.
8697         (optimize_inline_calls): Assert that destination node is analyzed.
8698         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8699         not call tree_lowering_passes.
8700         * cgraph.h (cgraph_analyze_function): Declare.
8701         * cgraphunit.c (cgraph_analyze_function): Make public.
8702
8703 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
8704
8705         * config/sparc/sparc-opts.h: New.
8706         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8707         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8708         (sparc_option_override): Store processor_type enumeration rather
8709         than string in cpu_default.  Remove name and enumeration from
8710         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
8711         without using sparc_select.  Use target_flags_explicit instead of
8712         fpu_option_set.
8713         * config/sparc/sparc.h (enum processor_type): Move to
8714         sparc-opts.h.
8715         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8716         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8717         HeaderInclude entry.
8718         (mcpu=, mtune=): Use Var and Enum.
8719         (sparc_processor_type): New Enum and EnumValue entries.
8720
8721 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8722             Iain Sandoe  <iains@gcc.gnu.org>
8723
8724         PR target/48245
8725         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8726
8727 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8728
8729         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8730         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8731         Insert new statements at it in lieu of STMT.
8732         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8733         * tree-vect-stmts.c (vectorizable_store): Likewise.
8734         (vectorizable_load): Likewise.
8735
8736 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
8737
8738         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8739         (divtf3): Ditto.
8740         (multf3): Ditto.
8741         (subtf3): Ditto.
8742
8743 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8744
8745         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8746         unaligned 256bit load/store.
8747         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8748         (*avx_movdqu<avxmodesuffix>): Likewise.
8749
8750 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8751
8752         PR target/48288
8753         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8754         * config/pa/pa.md (iordi3): Use new predicate in expander.
8755         (iorsi3): Likewise.
8756
8757 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
8758
8759         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
8760         FUNCTION_VALUE_REGNO_P): Remove macros.
8761         * config/mips/mips-protos.h (mips_function_value): Remove.
8762         * config/mips/mips.c (mips_function_value): Rename to...
8763         (mips_function_value_1): ... this. Make static.  Handle receiving
8764         the function type in 'fn_decl_or_type' argument.
8765         (mips_function_value, mips_libcall_value,
8766         mips_function_value_regno_p): New function.
8767         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8768         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8769
8770 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8771
8772         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8773         and -mavx256-split-unaligned-store.
8774         (ix86_option_override_internal): Split 32-byte AVX unaligned
8775         load/store by default.
8776         (ix86_avx256_split_vector_move_misalign): New.
8777         (ix86_expand_vector_move_misalign): Use it.
8778
8779         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8780         -mavx256-split-unaligned-store.
8781
8782         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8783         256bit load/store.  Generate unaligned store on misaligned memory
8784         operand.
8785         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8786         256bit load/store.
8787         (*avx_movdqu<avxmodesuffix>): Likewise.
8788
8789         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8790         -mavx256-split-unaligned-store.
8791
8792 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
8793
8794         PR target/38598
8795         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8796         Update commentary.
8797
8798 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
8799
8800         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8801         opno arguments with an expand_operand.  Use create_input_operand.
8802         (mips_prepare_builtin_target): Delete.
8803         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8804         functions.
8805         (mips_expand_builtin_direct): Use create_output_operand and
8806         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
8807         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
8808         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8809
8810 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
8811
8812         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8813         function.
8814         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8815
8816 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
8817
8818         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8819         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
8820         basic blocks and call commit_edge_insertions directly.
8821         (fixup_abnormal_edges): Move from here to...
8822         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
8823         on the edges and return whether some have actually been inserted.
8824         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8825         compensation code.
8826
8827 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
8828
8829         PR rtl-optimization/48144
8830         * sel-sched-ir.c (merge_history_vect): Factor out from ...
8831         (merge_expr_data): ... here.
8832         (av_set_intersect): Rename to av_set_code_motion_filter.
8833         Update all callers.  Call merge_history_vect when an expression
8834         is found in both sets.
8835         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8836
8837 2011-03-26  Alan Modra  <amodra@gmail.com>
8838
8839         * config/rs6000/predicates.md (word_offset_memref_op): Handle
8840         cmodel medium addresses.
8841         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8842         64-bit gpr loads and stores.
8843         (rs6000_secondary_reload_ppc64): New function.
8844         * config/rs6000/rs6000-protos.h: Declare it.
8845         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8846
8847 2011-03-26  Alan Modra  <amodra@gmail.com>
8848
8849         PR target/47487
8850         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8851         GNU Go in traceback table.
8852
8853 2011-03-25  Richard Henderson  <rth@redhat.com>
8854
8855         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8856         if there are exactly 6 operands.
8857         (set_storage_via_setmem): Similarly.
8858
8859 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8860
8861         * collect2.c (write_c_file_stat): Handle backslash
8862         as right-hand directory separator.
8863         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8864         checking just for slash.
8865         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8866         instead of checking for trailing slash.
8867         * gcc.c (record_temp_file): Use filename_cmp instead
8868         of strcmp.
8869         (do_spec_1): Likewise.
8870         (replace_outfile_spec_function): Likewise.
8871         (is_directory): Use filename_ncmp instead of strncmp.
8872         (print_multilib_info): Likewise.
8873         * gcov.c (find_source): Use filename_cmp instead
8874         instead of strcmp.
8875         (make_gcov_file_name): Fix order of slash/backslash
8876         checks.
8877         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8878         (add_standard_paths): Likewise.
8879         * mips-tfile.c (saber_stop): Handle backslash.
8880         * prefix.c (update_path): Use filename_ncmp instead of
8881         strncmp.
8882         * profile.c (output_location): Use filename_cmp instead
8883         of strcmp.
8884         * read-md.c (handle_toplevel_file): Handle backslash.
8885         * tlink.c (frob_extension):  Likewise.
8886         * tree-cfg.c (same_line_p): Use filename_cmp instead of
8887         strcmp.
8888         * tree-dump.c (dequeue_and_dump): Handle backslash.
8889         * tree.c (get_file_function_name): Likewise.
8890         * gengtype.c (read_input_list): Likewise.
8891         (get_file_realbasename): Likewise.
8892         (get_output_file_with_visibility): Use filename_cmp
8893         instead of strcmp.
8894
8895 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
8896
8897         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8898         case to VFPv1.
8899
8900 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
8901
8902         * fold-const.c (expr_location_or): New function.
8903         (fold_truth_not_expr): Call it.
8904
8905 2011-03-25  Jeff Law  <law@redhat.com>
8906
8907         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8908         va_end.
8909         * c-family/c-common.c (def_fn_type): Likewise.
8910         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8911         * emit-rtl.c (gen_rtvec): Likewise.
8912         * lto/lto-lang.c (def_fn_type): Likewise.
8913
8914 2011-03-25  Richard Guenther  <rguenther@suse.de>
8915
8916         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8917         also generate copies.
8918         (fini_copy_prop): Handle constant values properly.
8919
8920 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
8921
8922         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8923         mode size instead of bitsize with DWARF2_ADDR_SIZE.
8924         (hash_loc_operands, compare_loc_operands): Handle
8925         DW_OP_GNU_entry_value.
8926
8927 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8928
8929         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8930         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8931         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8932         comment and use macro TARGET_64BIT_MS_ABI instead.
8933         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8934         and change default behavior for 32-bit MS_ABI.
8935         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8936         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8937         32-bit, too.
8938         (ix86_cfun_abi): Likewise.
8939         (ix86_maybe_switch_abi): Adjust comment.
8940         (init_cumulative_args): Check for bit-ness in MS_ABI case.
8941         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8942         instead of checking for SYSV_ABI.
8943         (ix86_nsaved_sseregs): Likewise.
8944         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8945         to 16 bytes.
8946         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8947         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8948         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8949         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8950         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8951
8952 2011-03-25  Richard Guenther  <rguenther@suse.de>
8953
8954         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8955         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8956         (verify_gimple): Remove.
8957         * tree-cfg.c (verify_gimple_call): Merge verification
8958         from verify_stmts.
8959         (verify_gimple_phi): Merge verification from verify_stmts.
8960         (verify_gimple_label): New function.
8961         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8962         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8963         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8964         (verify_stmts): Rename to verify_gimple_in_cfg.
8965         (verify_gimple_in_cfg): New function.
8966         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8967         * tree-ssa.c (verify_ssa): Likewise.
8968         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8969
8970 2011-03-25  Richard Guenther  <rguenther@suse.de>
8971
8972         * passes.c (init_optimization_passes): Add FRE pass after
8973         early SRA.
8974
8975 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
8976             Andrew Stubbs  <ams@codesourcery.com>
8977
8978         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8979         for Cortex-A8.
8980         (arm_movdi_vfp_cortexa8): New pattern.
8981         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8982         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8983         instructions when tuning for Cortex-A8.  Set attribute "arch".
8984         * config/arm/arm.md: Move include arm-tune.md up a bit.
8985         (define_attr "arch"): Add "onlya8" and "nota8" values.
8986         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8987
8988 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
8989
8990         PR bootstrap/48282
8991         Revert:
8992         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8993
8994         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8995         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
8996         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8997         * passes.c (init_optimization_passes): Move
8998         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8999
9000 2011-03-25  Kai Tietz  <ktietz@redhat.com>
9001
9002         * c-typeck.c (comptypes_internal): Replace target
9003         hook call of comp_type_attributes by version in tree.c file.
9004         * gimple.c (gimple_types_compatible_p_1): Likewise.
9005         * tree-ssa.c (useless_type_conversion_p): Likewise.
9006         * tree.c (build_type_attribute_qual_variant): Likewise.
9007         (attribute_value_equal): New static helper function.
9008         (comp_type_attributes): New function.
9009         (merge_attributes): Use attribute_value_equal for comparison.
9010         (attribute_list_contained): Likewise.
9011         * tree.h (comp_type_attributes): New prototype.
9012
9013 2011-03-25  Richard Guenther  <rguenther@suse.de>
9014
9015         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
9016         of complex types at -O0.
9017         (verify_gimple_assign_binary): Likewise.
9018         (verify_gimple_assign_ternary): Likewise.
9019
9020 2011-03-24  Mark Wielaard  <mjw@redhat.com>
9021
9022         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
9023         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
9024
9025 2011-03-24  Mark Wielaard  <mjw@redhat.com>
9026
9027         PR debug/48041
9028         * dwarf2out.c (output_abbrev_section): Only write table when
9029         abbrev_die_table_in_use > 1.
9030
9031 2011-02-24  Richard Henderson  <rth@redhat.com>
9032
9033         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
9034         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
9035         (alpha_expand_unaligned_load_words): Use extql.
9036         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
9037         (emit_insxl): Handle all modes for consistency.
9038
9039 2011-02-24  Richard Henderson  <rth@redhat.com>
9040
9041         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
9042         (alpha_expand_unaligned_load): Likewise.
9043         (alpha_expand_unaligned_store): Likewise.
9044         (alpha_expand_unaligned_load_words): Likewise.
9045         (alpha_expand_unaligned_store_words): Likewise.
9046         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
9047         (alpha_split_lock_test_and_set_12): Likewise.
9048         (print_operand, alpha_fold_builtin_extxx): Likewise.
9049         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
9050         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
9051         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
9052         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
9053         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
9054         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
9055         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
9056         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
9057         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
9058         (extwl, extll, extql): Similarly.
9059         (inswh, inslh, insqh): Similarly.
9060         (mskbl, mskwl, mskll, mskql): Similarly.
9061         (mskwh, msklh, mskqh): Similarly.
9062
9063 2011-02-24  Richard Henderson  <rth@redhat.com>
9064
9065         * config/alpha/alpha.md (attribute isa): Add er, ner.
9066         (attribute enabled): Handle them.
9067         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
9068
9069 2011-02-24  Richard Henderson  <rth@redhat.com>
9070
9071         * config/alpha/alpha.md (attribute isa): Add vms.
9072         (attribute enabled): Handle it.
9073         (*movsf): Merge *movsf_{nofix,fix,nofp}.
9074         (*movdf): Merge *movdf_{nofix,fix,nofp}.
9075         (*movtf): Rename from *movtf_internal for consistency.
9076         (*movsi): Merge with *movsi_nt_vms.
9077         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
9078         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
9079         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
9080         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
9081
9082 2011-02-24  Richard Henderson  <rth@redhat.com>
9083
9084         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
9085         (extendqisi2, extendhisi2): Likewise.
9086         (extendqidi2): Simplify BWX/non-BWX expansions.
9087         (extendhidi2): Similarly.
9088
9089 2011-02-24  Richard Henderson  <rth@redhat.com>
9090
9091         * config/alpha/alpha.md (attribute isa): New.
9092         (attribute enabled): New.
9093         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
9094         (zero_extendqisi2, zero_extendqidi2): Similarly.
9095         (zero_extendhisi2, zero_extendhidi2): Similarly.
9096         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
9097
9098 2011-02-24  Richard Henderson  <rth@redhat.com>
9099
9100         * config/alpha/predicates.md (input_operand): Revert last change;
9101         update comment to mention 32-bit VMS rather than Windows.
9102
9103 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9104
9105         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9106         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
9107         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9108         * passes.c (init_optimization_passes): Move
9109         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9110
9111 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
9112
9113         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
9114
9115 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
9116
9117         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
9118         correctly.
9119
9120 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
9121
9122         PR debug/48204
9123         * simplify-rtx.c (simplify_const_unary_operation): Call
9124         real_convert when changing mode class with FLOAT_EXTEND.
9125
9126 2011-03-24  Nick Clifton  <nickc@redhat.com>
9127
9128         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
9129         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9130         * config/rx/rx.c (rx_option_override): Set align_jumps,
9131         align_loops and align_labels if not set by the user.
9132         (rx_align_for_label): New function.
9133         (rx_max_skip_for_label): New function.
9134         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
9135         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
9136         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
9137         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
9138         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
9139
9140 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9141
9142         PR rtl-optimization/48263
9143         * optabs.c (expand_binop_directly): Reinstate convert_modes code
9144         and original commutative_p handling.  Use maybe_gen_insn.
9145
9146 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9147
9148         * reload.c (find_reloads_subreg_address): Add address_reloaded
9149         parameter and return true there if the full address has been
9150         reloaded.
9151         (find_reloads_toplev): Pass address_reloaded flag.
9152         (find_reloads_address_1): Don't use address_reloaded parameter.
9153
9154 2011-03-24  Jeff Law  <law@redhat.com>
9155
9156         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
9157         unused variable "ann".
9158         (remove_unused_locals): Likewise.
9159
9160         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
9161         statement.
9162
9163         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
9164         after it is freed.
9165
9166 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9167
9168         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
9169         for invalid symbolic addresses.
9170         (s390_secondary_reload): Don't use s390_check_symref_alignment for
9171         larl operands.
9172
9173 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
9174
9175         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
9176         the argument in calls to fold_truth_not_expr.
9177
9178 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9179
9180         * tree.c (record_node_allocation_statistics): New function.
9181         (make_node_stat, copy_node_stat, build_string): Call it.
9182         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
9183         (build1_stat, build_omp_clause): Likewise.
9184
9185 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9186
9187         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
9188         last commit.
9189
9190 2011-03-24  Richard Guenther  <rguenther@suse.de>
9191
9192         PR tree-optimization/48271
9193         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
9194         blocks that still exist.
9195
9196 2011-03-24  Richard Guenther  <rguenther@suse.de>
9197
9198         PR tree-optimization/48270
9199         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
9200         not free datarefs before ddrs.
9201
9202 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
9203
9204         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
9205         from the address built for a reference with variable offset.
9206
9207 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
9208
9209         PR target/48237
9210         * config/i386/i386.md (*movdf_internal_rex64): Do not split
9211         alternatives that can be handled with movq or movabsq insn.
9212         (*movdf_internal): Disable for !TARGET_64BIT.
9213         (*movdf_internal_nointeger): Ditto.
9214         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
9215
9216 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9217
9218         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9219         (FUNCTION_ARG_ADVANCE): Likewise.
9220         * tm.texi.in: Change references to them to hook references.
9221         * tm.texi: Regenerate.
9222         * targhooks.c (default_function_arg): Eliminate check for target macro.
9223         (default_function_incoming_arg): Likewise.
9224         (default_function_arg_advance): Likewise.
9225         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9226         (function_arg_advance): Likewise.
9227         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9228
9229 2011-03-24  Richard Guenther  <rguenther@suse.de>
9230
9231         PR middle-end/48269
9232         * tree-object-size.c (addr_object_size): Do not double-account
9233         for MEM_REF offsets.
9234
9235 2011-03-24  Diego Novillo  <dnovillo@google.com>
9236
9237         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
9238         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
9239         (lto_input_data_block): Move from lto-opts.c.  Make extern.
9240         Update all users.
9241         (lto_input_string): Rename from input_string.  Make extern.
9242         Update all users.
9243         * lto-streamer-out.c (lto_output_string_with_length): Rename from
9244         output_string_with_length.
9245         Output 0 to indicate a non-NULL string.  Update all callers to
9246         not emit 0.
9247         (lto_output_string): Rename from output_string.  Make extern.
9248         Update all users.
9249         (lto_output_decl_state_streams): Make extern.
9250         (lto_output_decl_state_refs): Make extern.
9251         * lto-streamer.h (lto_input_string): Declare.
9252         (lto_input_data_block): Declare.
9253         (lto_output_string): Declare.
9254         (lto_output_string_with_length): Declare.
9255         (lto_output_decl_state_streams): Declare.
9256         (lto_output_decl_state_refs): Declare.
9257
9258 2011-03-24  Richard Guenther  <rguenther@suse.de>
9259
9260         PR tree-optimization/46562
9261         * tree.c (build_invariant_address): New function.
9262         * tree.h (build_invariant_address): Declare.
9263         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
9264         a renamed function moved ...
9265         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
9266         Take valueization callback parameter.
9267         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
9268         * gimple-fold.h: New file.
9269         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
9270         (ccp_fold, fold_const_aggregate_ref,
9271         fold_ctor_reference, fold_nonarray_ctor_reference,
9272         fold_array_ctor_reference, fold_string_cst_ctor_reference,
9273         get_base_constructor): Move ...
9274         * gimple-fold.c: ... here.
9275         (gimple_fold_stmt_to_constant_1): New function
9276         split out from ccp_fold.  Take a valueization callback parameter.
9277         Valueize all operands.
9278         (gimple_fold_stmt_to_constant): New wrapper function.
9279         (fold_const_aggregate_ref_1): New function split out from
9280         fold_const_aggregate_ref.  Take a valueization callback parameter.
9281         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
9282         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
9283         invariant POINTER_PLUS_EXPRs to invariant form.
9284         (vn_valueize): New function.
9285         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
9286         * tree-vrp.c (vrp_valueize): New function.
9287         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
9288         to fold statements to constants.
9289         * tree-ssa-pre.c (eliminate): Properly guard propagation of
9290         function declarations.
9291         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
9292         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
9293
9294 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9295
9296         * config/h8300/predicates.md (jump_address_operand): Fix register
9297         mode check.
9298
9299 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
9300
9301         * doc/invoke.texi (max-stores-to-sink): Document.
9302         * params.h (MAX_STORES_TO_SINK): Define.
9303         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
9304         if either vectorization or if-conversion is disabled.
9305         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
9306         tree-vect-data-refs.c vect_equal_offsets.
9307         (dr_equal_offsets_p): New function.
9308         (find_data_references_in_bb): Remove static.
9309         * tree-data-ref.h (find_data_references_in_bb): Declare.
9310         (dr_equal_offsets_p): Likewise.
9311         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
9312         (vect_drs_dependent_in_basic_block): Update calls to
9313         vect_equal_offsets.
9314         (vect_check_interleaving): Likewise.
9315         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
9316         (cond_if_else_store_replacement): Rename to...
9317         (cond_if_else_store_replacement_1): ... this.  Change arguments and
9318         documentation.
9319         (cond_if_else_store_replacement): New function.
9320         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
9321         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
9322
9323 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
9324
9325         PR target/46934
9326         * config/arm/arm.md (casesi): Use the gen_int_mode() function
9327         to subtract lower bound instead of GEN_INT().
9328
9329 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
9330
9331         PR other/48179
9332         PR other/48221
9333         PR other/48234
9334         * doc/extend.texi (Alignment): Move section to match order in TOC.
9335         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
9336         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
9337
9338 2011-03-23  Jeff Law  <law@redhat.com>
9339
9340         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
9341         before removing the edge.
9342
9343         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
9344         it may have been freed by redirect_branch_edge or
9345         redirect_edge_succ_nodup.
9346
9347 2011-03-23  Richard Guenther  <rguenther@suse.de>
9348
9349         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
9350         (check_va_list_escapes): Likewise.
9351         (check_all_va_list_escapes): Likewise.
9352
9353 2011-03-23  Richard Guenther  <rguenther@suse.de>
9354
9355         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
9356         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
9357         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
9358         (alias.o): Likewise.
9359         (ipa-type-escape.o): Remove.
9360         (ipa-struct-reorg.o): Likewise.
9361         (GTFILES): Remove ipa-struct-reorg.c.
9362         * alias.c: Do not include ipa-type-escape.h.
9363         * tree-ssa-alias.c: Likewise.
9364         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
9365         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
9366         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
9367         and ipa-type-escape passes.
9368         * tree-pass.h (pass_ipa_type_escape): Remove.
9369         (pass_ipa_struct_reorg): Likewise.
9370         * ipa-struct-reorg.h: Remove.
9371         * ipa-struct-reorg.c: Likewise.
9372         * ipa-type-escape.h: Likewise.
9373         * ipa-type-escape.c: Likewise.
9374         * doc/invoke.texi (-fipa-struct-reorg): Remove.
9375         (--param struct-reorg-cold-struct-ratio): Likewise.
9376         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9377         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9378         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
9379
9380 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9381
9382         * config/s390/2084.md: Enable all insn reservations also for z9_ec
9383         cpu attribute value.
9384         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
9385         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
9386         * config/s390/s390.c (processor_flags_table): New constant array.
9387         (s390_handle_arch_option): Remove.
9388         (s390_handle_option): Remove s390_handle_arch_option invocations
9389         and OPT_mwarn_framesize_ handling.
9390         (s390_option_override): Remove s390_handle_arch_option invocation.
9391         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
9392         warnings.
9393         * config/s390/s390.md (cpu attribute): Add z9_ec value.
9394         * config/s390/s390.opt (s390_tune, s390_arch)
9395         (march=): Replace s390_arch_option enum and values with
9396         processor_type.  Set variable name to s390_arch.  Set
9397         initialization value.
9398         (mtune=): Replace s390_arch_option with processor_type.  Set
9399         variable name to s390_tune.  Set initialization value.
9400
9401 2011-03-23  Julian Brown  <julian@codesourcery.com>
9402
9403         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
9404         accesses which are not naturally aligned.
9405
9406 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
9407
9408         PR target/47553
9409         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9410
9411 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
9412
9413         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9414         parameter from "int" to "enum insn_code".
9415         (expand_operand_type): New enum.
9416         (expand_operand): New structure.
9417         (create_expand_operand): New function.
9418         (create_fixed_operand, create_output_operand): Likewise
9419         (create_input_operand, create_convert_operand_to): Likewise.
9420         (create_convert_operand_from, create_address_operand): Likewise.
9421         (create_integer_operand): Likewise.
9422         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9423         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9424         (expand_insn, expand_jump_insn): Likewise.
9425         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9426         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9427         (expand_movstr, expand_builtin___clear_cache): Likewise.
9428         (expand_builtin_lock_release): Likewise.
9429         * explow.c (allocate_dynamic_stack_space): Likewise.
9430         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
9431         and use the default handling in that case.
9432         * expmed.c (check_predicate_volatile_ok): Delete.
9433         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9434         (emit_cstore): Likewise.
9435         * expr.c (emit_block_move_via_movmem): Likewise.
9436         (set_storage_via_setmem, expand_assignment): Likewise.
9437         (emit_storent_insn, try_casesi): Likewise.
9438         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
9439         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9440         (expand_vec_shift_expr, expand_binop_directly): Likewise.
9441         (expand_twoval_unop, expand_twoval_binop): Likewise.
9442         (expand_unop_direct, emit_indirect_jump): Likewise.
9443         (emit_conditional_move, vector_compare_rtx): Likewise.
9444         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9445         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9446         (expand_sync_lock_test_and_set): Likewise.
9447         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
9448         (emit_unop_insn): Likewise.
9449         (expand_copysign_absneg): Change icode to an insn_code.
9450         (create_convert_operand_from_type): New function.
9451         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9452         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9453         (expand_insn, expand_jump_insn): Likewise.
9454         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9455         than const_int_operand for operand 2.
9456
9457 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9458
9459         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9460         if possible.
9461
9462 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9463
9464         * emit-rtl.c (emit_pattern_before_noloc): New function.
9465         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9466         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9467         (emit_pattern_after_noloc): New function.
9468         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9469         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9470
9471 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9472
9473         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9474         (__ffsDI2): Likewise.
9475
9476 2011-03-22  Richard Henderson  <rth@redhat.com>
9477
9478         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9479         of !TARGET_ABI_OPEN_VMS.
9480         (alpha_trampoline_init, alpha_start_function): Likewise.
9481         (alpha_expand_epilogue, alpha_file_start): Likewise.
9482         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9483         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9484         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9485         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9486         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9487
9488 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9489
9490         * config/s390/s390-opts.h: New.
9491         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9492         s390_arch_flags, s390_warn_framesize, s390_stack_size,
9493         s390_stack_guard): Remove.
9494         (s390_handle_arch_option): Return void.  Take enum
9495         s390_arch_option value instead of string and searching array.
9496         (s390_handle_option): Don't assert that global structures are in
9497         use.  Access variables via opts pointer.  Use error_at.  Don't use
9498         sscanf for -mstack-guard= or -mstack-size=.  Update call to
9499         s390_handle_arch_option.
9500         (s390_option_override): Update call to s390_handle_arch_option.
9501         (s390_emit_prologue): Use %d format for s390_stack_size in
9502         diagnostic.  Use %wd for HOST_WIDE_INT.
9503         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9504         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9505         * config/s390/s390.opt (config/s390/s390-opts.h): New
9506         HeaderInclude entry.
9507         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9508         s390_arch_flags, s390_warn_framesize): New Variable entries.
9509         (s390_arch_option): New Enum and EnumValue entries.
9510         (march=): Use Enum instead of Var.
9511         (mstack-guard=, mstack-size=): Use UInteger and Var.
9512         (mtune=): Use Enum.
9513
9514 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9515
9516         * config/score/score.c (score_handle_option): Don't assert that
9517         global structures are in use.  Access target_flags via opts
9518         pointer.  Use value of -march= option to determine target_flags
9519         settings.
9520         * config/score/score.opt (march=): Use Enum.
9521         (score_arch): New Enum and EnumValue entries.
9522
9523 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9524
9525         * config/mep/mep.c (option_mtiny_specified): Remove.
9526         (mep_option_override): Move register handling for -mivc2 from
9527         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
9528         instead of option_mtiny_specified.
9529         (mep_handle_option): Access target_flags via opts pointer.  Don't
9530         assert that global structures are in use.  Defer part of -mivc2
9531         handling and move it to mep_option_override.
9532         * config/mep/mep.opt (IVC2): New Mask entry.
9533         (mivc2): Use Var and Defer instead of Mask.
9534
9535 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9536
9537         * config/v850/v850-opts.h: New.
9538         * config/v850/v850.c (small_memory): Replace with
9539         small_memory_physical_max array.  Make that array static const.
9540         (v850_handle_memory_option): Take integer value of argument.  Take
9541         gcc_options pointer, option text and location.  Return void.
9542         Update for changes to small memory structures.
9543         (v850_handle_option): Access target_flags via opts pointer.  Don't
9544         assert that global structures are in use.  Update calls to
9545         v850_handle_memory_option.
9546         (v850_encode_data_area): Update references to small memory settings.
9547         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9548         (enum small_memory_type): Move to v850-opts.h.
9549         * config/v850/v850.opt (config/v850/v850-opts.h): New
9550         HeaderInclude entry.
9551         (small_memory_max): New Variable entry.
9552         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
9553         (mtda, mzda): Likewise.
9554
9555 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9556
9557         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9558         pointer.  Don't assert that global structures are in use.
9559
9560 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9561
9562         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9563         via opts pointer.  Don't assert that global structures are in use.
9564
9565 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9566
9567         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9568         (munix=93): Use Var.
9569         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9570         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9571         * config/pa/pa-opts.h: New.
9572         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9573         (pa_handle_option): Don't assert that global structures are in
9574         use.  Access target_flags via opts pointer.  Don't handle
9575         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9576         OPT_munix_98 here.
9577         (pa_option_override): Handle deferred OPT_mfixed_range_.
9578
9579 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9580
9581         * config/mn10300/mn10300-opts.h: New.
9582         * config/mn10300/mn10300.c (mn10300_processor,
9583         mn10300_tune_string): Remove.
9584         (mn10300_handle_option): Don't assert that global structures are
9585         in use.  Access mn10300_processor via opts pointer.  Don't handle
9586         OPT_mtune_ here.
9587         * config/mn10300/mn10300.h (enum processor_type): Move to
9588         mn10300-opts.h.
9589         (mn10300_processor): Remove.
9590         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9591         HeaderInclude entry.
9592         (mn10300_processor): New Variable entry.
9593         (mtune=): Use Var.
9594
9595 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9596
9597         * config/microblaze/microblaze.c: Don't include opts.h.
9598         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9599         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9600         (mno-clearbss): Use Var and Warn.
9601
9602 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9603
9604         * config/m32r/m32r-opts.h: New.
9605         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9606         (m32r_handle_option): Don't assert that global structures are in
9607         use.  Access target_flags and m32r_cache_flush_func via opts
9608         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
9609         OPT_mno_flush_trap here.
9610         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9611         include of m32r-opts.h.
9612         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9613         HeaderInclude entry.
9614         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9615         (mmodel=): Use Enum and Var.
9616         (m32r_model): New Enum and EnumValue entries.
9617         (mno-flush-trap): Use Var.
9618         (msdata=): Use Enum and Var.
9619         (m32r_sdata): New Enum and EnumValue entries.
9620
9621 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9622
9623         * config/m32c/m32c.c: Don't include opts.h.
9624         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9625         m32c_handle_option): Remove.
9626         (m32c_option_override): Check global_options_set.x_target_memregs
9627         instead of target_memregs_set.
9628         * config/m32c/m32c.h (target_memregs): Remove.
9629         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9630         variable.
9631
9632 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9633
9634         * config/iq2000/iq2000-opts.h: New.
9635         * config/iq2000/iq2000.c: Don't include opts.h.
9636         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
9637         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
9638         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9639         HeaderInclude entry.
9640         (iq2000_tune): New Variable entry.
9641         (march=): Add comment.  Use Enum.
9642         (iq2000_arch): New Enum and EnumValue entries.
9643         (mcpu=): Use Enum and Var.
9644         (iq2000_tune): New Enum and EnumValue entries.
9645
9646 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9647
9648         * config/ia64/ia64-opts.h: New.
9649         * config/ia64/ia64.c (ia64_tune): Remove.
9650         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9651         here.  Use error_at.
9652         (ia64_option_override): Handle deferred OPT_mfixed_range_.
9653         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9654         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9655         HeaderInclude entry.
9656         (ia64_tune): New Variable entry.
9657         (mfixed-range=): Use Defer and Var.
9658         (mtune=): Use Enum and Var.
9659         (ia64_tune): New Enum and EnumValue entries.
9660
9661 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9662
9663         * config/frv/frv-opts.h: New.
9664         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9665         frv-opts.h.
9666         (frv_cpu_type): Remove.
9667         * config/frv/frv.c: Don't include opts.h.
9668         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9669         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9670         (frv_cpu_type): New Variable entry.
9671         (frv_cpu): New Enum and EnumValue entries.
9672
9673 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9674
9675         * config/cris/cris.c (cris_handle_option): Access target_flags via
9676         opts pointer.  Don't assert that global structures are in use.
9677         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9678         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9679
9680 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9681
9682         * config/bfin/bfin-opts.h: New.
9683         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9684         bfin_si_revision, bfin_workarounds): Remove.
9685         (bfin_cpus): Make static const.
9686         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9687         not bfin_lib_id_given.
9688         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
9689         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9690         pointer. Use error_at.  Don't assert that global structures are in use.
9691         * config/bfin/bfin.h: Include bfin-opts.h.
9692         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9693         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9694         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9695         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9696         entries.
9697
9698 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9699
9700         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9701         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9702         or -msoft-float here.
9703         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9704         -msoft-float and -mhard-float.
9705         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9706         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9707         msoft-float.
9708         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9709         -msoft-float.
9710         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9711         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9712         not mhard-float.
9713         (LIBGCC_SPEC): Don't handle -msoft-float.
9714         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9715         -mhard-float.
9716         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9717         msoft-float.
9718         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9719         -mfloat-abi=*, not -msoft-float and -mhard-float.
9720         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9721         -msoft-float.
9722         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9723         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9724         mhard-float and msoft-float.
9725         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9726         mfloat-abi=soft in comments, not mhard-float and msoft-float.
9727         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9728         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9729         mhard-float.
9730         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9731         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9732         msoft-float.
9733         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9734         not mhard-float.
9735         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9736         not msoft-float.
9737
9738 2011-03-22  Richard Henderson  <rth@redhat.com>
9739
9740         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9741         TARGET_ABI_WINDOWS_NT.
9742         (alpha_output_function_end_prologue): Likewise.
9743         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9744         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9745         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9746         (trap, *movsi_nt_vms): Likewise.
9747         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9748         (*tablejump_osf_nt_internal): Remove.
9749         * config/alpha/predicates.md (input_operand): Only test Pmode.
9750
9751 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9752
9753         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9754         via opts pointer.  Use error_at.  Don't assert that global
9755         structures are in use.
9756
9757 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9758
9759         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9760         (ix86_handle_option): Access ix86_isa_flags and
9761         ix86_isa_flags_explicit via opts pointer.  Don't assert that
9762         global structures are in use.
9763         (ix86_function_specific_save, ix86_function_specific_restore):
9764         Update ix86_isa_flags_explicit field name.
9765         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
9766         (ix86_isa_flags_explicit): Rename TargetSave entry to
9767         x_ix86_isa_flags_explicit.
9768
9769 2011-03-22  Richard Henderson  <rth@redhat.com>
9770
9771         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9772         (alpha_option_override, direct_return): Likewise.
9773         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9774         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9775         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9776         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9777         (alpha_expand_epilogue, alpha_end_function): Likewise.
9778         (alpha_init_libfuncs): Likewise.
9779         (struct machine_function): Remove unicosmk members.
9780         (print_operand) ['t']: Remove.
9781         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9782         unicosmk_output_module_name, unicosmk_output_common,
9783         current_section_align, unicosmk_output_text_section_asm_op,
9784         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9785         unicosmk_section_type_flags, unicosmk_unique_section,
9786         unicosmk_asm_named_section, unicosmk_insert_attributes,
9787         unicosmk_output_align, unicosmk_defer_case_vector,
9788         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9789         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9790         unicosmk_output_ssib, unicosmk_add_call_info_word,
9791         unicosmk_extern_head, unicosmk_output_default_externs,
9792         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9793         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9794         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9795         * config/alpha/alpha-protos.h: Update.
9796         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9797         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9798         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9799         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9800         (*mulsi_se, mulvsi3): Likewise.
9801         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9802         (*divmodsi_internal, call, call_value, realign): Likewise.
9803         (moddi3, umoddi3): Likewise; remove duplicate expander.
9804         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9805         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9806         (*movdi_nofix): Remove r/U alternative.
9807         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9808         * config/alpha/constraints.md ("U"): Remove.
9809         * config/alpha/predicates.md (call_operand"): Don't test
9810         TARGET_ABI_UNICOSMK.
9811
9812 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9813
9814         * target.def (handle_option): Take gcc_options and
9815         cl_decoded_option pointers and location_t.
9816         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9817         * doc/tm.texi: Regenerate.
9818         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9819         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9820         * lto-opts.c (lto_reissue_options): Generate option structure for
9821         targetm.handle_option call.
9822         * opts.c (target_handle_option): Update call to
9823         targetm.handle_option.  Remove assertions about values now passed
9824         down to hook.
9825         * targhooks.c (default_target_handle_option): New.
9826         * targhooks.h (default_target_handle_option): Declare.
9827         * config/alpha/alpha.c: Include opts.h.
9828         (alpha_handle_option): Update to new hook interface.
9829         * config/arm/arm.c: Include opts.h.
9830         (arm_handle_option): Update to new hook interface.
9831         * config/arm/t-arm (arm.o): Update dependencies.
9832         * config/bfin/bfin.c: Include opts.h.
9833         (bfin_handle_option): Update to new hook interface.
9834         * config/cris/cris.c: Include opts.h.
9835         (cris_handle_option): Update to new hook interface.
9836         * config/frv/frv.c: Include opts.h.
9837         (frv_handle_option): Update to new hook interface.
9838         * config/i386/i386.c: Include opts.h.
9839         (ix86_handle_option): Update to new hook interface.
9840         (ix86_valid_target_attribute_inner_p): Generate option structure
9841         for call to ix86_handle_option.
9842         * config/i386/t-i386 (i386.o): Update dependencies.
9843         * config/ia64/ia64.c: Include opts.h.
9844         (ia64_handle_option): Update to new hook interface.
9845         * config/ia64/t-ia64 (ia64.o): Update dependencies.
9846         * config/iq2000/iq2000.c: Include opts.h.
9847         (iq2000_handle_option): Update to new hook interface.
9848         * config/m32c/m32c.c: Include opts.h.
9849         (m32c_handle_option): Update to new hook interface.
9850         * config/m32r/m32r.c: Include opts.h.
9851         (m32r_handle_option): Update to new hook interface.
9852         * config/m68k/m68k.c: Include opts.h.
9853         (m68k_handle_option): Update to new hook interface.
9854         * config/mep/mep.c: Include opts.h.
9855         (mep_handle_option): Update to new hook interface.
9856         * config/microblaze/microblaze.c: Include opts.h.
9857         (microblaze_handle_option): Update to new hook interface.
9858         * config/mips/mips.c: Include opts.h.
9859         (mips_handle_option): Update to new hook interface.
9860         * config/mn10300/mn10300.c: Include opts.h.
9861         (mn10300_handle_option): Update to new hook interface.
9862         * config/pa/pa.c: Include opts.h.
9863         (pa_handle_option): Update to new hook interface.
9864         * config/pdp11/pdp11.c: Include opts.h.
9865         (pdp11_handle_option): Update to new hook interface.
9866         * config/rs6000/rs6000.c: Include opts.h.
9867         (rs6000_handle_option): Update to new hook interface.
9868         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9869         * config/rx/rx.c: Include opts.h.
9870         (rx_handle_option): Update to new hook interface.
9871         * config/s390/s390.c: Include opts.h.
9872         (s390_handle_option): Update to new hook interface.
9873         * config/score/score.c: Include opts.h.
9874         (score_handle_option): Update to new hook interface.
9875         * config/sh/sh.c: Include opts.h.
9876         (sh_handle_option): Update to new hook interface.
9877         * config/sparc/sparc.c: Include opts.h.
9878         (sparc_handle_option): Update to new hook interface.
9879         * config/v850/v850.c: Include opts.h.
9880         (v850_handle_option): Update to new hook interface.
9881
9882 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9883
9884         * gcc.c (driver_unknown_option_callback): Only permit and save
9885         unknown -Wno- options.
9886         (driver_wrong_lang_callback): Save options directly instead of via
9887         driver_unknown_option_callback.
9888
9889 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
9890
9891         * combine.c (simplify_set): Try harder to find the best CC mode when
9892         simplifying a nested COMPARE on the RHS.
9893
9894 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9895
9896         * config/alpha/gnu.h: Remove.
9897         * config/arc: Remove directory.
9898         * config/arm/netbsd.h: Remove.
9899         * config/arm/t-pe: Remove.
9900         * config/crx: Remove directory.
9901         * config/i386/netbsd.h: Remove.
9902         * config/m68hc11: Remove directory.
9903         * config/m68k/uclinux-oldabi.h: Remove.
9904         * config/mcore/mcore-pe.h: Remove.
9905         * config/mcore/t-mcore-pe: Remove.
9906         * config/netbsd-aout.h: Remove.
9907         * config/rs6000/gnu.h: Remove.
9908         * config/sh/sh-symbian.h: Remove.
9909         * config/sh/symbian-base.c: Remove.
9910         * config/sh/symbian-c.c: Remove.
9911         * config/sh/symbian-cxx.c: Remove.
9912         * config/sh/symbian-post.h: Remove.
9913         * config/sh/symbian-pre.h: Remove.
9914         * config/sh/t-symbian: Remove.
9915         * config/svr3.h: Remove.
9916         * config/vax/netbsd.h: Remove.
9917         * config.build: Don't handle i[34567]86-*-pe.
9918         * config.gcc: Remove handling of deprecations for most deprecated
9919         targets.
9920         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9921         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9922         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9923         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9924         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9925         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9926         Remove cases.
9927         * config.host: Don't handle i[34567]86-*-pe.
9928         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9929         (ASM_SPEC32): Don't handle -mcall-gnu.
9930         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9931         -mcall-gnu.
9932         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9933         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9934         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9935         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9936         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9937         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9938         conditional on SYMBIAN.
9939         * configure.ac: Don't handle powerpc*-*-gnu*.
9940         * configure: Regenerate.
9941         * doc/extend.texi (interrupt attribute): Don't mention CRX.
9942         * doc/install-old.texi (m6811, m6812): Don't mention.
9943         * doc/install.texi (arc-*-elf*): Don't document multilib option.
9944         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9945         (m68k-uclinuxoldabi): Don't mention.
9946         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9947         Remove.
9948         (-mcall-gnu): Remove.
9949         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9950         families): Remove constraint documentation.
9951
9952 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
9953
9954         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9955         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9956         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9957
9958 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9959
9960         PR target/48226
9961         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9962         vector when peeking at the next token for vector, don't expand the
9963         keywords.
9964
9965 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
9966
9967         * config/avr/avr-protos.h (expand_epilogue): Change prototype
9968         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9969         * config/avr/avr.c (init_cumulative_args)
9970         (avr_function_arg_advance): Use it.
9971         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9972         sibcall epilogues.
9973         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9974         (avr_function_ok_for_sibcall): ...this new function.
9975         (avr_lookup_function_attribute1): New static Function.
9976         (avr_naked_function_p, interrupt_function_p)
9977         (signal_function_p, avr_OS_task_function_p)
9978         (avr_OS_main_function_p): Use it.
9979         * config/avr/avr.md ("sibcall", "sibcall_value")
9980         ("sibcall_epilogue"): New expander.
9981         ("*call_insn", "*call_value_insn"): New insn.
9982         ("call_insn", "call_value_insn"): Remove
9983         ("call", "call_value", "epilogue"): Change expander to handle
9984         sibling calls.
9985
9986 2011-03-21  Nick Clifton  <nickc@redhat.com>
9987
9988         * doc/invoke.texi (Overall Options): Move closing brace to end of
9989         options list.
9990         (Optimization Options): Add missing @gol.
9991         (Directory Options): Likewise.
9992         (i386 and x86-64 Options): Likewise.
9993         (RS6000 and PowerPC Options): Likewise.
9994         (i386 and x86-64 Windows Options): Likewise.
9995         (V850 Options): Add text missing from descriptions.
9996
9997 2011-03-22  Richard Henderson  <rth@redhat.com>
9998
9999         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
10000         (avr_incoming_return_addr_rtx): New.
10001         (emit_push_byte): New.
10002         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
10003         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
10004         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
10005         (emit_pop_byte): New.
10006         (expand_epilogue): Use it.  Pop frame pointer by bytes.
10007         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
10008         (INCOMING_RETURN_ADDR_RTX): New.
10009         (INCOMING_FRAME_SP_OFFSET): New.
10010         (ARG_POINTER_CFA_OFFSET): New.
10011         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
10012         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
10013         (pophi): Remove.
10014
10015         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
10016
10017 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
10018
10019         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10020         (FUNCTION_ARG_ADVANCE): Likewise.
10021         * tm.texi.in: Change references to them to hook references.
10022         * tm.texi: Regenerate.
10023         * targhooks.c (default_function_arg): Eliminate check for target
10024         macro.
10025         (default_function_incoming_arg): Likewise.
10026         (default_function_arg_advance): Likewise.
10027         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10028         (function_arg_advance): Likewise.
10029         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10030
10031 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
10032
10033         * tree.c (build_call_1): New function.
10034         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
10035
10036 2011-03-22  Richard Guenther  <rguenther@suse.de>
10037
10038         PR tree-optimization/48228
10039         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
10040         for single-arg PHIs.
10041
10042 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
10043
10044         PR rtl-optimization/48143
10045         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
10046         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
10047         sse2_cvtps2pd): Likewise.
10048
10049 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10050
10051         * recog.c (canonicalize_change_group): Use validate_unshare_change.
10052
10053 2011-03-22  Richard Guenther  <rguenther@suse.de>
10054
10055         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
10056         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
10057         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
10058         and REALIGN_LOAD_EXPR.
10059         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
10060         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
10061         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
10062         DOT_PROD_EXPR case ...
10063         (expand_expr_real_2): ... here.
10064         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
10065         and REALIGN_LOAD_EXPR.
10066         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
10067         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
10068         (vect_create_epilog_for_reduction): Likewise.
10069         (vectorizable_reduction): Likewise.
10070         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
10071         * tree-vect-stmts.c (vectorizable_load): Likewise.
10072
10073 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
10074
10075         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
10076
10077 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10078
10079         * config/s390/s390.c (s390_delegitimize_address): Fix offset
10080         handling for PLTOFF/GOTOFF.
10081
10082 2011-03-22  Nick Clifton  <nickc@redhat.com>
10083
10084         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
10085         trailing backslash from the end of the macro definition.
10086
10087 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10088
10089         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
10090         and PLT unspecs.
10091
10092 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
10093
10094         * expr.h (prepare_operand): Move to...
10095         * optabs.h (prepare_operand): ...here and change the insn code
10096         parameter from "int" to "enum insn_code".
10097         (insn_operand_matches): Declare.
10098         * expr.c (init_expr_target): Use insn_operand_matches.
10099         (compress_float_constant): Likewise.
10100         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
10101         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
10102         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
10103         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
10104         Likewise.
10105         (gen_cond_trap): Likewise.
10106         (prepare_operand): Likewise.  Change icode to an insn_code.
10107         (insn_operand_matches): New function.
10108         * reload.c (find_reloads_address_1): Use insn_operand_matches.
10109         * reload1.c (gen_reload): Likewise.
10110         * targhooks.c (default_secondary_reload): Likewise.
10111
10112 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
10113
10114         * config/alpha/alpha.md (unspec): New define_c_enum.
10115         (unspecv): Ditto.
10116
10117 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
10118
10119         PR debug/48214
10120         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
10121         between a call and its CALL_ARG_LOCATION note.
10122
10123 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
10124
10125         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
10126
10127 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
10128
10129         PR c/42544
10130         PR c/48197
10131         * c-common.c (shorten_compare): If primopN is first sign-extended
10132         to opN and then zero-extended to result type, set primopN to opN.
10133
10134 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
10135
10136         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
10137         for barrier handlers.
10138
10139 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
10140
10141         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
10142         UNSPEC constants to be in the unspec enumeration, and redefine
10143         all UNSPECV constants to be in the unspecv enumeration, so that
10144         dumps print which unspec/unspec_volatile this is.
10145         * config/rs6000/vector.md (UNSPEC_*): Ditto.
10146         * config/rs6000/paired.md (UNSPEC_*): Ditto.
10147         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
10148         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
10149         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
10150
10151         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
10152         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
10153         UNSPECV_LWSYNC, since these are used as unspec_volatile.
10154         * config/rs6000/sync.md (isync, lwsync): Ditto.
10155
10156 2011-03-21  Richard Guenther  <rguenther@suse.de>
10157
10158         * params.def (lto-min-partition): Fix typo.
10159
10160 2011-03-21  Richard Guenther  <rguenther@suse.de>
10161
10162         PR c/47939
10163         * c-decl.c (grokdeclarator): Drop to the main variant only
10164         for array types.  Drop flag_gen_aux_info check.
10165
10166 2011-03-21  Richard Guenther  <rguenther@suse.de>
10167
10168         PR translation/47911
10169         * params.def (lto-partitions): Fix typo.
10170         (lto-min-partition): Fix wording.
10171
10172 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
10173
10174         * config/rs6000/t-freebsd: Remove duplication from file.
10175
10176 2011-03-21  Richard Guenther  <rguenther@suse.de>
10177
10178         PR middle-end/47661
10179         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
10180
10181 2011-03-21  Richard Guenther  <rguenther@suse.de>
10182
10183         PR lto/48210
10184         * params.def (lto-partitions): Require at least 1 partition.
10185
10186 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10187
10188         * gthr-solaris.h: Remove.
10189         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
10190         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
10191         (LIB_SPEC): Likewise.
10192         * config/sol2.opt (threads): Remove.
10193         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
10194         (sparc*-*-solaris2*): Likewise.
10195         * configure.ac (enable_threads): Enable solaris support.
10196         * configure: Regenerate.
10197         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
10198         * doc/install.texi (Configuration, --enable-threads=lib): Remove
10199         solaris.
10200
10201 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10202
10203         * config.gcc: Obsolete *-*-solaris2.8*.
10204         * doc/install.texi (Specific, *-*-solaris2*): Document it.
10205
10206 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10207
10208         PR bootstrap/48135
10209         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
10210         reference.  Solaris 8 perl works.
10211
10212 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10213
10214         PR bootstrap/48135
10215         * doc/install.texi (Prerequisites): Move jar etc. up.
10216         Explain support library version requirements.
10217
10218 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10219
10220         PR bootstrap/48135
10221         * doc/install.texi (Prerequisites): Move Perl to build
10222         requirements.  Always necessary on Solaris 2 with Sun ld.
10223
10224 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10225
10226         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
10227         binutils 2.21.
10228         (Specific, i?86-*-solaris2.[89]): Likewise.
10229         (Specific, i?86-*-solaris2.10): Likewise.
10230         (Specific, mips-sgi-irix6): Likewise.
10231         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
10232         Update for binutils 2.21.
10233
10234 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10235
10236         * configure.ac (gcc_cv_lto_plugin): Fix typo.
10237         Allow -fuse-linker-plugin for non-default plugin linker.
10238         * configure: Regenerate.
10239
10240 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
10241
10242         PR bootstrap/48167
10243         * gengtype.c (files_rules): Added rule for cp/parser.h.
10244
10245 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
10246
10247         PR target/48213
10248         * config/s390/s390.c (s390_delegitimize_address): Don't call
10249         lowpart_subreg if orig_x has BLKmode.
10250
10251 2011-03-21  Kai Tietz  <ktietz@redhat.com>
10252
10253         PR target/12171
10254         * doc/plugins.texi: Adjust documentation for plugin register_callback.
10255         * tree.h (attribute_spec): Add new member affects_type_identity.
10256         * attribs.c (empty_attribute_table): Adjust attribute_spec
10257         initializers.
10258         * config/alpha/alpha.c: Likewise.
10259         * config/arc/arc.c: Likewise.
10260         * config/arm/arm.c: Likewise.
10261         * config/avr/avr.c: Likewise.
10262         * config/bfin/bfin.c: Likewise.
10263         * config/crx/crx.c: Likewise.
10264         * config/darwin.h: Likewise.
10265         * config/h8300/h8300.c: Likewise.
10266         * config/i386/cygming.h: Likewise.
10267         * config/i386/i386.c: Likewise.
10268         * config/ia64/ia64.c: Likewise.
10269         * config/m32c/m32c.c: Likewise.
10270         * config/m32r/m32r.c: Likewise.
10271         * config/m68hc11/m68hc11.c: Likewise.
10272         * config/m68k/m68k.c: Likewise.
10273         * config/mcore/mcore.c: Likewise.
10274         * config/mep/mep.c: Likewise.
10275         * config/microblaze/microblaze.c: Likewise.
10276         * config/mips/mips.c: Likewise.
10277         * config/rs6000/rs6000.c: Likewise.
10278         * config/rx/rx.c: Likewise.
10279         * config/sh/sh.c: Likewise.
10280         * config/sol2.h: Likewise.
10281         * config/sparc/sparc.c: Likewise.
10282         * config/spu/spu.c: Likewise.
10283         * config/stormy16/stormy16.c: Likewise.
10284         * config/v850/v850.c: Likewise.
10285
10286 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
10287
10288         * simplify-rtx.c (simplify_binary_operation_1): Handle
10289         (xor (and A B) C) case when B and C are both constants.
10290
10291 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
10292
10293         * tree-dfa.c (add_referenced_var): Fix typo in comment.
10294
10295 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
10296
10297         PR bootstrap/48168
10298         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
10299
10300 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
10301
10302         PR rtl-optimization/48156
10303         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
10304         assume df and df_lr are not NULL.
10305
10306 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10307
10308         PR debug/48023
10309         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
10310         between a call and its CALL_ARG_LOCATION note.
10311
10312 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
10313
10314         PR debug/48178
10315         * config/sh/sh.c (find_barrier): Don't emit a constant pool
10316         between a call and its corresponding CALL_ARG_LOCATION note.
10317
10318 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
10319
10320         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
10321         instead of loop. Use HARD_REGISTER_NUM_P predicate.
10322         * haifa-sched.c (setup_ref_regs): Ditto.
10323         * caller-save.c (add_used_regs_1): Ditto.
10324         * dse.c (look_for_hardregs): Ditto.
10325         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
10326         * sched-rgn.c (check_live_1): Ditto.
10327
10328 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
10329
10330         * c-decl.c (diagnose_mismatched_decls): Give an error for
10331         redefining a typedef with variably modified type.
10332
10333 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
10334
10335         * c-decl.c (grokfield): Don't allow typedefs for structures or
10336         unions with no tag by default.
10337         * doc/extend.texi (Unnamed Fields): Update.
10338
10339 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
10340
10341         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
10342         Rewrite using indirect functions.
10343         (lwp_slwpcb): Ditto.
10344         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
10345         (avx_vinsertf128<mode>): Ditto.
10346
10347 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10348
10349         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
10350         unspecs.
10351
10352 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10353
10354         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
10355         splitting between a call and its corresponding CALL_ARG_LOCATION note.
10356
10357 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
10358
10359         PR rtl-optimization/48170
10360         * gcse.c (hoist_code): Remove bogus asserts.
10361
10362 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
10363
10364         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
10365         computation for prologue/epilogue.
10366
10367 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10368
10369         * Makefile.in (check-consistency): Remove.
10370
10371 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
10372
10373         PR debug/48176
10374         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
10375         arange_table_in_use is 0, but either text_section_used or
10376         cold_text_section_used is true.  Don't call it if
10377         !info_section_emitted.
10378
10379 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
10380
10381         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
10382         FUNCTION_VALUE_REGNO_P): Remove.
10383         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
10384         Remove.
10385         * config/avr/avr.c (avr_ret_register): Make static inline.
10386         (avr_function_value_regno_p): New function.
10387         (avr_libcall_value): Make static. Add 'func' argument.
10388         (avr_function_value): Make static. Rename 'func' argument to
10389         'fn_decl_or_type', forward it to avr_libcall_value. Call
10390         avr_ret_register function instead of RET_REGISTER macro.
10391         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10392
10393 2011-03-18  Jason Merrill  <jason@redhat.com>
10394
10395         PR c++/23372
10396         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
10397
10398 2011-03-18  Richard Guenther  <rguenther@suse.de>
10399
10400         * doc/install.texi (--enable-gold): Remove.
10401         (--with-plugin-ld): Document.
10402         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
10403
10404 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
10405
10406         PR middle-end/47790
10407         * expr.c (optimize_bitfield_assignment_op): Revamp to work
10408         again after expansion changes.
10409
10410 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
10411
10412         * combine.c (try_combine): Do simplification only call of
10413         subst() on i2 even when i1 is present. Update comments.
10414
10415 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
10416
10417         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10418         and UNSPEC_PCREL_SYMOFF.
10419
10420 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10421
10422         * config/s390/s390.md: Use define_c_enum for the unspec constant
10423         definitions.
10424
10425 2011-03-18  Richard Henderson  <rth@redhat.com>
10426             Jakub Jelinek  <jakub@redhat.com>
10427
10428         PR bootstrap/48161
10429         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10430         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10431
10432 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10433
10434         PR middle-end/47725
10435         * combine.c (cant_combine_insn_p): Don't check zero/sign
10436         extended hard registers.
10437
10438 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10439
10440         PR middle-end/47725
10441         * combine.c (cant_combine_insn_p): Check zero/sign extended
10442         hard registers.
10443
10444 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
10445
10446         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10447         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10448         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10449         Change return type to bool.
10450         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10451
10452 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10453
10454         PR debug/48163
10455         * var-tracking.c (prepare_call_arguments): If CALL target
10456         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10457         pc instead of looking it up using cselib_lookup and use
10458         Pmode for it if x has VOIDmode.
10459         * dwarf2out.c (gen_subprogram_die): If also both first and
10460         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10461
10462         PR debug/48163
10463         * function.c (assign_parms): For data.passed_pointer parms
10464         use MEM of data.entry_parm instead of data.entry_parm itself
10465         as DECL_INCOMING_RTL.
10466         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10467         also when passed and declared mode is the same, DECL_RTL
10468         is a MEM with pseudo as address and DECL_INCOMING_RTL is
10469         a MEM too.
10470
10471 2011-03-16  Jeff Law  <law@redhat.com>
10472
10473         PR rtl-optimization/37273
10474         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10475         handle them like argument loads from stack slots.  Do not double
10476         count memory for memory constants and argument loads from stack slots.
10477
10478 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10479
10480         PR debug/48160
10481         * var-tracking.c (prepare_call_arguments): Check SUBREG.
10482
10483 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10484
10485         PR target/48171
10486         * config/i386/i386.opt: Add Save to -mavx and -mfma.
10487
10488 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10489
10490         PR bootstrap/48153
10491         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10492         if dwarf_strict.
10493         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10494         Clear call_arg_locations and call_arg_loc_last always.
10495
10496         PR middle-end/48152
10497         * var-tracking.c (prepare_call_arguments): If argument needs to be
10498         passed by reference, adjust argtype and mode.
10499
10500 2011-03-17  Richard Guenther  <rguenther@suse.de>
10501
10502         PR middle-end/48134
10503         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10504         a value make sure to fold the statement.
10505
10506 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
10507
10508         PR target/43872
10509         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10510         return condition with !cfun->calls_alloca.
10511
10512 2011-03-17  Richard Guenther  <rguenther@suse.de>
10513
10514         PR bootstrap/48148
10515         * lto-cgraph.c (input_overwrite_node): Clear the abstract
10516         origin for decls in other ltrans units.
10517         (input_varpool_node): Likewise.
10518
10519 2011-03-17  Richard Guenther  <rguenther@suse.de>
10520
10521         PR middle-end/48165
10522         * tree-object-size.c (compute_object_offset): Properly return
10523         the offset operand of MEM_REFs as sizetype.
10524
10525 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10526
10527         PR rtl-optimization/48141
10528         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10529         * dse.c: Include params.h.
10530         (active_local_stores_len): New variable.
10531         (add_wild_read, dse_step1): Clear it when setting active_local_stores
10532         to NULL.
10533         (record_store, check_mem_read_rtx): Decrease it when removing
10534         from the chain.
10535         (scan_insn): Likewise.  Increase it when adding to chain, if it
10536         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10537         set active_local_stores to NULL before the addition.
10538         * Makefile.in (dse.o): Depend on $(PARAMS_H).
10539
10540         PR rtl-optimization/48141
10541         * dse.c (record_store): If no positions are needed in an insn
10542         that cannot be deleted, at least unchain it from active_local_stores.
10543
10544 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
10545
10546         PR debug/47510
10547         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10548         (lookup_type_die_strip_naming_typedef): ... here.
10549         (get_context_die): Use it.
10550         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10551         the anonymous struct named by the naming typedef.
10552
10553 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10554
10555         PR target/48154
10556         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10557         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10558
10559 2011-03-16  Jeff Law  <law@redhat.com>
10560
10561         * tree-vrp.c (identify_jump_threads): Slightly simplify type
10562         check for operands of conditional.  Allow type to be a pointer.
10563
10564 2011-03-16  Richard Guenther  <rguenther@suse.de>
10565
10566         PR tree-optimization/48149
10567         * fold-const.c (fold_binary_loc): Fold
10568         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10569
10570 2011-03-16  Richard Guenther  <rguenther@suse.de>
10571
10572         PR tree-optimization/26134
10573         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10574         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10575         (non_rewritable_mem_ref_base): Handle complex type component
10576         accesses, constrain offsets for vector and complex extracts
10577         more properly.
10578
10579 2011-03-16  Richard Guenther  <rguenther@suse.de>
10580
10581         PR tree-optimization/48146
10582         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10583         operands avoiding the need for renaming.
10584
10585 2011-03-16  Richard Guenther  <rguenther@suse.de>
10586
10587         * gimple-fold.c (maybe_fold_reference): Open-code relevant
10588         constant folding.  Move MEM_REF canonicalization first.
10589         Rely on fold_const_aggregate_ref for initializer folding.
10590         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10591
10592 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10593
10594         PR middle-end/48136
10595         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10596         arg0/arg1 or their arguments are always fold converted to matching
10597         types.
10598
10599         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10600         to nargs.
10601
10602 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10603
10604         PR lto/46944
10605         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10606         Handle in-tree gold.
10607         (ld_vers): Extract binutils version for gold.
10608         (gcc_cv_ld_hidden): Handle gold here.
10609         (gcc_cv_lto_plugin): Determine level of linker plugin support.
10610         * configure: Regenerate.
10611         * config.in: Regenerate.
10612         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10613         -fuse-linker-plugin otherwise.
10614         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
10615         (LINK_COMMAND_SPEC): Use it.
10616         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10617
10618 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10619
10620         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10621         * calls.c: Remove debug.h include.
10622         (emit_call_1): Don't call virtual_call_token debug hook.
10623         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10624         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10625         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10626         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10627         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10628         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10629         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10630         dwarf2out_virtual_call): Remove.
10631         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10632         copy_call_info and virtual_call hooks.
10633         (dwarf2out_init): Don't initialize vcall_insn_table,
10634         debug_dcall_section and debug_vcall_section.
10635         (prune_unused_types): Don't mark nodes from dcall_table.
10636         (dwarf2out_finish): Don't output dcall or vcall tables.
10637         * final.c (final_scan_insn): Don't call direct_call or
10638         virtual_call debug hooks.
10639         * debug.h (struct gcc_debug_hooks): Remove direct_call,
10640         virtual_call_token, copy_call_info and virtual_call hooks.
10641         (debug_nothing_uid): Remove prototype.
10642         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10643         copy_call_info and virtual_call hooks.
10644         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10645         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10646         * debug.c (do_nothing_debug_hooks): Likewise.
10647         (debug_nothing_uid): Remove.
10648         * doc/invoke.texi (-fenable-icf-debug): Remove.
10649         * common.opt (-fenable-icf-debug): Likewise.
10650
10651         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10652         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10653         call's MEM.  Handle functions returning aggregate through a hidden
10654         first pointer.  For virtual calls add clobbered pc to call arguments
10655         chain.
10656         * dwarf2out.c (gen_subprogram_die): Emit
10657         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10658         can't be emitted.
10659
10660         PR debug/45882
10661         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10662         * rtl.h (ENTRY_VALUE_EXP): Define.
10663         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10664         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10665         * print-rtl.c (print_rtx): Likewise.
10666         * gengtype.c (adjust_field_rtx_def): Likewise.
10667         * var-tracking.c (vt_add_function_parameter): Adjust
10668         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10669         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10670         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10671         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10672         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10673
10674         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10675         Call var_location debug hook even on CALL_INSNs.
10676         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10677         * rtl.def (ENTRY_VALUE): New.
10678         * dwarf2out.c: Include cfglayout.h.
10679         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10680         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10681         (struct call_arg_loc_node): New type.
10682         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10683         tail_call_site_count): New variables.
10684         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10685         DW_TAG_GNU_call_site_parameter.
10686         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10687         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10688         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10689         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10690         and DW_AT_GNU_all_source_call_sites.
10691         (mem_loc_descriptor): Handle ENTRY_VALUE.
10692         (add_src_coords_attributes): Don't add enything if
10693         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10694         (dwarf2out_abstract_function): Save and clear call_arg_location,
10695         call_site_count and tail_call_site_count around dwarf2out_decl call.
10696         (gen_call_site_die): New function.
10697         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10698         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10699         (dwarf2out_function_decl): Clear call_arg_locations,
10700         call_arg_loc_last, set call_site_count and tail_call_site_count
10701         to -1 and free block_map.
10702         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10703         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
10704         followed by any real instructions.
10705         (dwarf2out_begin_function): Set call_site_count and
10706         tail_call_site_count to 0.
10707         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10708         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10709         attempt to force a DIE for it and worst case remove the attribute.
10710         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10711         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10712         the decl itself.
10713         * var-tracking.c: Include tm_p.h.
10714         (vt_stack_adjustments): For calls call note_register_arguments.
10715         (argument_reg_set): New variable.
10716         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10717         ensure the VALUE is resolved.
10718         (call_arguments): New variable.
10719         (prepare_call_arguments): New function.
10720         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10721         (struct expand_loc_callback_data): Add ignore_cur_loc field.
10722         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10723         always use the best expression.
10724         (vt_expand_loc): Add ignore_cur_loc argument.
10725         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10726         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10727         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10728         note for all calls.
10729         (vt_add_function_parameter): Use cselib_lookup_from_insn.
10730         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10731         argument.  Don't call cselib_preserve_only_values and
10732         cselib_reset_table.
10733         (note_register_arguments): New function.
10734         (vt_initialize): Compute argument_reg_set.  Call
10735         vt_add_function_parameters before processing basic blocks instead of
10736         afterwards.  For calls call prepare_call_arguments before calling
10737         cselib_process_insn.
10738         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10739         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10740         (var-tracking.o): Depend on $(TM_P_H).
10741         * cfglayout.h (insn_scope): New prototype.
10742         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10743         * cfglayout.c (insn_scope): No longer static.
10744         * insn-notes.def (CALL_ARG_LOCATION): New.
10745         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10746         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10747         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10748         nothing for DECL_EXTERNAL BLOCK_VARS.
10749
10750 2011-03-16  Alan Modra  <amodra@gmail.com>
10751
10752         PR target/45844
10753         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10754         create invalid offset address for vsx splat insn.
10755         * config/rs6000/predicates.md (splat_input_operand): New.
10756         * config/rs6000/vsx.md (vsx_splat_*): Use it.
10757
10758 2011-03-15  Xinliang David Li  <davidxl@google.com>
10759
10760         PR c/47837
10761         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10762         (normalize_preds): New function.
10763         (is_use_properly_guarded): Normalize def predicates.
10764
10765 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10766
10767         PR target/46788
10768         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10769         in the output template.
10770
10771 2011-03-15  Richard Guenther  <rguenther@suse.de>
10772
10773         PR middle-end/47650
10774         * tree-pretty-print.c (dump_function_declaration): Properly
10775         dump unprototyped and varargs function types.
10776
10777 2011-03-15  Richard Guenther  <rguenther@suse.de>
10778
10779         PR tree-optimization/13954
10780         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10781         and friends.
10782
10783 2011-03-15  Richard Guenther  <rguenther@suse.de>
10784
10785         PR tree-optimization/48037
10786         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10787         selects into BIT_FIELD_REFs.
10788         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10789         vector select.
10790
10791 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
10792
10793         PR tree-optimization/48129
10794         * builtins.c (fold_builtin_snprintf): Convert to type of
10795         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10796         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10797
10798 2011-03-15  Richard Guenther  <rguenther@suse.de>
10799
10800         PR tree-optimization/41490
10801         * tree-ssa-dce.c (propagate_necessity): Handle returns without
10802         value but with VUSE.
10803         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10804         return statements.
10805         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10806         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10807         * tree-tailcall.c (find_tail_calls): Ignore returns.
10808
10809 2011-03-15  Richard Guenther  <rguenther@suse.de>
10810
10811         PR middle-end/48031
10812         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10813         or variable-indexed array accesses when in gimple form.
10814
10815 2011-03-15  Richard Guenther  <rguenther@suse.de>
10816
10817         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10818
10819 2011-03-15  Alan Modra  <amodra@gmail.com>
10820
10821         PR target/48032
10822         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10823         presume symbol_refs without a symbol_ref_decl are suitably
10824         aligned, nor other trees we may see here.  Handle anchor symbols.
10825         (legitimate_constant_pool_address_p): Comment.  Add mode param.
10826         Check cmodel=medium addresses.  Adjust all calls.
10827         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10828         creating cmodel=medium optimized access to locals.
10829         * config/rs6000/constraints.md (R): Pass QImode to
10830         legitimate_constant_pool_address_p.
10831         * config/rs6000/predicates.md (input_operand): Pass mode to
10832         legitimate_constant_pool_address_p.
10833         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10834         Update prototype.
10835
10836 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
10837
10838         PR target/48053
10839         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10840         64-bit constants being loaded into registers other than GPRs such
10841         as loading 0 into a VSX register.
10842
10843 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10844
10845         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10846
10847 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10848
10849         PR middle-end/47917
10850         * builtins.c (fold_builtin_snprintf): New function.
10851         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10852         (fold_builtin_4): Likewise.
10853
10854         PR middle-end/38878
10855         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10856         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
10857         and C - X == X also strip nops from +/-/p+ operand.
10858         When optimizing -X == C, fold C to arg0's type.
10859
10860         PR debug/47946
10861         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10862         emit it as add_AT_int instead of add_AT_unsigned.
10863
10864 2011-03-14  Tom Tromey  <tromey@redhat.com>
10865
10866         * unwind-dw2.c: Include sys/sdt.h if it exists.
10867         (_Unwind_DebugHook): Use STAP_PROBE2.
10868         * config.in, configure: Rebuild.
10869         * configure.ac: Check for sys/sdt.h.
10870
10871 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
10872
10873         * config/i386/i386.md (ROUND_FLOOR): New constant.
10874         (ROUND_CEIL): Ditto.
10875         (ROUND_TRUNC): Ditto.
10876         (ROUND_MXCSR): Ditto.
10877         (ROUND_NO_EXC): Ditto.
10878         (rint<mode>2): Use new defines instead of numerical constants.
10879         (floor<mode>2): Ditto.
10880         (ceil<mode>2): Ditto.
10881         (btrunc<mode>2): Ditto.
10882         * config/i386/i386-builtin-types.def: Define ROUND function type
10883         aliases.
10884         * config/i386/i386.c (enum ix86_builtins): Add
10885         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10886         (struct builtin_description): Add
10887         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10888         (ix86_expand_sse_round): New static function.
10889         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10890         function types.
10891         (ix86_builtin_vectorized_function): Handle
10892         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10893
10894 2011-03-14  Tom Tromey  <tromey@redhat.com>
10895
10896         * c-parser.c (c_parser_asm_string_literal): Clear
10897         warn_overlength_strings.
10898
10899 2011-03-14  Tom Tromey  <tromey@redhat.com>
10900
10901         * c-parser.c (disable_extension_diagnostics): Save
10902         warn_overlength_strings.
10903         (restore_extension_diagnostics): Restore warn_overlength_strings.
10904
10905 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10906
10907         * BASE-VER: Change to 4.7.0.
10908
10909 2011-03-14  Richard Guenther  <rguenther@suse.de>
10910
10911         PR middle-end/48098
10912         * tree.c (build_vector_from_val): Adjust assert to requirements
10913         and reality.
10914
10915 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10916
10917         PR bootstrap/48102
10918         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10919
10920 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
10921
10922         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10923         terms of target_flags_explicit. Adjust copyright year.
10924
10925         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10926         * config/rs6000/t-freebsd: New file. Add override for
10927         LIB2FUNCS_EXTRA.
10928
10929 2011-03-13  Chris Demetriou  <cgd@google.com>
10930
10931         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10932         (-fno-diagnostics-show-option): this, to reflect current default.
10933         (-Werror=): Update text about -fno-diagnostics-show-option.
10934
10935 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
10936
10937         PR target/48053
10938         * config/rs6000/predicates.md (easy_vector_constant_add_self,
10939         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10940         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10941         mode is not V2DImode or V2DFmode.
10942         (vspltis_constant): Do not handle V2DImode and V2DFmode.
10943         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10944         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10945         registers to 0.
10946         (movdi_internal64): Likewise.
10947
10948 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
10949
10950         PR tree-optimization/47127
10951         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10952         parameter.
10953         (set_cloog_options): Same.
10954         (scop_to_clast): Same.
10955         (print_clast_stmt): Do not call cloog_state_malloc and
10956         cloog_state_free.
10957         (print_generated_program): Same.
10958         (gloog): Same.
10959         * graphite-clast-to-gimple.h (cloog_state): Declared.
10960         (scop_to_clast): Adjust declaration.
10961         * graphite.c (cloog_state): Defined here.
10962         (graphite_initialize): Call cloog_state_malloc.
10963         (graphite_finalize): Call cloog_state_free.
10964
10965 2011-03-11  Jason Merrill  <jason@redhat.com>
10966
10967         * attribs.c (lookup_attribute_spec): Take const_tree.
10968         * tree.h: Adjust.
10969
10970 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
10971
10972         * config/sparc/sparc.c (sparc_option_override): Use
10973         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10974
10975 2011-03-11  Richard Guenther  <rguenther@suse.de>
10976
10977         PR tree-optimization/48067
10978         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10979         multiplication result will be only used once on the target
10980         stmt.
10981
10982 2011-03-11  Richard Guenther  <rguenther@suse.de>
10983
10984         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10985
10986 2011-03-11  Richard Guenther  <rguenther@suse.de>
10987
10988         PR lto/48073
10989         * tree.c (find_decls_types_r): Do not walk types only reachable
10990         from IDENTIFIER_NODEs.
10991
10992 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
10993
10994         PR middle-end/48044
10995         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10996         all vnode->force_output nodes as needed.
10997
10998 2011-03-11  Jason Merrill  <jason@redhat.com>
10999
11000         PR c++/48069
11001         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
11002         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
11003
11004 2011-03-11  Martin Jambor  <mjambor@suse.cz>
11005
11006         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
11007         cgraph_node.
11008
11009 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
11010
11011         PR tree-optimization/48063
11012         * ipa-inline.c (cgraph_decide_inlining): Don't try to
11013         inline functions called once if !tree_can_inline_p (node->callers).
11014
11015 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
11016
11017         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
11018         extra_objs.
11019         * config/score/score3.c: Delete.
11020         * config/score/score3.h: Delete.
11021         * config/score/mul-div.S: Delete.
11022         * config/score/sfp-machine.h: Add new file.
11023         * config/score/constraints.md: Add new file.
11024         * config/score/t-score-softfp: Add new file.
11025         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
11026         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
11027         (score7_extra_constraint): Delete.
11028         (score7_option_override): Remove unused code.
11029         * config/score/score.c: Remove score3 and score5 define and code.
11030         * config/score/score.h: Remove score3 and score5 define and code.
11031         * config/score/score.md: Remove score3 template and unusual insn.
11032         * config/score/score.opt: Remove score3 and score5 options.
11033
11034 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11035
11036         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
11037         when _HPUX_SOURCE is defined.
11038         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
11039
11040 2011-03-10  Jason Merrill  <jason@redhat.com>
11041
11042         PR c++/48029
11043         * stor-layout.c (layout_type): Don't set structural equality
11044         on arrays of incomplete type.
11045         * tree.c (type_hash_eq): Handle comparing them properly.
11046
11047 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
11048
11049         PR debug/48043
11050         * config/s390/s390.c (s390_delegitimize_address): Make sure the
11051         result mode matches original rtl mode.
11052
11053 2011-03-10  Nick Clifton  <nickc@redhat.com>
11054
11055         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
11056         (andsi3, andsi3_flags): Fix timings for three operand alternative.
11057
11058 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
11059
11060         PR rtl-optimization/47866
11061         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
11062         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
11063         if target wasn't scalar.
11064         * function.c (assign_stack_temp_for_type): Assert that neither
11065         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
11066         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
11067         macro.
11068         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
11069
11070 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11071
11072         * config/s390/s390-protos.h (s390_label_align): New prototype.
11073         * config/s390/s390.c (s390_label_align): New function.
11074         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
11075
11076 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
11077
11078         PR target/47755
11079         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
11080         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
11081         (output_vec_const_move): Ditto.
11082
11083 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
11084
11085         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
11086         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
11087         * config/mips/mips.c (mips_preferred_reload_class): Make static.
11088         Change 'rclass' argument and result type to reg_class_t.
11089         (TARGET_PREFERRED_RELOAD_CLASS): Define.
11090
11091 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
11092
11093         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11094         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
11095         (TARGET_MEMORY_MOVE_COST): Define.
11096         (avr_register_move_cost, avr_memory_move_cost): New Functions.
11097
11098 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
11099
11100         PR debug/47881
11101         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
11102         removed anything.
11103
11104         PR tree-optimization/48022
11105         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
11106         for EQ/NE_EXPR.
11107
11108 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
11109
11110         PR debug/47991
11111         * var-tracking.c (find_use_val): Return NULL for
11112         cui->sets && cui->store_p BLKmode MEMs.
11113
11114 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
11115
11116         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
11117         Remove.
11118         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
11119         xstormy16_print_operand_address): Remove.
11120         * config/stormy16/stormy16.c (xstormy16_print_operand,
11121         xstormy16_print_operand_address): Make static.
11122         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11123
11124 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
11125
11126         PR target/47862
11127         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11128         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
11129         before definition.
11130
11131 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
11132
11133         PR bootstrap/48000
11134         * cfgloopmanip.c (fix_bb_placements): Return immediately
11135         if FROM is BASE_LOOP's header.
11136
11137 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
11138
11139         * gimplify.c (gimplify_function_tree): Fix building calls
11140         to __builtin_return_address.
11141
11142 2011-03-07  Alan Modra  <amodra@gmail.com>
11143
11144         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
11145         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
11146         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
11147         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
11148         return_mode args.
11149         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
11150         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
11151         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
11152         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
11153         * config/rs6000/rs6000.c
11154         (rs6000_elf_end_indicate_exec_stack): Rename to..
11155         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
11156         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
11157         (rs6000_file_start): ..here.
11158         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
11159         file scope variables.
11160         (call_ABI_of_interest): New function.
11161         (init_cumulative_args): Set above vars when function return value
11162         is a float, vector, or small struct.
11163         (rs6000_function_arg_advance_1): Likewise for function args.
11164         (rs6000_va_start): Set rs6000_passes_float if variable arg function
11165         references float args.
11166
11167 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
11168
11169         * doc/cfg.texi: Remove "See" before @ref.
11170         * doc/invoke.texi: Likewise.
11171
11172 2011-03-05  Jason Merrill  <jason@redhat.com>
11173
11174         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
11175
11176 2011-03-05  Anthony Green  <green@moxielogic.com>
11177
11178         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
11179
11180 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
11181
11182         PR rtl-optimization/47899
11183         * cfgloopmanip.c (fix_bb_placements): Fix first argument
11184         to flow_loop_nested_p when moving the loop upward.
11185
11186 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
11187
11188         PR target/47719
11189         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
11190
11191 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
11192
11193         PR tree-optimization/47967
11194         * ipa-cp.c (build_const_val): Return NULL instead of creating
11195         VIEW_CONVERT_EXPR for mismatching sizes.
11196         (ipcp_create_replace_map): Return NULL if build_const_val failed.
11197         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
11198         give up on versioning.
11199
11200 2011-03-05  Alan Modra  <amodra@gmail.com>
11201
11202         PR target/47986
11203         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11204         full cmodel medium/large lo_sum + high addresses.
11205
11206 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11207
11208         * config/s390/s390.c (s390_decompose_address): Reject non-literal
11209         pool references in UNSPEC_LTREL_OFFSET.
11210
11211 2011-03-04  Jan Hubicka  <jh@suse.cz>
11212
11213         PR lto/47497
11214         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
11215         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
11216         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
11217         Add node pointers.
11218         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
11219         cgraph_add_thunk): Add node pointers.
11220         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
11221         associated to right node.
11222         (input_node): Update use of cgraph_same_body_alias
11223         and cgraph_add_thunk.
11224
11225 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
11226
11227         * config/i386/i386.opt (mprefer-avx128): New flag.
11228         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
11229         modes when the flag -mprefer-avx128 is on.
11230
11231 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
11232
11233         * dwarf2out.c (compare_loc_operands): Fix address handling.
11234
11235 2011-03-04  Alan Modra  <amodra@gmail.com>
11236
11237         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
11238
11239 2011-03-04  Richard Guenther  <rguenther@suse.de>
11240
11241         PR middle-end/47968
11242         * expmed.c (extract_bit_field_1): Prefer vector modes that
11243         vec_extract patterns can handle.
11244
11245 2011-03-04  Richard Guenther  <rguenther@suse.de>
11246
11247         PR middle-end/47975
11248         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
11249
11250 2011-03-04  Richard Henderson  <rth@redhat.com>
11251
11252         * explow.c (emit_stack_save): Remove 'after' parameter.
11253         (emit_stack_restore): Likewise.
11254         * expr.h: Update to match.
11255         * builtins.c, calls.c, stmt.c: Likewise.
11256         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
11257         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
11258         * function.c (expand_function_end): Insert the emit_stack_save
11259         sequence before parm_birth_insn instead of after.
11260
11261 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
11262
11263         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
11264         (ssse3_pmaddubsw128): Ditto.
11265         (ssse3_pmaddubsw): Ditto.
11266
11267 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
11268
11269         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
11270
11271 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
11272
11273         PR c/47963
11274         * gimplify.c (omp_add_variable): Only call omp_notice_variable
11275         on TYPE_SIZE_UNIT if it is a DECL.
11276
11277         PR debug/47283
11278         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
11279         first operand is not is_gimple_mem_ref_addr, try to fold it.
11280         If the operand still isn't is_gimple_mem_ref_addr, clear
11281         MEM_EXPR on op0.
11282
11283 2011-03-03  Richard Guenther  <rguenther@suse.de>
11284
11285         PR middle-end/47283
11286         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
11287         match comment.
11288         (refs_may_alias_p_1): For release branches return true if
11289         we are confused by our input.
11290
11291 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11292
11293         * config/s390/s390.c (s390_function_value): Rename to ...
11294         (s390_function_and_libcall_value): ... this.
11295         (s390_function_value): New function.
11296         (s390_libcall_value): New function.
11297         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
11298         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
11299         target macro definitions.
11300         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
11301
11302 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
11303
11304         * config/i386/freebsd64.h (CC1_SPEC): Define.
11305         * config/i386/linux64.h (CC1_SPEC): Define.
11306         * config/i386/x86-64.h (CC1_SPEC): Don't define.
11307
11308 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
11309
11310         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11311         Remove.
11312         * config/stormy16/stormy16.c: Include reload.h.
11313         (xstormy16_memory_move_cost): New function.
11314         (TARGET_MEMORY_MOVE_COST): Define.
11315
11316 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
11317
11318         PR rtl-optimization/47925
11319         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
11320         with side effects.  Remove the more-specific check for volatile asms.
11321
11322 2011-03-02  Alan Modra  <amodra@gmail.com>
11323
11324         PR target/47935
11325         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
11326         toc relative addresses for valid offsets.
11327
11328 2011-03-01  Richard Guenther  <rguenther@suse.de>
11329
11330         PR tree-optimization/47890
11331         * tree-vect-loop.c (get_initial_def_for_induction): Set
11332         related stmt properly.
11333
11334 2011-03-01  Richard Guenther  <rguenther@suse.de>
11335
11336         PR lto/47924
11337         * lto-streamer.c (lto_record_common_node): Also register
11338         the canonical type.
11339
11340 2011-03-01  Richard Guenther  <rguenther@suse.de>
11341
11342         PR lto/46911
11343         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11344         Do not stream DECL_ABSTRACT_ORIGIN.
11345         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11346         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11347         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11348         Do not stream DECL_ABSTRACT_ORIGIN.
11349         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11350         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11351
11352 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
11353
11354         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
11355         FUNCTION_VALUE_REGNO_P): Remove.
11356         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
11357         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
11358         Add 'outgoing' argument.
11359         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
11360         function.
11361         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11362         TARGET_FUNCTION_VALUE_REGNO_P): Define.
11363
11364 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
11365
11366         PR debug/28047
11367         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
11368         (lookup_filename): Likewise.
11369         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
11370
11371 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
11372             Jakub Jelinek  <jakub@redhat.com>
11373
11374         PR middle-end/47893
11375         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
11376         (assign_stack_local_1): Change last argument type to int.
11377         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
11378         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
11379         don't record padding space into frame_space_list nor use those areas.
11380         (assign_stack_local): Adjust caller.
11381         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
11382         of assign_stack_local, pass 0 as last argument.
11383         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
11384         callers.
11385
11386 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
11387
11388         PR debug/47283
11389         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
11390         Use target address_mode and pointer_mode hooks instead of hardcoded
11391         Pmode and ptr_mode.  Handle some simple cases of extending if
11392         POINTERS_EXTEND_UNSIGNED < 0.
11393         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
11394         Call convert_debug_memory_address.
11395         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
11396         convert_debug_memory_address.
11397
11398         PR middle-end/46790
11399         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
11400         * configure: Regenerated.
11401         * config.in: Regenerated.
11402         * varasm.c (default_function_section): Return NULL
11403         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
11404
11405 2011-02-28  Martin Jambor  <mjambor@suse.cz>
11406
11407         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11408         the description to match the printed values.
11409
11410 2011-02-28  Richard Guenther  <rguenther@suse.de>
11411
11412         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11413         of the copied scope tree.
11414
11415 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11416
11417         * doc/extend.texi (Function Attributes): Avoid deeply (and
11418         wrongly) nested tables.
11419
11420 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
11421
11422         PR middle-end/47903
11423         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11424         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11425         r isn't op0 nor op1.
11426
11427 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
11428
11429         * config/avr/avr.md: Remove magic comment for emacs.
11430
11431 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
11432
11433         PR target/45261
11434         * config/avr/avr.c (avr_option_override): Use error on bad options.
11435         (avr_help): New function.
11436         (TARGET_HELP): Define.
11437
11438 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
11439
11440         PR target/42240
11441         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11442         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11443
11444 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
11445
11446         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11447         (ARM Options): Ditto.
11448         (i386 and x86-64 Options): Ditto.
11449         (RX Options): Ditto.
11450         (SPARC Options): Ditto.
11451
11452 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
11453
11454         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11455         FreeBSD 6 and later.  Generally use cpu generic.
11456
11457 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
11458
11459         * doc/cpp.texi: Update copyright years.
11460
11461 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11462
11463         PR target/46898
11464         * config/lm32/lm32.md (ashrsi3): Added needed variable.
11465
11466 2011-02-25  Jon Beniston  <jon@beniston.com>
11467
11468         PR target/46898
11469         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11470         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11471         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11472         (lm32_block_move_inline): Add type cast to remove warning.
11473         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
11474         (gen_int_relational): Move declarations to start of function.
11475
11476 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
11477
11478         PR tree-optimization/45470
11479         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11480         can throw internally only.
11481         * tree-vect-stmts.c (vectorizable_call): Likewise.
11482
11483 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
11484
11485         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11486         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11487         * config/stormy16/stormy16-protos.h
11488         (xstormy16_preferred_reload_class): Remove.
11489         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11490         static. Change 'rclass' argument and return type to reg_class_t.
11491         (TARGET_PREFERRED_RELOAD_CLASS,
11492         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11493
11494 2011-02-24  Richard Guenther  <rguenther@suse.de>
11495
11496         * lto-streamer-in.c (input_bb): Do not find referenced vars
11497         in debug statements.
11498
11499 2011-02-23  Jason Merrill  <jason@redhat.com>
11500
11501         * common.opt (fabi-version): Document v5 and v6.
11502
11503 2011-02-23  Richard Guenther  <rguenther@suse.de>
11504
11505         PR tree-optimization/47849
11506         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11507
11508 2011-02-23  Jie Zhang  <jie@codesourcery.com>
11509
11510         * opts-common.c (decode_cmdline_option): Print empty string
11511         argument as "" in decoded->orig_option_with_args_text.
11512         * gcc.c (execute): Print empty string argument as ""
11513         in the verbose output.
11514         (do_spec_1): Keep empty string argument.
11515
11516 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
11517
11518         * config.gcc: Declare score-* and crx-* obsolete.
11519
11520 2011-02-23  Jie Zhang  <jie@codesourcery.com>
11521
11522         PR rtl-optimization/47763
11523         * web.c (web_main): Ignore naked clobber when replacing register.
11524
11525 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
11526
11527         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11528         Remove.
11529
11530 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
11531
11532         PR doc/47848
11533         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11534
11535 2011-02-22  Mike Stump  <mikestump@comcast.net>
11536
11537         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11538         assembler.
11539         * configure: Regenerate.
11540
11541 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
11542
11543         PR rtl-optimization/46002
11544         * ira-color.c (update_copy_costs): Change class intersection
11545         test to reg_class_contents[] test of 'hard_regno'.
11546
11547 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
11548
11549         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11550         than Driver option.
11551         * config/hpux11.opt (mt): Likewise.
11552         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11553         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11554         * config/vax/elf.opt (mno-asm-pic): Likewise.
11555         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11556
11557 2011-02-21  Mike Stump  <mikestump@comcast.net>
11558
11559         PR target/47822
11560         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11561         tree so we can get save the type.
11562         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11563         for CFString instead of trying to use past the end of the builtins.
11564         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11565         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11566         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11567         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11568         Rename to darwin_builtin_cfstring.
11569         (darwin_init_cfstring_builtins): Return the built type.
11570
11571 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
11572
11573         PR target/47840
11574         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11575         (_mm256_insert_epi64): Use _mm_insert_epi64.
11576
11577 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
11578
11579         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11580         * config/stormy16/stormy16-protos.h
11581         (xstormy16_mode_dependent_address_p): Remove.
11582         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11583         Make static. Change return type to bool. Change argument type to
11584         const_rtx. Remove dead code.
11585         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11586
11587 2011-02-21  Richard Guenther  <rguenther@suse.de>
11588
11589         PR lto/47820
11590         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11591         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11592         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11593         TUs context.
11594         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11595         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11596
11597 2011-02-20  Richard Guenther  <rguenther@suse.de>
11598
11599         PR lto/47822
11600         * tree.c (free_lang_data_in_decl): Clean builtins from
11601         the TU decl BLOCK_VARS.
11602
11603 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
11604
11605         PR debug/47620
11606         PR debug/47630
11607         * haifa-sched.c (fix_tick_ready): Skip tick computation
11608         for debug insns.
11609
11610 2011-02-19  Richard Guenther  <rguenther@suse.de>
11611
11612         PR lto/47647
11613         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11614         Remove lazy BLOCK_VARS streaming.
11615         (lto_input_ts_block_tree_pointers): Likewise.
11616         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11617
11618 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11619
11620         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11621
11622 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11623
11624         * config/i386/biarch32.h, config/i386/mach.h,
11625         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11626
11627 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
11628
11629         PR target/47800
11630         * config/i386/i386.md (peephole2 for shift and plus): Use
11631         operands[1] original mode in the first insn.
11632
11633 2011-02-18  Mike Stump  <mikestump@comcast.net>
11634
11635         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
11636
11637 2011-02-18  Jan Hubicka  <jh@suse.cz>
11638
11639         PR middle-end/47788
11640         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11641         to zero when the function is not inlinable at all.
11642
11643 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11644
11645         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11646         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11647         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11648         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11649         * config/pa/t-pa64: Likewise.
11650         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11651
11652 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11653
11654         PR driver/47787
11655         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11656
11657 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11658
11659         PR target/47792
11660         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11661
11662 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
11663
11664         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11665         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11666         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11667         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11668         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11669         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11670         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11671         m32r_load_postinc_p, m32r_store_preinc_predec_p,
11672         m32r_legitimate_address_p): New functions.
11673         * config/m32r/constraints.md (constraint "S"): Don't use
11674         STORE_PREINC_PREDEC_P.
11675         (constraint "U"): Don't use LOAD_POSTINC_P.
11676
11677 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
11678
11679         PR rtl-optimization/46178
11680         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11681         compute ira_hard_regno_cover_class[].
11682
11683 2011-02-18  Richard Guenther  <rguenther@suse.de>
11684
11685         PR lto/47798
11686         * lto-streamer.h (lto_global_var_decls): Declare.
11687         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11688         statics for global var processing.
11689
11690 2011-02-18  Richard Guenther  <rguenther@suse.de>
11691
11692         PR tree-optimization/47737
11693         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11694         edge dominance check.
11695
11696 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11697
11698         PR debug/47780
11699         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11700         avoid invalid rtx sharing.
11701
11702 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
11703
11704         * doc/cpp.texi (Obsolete Features): Add background on the
11705         origin of assertions.
11706
11707 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
11708
11709         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11710         objc_abi == 2.
11711         * config/darwin.c (output_objc_section_asm_op): Added support for
11712         ABI v1 and v2.
11713         (is_objc_metadata): New.
11714         (darwin_objc2_section): New.
11715         (darwin_objc1_section): New.
11716         (machopic_select_section): Added support for ABI v1 and v2.
11717         (darwin_emit_objc_zeroed): New.
11718         (darwin_output_aligned_bss): Detect objc metadata and treat it
11719         appropriately.
11720         (darwin_asm_output_aligned_decl_common): Same.
11721         (darwin_asm_output_aligned_decl_local): Same.
11722         * config/darwin-sections.def: Updated for ABI v1 and v2.
11723         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11724         compiling Objective-C code for the NeXT runtime, default to using
11725         ABI version 0 for 32-bit, and version 2 for 64-bit.
11726
11727 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11728
11729         * common.opt (optimize_fast): New Variable.
11730         * opts.c (default_options_optimization): Use opts->x_optimize_fast
11731         instead of local variable ofast.
11732
11733 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
11734
11735         * doc/invoke.texi (fobjc-abi-version): Documented.
11736         (fobjc-nilcheck): Documented.
11737         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11738         version.
11739
11740 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11741
11742         PR driver/47390
11743         * common.opt (export-dynamic): New Driver option.
11744         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11745
11746 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11747
11748         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11749
11750 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
11751             Jan Hubicka  <jh@suse.cz>
11752
11753         PR debug/47106
11754         PR debug/47402
11755         * cfgexpand.c (account_used_vars_for_block): Remove.
11756         (estimated_stack_frame_size): Use referenced vars.
11757         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11758         that were referenced in the original function.  Test src_fn
11759         rather than cfun.  Drop redundant get_var_ann.
11760         (setup_one_parameter): Drop redundant get_var_ann.
11761         (declare_return_variable): Likewise.
11762         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11763         (copy_arguments_for_versioning): Drop redundant get_var_ann.
11764         * ipa-inline.c (compute_inline_parameters): Do not compute
11765         disregard_inline_limits here.
11766         (compute_inlinable_for_current, pass_inlinable): New.
11767         (pass_inline_parameters): Require PROP_referenced_vars.
11768         * cgraphunit.c (cgraph_process_new_functions): Don't run
11769         compute_inline_parameters explicitly unless function is in SSA form.
11770         (cgraph_analyze_function): Set .disregard_inline_limits.
11771         * tree-sra.c (convert_callers): Compute inliner parameters
11772         only for functions already in SSA form.
11773
11774 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11775
11776         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11777         -mlittle-endian-data.
11778
11779 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11780
11781         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11782         -mno-fpu, not -fpu and -no-fpu.
11783         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11784         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11785
11786 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
11787
11788         PR target/43653
11789         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11790         input reload with PLUS RTX.
11791
11792 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11793
11794         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11795         of InverseVar(MDMX).
11796
11797 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11798
11799         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11800         --m4-340.
11801
11802 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11803
11804         * config/mn10300/mn10300.opt (mno-crt0): New.
11805
11806 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11807
11808         * config/m68k/uclinux.opt (static-libc): New Driver option.
11809
11810 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11811
11812         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11813
11814 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11815
11816         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11817         %{muser-extend-enabled}.
11818
11819 2011-02-16  Richard Guenther  <rguenther@suse.de>
11820
11821         PR tree-optimization/47738
11822         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11823         the TODO from tree_predictive_commoning.
11824
11825 2011-02-15  Jeff Law  <law@redhat.com>
11826
11827         Revert
11828         2011-01-25  Jeff Law  <law@redhat.com>
11829
11830         PR rtl-optimization/37273
11831         * ira-costs.c (scan_one_insn): Detect constants living in memory and
11832         handle them like argument loads from stack slots.  Do not double
11833         count memory for memory constants and argument loads from stack slots.
11834
11835 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
11836
11837         PR middle-end/47725
11838         * combine.c (cant_combine_insn_p): Revert the last change.
11839
11840 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
11841
11842         PR target/47755
11843         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11844         mode for vector constants.  Remove code that checks for TImode.
11845
11846 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11847
11848         PR debug/47106
11849         PR debug/47402
11850         * cgraph.h (compute_inline_parameters): Return void.
11851         * ipa-inline.c (compute_inline_parameters): Adjust.
11852
11853 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11854
11855         PR debug/47106
11856         PR debug/47402
11857         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11858         rather than decl.
11859         * cfgexpand.c (estimated_stack_frame_size): Likewise.
11860         * ipa-inline.c (compute_inline_parameters): Adjust.
11861
11862 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11863
11864         PR debug/47106
11865         PR debug/47402
11866         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11867         Adjust all users.  Pass FN to...
11868         * tree-flow-inline.h (first_referenced_var): ... this.  Add
11869         fn argument.
11870         * ipa-struct-reorg.c: Adjust.
11871         * tree-dfa.c: Adjust.
11872         * tree-into-ssa.c: Adjust.
11873         * tree-sra.c: Adjust.
11874         * tree-ssa-alias.c: Adjust.
11875         * tree-ssa-live.c: Adjust.
11876         * tree-ssa.c: Adjust.
11877         * tree-ssanames.c: Adjust.
11878         * tree-tailcall.c: Adjust.
11879
11880 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11881
11882         PR debug/47106
11883         PR debug/47402
11884         * tree-flow.h (referenced_var_lookup): Add fn parameter.
11885         Adjust all callers.
11886         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11887         * tree-flow-inline.h: Adjust.
11888         * gimple-pretty-print.c: Adjust.
11889         * tree-into-ssa.c: Adjust.
11890         * tree-ssa.c: Adjust.
11891         * cfgexpand.c: Adjust.
11892
11893 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11894
11895         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11896         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11897         (EXTRA_CONSTRAINT): Delete.
11898         * config/iq2000/constraints.md: New file.
11899         * config/iq2000/iq2000.md: Include it.
11900         (define_insn ""): Delete.
11901         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11902         unsupported constraint letters from patterns.
11903         (call_value, call_value_internal1): Likewise.
11904         (call_value_multiple_internal1): Likewise.
11905
11906 2011-02-15  Nick Clifton  <nickc@redhat.com>
11907
11908         * config/mn10300/mn10300.c: Include tm-constrs.h.
11909         (struct liw_data): New data structure describing an LIW candidate
11910         instruction.
11911         (extract_bundle): Use struct liw_data.  Allow small integer
11912         operands for some instructions.
11913         (check_liw_constraints): Use struct liw_data.  Remove swapped
11914         parameter.  Add comments describing the checks.  Fix bug when
11915         assigning the source of liw1 to the source of liw2.
11916         (liw_candidate): Delete.  Code moved into extract_bundle.
11917         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
11918         before swapping.
11919         * config/mn10300/predicates.md (liw_operand): New predicate.
11920         Allows registers and small integer constants.
11921         * config/mn10300/constraints.md (O): New constraint.  Accetps
11922         integers in the range -8 to +7 inclusive.
11923         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11924         for moving a small integer into a register.  Give this alternative
11925         LIW attributes.
11926         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11927         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11928         using the J,K,L and M constraints,
11929         (liw): Remove SI mode on second operands to allow for HI and QI
11930         mode values.
11931         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
11932         instruction.
11933
11934 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
11935
11936         PR middle-end/47725
11937         * combine.c (cant_combine_insn_p): Check zero/sign extended
11938         hard registers.
11939
11940 2011-02-15  Richard Guenther  <rguenther@suse.de>
11941
11942         PR tree-optimization/47743
11943         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11944         for a non-type-compatible VN lookup bail out.
11945
11946 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11947
11948         * config/fr30/constraints.md: New file.
11949         * config/fr30/fr30.md: Include it.
11950         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11951         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11952         (EXTRA_CONSTRAINT): Delete.
11953
11954 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11955
11956         * config/frv/constraints.md: New file.
11957         * config/frv/predicates.md: Include it.
11958         * config/frv/frv.c (reg_class_from_letter): Delete.
11959         (frv_option_override): Don't initialize it.
11960         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11961         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11962         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11963         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11964         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11965         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11966         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11967         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11968         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11969         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11970         (REG_CLASS_FROM_CONSTRAINT): Delete.
11971
11972 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
11973
11974         PR middle-end/47581
11975         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11976         if frame size is 0 in a leaf function.
11977
11978 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11979
11980         PR pch/14940
11981         * config/alpha/host-osf.c: New file.
11982         * config/alpha/x-osf: New file.
11983         * config.host (alpha*-dec-osf*): Use it.
11984
11985 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
11986
11987         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11988         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11989         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11990         (rx_mode_dependent_address_p): ...this. Make static. Change argument
11991         type to const_rtx.
11992         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11993
11994 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11995
11996         * config/stormy16/constraints.md: New file.
11997         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11998         Use satisfies_constraint_Q and satisfies_constraint_R.
11999         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
12000         Delete.
12001         (xstormy16_legitiamte_address_p): Declare.
12002         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
12003         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12004         (EXTRA_CONSTRAINT): Delete.
12005         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12006         Un-staticize.
12007         (xstormy16_extra_constraint_p): Delete.
12008
12009 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
12010
12011         PR tree-optimization/46494
12012         * loop-unroll.c (split_edge_and_insert): Adjust comment.
12013         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
12014         (pass_rtl_loop_done): Add TODO_verify_flow.
12015         * fwprop.c (pass_rtl_fwprop): Likewise.
12016         * modulo-sched.c (pass_sms): Likewise.
12017         * tree-ssa-dom.c (pass_dominator): Likewise.
12018         * tree-ssa-loop-ch.c (pass_ch): Likewise.
12019         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
12020         (pass_tree_loop_done): Likewise.
12021         * tree-ssa-pre.c (execute_pre): Likewise.
12022         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
12023         * tree-ssa-sink.c (pass_sink_code): Likewise.
12024         * tree-vrp.c (pass_vrp): Likewise.
12025
12026 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
12027
12028         * config/v850/constraints.md: New file.
12029         * config/v850/v850.md: Include it.
12030         * config/v850/predicates.md (reg_or_0_operand): Use
12031         satisfies_constraint_G.
12032         (special_symbolref_operand): Use satisfies_constraint_K.
12033         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
12034         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12035         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
12036         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12037         (EXTRA_CONSTRAINT): Delete.
12038         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
12039         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
12040         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
12041
12042 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
12043
12044         PR target/47696
12045         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
12046         description.
12047
12048 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
12049
12050         * config/mcore/constraints.md: New file.
12051         * config/mcore/mcore.md: Include it.
12052         * config/mcore/mcore.c (reg_class_from_letter): Delete.
12053         * config/mcore/mcore.h (reg_class_from_letter): Delete.
12054         (REG_CLASS_FROM_LETTER): Delete.
12055         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
12056         insn_const_int_ok_for_constraint.
12057         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
12058         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
12059         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12060         (EXTRA_CONSTRAINT): Delete.
12061
12062 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12063
12064         PR ada/41929
12065         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
12066         (IS_SIGHANDLER): Define.
12067         (sparc64_is_sighandler): New function, split off from
12068         sparc64_fallback_frame_state.
12069         (sparc_is_sighandler): New function, split off from
12070         sparc_fallback_frame_state.
12071         (sparc64_fallback_frame_state): Merge with ...
12072         (sparc_fallback_frame_state): ... this into ...
12073         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
12074         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
12075         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
12076         stack instead of hardcoded offsets.
12077
12078 2011-02-14  Andriy Gapon  <avg@freebsd.org>
12079
12080         PR target/45808
12081         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
12082
12083 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12084
12085         * configure: Regenerate.
12086
12087 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
12088
12089         PR driver/45731
12090         * gcc.c (asm_options): Correct spec matching --target-help.
12091
12092 2011-02-12  Martin Jambor  <mjambor@suse.cz>
12093
12094         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
12095         to gimple call error.
12096
12097 2011-02-12  Mike Stump  <mikestump@comcast.net>
12098
12099         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
12100         comments in backslash regions.
12101
12102 2011-02-12  Mike Stump  <mikestump@comcast.net>
12103             Jakub Jelinek  <jakub@redhat.com>
12104             Iain Sandoe  <iains@gcc.gnu.org>
12105
12106         PR target/47324
12107         * dwarf2out.c (output_cfa_loc): When required, apply the
12108         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
12109         (output_loc_sequence): Likewise.
12110         (output_loc_operands_raw): Likewise.
12111         (output_loc_sequence_raw): Likewise.
12112         (output_cfa_loc): Likewise.
12113         (output_loc_list): Suppress register number adjustment when
12114         calling output_loc_sequence()
12115         (output_die): Likewise.
12116
12117 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
12118
12119         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12120         Remove macros.
12121         * config/xtensa/xtensa.c (xtensa_register_move_cost,
12122         xtensa_memory_move_cost): New functions.
12123         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
12124
12125 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
12126
12127         PR lto/47225
12128         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
12129         in the current directory.
12130         * configure: Rebuilt.
12131
12132 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
12133
12134         * config/darwin.c (darwin_override_options): Add a hunk missed
12135         from the commit of r168571.  Trim comment line lengths and
12136         correct indents of the preceding block.
12137
12138 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
12139
12140         * gcc.c (driver_handle_option): Concatenate the argument to -F with
12141         the switch.
12142
12143 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
12144
12145         * common.opt (nostartfiles): New Driver option.
12146
12147 2011-02-11  Xinliang David Li  <davidxl@google.com>
12148
12149         PR tree-optimization/47707
12150         * tree-chrec.c (convert_affine_scev): Keep type precision.
12151
12152 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
12153
12154         PR tree-optimization/47420
12155         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
12156
12157 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
12158
12159         PR rtl-optimization/47614
12160         * rtl.h (check_for_inc_dec): Declare.
12161         * dse.c (check_for_inc_dec): Externalize...
12162         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
12163         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
12164
12165 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
12166
12167         PR driver/47678
12168         * gcc.c (main): Do not compile inputs if there were errors in
12169         option handling.
12170         * opts-common.c (read_cmdline_option): Check for wrong language
12171         after other error checks.
12172
12173 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
12174
12175         * cgraph.c: Fix comment typos.
12176         * cgraph.h: Likewise.
12177         * cgraphunit.c: Likewise.
12178         * ipa-cp.c: Likewise.
12179         * ipa-inline.c: Likewise.
12180         * ipa-prop.c: Likewise.
12181         * ipa-pure-const.c: Likewise.
12182         * ipa-ref.c: Likewise.
12183         * ipa-reference.c: Likewise.
12184
12185 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
12186
12187         PR debug/47684
12188         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
12189
12190 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12191
12192         PR testsuite/47400
12193         * doc/sourcebuild.texi (Require Support): Document
12194         dg-require-ascii-locale.
12195
12196 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
12197
12198         * doc/lto.texi (Write summary): Fix missing parentheses.
12199
12200 2011-02-10  DJ Delorie  <dj@redhat.com>
12201
12202         * config/m32c/m32c.c (m32c_option_override): Disable
12203         -fcombine-stack-adjustments until flag value tracking and compare
12204         optimization can be rewritten.
12205
12206 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
12207
12208         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
12209         PROCESSOR_POWER7.
12210         (PROCESSOR_DEFAULT64): Likewise.
12211
12212 2011-02-10  Richard Henderson  <rth@redhat.com>
12213
12214         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
12215         change from 2011-02-03.
12216         * config/rx/rx.c (flags_from_code): Likewise.
12217         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
12218         is valid, n/pz otherwise.
12219         (rx_select_cc_mode): Return CCmode if Y is not zero.
12220
12221 2011-02-10  Richard Guenther  <rguenther@suse.de>
12222
12223         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
12224
12225 2011-02-10  Richard Guenther  <rguenther@suse.de>
12226
12227         PR tree-optimization/47677
12228         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
12229
12230 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
12231
12232         PR target/47665
12233         * combine.c (make_compound_operation): Only change shifts into
12234         multiplication for SCALAR_INT_MODE_P.
12235
12236 2011-02-10  Jie Zhang  <jie@codesourcery.com>
12237
12238         PR testsuite/47622
12239         Revert
12240         2011-02-05  Jie Zhang  <jie@codesourcery.com>
12241         PR debug/42631
12242         * web.c (entry_register): Don't clobber the number of the
12243         first uninitialized reference in used[].
12244
12245 2011-02-09  Richard Guenther  <rguenther@suse.de>
12246
12247         PR tree-optimization/47664
12248         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
12249         all edges again.
12250
12251 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
12252
12253         PR target/46481
12254         PR target/47032
12255         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
12256         PROCESSOR_POWER7.
12257         (PROCESSOR_DEFAULT64): Same.
12258         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
12259
12260 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12261
12262         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
12263
12264 2011-02-09  Martin Jambor  <mjambor@suse.cz>
12265
12266         PR middle-end/45505
12267         * tree-sra.c (struct access): New flags grp_scalar_read and
12268         grp_scalar_write.  Changed description of assignment read and write
12269         flags.
12270         (dump_access): Dump new flags, reorder all of them.
12271         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
12272         to detect multiple scalar reads.
12273         (analyze_access_subtree): Use the new scalar read write flags instead
12274         of the old flags.  Adjusted comments.
12275
12276 2011-02-08  DJ Delorie  <dj@redhat.com>
12277
12278         PR target/47548
12279         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
12280         patterns.
12281
12282 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12283
12284         * config/m68k/uclinux.opt: New.
12285         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
12286
12287 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12288
12289         * config/cris/elf.opt (sim): New Driver option.
12290
12291 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12292
12293         * config/xtensa/elf.opt: New.
12294         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
12295
12296 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12297
12298         * config/vax/elf.opt: New.
12299         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
12300
12301 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12302
12303         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
12304
12305 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12306
12307         * config/gnu-user.opt: New.
12308         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
12309         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
12310         *-*-uclinux*): Use gnu-user.opt.
12311
12312 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
12313
12314         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
12315         * config/i386/gnu.h (CPP_SPEC): Likewise.
12316
12317 2011-02-08  Ian Lance Taylor  <iant@google.com>
12318
12319         * common.opt (fcx-limited-range): Add SetByCombined flag.
12320         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
12321         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
12322         (fassociative-math, freciprocal-math): Likewise.
12323         (funsafe-math-optimizations): Likewise.
12324         * opth-gen.awk: Handle SetByCombined.
12325         * optc-gen.awk: Likewise.
12326         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
12327         (set_unsafe_math_optimizations_flags): Likewise.
12328         * doc/options.texi (Option properties): Document SetByCombined.
12329
12330 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12331
12332         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
12333         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
12334         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
12335         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
12336         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
12337
12338 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
12339
12340         PR tree-optimization/46834
12341         PR tree-optimization/46994
12342         PR tree-optimization/46995
12343         * graphite-sese-to-poly.c (used_outside_reduction): New.
12344         (detect_commutative_reduction): Call used_outside_reduction.
12345         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
12346         translate_scalar_reduction_to_array only when at least one
12347         loop-phi/close-phi tuple has been detected.
12348
12349 2011-02-08  Richard Guenther  <rguenther@suse.de>
12350
12351         PR middle-end/47639
12352         * tree-vect-generic.c (expand_vector_operations_1): Update
12353         stmts here ...
12354         (expand_vector_operations): ... not here.  Cleanup EH info
12355         and the CFG if required.
12356
12357 2011-02-08  Richard Guenther  <rguenther@suse.de>
12358
12359         PR tree-optimization/47641
12360         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
12361         require type compatibility.
12362
12363 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12364
12365         * gimple-low.c (lower_function_body): Don't remove the location of
12366         the return statement here.
12367         (lower_gimple_return): Do it here instead but only if the return
12368         statement is actually used twice.
12369
12370 2011-02-08  Richard Guenther  <rguenther@suse.de>
12371
12372         PR tree-optimization/47632
12373         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
12374         unused up_to_stmt parameter, return whether cfg-cleanup is
12375         necessary, remove EH info properly.
12376         (forward_propagate_into_gimple_cond): Adjust caller.
12377         (forward_propagate_into_cond): Likewise.
12378         (forward_propagate_comparison): Likewise.
12379         (tree_ssa_forward_propagate_single_use_vars): Make
12380         forward_propagate_comparison case similar to the two others.
12381
12382 2011-02-08  Nick Clifton  <nickc@redhat.com>
12383
12384         * config/mn10300/mn10300.opt (mliw): New command line option.
12385         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
12386         (liw_bundling): New automaton.
12387         (liw): New attribute.
12388         (liw_op): New attribute.
12389         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
12390         (movsi_internal): Add LIW attributes.
12391         (andsi3): Likewise.
12392         (iorsi3): Likewise.
12393         (xorsi3): Likewise.
12394         (addsi3): Separate register and immediate alternatives.
12395         Add LIW attributes.
12396         (subsi3): Likewise.
12397         (cmpsi): Likewise.
12398         (aslsi3): Likewise.
12399         (lshrsi3): Likewise.
12400         (ashrsi3): Likewise.
12401         (liw): New pattern.
12402         * config/mn10300/mn10300.c (liw_op_names): New
12403         (mn10300_print_operand): Handle 'W' operand descriptor.
12404         (extract_bundle): New function.
12405         (check_liw_constraints): New function.
12406         (liw_candidate): New function.
12407         (mn10300_bundle_liw): New function.
12408         (mn10300_reorg): New function.
12409         (TARGET_MACHINE_DEPENDENT_REORG): Define.
12410         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12411         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12412         __LIW__ or __NO_LIW__.
12413         * doc/invoke.texi: Describe the -mliw command line option.
12414
12415 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12416
12417         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12418         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12419         pthread_mutex_unlock): Remove.
12420         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12421         * config/pa/t-pa64: Likewise.
12422         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12423         shared libc if not linking against libpthread.
12424         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12425
12426 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
12427
12428         PR target/47558
12429         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12430         on 10.6 and later to ensure that we always use the unwinder from
12431         the system.  Only add -no_compact_unwind when tarteting darwin
12432         10.6 or later.
12433
12434 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
12435
12436         PR target/46997
12437         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12438         (vec_interleave_lowv2sf): Ditto.
12439         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12440         (vec_extract_oddv2sf): Ditto.
12441
12442 2011-02-07  Mike Stump  <mikestump@comcast.net>
12443
12444         PR target/42333
12445         Add __ieee_divdc3 entry point.
12446         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12447         entry point.
12448         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12449         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12450         * config/darwin.c (darwin_rename_builtins): Add.
12451         * config/darwin-protos.h (darwin_rename_builtins): Add.
12452
12453 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
12454
12455         PR target/47636
12456         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12457         for the condition.
12458
12459 2011-02-07  Mike Stump  <mikestump@comcast.net>
12460
12461         * config/darwin.opt (mmacosx-version-min): Update default OS version.
12462
12463 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
12464
12465         PR target/47534
12466         * config/avr/libgcc.S (exit): Move .endfunc
12467
12468 2011-02-07  Richard Guenther  <rguenther@suse.de>
12469
12470         PR tree-optimization/47615
12471         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12472         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12473         (run_scc_vn): Initialize it.
12474         (visit_reference_op_load): Use it.
12475         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12476
12477 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12478
12479         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12480         DImode trapping arithmetic libfuncs.
12481
12482 2011-02-07  Richard Guenther  <rguenther@suse.de>
12483
12484         PR tree-optimization/47621
12485         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12486         two duplicates ...
12487         (execute_update_addresses_taken): ... here.  Make it more
12488         conservative in what we accept.
12489
12490 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
12491
12492         * config/sparc/freebsd.h (ASM_SPEC): Define.
12493         * config/sparc/vxworks.h (ASM_SPEC): Define.
12494
12495 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
12496
12497         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12498
12499 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
12500
12501         * doc/invoke.texi: Remove reference to compiler internals from
12502         user documentation.
12503
12504         * reg-notes.def: Remove REG_VALUE_PROFILE.
12505         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12506
12507 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
12508
12509         PR middle-end/47610
12510         * varasm.c (default_section_type_flags): If decl is NULL,
12511         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12512
12513 2011-02-05  Jie Zhang  <jie@codesourcery.com>
12514
12515         PR debug/42631
12516         * web.c (entry_register): Don't clobber the number of the
12517         first uninitialized reference in used[].
12518
12519 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
12520
12521         PR tree-optimization/46194
12522         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12523         (build_classic_dist_vector_1): Do not represent classic distance
12524         vectors when the access functions are variating in different loops.
12525
12526 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12527
12528         * config/mips/iris6.opt: New.
12529         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12530
12531 2011-02-04  Richard Henderson  <rth@redhat.com>
12532             Steve Ellcey  <sje@cup.hp.com>
12533
12534         PR target/46997
12535         * config/ia64/predicates.md (mux1_brcst_element): New.
12536         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12537         * config/ia64/ia64.c (ia64_unpack_assemble): New.
12538         (ia64_unpack_sign): New.
12539         (ia64_expand_unpack): Rewrite using new routines.
12540         (ia64_expand_widen_sum): Ditto.
12541         (ia64_expand_dot_prod_v8qi): Ditto.
12542         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12543         routines, add endian check.
12544         (pmpy2_even): Rename from pmpy2_r, add endian check.
12545         (pmpy2_odd): Rename from pmpy2_l, add endian check.
12546         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12547         (vec_widen_smult_hi_v4hi): Ditto.
12548         (vec_widen_umult_lo_v4hi): Ditto.
12549         (vec_widen_umult_hi_v4hi): Ditto.
12550         (mulv2si3): Change endian checks.
12551         (sdot_prodv4hi): Rewrite with new calls.
12552         (udot_prodv4hi): New.
12553         (vec_pack_ssat_v4hi): Add endian check.
12554         (vec_pack_usat_v4hi): Ditto.
12555         (vec_pack_ssat_v2si): Ditto.
12556         (max1_even): Rename from max1_r, add endian check.
12557         (max1_odd): Rename from max1_l, add endian check.
12558         (*mux1_rev): Format change.
12559         (*mux1_mix): Ditto.
12560         (*mux1_shuf): Ditto.
12561         (*mux1_alt): Ditto.
12562         (*mux1_brcst_v8qi): Use new predicate.
12563         (vec_extract_evenv8qi): Remove endian check.
12564         (vec_extract_oddv8qi): Ditto.
12565         (vec_interleave_lowv4hi): Format change.
12566         (vec_interleave_highv4hi): Ditto.
12567         (mix2_even): Rename from mix2_r, add endian check.
12568         (mix2_odd): Rename from mux2_l, add endian check.
12569         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12570         (vec_extract_evenodd_helper): Format change.
12571         (vec_extract_evenv4hi): Remove endian check.
12572         (vec_extract_oddv4hi): Remove endian check.
12573         (vec_interleave_lowv2si): Format change.
12574         (vec_interleave_highv2si): Format change.
12575         (vec_initv2si): Remove endian check.
12576         (vecinit_v2si): Add endian check.
12577         (reduc_splus_v2sf): Add endian check.
12578         (reduc_smax_v2sf): Ditto.
12579         (reduc_smin_v2sf): Ditto.
12580         (vec_initv2sf): Remove endian check.
12581         (fpack): Add endian check.
12582         (fswap): Add endian check.
12583         (vec_interleave_highv2sf): Add endian check.
12584         (vec_interleave_lowv2sf): Add endian check.
12585         (fmix_lr): Add endian check.
12586         (vec_setv2sf): Format change.
12587         (*vec_extractv2sf_0_be): Use shift to extract operand.
12588         (*vec_extractv2sf_1_be): New.
12589         (vec_pack_trunc_v4hi): Add endian check.
12590         (vec_pack_trunc_v2si): Format change.
12591
12592 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
12593
12594         PR inline-asm/23200
12595         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
12596         do bb, locus and block comparison and disallow loads if it is not set.
12597         (stmt_is_replaceable_p): New function.
12598         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12599         callers.
12600         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12601         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12602         SSA_NAME_DEF_STMT.
12603         * tree-flow.h (stmt_is_replaceable_p): New prototype.
12604
12605 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12606
12607         * config/rs6000/xilinx.opt: New.
12608         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12609
12610 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12611
12612         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12613
12614 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
12615
12616         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12617         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12618         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12619         secondary_reload_info, xtensa_secondary_reload): Remove.
12620         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12621         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12622         (xtensa_preferred_reload_class): Make static. Change return and
12623         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12624         Use CONST_DOUBLE_P predicate.
12625         (xtensa_preferred_output_reload_class): New function.
12626         (xtensa_secondary_reload): Make static.
12627
12628 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
12629
12630         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12631         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12632         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12633
12634 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12635
12636         PR middle-end/31490
12637         * output.h (SECTION_RELRO): Define.
12638         (SECTION_MACH_DEP): Adjust.
12639         (get_variable_section): New prototype.
12640         * varpool.c (varpool_finalize_named_section_flags): New function.
12641         (varpool_assemble_pending_decls): Call it.
12642         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12643         * cgraphunit.c (cgraph_output_in_order): Call
12644         varpool_finalize_named_section_flags.
12645         * varasm.c (get_section): Allow section flags conflicts between
12646         relro and read-only sections if the section hasn't been declared yet.
12647         Set SECTION_OVERRIDE after diagnosing section type conflict.
12648         (get_variable_section): No longer static.
12649         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12650         readonly sections that need relocations.
12651         (decl_readonly_section_1): New function.
12652         (decl_readonly_section): Use it.
12653
12654         Revert:
12655         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
12656                     Steve Ellcey  <sje@cup.hp.com>
12657
12658         PR middle-end/31490
12659         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12660         if section attribute used.
12661
12662 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12663
12664         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12665         * config/darwin.c (SECTION_NO_ANCHOR): Define.
12666         (darwin_init_sections): Remove assertion.
12667
12668 2011-02-03  Nick Clifton  <nickc@redhat.com>
12669
12670         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12671         lt and ge.
12672         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12673         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12674         instead of "n" and "pz".
12675         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12676         CC_FLAG_S.
12677
12678 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12679
12680         PR target/47312
12681         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12682         fma, expand FMA_EXPR as fma{,f,l} call.
12683
12684         PR lto/47274
12685         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12686         copy them into a unsigned char variable and pass address of it to
12687         lto_output_data_stream.
12688
12689         PR target/47564
12690         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12691         around backend_init_target and lang_dependent_init_target calls.
12692         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12693         (verify_cgraph_node): Don't call set_cfun here.  Use
12694         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12695         Set error_found for incorrectly represented calls to thunks.
12696
12697 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
12698
12699         PR debug/43092
12700         PR rtl-optimization/43494
12701         * rtl.h (for_each_inc_dec_fn): New type.
12702         (for_each_inc_dec): Declare.
12703         * rtlanal.c (struct for_each_inc_dec_ops): New type.
12704         (for_each_inc_dec_find_inc_dec): New fn.
12705         (for_each_inc_dec_find_mem): New fn.
12706         (for_each_inc_dec): New fn.
12707         * dse.c (struct insn_size): Remove.
12708         (replace_inc_dec, replace_inc_dec_mem): Remove.
12709         (emit_inc_dec_insn_before): New fn.
12710         (check_for_inc_dec): Use it, along with for_each_inc_dec.
12711         (canon_address): Pass mem modes to cselib_lookup.
12712         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
12713         (cselib_lookup_from_insn): Likewise.
12714         (cselib_subst_to_values): Likewise.
12715         * cselib.c (find_slot_memmode): New var.
12716         (cselib_find_slot): New fn.  Use it instead of
12717         htab_find_slot_with_hash everywhere.
12718         (entry_and_rtx_equal_p): Use find_slot_memmode.
12719         (autoinc_split): New fn.
12720         (rtx_equal_for_cselib_p): Rename and implement in terms of...
12721         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
12722         Deal with autoinc.  Special-case recursion into MEMs.
12723         (cselib_hash_rtx): Likewise.
12724         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
12725         address and MEM modes.
12726         (cselib_subst_to_values): Add memmode, pass it on.
12727         Deal with autoinc.
12728         (cselib_lookup): Add memmode argument, pass it on.
12729         (cselib_lookup_from_insn): Add memmode.
12730         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12731         (struct cselib_record_autoinc_data): New.
12732         (cselib_record_autoinc_cb): New fn.
12733         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
12734         mode to cselib_lookup.  Reset autoinced REGs here instead of...
12735         (cselib_process_insn): ... here.
12736         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12737         to cselib_lookup.
12738         (add_uses): Likewise, also to cselib_subst_to_values.
12739         (add_stores): Likewise.
12740         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
12741         cselib_subst_to_values.
12742         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
12743         * gcse.c (do_local_cprop): Adjusted.
12744         * postreload.c (reload_cse_simplify_set): Adjusted.
12745         (reload_cse_simplify_operands): Adjusted.
12746         * sel-sched-dump (debug_mem_addr_value): Pass mode.
12747
12748 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
12749
12750         PR tree-optimization/45122
12751         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12752         unsafe assumptions when there's more than one loop exit.
12753
12754 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12755
12756         PR target/47272
12757         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12758         Document using vector double with the load/store builtins, and
12759         that the load/store builtins always use Altivec instructions.
12760
12761         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12762         to use altivec memory instructions, even on VSX.
12763         (vector_altivec_store_<mode>): Ditto.
12764
12765         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12766         function.
12767
12768         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12769         V2DF, V2DI support to load/store overloaded builtins.
12770
12771         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12772         altivec load/store builtins for V2DF/V2DI types.
12773
12774         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12775         set avoid indexed addresses on power6 if -maltivec.
12776         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12777         vector_altivec_load/vector_altivec_store builtins.
12778         (altivec_expand_st_builtin): Ditto.
12779         (altivec_expand_builtin): Add VSX memory builtins.
12780         (rs6000_init_builtins): Add V2DI types to internal types.
12781         (altivec_init_builtins): Add support for V2DF/V2DI altivec
12782         load/store builtins.
12783         (rs6000_address_for_altivec): Insure memory address is appropriate
12784         for Altivec.
12785
12786         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12787         vec_vsx_ld and vec_vsx_st.
12788         (vsx_store_<mode>): Ditto.
12789
12790         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12791         variables to hold long long types for VSX vector memory builtins.
12792         (RS6000_BTI_unsigned_long_long): Ditto.
12793         (long_long_integer_type_internal_node): Ditti.
12794         (long_long_unsigned_type_internal_node): Ditti.
12795
12796         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12797         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12798         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12799
12800         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12801         short cuts.
12802         (vec_vsx_st): Ditto.
12803
12804 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12805
12806         * config/pa/pa-hpux10.opt: New.
12807         * config/hpux11.opt (pthread): New Driver option.
12808         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12809         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12810
12811 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12812
12813         * config/ia64/vms.opt: New.
12814         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12815
12816 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
12817
12818         PR target/47580
12819         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12820         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12821         generator functions.
12822         (vsx_floatuns<VSi><mode>2): Ditto.
12823         (vsx_fix_trunc<mode><VSi>2): Ditto.
12824         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12825
12826 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12827
12828         * config/i386/djgpp.opt (posix): New Driver option.
12829
12830 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
12831
12832         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12833         Move to the unsupported targets list.
12834
12835 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
12836
12837         PR rtl-optimization/47525
12838         * df-scan.c: Update copyright years.
12839         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12840         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12841
12842 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12843
12844         * config/i386/sysv4.h (TARGET_VERSION): Remove.
12845         (SUBTARGET_RETURN_IN_MEMORY): Remove.
12846         (ASM_OUTPUT_ASCII): Remove.
12847         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12848
12849 2011-02-02  Jeff Law  <law@redhat.com>
12850
12851         PR middle-end/47543
12852         * reload.c (find_reloads_address): Handle reg+d address where both
12853         components are invalid by reloading the entire address.
12854
12855 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
12856             Richard Guenther  <rguenther@suse.de>
12857
12858         PR tree-optimization/40979
12859         PR bootstrap/47044
12860         * passes.c (init_optimization_passes): After LIM call copy_prop
12861         and DCE to clean up.
12862         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12863
12864 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
12865
12866         PR tree-optimization/47576
12867         PR tree-optimization/47555
12868         * doc/invoke.texi (scev-max-expr-complexity): Documented.
12869         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12870         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12871         * tree-scalar-evolution.c (follow_ssa_edge): Use
12872         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12873
12874 2011-02-02  Richard Guenther  <rguenther@suse.de>
12875
12876         PR tree-optimization/47566
12877         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12878
12879 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
12880
12881         PR debug/47106
12882         PR debug/47402
12883         * tree-inline.c (declare_return_variable): Remove unused caller
12884         variable.
12885
12886         PR debug/47106
12887         PR debug/47402
12888         * tree-flow-inline.h (clear_is_used, is_used_p): New.
12889         * cfgexpand.c (account_used_vars_for_block): Use them.
12890         * tree-nrv.c (tree_nrv): Likewise.
12891         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12892         (dump_scope_block): Likewise.
12893         (remove_unused_locals): Likewise.
12894
12895         PR debug/47106
12896         PR debug/47402
12897         * tree-inline.c (declare_return_variable): Add result decl to
12898         local decls only once.
12899         * gimple-low.c (record_vars_into): Mark newly-created variables
12900         as referenced.
12901
12902 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
12903
12904         PR debug/47498
12905         PR debug/47501
12906         PR debug/45136
12907         PR debug/45130
12908         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12909         debug insns.
12910         (no_real_insns_p, schedule_block, set_priorities): Drop special
12911         treatment of boundary debug insns.
12912         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12913         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12914         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12915         (BOUNDARY_DEBUG_INSN_P): Likewise.
12916         (SCHEDULE_DEBUG_INSN_P): Likewise.
12917         * sched-rgn.c (init_ready_list): Drop special treatment of
12918         boundary debug insns.
12919         * final.c (rest_of_clean_state): Clear notes' BB.
12920
12921 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12922
12923         * config/openbsd.opt (assert=): New Driver option.
12924
12925 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12926
12927         * config/i386/nto.opt: New.
12928         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12929
12930 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12931
12932         * config/i386/netware.opt: New.
12933         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12934
12935 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12936
12937         * config/interix.opt (posix): New Driver option.
12938
12939 2011-02-01  DJ Delorie  <dj@redhat.com>
12940
12941         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12942
12943         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12944         class for A0/A1.
12945
12946 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
12947
12948         PR tree-optimization/47561
12949         * toplev.c (process_options): Print the Graphite flags.  Add
12950         flag_loop_flatten to the list of options requiring Graphite.
12951
12952 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12953
12954         * config/i386/cygming.opt (posix): New Driver option.
12955
12956 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12957
12958         * config/arm/vxworks.opt: New.
12959         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12960
12961 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12962
12963         * config/alpha/elf.opt: New.
12964         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12965         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12966
12967 2011-02-01  Richard Guenther  <rguenther@suse.de>
12968
12969         PR tree-optimization/47559
12970         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12971         store-motion on references that can throw.
12972
12973 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
12974
12975         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12976         * tree-pass.h (TDF_CSELIB): New macro.
12977         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12978         cselib_lookup): Check for it rather than for TDF_DETAILS.
12979
12980 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
12981
12982         PR driver/47547
12983         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12984         is HOST_BIT_BUCKET.
12985
12986         * opts.c (finish_options): Don't add x_aux_base_name if it is
12987         HOST_BIT_BUCKET.
12988
12989 2011-02-01  Richard Guenther  <rguenther@suse.de>
12990
12991         PR tree-optimization/47555
12992         Revert
12993         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
12994
12995         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12996
12997 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
12998
12999         PR gcc/46692
13000         * config/lm32/t-lm32: Add multilib for all CPU options.
13001
13002 2011-02-01  Richard Guenther  <rguenther@suse.de>
13003
13004         PR tree-optimization/47541
13005         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13006         sure to have a field at offset zero.
13007
13008 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
13009
13010         * config/arc/arc.opt (EB, EL): New Driver options.
13011
13012 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
13013
13014         * config/alpha/osf5.opt: New.
13015         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
13016
13017 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
13018
13019         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
13020
13021 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
13022
13023         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
13024         -floop-interchange.
13025         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
13026         is an alias of -floop-interchange and that it requires the
13027         Graphite infrastructure.
13028         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
13029         flag_loop_interchange based on the value of flag_tree_loop_linear.
13030
13031 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
13032             Richard Guenther  <rguenther@suse.de>
13033
13034         PR tree-optimization/47538
13035         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
13036         type instead of r1type, except for comparisons.  For right
13037         shifts and comparisons punt if there are mismatches in
13038         sizetype vs. non-sizetype types.
13039
13040 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13041
13042         * doc/sourcebuild.texi (Effective-Target Keywords): Document
13043         avx_runtime.
13044
13045 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13046
13047         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
13048         version number.
13049         * configure: Regenerate.
13050
13051 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13052
13053         * configure.ac (gcc_cv_ld_static_option): Define.
13054         (gcc_cv_ld_dynamic_option): Define.
13055         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
13056         instead.
13057         (HAVE_LD_STATIC_DYNAMIC): Update message.
13058         (LD_STATIC_OPTION): Define.
13059         (LD_DYNAMIC_OPTION): Define.
13060         * configure: Regenerate.
13061         * config.in: Regenerate.
13062         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
13063         HAVE_LD_STATIC_DYNAMIC]: Use them.
13064
13065 2011-01-31  Nick Clifton  <nickc@redhat.com>
13066
13067         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
13068         registers inside interrupt handlers if the handler is not a leaf
13069         function.
13070
13071 2011-01-31  Nick Clifton  <nickc@redhat.com>
13072
13073         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
13074         reg_renumber returning an INVALID_REGNUM.
13075
13076 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
13077
13078         PR libgcj/44341
13079         * doc/install.texi: Document host options discarded when cross
13080         configuring target libraries.
13081
13082 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
13083
13084         Reverted:
13085         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
13086         PR debug/45136
13087         PR debug/45130
13088         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13089         debug insns.
13090         (no_real_insns_p, schedule_block, set_priorities): Drop special
13091         treatment of boundary debug insns.
13092         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13093         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13094         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13095         (BOUNDARY_DEBUG_INSN_P): Likewise.
13096         (SCHEDULE_DEBUG_INSN_P): Likewise.
13097         * sched-rgn.c (init_ready_list): Drop special treatment of
13098         boundary debug insns.
13099         * final.c (rest_of_clean-state): Clear notes' BB.
13100
13101 2011-01-31  Alan Modra  <amodra@gmail.com>
13102
13103         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
13104         toc relative expressions as we do in print_operand_address.
13105
13106 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
13107
13108         * doc/extend.texi: Follow spelling conventions.
13109         * doc/invoke.texi: Fix a typo.
13110
13111 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
13112
13113         * config/hpux11.opt: New.
13114         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
13115         ia64*-*-hpux*): Use hpux11.opt.
13116
13117 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
13118
13119         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
13120         to tmake_file.
13121
13122 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
13123
13124         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
13125         support sites.
13126
13127 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
13128
13129         * doc/install.texi (Binaries): Remove outdated reference for
13130         Motorola 68HC11/68HC12 downloads.
13131
13132 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
13133
13134         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
13135         Drepper's paper.
13136
13137 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
13138
13139         PR bootstrap/47147
13140         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
13141         used by NetBSD.
13142
13143 2011-01-28  Ahmad Sharif  <asharif@google.com>
13144
13145         * value-prof.c (check_counter): Corrected error message.
13146
13147 2011-01-29  Jie Zhang  <jie@codesourcery.com>
13148
13149         * config/arm/arm.c (arm_legitimize_reload_address): New.
13150         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13151         arm_legitimize_reload_address.
13152         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
13153
13154 2011-01-28  Ian Lance Taylor  <iant@google.com>
13155
13156         * godump.c (go_define): Ignore macros whose definitions include
13157         two adjacent operands.
13158
13159 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
13160
13161         PR target/42894
13162         * varasm.c (force_const_mem): Store copy of x in desc->constant
13163         instead of x itself.
13164         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
13165         itself into REG_EQUAL note.
13166
13167 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
13168
13169         * config/freebsd.opt (posix, rdynamic): New Driver options.
13170
13171 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13172
13173         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
13174         -Bstatic/-Bdynamic.
13175         * configure: Regenerate.
13176
13177 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
13178
13179         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
13180         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
13181
13182 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
13183
13184         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
13185         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
13186         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13187         (s390_preferred_reload_class): Make static. Change return and
13188         'rclass' argument type to reg_class_t.
13189
13190 2011-01-27  Jan Hubicka  <jh@suse.cz>
13191
13192         PR middle-end/46949
13193         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
13194         (process_function_and_variable_attributes): Check defined weakrefs.
13195
13196 2011-01-27  Martin Jambor  <mjambor@suse.cz>
13197
13198         PR tree-optimization/47228
13199         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
13200         build_ref_for_offset.
13201
13202 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13203
13204         * config/spu/spu-elf.h (ASM_SPEC): Remove.
13205
13206 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
13207
13208         PR rtl-optimization/46856
13209         * postreload.c (reload_combine_recognize_const_pattern): Do not
13210         separate cc0 setter and user on cc0 targets.
13211
13212 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
13213
13214         PR c/43082
13215         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
13216         passed a VOID_TYPE expression, immediately emit an error and
13217         return error_mark_node.
13218
13219 2011-01-26  Jeff Law  <law@redhat.com>
13220
13221         PR rtl-optimization/47464
13222         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
13223         rather than may_trap_p as needed.
13224
13225 2011-01-26  DJ Delorie  <dj@redhat.com>
13226
13227         PR rtl-optimization/46878
13228         * combine.c (insn_a_feeds_b): Check for the implicit cc0
13229         setter/user dependency as well.
13230
13231 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
13232
13233         PR rtl-optimization/44469
13234         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
13235         after removing trivially dead basic blocks.
13236
13237 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13238
13239         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
13240         * config/frv/frv.h (LINK_SPEC): Likewise.
13241         * config/i386/netware.h (LINK_SPEC): Likewise.
13242         * config/m68k/linux.h (ASM_SPEC): Likewise.
13243         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
13244         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13245         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13246         * config/sparc/linux.h (ASM_SPEC): Likewise.
13247         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13248         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13249
13250 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13251
13252         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
13253         * config/frv/frv.h (ASM_SPEC): Likewise.
13254         * config/m68k/linux.h (ASM_SPEC): Likewise.
13255         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13256         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
13257         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13258         * config/sparc/linux.h (ASM_SPEC): Likewise.
13259         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13260         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13261
13262 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13263
13264         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
13265         * config/frv/frv.h (LINK_SPEC): Likewise.
13266         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13267
13268 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13269
13270         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
13271         * config/frv/frv.h (ASM_SPEC): Likewise.
13272         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
13273         * config/m68k/linux.h (ASM_SPEC): Likewise.
13274         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13275         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13276         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13277         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
13278         * config/sparc/linux.h (ASM_SPEC): Likewise.
13279         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13280         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13281         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
13282
13283 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
13284
13285         PR target/46997
13286         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
13287         (*mux2): Ditto.
13288         (vec_extract_evenodd_help): Ditto.
13289         (vec_extract_evenv4hi): Ditto.
13290         (vec_extract_oddv4hi): Ditto.
13291         (vec_interleave_lowv2si): Ditto.
13292         (vec_interleave_highv2si): Ditto.
13293         (vec_extract_evenv2si): Ditto.
13294         (vec_extract_oddv2si: Ditto.
13295         (vec_pack_trunc_v2si): Ditto.
13296
13297 2011-01-22  Jan Hubicka  <jh@suse.cz>
13298
13299         PR target/47237
13300         * cgraph.h (cgraph_local_info): New field can_change_signature.
13301         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
13302         signature can change.
13303         (ipcp_estimate_growth): Call sequence simplify only if calle signature
13304         can change.
13305         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
13306         (cgraph_function_versioning): We can not change signature of functions
13307         that don't allow that.
13308         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
13309         (lto_input_node): Likewise.
13310         * ipa-inline.c (compute_inline_parameters): Compute
13311         local.can_change_signature.
13312         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
13313         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
13314         functions that can not change signature.
13315         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
13316         init_cumulative_args): Do not use local calling conventions
13317         for functions that can not change signature.
13318
13319 2011-01-22  Jan Hubicka  <jh@suse.cz>
13320
13321         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
13322
13323 2011-01-26  Richard Guenther  <rguenther@suse.de>
13324
13325         PR tree-optimization/47190
13326         * cgraphunit.c (process_common_attributes): New function.
13327         (process_function_and_variable_attributes): Use it.
13328
13329 2011-01-26  Richard Guenther  <rguenther@suse.de>
13330
13331         PR lto/47423
13332         * cgraphbuild.c (record_eh_tables): Record reference to personality
13333         function.
13334
13335 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
13336
13337         PR debug/45454
13338         * sel-sched.c (moveup_expr): Don't let debug insns prevent
13339         non-debug insns from moving up.
13340
13341 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
13342
13343         PR target/40125
13344         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
13345         t-dlldir{,-x} fragment for build and add it to tmake_file.
13346         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
13347         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
13348         * config/i386/t-dlldir: New file.
13349         (SHLIB_DLLDIR): Define.
13350         * config/i386/t-dlldir-x: New file.
13351         (SHLIB_DLLDIR): Define.
13352         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
13353         (SHLIB_INSTALL): Use it.
13354
13355 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
13356
13357         PR target/47246
13358         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
13359         lower bound of the allowed Thumb-2 coprocessor load/store
13360         index range to -256. Add explaining comment.
13361
13362 2011-01-25  Ian Lance Taylor  <iant@google.com>
13363
13364         * godump.c (go_define): Improve lexing of macro expansion to only
13365         accept expressions which match Go spec.
13366
13367 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
13368
13369         PR c++/43601
13370         * tree.c (handle_dll_attribute): Handle it.
13371         * doc/extend.texi (@item dllexport): Mention it.
13372         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
13373
13374 2011-01-25  Ian Lance Taylor  <iant@google.com>
13375
13376         PR tree-optimization/26854
13377         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
13378         (decl_jump_unsafe): Move higher in file, with no other change.
13379         (bind): Set has_jump_unsafe_decl if appropriate.
13380         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
13381         (check_earlier_gotos): Likewise.
13382         (c_check_switch_jump_warnings): Likewise.
13383
13384 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
13385
13386         * doc/invoke.texi (Warning Options): Add missing hyphen.
13387         (-fprofile-dir): Minor grammatical fixes.
13388         (-fbranch-probabilities): Likewise.
13389
13390 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
13391
13392         PR debug/45136
13393         PR debug/45130
13394         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13395         debug insns.
13396         (no_real_insns_p, schedule_block, set_priorities): Drop special
13397         treatment of boundary debug insns.
13398         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13399         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13400         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13401         (BOUNDARY_DEBUG_INSN_P): Likewise.
13402         (SCHEDULE_DEBUG_INSN_P): Likewise.
13403         * sched-rgn.c (init_ready_list): Drop special treatment of
13404         boundary debug insns.
13405         * final.c (rest_of_clean-state): Clear notes' BB.
13406
13407 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13408
13409         * Makefile.in (LAMBDA_H): Removed.
13410         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13411         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13412         lambda-trans.o, and tree-loop-linear.o.
13413         (lto-symtab.o): Remove dependence on LAMBDA_H.
13414         (tree-loop-linear.o): Remove rule.
13415         (lambda-mat.o): Same.
13416         (lambda-trans.o): Same.
13417         (lambda-code.o): Same.
13418         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13419         (tree-vect-slp.o): Same.
13420         * hwint.h (gcd): Moved here.
13421         (least_common_multiple): Same.
13422         * lambda-code.c: Removed.
13423         * lambda-mat.c: Removed.
13424         * lambda-trans.c: Removed.
13425         * lambda.h: Removed.
13426         * tree-loop-linear.c: Removed.
13427         * lto-symtab.c: Do not include lambda.h.
13428         * omega.c (gcd): Removed.
13429         * passes.c (init_optimization_passes): Remove pass_linear_transform.
13430         * tree-data-ref.c (print_lambda_vector): Moved here.
13431         (lambda_vector_copy): Same.
13432         (lambda_matrix_copy): Same.
13433         (lambda_matrix_id): Same.
13434         (lambda_vector_first_nz): Same.
13435         (lambda_matrix_row_add): Same.
13436         (lambda_matrix_row_exchange): Same.
13437         (lambda_vector_mult_const): Same.
13438         (lambda_vector_negate): Same.
13439         (lambda_matrix_row_negate): Same.
13440         (lambda_vector_equal): Same.
13441         (lambda_matrix_right_hermite): Same.
13442         * tree-data-ref.h: Do not include lambda.h.
13443         (lambda_vector): Moved here.
13444         (lambda_matrix): Same.
13445         (dependence_level): Same.
13446         (lambda_transform_legal_p): Removed declaration.
13447         (lambda_collect_parameters): Same.
13448         (lambda_compute_access_matrices): Same.
13449         (lambda_vector_gcd): Same.
13450         (lambda_vector_new): Same.
13451         (lambda_vector_clear): Same.
13452         (lambda_vector_lexico_pos): Same.
13453         (lambda_vector_zerop): Same.
13454         (lambda_matrix_new): Same.
13455         * tree-flow.h (least_common_multiple): Removed declaration.
13456         * tree-parloops.c (lambda_trans_matrix): Moved here.
13457         (LTM_MATRIX): Same.
13458         (LTM_ROWSIZE): Same.
13459         (LTM_COLSIZE): Same.
13460         (LTM_DENOMINATOR): Same.
13461         (lambda_trans_matrix_new): Same.
13462         (lambda_matrix_vector_mult): Same.
13463         (lambda_transform_legal_p): Same.
13464         * tree-pass.h (pass_linear_transform): Removed declaration.
13465         * tree-ssa-loop.c (tree_linear_transform): Removed.
13466         (gate_tree_linear_transform): Removed.
13467         (pass_linear_transform): Removed.
13468         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13469         flag_loop_interchange.
13470
13471 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13472
13473         PR tree-optimization/47265
13474         PR tree-optimization/47443
13475         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13476         if name still has some uses.
13477
13478 2011-01-25  Martin Jambor  <mjambor@suse.cz>
13479
13480         PR tree-optimization/47382
13481         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13482         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13483
13484 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
13485
13486         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13487         sjlj_except_unwind_info.
13488
13489 2011-01-25  Richard Guenther  <rguenther@suse.de>
13490
13491         PR tree-optimization/47426
13492         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13493         visible functions results escape.
13494
13495 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13496
13497         PR target/45701
13498         * config/arm/arm.c (any_sibcall_uses_r3): New function.
13499         (arm_get_frame_offsets): Use it.
13500
13501 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13502             Jakub Jelinek  <jakub@redhat.com>
13503
13504         PR tree-optimization/47271
13505         * tree-if-conv.c (bb_postdominates_preds): New.
13506         (if_convertible_bb_p): Call bb_postdominates_preds.
13507         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13508         (predicate_scalar_phi): Call bb_postdominates_preds.
13509
13510 2011-01-25  Nick Clifton  <nickc@redhat.com>
13511
13512         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13513         * config/rx/rx.c (rx_function_value): Likewise.
13514         (rx_promote_function_mode): Likewise.
13515         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13516         in order to make it legitimate.
13517         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13518         make sure that the first operand is the same as the result register.
13519         (addsi3_unspec): Delete.
13520         (subdi3): Do not accept immediate operands.
13521         (subdi3_internal): Likewise.
13522
13523 2011-01-25  Jeff Law  <law@redhat.com>
13524
13525         PR rtl-optimization/37273
13526         * ira-costs.c (scan_one_insn): Detect constants living in memory and
13527         handle them like argument loads from stack slots.  Do not double
13528         count memory for memory constants and argument loads from stack slots.
13529
13530 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13531
13532         PR tree-optimization/47427
13533         PR tree-optimization/47428
13534         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13535         coalesce if the new root var would be TREE_READONLY.
13536
13537 2011-01-25  Richard Guenther  <rguenther@suse.de>
13538
13539         PR middle-end/47414
13540         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13541         correct type for TBAA.
13542
13543 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13544
13545         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13546         (close_phi_written_to_memory): Call for_each_index with
13547         dr_indices_valid_in_loop.
13548
13549 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13550
13551         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13552         when it is initialized.
13553
13554 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13555
13556         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13557         call to graphite_find_data_references_in_stmt.
13558         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13559         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
13560         call to graphite_find_data_references_in_stmt.
13561         (analyze_drs_in_stmts): Same.
13562         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13563         in which the scalar analysis of indices is performed.
13564         (create_data_ref): Same.  Update call to dr_analyze_indices.
13565         (find_data_references_in_stmt): Update call to create_data_ref.
13566         (graphite_find_data_references_in_stmt): Same.
13567         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13568         declaration.
13569         (create_data_ref): Same.
13570         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13571         call to create_data_ref.
13572
13573 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13574
13575         * graphite-sese-to-poly.c (build_poly_scop): Move
13576         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13577
13578 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13579
13580         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13581         VAR_DECL, PARM_DECL, and RESULT_DECL.
13582
13583 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13584
13585         * graphite-dependences.c (reduction_dr_1): Allow several reductions
13586         in a reduction PBB.
13587         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13588         that have already been marked as PBB_IS_REDUCTION.
13589
13590 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13591
13592         * graphite-scop-detection.c (same_close_phi_node): New.
13593         (remove_duplicate_close_phi): New.
13594         (make_close_phi_nodes_unique): New.
13595         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13596
13597 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13598
13599         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13600         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13601         of both data references to be the same.
13602
13603 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13604
13605         * graphite-dependences.c (build_lexicographical_constraint): Remove
13606         the gdim parameter.
13607         (build_lexicographical_constraint): Adjust call to
13608         ppl_powerset_is_empty.
13609         (dependence_polyhedron): Same.
13610         (graphite_legal_transform_dr): Same.
13611         (graphite_carried_dependence_level_k): Same.
13612         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13613         parameter.
13614         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13615
13616 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13617
13618         * graphite-sese-to-poly.c
13619         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13620         (close_phi_written_to_memory): New.
13621         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13622         and unshare_expr.
13623
13624 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13625
13626         * doc/install.texi: Update the expected version number of PPL to 0.11.
13627         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13628         #if PPL_VERSION_MINOR < 11.
13629
13630 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13631
13632         * graphite-dependences.c: Include graphite-cloog-util.h.
13633         (new_poly_ddr): Inlined into dependence_polyhedron.
13634         (free_poly_ddr): Moved close by new_poly_ddr.
13635         (dependence_polyhedron_1): Renamed dependence_polyhedron.
13636         Early return NULL when ppl_powerset_is_empty returns true.
13637         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
13638         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
13639         (graphite_legal_transform_dr): Call new_poly_ddr.
13640         (graphite_carried_dependence_level_k): Same.
13641         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
13642         (dot_transformed_deps_stmt_1): Removed.
13643         (dot_deps_stmt_1): Call dot_deps_stmt_2.
13644         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
13645         (dot_deps_1): Call dot_deps_2.
13646         * Makefile.in (graphite-dependences.o): Add missing dependence on
13647         graphite-cloog-util.h.
13648
13649 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13650
13651         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13652         (build_lexicographical_constraint): Same.
13653         (dependence_polyhedron_1): Same.
13654         (graphite_legal_transform_dr): Same.
13655         (graphite_carried_dependence_level_k): Same.
13656         * graphite-ppl.c (ppl_powerset_is_empty): New.
13657         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13658         * tree-data-ref.c (dump_data_reference): Print the basic block index.
13659
13660 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13661
13662         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13663         the "a followed by b" relation and document it.
13664
13665 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13666
13667         * graphite-dependences.c (build_lexicographical_constraint): Stop the
13668         iteration when the bag of constraints is empty.
13669
13670 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13671
13672         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13673
13674 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13675
13676         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13677         nest and two loop depths as parameters.
13678         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13679         lst_perfect_nestify.
13680
13681 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13682
13683         * graphite-dependences.c (print_pddr): Call
13684         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13685
13686 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13687
13688         * graphite-ppl.c (debug_gmp_value): New.
13689         * graphite-ppl.h (debug_gmp_value): Declared.
13690
13691 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
13692
13693         * doc/install.texi: Document availability of cloog-0.16.
13694
13695 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
13696
13697         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13698         invalid postdominance info.
13699
13700 2011-01-24  Jan Hubicka  <jh@suse.cz>
13701
13702         PR c/21659
13703         * doc/extend.texi (weak pragma): Drop claim that it must
13704         appear before definition.
13705         * varasm.c (merge_weak, declare_weak): Only sanity check
13706         that DECL is not output at a time it is declared weak.
13707
13708 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
13709
13710         * machmode.def: Fixed comments.
13711
13712 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
13713
13714         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13715
13716 2011-01-24  Paul Koning  <ni1d@arrl.net>
13717
13718         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13719         WORDS_BIG_ENDIAN.
13720
13721 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
13722
13723         PR target/46519
13724         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13725         (block_info): Add scanned and prev.
13726         (move_or_delete_vzeroupper_2): Return if the basic block
13727         has been scanned and the upper 128bit state is unchanged
13728         from the last scan.
13729         (move_or_delete_vzeroupper_1): Return true if the exit
13730         state is changed.
13731         (move_or_delete_vzeroupper): Visit basic blocks using the
13732         work-list based algorithm based on vt_find_locations in
13733         var-tracking.c.
13734
13735         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13736
13737 2011-01-24  Nick Clifton  <nickc@redhat.com>
13738
13739         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13740         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13741         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
13742         then define __v850e1__.
13743         * doc/invoke.texi: Document -mv850es.
13744
13745 2011-01-24  Richard Henderson  <rth@redhat.com>
13746
13747         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13748         compound unordered comparisons.
13749         * config/rx/rx.c (rx_split_fp_compare): Remove.
13750         * config/rx/rx-protos.h: Update.
13751         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13752         (cbranchsf4): Don't call rx_split_fp_compare.
13753         (*cbranchsf4): Use rx_split_cbranch.
13754         (*cmpsf): Don't accept "i" constraint.
13755         (*conditional_branch): Only valid after reload.
13756         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
13757
13758 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
13759
13760         PR target/47385
13761         * config/rs6000/altivec.md (vector constant splitters): Add
13762         support for creating vector single precision constants if -mvsx is
13763         used and we would create the constant using Altivec primitives.
13764
13765 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
13766             Richard Sandiford  <rdsandiford@googlemail.com>
13767
13768         PR rtl-optimization/47166
13769         * reload1.c (emit_reload_insns): Disable the spill_reg_store
13770         mechanism for PRE_MODIFY and POST_MODIFY.
13771         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13772         reloadreg.
13773
13774 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
13775
13776         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13777
13778 2011-01-22  Jan Hubicka  <jh@suse.cz>
13779
13780         PR lto/47333
13781         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13782
13783 2011-01-22  Jan Hubicka  <jh@suse.cz>
13784
13785         PR tree-optimization/43884
13786         PR lto/44334
13787         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13788         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13789
13790 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
13791
13792         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13793         * config/s390/s390.c (s390_register_move_cost,
13794         s390_memory_move_cost): New.
13795         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13796
13797 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13798
13799         PR middle-end/47401
13800         * except.c (sjlj_assign_call_site_values): Move setting the
13801         crtl->uses_eh_lsda flag to ...
13802         (sjlj_mark_call_sites): ... here.
13803         (sjlj_emit_function_enter): Support NULL dispatch label.
13804         (sjlj_build_landing_pads): In a function with no landing pads
13805         that still has must-not-throw regions, generate code to register
13806         a personality function with empty LSDA.
13807
13808 2011-01-21  Richard Henderson  <rth@redhat.com>
13809
13810         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13811
13812         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13813
13814         * compare-elim.c: New file.
13815         * Makefile.in (OBJS-common): Add it.
13816         (compare-elim.o): New.
13817         * common.opt (fcompare-elim): New.
13818         * opts.c (default_options_table): Add OPT_fcompare_elim.
13819         * tree-pass.h (pass_compare_elim_after_reload): New.
13820         * passes.c (init_optimization_passes): Add it.
13821         * recog.h: Protect against re-inclusion.
13822         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13823         * doc/invoke.texi (-fcompare-elim): Document it.
13824         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13825         * doc/tm.texi: Rebuild.
13826
13827 2011-01-22  Nick Clifton  <nickc@redhat.com>
13828
13829         * config/rx/rx.md (cstoresf4): Pass comparison operator to
13830         rx_split_fp_compare.
13831
13832 2011-01-22  Nick Clifton  <nickc@redhat.com>
13833
13834         * config/rx/rx.md (UNSPEC_CONST): New.
13835         (deallocate_and_return): Wrap the amount popped off the stack in
13836         an UNSPEC_CONST in order to stop it being rejected by
13837         -mmax-constant-size.
13838         (pop_and_return): Add a "(return)" rtx.
13839         (call): Drop the immediate operand.
13840         (call_internal): Likewise.
13841         (call_value): Likewise.
13842         (call_value_internal): Likewise.
13843         (sibcall_internal): Likewise.
13844         (sibcall_value_internal): Likewise.
13845         (sibcall): Likewise.  Generate an explicit call using
13846         sibcall_internal.
13847         (sibcall_value): Likewise.
13848         (mov<>): FAIL if a constant operand is not legitimate.
13849         (addsi3_unpsec): New pattern.
13850
13851         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13852         (ok_for_max_constant): New function.
13853         (gen_safe_add): New function.
13854         (rx_expand_prologue): Use gen_safe_add.
13855         (rx_expand_epilogue): Likewise.
13856         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
13857         UNSPEC CONSTs.
13858
13859 2011-01-21  Jeff Law  <law@redhat.com>
13860
13861         PR tree-optimization/47053
13862         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13863         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13864         statements are deleted.
13865         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
13866         is nonempty, then purge dead edges and cleanup the CFG.
13867
13868 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13869
13870         PR debug/47402
13871         Temporarily revert:
13872         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13873         PR debug/47106
13874         * tree-dfa.c (create_var_ann): Mark variable as used.
13875
13876 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13877
13878         PR middle-end/45566
13879         * except.c (convert_to_eh_region_ranges): Emit queued no-region
13880         notes from other section in hot/cold partitioning even if
13881         last_action is -3.  Increment call_site_base.
13882
13883         PR rtl-optimization/47366
13884         * fwprop.c (forward_propagate_into): Return bool.  If
13885         any changes are made, -fnon-call-exceptions is used and
13886         REG_EH_REGION note is present, call purge_dead_edges
13887         and return true if it purged anything.
13888         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13889         any EH edges were purged.
13890
13891 2011-01-21  Jeff Law  <law@redhat.com>
13892
13893         PR rtl-optimization/41619
13894         * caller-save.c (setup_save_areas): Break out code to determine
13895         which hard regs are live across calls by examining the reload chains
13896         so that it is always used.
13897         Eliminate code which checked REG_N_CALLS_CROSSED.
13898
13899 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13900
13901         PR tree-optimization/47355
13902         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13903         NOP has non-debug uses beyond PHIs in new_bb.
13904
13905 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13906
13907         PR debug/47106
13908         * cfgexpand.c (account_used_vars_for_block): Only account vars
13909         that are annotated as used.
13910         (estimated_stack_frame_size): Don't set TREE_USED.
13911         * tree-dfa.c (create_var_ann): Mark variable as used.
13912
13913 2011-01-21  Richard Guenther  <rguenther@suse.de>
13914
13915         PR middle-end/47395
13916         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13917
13918 2011-01-21  Richard Guenther  <rguenther@suse.de>
13919
13920         PR tree-optimization/47365
13921         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13922         (vn_reference_lookup_pieces): Adjust.
13923         (vn_reference_lookup): Likewise.
13924         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13925         (vn_reference_lookup_3): Only look through kills if in
13926         VN_WALKREWRITE mode.
13927         (vn_reference_lookup_pieces): Adjust.
13928         (vn_reference_lookup): Likewise.
13929         (visit_reference_op_load): Likewise.
13930         (visit_reference_op_store): Likewise.
13931         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13932         (compute_avail): Likewise.
13933         (eliminate): Likewise.
13934
13935 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13936
13937         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13938         DECL_IGNORED_P non-reg vars if they are used.
13939
13940         PR tree-optimization/47391
13941         * varpool.c (const_value_known_p): Return false if
13942         decl is volatile.
13943
13944 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
13945
13946         PR bootstrap/47215
13947         * config/i386/i386.c (ix86_local_alignment): Handle
13948         case for va_list_type_node is nil.
13949         (ix86_canonical_va_list_type): Likewise.
13950
13951 2011-01-21  Alan Modra  <amodra@gmail.com>
13952
13953         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13954         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13955
13956 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13957
13958         * config/arm/arm.md (define_attr type): Rename f_load
13959         and f_store to f_fpa_load and f_fpa_store. Update.
13960         (write_conflict): Deal with rename fallout.
13961         (*push_fp_multi): Likewise.
13962         * config/arm/fpa.md (f_load): Use f_fpa_load.
13963         (f_store): Use f_fpa_store.
13964         (*movsf_fpa): Likewise.
13965         (*movdf_fpa): Likewise.
13966         (*movxf_fpa): Likewise.
13967         (*thumb2_movsf_fpa): Likewise.
13968         (*thumb2_movdf_fpa): Likewise.
13969         (*thumb2_movxf_fpa): Likewise.
13970         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13971         f_loadd and f_stored.
13972         (*thumb2_movdi_vfp): Likewise.
13973         (*thumb2_movsf_vfp): Fix attribute to f_loads.
13974         (*thumb2_movsi_vfp): Likewise.
13975         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13976         Use f_loads instead of f_load.
13977         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13978
13979 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
13980
13981         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13982         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13983         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13984         (xtensa_mode_dependent_address_p): New function.
13985         (constantpool_address_p): Make static. Change return type to bool.
13986         Change argument type to const_rtx. Use CONST_INT_P predicate.
13987
13988 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
13989
13990         PR debug/46583
13991         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13992
13993 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
13994
13995         PR debug/47283
13996         * cfgexpand.c (expand_debug_expr): Instead of generating
13997         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13998         etc. handling.
13999
14000 2011-01-20  Richard Guenther  <rguenther@suse.de>
14001
14002         PR middle-end/47370
14003         * tree-inline.c (remap_gimple_op_r): Recurse manually for
14004         the pointer operand of MEM_REFs.
14005
14006 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
14007
14008         PR tree-optimization/46130
14009         * ipa-split.c (consider_split): If return_bb contains non-virtual
14010         PHIs other than for retval or if split_function would not adjust it,
14011         refuse to split.
14012
14013 2011-01-20  Richard Guenther  <rguenther@suse.de>
14014
14015         PR tree-optimization/47167
14016         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14017         Revert previous change, only avoid enumeral type changes.
14018
14019 2011-01-19  Mike Stump  <mikestump@comcast.net>
14020
14021         * doc/tm.texi.in (BRANCH_COST): Englishify.
14022         * doc/tm.texi (BRANCH_COST): Likewise.
14023
14024 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
14025
14026         PR c++/47291
14027         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
14028         (gen_scheduled_generic_parms_dies): New functions.
14029         (gen_struct_or_union_type_die): Schedule template parameters DIEs
14030         generation for the end of CU compilation.
14031         (dwarf2out_finish): Generate template parameters DIEs here.
14032
14033 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
14034
14035         PR debug/46240
14036         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
14037         debug bind stmt on merge edges.
14038
14039 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
14040
14041         PR debug/47079
14042         PR debug/46724
14043         * function.c (instantiate_expr): Instantiate incoming rtl of
14044         implicit arguments, and recurse on VALUE_EXPRs.
14045         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
14046         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
14047
14048 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
14049
14050         * c-parser.c (c_parser_for_statement): Initialize
14051         collection_expression.
14052
14053 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14054
14055         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
14056
14057 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14058
14059         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
14060         (LINK_SHLIB_SPEC): Don't use %(link_path).
14061         (SUBTARGET_EXTRA_SPECS): Remove link_path.
14062
14063 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14064
14065         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
14066         (NO_SHARED_LIB_SUPPORT): Remove.
14067         (LINK_SHLIB_SPEC): Remove one conditional definition.
14068
14069 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14070
14071         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
14072         %{call_shared}.
14073         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
14074         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
14075         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
14076         %{call_shared} and conditionals on these options not being passed.
14077         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
14078         %{call_shared}.
14079
14080 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
14081
14082         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
14083         simplify.
14084
14085         * ipa-split.c: Spelling fixes.
14086
14087 2011-01-19  Richard Henderson  <rth@redhat.com>
14088
14089         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
14090         (*mulsi3): Likewise.
14091
14092         * longlong.h [__mn10300__] (count_leading_zeros): New.
14093         [__mn10300__] (umul_ppmm, smul_ppmm): New.
14094         [__mn10300__] (add_ssaaaa, subddmmss): New.
14095         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
14096         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
14097
14098 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14099
14100         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
14101
14102 2011-01-19  Richard Henderson  <rth@redhat.com>
14103
14104         * config/mn10300/mn10300.md (addsi3_flags): New.
14105         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
14106         (subsi3_flags, subc_internal, subdi3): New.
14107         (subdi3_internal, *subdi3_degenerate): New.
14108         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
14109
14110         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
14111         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
14112         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
14113         * config/mn10300/mn10300-protos.h: Update.
14114         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
14115         (return_ret): Likewise.  Rename from return_internal_regs.
14116         (return_internal): Remove.
14117
14118         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
14119         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
14120         (mn10300_legitimate_constant_p): Likewise.
14121         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
14122         (mn10300_frame_size): New.
14123         (mn10300_expand_prologue): Use it.
14124         (mn10300_expand_epilogue): Likewise.
14125         (mn10300_initial_offset): Likewise.
14126         * config/mn10300/mn10300-protos.h: Update.
14127         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
14128         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
14129         (prologue, epilogue, return_internal): Tidy output code.
14130         (mn10300_store_multiple_operation, return): Likewise.
14131         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
14132         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
14133         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
14134         (load_pic, am33_load_pic): New.
14135         (mn10300_load_pic0, mn10300_load_pic1): New.
14136
14137         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
14138         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
14139         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
14140         (cc_flags_for_mode, cc_flags_for_code): New.
14141         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
14142         overflow flag is not valid.  Validate that the flags we need
14143         for the comparison are valid.
14144         (mn10300_output_cmp): Remove.
14145         (mn10300_output_add): New.
14146         (mn10300_select_cc_mode): Use cc_flags_for_code.
14147         (mn10300_split_cbranch): New.
14148         (mn10300_match_ccmode): New.
14149         (mn10300_split_and_operand_count): New.
14150         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
14151         to the function.
14152         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
14153         (addsi3): ... here.  Use mn10300_output_add.
14154         (*addsi3_flags): New.
14155         (*am33_subsi3, *mn10300_subsi3): Merge...
14156         (subsi3): ... here.  Use attribute isa.
14157         (*subsi3_flags): New.
14158         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
14159         when possible.
14160         (*am33_andsi3, *mn10300_andsi3): Merge...
14161         (andsi3): ... here.
14162         (*andsi3_flags): New.
14163         (andsi3 splitters): New.
14164         (*am33_iorsi3, *mn10300_iorsi3): Merge...
14165         (iorsi3): ... here.
14166         (*iorsi3_flags): New.
14167         (*am33_xorsi3, *mn10300_xorsi3): Merge...
14168         (xorsi3): ... here.
14169         (*xorsi3_flags): New.
14170         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
14171         (one_cmplsi2): ... here.
14172         (*one_cmplsi2_flags): New.
14173         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
14174         instead of "dax" in constraints.  Use mn10300_split_cbranch.
14175         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
14176         use matching constraints to eliminate a self-comparison.
14177         (*integer_conditional_branch): Rename from integer_conditional_branch.
14178         Use int_mode_flags to match CC_REG.
14179         (*cbranchsi4_btst, *btstsi): New.
14180         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
14181         mn10300_split_cbranch.
14182         (*am33_cmpsf): Rename from am33_cmpsf.
14183         (*float_conditional_branch): Rename from float_conditional_branch.
14184         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
14185         (zero_extendqisi2): ... here.
14186         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
14187         (zero_extendhisi2): ... here.
14188         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
14189         (extendqisi2): ... here.
14190         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
14191         (extendhisi2): ... here.
14192         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
14193         (ashlsi3): ... here.
14194         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
14195         (lshrsi3): ... here.
14196         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
14197         (ashrsi3): ... here.
14198         (consecutive add peephole): Remove.
14199         * config/mn10300/predicates.md (label_ref_operand): New.
14200         (int_mode_flags): New.
14201         (CCZN_comparison_operator): New.
14202
14203         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
14204         (throughput_42_latency_43): New reservation.
14205         (mulsidi3, umulsidi3): New expanders.
14206         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
14207         the MDR register to allocation; separately allocate the low and
14208         high parts of the DImode result.
14209         (umulsidi3_internal): Similarly.
14210         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
14211         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
14212         (udivsi3, umodsi3): Remove.
14213         (udivmodsi4, divmodsi4): New expanders.
14214         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
14215         (*divmodsi4): Simiarly.
14216         (ext_internal): New.
14217
14218         * config/mn10300/constraints.md ("z"): New constraint.
14219         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
14220         (FIXED_REGISTERS): Don't fix MDR.
14221         (CALL_USED_REGSITERS): Reformat nicely.
14222         (REG_ALLOC_ORDER): Add MDR.
14223         (enum regclass): Add MDR_REGS.
14224         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
14225         (IRA_COVER_CLASSES): Add MDR_REGS.
14226         (REGNO_REG_CLASS): Handle MDR_REG.
14227         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
14228         (mn10300_register_move_cost): Likewise.
14229         * config/mn10300/mn10300.md (MDR_REG): New.
14230         (*movsi_internal): Handle moves to/from MDR_REGS.
14231
14232         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
14233         POST_MODIFY.
14234         (mn10300_secondary_reload): Tidy combination reload classes.
14235         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
14236         addresses for AM33.  Allow symbolic offsets for reg+imm.
14237         (mn10300_regno_in_class_p): New.
14238         (mn10300_legitimize_reload_address): New.
14239         * config/mn10300/mn10300.h (enum reg_class): Remove
14240         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
14241         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
14242         SP_OR_GENERAL_REGS.
14243         (REG_CLASS_NAMES): Update to match.
14244         (REG_CLASS_CONTENTS): Likewise.
14245         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
14246         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
14247         (REGNO_IN_RANGE_P): Remove.
14248         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
14249         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
14250         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
14251         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
14252         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
14253         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
14254         (REGNO_GENERAL_P): New.
14255         (HAVE_POST_MODIFY_DISP): New.
14256         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
14257         (LEGITIMIZE_RELOAD_ADDRESS): New.
14258         * config/mn10300/mn10300-protos.h: Update.
14259
14260         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
14261         DATA_REGS for AM33 stack-pointer destination.
14262         (mn10300_preferred_output_reload_class): Likewise.
14263         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
14264         into a form appropriate for ...
14265         (TARGET_SECONDARY_RELOAD): New.
14266         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
14267         * config/mn10300/mn10300-protos.h: Update.
14268         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
14269         reload_insi; use the "A" constraint for the scratch; handle AM33
14270         moves of sp to non-address registers.
14271
14272         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
14273         (*movqi_internal): ... here.
14274         (*am33_movhi, *mn10300_movhi): Merge into...
14275         (*movhi_internal): ... here.
14276         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
14277         as the source/destination of moves from/to SP.
14278         (movsf): Only allow for AM33-2.
14279         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
14280         any integer constant constraint.  Only allow for AM33-2.  Tidy
14281         all of the alternative outputs.
14282         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
14283         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
14284         for MN103.
14285         (udivsi3, umodsi3): New patterns for MN103 only.
14286
14287 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
14288
14289         * doc/tm.texi.in: Spell out that a lack of register class unions
14290         can lead to ICEs.
14291         * doc/tm.texi: Regenerate.
14292
14293 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
14294
14295         PR rtl-optimization/47337
14296         * dce.c (check_argument_store): New function.
14297         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
14298
14299         PR tree-optimization/47290
14300         * tree-eh.c (infinite_empty_loop_p): New function.
14301         (cleanup_empty_eh): Use it.
14302
14303 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
14304
14305         PR target/46997
14306         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
14307         (a64_expand_widen_sum): Ditto.
14308         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
14309         (vec_extract_evenodd_help): Ditto.
14310         (vec_extract_evenv4hi): Ditto.
14311         (vec_extract_oddv4hi): Ditto.
14312         (vec_extract_evenv2si): Ditto.
14313         (vec_extract_oddv2si): Ditto.
14314         (vec_extract_evenv2sf): Ditto.
14315         (vec_extract_oddv2sf): Ditto.
14316         (vec_pack_trunc_v4hi: Ditto.
14317         (vec_pack_trunc_v2si): Ditto.
14318         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
14319         (vec_interleave_highv8qi): Ditto.
14320         (mix1_r): Ditto.
14321         (vec_extract_oddv8qi): Ditto.
14322         (vec_interleave_lowv4hi): Ditto.
14323         (vec_interleave_highv4hi): Ditto.
14324         (vec_interleave_lowv2si): Ditto.
14325         (vec_interleave_highv2si): Ditto.
14326
14327 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14328
14329         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
14330         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
14331         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
14332         (pa_c_mode_for_suffix): New.
14333         (TARGET_EXPAND_BUILTIN): Define.
14334         (TARGET_C_MODE_FOR_SUFFIX): Define.
14335         (pa_builtins): Define.
14336         (pa_init_builtins): Register __float128 type and init new support
14337         builtins.
14338         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
14339         * config/pa/quadlib.c (_U_Qfcopysign): New.
14340
14341 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
14342
14343         PR middle-end/46894
14344         * explow.c (allocate_dynamic_stack_space): Do not assume more than
14345         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
14346         are defined.
14347
14348 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14349
14350         PR tree-optimization/47179
14351         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
14352         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
14353
14354 2011-01-18  Richard Guenther  <rguenther@suse.de>
14355
14356         PR rtl-optimization/47216
14357         * emit-rtl.c: Include tree-flow.h.
14358         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
14359         of replicating it with different semantics.
14360         * Makefile.in (emit-rtl.o): Adjust.
14361
14362 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14363
14364         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
14365         (cortex_a9_dp): Handle neon types correctly.
14366
14367 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
14368
14369         PR rtl-optimization/47299
14370         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
14371         subtarget.  Use normal multiplication if both operands are constants.
14372         * expmed.c (expand_widening_mult): Don't try to optimize constant
14373         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
14374         before using it.
14375
14376 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14377
14378         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
14379         spacing after 'e.g.', typos, comma, hyphenation.
14380
14381 2011-01-17  Richard Henderson  <rth@redhat.com>
14382
14383         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
14384         (rx_restricted_mem_operand): New.
14385         (rx_shift_operand): Use register_operand.
14386         (rx_source_operand, rx_compare_operand): Likewise.
14387         * config/rx/rx.md (addsi3_flags): New expander.
14388         (adddi3): Rewrite as expander.
14389         (adc_internal, *adc_flags, adddi3_internal): New patterns.
14390         (subsi3_flags): New expander.
14391         (subdi3): Rewrite as expander.
14392         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
14393
14394         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
14395         (rx_init_builtins): Remove sat builtin.
14396         (rx_expand_builtin): Likewise.
14397         * config/rx/rx.md (ssaddsi3): New.
14398         (*sat): Rename from sat.  Represent the CC_REG input.
14399
14400         * config/rx/predicates.md (rshift_operator): New.
14401         * config/rx/rx.c (rx_expand_insv): Remove.
14402         * config/rx/rx-protos.h: Update.
14403         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
14404         operand to the canonical position.
14405         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14406         (*bitclr, *bitclr_in_memory): Similarly.
14407         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14408         (insv): Retain the zero_extract in the expansion.
14409
14410         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14411         (bswaphi2, bitinvert, revw): Likewise.
14412
14413         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14414         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14415         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14416         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14417         (bitset, bitset_in_memory): Likewise.
14418         (bitinvert, bitinvert_in_memory): Likewise.
14419         (bitclr, bitclr_in_memory): Likewise.
14420         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14421         (rx_strend, rx_cmpstrn): Likewise.
14422         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
14423         (bitop peep2 patterns): Remove.
14424
14425         * config/rx/rx.c (rx_match_ccmode): New.
14426         * config/rx/rx-protos.h: Update.
14427         * config/rx/rx.md (abssi2): Clobber, don't set flags.
14428         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14429         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14430         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14431         (fix_truncsfsi2, floatsisf2): Likewise.
14432         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14433         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14434         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14435         (*subsi3_flags, *xorsi3_flags): New.
14436
14437         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14438
14439         * config/rx/rx.c (rx_print_operand): Remove workaround for
14440         unsplit comparison operations.
14441
14442         * config/rx/rx.md (movsicc): Split after reload.
14443         (*movsicc): Merge *movsieq and *movsine via match_operator.
14444         (*stcc): New pattern.
14445
14446         * config/rx/rx.c (rx_float_compare_mode): Remove.
14447         * config/rx/rx.h (rx_float_compare_mode): Remove.
14448         * config/rx/rx.md (cstoresi4): Split after reload.
14449         (*sccc): New pattern.
14450
14451         * config/rx/predicates.md (label_ref_operand): New.
14452         (rx_z_comparison_operator): New.
14453         (rx_zs_comparison_operator): New.
14454         (rx_fp_comparison_operator): New.
14455         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14456         Validate that the flags are set properly for the comparison.
14457         (rx_gen_cond_branch_template): Remove.
14458         (rx_cc_modes_compatible): Remove.
14459         (mode_from_flags): New.
14460         (flags_from_code): Rename from flags_needed_for_conditional.
14461         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14462         (rx_select_cc_mode): Likewise.
14463         (rx_split_fp_compare): New.
14464         (rx_split_cbranch): New.
14465         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14466         (*cbranchsi4): Use match_operator and rx_split_cbranch.
14467         (*cbranchsf4): Similarly.
14468         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
14469         match_operator and rx_split_cbranch.
14470         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14471         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
14472         (*cmpsi): Rename from cmpsi.
14473         (*tstsi): Rename from tstsi.
14474         (*cmpsf): Rename from cmpsf; use CC_Fmode.
14475         (*conditional_branch): Rename from conditional_branch.
14476         (*reveresed_conditional_branch): Remove.
14477         (b<code>): Remove expander.
14478         * config/rx/rx-protos.h: Update.
14479
14480         * config/rx/rx.c (rx_compare_redundant): Remove.
14481         * config/rx/rx.md (cmpsi): Don't use it.
14482         * config/rx/rx-protos.h: Update.
14483
14484         * config/rx/rx-modes.def (CC_F): New mode.
14485         * config/rx/rx.c (rx_select_cc_mode): New.
14486         * config/rx/rx.h (SELECT_CC_MODE): Use it.
14487         * config/rx/rx-protos.h: Update.
14488
14489 2011-01-17  Richard Henderson  <rth@redhat.com>
14490
14491         * except.c (dump_eh_tree): Fix stray ; after for statement.
14492
14493 2011-01-17  Richard Guenther  <rguenther@suse.de>
14494
14495         PR tree-optimization/47313
14496         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14497         handling before copying the body.  Properly deal with
14498         by-reference result in SSA form.
14499
14500 2011-01-17  Ian Lance Taylor  <iant@google.com>
14501
14502         PR target/47219
14503         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14504         (struct_value_alias_set): Don't define.
14505         (sparc_option_override): Don't set sparc_sr_alias_set and
14506         struct_value_alias_set.
14507         (save_or_restore_regs): Use gen_frame_mem rather than calling
14508         set_mem_alias_set.
14509         (sparc_struct_value_rtx): Likewise.
14510
14511 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
14512
14513         PR target/47318
14514         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14515         (_mm_maskstore_pd): Likewise.
14516         (_mm_maskload_ps): Likewise.
14517         (_mm_maskstore_ps): Likewise.
14518         (_mm256_maskload_pd): Change mask to __m256i.
14519         (_mm256_maskstore_pd): Likewise.
14520         (_mm256_maskload_ps): Likewise.
14521         (_mm256_maskstore_ps): Likewise.
14522
14523         * config/i386/i386-builtin-types.def: Updated.
14524         (ix86_expand_special_args_builtin): Likewise.
14525
14526         * config/i386/i386.c (bdesc_special_args): Update
14527         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14528         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14529         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14530         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14531
14532         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14533         Use <avxpermvecmode> on mask register.
14534         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14535
14536 2011-01-17  Olivier Hainque  <hainque@adacore.com>
14537             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
14538             Eric Botcazou  <ebotcazou@adacore.com>
14539
14540         PR target/46655
14541         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14542         if <= USHRT_MAX in 32-bit mode.
14543
14544 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14545
14546         * doc/install.texi (Configuration, Specific): Wrap long
14547         lines in examples.  Allow line wrapping in long options
14548         and URLs where beneficial for PDF output.
14549
14550 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
14551
14552         * config/mips/mips.c (mips_classify_symbol): Don't return
14553         SYMBOL_PC_RELATIVE for nonlocal labels.
14554
14555 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
14556
14557         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14558
14559 2011-01-15  Jan Hubicka  <jh@suse.cz>
14560
14561         PR tree-optimization/47276
14562         * ipa.c (function_and_variable_visibility): Do not try to mark alias
14563         declarations as needed.
14564
14565 2011-01-15  Martin Jambor  <mjambor@suse.cz>
14566
14567         * common.opt (fdevirtualize): New flag.
14568         * doc/invoke.texi (Option Summary): Document it.
14569         * opts.c (default_options_table): Add devirtualize flag.
14570         * ipa-prop.c (detect_type_change): Return immediately if
14571         devirtualize flag is not set.
14572         (detect_type_change_ssa): Likewise.
14573         (compute_known_type_jump_func): Likewise.
14574         (ipa_analyze_virtual_call_uses): Likewise.
14575
14576 2011-01-14  Martin Jambor  <mjambor@suse.cz>
14577
14578         PR tree-optimization/45934
14579         PR tree-optimization/46302
14580         * ipa-prop.c (type_change_info): New type.
14581         (stmt_may_be_vtbl_ptr_store): New function.
14582         (check_stmt_for_type_change): Likewise.
14583         (detect_type_change): Likewise.
14584         (detect_type_change_ssa): Likewise.
14585         (compute_complex_assign_jump_func): Check for dynamic type change.
14586         (compute_complex_ancestor_jump_func): Likewise.
14587         (compute_known_type_jump_func): Likewise.
14588         (compute_scalar_jump_functions): Likewise.
14589         (ipa_analyze_virtual_call_uses): Likewise.
14590         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14591
14592 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14593
14594         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14595         * config/i386/i386.opt (msse5): New Alias.
14596
14597 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14598
14599         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14600         * config/sparc/linux64.h (CC1_SPEC): Likewise.
14601         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14602         * config/sparc/sparc.h (CC1_SPEC): Likewise.
14603
14604 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14605
14606         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14607         -mcpu options.
14608         * config/sparc/linux64.h (CC1_SPEC): Likewise.
14609         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14610         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14611         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14612         Likewise.
14613         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14614
14615 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14616
14617         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14618
14619 2011-01-14  Mike Stump  <mikestump@comcast.net>
14620
14621         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14622         * config/fr30/fr30.md: Likweise
14623         (movsi_push): Likewise.
14624         (movsi_pop): Likewise.
14625         (enter_func): Likewise.
14626         * config/moxie/moxie.md (movsi_push): Likewise.
14627         (movsi_pop): Likewise.
14628
14629 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14630
14631         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14632         %{no_archive} %{exact_version}.
14633         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14634         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14635         %{no_archive} %{exact_version}.
14636         * config/mips/openbsd.h (LINK_SPEC): Likewise.
14637         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14638         * config/mips/vxworks.h: Likewise.
14639
14640 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14641
14642         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14643
14644 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14645
14646         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14647         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14648
14649 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14650
14651         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14652         -nodefaultlib.
14653
14654 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14655
14656         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14657         for mcpu not cpu.
14658         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14659         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14660         not cpu.
14661         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14662         Don't handle -shlib.
14663
14664 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14665
14666         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14667         (CC1_SPEC): Don't handle -profile.
14668
14669 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14670
14671         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14672         * config/mips/mips.h (CC1_SPEC): Likewise.
14673
14674 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14675
14676         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14677         * config/mips/mips.h (CC1_SPEC): Likewise.
14678
14679 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14680
14681         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14682         * config/m32r/linux.h (LINK_SPEC): Likewise.
14683         * config/mips/linux.h (LINK_SPEC): Likewise.
14684         * config/mips/linux64.h (LINK_SPEC): Likewise.
14685         * config/sparc/linux.h (LINK_SPEC): Likewise.
14686         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14687         LINK_SPEC): Likewise.
14688         * config/xtensa/linux.h (LINK_SPEC): Likewise.
14689
14690 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14691
14692         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14693         %{version:-v}.
14694         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14695
14696 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14697
14698         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14699         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14700
14701 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14702
14703         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14704
14705 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14706
14707         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14708         supports -Bstatic/-Bdynamic.
14709         * configure: Regenerate.
14710
14711 2011-01-14  Jan Hubicka  <jh@suse.cz>
14712             Jack Howarth  <howarth@bromo.med.uc.edu>
14713
14714         PR target/46037
14715         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14716         when checking debug_info_level. Test write_symbols instead of
14717         debug_hooks->var_location when setting flag_var_tracking_uninit.
14718
14719 2011-01-14  Richard Guenther  <rguenther@suse.de>
14720
14721         PR tree-optimization/47179
14722         * target.def (ref_may_alias_errno): New target hook.
14723         * targhooks.h (default_ref_may_alias_errno): Declare.
14724         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14725         (default_ref_may_alias_errno): New function.
14726         * target.h (struct ao_ref_s): Declare.
14727         * tree-ssa-alias.c: Include target.h.
14728         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14729         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14730         (targhooks.o): Likewise.
14731         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14732         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14733
14734 2011-01-14  Richard Guenther  <rguenther@suse.de>
14735
14736         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
14737
14738 2011-01-14  Richard Guenther  <rguenther@suse.de>
14739
14740         PR tree-optimization/47280
14741         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14742         return CFG changes.
14743         (tree_ssa_forward_propagate_single_use_vars): Deal with
14744         CFG changes from associate_plusminus.
14745
14746 2011-01-14  Richard Guenther  <rguenther@suse.de>
14747
14748         PR middle-end/47281
14749         Revert
14750         2011-01-11  Richard Guenther  <rguenther@suse.de>
14751
14752         PR tree-optimization/46076
14753         * tree-ssa.c (useless_type_conversion_p): Conversions from
14754         unprototyped to empty argument list function types are useless.
14755
14756 2011-01-14  Richard Guenther  <rguenther@suse.de>
14757
14758         PR tree-optimization/47286
14759         * tree-ssa-structalias.c (new_var_info): Register variables are global.
14760
14761 2011-01-14  Martin Jambor  <mjambor@suse.cz>
14762
14763         PR middle-end/46823
14764         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14765
14766 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
14767
14768         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14769         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14770         * config/xtensa/xtensa.c (xtensa_libcall_value,
14771         xtensa_function_value_regno_p): New functions.
14772         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14773
14774 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
14775
14776         PR c++/47213
14777         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14778         PE specific hook.
14779         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14780         New function prototype.
14781         * config/i386/winnt.c (i386_pe_assemble_visibility):
14782         Warn only if attribute was specified by user.
14783
14784 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
14785
14786         PR target/47251
14787         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14788         floating point.
14789         (floatunsdidf2_fcfidu): Ditto.
14790
14791 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14792
14793         * config/s390/s390.c (print_operand_address): Replace 'error' with
14794         'output_operand_lossage'.
14795         (print_operand): Likewise.
14796
14797 2011-01-13  Jeff Law  <law@redhat.com>
14798
14799         PR rtl-optimization/39077
14800         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14801         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14802         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14803         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14804         * gcse.c (prune_insertions_deletions): New function.
14805         (compute_pre_data): Use it.
14806
14807 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
14808
14809         PR debug/PR46973
14810         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14811         static function.
14812         (prune_unused_types_mark): Use it.
14813
14814 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
14815
14816         PR rtl-optimization/45352
14817         * sel-sched.c: Update copyright years.
14818         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14819         in the advancing loop when we have issued issue_rate insns.
14820
14821 2011-01-12  Richard Henderson  <rth@redhat.com>
14822
14823         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14824         (TARGET_MD_ASM_CLOBBERS): New.
14825
14826         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14827         (TARGET_DELEGITIMIZE_ADDRESS): New.
14828
14829         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14830         (clzsi2, *bsch): New patterns.
14831
14832         * config/mn10300/mn10300.md (INT): New mode iterator.
14833         (*mov<INT>_clr): New pattern, and peep2 to generate it.
14834
14835         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14836         flag_split_wide_types.
14837
14838         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14839         (mn10300_trampoline_init): Rewrite without a template, an immediate
14840         load and a direct branch.
14841         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14842
14843 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
14844
14845         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14846         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14847         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14848         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14849
14850 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
14851
14852         PR debug/47209
14853         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14854         of type.
14855
14856 2011-01-12  Jan Hubicka  <jh@suse.cz>
14857
14858         PR driver/47244
14859         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14860         (PLUGIN_COND_CLOSE): New macro.
14861         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14862
14863 2011-01-12  Richard Guenther  <rguenther@suse.de>
14864
14865         PR lto/47259
14866         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14867         register variables in a MEM_REF.
14868
14869 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
14870
14871         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14872         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14873         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14874         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14875         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14876         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14877         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14878         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14879         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14880         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14881         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14882         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14883         * config/gnu-user.h: New.  Copied from linux.h.
14884         (LINUX_TARGET_STARTFILE_SPEC): Rename to
14885         GNU_USER_TARGET_STARTFILE_SPEC.
14886         (LINUX_TARGET_ENDFILE_SPEC): Rename to
14887         GNU_USER_TARGET_ENDFILE_SPEC.
14888         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14889         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14890         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14891         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14892         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14893         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14894         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14895         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14896         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14897         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14898         * config/arm/linux-eabi.h (CC1_SPEC): Use
14899         GNU_USER_TARGET_CC1_SPEC.
14900         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14901         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14902         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14903         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14904         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14905         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14906         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14907         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14908
14909 2011-01-12  Richard Guenther  <rguenther@suse.de>
14910
14911         PR other/46946
14912         * doc/invoke.texi (ffast-math): Document it is turned on
14913         with -Ofast.
14914
14915 2011-01-12  Jan Hubicka  <jh@suse.cz>
14916
14917         PR tree-optimization/47233
14918         * opts.c (common_handle_option): Disable ipa-reference with profile
14919         feedback.
14920
14921 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
14922
14923         * c-parser.c (c_parser_objc_at_property_declaration): Improved
14924         error message.
14925
14926 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
14927
14928         * c-parser.c (c_lex_one_token): Updated and reindented some
14929         comments.  No changes in code.
14930
14931 2011-01-11  Ian Lance Taylor  <iant@google.com>
14932
14933         * godump.c (go_output_var): Don't output the variable if there is
14934         already a type with the same name.
14935
14936 2011-01-11  Ian Lance Taylor  <iant@google.com>
14937
14938         * godump.c (go_format_type): Don't generate float80.
14939
14940 2011-01-11  Richard Henderson  <rth@redhat.com>
14941
14942         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14943         declaration.  Rewrite for both speed and size.
14944         (mn10300_address_cost_1): Remove.
14945         (mn10300_register_move_cost): New.
14946         (mn10300_memory_move_cost): New.
14947         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
14948         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
14949         extensions, shifts, BSWAP, CLZ.
14950         (mn10300_wide_const_load_uses_clr): Remove.
14951         (TARGET_REGISTER_MOVE_COST): New.
14952         (TARGET_MEMORY_MOVE_COST): New.
14953         * config/mn10300/mn10300-protos.h: Update.
14954         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14955
14956         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14957         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14958         * config/mn10300/mn10300-protos.h: Update.
14959         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14960         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14961         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14962         (*test_int_bitfield, *test_byte_bitfield): Remove.
14963         (*bit_test, *subreg_bit_test): Remove.
14964         * config/mn10300/predicates.md (const_8bit_operand): Remove.
14965
14966         * config/mn10300/constraints.md ("c"): Rename from "A".
14967         ("A", "D"): New constraint letters.
14968         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14969         (fmssf4, fnmasf4, fnmssf4): Likewise.
14970
14971         * config/mn10300/mn10300.md (isa): New attribute.
14972         (enabled): New attribute.
14973
14974         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14975         (abssf2, negsf2): Define only for hardware fp.
14976         (sqrtsf2): Reformat.
14977         (addsf3, subsf3, mulsf3): Merge expander and insn.
14978
14979         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14980         (DEBUGGER_AUTO_OFFSET): Remove.
14981         (DEBUGGER_ARG_OFFSET): Remove.
14982
14983         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14984         Emit register stores with the same offsets as the hardware.
14985         (mn10300_store_multiple_operation): Don't check that the register
14986         save offsets are monotonic.
14987         * config/mn10300/mn10300-protos.h: Update.
14988
14989         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14990
14991         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14992         in terms of the value on the stack, not the MDR register.
14993
14994 2011-01-11  Jan Hubicka  <jh@suse.cz>
14995
14996         PR lto/45721
14997         PR lto/45375
14998         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14999         (symbol_alias_set_destroy, symbol_alias_set_contains,
15000         propagate_aliases_backward): Declare.
15001         * lto-streamer-out.c (struct sets): New sturcture.
15002         (trivally_defined_alias): New function.
15003         (output_alias_pair_p): Rewrite.
15004         (output_unreferenced_globals): Fix output of alias pairs.
15005         (produce_symtab): Likewise.
15006         * ipa.c (function_and_variable_visibility): Set weak alias destination
15007         as needed in lto.
15008         * varasm.c (symbol_alias_set_t): Remove.
15009         (symbol_alias_set_destroy): Export.
15010         (propagate_aliases_forward, propagate_aliases_backward): New functions
15011         based on ...
15012         (compute_visible_aliases): ... this one; remove.
15013         (trivially_visible_alias): New
15014         (trivially_defined_alias): New.
15015         (remove_unreachable_alias_pairs): Rewrite.
15016         (finish_aliases_1): Reorganize code checking if alias is defined.
15017         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
15018         in LTO mode.
15019
15020 2011-01-11  Richard Guenther  <rguenther@suse.de>
15021
15022         PR tree-optimization/46076
15023         * tree-ssa.c (useless_type_conversion_p): Conversions from
15024         unprototyped to empty argument list function types are useless.
15025
15026 2011-01-11  Richard Guenther  <rguenther@suse.de>
15027
15028         PR middle-end/45235
15029         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
15030         volatile MEMs as MEM_READONLY_P.
15031
15032 2011-01-11  Richard Guenther  <rguenther@suse.de>
15033
15034         PR tree-optimization/47239
15035         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
15036
15037 2011-01-11  Jeff Law  <law@redhat.com>
15038
15039         PR tree-optimization/47086
15040         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
15041         IVs from statements that might throw.
15042
15043 2011-01-10  Jan Hubicka  <jh@suse.cz>
15044
15045         PR lto/45375
15046         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
15047
15048 2011-01-10  Jan Hubicka  <jh@suse.cz>
15049
15050         PR lto/45375
15051         * profile.c (read_profile_edge_counts): Ignore profile inconistency
15052         when correcting profile.
15053
15054 2011-01-10  Jan Hubicka  <jh@suse.cz>
15055
15056         PR lto/46083
15057         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
15058         DECL_FINI_PRIORITY.
15059         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
15060         Restore DECL_FINI_PRIORITY.
15061
15062 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15063
15064         * doc/gimple.texi: Fix quoting of multi-word return values in
15065         @deftypefn statements.  Ensure presence of return value.  Wrap
15066         overlong @deftypefn lines.
15067         (is_gimple_operand, is_gimple_min_invariant_address): Remove
15068         descriptions of removed functions.
15069         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
15070         of multi-word return value in @deftypefn statement.
15071
15072 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15073
15074         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
15075         (Conditional Expressions, Logical Operators)
15076         (Statement and operand traversals): Do not indent smallexample
15077         code.  Fix duplicate function argument in example.
15078
15079 2011-01-10  Jeff Law  <law@redhat.com>
15080
15081         PR tree-optimization/47141
15082         * ipa-split.c (split_function): Handle case where we are
15083         returning a value and the return block has a virtual operand phi.
15084
15085 2011-01-10  Jan Hubicka  <jh@suse.cz>
15086
15087         PR tree-optimization/47234
15088         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
15089         (pass_feedback_split_functions): Declare.
15090         * passes.c (init_optimization_passes): Add ipa-split as subpass of
15091         tree-profile.
15092         * ipa-split.c (gate_split_functions): Update comments; disable
15093         split-functions for profile_arc_flag and branch_probabilities.
15094         (gate_feedback_split_functions): New function.
15095         (execute_feedback_split_functions): New function.
15096         (pass_feedback_split_functions): New global var.
15097
15098 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
15099
15100         PR lto/46760
15101         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
15102         calling gimple_call_set_cannot_inline.
15103
15104 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
15105
15106         * config/darwin-sections.def: Remove unused section.
15107
15108 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
15109
15110         PR c++/47218
15111         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
15112
15113 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
15114
15115         PR objc/47232
15116         * c-parser.c (c_parser_declaration_or_fndef): Improved
15117         error message.
15118
15119 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
15120
15121         * config/i386/winnt.c (i386_pe_start_function): Make sure
15122         to switch back to function's section.
15123
15124 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
15125
15126         PR gcc/46902
15127         PR testsuite/46912
15128         * plugin.c: Move include of dlfcn.h from here...
15129         * system.h: ... to here.
15130
15131 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15132
15133         * doc/cpp.texi (C++ Named Operators): Fix markup for header
15134         file name.
15135         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
15136         two extra empty pages in PDF output.
15137
15138 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
15139
15140         PR objc/47078
15141         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
15142         for error recovery purposes behave as if it was not specified so
15143         that the default type is usd.
15144
15145 2011-01-07  Jan Hubicka  <jh@suse.cz>
15146
15147         PR tree-optmization/46469
15148         * ipa.c (function_and_variable_visibility): Clear needed flags on
15149         nodes with external decls; handle weakrefs merging correctly.
15150
15151 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
15152
15153         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
15154         not false.
15155
15156 2011-01-07  Jan Hubicka  <jh@suse.cz>
15157
15158         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
15159         and no longer claim that gold is required for linker plugin.
15160         * configure: Regenerate.
15161         * gcc.c (PLUGIN_COND): New macro.
15162         (LINK_COMMAND_SPEC): Use it.
15163         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
15164         * config.in (HAVE_LTO_PLUGIN): New.
15165         * configure.ac (--with-lto-plugin): New parameter; autodetect
15166         HAVE_LTO_PLUGIN.
15167
15168 2011-01-07  Jan Hubicka  <jh@suse.cz>
15169
15170         PR tree-optimization/46367
15171         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
15172         when we can update original.
15173         (cgraph_mark_inline_edge): Sanity check.
15174         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
15175
15176 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15177
15178         * config/spu/spu.h (ASM_COMMENT_START): Define.
15179
15180 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
15181
15182         PR driver/42445
15183         * gcc.c (%>S): New.
15184         (SWITCH_KEEP_FOR_GCC): Likewise.
15185         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
15186         (do_spec_1): Handle "%>".
15187
15188         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
15189
15190 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
15191
15192         PR target/47201
15193         * config/i386/i386.c (ix86_delegitimize_address): If
15194         simplify_gen_subreg fails, return orig_x.
15195
15196         PR bootstrap/47187
15197         * value-prof.c (gimple_stringop_fixed_value): Handle
15198         lhs of the call properly.
15199
15200 2011-01-07  Jan Hubicka  <jh@suse.cz>
15201
15202         PR lto/45375
15203         * lto-opt.c (lto_reissue_options): Set flag_shlib.
15204
15205 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
15206
15207         * target.def (function_switched_text_sections): New hook.
15208         * doc/tm.texi: Regenerated.
15209         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15210         * final.c (default_function_switched_text_sections): New.
15211         (final_scan_insn): Call function_switched_text_sections when a
15212         mid-function section change occurs.
15213         * output.h (default_function_switched_text_sections): Declare.
15214         * config/darwin-protos.h (darwin_function_switched_text_sections):
15215         Likewise.
15216         * config/darwin.c (darwin_function_switched_text_sections): New.
15217         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15218
15219 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
15220
15221         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
15222         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
15223         the secondary code fragment when outputting for DWARF == 2.
15224
15225 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
15226
15227         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15228         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
15229         Remove.
15230         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
15231         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15232
15233 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
15234
15235         PR debug/46704
15236         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
15237         when it is not empty.
15238
15239 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
15240
15241         Bobcat Enablement
15242         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
15243         (case ${target}): Add btver1.
15244         * config/i386/driver-i386.c (host_detect_local_cpu): Let
15245         -march=native recognize btver1 processors.
15246         * config/i386/i386-c.c (ix86_target_macros_internal): Add
15247         btver1 def_and_undef
15248         * config/i386/i386.c (struct processor_costs btver1_cost): New
15249         btver1 cost table.
15250         (m_BTVER1): New definition.
15251         (m_AMD_MULTIPLE): Includes m_BTVER1.
15252         (initial_ix86_tune_features): Add btver1 tune.
15253         (processor_target_table): Add btver1 entry.
15254         (static const char *const cpu_names): Add btver1 entry.
15255         (software_prefetching_beneficial_p): Add btver1.
15256         (ix86_option_override_internal): Add btver1 instruction sets.
15257         (ix86_issue_rate): Add btver1.
15258         (ix86_adjust_cost): Add btver1.
15259         * config/i386/i386.h (TARGET_BTVER1): New definition.
15260         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
15261         (enum processor_type): Add PROCESSOR_BTVER1.
15262         * config/i386/i386.md (define_attr "cpu"): Add btver1.
15263
15264 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15265
15266         PR target/43309
15267         * config/i386/i386.c (legitimize_tls_address)
15268         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
15269         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
15270         (tls_initial_exec_64_sun): New pattern.
15271
15272 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
15273
15274         * doc/invoke.texi (Overall Options): Improve wording and markup
15275         of the description of -wrapper.
15276
15277 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
15278
15279         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
15280         rdynamic, threads): New Driver options.
15281
15282 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15283
15284         PR target/38118
15285         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
15286         if coming from .tdata.
15287         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
15288
15289 2011-01-06  Jan Hubicka  <jh@suse.cz>
15290
15291         PR lto/47188
15292         * collect2.c (main): Do not enable LTOmode when plugin is active.
15293
15294 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15295
15296         PR other/45915
15297         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
15298         --version output if supported.
15299         * configure: Regenerate.
15300
15301 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
15302
15303         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
15304         Driver options.
15305
15306 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
15307
15308         PR c/47150
15309         * c-convert.c (convert): When converting a complex expression
15310         other than COMPLEX_EXPR to a different complex type, ensure
15311         c_save_expr is called instead of save_expr, unless in_late_binary_op.
15312         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
15313         when converting COMPLEX_TYPE.
15314
15315 2011-01-06  Ira Rosen  <irar@il.ibm.com>
15316
15317         PR tree-optimization/47139
15318         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
15319         only the last reduction value is used outside the loop.  Update
15320         documentation.
15321
15322 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
15323
15324         * config/rtems.opt: New.
15325         * config.gcc (*-*-rtems*): Use rtems.opt.
15326
15327 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
15328
15329         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
15330         processors do not support 3DNow instructions.
15331
15332 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15333
15334         * config/spu/spu.c (spu_option_override): Set parameter
15335         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
15336
15337 2011-01-05  Jan Hubicka  <jh@suse.cz>
15338
15339         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
15340         at the command line.
15341
15342 2011-01-05  Martin Jambor  <mjambor@suse.cz>
15343
15344         PR lto/47162
15345         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
15346         deltas on streamed outgoing edges.
15347         (output_node_opt_summary): Output info for outgoing edges only when
15348         the node is in new parameter set.
15349         (output_cgraph_opt_summary): New parameter set, passed to the two
15350         aforementioned functions.  Update its forward declaration and its
15351         callee too.
15352
15353 2011-01-05  Tom Tromey  <tromey@redhat.com>
15354
15355         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
15356         operator to c_finish_omp_atomic.
15357         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
15358         (build_unary_op): Update.
15359         (build_modify_expr): Update.
15360         (build_asm_expr): Update.
15361
15362 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15363
15364         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
15365         newly inserted insns.
15366         (pad_bb): Likewise.
15367         (spu_emit_branch_hint): Likewise.
15368         (insert_hbrp_for_ilb_runout): Likewise.
15369         (spu_machine_dependent_reorg): Call df_finish_pass after
15370         schedule_insns returns.
15371
15372 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15373
15374         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
15375
15376 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
15377
15378         PR tree-optimization/47005
15379         * tree-sra.c (struct access): Add 'non_addressable' bit.
15380         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
15381         (decide_one_param_reduction): Return 0 if the parameter is passed by
15382         reference and one of the accesses in the group is non_addressable.
15383
15384 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15385
15386         PR tree-optimization/47056
15387         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
15388         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
15389         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
15390
15391 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15392
15393         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
15394         initializer.  Skip view conversions from aggregate types.
15395
15396 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
15397
15398         PR bootstrap/47055
15399         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
15400
15401 2011-01-04  Philipp Thomas  <pth@suse.de>
15402
15403         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
15404         obvious typo.
15405
15406 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15407
15408         * function.c (thread_prologue_and_epilogue_insns): Do not crash
15409         on empty epilogue sequences.
15410
15411 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
15412
15413         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15414         non-static): New Driver options.
15415
15416 2011-01-04  Jie Zhang  <jie@codesourcery.com>
15417
15418         PR driver/47137
15419         * gcc.c (default_compilers[]): Set combinable field to 0
15420         for all assembly languages.
15421
15422 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
15423
15424         * config/mips/loongson3a.md: New file.
15425         * config/mips/mips.md: Include loongson3a.md.
15426         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15427         TUNE_LOONGSON_3A.
15428
15429 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
15430
15431         PR middle-end/47017
15432         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15433         instead of convert_memory_address_addr_space on the base expression.
15434
15435 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15436
15437         * config/spu/spu.c (spu_option_override): Update error text
15438         for bad -march= / -mtune= values.
15439
15440 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15441
15442         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15443         if branch-hint optimization will be performed.
15444
15445 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
15446
15447         PR tree-optimization/47148
15448         * ipa-split.c (split_function): Convert arguments to
15449         DECL_ARG_TYPE if possible.
15450
15451         PR tree-optimization/47155
15452         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15453         when computing uns.
15454
15455         PR rtl-optimization/47157
15456         * combine.c (try_combine): If undobuf.other_insn becomes
15457         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15458         and set *new_direct_jump_p too.
15459
15460 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
15461
15462         PR tree-optimization/47021
15463         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15464
15465 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
15466
15467         * gcc.c (process_command): Update copyright notice dates.
15468         * gcov.c (print_version): Likewise.
15469         * gcov-dump.c (print_version): Likewise.
15470         * mips-tfile.c (main): Likewise.
15471         * mips-tdump.c (main): Likewise.
15472
15473 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15474
15475         PR tree-optimization/46801
15476         * tree-sra.c (type_internals_preclude_sra_p): Check whether
15477         aggregate fields start at byte boundary instead of the bit-field flag.
15478
15479 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
15480
15481         PR driver/47137
15482         * gcc.c (main): Revert revision 168407.
15483
15484 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15485
15486         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15487
15488 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15489
15490         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15491         vector optab to expand vector/scalar shift, update gimple to vector.
15492
15493 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15494
15495         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15496         a thunk.
15497
15498 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15499
15500         PR tree-optimization/46984
15501         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15502         HOST_WIDE_INT.
15503         (cgraph_create_indirect_edge): Fixed line length.
15504         (cgraph_indirect_call_info): Declare.
15505         (cgraph_make_edge_direct) Update declaration.
15506         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15507         (cgraph_create_indirect_edge): Use it.
15508         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
15509         callees.
15510         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15511         the new thunk_delta representation.
15512         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15513         HOST_WIDE_INT.
15514         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15515         (ipa_read_indirect_edge_info): Likewise.
15516         * lto-cgraph.c (output_edge_opt_summary): New function.
15517         (output_node_opt_summary): Call it on all outgoing edges.
15518         (input_edge_opt_summary): New function.
15519         (input_node_opt_summary): Call it on all outgoing edges.
15520
15521 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
15522
15523         PR driver/47137
15524         * gcc.c (main): Don't check have_o when settting combine_inputs.
15525
15526 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
15527
15528         * regrename.c: Add general comment describing the pass.
15529         (struct du_head): Remove 'length' field.
15530         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15531         (regrename_optimize): Do not sort chains.  Rework comments, add others.
15532         Force renaming to the preferred class (if any) in the first pass and do
15533         not consider registers that belong to it in the second pass.
15534         (create_new_chain): Do not set 'length' field.
15535         (scan_rtx_reg): Likewise.
15536
15537 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
15538
15539         PR tree-optimization/47140
15540         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15541         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15542         to bit_value_binop.
15543
15544         PR rtl-optimization/47028
15545         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15546         parm_birth_insn instead of at the beginning of first bb.
15547
15548 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
15549
15550         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15551         Remove the word "see" before "@pxref".
15552         * doc/rtl.texi: Remove the word "see" before "@pxref".
15553
15554 2011-01-01  Jan Hubicka  <jh@suse.cz>
15555
15556         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15557         memory.
15558
15559 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
15560
15561         PR target/38662
15562         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15563
15564 \f
15565 Copyright (C) 2011 Free Software Foundation, Inc.
15566
15567 Copying and distribution of this file, with or without modification,
15568 are permitted in any medium without royalty provided the copyright
15569 notice and this notice are preserved.