OSDN Git Service

Fix PR middle-end/49519.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
2
3         PR middle-end/49519
4         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
5         check if address is stored in register. If so - give up.
6         (check_sibcall_argument_overlap_1): Do not perform check of
7         overlapping when it is call to address.
8
9 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
10         
11         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
12         of magic '31'.
13
14 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
15
16         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
17         GET_MODE_BITSIZE where appropriate.
18         (widen_leading, expand_parity, expand_ctz, expand_ffs,
19         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
20         expand_float, expand_fix): Likewise.
21         * expr.c (convert_move, convert_modes, expand_expr_real_2,
22         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
23         * stor-layout.c (get_mode_bounds): Likewise.
24         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
25         Likewise.
26         * convert.c (convert_to_integer): Likewise.
27         * expmed.c (expand_shift_1): Likewise.
28
29         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
30         a bitsize.
31
32         * optabs.c (expand_binop): Tighten conditions for doubleword
33         expansions.
34         (widen_bswap): Assert that mode bitsize and precision are the
35         same.
36         * stor-layout.c (get_best_mode): Skip modes that have lower
37         precision than bitsize.
38         * recog.c (simplify_while_replacing): Assert that bitsize and
39         precision are the same.
40
41 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
42
43         * Makefile.in (LIBGCOV): Remove.
44         (libgcc.mvars): Remove LIBGCOV.
45         * libgov.c: Move to ../libgcc.
46
47 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
48
49         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
50
51 2011-07-08  Martin Jambor  <mjambor@suse.cz>
52
53         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
54         is too big for total scalarization.
55
56 2011-07-07  Richard Henderson  <rth@redhat.com>
57
58         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
59         (DBX_DEBUGGING_INFO): Undef.
60
61 2011-07-07  Richard Henderson  <rth@redhat.com>
62
63         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
64         Handle some opcodes specially for debugging.
65         * print-rtl.c: Include dwarf2out.h
66         (print_rtx): Handle NOTE_INSN_CFI.
67         * Makefile.in (print-rtl.o): Update.
68
69 2011-07-07  Richard Henderson  <rth@redhat.com>
70
71         * tree-pass.h (pass_dwarf2_frame): Declare.
72         * passes.c (init_optimization_passes): Add it.
73         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
74         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
75         make static, do not call add_cfis_to_fde.
76         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
77         dwarf2out_frame_init): Merge into...
78         (execute_dwarf2_frame): ... here.  New function.
79         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
80         saved_do_cfi_asm to a tri-state variable.
81         (gate_dwarf2_frame, pass_dwarf2_frame): New.
82         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
83         if it has yet to be done.  Don't call dwarf2cfi_function_init.
84         * dwarf2out.h, debug.h: Update decls.
85         * final.c (final_start_function): Don't call
86         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
87         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
88         * toplev.c (lang_dependent_init): Likewise.
89
90 2011-07-07  Richard Henderson  <rth@redhat.com>
91
92         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
93         FDE_TABLE_INCREMENT): Replace with...
94         (fde_vec): ... this, a new vector.
95         (current_fde): Remove.  Replace all users with cfun->fde.
96         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
97         (size_of_aranges, dwarf2out_finish): Likewise.
98         (dwarf2out_alloc_current_fde): Break out from ...
99         (dwarf2out_begin_prologue): ... here.
100         (dwarf2out_frame_init): Remove.
101         * dwarf2cfi.c: Update all users of current_fde.
102         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
103         * dwarf2out.h: Update decls.
104         (dw_fde_node): Add fde_index member.
105         * function.h (struct function): Add fde member.
106
107 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
108             Richard Henderson  <rth@redhat.com>
109
110         * dwarf2cfi.c (add_cfi): Remove.
111         (dwarf2out_cfi_label): Remove force argument.  Only generate the
112         label name.
113         (add_fde_cfi): Simplify the different code paths.
114         (add_cie_cfi): New.
115         (old_cfa, old_cfa_remember): New.
116         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
117         (last_reg_save_label): Remove.
118         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
119         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
120         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
121         dwarf2out_frame_debug_cfa_expression,
122         dwarf2out_frame_debug_cfa_restore,
123         dwarf2out_frame_debug_cfa_window_save,
124         dwarf2out_frame_debug_expr): Remove label parameter.
125         (cfi_label_required_p, add_cfis_to_fde): New.
126         (dwarf2out_frame_debug_after_prologue): New.
127         (dwarf2cfi_frame_init): Initialize old_cfa.
128         (dwarf2out_frame_debug_restore_state): Likewise.
129         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
130         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
131         * final.c (final_start_function): Call
132         dwarf2out_frame_debug_after_prologue.
133
134 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
135             Richard Henderson  <rth@redhat.com>
136
137         * dwarf2cfi.c (cfi_insn): New.
138         (dwarf2out_cfi_label): Don't emit cfi label here.
139         (add_fde_cfi): Create a NOTE_INSN_CFI.
140         (dwarf2out_frame_debug): Setup cfi_insn.
141         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
142         (dwarf2out_cfi_begin_epilogue): Make static.
143         (dwarf2out_frame_debug_restore_state): Make static.
144         * dwarf2out.c (output_cfi_directive): Make static.
145         (dwarf2out_emit_cfi): New.
146         * dwarf2out.h: Update.
147         * final.c (final): Remove CFI notes.
148         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
149         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
150         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
151         * insn-notes.def (NOTE_INSN_CFI): New.
152         (NOTE_INSN_CFI_LABEL): New.
153         * rtl.h (union rtunion_def): Add rt_cfi member.
154         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
155
156 2011-07-07  Richard Henderson  <rth@redhat.com>
157
158         * dwarf2cfi.c: New file.
159         * Makefile.in (OBJS): Add it.
160         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
161         * gengtype.c (open_base_files): Include dwarf2out.h.
162         * coretypes.h (enum var_init_status): Move from ...
163         * rtl.h: ... here.
164         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
165         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
166         expand_builtin_dwarf_sp_column, init_return_column_size,
167         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
168         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
169         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
170         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
171         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
172         compute_barrier_args_size, dwarf2out_args_size,
173         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
174         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
175         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
176         queue_reg_save, dwarf2out_flush_queued_reg_saves,
177         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
178         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
179         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
180         dwarf2out_frame_debug_cfa_expression,
181         dwarf2out_frame_debug_cfa_restore,
182         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
183         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
184         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
185         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
186         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
187         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
188         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
189         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
190         dw_loc_descr_node): Move to dwarf2out.h.
191         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
192         mem_loc_descriptor): Export.
193         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
194         (dwarf2out_frame_init): Extract CIE generation code to
195         dwarf2cfi_frame_init.
196
197 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
198
199         PR target/49660
200         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
201         MASK_V8PLUS, remove commented out flag and reorder.
202
203 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
204
205         PR c/49644
206         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
207         one non-complex and one complex argument, call c_save_expr on both
208         operands.
209
210 2011-07-07  Martin Jambor  <mjambor@suse.cz>
211
212         PR middle-end/49495
213         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
214         (verify_cgraph_node): Some functinality moved to
215         verify_edge_corresponds_to_fndecl, call it.
216
217 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
218
219         * config.gcc (*local*): Remove.
220         * doc/install-old.texi: Don't mention local configurations.
221
222 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
223
224         PR debug/49522
225         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
226         referencing debug insns that have been reset.
227         (dead_debug_insert_before): Don't assert reg is non-NULL,
228         instead return immediately if it is NULL.
229
230 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
231
232         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa:
233         Remove.
234
235 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
236
237         * hw-doloop.c: New file.
238         * hw-doloop.h: New file.
239         * Makefile.in (OBJS): Add hw-doloop.o.
240         (hw-doloop.o): New rule.
241         ($(obj_out_file)): Add hw-doloop.h dependency.
242         * config/bfin/bfin.c: Include "hw-doloop.h".
243         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
244         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
245         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
246         type changed to hwloop_info.  Return bool, true if the loop was
247         successfully optimized.  Remove code that was moved to
248         hw-doloop.c, and adjust other parts.
249         (hwloop_fail): New static function, containing parts that used
250         to be in bfin_optimize_loop.
251         (bfin_discover_loop, bfin_discover_loops, free_loops,
252         bfin_reorder_loops): Remove.
253         (hwloop_pattern_reg): New static function.
254         (bfin_doloop_hooks): New variable.
255         (bfin_reorg_loops): Remove most code, call reorg_loops.
256         * config/bfin/bfin.md (doloop_end splitter): Also enable if
257         loop counter is a memory_operand.
258
259 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
260
261         * config.gcc: Support --with-multilib-list for x86 Linux
262         targets.
263
264         * configure.ac: Mention x86-64 for --with-multilib-list.
265         * configure: Regenerated.
266
267         * config/i386/gnu-user64.h (SPEC_64): Support x32.
268         (SPEC_32): Likewise.
269         (ASM_SPEC): Likewise.
270         (LINK_SPEC): Likewise.
271         (TARGET_THREAD_SSP_OFFSET): Likewise.
272         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
273         (SPEC_X32): New.
274
275         * config/i386/i386.h (TARGET_X32): New.
276         (TARGET_LP64): New.
277         (LONG_TYPE_SIZE): Likewise.
278         (POINTER_SIZE): Likewise.
279         (POINTERS_EXTEND_UNSIGNED): Likewise.
280         (OPT_ARCH64): Support x32.
281         (OPT_ARCH32): Likewise.
282
283         * config/i386/i386.opt (mx32): New.
284
285         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
286         (GLIBC_DYNAMIC_LINKERX32): Likewise.
287         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
288         (GLIBC_DYNAMIC_LINKERX32): Likewise.
289
290         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
291         (BIONIC_DYNAMIC_LINKERX32): Likewise.
292         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
293
294         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
295
296         * doc/install.texi: Document --with-multilib-list for
297         Linux/x86-64.
298
299         * doc/invoke.texi: Document -mx32.
300
301 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
302
303         * doc/invoke.texi (mwords-little-endian): Deprecate.
304         * config/arm/arm.opt (mwords-little-endian): Likewise.
305         * config/arm/arm.c (arm_option_override): Warn about the deprecation
306         of -mwords-little-endian.
307
308 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
309
310         * reload1.c (choose_reload_regs): Use mode sizes to check whether
311         an old reload register completely defines the required value.
312
313 2011-07-07  Richard Guenther  <rguenther@suse.de>
314
315         * fold-const.c (fold_unary_loc): Do not strip sign-changes
316         for NEGATE_EXPR.
317
318 2011-07-07  Richard Guenther  <rguenther@suse.de>
319
320         * tree-vrp.c (simplify_conversion_using_ranges): New function.
321         (simplify_stmt_using_ranges): Call it.
322
323 2011-07-07  Kai Tietz  <ktietz@redhat.com>
324
325         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
326         (lookup_logical_inverted_value): Likewise.
327         (simplify_bitwise_binary_1): Likewise.
328         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
329
330 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
331
332         * gcc.c (%[Spec]): Don't document.
333         (struct spec_list): Update comment.
334         (do_spec_1): Don't handle %[Spec].
335         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
336
337 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
338
339         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
340         default based on TARGET_ASM_NAMED_SECTION.
341         * common/common-target.def (have_named_sections): Default to true.
342         * common/config/default-common.c: Don't include tm.h.
343         * common/config/picochip/picochip-common.c
344         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
345         * common/config/m32c/m32c-common.c: Remove.
346         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
347         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to
348         false.
349         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to
350         false.
351         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to
352         false.
353         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
354         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to
355         false.
356         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to
357         false.
358
359 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
360
361         PR middle-end/49640
362         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF
363         operands and last COMPONENT_REF operand call gimplify_expr on it
364         if non-NULL.
365
366 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
367
368         PR libmudflap/49550
369         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
370
371 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
372
373         PR target/39150
374         * configure.ac (gcc_cv_as_hidden): Also accept
375         x86_64-*-solaris2.1[0-9]*.
376         (gcc_cv_as_cfi_directive): Likewise.
377         (gcc_cv_as_comdat_group_group): Likewise.
378         (set_have_as_tls): Likewise.
379         * configure: Regenerate.
380         * config.gcc (i[34567]86-*-solaris2*): Also handle
381         x86_64-*-solaris2.1[0-9]*.
382         * config.host (i[34567]86-*-solaris2*): Likewise.
383         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
384         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
385         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
386         (TARGET_LD_EMULATION): Use it.
387         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
388         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
389         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
390         (ASM_CPU64_DEFAULT_SPEC): Define.
391         (ASM_CPU_SPEC): Use %(asm_cpu_default).
392         (ASM_SPEC): Redefine.
393         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
394         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
395         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*):
396         Document.
397         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
398         configuration.
399         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
400
401 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
402
403         * config/sol2.h (ASM_SPEC): Split into ...
404         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
405         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
406         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
407         (ASM_SPEC): Use ASM_SPEC_BASE.
408         * config/sparc/sol2.h (ASM_SPEC): Redefine.
409
410 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
411         
412         * config/avr/avr.md (*reload_insi): Change predicate #1 to
413         const_int_operand.  Ditto for peep2 producing this insn.
414         Add argument to output_reload_insisf call.
415         (*movsi,*movsf): Add argument to output_movsisf call.
416         (*reload_insf): New insn and new peep2 to produce it.
417         * config/avr/avr-protos.h (output_movsisf): Change prototype.
418         (output_reload_insisf): Change prototype.
419         * config/avr/avr.c (avr_asm_len): New function.
420         (output_reload_insisf): Rewrite.
421         (output_movsisf): Change prototype.  output_reload_insisf for
422         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
423         (adjust_insn_length): Add argument to output_movsisf and
424         output_reload_insisf call.
425
426 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
427
428         * emit-rtl.c (paradoxical_subreg_p): New function.
429         * rtl.h (paradoxical_subreg_p): Declare.
430         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
431         apply_distributive_law, simplify_comparison, simplify_set): Use it.
432         * cse.c (record_jump_cond, cse_insn): Likewise.
433         * expr.c (force_operand): Likewise.
434         * rtlanal.c (num_sign_bit_copies1): Likewise.
435         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
436         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
437         (push_reload): Use precision to check for paradoxical subregs.
438         * expmed.c (extract_bit_field_1): Likewise.
439
440         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
441         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
442         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
443         simplify_set, simplify_logical, expand_compound_operation,
444         make_extraction, force_to_mode, if_then_else_cond, extended_count,
445         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
446         record_value_for_reg): Likewise.
447         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
448         * simplify-rtx. c (simplify_unary_operation_1,
449         simplify_binary_operation_1, simplify_const_relational_operation):
450         Likewise.
451
452         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
453         instead of GET_MODE_BITSIZE where appropriate.
454         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
455         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
456         init_num_sign_bit_copies_in_rep): Likewise.
457         * cse.c (fold_rtx, cse_insn): Likewise.
458         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
459         * simplify-rtx.c (simplify_unary_operation_1,
460         simplify_const_unary_operation, simplify_binary_operation_1,
461         simplify_const_binary_operation, simplify_ternary_operation,
462         simplify_const_relational_operation, simplify_subreg): Likewise.
463         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
464         simplify_if_then_else, simplify_set, expand_compound_operation,
465         expand_field_assignment, make_extraction, if_then_else_cond,
466         make_compound_operation, force_to_mode, make_field_assignment,
467         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
468         extended_count, try_widen_shift_mode, simplify_shift_const_1,
469         simplify_comparison, record_promoted_value, simplify_compare_const,
470         record_dead_and_set_regs_1): Likewise.
471
472         Revert:
473         * simplify-rtx.c (simplify_const_binary_operation): Use the
474         shift_truncation_mask hook instead of performing modulo by
475         width.  Compare against mode precision, not bitsize.
476         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
477         Use shift_truncation_mask instead of constructing the value
478         manually.
479
480 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
481
482         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
483         declaration.
484         (rs6000_save_toc_in_prologue_p): Ditto.
485
486         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
487         up the static chain (r11) during indirect function calls.
488         (-msave-toc-indirect): New undocumented debug switch.
489
490         * config/rs6000/rs6000.c (struct machine_function): Add
491         save_toc_in_prologue field to note whether the prologue needs to
492         save the TOC value in the reserved stack location.
493         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
494         to save the TOC in the prologue, do so.
495         (rs6000_trampoline_init): Don't allow creating AIX style
496         trampolines if -mno-r11 is in effect.
497         (rs6000_call_indirect_aix): New function to create AIX style
498         indirect calls, adding support for -mno-r11 to suppress loading
499         the static chain, and saving the TOC in the prologue instead of
500         the call body.
501         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
502         TOC in the prologue.
503
504         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
505         register numbers.
506         (TOC_REGNUM): Ditto.
507         (STATIC_CHAIN_REGNUM): Ditto.
508         (ARG_POINTER_REGNUM): Ditto.
509         (SFP_REGNO): Delete, unused.
510         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
511         function descriptor offsets.
512         (TOC_SAVE_OFFSET_64BIT): Ditto.
513         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
514         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
515         (AIX_FUNC_DESC_SC_32BIT): Ditto.
516         (AIX_FUNC_DESC_SC_64BIT): Ditto.
517         (ptrload): New mode attribute for the appropriate load of a
518         pointer.
519         (call_indirect_aix32): Delete, rewrite AIX indirect function
520         calls.
521         (call_indirect_aix64): Ditto.
522         (call_value_indirect_aix32): Ditto.
523         (call_value_indirect_aix64): Ditto.
524         (call_indirect_nonlocal_aix32_internal): Ditto.
525         (call_indirect_nonlocal_aix32): Ditto.
526         (call_indirect_nonlocal_aix64_internal): Ditto.
527         (call_indirect_nonlocal_aix64): Ditto.
528         (call): Rewrite AIX indirect function calls.  Add support for
529         eliminating the static chain, and for moving the save of the TOC
530         to the function prologue.
531         (call_value): Ditto.
532         (call_indirect_aix<ptrsize>): Ditto.
533         (call_indirect_aix<ptrsize>_internal): Ditto.
534         (call_indirect_aix<ptrsize>_internal2): Ditto.
535         (call_indirect_aix<ptrsize>_nor11): Ditto.
536         (call_value_indirect_aix<ptrsize>): Ditto.
537         (call_value_indirect_aix<ptrsize>_internal): Ditto.
538         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
539         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
540         (call_nonlocal_aix32): Relocate in the rs6000.md file.
541         (call_nonlocal_aix64): Ditto.
542
543         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
544         -mno-r11 documentation.
545
546 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
547
548         PR other/49658
549         * doc/extend.texi (Compound Literals): Fix typo.
550
551 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
552
553         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add
554         __ARM_FEATURE_DSP.
555
556 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
557
558         * configure.ac (plugin-version.h): Generate
559         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
560         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
561         macros.
562
563         * configure: Regenerate.
564
565         * doc/plugins.texi (Building GCC plugins): Mention
566         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
567
568 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
569
570         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
571         * combine.c (make_extraction, gen_lowpart_or_truncate,
572         apply_distributive_law, simplify_comparison,
573         reg_truncated_to_mode, record_truncated_value): Use it.
574         * cse.c (notreg_cost): Likewise.
575         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
576         * expr.c (convert_move, convert_modes): Likewise.
577         * optabs.c (expand_binop, expand_unop): Likewise.
578         * postreload.c (move2add_last_label): Likewise.
579         * regmove.c (optimize_reg_copy_3): Likewise.
580         * rtlhooks.c (gen_lowpart_general): Likewise.
581         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
582
583 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
584
585         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
586
587 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
588
589         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
590         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
591         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
592         (simplify_const_unary_operation, simplify_binary_operation_1,
593         simplify_const_binary_operation,
594         simplify_const_relational_operation): Use them.  Use
595         GET_MODE_MASK for masking and sign-extensions.
596         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
597         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
598         simplify_shift_const_1, simplify_comparison): Likewise.
599         * expr.c (convert_modes): Likewise.
600         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
601         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag):
602         Likewise.
603         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
604
605         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
606
607 2011-07-06  Richard Guenther  <rguenther@suse.de>
608
609         PR tree-optimization/49645
610         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
611         register variables.
612         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
613         in type qualification here ...
614         (copy_reference_ops_from_ref): ... not here.
615         (vn_reference_lookup_3): ... or here.
616         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
617         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
618
619 2011-07-06  Ian Lance Taylor  <iant@google.com>
620
621         * doc/install.texi (Configuration): It's
622         --enable-gnu-indirect-function, not --enable-indirect-function.
623
624 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
625
626         * simplify-rtx.c (simplify_const_binary_operation): Use the
627         shift_truncation_mask hook instead of performing modulo by
628         width.  Compare against mode precision, not bitsize.
629         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
630         Use shift_truncation_mask instead of constructing the value
631         manually.
632
633 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
634
635         PR middle-end/47383
636         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
637         address computation and convert to address_mode if needed.
638
639 2011-07-06  Richard Guenther  <rguenther@suse.de>
640
641         * tree.c (build_common_tree_nodes_2): Merge with
642         build_common_tree_nodes.
643         * tree.h (build_common_tree_nodes): Adjust prototype.
644         (build_common_tree_nodes_2): Remove.
645         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
646         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
647
648 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
649
650         PR tree-optimization/49618
651         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
652         t recurse on the decl.
653         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
654         return true if expr isn't known to be defined in current
655         TU or some other LTO partition.
656
657 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
658
659         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
660         override CASE_VALUES_THRESHOLD.
661
662         * stmt.c (toplevel): Include params.h.
663         (case_values_threshold): Use the --param case-values-threshold
664         value if non-zero, otherwise use machine dependent value.
665         (expand_case): Use case_values_threshold.
666
667         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
668
669         * doc/invoke.texi (--param case-values-threshold): Document.
670
671 2011-07-05  Richard Henderson  <rth@redhat.com>
672
673         * dwarf2out.c (dwarf2out_cfi_label): Make static.
674         (dwarf2out_flush_queued_reg_saves): Make static.
675         (dwarf2out_reg_save): Remove.
676         (dwarf2out_return_save): Remove.
677         (dwarf2out_return_reg): Remove.
678         (dwarf2out_reg_save_reg): Remove.
679         (dwarf2out_def_cfa): Merge into ...
680         (dwarf2out_frame_init): ... here.
681         * dwarf2out.h, tree.h: Remove declarations as necessary.
682
683 2011-07-05  Richard Henderson  <rth@redhat.com>
684
685         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
686         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
687         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
688         the alloc insn.
689
690         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
691         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
692         (process_epilogue): Don't call dwarf2out_def_cfa.
693
694         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
695         indicate the return address save.
696         (process_cfa_register): Likewise.
697
698         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
699         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
700
701         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
702         for ar.pfs save at alloc insn.
703
704 2011-07-05  Richard Henderson  <rth@redhat.com>
705
706         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
707         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
708         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
709         stack pointer save.
710         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
711         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
712         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
713         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
714
715 2011-07-05  Richard Henderson  <rth@redhat.com>
716
717         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
718         VUNSPEC_* constants here instead of via define_constants.
719         (VUNSPEC_PEM): New constant.
720         (procedure_entry_mask): New insn.
721         (prologue): New expander.
722         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
723         (vax_expand_prologue): Rename from vax_output_function_prologue;
724         emit rtl instead of text.
725         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
726         (print_operand): Add 'x' prefix.
727
728 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
729
730         PR middle-end/47715
731         * calls.c (precompute_register_parameters): Promote the function
732         argument before checking non-legitimate constant.
733
734 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
735
736         PR tree-optimization/47654
737         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
738         (lst_do_strip_mine_loop): Return an int.
739         (lst_do_strip_mine): Same.
740         (scop_do_strip_mine): Same.
741         (scop_do_block): Loop blocking should strip-mine at least two loops.
742         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
743         (scop_do_interchange): Same.
744         * graphite-poly.h (scop_do_interchange): Update declaration.
745         (scop_do_strip_mine): Same.
746
747 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
748
749         * graphite-clast-to-gimple.c (precision_for_value): Removed.
750         (precision_for_interval): Removed.
751         (gcc_type_for_interval): Use mpz_sizeinbase.
752
753 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
754
755         * graphite-ppl.h (value_max): Correct computation of max.
756
757 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
758
759         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
760
761 2011-07-05  Richard Guenther  <rguenther@suse.de>
762
763         * c-decl.c (c_init_decl_processing): Defer building common
764         tree nodes to c_common_nodes_and_builtins.
765
766 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
767
768         PR tree-optimization/49580
769         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of 
770         the loop's number of iterations.
771         * tree-parloops.c (transform_to_exit_first_loop): Add the 
772         handling of the loop's number of iterations before the call 
773         to gimple_duplicate_sese_tail.
774         Insert the stmt caclculating the new rhs of the loop's
775         condition stmt to the preheader instead of iters_bb.
776
777 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
778
779         PR rtl-optimization/47449
780         * fwprop.c (forward_propagate_subreg): Don't propagate hard
781         register nor zero/sign extended hard register.
782
783 2011-07-05  Richard Guenther  <rguenther@suse.de>
784
785         PR tree-optimization/49518
786         PR tree-optimization/49628
787         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
788         irrelevant and invariant data-references.
789         (vect_analyze_data_ref_access): For invariant loads clear the
790         group association.
791
792 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
793
794         PR rtl-optimization/49619
795         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
796         pass VOIDmode as op0_mode to recursive call, and return temp even
797         when different from tor, just if it is not IOR of the original
798         PLUS arguments.
799
800         PR rtl-optimization/49472
801         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
802         negating MULT, negate the second operand instead of first.
803         (simplify_binary_operation_1) <case MULT>: If one operand is
804         a NEG and the other is MULT, don't attempt to optimize by
805         negation of the MULT operand if it only moves the NEG operation
806         around.
807
808         PR debug/49602
809         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
810         get_current_def return value if it can't be trusted to be
811         the current value of the variable in the current bb.
812
813 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
814
815         PR target/49600
816         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
817         general register to memory for !TARGET_INTER_UNIT_MOVES.
818
819 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
820
821         PR target/44643
822         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
823         instead of TREE_READONLY.
824
825 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
826
827         * doc/extend.texi (AVR Built-in Functions): Update documentation
828         of __builtin_avr_fmul*.
829         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
830         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
831         * config/avr/avr.md (fmul): Rename to fmul_insn.
832         (fmuls): Rename to fmuls_insn.
833         (fmulsu): Rename to fmulsu_insn.
834         (fmul,fmuls,fmulsu): New expander.
835         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
836         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
837         * config/avr/libgcc.S (__fmul): New function.
838         (__fmuls): New function.
839         (__fmulsu,__fmulsu_exit): New function.
840
841 2011-07-04  Richard Guenther  <rguenther@suse.de>
842
843         PR tree-optimization/49615
844         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
845         basic-block index check.
846
847 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
848
849         * longlong.h (count_leading_zeros, count_trailing_zeros,
850         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
851         resp. 64.
852
853 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
854
855         PR tree-optimization/49610
856         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
857         a basic block.
858
859 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
860             Olivier Hainque  <hainque@adacore.com>
861             Nicolas Setton  <setton@adacore.com>
862
863         * tree.h (TYPE_ARTIFICIAL): New flag.
864         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
865         the DIE of the type if it is artificial.
866         (gen_array_type_die): Likewise.
867         (gen_enumeration_type_die): Likewise.
868         (gen_struct_or_union_type_die): Likewise.
869         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
870         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
871
872 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
873
874         * tree-object-size.c (pass_through_call): Handle
875         BUILT_IN_ASSUME_ALIGNED.
876
877 2011-07-01  Martin Jambor  <mjambor@suse.cz>
878
879         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
880
881 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
882
883         PR middle-end/48016
884         * explow.c (update_nonlocal_goto_save_area): Use proper mode
885         for stack save area.
886         * function.c (expand_function_start): Likewise.
887
888 2011-07-01  Richard Guenther  <rguenther@suse.de>
889
890         PR middle-end/49596
891         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
892         may have unknown refs.
893
894 2011-07-01  Kai Tietz  <ktietz@redhat.com>
895
896         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
897
898 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
899
900         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
901         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
902         (Specific, mips-sgi-irix6): Likewise.
903
904 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
905
906         PR libmudflap/49549
907         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
908
909 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
910
911         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
912         [idx]= and [idx1 ... idx2]= before initializers if needed for
913         array initializers.
914
915 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
916
917         * config.gcc (score-*-elf): Remove score7.o.
918         * config/score/t-score-elf: Likewise.
919         * config/score/score.c: Merge score7 to score.c and
920         remove forwarding functions.
921         * config/score/score7.c: Deleted.
922         * config/score/score7.h: Deleted.
923
924 2011-07-01  Richard Guenther  <rguenther@suse.de>
925
926         PR tree-optimization/49603
927         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
928
929 2011-06-30  Martin Jambor  <mjambor@suse.cz>
930
931         * tree-sra.c (struct access): Rename total_scalarization to
932         grp_total_scalarization
933         (completely_scalarize_var): New function.
934         (sort_and_splice_var_accesses): Set total_scalarization in the
935         representative access.
936         (analyze_access_subtree): Propagate total scalarization accross the
937         tree, no holes in totally scalarized trees, simplify coverage
938         computation.
939         (analyze_all_variable_accesses): Call completely_scalarize_var instead
940         of completely_scalarize_record.
941
942 2011-06-30  Richard Henderson  <rth@redhat.com>
943
944         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
945         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
946         * config/i386/i386.c: Don't include dwarf2out.h.
947         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
948         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
949         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
950         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
951         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
952
953 2011-06-30  Richard Henderson  <rth@redhat.com>
954
955         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
956         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
957         * final.c (final_scan_insn): Look for it, and invoke
958         dwarf2out_frame_debug before the insn if found.
959
960 2011-06-30  Richard Henderson  <rth@redhat.com>
961
962         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
963         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
964
965 2011-06-30  Richard Henderson  <rth@redhat.com>
966
967         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
968         Define a vector of this type.
969         (regs_saved_in_regs): Use a VEC.
970         (num_regs_saved_in_regs): Remove.
971         (compare_reg_or_pc): New.
972         (record_reg_saved_in_reg): Split out from...
973         (dwarf2out_flush_queued_reg_saves): ... here.
974         (clobbers_queued_reg_save): Update for VEC.
975         (reg_saved_in): Likewise.
976         (dwarf2out_frame_debug_init): Likewise.
977         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
978         (dwarf2out_frame_debug_cfa_register): Likewise.
979
980 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
981
982         PR tree-optimization/49572
983         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
984         type of the RHS instead of that of the LHS for the expression type.
985
986 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
987
988         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
989         unconditionally.
990
991 2011-06-30  Richard Guenther  <rguenther@suse.de>
992
993         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
994         * tree-ssa-structalias.c (create_variable_info_for): Do not
995         add initial constraints for non-var-decls.  Properly handle
996         globals in other ltrans partitions.
997         (intra_create_variable_infos): Manually create constraints for
998         the fake no-alias parameter.
999         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
1000         and assert there are no clones.
1001
1002 2011-06-30  Richard Guenther  <rguenther@suse.de>
1003
1004         PR tree-optimization/46787
1005         * tree-data-ref.c (dr_address_invariant_p): Remove.
1006         (find_data_references_in_stmt): Invariant accesses are ok now.
1007         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
1008         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
1009         invariant loads.
1010
1011 2011-06-30  Martin Jambor  <mjambor@suse.cz>
1012
1013         PR tree-optimization/49094
1014         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
1015         (build_accesses_from_assign): Use it.
1016
1017 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
1018
1019         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
1020         handling of BUILT_IN_ASSUME_ALIGNED.
1021
1022         PR debug/49364
1023         * dwarf2out.c (output_abbrev_section): Don't return early
1024         if abbrev_die_table_in_use is 1.
1025         (dwarf2out_finish): Instead don't call output_abbrev_section
1026         nor emit abbrev_section_label in that case.
1027
1028 2011-06-30  Nick Clifton  <nickc@redhat.com>
1029
1030         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
1031         for the V850E.
1032
1033 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
1034
1035         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
1036         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
1037
1038 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
1039
1040         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1041         both pattern and original statements if necessary.
1042         (vect_transform_loop): Likewise.
1043         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
1044         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
1045         Mark the pattern statement only if the original statement doesn't
1046         have its own uses.
1047         (process_use): Call vect_mark_relevant with additional parameter.
1048         (vect_mark_stmts_to_be_vectorized): Likewise.
1049         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
1050         (vect_analyze_stmt): Handle both pattern and original statements
1051         if necessary.
1052         (vect_transform_stmt): Don't store vectorized pattern statement
1053         in the original statement.
1054         (vect_is_simple_use_1): Use related pattern statement only if the
1055         original statement is irrelevant.
1056         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
1057
1058 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
1059
1060         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
1061         option.
1062         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
1063         entry.
1064         (TARGET_AVX128_OPTIMAL): New definition.
1065         * config/i386/i386.c (initial_ix86_tune_features): Initialize
1066         X86_TUNE_AVX128_OPTIMAL entry.
1067         (ix86_option_override_internal): Enable the generation
1068         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
1069         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
1070         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
1071
1072 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
1073
1074         PR tree-optimization/49539
1075         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
1076         names by means of stmt_references_abnormal_ssa_name.
1077         (associate_plusminus): Call can_propagate_from before propagating
1078         from definition statements.
1079         (ssa_forward_propagate_and_combine): Remove superfluous newline.
1080
1081 2011-06-29  Richard Guenther  <rguenther@suse.de>
1082
1083         * doc/invoke.texi: Document -scev dump modifier.
1084         * tree-pass.h (TDF_SCEV): New dump flag.
1085         * tree-dump.c (dump_option_value_in): Add scev.
1086         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
1087         * tree-scalar-evolution.c: Likewise.
1088
1089 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
1090
1091         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
1092         (cxa_type_match): Correct declaration.
1093         (__gnu_unwind_pr_common): Reconstruct additional indirection
1094         when __cxa_type_match returns succeeded_with_ptr_to_base.
1095
1096 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1097
1098         PR rtl-optimization/49114
1099         * reload.c (struct replacement): Remove SUBREG_LOC member.
1100         (push_reload): Do not set it.
1101         (push_replacement): Likewise.
1102         (subst_reload): Remove dead code.
1103         (copy_replacements): Remove assertion.
1104         (copy_replacements_1): Do not handle SUBREG_LOC.
1105         (move_replacements): Likewise.
1106         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
1107         Detect subregs via recursive descent instead of via SUBREG_LOC.
1108
1109 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
1110
1111         * config/avr/avr.c (avr_encode_section_info): Dispatch to
1112         default_encode_section_info.
1113
1114 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
1115
1116         PR tree-optimization/49545
1117         * builtins.c (get_object_alignment_1): Update function comment.
1118         Do not use DECL_ALIGN for functions, but test
1119         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
1120         * fold-const.c (get_pointer_modulus_and_residue): Don't check
1121         for functions here.
1122         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
1123
1124 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
1125
1126         PR debug/49567
1127         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
1128         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
1129
1130 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
1131
1132         PR target/34734
1133         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
1134         about uninitialized data attributed 'progmem' from here...
1135         (avr_encode_section_info): ...to this new function.
1136         (TARGET_ENCODE_SECTION_INFO): New define.
1137         (avr_section_type_flags): For data in ".progmem.data", remove
1138         section flag SECTION_WRITE.
1139
1140 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
1141
1142         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
1143         _xmulhisi3_exit.
1144         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
1145         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
1146         (__umulhisi3): Ditto.
1147         * config/avr/avr.md (mulhisi3): New insn expender.
1148         (umulhisi3): New insn expender.
1149         (*mulhisi3_call): New insn.
1150         (*umulhisi3_call): New insn.
1151
1152 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
1153
1154         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
1155
1156 2011-06-28  Richard Henderson  <rth@redhat.com>
1157
1158         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
1159         all code and arguments that handled pushes.  Update all callers.
1160
1161 2011-06-28  Richard Henderson  <rth@redhat.com>
1162
1163         * config/arm/arm.c (arm_output_function_prologue): Don't call
1164         thumb1_output_function_prologue.
1165         (arm_expand_prologue): Avoid dead store.
1166         (number_of_first_bit_set): Use ctz_hwi.
1167         (thumb1_emit_multi_reg_push): New.
1168         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
1169         to emit the entire prologue as rtl.
1170         (thumb1_output_interwork): Split out from
1171         thumb1_output_function_prologue.
1172         (thumb1_output_function_prologue): Remove.
1173         (arm_attr_length_push_multi): Handle thumb1.
1174         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
1175         (prologue_thumb1_interwork): New.
1176         (*push_multi): Allow thumb1; use push_mult_memory_operand.
1177         * config/arm/predicates.md (push_mult_memory_operand): New.
1178
1179 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
1180
1181         * config/sparc/sync.md (*stbar): Delete.
1182         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
1183
1184 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
1185
1186         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
1187
1188 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1189
1190         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
1191         (TARGET_64BIT_DEFAULT): Define.
1192         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
1193         of tm_file.
1194         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
1195
1196 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
1197
1198         * common.opt (in_lto_p): New Variable entry.
1199         * flags.h (in_lto_p): Move to common.opt.
1200         * gcc.c: Include params.h.
1201         (set_option_handlers): Also use common_handle_option and
1202         target_handle_option.
1203         (main): Call global_init_params, finish_params and init_options_struct.
1204         * opts.c (debug_type_names): Move from toplev.c.
1205         (print_filtered_help): Access quiet_flag through opts pointer.
1206         (common_handle_option): Return early in the driver for some options.
1207         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
1208         opts pointer.
1209         * toplev.c (in_lto_p): Move to common.opt.
1210         (debug_type_names): Move to opts.c.
1211         * Makefile.in (OBJS): Remove opts.o.
1212         (OBJS-libcommon-target): Add opts.o.
1213         (gcc.o): Update dependencies.
1214
1215 2011-06-28  Kai Tietz  <ktietz@redhat.com>
1216
1217         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
1218
1219 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1220
1221         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
1222         with '=' constraint modifier.
1223         (*divdf3_vfp): Likewise.
1224         ("*mulsf3_vfp"): Likewise.
1225         ("*muldf3_vfp"): Likewise.
1226         ("*mulsf3negsf_vfp"): Likewise.
1227         ("*muldf3negdf_vfp"): Likewise.
1228
1229 2011-06-28  Nick Clifton  <nickc@redhat.com>
1230
1231         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
1232         relaxation when performing an incremental link.
1233
1234 2011-06-28  Kai Tietz  <ktietz@redhat.com>
1235
1236         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
1237         within BB from last to first.
1238
1239 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
1240
1241         * genattr-common.c: New.  Based on genattr.c.
1242         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
1243         (MOSTLYCLEANFILES): Add insn-attr-common.h.
1244         (opts.o): Update dependencies.
1245         (.PRECIOUS): Add insn-attr-common.h.
1246         (simple_rtl_generated_h): Add insn-attr-common.h.
1247         (build/genattr-common.o): New.
1248         (genprogrtl): Add attr-common.
1249         * genattr.c (main): Include insn-attr-common.h.  Don't generate
1250         definitions of DELAY_SLOTS or INSN_SCHEDULING.
1251         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
1252
1253 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
1254
1255         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
1256         avr-*-* and avr-*-rtems* targets.
1257
1258         * config/avr/elf.h: New file.
1259         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
1260         (TARGET_ASM_SELECT_SECTION): Define.
1261         (INIT_SECTION_ASM_OP): Undefine.
1262         (FINI_SECTION_ASM_OP): Undefine.
1263         (READONLY_DATA_SECTION_ASM_OP): Undefine.
1264         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
1265         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
1266         * config/avr/avr.h:
1267         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
1268         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
1269         (MAX_OFILE_ALIGNMENT): Move to elf.h.
1270         (STRING_LIMIT): Move to elf.h.
1271         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
1272         (ASM_DECLARE_OBJECT_NAME): Remove.
1273         (ESCAPES): Remove.
1274         (ASM_OUTPUT_SKIP): Remove.
1275         (DWARF2_DEBUGGING_INFO): Remove.
1276         (OBJECT_FORMAT_ELF): Remove.
1277         (USER_LABEL_PREFIX): Remove.
1278         (ASM_OUTPUT_EXTERNAL): Remove.
1279         (ASM_OUTPUT_ASCII): Remove.
1280         (TYPE_ASM_OP): Remove.
1281         (SIZE_ASM_OP): Remove.
1282         (WEAK_ASM_OP): Remove.
1283         (STRING_ASM_OP): Remove.
1284         (SET_ASM_OP): Remove.
1285         (ASM_WEAKEN_LABEL): Remove.
1286         (TYPE_OPERAND_FMT): Remove.
1287         (ASM_DECLARE_FUNCTION_SIZE): Remove.
1288         (ASM_FINISH_DECLARE_OBJECT): Remove.
1289         (NO_DOLLAR_IN_LABEL): Remove.
1290         (ASM_GENERATE_INTERNAL_LABEL): Remove.
1291         (ASM_OUTPUT_CASE_LABEL): Remove.
1292         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
1293         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
1294         (gas_output_ascii): Remove.
1295         (gas_output_limited_string): Remove.
1296         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
1297         * config/avr/avr-protos.h
1298         (gas_output_ascii): Remove prototye.
1299         (gas_output_limited_string): Remove prototype.
1300
1301 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
1302
1303         PR target/48637
1304         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
1305         asm operands.
1306
1307 2011-06-27  Jan Hubicka  <jh@suse.cz>
1308
1309         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
1310         node instead of references in node.
1311
1312 2011-06-27  Richard Henderson  <rth@redhat.com>
1313
1314         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
1315         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
1316         inside ifdef.
1317
1318 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
1319
1320         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
1321
1322         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
1323         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
1324         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
1325         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
1326         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
1327         (evaluate_stmt, execute_fold_all_builtins): Handle
1328         BUILT_IN_ASSUME_ALIGNED.
1329         * tree-ssa-dce.c (propagate_necessity): Likewise.
1330         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
1331         call_may_clobber_ref_p_1): Likewise.
1332         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
1333         (expand_builtin_assume_aligned): New function.
1334         * doc/extend.texi (__builtin_assume_aligned): Document.
1335
1336         PR debug/49544
1337         * cselib.c (promote_debug_loc): If cselib_preserve_constants
1338         and l has two DEBUG_INSN owned locs instead of just one, adjust
1339         the second location's setting_insn too.
1340
1341 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1342
1343         PR libmudflap/38738
1344         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
1345
1346 2011-06-27  Nick Clifton  <nickc@redhat.com>
1347
1348         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
1349         bit position of highest bit set into a count of the high zero bits.
1350
1351 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
1352
1353         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
1354
1355 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
1356
1357         PR lto/48492
1358         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
1359         to a NULL parent.
1360
1361 2011-06-27  Richard Guenther  <rguenther@suse.de>
1362
1363         PR tree-optimization/49394
1364         * passes.c (execute_one_pass): Restore current_pass after
1365         applying IPA transforms.
1366
1367 2011-06-27  Kai Tietz  <ktietz@redhat.com>
1368
1369         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
1370         out of type precision after operation.
1371         (find_bswap): Take for limit value the integer auto-promotion
1372         into account.
1373
1374 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
1375
1376         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
1377         forward scan as well.
1378
1379 2011-06-27  Tristan Gingold  <gingold@adacore.com>
1380
1381         PR target/44241
1382         * config/vms/vms-protos.h: New file.
1383         * config/vms/vms-crtlmap.map: New file.
1384         * config/vms/vms.c: New file.
1385         * config/vms/make-crtlmap.awk: New file.
1386         * config/vms/vms-crtl.h: File removed.
1387         * config/vms/vms-crtl-64.h: File removed.
1388         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
1389         * config/alpha/vms64.h: Do not include vms-crtl-64.h
1390         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
1391         clear some builtins on VMS.  Calls vms_patch_builtins.
1392         (avms_asm_output_external): Remove.
1393         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
1394         (struct crtl_name_spec): Remove
1395         (DO_CTRL_NAMES): Remove.
1396         * config/ia64/vms.h (struct crtl_name_spec): Remove
1397         (DO_CTRL_NAMES): Remove.
1398         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
1399         clear some builtins on VMS.  Calls vms_patch_builtins.
1400         (ia64_asm_output_external): Remove DO_CRTL_NAME.
1401         * config/ia64/vms64.h: Do not include vms-crtl-64.h
1402         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
1403
1404 2011-06-27  Tristan Gingold  <gingold@adacore.com>
1405
1406         * config/alpha/alpha.c (alpha_end_function): Always generate .end
1407         directive on VMS.
1408
1409 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
1410
1411         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
1412         the function receives nonlocal gotos.
1413
1414 2011-06-27  Richard Guenther  <rguenther@suse.de>
1415
1416         PR tree-optimization/49536
1417         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
1418         For non-scalar inner types use a scalar type according to
1419         the scalar inner mode.
1420
1421 2011-06-27  Richard Guenther  <rguenther@suse.de>
1422
1423         PR tree-optimization/49365
1424         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
1425
1426 2011-06-27  Richard Guenther  <rguenther@suse.de>
1427
1428         PR tree-optimization/49169
1429         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
1430         the alignment of function decls.
1431
1432 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
1433
1434         PR target/47997
1435         * config/darwin.c (darwin_mergeable_string_section): Place string
1436         constants in '.cstring' rather than '.const' when CF/NSStrings are
1437         active.
1438
1439 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
1440
1441         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
1442         (emit_save_register_window): Likewise.
1443         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
1444         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
1445         Swap back %o7/%i7 in register naming.
1446
1447 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
1448
1449         PR driver/49371
1450         * config/darwin.c (darwin_override_options): Improve warning when
1451         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
1452         is given with fpie/fPIE.
1453         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
1454         * config/darwin9.h (PIE_SPEC): New.
1455
1456 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
1457
1458         * timevar.c (timevar_print): Increase width for display of timevar
1459         name.
1460
1461 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
1462
1463         PR c++/46400
1464         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
1465         instead of TYPE_CHAIN for chain_next for types.
1466
1467 2011-06-24  Richard Henderson  <rth@redhat.com>
1468
1469         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
1470         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
1471         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
1472         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
1473         (sparc_flat_expand_prologue): Emit individual instructions
1474         instead of one of the above.
1475
1476 2011-06-24  Easwaran Raman  <eraman@google.com>
1477
1478         PR rtl-optimization/49429
1479         PR target/49454
1480         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
1481         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
1482         used to copy y into x.
1483         * calls.c (initialize_argument_information): Mark
1484         an argument addressable if it is passed by invisible reference.
1485         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
1486         if it is passed by reference.
1487
1488 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
1489
1490         PR rtl-optimization/49504
1491         * rtlanal.c (nonzero_bits1): Properly handle addition or
1492         subtraction of a pointer in Pmode if pointers extend unsigned.
1493         (num_sign_bit_copies1): Likewise.
1494
1495 2011-06-24  Martin Jambor  <mjambor@suse.cz>
1496
1497         PR tree-optimizations/49516
1498         * tree-sra.c (sra_modify_assign): Choose the safe path for
1499         aggregate copies if we also did scalar replacements.
1500
1501 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1502
1503         PR target/49335
1504         * config/arm/predicates.md (add_operator): New.
1505         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
1506
1507 2011-06-24  Andi Kleen  <ak@linux.intel.com>
1508
1509         * tree-sra.c (type_internals_preclude_sra_p): Add msg
1510         parameter. Split up ifs and report reason in *msg.
1511         (reject): Add.
1512         (find_var_candiate): Add msg variable.
1513         Split up ifs and report reason to reject.
1514         (find_param_candidates): Add msg variable.
1515         Pass msg to type_internals_preclude_sra_p.
1516
1517 2011-06-23  Jeff Law  <law@redhat.com>
1518
1519         PR middle-end/48770
1520         * reload.h (reload): Change to return a bool.
1521         * ira.c (ira): If requested by reload, run a fast DCE pass after
1522         reload has completed.  Fix comment typo.
1523         * reload1.c (need_dce): New file scoped static.
1524         (reload): Set reload_completed here.  Return whether or not a DCE
1525         pass after reload is needed.
1526         (delete_dead_insn): Set need_dce as needed.
1527
1528         PR middle-end/49465
1529         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
1530         to detect threading through joiner block.  If there was already
1531         an edge to the new target, then do not change the PHI nodes.
1532
1533 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
1534
1535         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
1536         get_pointer_alignment to see if base isn't sufficiently aligned.
1537
1538 2011-06-23  Jan Hubicka  <jh@suse.cz>
1539
1540         PR tree-optimize/49373
1541         * tree-pass.h (all_late_ipa_passes): Declare.
1542         * cgraphunit.c (init_lowered_empty_function): Fix properties.
1543         (cgraph_optimize): Execute late passes; remove unreachable funcions
1544         after materialization.
1545         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
1546         LTOing.
1547         * passes.c (all_late_ipa_passes): Declare.
1548         (dump_passes, register_pass): Handle late ipa passes.
1549         (init_optimization_passes): Move ipa_pta to late passes; schedule
1550         fixup_cfg at beggining of all_passes.
1551         (apply_ipa_transforms): New function.
1552         (execute_one_pass): When doing simple ipa pass, apply all transforms.
1553
1554 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
1555
1556         * params.c: Include common/common-target.h.  Don't include tm.h.
1557         (lang_independent_params): Move from toplev.c.
1558         (global_init_params): New.
1559         * params.h (global_init_params): Declare.
1560         * target.def (default_params): Move to common-target.def.
1561         * toplev.c (lang_independent_options): Remove.
1562         (lang_independent_params): Move to params.c.
1563         (general_init): Use global_init_params.
1564         * common/common-target.def (option_default_params): Move from
1565         target.def.
1566         * common/config/ia64/ia64-common.c: Include params.h.
1567         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1568         from ia64.c.
1569         * common/config/rs6000/rs6000-common.c: Include params.h.
1570         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1571         from rs6000.c.
1572         * common/config/sh/sh-common.c: Include params.h.
1573         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1574         from sh.c.
1575         * common/config/spu/spu-common.c: Include params.h.
1576         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1577         from spu.c.
1578         * config/ia64/ia64.c (ia64_option_default_params,
1579         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
1580         * config/rs6000/rs6000.c (rs6000_option_default_params,
1581         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
1582         * config/sh/sh.c (sh_option_default_params,
1583         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
1584         * config/spu/spu.c (spu_option_default_params,
1585         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
1586         * Makefile.in (OBJS): Remove params.o.
1587         (OBJS-libcommon-target): Add params.o.
1588         (params.o, $(common_out_object_file)): Update dependencies.
1589         * doc/tm.texi: Regenerate.
1590
1591 2011-06-23  Alan Modra  <amodra@gmail.com>
1592
1593         PR bootstrap/49383
1594         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
1595         invocation for 2011-06-09 changes.
1596
1597 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
1598
1599         PR libgomp/49490
1600         * omp-low.c (expand_omp_for_static_nochunk): Only
1601         use n ceil/ nthreads size for the first n % nthreads threads in the
1602         team instead of all threads except for the last few ones which
1603         get less work or none at all.
1604
1605         PR debug/49496
1606         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
1607         uses.
1608
1609 2011-06-22  Richard Guenther  <rguenther@suse.de>
1610
1611         PR tree-optimization/49493
1612         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
1613         Refer to the alias target of variables.
1614         (associate_varinfo_to_alias_1): Remove.
1615         (ipa_pta_execute): Do not associate aliases with anything.
1616         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
1617         (cgraph_function_node): Likewise.
1618         (cgraph_function_or_thunk_node): Likewise.
1619         (varpool_variable_node): Likewise.
1620
1621 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
1622
1623         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
1624         * config.gcc (arm*-*-linux*): Default to gnu tls.
1625         (arm*-*-*): Add --with-tls option.
1626         (all_defaults): Add 'tls'.
1627
1628 2011-06-22  Richard Henderson  <rth@redhat.com>
1629
1630         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
1631         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
1632         (dwarf2out_frame_debug_cfa_window_save): Rename from
1633         dwarf2out_window_save; make static.
1634         * tree.h (dwarf2out_window_save): Don't declare.
1635
1636         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
1637         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
1638         (emit_save_register_window): Rename from gen_save_register_window;
1639         emit the insn and add REG_CFA_* notes.
1640         (sparc_expand_prologue): Update to match.
1641         * config/sparc/sparc.md (save_register_window_1): Simplify from
1642         save_register_window<P:mode>.
1643
1644 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
1645
1646         PR target/49497
1647         * config/i386/i386.md (*lea_general_2): Always allow SImode.
1648         (*lea_general_2_zext): Likewise.
1649         (imul to lea peepholes): Use const359_operand and check
1650         TARGET_PARTIAL_REG_STALL.
1651
1652         * config/i386/predicates.md (const359_operand): New.
1653
1654 2011-06-22  Michael Matz  <matz@suse.de>
1655
1656         * cgraphunit.c (assemble_thunk): Use correct return type.
1657
1658 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
1659             Dmitry Melnik  <dm@ispras.ru>
1660
1661         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
1662         (neon_output_shift_immediate): Ditto.
1663         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
1664         prototype.
1665         (neon_output_shift_immediate): Ditto.
1666         * config/arm/neon.md (vashl<mode>3): Modified constraint.
1667         (vashr<mode>3_imm): New insn pattern.
1668         (vlshr<mode>3_imm): Ditto.
1669         (vashr<mode>3): Modified constraint.
1670         (vlshr<mode>3): Ditto.
1671         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
1672         predicate.
1673         (imm_for_neon_rshift_operand): Ditto.
1674         (imm_lshift_or_reg_neon): Ditto.
1675         (imm_rshift_or_reg_neon): Ditto.
1676
1677         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
1678
1679 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
1680
1681         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
1682         builtin calls even if likelyvalue is not CONSTANT.
1683         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
1684         Return get_value_for_expr of first operand
1685         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
1686         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1687         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
1688         their non-checking counterparts.
1689         (call_may_clobber_ref_p_1): Likewise.
1690         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
1691         like their non-checking counterparts.
1692         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1693         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
1694         like their non-checking counterparts.
1695         (find_func_clobbers): Likewise.
1696         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
1697         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
1698
1699         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
1700         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
1701         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
1702         of base type reference as argument.
1703         (resolve_addr_in_expr): Likewise.  Fix keep computation.
1704         (convert_descriptor_to_signed): Renamed to...
1705         (convert_descriptor_to_mode): ... this.  For wider types convert to
1706         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
1707         (typed_binop): New function.
1708         (scompare_loc_descriptor, ucompare_loc_descriptor,
1709         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
1710         default to unsigned type instead of signed.
1711
1712         PR debug/47858
1713         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
1714         (gimple_build_debug_source_bind_stat): New prototype.
1715         (gimple_build_debug_source_bind): Define.
1716         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
1717         gimple_debug_source_bind_get_value,
1718         gimple_debug_source_bind_get_value_ptr,
1719         gimple_debug_source_bind_set_var,
1720         gimple_debug_source_bind_set_value): New inlines.
1721         * gimple.c (gimple_build_debug_source_bind_stat): New function.
1722         * gimple-pretty-print.c (dump_gimple_debug): Handle
1723         GIMPLE_DEBUG_SOURCE_BIND.
1724         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
1725         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
1726         * tree-parloops.c (eliminate_local_variables,
1727         separate_decls_in_region): Likewise.
1728         (separate_decls_in_region_debug): Renamed from
1729         separate_decls_in_region_debug_bind.  Handle
1730         gimple_debug_source_bind_p.
1731         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
1732         prototypes.
1733         (DECL_HAS_DEBUG_ARGS_P): Define.
1734         (struct tree_function_decl): Add has_debug_args_flag field.
1735         * tree.c (debug_args_for_decl): New variable.
1736         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
1737         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
1738         (rewrite_debug_stmt_uses): New function.
1739         (rewrite_stmt): Use it to rewrite debug stmt uses.
1740         * rtl.def (DEBUG_PARAMETER_REF): New.
1741         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
1742         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
1743         DEBUG_PARAMETER_REF.
1744         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
1745         * print-rtl.c (print_rtx): Likewise.
1746         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
1747         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
1748         debug stmts in the first bb.
1749         * tree-inline.c (remap_ssa_name): If remapping default def
1750         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
1751         a source bind debug stmt.
1752         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
1753         (maybe_move_debug_stmts_to_successors): Likewise.
1754         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
1755         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
1756         debug args vector from old_decl to new_decl.
1757         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
1758         or modified parameters, add debug bind stmts before call
1759         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
1760         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
1761         on DECL_DEBUG_EXPRs from debug args vector.
1762         (expand_debug_source_expr): New function.
1763         (expand_debug_locations): Use it for source bind insns.
1764         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
1765         * var-tracking.c (prepare_call_arguments): Add debug args
1766         to call_arguments if any.
1767         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
1768         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
1769         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
1770         (get_ref_die_offset, parameter_ref_descriptor): New functions.
1771         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
1772         (gen_subprogram_die): Handle parameters identified by
1773         DEBUG_PARAMETER_REF.
1774
1775 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
1776
1777         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
1778         * doc/install.texi (Configuration): Document --with-tls.
1779         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
1780         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
1781         (arm_tls_descseq_addr): New.
1782         (legitimize_tls_address): Add tlsdesc support.
1783         (arm_cannot_copy_insn_p): Check for tlscall.
1784         (arm_emit_tls_decoration): Likewise.
1785         * config/arm/arm.h (TARGET_GNU2_TLS): New.
1786         (OPTION_DEFAULT_SPECS): Add with-tls support.
1787         * config/arm/arm.md (R1_REGNUM): Define.
1788         (tlscall): New.
1789         * config/arm/arm.opt (tls_type): New enumeration type and values.
1790         (mtls-dialect): New switch.
1791         * config/arm/arm-opts.h (enum tls_type): New.
1792
1793 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
1794
1795         * attribs.c (register_attribute): Added assert to check that all
1796         attribute specs are registered with a name that is not empty and
1797         does not start with '_'.
1798         (decl_attributes): Avoid the lookup of the "naked" attribute spec
1799         if the function has no attributes.
1800         * tree.c (is_attribute_with_length_p): Removed.
1801         (is_attribute_p): Removed.
1802         (private_is_attribute_p): New.
1803         (private_lookup_attribute): New.
1804         (lookup_attribute): Removed.
1805         (lookup_ident_attribute): New.
1806         (remove_attribute): Require the first argument to be in the form
1807         'text', not '__text__'.  Updated asserts.
1808         (merge_attributes): Use lookup_ident_attributes instead of
1809         lookup_attribute.
1810         (merge_dllimport_decl_attributes): Use remove_attribute.
1811         (attribute_list_contained): Likewise.
1812         (attribute_list_equal): Immediately return 1 if the arguments are
1813         identical pointers.
1814         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
1815         'int'.  Require the first argument to be in the form 'text', not
1816         '__text__'.  Require the second argument to be an identifier.
1817         (lookup_attribute): Made inline.  Require the first argument to be
1818         in the form 'text', not '__text__'.
1819         (private_is_attribute_p, private_lookup_attribute): New.
1820         Updated comments.
1821
1822 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
1823
1824         * builtins.c: Add sync_ or SYNC__ to builtin names.
1825         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
1826         * omp-low.c: Add sync_ or SYNC__ to builtin names.
1827
1828 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
1829
1830         PR target/33049
1831         * config/avr/avr.md (extzv): New expander.
1832         (*extzv): New insn.
1833         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
1834         * config/avr/constraints.md (C04): New constraint.
1835         * doc/md.texi (Machine Constraints): Document it.
1836
1837 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
1838
1839         PR middle-end/49489
1840         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
1841         unsignedp argument instead of 1 for clrsb_optab.
1842         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
1843         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
1844         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
1845         * optabs.c (widen_leading): Call widen_operand and expand_unop
1846         with 0 as unsignedp argument instead of 1 for clrsb_optab.
1847         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
1848
1849 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
1850
1851         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
1852
1853 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
1854
1855         * gensupport.c (add_define_attr): New static function.
1856         (is_predicable): Allow multi-alternative lists for the "predicable"
1857         attribute.
1858         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
1859         (process_one_cond_exec): Call alter_attrs_for_insn.
1860         * doc/md.texi (Defining Attributes): Mention some standard names.
1861         (Conditional Execution): Update documentation for "predicable".
1862
1863         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
1864         __builtin_clrsbll): Document.
1865         * doc/rtl.texi (clrsb): New entry.
1866         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
1867         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
1868         (expand_unop): Handle clrsb_optab.
1869         (init_optabs): Initialize it.
1870         * optabs.h (enum optab_index): New entry OTI_clrsb.
1871         (clrsb_optab): Define.
1872         * genopinit.c (optabs): Add an entry for it.
1873         * builtins.c (expand_builtin): Handle clrsb builtin functions.
1874         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
1875         BUILT_IN_CLRSBLL): New.
1876         * rtl.def (CLRSB): New code.
1877         * dwarf2out.c (mem_loc_descriptor): Handle it.
1878         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1879         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
1880         and popcount.
1881         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
1882         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
1883         (__ctzDI2): Move declaration.
1884         * config/bfin/bfin.md (clrsbsi2): New expander.
1885         (signbitssi2): Use the CLRSB rtx.
1886         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
1887         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
1888
1889 2011-06-21  Richard Guenther  <rguenther@suse.de>
1890
1891         * ipa-inline-transform.c (inline_transform): Fix previous change.
1892
1893 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
1894
1895         PR tree-optimization/49478
1896         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
1897         with constant operand.
1898
1899 2011-06-21  Richard Guenther  <rguenther@suse.de>
1900
1901         * ipa-inline-transform.c (inline_transform): Fix typo.
1902
1903 2011-06-21  Richard Guenther  <rguenther@suse.de>
1904
1905         PR tree-optimization/49483
1906         * tree-vect-stmts.c (vectorizable_assignment): Also handle
1907         VIEW_CONVERT_EXPR conversions.
1908
1909 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
1910
1911         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
1912         * config/avr/avr-tables.opt: New file (generated).
1913         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
1914         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
1915         avr-mcus.def.
1916         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
1917         (avr_option_override): Don't process -mmcu= argument here.  Set
1918         avr_current_device using avr_mcu_index.
1919         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
1920         * config/avr/avr.opt (mmcu=): Use Enum.
1921         * config/avr/t-avr (avr-devices.o): Update dependencies.
1922         ($(srcdir)/config/avr/avr-tables.opt): New.
1923         * target.def (help): Remove.
1924         * doc/tm.texi.in (TARGET_HELP): Remove.
1925         * doc/tm.texi: Regenerate.
1926         * opts.c: Don't include target.h.
1927         (common_handle_option): Don't call targetm.help.
1928         * system.h (TARGET_HELP): Poison.
1929         * Makefile.in (opts.o): Update dependencies.
1930
1931 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1932
1933         * config/usegld.h: New file.
1934         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
1935         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
1936         (LIB_SPEC): Likewise.  Search /lib.
1937         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
1938         (RDYNAMIC_SPEC): Handle GNU ld.
1939         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
1940         Define.
1941         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
1942         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
1943         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
1944         (STACK_CHECK_STATIC_BUILTIN): Define.
1945         * config/sol2.opt (compat-bsd): Remove.
1946         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
1947         * config/sol2-bi.h: New file.
1948         * config/sol2-gld.h: Remove.
1949         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
1950         (NO_DBX_BNSYM_ENSYM): Remove.
1951         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1952         (STACK_CHECK_STATIC_BUILTIN): Remove.
1953         Test USE_GLD instead of TARGET_GNU_LD.
1954         * config/i386/sol2-10.h: Rename to ...
1955         * config/i386/sol2-bi.h .. this.
1956         (SUBTARGET_EXTRA_SPECS): Redefine.
1957         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
1958         (MULTILIB_DEFAULTS): Remove.
1959         (DEFAULT_ARCH32_P): Define.
1960         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
1961         (ARCH64_SUBDIR): Define.
1962         Test USE_GLD instead of TARGET_GNU_LD.
1963         (I386_EMULATION): Rename to ...
1964         (ARCH32_EMULATION): ... this.
1965         (X86_64_EMULATION): Rename to ...
1966         (ARCH64_EMULATION): ... this.
1967         (TARGET_LD_EMULATION): Remove.
1968         (LINK_ARCH_SPEC): Remove.
1969         * config/i386/sol2-gas.h: Remove.
1970         * config/i386/t-sol2-10: Rename to ...
1971         * config/i386/t-sol2-64: ... this.
1972         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
1973         (AS_SPARC64_FLAG): Define.
1974         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
1975         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
1976         depending on TARGET_CPU_DEFAULT.
1977         (CPP_CPU_SPEC): Redefine.
1978         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
1979         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
1980         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
1981         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
1982         ASM_ARCH_DEFAULT_SPEC): Redefine.
1983         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1984         LINK_ARCH_DEFAULT_SPEC.
1985         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
1986         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
1987         (ARCH64_SUBDIR): Define.
1988         (LINK_ARCH64_SPEC): Redefine.
1989         (CC1_SPEC): Redefine.
1990         (OPTION_DEFAULT_SPECS): Redefine.
1991         (MULTILIB_DEFAULTS): Define.
1992         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
1993         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
1994         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
1995         (NO_DBX_BNSYM_ENSYM): Remove.
1996         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1997         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
1998         (TARGET_ASM_NAMED_SECTION): Likewise.
1999         (STACK_CHECK_STATIC_BUILTIN): Remove.
2000         * config/sparc/sol2-bi.h: Remove.
2001         * config/sparc/sol2-gas-bi.h: Remove.
2002         * config/sparc/sol2-gas.h: Remove.
2003         * config/sparc/sol2-gld-bi.h: Remove.
2004         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
2005         common parts ...
2006         (*-*-solaris2*): ... here.
2007
2008 2011-06-21  Christian Bruel  <christian.bruel@st.com>
2009
2010         PR other/43564
2011         * ipa-inline.c (can_inline_edge_p): Check
2012         !DECL_DISREGARD_INLINE_LIMITS.
2013
2014 2011-06-21  Christian Bruel  <christian.bruel@st.com>
2015
2016         PR middle-end/49139
2017         * cgraphunit.c (process_function_and_variable_attributes): warn when
2018         always_inline functions that are not inline.
2019         * ipa-inline-transform.c (inline_transform): Always call
2020         optimize_inline.
2021         * tree-inline.c (tree_inlinable_function_p): Use error instead
2022         of sorry.
2023         (expand_call_inline): Likewise.
2024
2025 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
2026
2027         * Makefile.in (dg_target_exps): Set.
2028         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
2029         instead of 7, try to divide it more evenly.
2030
2031 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
2032
2033         PR target/49089
2034         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
2035         (avx256_split_unaligned_store): New definition.
2036         (ix86_option_override_internal): Enable avx256 unaligned load/store
2037         splitting only when avx256_split_unaligned_load/store is set.
2038
2039 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
2040
2041         * regrename.c (scan_rtx_reg): Handle the case where we write to an
2042         open chain in a smaller mode without failing the entire block.
2043
2044 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
2045
2046         PR middle-end/47725
2047         * combine.c (cant_combine_insn_p): Don't check zero/sign
2048         extended hard registers.
2049
2050 2011-06-21  Alan Modra  <amodra@gmail.com>
2051
2052         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
2053         CONST high part large-toc address.
2054         (rs6000_tls_referenced_p): Make static.
2055         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
2056
2057 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
2058
2059         PR middle-end/47725
2060         * combine.c (cant_combine_insn_p): Check zero/sign extended
2061         hard registers.
2062
2063 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2064
2065         PR target/49385
2066         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
2067         one of the operands is a register.
2068
2069 2011-06-20  Kai Tietz  <ktietz@redhat.com>
2070
2071         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
2072         operations in combination with binary and.
2073
2074 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
2075
2076         * regrename.c (do_replace): Don't update notes.
2077
2078 2011-06-20  Alan Modra  <amodra@gmail.com>
2079
2080         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
2081         of toc-relative address in CONST.
2082         (rs6000_delegitimize_address): Recognize changed address.
2083         (rs6000_legitimize_reload_address): Likewise.
2084         (rs6000_emit_move): Don't force these constants to memory.
2085         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
2086         toc-relative address in CONST.
2087         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
2088         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
2089
2090 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
2091
2092         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
2093         (count_trailing_zeros): Likewise.
2094
2095 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
2096
2097         PR other/49325
2098         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
2099         .init_array can be used with .ctors on targets.
2100         * configure: Regenerated.
2101
2102 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
2103
2104         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
2105         if the element type is volatile.
2106
2107 2011-06-18  Jan Hubicka  <jh@suse.cz>
2108
2109         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
2110         extra name aliases.
2111         (lto_symtab_resolve_can_prevail_p): Likewise.
2112         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
2113         * cgraphbuild.c (record_reference): Remove extra body alias code.
2114         (mark_load): Likewise.
2115         (mark_store): Likewise.
2116         * cgraph.h (varpool_node): Remove extra_name filed;
2117         add alias_of and extraname_alias.
2118         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
2119         (varpool_alias_aliased_node): New inline function.
2120         (varpool_variable_node): New function.
2121         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
2122         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
2123         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
2124         (input_varpool_node): Likewise.
2125         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
2126         (varpool_externally_visible_p): Remove extra body alias code.
2127         (function_and_variable_visibility): Likewise.
2128         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
2129         (ipa_pta_execute): Use it.
2130         * varpool.c (varpool_remove_node): Remove extra name alias code.
2131         (varpool_mark_needed_node): Likewise.
2132         (varpool_analyze_pending_decls): Analyze aliases.
2133         (assemble_aliases): New functoin.
2134         (varpool_assemble_decl): Use it.
2135         (varpool_create_variable_alias): New function.
2136         (varpool_extra_name_alias): Rewrite.
2137         (varpool_for_node_and_aliases): New function.
2138
2139 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
2140
2141         PR target/49411
2142         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
2143         last_arg_constant and last argument doesn't match its predicate,
2144         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
2145         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
2146         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
2147         spelling of error message.
2148         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
2149         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
2150         const_0_to_255_operand instead of const_int_operand.
2151
2152         Revert:
2153         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2154
2155         * config/i386/sse.md (blendbits): Remove mode attribute.
2156         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2157         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2158         Check integer value of operand 3 in insn constraint.
2159
2160 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
2161
2162         PR rtl-optimization/48542
2163         * reload.c (find_equiv_reg): Stop looking when finding a
2164         setjmp-type call.
2165         * reload1.c (reload_as_needed): Invalidate all reload
2166         registers when crossing a setjmp-type call.
2167
2168 2011-06-16  Jeff Law  <law@redhat.com>
2169
2170         * tree-ssa-threadupdate.c (struct redirection_data): New field
2171         intermediate_edge.
2172         (THREAD_TARGET2): Define.
2173         (redirection_data_eq): Also check that the intermediate edge is equal.
2174         (lookup_redirection_data): Drop useless argument.  Extract the
2175         outgoing_edge and intermediate edge from E.  Callers updated.
2176         (copy_phi_args, update_destination_phis): New functions.
2177         (fix_duplicate_block_edges): Likewise.
2178         (create_edge_and_update_destination_phis): Duplicate all the edges
2179         hung off e->aux.  Use copy_phi_args.
2180         (create_duplicates): Use fix_duplicate_block_edges.
2181         (fixup_template_block): Likewise.
2182         (redirect_edges): If necessary, redirect the joiner block's incoming
2183         edge to the duplicate of the joiner block.
2184         (thread_block): Don't muck up loops when threading through a joiner
2185         block.
2186         (thread_through_loop_header): Handle threading through a joiner block.
2187         (mark_threaded_blocks, register_jump_thread): Likewise.
2188         * tree-flow.h (register_jump_thread): Add new argument.  Callers
2189         updated.
2190         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
2191         (thread_across_edge): Handle threading through a joiner block.
2192
2193 2011-06-16  Martin Jambor  <mjambor@suse.cz>
2194
2195         PR tree-optimization/49343
2196         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
2197         calculate offset, provide 2nd operand for the new COMPONENT_REF.
2198
2199 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
2200
2201         * config/darwin-protos.h (machopic_select_rtx_section): Move to
2202         inside RTX_CODE ifdef.
2203
2204 2011-06-16  Tom de Vries  <tom@codesourcery.com>
2205
2206         PR target/45098
2207         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
2208         Disallow NULL pointer for pointer arithmetic.
2209
2210 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2211
2212         PR target/49398
2213         Revert.
2214         2011-06-10  Wei Guozhi  <carrot@google.com>
2215
2216         PR target/45335
2217         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
2218         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
2219         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
2220         related peephole2.
2221         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
2222         related peephole2.
2223         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
2224         (arm_legitimate_ldrd_p): New prototype.
2225         (arm_output_ldrd): New prototype.
2226         * config/arm/arm.c (arm_check_ldrd_operands): New function.
2227         (arm_legitimate_ldrd_p): New function.
2228         (arm_output_ldrd): New function.
2229
2230 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
2231
2232         PR middle-end/46500
2233         * doc/tm.texi.in: Update Copyright date.
2234         * doc/tm.texi: Regenerate.
2235         * targhooks.c (default_setup_incoming_varargs): Replace
2236         CUMULATIVE_ARGS* argument type with cumulative_args_t.
2237         (default_pretend_outgoing_varargs_named): Likewise.
2238         (hook_pass_by_reference_must_pass_in_stack): Likewise.
2239         (hook_callee_copies_named): Likewise.
2240         (default_function_arg_advance): Likewise.
2241         (default_function_arg): Likewise.
2242         (default_function_incoming_arg): Likewise.
2243         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
2244         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
2245         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
2246         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
2247         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
2248         * targhooks.h (default_setup_incoming_varargs): Likewise.
2249         (default_pretend_outgoing_varargs_named): Likewise.
2250         (hook_pass_by_reference_must_pass_in_stack): Likewise.
2251         (hook_callee_copies_named): Likewise.
2252         (default_function_arg_advance): Likewise.
2253         (default_function_arg): Likewise.
2254         (default_function_incoming_arg): Likewise.
2255         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
2256         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
2257         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
2258         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
2259         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
2260         * target.def (pass_by_reference): Likewise.
2261         (setup_incoming_varargs, strict_argument_naming): Likewise.
2262         (pretend_outgoing_varargs_named, callee_copies): Likewise.
2263         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
2264         (function_incoming_arg): Likewise.
2265         * target.h: Don't include "tm.h" .
2266         (cumulative_args_t): New typedef.
2267         [GCC_TM_H] (get_cumulative_args): New static inline function.
2268         [GCC_TM_H] (pack_cumulative_args): Likewise.
2269         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
2270         argument type with cumulative_args_t.
2271         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
2272         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
2273         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
2274         (frv_arg_partial_bytes, frv_function_arg): Likewise.
2275         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
2276         (frv_function_arg_1): Likewise.
2277         * config/s390/s390.c (s390_pass_by_reference): Likewise.
2278         (s390_function_arg_advance, s390_function_arg): Likewise.
2279         * config/m32c/m32c.c (m32c_function_arg): Likewise.
2280         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
2281         (m32c_strict_argument_naming): Likewise.
2282         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
2283         (spu_function_arg_advance): Likewise.
2284         (spu_setup_incoming_varargs): Likewise.  Make static.
2285         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
2286         Remove prototype.
2287         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
2288         CUMULATIVE_ARGS* argument type with cumulative_args_t.
2289         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
2290         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
2291         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
2292         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
2293         (mep_pass_by_reference, mep_function_arg): Likewise.
2294         (mep_function_arg_advance): Likewise.
2295         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
2296         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
2297         (m32r_function_arg, m32r_function_arg_advance): Likewise.
2298         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
2299         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
2300         (ix86_function_arg, ix86_pass_by_reference): Likewise.
2301         (ix86_setup_incoming_varargs): Likewise.
2302         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
2303         (sh_strict_argument_naming): Likewise.
2304         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
2305         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
2306         (sh_function_arg_advance, sh_function_arg): Likewise.
2307         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
2308         (pdp11_function_arg_advance): Likewise.
2309         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
2310         Likewise.
2311         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
2312         * config/avr/avr.c (avr_function_arg): Likewise.
2313         (avr_function_arg_advance): Likewise.
2314         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
2315         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
2316         (xtensa_function_arg_1): Likewise.
2317         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
2318         Likewise.
2319         (xstormy16_function_arg): Likewise.
2320         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
2321         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
2322         (fr30_function_arg_advance): Likewise.
2323         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
2324         (lm32_function_arg, lm32_function_arg_advance): Likewise.
2325         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
2326         (moxie_function_arg, moxie_function_arg_advance): Likewise.
2327         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
2328         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
2329         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
2330         (cris_function_arg, cris_function_incoming_arg): Likewise.
2331         (cris_function_arg_advance, cris_function_arg_1): Likewise.
2332         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
2333         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
2334         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
2335         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
2336         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
2337         (mn10300_arg_partial_bytes): Likewise.
2338         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
2339         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
2340         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
2341         (ia64_function_arg_1): Likewise.
2342         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
2343         (m68k_function_arg): Likewise.
2344         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
2345         (rs6000_function_arg, setup_incoming_varargs): Likewise.
2346         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
2347         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
2348         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
2349         (picochip_arg_advance): Likewise.
2350         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
2351         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
2352         (mcore_function_arg_advance): Likewise.
2353         * config/score/score.c (score_pass_by_reference): Likewise.
2354         (score_function_arg_advance): Likewise.
2355         (score_arg_partial_bytes): Likewise.  Make static.
2356         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
2357         * config/arm/arm.c (arm_arg_partial_bytes): Replace
2358         CUMULATIVE_ARGS* argument type with cumulative_args_t.
2359         (arm_function_arg, arm_function_arg_advance): Likewise.
2360         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
2361         * config/pa/pa.c (pa_pass_by_reference): Likewise.
2362         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
2363         (pa_function_arg): Likewise.
2364         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
2365         (mips_function_arg, mips_function_arg_advance): Likewise.
2366         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
2367         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
2368         * config/vax/vax.c (vax_function_arg): Likewise.
2369         (vax_function_arg_advance): Likewise.
2370         * config/h8300/h8300.c (h8300_function_arg): Likewise.
2371         (h8300_function_arg_advance): Likewise.
2372         * config/v850/v850.c (v850_pass_by_reference): Likewise.
2373         (v850_strict_argument_naming, v850_function_arg): Likewise.
2374         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
2375         (v850_setup_incoming_varargs): Likewise.
2376         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
2377         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
2378         (mmix_function_arg, mmix_pass_by_reference): Likewise.
2379         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
2380         with const void *.
2381         * config/bfin/bfin.c (setup_incoming_varargs): Replace
2382         CUMULATIVE_ARGS* argument type with cumulative_args_t.
2383         (bfin_function_arg_advance, bfin_function_arg): Likewise.
2384         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
2385         * calls.c (emit_call_1): Change type of args_so_far to
2386         cumulative_args_t.  Changed all callers.
2387         (initialize_argument_information): Likewise.
2388         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
2389         * dse.c (get_call_args): Likewise.
2390         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
2391         * function.c (pass_by_reference, reference_callee_copied): Likewise.
2392         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
2393         New member args_so_far_v.  Changed all users.
2394         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
2395         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
2396         * config/mips/mips.c (mips_output_args_xfer): Likewise.
2397         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
2398         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2399         * config/microblaze/microblaze.c (microblaze_expand_prologue):
2400         Likewise.
2401         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
2402         m32r_pass_by_reference.
2403
2404 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
2405
2406         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
2407         argument to be a VEC of statements.
2408         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
2409         assert that pattern statements have to have their vector type set.
2410         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
2411         Change the first argument to be a VEC of statements.  Update
2412         documentation.
2413         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
2414         (vect_handle_widen_mult_by_const): New function.
2415         (vect_recog_widen_mult_pattern):  Change the first argument to be a
2416         VEC of statements.  Update documentation.  Check that the constant is
2417         INTEGER_CST.  Support multiplication by a constant that fits an
2418         intermediate type - call vect_handle_widen_mult_by_const.
2419         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
2420         call.  Handle additional pattern statements if necessary.
2421
2422 2011-06-16  Nick Clifton  <nickc@redhat.com>
2423
2424         PR target/49427
2425         * config.gcc: Set cpu_type to v850 for any V850 architecture.
2426         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
2427         md_file, extra_modes, out_file and extra_options are these are all
2428         deduced from cpu_type.
2429
2430 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
2431
2432         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
2433         truncation mask to 63.
2434
2435 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
2436
2437         PR target/49313
2438         PR target/29524
2439         * longlong.h: Add AVR support:
2440         (count_leading_zeros): New macro.
2441         (count_trailing_zeros): New macro.
2442         (COUNT_LEADING_ZEROS_0): New macro.
2443         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
2444         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
2445         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
2446         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
2447         (LIB2FUNCS_EXCLUDE): Add _clz.
2448         * config/avr/libgcc.S (XCALL): Move up in file.
2449         (XJMP): New C Macro.
2450         (DEFUN): New asm macro.
2451         (ENDF): New asm macro.
2452         (__ffssi2): New function.
2453         (__ffshi2): New function.
2454         (__loop_ffsqi2): New function.
2455         (__ctzsi2): New function.
2456         (__ctzhi2): New function.
2457         (__clzdi2): New function.
2458         (__clzsi2): New function.
2459         (__clzhi2): New function.
2460         (__paritydi2): New function.
2461         (__paritysi2): New function.
2462         (__parityhi2): New function.
2463         (__parityqi2): New function.
2464         (__popcounthi2): New function.
2465         (__popcountsi2): New function.
2466         (__popcountdi2): New function.
2467         (__popcountqi2): New function.
2468         (__bswapsi2): New function.
2469         (__bswapdi2): New function.
2470         (__ashldi3): New function.
2471         (__ashrdi3): New function.
2472         (__lshrdi3): New function.
2473         Fix suspicous lines.
2474
2475 2011-06-16  Richard Guenther  <rguenther@suse.de>
2476
2477         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
2478         the same as x != 0.
2479         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
2480         to (bool) X & 1.
2481         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
2482         equality compares against zero for the lower bit.
2483
2484 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
2485
2486         PR tree-optimization/49419
2487         * tree-vrp.c (execute_vrp): Call init_range_assertions
2488         before estimate_numbers_of_iterations, call
2489         free_number_of_iterations_estimates before calling
2490         remove_range_assertions.
2491
2492 2011-06-16  Revital Eres  <revital.eres@linaro.org>
2493
2494         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
2495         (struct partial_schedule): Add rows_length field.
2496         (verify_partial_schedule): Check rows_length.
2497         (ps_insert_empty_row): Handle rows_length.
2498         (create_partial_schedule): Likewise.
2499         (free_partial_schedule): Likewise.
2500         (reset_partial_schedule): Likewise.
2501         (create_ps_insn): Remove rest_count argument.
2502         (remove_node_from_ps): Update rows_length.
2503         (add_node_to_ps): Update rows_length and call create_ps_insn
2504         without passing row_rest_count.
2505         (rotate_partial_schedule): Update rows_length.
2506
2507 2011-06-16  Revital Eres  <revital.eres@linaro.org>
2508
2509         * ddg.c (add_intra_loop_mem_dep): New function.
2510         (build_intra_loop_deps): Call it.
2511
2512 2011-06-13  Jeff Law  <law@redhat.com>
2513
2514         * df-problems.c (df_lr_local_compute): Manually CSE
2515         PIC_OFFSET_TABLE_REGNUM.
2516         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
2517         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
2518
2519 2011-06-13  Jan Hubicka  <jh@suse.cz>
2520
2521         * cgraphunit.c (handle_alias_pairs): New function.
2522         (cgraph_finalize_compilation_unit): Use it.
2523         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
2524         as externally visible.
2525
2526 2011-06-15  Richard Guenther  <rguenther@suse.de>
2527
2528         * expr.c (expand_expr_real_2): Reduce all integral types to
2529         bitfield precision.
2530         (expand_expr_real_1): Likewise.
2531
2532 2011-06-15  Martin Jambor  <mjambor@suse.cz>
2533
2534         PR tree-optimization/48613
2535         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
2536         ipa_node_params_vector is NULL.
2537
2538 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
2539
2540         PR debug/49382
2541         * dwarf2out.c (dw_loc_list_node): Add force field.
2542         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
2543         location in the list, even if it is modified before first real insn.
2544         (output_loc_list): Emit empty ranges with force flag set.
2545         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
2546
2547 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
2548
2549         PR target/49349
2550         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
2551         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
2552         above a fence.  Update comments.
2553         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
2554         placed just above it.  Do not allow NULL place_to_insert.
2555
2556 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
2557
2558         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
2559         (slpeel_tree_peel_loop_to_edge): Don't call
2560         remove_dead_stmts_from_loop.
2561         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
2562         remove irrelevant pattern statements.  For irrelevant statements
2563         check if it is the last statement of a detected pattern, use
2564         corresponding pattern statement instead.
2565         (destroy_loop_vec_info): No need to remove pattern statements,
2566         only free stmt_vec_info.
2567         (vect_transform_loop): For irrelevant statements check if it is
2568         the last statement of a detected pattern, use corresponding
2569         pattern statement instead.
2570         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
2571         pattern statements.  Set basic block for the new statement.
2572         (vect_pattern_recog): Update documentation.
2573         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
2574         operands of pattern statements.
2575         (vectorizable_call): Fix printing.  In case of a pattern statement
2576         use the lhs of the original statement when creating a dummy
2577         statement to replace the original call.
2578         (vect_analyze_stmt): For irrelevant statements check if it is
2579         the last statement of a detected pattern, use corresponding
2580         pattern statement instead.
2581         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
2582         statements use gsi of the original statement.
2583
2584 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
2585
2586         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
2587         common/common-target-def.h.
2588         * target.def (default_target_flags, handle_option,
2589         supports_split_stack, optimization_table, init_struct,
2590         except_unwind_info, unwind_tables_default, have_named_sections):
2591         Move to common/common-target.def.
2592         * target.h (enum opt_levels, struct default_options): Move to
2593         common/common-target.h.
2594         * targhooks.c (default_except_unwind_info,
2595         dwarf2_except_unwind_info, sjlj_except_unwind_info,
2596         default_target_handle_option, empty_optimization_table): Move to
2597         common/common-targhooks.c.
2598         * targhooks.h (default_except_unwind_info,
2599         dwarf2_except_unwind_info, sjlj_except_unwind_info,
2600         default_target_handle_option, empty_optimization_table): Move to
2601         common/common-targhooks.h.
2602         * common/common-target-def.h: Include common/common-targhooks.h.
2603         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
2604         defined.
2605         * common/common-target.def (handle_option, option_init_struct,
2606         option_optimization_table, default_target_flags,
2607         except_unwind_info, supports_split_stack, unwind_tables_default,
2608         have_named_sections): Move from target.def.
2609         (HOOK_PREFIX): Undefine at end of file.
2610         * common/common-target.h: Include input.h.
2611         (enum opt_levels, struct default_options): Move from target.h.
2612         * common/common-targhooks.c, common/common-targhooks.h: New.
2613         * config.gcc (target_has_targetm_common): Default to yes.
2614         (moxie*): Set target_has_targetm_common=no.
2615         (hppa*-*-*): Don't set target_has_targetm_common=yes.
2616         * doc/tm.texi: Regenerate.
2617         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
2618         (C_TARGET_DEF_H): Add common/common-targhooks.h.
2619         (GCC_OBJS): Remove vec.o.
2620         (OBJS): Remove hooks.o and vec.o.
2621         (OBJS-libcommon-target): Add vec.o, hooks.o and
2622         common/common-targhooks.o.
2623         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
2624         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
2625         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
2626         cfglayout.o, $(out_object_file), $(common_out_object_file)):
2627         Update dependencies.
2628         (common/common-targhooks.o): New.
2629         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
2630         * common/config/pa/pa-common.c: Include more headers.  Take
2631         copyright dates from pa.c.
2632         (pa_option_optimization_table, pa_handle_option,
2633         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
2634         TARGET_HANDLE_OPTION): Move from pa.c.
2635         * common/config/alpha/alpha-common.c,
2636         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
2637         common/config/bfin/bfin-common.c,
2638         common/config/cris/cris-common.c,
2639         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
2640         common/config/h8300/h8300-common.c,
2641         common/config/i386/i386-common.c,
2642         common/config/ia64/ia64-common.c,
2643         common/config/iq2000/iq2000-common.c,
2644         common/config/lm32/lm32-common.c,
2645         common/config/m32c/m32c-common.c,
2646         common/config/m32r/m32r-common.c,
2647         common/config/m68k/m68k-common.c,
2648         common/config/mcore/mcore-common.c,
2649         common/config/mep/mep-common.c,
2650         common/config/microblaze/microblaze-common.c,
2651         common/config/mips/mips-common.c,
2652         common/config/mmix/mmix-common.c,
2653         common/config/mn10300/mn10300-common.c,
2654         common/config/pdp11/pdp11-common.c,
2655         common/config/picochip/picochip-common.c,
2656         common/config/rs6000/rs6000-common.c,
2657         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
2658         common/config/score/score-common.c, common/config/sh/sh-common.c,
2659         common/config/sparc/sparc-common.c,
2660         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
2661         common/config/vax/vax-common.c,
2662         common/config/xstormy16/xstormy16-common.c,
2663         common/config/xtensa/xtensa-common.c: New.
2664         * config/alpha/alpha.c: Include common/common-target.h.
2665         (alpha_option_optimization_table, alpha_handle_option,
2666         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2667         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
2668         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
2669         * config/arm/arm.c (arm_option_optimization_table,
2670         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2671         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
2672         arm-common.c.
2673         * config/avr/avr.c (avr_option_optimization_table,
2674         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
2675         to avr-common.c.
2676         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
2677         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
2678         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
2679         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
2680         * config/cris/cris.c (cris_option_optimization_table,
2681         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2682         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
2683         cris-common.c.
2684         * config/fr30/fr30.c (fr30_option_optimization_table,
2685         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
2686         to fr30-common.c.
2687         * config/frv/frv.c (frv_option_optimization_table,
2688         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
2689         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
2690         * config/h8300/h8300.c (h8300_option_optimization_table,
2691         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2692         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
2693         * config/i386/i386-protos.h (ix86_handle_option): Declare.
2694         * config/i386/i386.c: Include common/common-target.h.
2695         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
2696         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
2697         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
2698         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
2699         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
2700         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
2701         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
2702         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
2703         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
2704         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
2705         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
2706         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
2707         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
2708         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
2709         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
2710         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
2711         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
2712         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
2713         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
2714         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
2715         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
2716         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
2717         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
2718         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
2719         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
2720         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
2721         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
2722         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
2723         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
2724         ix86_option_optimization_table, ix86_option_init_struct,
2725         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
2726         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2727         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
2728         i386-common.c.
2729         * config/i386/t-i386 (i386.o): Update dependencies.
2730         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
2731         * config/ia64/ia64.c (ia64_option_optimization_table,
2732         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
2733         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2734         ia64_handle_option): Move to ia64-common.c.
2735         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
2736         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
2737         * config/lm32/lm32.c (lm32_option_optimization_table,
2738         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
2739         to lm32-common.c.
2740         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
2741         m32c-common.c.
2742         * config/m32r/m32r.c (m32r_option_optimization_table,
2743         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2744         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
2745         m32r_handle_option): Move to m32r-common.c.
2746         (m32r_memory_move_cost): Remove comment referring to
2747         TARGET_HANDLE_OPTION.
2748         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
2749         Move to m68k-common.c.
2750         * config/mcore/mcore.c (mcore_option_optimization_table,
2751         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2752         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
2753         * config/mep/mep.c (mep_option_optimization_table,
2754         mep_handle_option, TARGET_HANDLE_OPTION,
2755         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
2756         Move to mep-common.c.
2757         * config/microblaze/microblaze.c
2758         (microblaze_option_optimization_table,
2759         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2760         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
2761         * config/mips/mips.c (mips_handle_option,
2762         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
2763         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
2764         mips-common.c.
2765         * config/mmix/mmix.c (mmix_option_optimization_table,
2766         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
2767         Move to mmix-common.c.
2768         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
2769         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
2770         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2771         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
2772         * config/pa/pa.c: Include common/common-target.h.
2773         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
2774         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2775         pa_handle_option): Move to pa-common.c.
2776         (pa_option_override): Use targetm_common.except_unwind_info.
2777         (pa_asm_output_mi_thunk, pa_function_section): Use
2778         targetm_common.have_named_sections.
2779         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
2780         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2781         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
2782         pdp11_handle_option, pdp11_option_init_struct): Move to
2783         pdp11-common.c.
2784         * config/picochip/picochip.c (picochip_option_optimization_table,
2785         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
2786         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
2787         * config/rs6000/rs6000.c: Include common/common-target.h.
2788         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
2789         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
2790         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
2791         rs6000_handle_option): Move to rs6000-common.c.
2792         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
2793         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
2794         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2795         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
2796         * config/s390/s390.c (processor_flags_table,
2797         s390_option_optimization_table, s390_option_init_struct,
2798         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
2799         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2800         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
2801         * config/s390/s390.h (processor_flags_table): Declare.
2802         * config/score/score.c (score_option_optimization_table,
2803         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2804         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
2805         score_handle_option): Move to score-common.c.
2806         * config/sh/sh.c (sh_option_optimization_table,
2807         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
2808         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2809         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
2810         * config/sparc/sparc.c: Include common/common-target.h.
2811         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
2812         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
2813         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
2814         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
2815         spu_option_init_struct): Move to spu-common.c.
2816         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
2817         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
2818         * config/v850/v850.c (small_memory_physical_max,
2819         v850_handle_memory_optionn v850_handle_option,
2820         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
2821         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
2822         v850-common.c.
2823         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
2824         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
2825         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
2826         Move to xtensa-common.c.
2827         * cfglayout.c: Include common/common-target.h.
2828         (fixup_reorder_chain): Use targetm_common.have_named_sections.
2829         * cfgrtl.c: Include common/common-target.h.
2830         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
2831         targetm_common.have_named_sections.
2832         * dbxout.c: Include common/common-target.h.
2833         (dbxout_function_end): Use targetm_common.have_named_sections.
2834         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
2835         targetm_common.except_unwind_info.
2836         * dwarf2out.c: Include common/common-target.h.
2837         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
2838         dwarf2out_begin_prologue, dwarf2out_frame_init,
2839         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
2840         targetm_common.except_unwind_info.
2841         * except.c: Include common/common-target.h.
2842         (init_eh, finish_eh_generation,
2843         output_one_function_exception_table): Use
2844         targetm_common.except_unwind_info.
2845         (switch_to_exception_section): Use targetm_common.have_named_sections.
2846         * explow.c: Include common/common-target.h.
2847         * expr.c: Include common/common-target.h.
2848         (build_personality_function): Use targetm_common.except_unwind_info.
2849         * function.c: Include common/common-target.h.
2850         (expand_function_end): Use targetm_common.except_unwind_info.
2851         * haifa-sched.c: Include common/common-target.h.
2852         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
2853         * lto-opts.c: Include common/common-target.h instead of target.h.
2854         (lto_reissue_options): Use targetm_common.handle_option.
2855         * opts.c: Include common/common-target.h.
2856         (target_handle_option): Use targetm_common.handle_option.
2857         (init_options_struct): Update comment referring to
2858         targetm.target_option.optimization.  Use
2859         targetm_common.default_target_flags,
2860         targetm_common.unwind_tables_default and
2861         targetm_common.option_init_struct.
2862         (default_options_optimization): Use
2863         targetm_common.option_optimization_table.
2864         (finish_options): Use targetm_common.except_unwind_info,
2865         targetm_common.unwind_tables_default,
2866         targetm_common.have_named_sections and
2867         targetm_common.supports_split_stack.
2868         * toplev.c: Include common/common-target.h.
2869         (process_options): Use targetm_common.have_named_sections.
2870         * tree-tailcall.c: Include common/common-target.h.
2871         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
2872         * tree.c: Include common/common-target.h.
2873         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
2874         * varasm.c: Include common/common-target.h.
2875         (resolve_unique_section, hot_function_section,
2876         default_function_section): Use targetm_common.have_named_sections.
2877
2878 2011-06-14  Easwaran Raman  <eraman@google.com>
2879
2880         PR rtl-optimization/44194
2881         * dse.c: Include tree-flow.h
2882         (insn_info): Add new field non_frame_wild_read.
2883         (group_info): Add new fields escaped_n and escaped_p.
2884         (kill_on_calls): New variable.
2885         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
2886         (dse_step0): Initialize kill_on_calls.
2887         (can_escape): New function.
2888         (set_usage_bits): Add additional parameter; record information
2889         about escaped locations.
2890         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
2891         (dse_step2_nospill): Set kill_on_calls based on
2892         group->escaped_n and group->escaped_n.
2893         (add_wild_read): Refactor into...
2894         (reset_active_stores): ... New function, and
2895         (free_read_records): ... New function.
2896         (add_non_frame_wild_read): New function.
2897         (scan_insn): Call add_non_frame_wild_read on non-const calls.
2898         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
2899         (dse_step5_nospill): Call scan_reads_nospill for instructions
2900         marked as non_frame_wild_read.
2901         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
2902
2903 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
2904
2905         * common/common-target-def.h, common/common-target.def,
2906         common/common-target.h, common/config/default-common.c,
2907         common/config/pa/pa-common.c: New files.
2908         * Makefile.in (common_out_file, common_out_object_file,
2909         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
2910         (OBJS-libcommon-target): Include $(common_out_object_file).
2911         (prefix.o): Update dependencies.
2912         ($(common_out_object_file), common/common-target-hooks-def.h,
2913         s-common-target-hooks-def-h): New.
2914         (s-tm-texi): Also check timestamp on common-target.def.
2915         (build/genhooks.o): Update dependencies.
2916         * config.gcc (common_out_file, target_has_targetm_common): Define.
2917         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
2918         TARGET_ALWAYS_STRIP_DOTDOT.
2919         * configure.ac (common_out_object_file): Define.
2920         (common_out_file, common_out_object_file): Substitute.
2921         (common): Create directory.
2922         * configure: Regenerate.
2923         * doc/tm.texi.in (targetm_common): Document.
2924         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
2925         * doc/tm.texi: Regenerate.
2926         * genhooks.c (hook_array): Also include common/common-target.def.
2927         * prefix.c (tm.h): Don't include.
2928         (common/common-target.h): Include.
2929         (ALWAYS_STRIP_DOTDOT): Don't define.
2930         (update_path): Use targetm_common.always_strip_dotdot instead of
2931         ALWAYS_STRIP_DOTDOT.
2932         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
2933
2934 2011-06-14  David Li  <davidxl@google.com>
2935
2936         * passes.c (execute_function_todo): Remove TODO_dump_func.
2937         (execute_one_pass): Remove TODO_dump_func.
2938         (execute_function_dump): New function.
2939         * tree-vrp.c: Remove TODO_dump_func.
2940         * regrename.c: Remove TODO_dump_func.
2941         * fwprop.c: Remove TODO_dump_func.
2942         * tree-into-ssa.c: Remove TODO_dump_func.
2943         * tree-complex.c: Remove TODO_dump_func.
2944         * tracer.c: Remove TODO_dump_func.
2945         * tree-loop-distribution.c: Remove TODO_dump_func.
2946         * postreload-gcse.c: Remove TODO_dump_func.
2947         * postreload.c: Remove TODO_dump_func.
2948         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
2949         * tree-tailcall.c: Remove TODO_dump_func.
2950         * ipa-cp.c: Remove TODO_dump_func.
2951         * final.c: Remove TODO_dump_func.
2952         * tree-emutls.c: Remove TODO_dump_func.
2953         * omp-low.c: Remove TODO_dump_func.
2954         * tree-ssa-dse.c: Remove TODO_dump_func.
2955         * tree-ssa-uncprop.c: Remove TODO_dump_func.
2956         * auto-inc-dec.c: Remove TODO_dump_func.
2957         * reorg.c: Remove TODO_dump_func.
2958         * tree-ssa-copyrename.c: Remove TODO_dump_func.
2959         * tree-ssa-ccp.c: Remove TODO_dump_func.
2960         * compare-elim.c: Remove TODO_dump_func.
2961         * mode-switching.c: Remove TODO_dump_func.
2962         * modulo-sched.c: Remove TODO_dump_func.
2963         * tree-call-cdce.c: Remove TODO_dump_func.
2964         * cse.c: Remove TODO_dump_func.
2965         * web.c: Remove TODO_dump_func.
2966         * tree-stdarg.c: Remove TODO_dump_func.
2967         * lto-streamer-out.c: Remove TODO_dump_func.
2968         * tree-ssa-math-opts.c: Remove TODO_dump_func.
2969         * tree-ssa-dom.c: Remove TODO_dump_func.
2970         * tree-nrv.c: Remove TODO_dump_func.
2971         * loop-init.c: Remove TODO_dump_func.
2972         * gimple-low.c: Remove TODO_dump_func.
2973         * ipa-inline.c: Remove TODO_dump_func.
2974         * tree-ssa-sink.c: Remove TODO_dump_func.
2975         * jump.c: Remove TODO_dump_func.
2976         * ifcvt.c: Remove TODO_dump_func.
2977         * tree-ssa-loop.c: Remove TODO_dump_func.
2978         * recog.c: Remove TODO_dump_func.
2979         * dse.c: Remove TODO_dump_func.
2980         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
2981         * matrix-reorg.c: Remove TODO_dump_func.
2982         * tree-eh.c: Remove TODO_dump_func.
2983         * regmove.c: Remove TODO_dump_func.
2984         * function.c: Remove TODO_dump_func.
2985         * tree-vectorizer.c: Remove TODO_dump_func.
2986         * ipa-split.c: Remove TODO_dump_func.
2987         * gcse.c: Remove TODO_dump_func.
2988         * tree-if-conv.c: Remove TODO_dump_func.
2989         * init-regs.c: Remove TODO_dump_func.
2990         * tree-ssa-phiopt.c: Remove TODO_dump_func.
2991         * implicit-zee.c: Remove TODO_dump_func.
2992         * lower-subreg.c: Remove TODO_dump_func.
2993         * bt-load.c: Remove TODO_dump_func.
2994         * tree-dfa.c: Remove TODO_dump_func.
2995         * except.c: Remove TODO_dump_func.
2996         * emit-rtl.c: Remove TODO_dump_func.
2997         * store-motion.c: Remove TODO_dump_func.
2998         * cfgexpand.c: Remove TODO_dump_func.
2999         * tree-cfgcleanup.c: Remove TODO_dump_func.
3000         * cfgcleanup.c: Remove TODO_dump_func.
3001         * tree-ssa-pre.c: Remove TODO_dump_func.
3002         * tree-sra.c: Remove TODO_dump_func.
3003         * tree-mudflap.c: Remove TODO_dump_func.
3004         * tree-ssa-copy.c: Remove TODO_dump_func.
3005         * cfglayout.c: Remove TODO_dump_func.
3006         * tree-ssa-forwprop.c: Remove TODO_dump_func.
3007         * tree-ssa-dce.c: Remove TODO_dump_func.
3008         * ira.c: Remove TODO_dump_func.
3009         * tree-ssa.c: Remove TODO_dump_func.
3010         * integrate.c: Remove TODO_dump_func.
3011         * tree-optimize.c: Remove TODO_dump_func.
3012         * tree-ssa-phiprop.c: Remove TODO_dump_func.
3013         * tree-object-size.c: Remove TODO_dump_func.
3014         * combine.c: Remove TODO_dump_func.
3015         * bb-reorder.c: Remove TODO_dump_func.
3016         * cprop.c: Remove TODO_dump_func.
3017         * var-tracking.c: Remove TODO_dump_func.
3018         * tree-profile.c: Remove TODO_dump_func.
3019         * tree-vect-generic.c: Remove TODO_dump_func.
3020         * reg-stack.c: Remove TODO_dump_func.
3021         * sched-rgn.c: Remove TODO_dump_func.
3022         * tree-ssa-structalias.c: Remove TODO_dump_func.
3023         * tree-switch-conversion.c: Remove TODO_dump_func.
3024         * tree-cfg.c: Remove TODO_dump_func.
3025         * tree-ssa-reassoc.c: Remove TODO_dump_func.
3026         * combine-stack-adj.c: Remove TODO_dump_func.
3027         * dce.c: Remove TODO_dump_func.
3028         * tree-ssanames.c: Remove TODO_dump_func.
3029         * regcprop.c: Remove TODO_dump_func.
3030
3031 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
3032
3033         PR middle-end/47364
3034         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
3035         and properly handle result not in Pmode.
3036
3037 2011-06-14  Robert Millan  <rmh@gnu.org>
3038
3039         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
3040         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
3041         `config/linux.h'.
3042
3043         * config/i386/kfreebsd-gnu64.h: New file.
3044         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
3045         with `i386/kfreebsd-gnu64.h'.
3046
3047         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
3048         (GNU_USER_LINK_EMULATION64): New macros.
3049         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
3050         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
3051         of hardcoding `elf_i386' and `elf_x86_64'.
3052
3053 2011-06-14  Nick Clifton  <nickc@redhat.com>
3054
3055         PR target/49403
3056         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
3057
3058         PR target/49402
3059         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
3060
3061 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
3062
3063         PR fortran/49103
3064         * tree.h (DECL_NONSHAREABLE): Define.
3065         (struct tree_decl_common): Change decl_common_unused to
3066         decl_nonshareable_flag.
3067         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
3068         Ignore vars with DECL_NONSHAREABLE bit set.
3069         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
3070         on stores to automatic aggregate vars.
3071
3072         PR rtl-optimization/49390
3073         Revert:
3074         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
3075
3076         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
3077         MEM_ALIAS_SET.
3078
3079 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
3080             Tom de Vries  <tom@codesourcery.com>
3081
3082         PR target/45098
3083         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
3084         Document changed semantics.
3085         (max_stmt_executions, max_stmt_executions_int): Declare.
3086         * tree-data-ref.c (estimated_loop_iterations)
3087         (estimated_loop_iterations_int): Move functions...
3088         * tree-ssa-loop-niter.c (estimated_loop_iterations)
3089         (estimated_loop_iterations_int): here.
3090         (record_estimate): Change nb_iterations_upper_bound and
3091         nb_iterations_estimate semantics.
3092         (max_stmt_executions, max_stmt_executions_int): New function.
3093         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
3094         (max_stmt_executions_tree): this.
3095         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
3096         estimated_loop_iterations_tree.
3097         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
3098         max_stmt_executions_int instead of estimated_loop_iterations_int.
3099         * predict.c (predict_loops): Idem.
3100         * tree-parloops.c (parallelize_loops): Idem.
3101         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
3102         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
3103         (init_omega_for_ddr_1): Idem.
3104         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
3105         (loop_prefetch_arrays): Idem
3106         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
3107         max_stmt_executions instead of estimated_loop_iterations.
3108         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
3109         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
3110         instead of nb_iterations_upper_bound.
3111
3112 2011-06-13  Jan Hubicka  <jh@suse.cz>
3113
3114         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
3115
3116 2011-06-14  Richard Henderson  <rth@redhat.com>
3117
3118         PR debug/48459
3119         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
3120         (based_loc_descr): Assert it's true.
3121         (compute_frame_pointer_to_fb_displacement): Set it, rather than
3122         aborting immediately.
3123
3124 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
3125             Mingfeng Wu  <mingfeng@faraday-tech.com>
3126
3127         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
3128
3129 2011-06-13  Jan Hubicka  <jh@suse.cz>
3130
3131         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
3132
3133 2011-06-13  Jan Hubicka  <jh@suse.cz>
3134
3135         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
3136         similarly to DECL_COMDAT.
3137         * cgraphunit.c (cgraph_analyze_function): Likewise.
3138         * ipa.c (function_and_variable_visibility): Likewise.
3139
3140 2011-06-13  Jan Hubicka  <jh@suse.cz>
3141
3142         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
3143         BINFO_VIRTUALS when streaming for ltrans unit.
3144
3145 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
3146
3147         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
3148         (movdi_internal64): Same.
3149
3150 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
3151
3152         PR target/44618
3153         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
3154         a set of similar patterns, where the MATCH_OPERAND for the function
3155         argument is replaced with individual references to hardware registers.
3156         (save_fpregs_<mode>): Ditto
3157         (restore_gpregs_<mode>): Ditto
3158         (return_and_restore_gpregs_<mode>): Ditto
3159         (return_and_restore_fpregs_<mode>): Ditto
3160         (return_and_restore_fpregs_aix_<mode>): Ditto
3161
3162 2011-06-13  Jan Hubicka  <jh@suse.cz>
3163
3164         * ipa-utils.c (postorder_stack): New structure.
3165         (ipa_reverse_postorder): Handle aliases.
3166
3167 2011-06-13  Jan Hubicka  <jh@suse.cz>
3168
3169         * ipa-inline.c (reset_edge_caches): Walk aliases.
3170         (update_caller_keys): Do not test inlinability of aliases.
3171         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
3172         (do_estimate_growth): Fix typo.
3173
3174 2011-06-13  Jan Hubicka  <jh@suse.cz>
3175
3176         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
3177         (can_remove_node_now_p): ... here; handle same comdat groups.
3178         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
3179         (inline_call): Update use of can_remove_node_now_p.
3180
3181 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
3182
3183         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
3184         condition to disallow non-identical memory locations.
3185         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
3186         preference to bit manipulation instructions.
3187
3188 2011-06-13  Jan Hubicka  <jh@suse.cz>
3189
3190         * cgraph.c (cgraph_for_node_thunks_and_aliases,
3191         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
3192         (nonremovable_p): New function.
3193         (cgraph_can_remove_if_no_direct_calls_p): New function.
3194         (used_from_object_file_p): New functoin.
3195         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
3196         references from aliases.
3197         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
3198         * ipa-inline.c (check_caller_edge): New function.
3199         (want_inline_function_called_once_p): Use it; accept aliases called
3200         once, too.
3201         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
3202
3203 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3204
3205         PR target/48454
3206         * config/arm/neon.md (vec_pack_trunc): Set the lengths
3207         correctly for the case with Quad vectors.
3208
3209 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
3210            Ira Rosen  <ira.rosen@linaro.org>
3211
3212         PR tree-optimization/49352
3213         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
3214         all, make sure loop_use_stmt after the loop is a def stmt of a used
3215         SSA_NAME that is the only one defined inside of the loop.  Don't
3216         check for COND_EXPR and GIMPLE_BINARY_RHS.
3217         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
3218         check_reduction is true.
3219
3220 2011-06-11  Jan Hubicka  <jh@suse.cz>
3221
3222         PR middle-end/49373
3223         * ipa.c (cgraph_externally_visible_p): Check resolution info.
3224
3225 2011-06-11  Jan Hubicka  <jh@suse.cz>
3226
3227         PR middle-end/48836
3228         * ipa-inline-transform.c: Include tree-pass.h
3229         (inline_transform): Set TODO_update_ssa_only_virtuals.
3230         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
3231
3232 2011-06-11  Jan Hubicka  <jh@suse.cz>
3233
3234         PR middle-end/49378
3235         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
3236         aliases and thunks.
3237
3238 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
3239
3240         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
3241         Take number of iterations to peel into account for equally frequent
3242         misalignment values.
3243
3244 2011-06-11  Jan Hubicka  <jh@suse.cz>
3245
3246         * lto-streamer-out.c (produce_symtab): Stream out the newly
3247         represented aliases.
3248
3249 2011-06-11  Jan Hubicka  <jh@suse.cz>
3250
3251         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
3252         varying args.
3253         (ipa_update_after_lto_read): Likewise.
3254         (ipa_write_node_info): Do not sream call_with_var_arguments.
3255         (ipa_read_node_info): Likewise.
3256
3257 2011-06-11  Jan Hubicka  <jh@suse.cz>
3258
3259         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
3260
3261 2011-06-11  Jan Hubicka  <jh@suse.cz>
3262
3263         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
3264         (lto_symtab_resolve_can_prevail_p): Likewise.
3265         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
3266         * cgraph.c (same_body_aliases_done): New global var.
3267         (cgraph_same_body_alias_1): Rename to ...
3268         (cgraph_create_function_alias): ... this one; reorg to new
3269         representation.
3270         (cgraph_same_body_alias): Use cgraph_create_function_alias;
3271         record references when asked to.
3272         (cgraph_add_thunk): Fix formating.
3273         (cgraph_get_node): Kill same body alias code.
3274         (cgraph_node_for_asm): Likewise.
3275         (cgraph_remove_same_body_alias): Remove.
3276         (cgraph_remove_node): Kill same body alias code.
3277         (cgraph_mark_address_taken_node): Mark also the aliased function
3278         as having address taken.
3279         (dump_cgraph_node): Dump same body aliases.
3280         (cgraph_for_node_thunks_and_aliases): Update for new alias
3281         representation.
3282         (cgraph_for_node_and_aliases): Likewise.
3283         * cgraph.h (same_body): Kll pointer.
3284         (same_body_alias): Update comment.
3285         (same_body_aliases_done): Declare.
3286         (cgraph_remove_same_body_alias): Remove declaration.
3287         (cgraph_create_function_alias): Declare.
3288         (cgraph_process_same_body_aliases): Declare.
3289         (cgraph_function_with_gimple_body_p): Check for alias.
3290         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
3291         (cgraph_alias_aliased_node): New function.
3292         (cgraph_function_node): Update for new aliases.
3293         (cgraph_function_or_thunk_node): Likewise.
3294         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
3295         (inline_call): Remove dead aliases.
3296         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
3297         name hack for same body aliases.
3298         (clone_of_p): Look through aliases.
3299         (verify_cgraph_node): Verify aliases.
3300         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
3301         (cgraph_process_same_body_aliases): New function.
3302         (process_function_and_variable_attributes): Disable weakref warning on
3303         alias.
3304         (cgraph_analyze_functions): Handle aliases.
3305         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
3306         (assemble_thunks): Rename to ...
3307         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
3308         (cgraph_expand_function): Remove alias output code.
3309         (cgraph_output_in_order): Skip aliases.
3310         (cgraph_preserve_function_body_p): Aliases don't need preserving.
3311         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
3312         (ipa_record_reference): Do not assert on alias references.
3313         (ipa_ref_has_aliases_p): New function.
3314         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
3315         (ipa_ref_has_aliases_p): Declare.
3316         * lto-cgraph.c (lto_output_node): Handle aliases.
3317         (input_node): Likewise.
3318         * lto-streamer-out.c (lto_output): Skip aliases.
3319         (produce_symtab): Kill same_body_alias code.
3320         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
3321         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
3322         * ipa-inline.c (update_caller_keys): Walk aliases.
3323         (inline_small_functions): Fix thinko in previous patch.
3324         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
3325         (function_and_variable_visibility): Do not walk same body aliases.
3326         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
3327         (ipa_pta_execute): Use it.
3328
3329 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
3330
3331         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
3332         (*vec_dupv2df): Rename from vec_dupv2df.
3333         (vec_dupv2df): New expander.
3334
3335 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
3336
3337         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
3338
3339 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
3340
3341         * config/i386/i386.md: Use default value in "isa" attribute.
3342         * config/i386/sse.md: Ditto.
3343         * config/i386/mmx.md: Ditto.
3344
3345 2011-06-10  Wei Guozhi  <carrot@google.com>
3346
3347         PR target/45335
3348         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
3349         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
3350         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
3351         related peephole2.
3352         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
3353         related peephole2.
3354         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
3355         (arm_legitimate_ldrd_p): New prototype.
3356         (arm_output_ldrd): New prototype.
3357         * config/arm/arm.c (arm_check_ldrd_operands): New function.
3358         (arm_legitimate_ldrd_p): New function.
3359         (arm_output_ldrd): New function.
3360
3361 2011-06-10  David Li  <davidxl@google.com>
3362
3363         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
3364         * passes.c (passr_eq): New function.
3365         (create_pass_tab): New function.
3366         (pass_traverse): New function.
3367         (dump_one_pass): New function.
3368         (dump_pass_list): New function.
3369         (dump_passes): New function.
3370
3371 2011-06-10  Jan Hubicka  <jh@suse.cz>
3372
3373         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
3374         setting the nothrow flag.
3375         * ipa-reference.c (propagate): Skip aliases.
3376         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
3377         (propagate_nothrow): Skip aliases; do not update cgraph.
3378         (local_pure_const): Do not update cgraph.
3379         * tree-profile.c (tree_profiling): Do fixup_cfg.
3380
3381 2011-06-10  Jan Hubicka  <jh@suse.cz>
3382
3383         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
3384         (cgraph_local_node_p): ... here; handle aliases.
3385         (has_addr_references_p): Break out from ...;
3386         (cgraph_remove_unreachable_nodes) ... here.
3387
3388 2011-06-10  Jan Hubicka  <jh@suse.cz>
3389
3390         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
3391         * common.opt (flag_inline_functions_called_once): Do not
3392         initialize to 1.
3393
3394 2011-06-10  Jan Hubicka  <jh@suse.cz>
3395
3396         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
3397         (ipcp_initialize_node_lattices): Do not deal with aliases;
3398         Do not try to propagate through thunks.
3399         (ipcp_change_tops_to_bottom): Do not deal with aliases.
3400
3401 2011-06-10  Jan Hubicka  <jh@suse.cz>
3402
3403         * ipa-prop.c (ipa_write_node_info): Stream jump functions
3404         for indirect calls.
3405         (ipa_read_node_info): Likewise.
3406
3407 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3408
3409         PR lto/49302
3410         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
3411         (build_and_insert_call): Likewise.
3412         (build_and_insert_ref): New.
3413         (gimple_expand_builtin_pow): Minor cleanup.
3414         (gimple_expand_builtin_cabs): New.
3415         (execute_cse_sincos): Add case for BUILT_IN_CABS.
3416
3417 2011-06-10  Jan Hubicka  <jh@suse.cz>
3418
3419         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
3420         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
3421         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
3422         (ipcp_propagate_stage): Skip aliases when propagating.
3423         (ipcp_need_redirect_p): Skip aliases.
3424         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
3425         collect_callers_of_node.
3426         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
3427         for aliases.
3428         (ipa_compute_jump_functions): Look through aliases.
3429
3430 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3431
3432         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
3433
3434 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
3435
3436         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
3437         Adjust comments.
3438         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
3439
3440 2011-06-10  Jan Hubicka  <jh@suse.cz>
3441
3442         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
3443         Update call of gimple_get_virt_method_for_binfo.
3444         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
3445         refuse_thunks parameter.
3446         (gimple_fold_call): Update.
3447         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
3448
3449 2011-06-10  Jan Hubicka  <jh@suse.cz>
3450
3451         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
3452         (not_all_callers_have_enough_arguments_p): ... this one; turn into
3453         worker for cgraph_for_node_and_aliases.
3454         (convert_callers_for_node): Break out from ...
3455         (convert_callers): ... here.
3456         (modify_function): Use collect_callers_of_node.
3457         (ipa_early_sra): Use cgraph_for_node_and_aliases.
3458
3459 2011-06-10  Richard Guenther  <rguenther@suse.de>
3460
3461         PR tree-optimization/49361
3462         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
3463         when not already in gimple form.
3464
3465 2011-06-10  Richard Guenther  <rguenther@suse.de>
3466
3467         PR bootstrap/49344
3468         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
3469         FOR_EACH_PHI_OR_STMT_USE.
3470
3471 2011-06-10  Jan Hubicka  <jh@suse.cz>
3472
3473         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
3474         (clone_inlined_nodes): ... here.
3475         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
3476         to real destination prior inlining.
3477         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
3478         can_early_inline_edge_p, want_early_inline_function_p,
3479         want_early_inline_function_p, want_inline_small_function_p,
3480         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
3481         edge_badness, update_all_callee_keys, lookup_recursive_calls,
3482         add_new_edges_to_heap, inline_small_functions, flatten_function,
3483         inline_always_inline_functions, early_inline_small_functions): Use
3484         cgraph_function_or_thunk_node.
3485         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
3486         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
3487         (do_estimate_edge_growth_1): Break out from ...
3488         (do_estimate_growth) ... here; walk aliases.
3489         (inline_generate_summary): Skip aliases.
3490
3491 2011-06-10  Richard Guenther  <rguenther@suse.de>
3492
3493         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
3494         forward when combining, visit inserted stmts when a stmt was changed.
3495
3496 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
3497
3498         * tree.h (error_operand_p): Add.
3499         * dbxout.c (dbxout_type_fields): Use the latter.
3500         * c-decl.c (add_stmt): Likewise.
3501         * gimplify.c (omp_add_variable, omp_notice_variable,
3502         gimplify_scan_omp_clauses): Likewise.
3503
3504 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
3505
3506         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
3507         when a value is actually passed in regs.
3508
3509 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
3510             Laurent Rougé  <laurent.rouge@menta.fr>
3511
3512         * doc/invoke.texi (SPARC options): Add -mflat.
3513         * config/sparc/sparc.opt: Likewise.
3514         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
3515         (sparc_flat_expand_prologue): Declare.
3516         (sparc_flat_expand_epilogue): Likewise.
3517         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
3518         (CPP_ENDIAN_SPEC): Replace with...
3519         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
3520         (CPP_SPEC): Adjust to above change.
3521         (EXTRA_SPECS): Likewise.
3522         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
3523         (INCOMING_REGNO): Likewise.
3524         (OUTGOING_REGNO): Likewise.
3525         (LOCAL_REGNO): Likewise.
3526         (SETUP_FRAME_ADDRESSES): Likewise.
3527         (FIXED_REGISTERS): Set 0 for %fp.
3528         (CALL_USED_REGISTERS): Likewise.
3529         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
3530         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
3531         (RETURN_ADDR_REGNUM): Define.
3532         (RETURN_ADDR_RTX): Use it.
3533         (INCOMING_RETURN_ADDR_REGNUM): Define.
3534         (INCOMING_RETURN_ADDR_RTX): Use it.
3535         (DWARF_FRAME_RETURN_COLUMN): Likewise.
3536         (EH_RETURN_REGNUM): Define.
3537         (EH_RETURN_STACKADJ_RTX): Use it.
3538         (EH_RETURN_HANDLER_RTX): Delete.
3539         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
3540         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
3541         Delete.
3542         (struct machine_function): Add frame_size, apparent_frame_size,
3543         frame_base_reg, frame_base_offset, n_global_fp_regs and
3544         save_local_in_regs_p fields.
3545         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
3546         sparc_frame_base_offset, sparc_n_global_fp_regs,
3547         sparc_save_local_in_regs_p): New macros.
3548         (sparc_option_override): Error out if -fcall-saved-REG is specified
3549         for Out registers.
3550         (eligible_for_restore_insn): Fix formatting.
3551         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
3552         (eligible_for_sibcall_delay): Likewise.
3553         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
3554         (sparc_legitimate_address_p): Adjust to above change.
3555         (save_global_or_fp_reg_p): New predicate.
3556         (return_addr_reg_needed_p): Likewise.
3557         (save_local_or_in_reg_p): Likewise.
3558         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
3559         (SORR_SAVE, SORR_RESTORE): Delete.
3560         (sorr_pred_t): New typedef.
3561         (sorr_act_t): New enum.
3562         (save_or_restore_regs): Rename to...
3563         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
3564         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
3565         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
3566         mechanism.  Add CFI information for double-word saves in 32-bit mode.
3567         (emit_adjust_base_to_offset): New function extracted from...
3568         (emit_save_or_restore_regs): ...this.  Rename the rest to...
3569         (emit_save_or_restore_regs_global_fp_regs): ...this.
3570         (emit_save_or_restore_regs_local_in_regs): New function.
3571         (gen_create_flat_frame_[123]): New functions.
3572         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
3573         (sparc_flat_expand_prologue): New function.
3574         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
3575         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
3576         (sparc_flat_expand_epilogue): New function.
3577         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
3578         (output_return): Likewise.
3579         (output_sibcall): Likewise.
3580         (sparc_output_mi_thunk): Likewise.
3581         (sparc_frame_pointer_required): Likewise.
3582         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
3583         function optimization.
3584         * config/sparc/sparc.md (flat): New attribute.
3585         (prologue): Add TARGET_FLAT handling.
3586         (save_register_window): Disable if TARGET_FLAT.
3587         (create_flat_frame_[123]): New patterns.
3588         (epilogue): Add TARGET_FLAT handling.
3589         (sibcall_epilogue): Likewise.
3590         (eh_return): New expander.
3591         (eh_return_internal): New insn and splitter.
3592         (return_internal): Add TARGET_FLAT handling.
3593         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
3594         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
3595         (nonlocal_goto): Add TARGET_FLAT handling.
3596         * config/sparc/t-elf: Add -mflat multilib.
3597         * config/sparc/t-leon: Likewise.
3598
3599 2011-06-10  Jan Hubicka  <jh@suse.cz>
3600
3601         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
3602         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
3603         (self_recursive_p): Use cgraph_function_node.
3604         (propagate_pure_const): Likewise.
3605         (propagate_nothrow): Likewise.
3606         * ipa-reference.c (ipa_reference_get_not_read_global): Use
3607         cgraph_function_node.
3608         (propagate_bits): Likewise.
3609         (propagate): Likewise.
3610
3611 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3612             Richard Earnshaw  <rearnsha@arm.com>
3613
3614         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
3615         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
3616         (*thumb2_movdi_vfp): Delete.
3617         (*arm_movdi_vfp_cortexa8): Delete.
3618         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
3619         (*movdi_vfp_cortexa8): Likewise.
3620
3621 2011-06-10  Richard Guenther  <rguenther@suse.de>
3622
3623         * stor-layout.c (initialize_sizetypes): Give names to all
3624         sizetype kinds.
3625
3626 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
3627
3628         PR tree-optimization/49318
3629         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
3630         irrelevant pattern statements.
3631
3632 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
3633
3634         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
3635
3636         PR bootstrap/49354
3637         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
3638         to last assignment.
3639
3640 2011-06-09  Jan Hubicka  <jh@suse.cz>
3641
3642         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
3643         do not recompute reachable flag.
3644         (cgraph_finalize_function, cgraph_analyze_functions): Set
3645         redefined_extern_inline here.
3646
3647 2011-06-09  Jan Hubicka  <jh@suse.cz>
3648
3649         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
3650         (cgraph_only_called_directly_p): ... this one; bring offline.
3651         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
3652         varpool_used_from_object_file_p): Drop names from the declaratoin.
3653         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
3654         collect_callers_of_node): New.
3655         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
3656         (cgraph_edge_recursive_p): Use cgraph_function_node.
3657         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
3658         (cgraph_node_cannot_be_local_p_1): Break out from ...
3659         (cgraph_node_can_be_local_p): ... here; walk aliases.
3660         (cgraph_for_node_thunks_and_aliases): New function.
3661         (cgraph_for_node_and_aliases): New function.
3662         (cgraph_make_node_local_1): Break out from ...
3663         (cgraph_make_node_local) ... here; use
3664         cgraph_for_node_thunks_and_aliases.
3665         (cgraph_set_nothrow_flag_1): Break out from ...
3666         (cgraph_set_nothrow_flag) ... here;
3667         use cgraph_for_node_thunks_and_aliases.
3668         (cgraph_set_const_flag_1): Break out from ...
3669         (cgraph_set_const_flag) ... here;
3670         use cgraph_for_node_thunks_and_aliases.
3671         (cgraph_set_pure_flag_1): Break out from ...
3672         (cgraph_set_pure_flag) ... here;
3673         use cgraph_for_node_thunks_and_aliases.
3674         (cgraph_propagate_frequency_1): Break out from ...
3675         (cgraph_propagate_frequency) ... here; use
3676         cgraph_for_node_thunks_and_aliases.
3677         (cgraph_used_from_object_file_p): Do not care about aliases.
3678         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
3679         New functions.
3680         (collect_callers_of_node_1, collect_callers_of_node): New functions.
3681
3682 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
3683
3684         PR rtl-optimization/49154
3685         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
3686         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
3687         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
3688         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
3689         * config/cris/cris.h (cris_register_move_cost): Remove
3690         !TARGET_V32 code.  Tweak comments.
3691
3692 2011-06-09  Jan Hubicka  <jh@suse.cz>
3693
3694         * cgraphbuild.c (record_eh_tables): Mark personality function as having
3695         address taken.
3696
3697 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
3698
3699         PR rtl-optimization/49154
3700         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
3701         is a matching slot in the hashtable, assign it to classes_ptr.
3702
3703         PR rtl-optimization/49154
3704         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
3705         register classes.
3706         * doc/tm.texi: Regenerate.
3707
3708 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
3709
3710         PR target/49307
3711         * config/sh/sh.md (UNSPEC_CHKADD): New.
3712         (chk_guard_add): New define_insn_and_split.
3713         (symGOT_load): Use chk_guard_add instead of blockage.
3714
3715 2011-06-09  Kai Tietz  <ktietz@redhat.com>
3716
3717         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
3718
3719 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
3720
3721         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
3722
3723 2011-06-09  Wei Guozhi  <carrot@google.com>
3724
3725         PR target/46975
3726         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
3727         (peephole2 for conditional move): Generate 16 bit instructions.
3728
3729 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
3730
3731         * config/i386/i386.md (*movdi_internal_rex64): Merge
3732         alternatives 6 and 8.
3733
3734 2011-06-09  David Li  <davidxl@google.com>
3735
3736         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
3737         * passes.c (passr_eq): New function.
3738         (create_pass_tab): New function.
3739         (pass_traverse): New function.
3740         (dump_one_pass): New function.
3741         (dump_pass_list): New function.
3742         (dump_passes): New function.
3743
3744 2011-06-09  David Li  <davidxl@google.com>
3745
3746         * tree-complex.c (tree_lower_complex): Gate cleanup.
3747         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
3748         (execute_optimize_stdarg): Ditto.
3749         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
3750         (execute_cleanup_eh_1): Ditto.
3751         (execute_cleanup_eh): Ditto.
3752         * gcse.c (gate_rtl_pre): Ditto.
3753         (execute_rtl_pre): Ditto.
3754         * except.c (finish_eh_generation): Ditto.
3755         (convert_to_eh_region_ranges): Ditto.
3756         * cprop.c (one_cprop_pass): Ditto.
3757
3758 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
3759
3760         PR target/48673
3761         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
3762         in all basic blocks.
3763
3764 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3765
3766         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
3767         (HAVE_ENABLE_EXECUTE_STACK): Define.
3768         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
3769         (HAVE_ENABLE_EXECUTE_STACK): Define.
3770         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
3771         (HAVE_ENABLE_EXECUTE_STACK): Define.
3772         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
3773         (ENABLE_EXECUTE_STACK): Remove.
3774         (HAVE_ENABLE_EXECUTE_STACK): Define.
3775         [IN_LIBGCC2]: Don't include <windows.h>.
3776         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
3777         (HAVE_ENABLE_EXECUTE_STACK): Define.
3778         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
3779         (HAVE_ENABLE_EXECUTE_STACK): Define.
3780         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
3781         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
3782         (HAVE_ENABLE_EXECUTE_STACK): Define.
3783         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
3784         (HAVE_ENABLE_EXECUTE_STACK): Define.
3785         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
3786         (HAVE_ENABLE_EXECUTE_STACK): Define.
3787         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
3788         (HAVE_ENABLE_EXECUTE_STACK): Define.
3789         * config/alpha/alpha.c (alpha_trampoline_init): Test
3790         HAVE_ENABLE_EXECUTE_STACK.
3791         * config/i386/i386.c (ix86_trampoline_init): Likewise.
3792         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3793         (sparc64_initialize_trampoline): Likewise.
3794         * libgcc2.c [L_enable_execute_stack]: Remove.
3795         * system.h (ENABLE_EXECUTE_STACK): Poison.
3796         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
3797         * doc/tm.texi: Regenerate.
3798         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
3799
3800 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
3801
3802         PR middle-end/49308
3803         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
3804         variable.  After resetting and rescanning insn continue with previous
3805         statement.
3806
3807 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3808
3809         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
3810         (gcc_cv_ld_hidden): Likewise.
3811         * configure: Regenerate.
3812         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
3813         (ix86_stack_protect_fail): Mark unused.
3814         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
3815         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
3816         [TARGET_MACHO]: Don't define.
3817         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
3818         (TARGET_STACK_PROTECT_FAIL): Likewise.
3819         (rs6000_stack_protect_fail): Mark unused.
3820         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
3821         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
3822
3823 2011-06-08  Andi Kleen  <ak@linux.intel.com>
3824
3825         * varasm.c (get_section): Print location of other conflict
3826         for section conflicts.
3827
3828 2011-06-08  Andi Kleen  <ak@linux.intel.com>
3829
3830         * config/i386/driver-i386.c (host_detect_local_cpu):
3831         Add model 0x2d Intel CPU.
3832
3833 2011-06-08  Andi Kleen  <ak@linux.intel.com>
3834
3835         * reginfo.c (global_regs_decl): Add.
3836         (globalize_reg): Add decl parameter. Compute location.  Pass location
3837         to warnings and add inform. Store decl in global_regs_decl.
3838         * rtl.h (globalize_reg): Update prototype.
3839         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
3840
3841 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
3842
3843         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
3844
3845 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
3846
3847         PR target/49305
3848         * config/sh/predicates.md (general_movsrc_operand): Check
3849         mode for memory with indexed address for QI and HImode.
3850         (general_movdst_operand): Likewise.
3851
3852 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
3853
3854         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
3855
3856 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
3857
3858         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
3859         (num_ssa_operands): Likewise.
3860         (op_iter_init_phiuse): Forward-declare.
3861         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
3862
3863 2011-06-08  Nick Clifton  <nickc@redhat.com>
3864
3865         * doc/invoke.texi (ARM Options): Update description of
3866         -mthumb-interwork.
3867
3868 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
3869
3870         * config/i386/driver-i386.c (host_detect_local_cpu): Support
3871         unknown Intel family 0x6 CPUs.
3872
3873 2011-06-08  Martin Jambor  <mjambor@suse.cz>
3874
3875         * tree-sra.c (mark_rw_status): Removed.
3876         (analyze_access_subtree): New parameter parent instead of
3877         mark_read and mark_write, propagate from that.
3878
3879 2011-06-08  Julian Brown  <julian@codesourcery.com>
3880
3881         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
3882         for double-precision helper functions in hard-float mode if only
3883         single-precision arithmetic is supported in hardware.
3884
3885 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
3886
3887         PR rtl-optimization/49303
3888         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
3889         code_motion_path_driver returned 0 or 1.
3890         (sel_region_finish): Clear h_d_i_d.
3891
3892 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
3893
3894         * config/sh/sh.c (prepare_move_operands): Set pic register
3895         appropriately for global and local dynamic tls models even
3896         if flag_pic is unset.
3897
3898 2011-06-07  Jason Merrill  <jason@redhat.com>
3899
3900         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
3901
3902 2011-06-07  Xinliang David Li  <davidxl@google.com>
3903         * passes.c (enable_disable_pass): Handle assembler name.
3904         (is_pass_explicitly_enabled_or_disabled): Ditto.
3905
3906 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3907
3908         PR tree-optimization/48497
3909         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
3910
3911 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3912
3913         PR tree-optimization/46728
3914         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
3915         to use gimple_val_nonnegative_real_p.
3916         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
3917         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
3918
3919 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
3920
3921         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
3922
3923 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
3924
3925         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
3926         constant vectors.
3927
3928 2011-06-07  Richard Guenther  <rguenther@suse.de>
3929
3930         * stor-layout.c (initialize_sizetypes): Initialize all
3931         sizetypes based on target definitions.
3932         (set_sizetype): Remove.
3933         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
3934         * tree.h (set_sizetype): Remove.
3935
3936 2011-06-07  Nick Clifton  <nickc@redhat.com>
3937
3938         * config.gcc: Unify V850 architecture options and add support for
3939         newer V850 architectures.
3940         * config/v850/t-v850e: Delete.
3941
3942 2011-06-07  Richard Guenther  <rguenther@suse.de>
3943
3944         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
3945         Call set_sizetype from here.
3946
3947 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
3948
3949         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
3950         (*maddhisi4tb, *maddhisi4tt): New define_insns.
3951
3952 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
3953             Andrew Stubbs  <ams@codesourcery.com>
3954
3955         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
3956         multiplies.
3957         * doc/md.texi (Canonicalization of Instructions): Document widening
3958         multiply canonicalization.
3959
3960 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
3961
3962         PR gcov-profile/49299
3963         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
3964
3965 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
3966
3967         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
3968         a pointer.
3969         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
3970         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
3971         vect_recog_pow_pattern): Likewise.
3972         (vect_pattern_recog_1): Remove declaration.
3973         (widened_name_p): Remove declaration.  Add new argument to specify
3974         whether to check that both types are either signed or unsigned.
3975         (vect_recog_widen_mult_pattern): Update documentation.  Handle
3976         unsigned patterns and multiplication by constants.
3977         (vect_pattern_recog_1): Update vect_recog_func references.  Use
3978         statement information from the statement returned from pattern
3979         detection functions.
3980         (vect_pattern_recog): Update vect_recog_func reference.
3981         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
3982         multiplication by a constant use the type of the other operand.
3983
3984 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
3985
3986         PR rtl-optimization/49145
3987         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
3988
3989 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
3990
3991         PR debug/49262
3992         * dwarf2out.c (native_encode_initializer): Decrement count in each
3993         iteration.
3994
3995         PR debug/49294
3996         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
3997         non-MODE_INT modes.
3998
3999         PR c++/49264
4000         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
4001         if stmt folded into nothing.
4002         * tree-inline.c (fold_marked_statements): If a builtin at the end of
4003         a bb folded into nothing, just update cgraph edges and move to next bb.
4004         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
4005         to be NULL.  Don't compute count and frequency if new_call is NULL.
4006
4007 2011-06-04  Diego Novillo  <dnovillo@google.com>
4008
4009         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
4010         (cgraph.o): Likewise.
4011         (cgraphunit.o): Likewise.
4012         * cgraphunit.c: Include lto-streamer.h
4013         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
4014         if LTO is enabled.
4015         * lto-streamer-in.c (unpack_value_fields): Call
4016         streamer_hooks.unpack_value_fields if set.
4017         (lto_materialize_tree): For unhandled nodes, first try to
4018         call lto_streamer_hooks.alloc_tree, if it exists.
4019         (lto_input_ts_decl_common_tree_pointers): Move reading of
4020         DECL_INITIAL to lto_streamer_read_tree.
4021         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
4022         (lto_streamer_read_tree): New.
4023         (lto_reader_init): Rename from lto_init_reader.
4024         Move initialization code to lto/lto.c.
4025         * lto-streamer-out.c (pack_value_fields): Call
4026         streamer_hooks.pack_value_fields if set.
4027         (lto_output_tree_ref): For tree nodes that are not normally indexable,
4028         call streamer_hooks.indexable_with_decls_p before giving up.
4029         (lto_output_ts_decl_common_tree_pointers): Move handling
4030         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
4031         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
4032         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
4033         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
4034         (lto_streamer_write_tree): New.
4035         (lto_output): Call lto_streamer_init directly.
4036         (lto_writer_init): Remove.
4037         * lto-streamer.c (streamer_hooks): New.
4038         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
4039         instead of lto_preload_common_nodes.
4040         (lto_is_streamable): Move from lto-streamer.h
4041         (lto_streamer_hooks_init): New.
4042         (streamer_hooks): New.
4043         (streamer_hooks_init): New.
4044         * lto-streamer.h (struct output_block): Forward declare.
4045         (struct lto_input_block): Likewise.
4046         (struct data_in): Likewise.
4047         (struct bitpack_d): Likewise.
4048         (struct streamer_hooks): Declare.
4049         (streamer_hooks): Declare.
4050         (lto_streamer_hooks_init): Declare.
4051         (lto_streamer_write_tree): Declare.
4052         (lto_streamer_read_tree): Declare.
4053         (streamer_hooks_init): Declare.
4054         (lto_is_streamable): Move to lto-streamer.c
4055
4056 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4057
4058         * longlong.h (smul_ppmm): The resulting register pair contains the
4059         higher order word first.
4060
4061 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4062
4063         PR tree-optimization/46728
4064         * builtins.c (powi_table): Remove.
4065         (powi_lookup_cost): Remove.
4066         (powi_cost): Remove.
4067         (expand_powi_1): Remove.
4068         (expand_powi): Remove.
4069         (expand_builtin_pow_root): Remove.
4070         (expand_builtin_pow): Remove.
4071         (expand_builtin_powi): Eliminate handling of constant exponent.
4072         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
4073
4074 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
4075
4076         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
4077
4078 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
4079
4080         * dce.c (reset_unmarked_insns_debug_uses): New.
4081         (delete_unmarked_insns): Skip debug insns.
4082         (prescan_insns_for_dce): Likewise.
4083         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
4084         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
4085         active reg can be found.
4086         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
4087         (convert_regs_1): Use it.
4088
4089 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
4090
4091         * tree-pretty-print.c (dump_function_header): Add flags.
4092         Don't dump decl_uid with nouid.
4093         * tree-pretty-print.h (dump_function_header): Adjust.
4094         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
4095         * passes.c (pass_init_dump_file): Pass dump_flags on.
4096         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
4097
4098 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
4099
4100         PR bootstrap/49270
4101         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
4102
4103 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
4104
4105         PR tree-optimization/49243
4106         * calls.c (setjmp_call_p): Also check if fndecl has the
4107         returns_twice attribute.
4108
4109 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4110
4111         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
4112         -ffast-math etc.
4113
4114 2011-06-06  Richard Henderson  <rth@redhat.com>
4115             Georg-Johann Lay  <avr@gjlay.de>
4116
4117         PR target/42210
4118         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
4119         New predicates.
4120         * config/avr/avr.md ("insv"): New insn expander.
4121         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
4122         "*insv.not.io", "*insv.reg"): New insns.
4123
4124 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
4125
4126         PR target/49285
4127         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
4128         to nonimmediate_operand from memory_operand for the operand that is to
4129         be forced to memory by the expander.  Lose the constraints.
4130
4131 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
4132
4133         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
4134         EH return when delayed branches are disabled.
4135
4136 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
4137
4138         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
4139         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
4140         calculation.
4141         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
4142         Simplify MODE_V1DF and MODE_V2SF handling.
4143         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
4144         Simplify MODE_SF handling.
4145
4146 2011-06-04  Jan Hubicka  <jh@suse.cz>
4147
4148         PR tree-optimization/48893
4149         PR tree-optimization/49091
4150         PR tree-optimization/49179
4151         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
4152         Bounds check.
4153
4154 2011-06-04  Jan Hubicka  <jh@suse.cz>
4155
4156         PR lto/48954
4157         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
4158         bitmaps.
4159
4160 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
4161
4162         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
4163
4164 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
4165
4166         PR target/49281
4167         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
4168         to be strictly smaller than 1 << shiftcount.
4169
4170 2011-06-04  Jan Hubicka  <jh@suse.cz>
4171
4172         PR tree-optimize/48929
4173         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
4174         of empty predicate.
4175
4176 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
4177
4178         PR debug/48333
4179         * calls.c (emit_call_1): Prefer the __builtin declaration of
4180         builtin functions.
4181
4182 2011-06-03   Diego Novillo  <dnovillo@google.com>
4183
4184         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
4185         (lto_input_tree_pointers): Likewise.
4186         * lto-streamer-out.c (pack_value_fields): Likewise.
4187         (lto_output_tree_pointers): Likewise.
4188         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
4189         and OPTIMIZATION_NODE.
4190
4191 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4192
4193         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
4194         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
4195         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
4196         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
4197         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
4198         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
4199         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
4200         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
4201         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
4202         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
4203         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
4204         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
4205         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
4206         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
4207         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
4208         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
4209         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
4210         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
4211         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
4212         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
4213         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
4214         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
4215         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
4216         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
4217         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
4218         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
4219         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
4220         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
4221         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
4222         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
4223         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
4224         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
4225         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
4226         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
4227         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
4228         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
4229         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
4230         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
4231         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
4232         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
4233         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
4234         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
4235         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
4236         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
4237         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
4238         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
4239         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
4240         * system.h (MD_UNWIND_SUPPORT): Poison.
4241         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
4242         * doc/tm.texi: Regenerate.
4243         * unwind-dw2.c: Include md-unwind-support.h instead of
4244         MD_UNWIND_SUPPORT.
4245         * config/ia64/unwind-ia64.c: Likewise.
4246         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
4247
4248 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
4249
4250         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
4251
4252 2011-06-03  Richard Henderson  <rth@redhat.com>
4253             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4254
4255         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
4256         (sigill_hdlr): Correct insn, insn size.
4257         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
4258
4259 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4260
4261         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
4262         t-slibgcc-dummy.
4263         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
4264         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
4265         * config/mips/t-iris: Remove.
4266         * config/mips/t-irix6: New file.
4267         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
4268
4269 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4270
4271         * Makefile.in (LIB2ADDEHDEP): Remove.
4272         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
4273         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
4274         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
4275         * config/t-darwin (LIB2ADDEHDEP): Remove.
4276         * config/t-freebsd (LIB2ADDEHDEP): Remove.
4277         * config/t-linux (LIB2ADDEHDEP): Remove.
4278
4279 2011-06-03  Diego Novillo  <dnovillo@google.com>
4280
4281         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
4282         (lto_register_var_decl_in_symtab): Likewise.
4283         (lto_register_function_decl_in_symtab): Likewise.
4284         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
4285         logic to uniquify_nodes.
4286
4287 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4288
4289         * config/alpha/t-osf5: Remove.
4290         * config/alpha/t-osf-pthread: Remove.
4291         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
4292         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
4293
4294 2011-06-03  Julian Brown  <julian@codesourcery.com>
4295
4296         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
4297         (strongarm1110): Use strongarm tuning.
4298         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
4299         * config/arm/arm.c (arm_strongarm_tune): New.
4300         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
4301         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
4302         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
4303         setting, using previous defaults or 1 for Cortex-A5.
4304         (arm_option_override): Set max_insns_skipped from current tuning.
4305
4306 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
4307
4308         * doc/install.texi (Options specification): Document --with-specs.
4309
4310 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4311
4312         * config/arm/neon.md (orndi3_neon): Actually split it.
4313
4314 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
4315
4316         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
4317         * var-tracking.c (reverse_op): Limite recurse depth to 5.
4318
4319 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
4320
4321         PR debug/47590
4322         * target.def (delay_sched2, delay_vartrack): New.
4323         * doc/tm.texi.in: Update.
4324         * doc/tm.texi: Rebuild.
4325         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
4326         * var-tracking.c (gate_handle_var_tracking): Likewise.
4327         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
4328         (bfin_flag_var_tracking): Drop.
4329         (output_file_start): Don't save and override flag_var_tracking.
4330         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
4331         (bfin_reorg): Test original variables.
4332         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
4333         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
4334         (ia64_flag_var_tracking): Drop.
4335         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
4336         (ia64_file_start): Don't save and override flag_var_tracking.
4337         (ia64_override_options_after_change): Ditto
4338         flag_schedule_insns_after_reload.
4339         (ia64_reorg): Test original variables.
4340         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
4341         (picochip_flag_var_tracking): Drop.
4342         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
4343         (picochip_option_override): Don't save and override
4344         flag_schedule_insns_after_reload.
4345         (picochip_asm_file_start): Ditto flag_var_tracking.
4346         (picochip_reorg): Test original variables.
4347         * config/spu/spu.c (spu_flag_var_tracking): Drop.
4348         (TARGET_DELAY_VARTRACK): Define.
4349         (spu_var_tracking): New.
4350         (spu_machine_dependent_reorg): Call it.
4351         (asm_file_start): Don't save and override flag_var_tracking.
4352
4353 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
4354
4355         PR target/49163
4356         * config/sh/predicates.md (general_movsrc_operand): Return 0
4357         for memory and memory subreg of which address is an invalid
4358         indexed address for QI and HImode.
4359         (general_movdst_operand): Likewise.
4360
4361 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
4362
4363         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
4364         edges only, when there is a non-local label in the function.
4365         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
4366
4367 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
4368
4369         * config/i386/constraints.md (Y3): New register constraint.
4370         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
4371         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
4372         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
4373         *sse2_interleave_lowv2df.
4374
4375 2011-06-02  Julian Brown  <julian@codesourcery.com>
4376
4377         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
4378         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
4379         (arm_cortex_a5_tune): New.
4380
4381 2011-06-02  Julian Brown  <julian@codesourcery.com>
4382
4383         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
4384         * config/arm/arm.c (arm_default_branch_cost): New.
4385         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
4386         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
4387         (arm_fa726_tune): Set branch_cost field using
4388         arm_default_branch_cost.
4389         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
4390         current_tune structure.
4391         * dojump.c (tm_p.h): Include file.
4392
4393 2011-06-02  Julian Brown  <julian@codesourcery.com>
4394
4395         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
4396         tuning.
4397         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
4398         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
4399         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
4400         field.
4401         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
4402         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
4403         (arm_fa726te_tune): Add prefer_constant_pool setting.
4404         (arm_v6t2_tune, arm_cortex_tune): New.
4405         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
4406         prefer_constant_pool setting.
4407
4408 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
4409
4410         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
4411         switch statement.
4412         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
4413         (*movdf_internal) <case 6,7,8>: Ditto.
4414
4415         * config/i386/constraints.md (Y4): New register constraint.
4416         * config/i386/sse.md (vec_set<mode>_0): Merge with
4417         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
4418         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
4419         *vec_extractv2di_1_sse.
4420         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
4421         and *vec_concatv2di_rex64_sse.
4422
4423 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
4424
4425         PR target/48807
4426         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
4427         of cgraph_local_info for null before attempting to use it.
4428
4429 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
4430
4431         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
4432         (current_function_dynamic_alloc_count): Delete.
4433         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
4434         (expand_builtin_nonlocal_goto): Remove obsolete comment.
4435         (expand_builtin_update_setjmp_buf): Remove dead code.
4436         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
4437         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
4438         support.
4439         * function.c (instantiate_virtual_regs): Likewise.
4440         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
4441         for a block with a single abnormal incoming edge.
4442         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
4443         (SETJMP_VIA_SAVE_AREA): Delete.
4444         * config/sparc/sparc-protos.h (load_got_register): Declare.
4445         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
4446         (load_got_register): Make global.
4447         (sparc_frame_pointer_required): Add 'static'.
4448         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
4449         (sparc_builtin_setjmp_frame_value): New function.
4450         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
4451         (save_stack_nonlocal): New expander.
4452         (restore_stack_nonlocal): Likewise.
4453         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
4454         (nonlocal_goto_internal): New insn.
4455         (goto_handler_and_restore): Delete.
4456         (builtin_setjmp_setup): Likewise.
4457         (do_builtin_setjmp_setup): Likewise.
4458         (setjmp): Likewise.
4459         (builtin_setjmp_receiver): New expander.
4460
4461 2011-06-01  David Li  <davidxl@google.com>
4462
4463         PR middle-end/49261
4464         * tree-pretty-print.c (dump_function_header): Format cleanup.
4465
4466 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
4467
4468         PR target/49238
4469         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
4470         needed when original operands are used for msw_skip comparison.
4471
4472 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
4473
4474         PR debug/49250
4475         * var-tracking.c (add_uses, add_stores): Don't call
4476         cselib_subst_to_values on ENTRY_VALUE.
4477
4478 2011-06-01  Diego Novillo  <dnovillo@google.com>
4479
4480         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
4481         output_record_start with LTO_null instead of output_zero.
4482         (lto_output_ts_binfo_tree_pointers): Likewise.
4483         (lto_output_tree): Likewise.
4484         (output_eh_try_list): Likewise.
4485         (output_eh_region): Likewise.
4486         (output_eh_lp): Likewise.
4487         (output_eh_regions): Likewise.
4488         (output_bb): Likewise.
4489         (output_function): Likewise.
4490         (output_unreferenced_globals): Likewise.
4491         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
4492         instead of NUM_TREE_CODES.
4493         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
4494         (lto_output_int_in_range): Change << to >> when shifting VAL.
4495
4496 2011-06-01  Diego Novillo  <dnovillo@google.com>
4497
4498         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
4499         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
4500
4501 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
4502
4503         PR target/45074
4504         * optabs.h (valid_multiword_target_p): Declare.
4505         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
4506         doing multi-word operations.
4507         * optabs.c (expand_binop): Likewise.
4508         (expand_doubleword_bswap): Likewise.
4509         (expand_absneg_bit): Likewise.
4510         (expand_unop): Likewise.
4511         (expand_copysign_bit): Likewise.
4512         (multiword_target_p): New function.
4513
4514 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
4515
4516         PR rtl-optimization/48830
4517         PR rtl-optimization/48808
4518         PR rtl-optimization/48792
4519         * reload.c (push_reload): Check contains_reg_of_mode.
4520         * reload1.c (strip_paradoxical_subreg): New function.
4521         (gen_reload_chain_without_interm_reg_p): Use it to handle
4522         paradoxical subregs.
4523         (emit_output_reload_insns, gen_reload): Likewise.
4524
4525 2011-06-01  David Li  <davidxl@google.com>
4526
4527         * predict.c : Change pass name
4528         * ipa.c: Ditto.
4529         * dce.c: Ditto.
4530         * tree-profile.c: Ditto.
4531         * except.c: Ditto.
4532
4533 2011-06-01  David Li  <davidxl@google.com>
4534
4535         * tree-pretty-print.c (dump_function_header): New function.
4536         * final.c (rest_of_clean_state): Use header dumper.
4537         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
4538         * passes.c (pass_init_dump_file): Use header dumper.
4539
4540 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
4541
4542         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
4543         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
4544         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
4545         New functions.
4546         (mem_loc_descriptor): Use them.
4547
4548         * var-tracking.c (create_entry_value): New function.
4549         (vt_add_function_parameter): Use it.
4550
4551 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4552
4553         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
4554         Include <signal.h>, <ucontext.h>.
4555         (sigill_caught): Define.
4556         (sigill_hdlr): New function.
4557         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
4558         insns can be executed.
4559         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
4560         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
4561
4562 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4563
4564         * config/t-slibgcc-darwin: Move to ...
4565         * config/t-slibgcc-dummy: ... this.  Clarify comments.
4566         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
4567         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
4568         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
4569         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
4570         Remove i386/t-crtstuff from tmake_file.
4571         (i[34567]86-*-solaris2*): Remove t-svr4,
4572         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
4573         t-slibgcc-dummy.
4574         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
4575         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
4576         sparc/t-crtfm from tmake_file.
4577         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
4578         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
4579         Remove extra_parts.
4580         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
4581         * config/i386/t-nwld (SHLIB_LINK): Remove.
4582         * config/i386/t-rtems-i386: Rename to ...
4583         * config/i386/t-rtems: ... this.
4584         ($(T)crti.o, $(T)crtn.o): Remove.
4585         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
4586         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
4587         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
4588         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
4589         EXTRA_MULTILIB_PARTS): Remove.
4590         * config/sparc/t-sol2-64: Likewise.
4591         * config/sparc/t-sol2: Remove.
4592         * config/sparc/t-crtin: Remove.
4593         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
4594         * config/i386/gmon-sol2.c: Remove.
4595         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
4596         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
4597         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
4598         * config/i386/sol2-gc1.asm: Remove.
4599         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
4600         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
4601         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
4602         * config/t-slibgcc-sld: Remove.
4603
4604 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
4605
4606         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
4607         base_type_for_mode with op_mode instead of mode.
4608
4609 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
4610
4611         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
4612         Cortex-A15.
4613         * config/arm/arm-tune.md: Regenerate.
4614         * config/arm/arm-tables.opt: Regenerate.
4615         * config/arm/arm.c (FL_DIV): Rename...
4616         (FL_THUMB_DIV): ... to this.
4617         (FL_ARM_DIV): Define.
4618         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
4619         (arm_arch_hwdiv): Remove.
4620         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
4621         (arm_issue_rate): Add cortexr5.
4622         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
4623         __ARM_ARCH_EXT_IDIV__.
4624         (TARGET_IDIV): Define.
4625         (arm_arch_hwdiv): Remove.
4626         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
4627         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
4628         (divsi3, udivsi3): New patterns.
4629         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
4630         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
4631
4632 2011-06-01  Martin Jambor  <mjambor@suse.cz>
4633
4634         * ipa-utils.c (ipa_dfs_info): New field scc_no.
4635         * ipa-utils.c (searchc): Set scc_no.
4636
4637 2011-06-01  Martin Jambor  <mjambor@suse.cz>
4638
4639         * ipa-utils.c (searchc_env): New field allow_overwritable.
4640         (searchc): do not ignore edges to overwritable nodes if indicated
4641         by env->allow_overwritable.
4642         (ipa_reduced_postorder): Set env.allow_overwritable.
4643
4644 2011-06-01  Richard Guenther  <rguenther@suse.de>
4645
4646         * tree.c (free_lang_data): Do not reset boolean_type_node nor
4647         char_type_node.
4648         * lto-streamer.c (lto_record_common_node): Take node pointer,
4649         do not register types.
4650         (lto_preload_common_nodes): Explicitly skip preloading nodes
4651         that differ between frontends.
4652
4653 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
4654
4655         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
4656         NON_FLOAT_REGS.
4657
4658 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
4659
4660         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
4661         parameter value for dump. Dump cost on outermost call only.
4662         (rs6000_memory_move_cost): Dump cost on outermost call only.
4663
4664 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
4665
4666         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
4667         DW_OP_GNU_convert ops.
4668
4669         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
4670         cselib_preserve_constants.
4671         (cselib_lookup_1): If cselib_preserve_constants,
4672         a new VALUE is being created for REG and there is a VALUE for the
4673         same register in wider mode, add another loc with lowpart SUBREG of
4674         the wider VALUE.
4675         (cselib_subst_to_values): Handle ENTRY_VALUE.
4676         * var-tracking.c  (replace_expr_with_values): Return NULL for
4677         ENTRY_VALUE too.
4678         * dwarf2out.c (convert_descriptor_to_signed): New function.
4679         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
4680         instead of two shifts.
4681         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
4682         the right mode if needed.
4683         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
4684         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
4685         convert_descriptor_to_signed.
4686         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
4687         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
4688
4689         PR target/48688
4690         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
4691
4692 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
4693
4694         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
4695         of X87MODEI12 and SWI48x instead of SSEMODEI24.
4696         (SWI248x): New mode iterator, rename from X87MODEI.
4697         (X87MODEI): Remove mode iterator.
4698         (X87MODEI12): Ditto.
4699         (SSEMODEI24): Ditto.
4700
4701 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
4702
4703         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
4704         * doc/invoke.texi: Document max-vartrack-expr-depth.
4705         * var-tracking.c (EXPR_DEPTH): New.
4706         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
4707
4708 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
4709
4710         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
4711         * config/i386/sse.md: Add n to negated FMA pattern names.
4712
4713 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
4714
4715         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
4716
4717 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
4718
4719         * gengtype-state.c (read_state_params_structs): Initialize previous.
4720
4721 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
4722
4723         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
4724         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
4725
4726 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
4727
4728         * config/i386/i386.md (*movtf_internal): Avoid allocating general
4729         registers.  Penalize F*r->o alternative to prevent partial memory
4730         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
4731         CONST_DOUBLE immediates when optimizing function for size.  Do not move
4732         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
4733         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
4734         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
4735         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
4736         alternatives.
4737         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
4738
4739         (fp_register_operand splitters): Use fp_register_operand
4740         constraint.  Do not use FP_REG_P in insn condition.
4741         (any_fp_register_operand splitters): Use any_fp_register_operand
4742         constraint.  Do not use ANY_FP_REG_P in insn condition.
4743
4744 2011-05-31  Jan Hubicka  <jh@suse.cz>
4745
4746         * cgraph.h (cgraph_inline_failed_t): Give enum a name
4747         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
4748         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
4749         (lto_output_edge): Use output_enum and var_len_unsigned.
4750         (lto_output_varpool_node): Likewise.
4751         (input_overwrite_node): Do not take resolution parameter;
4752         extract it from a bitpack.
4753         (input_node): Do not read resolution; use input_enum and
4754         var_len_unsigned.
4755         (input_varpool_node): Likewise.
4756         (input_edge): Likewise.
4757         (input_cgraph_1): Likewise.
4758
4759 2011-05-31  Richard Guenther  <rguenther@suse.de>
4760
4761         * gimple.c (gimple_register_canonical_type): Do not register
4762         any types via gimple_register_type.
4763
4764 2011-05-31  Jan Hubicka  <jh@suse.cz>
4765
4766         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
4767         of thunks.
4768
4769 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
4770
4771         PR rtl-optimization/49235
4772         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
4773         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
4774
4775 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
4776
4777         PR tree-optimization/49093
4778         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
4779         data references.
4780
4781 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
4782
4783         PR debug/49047
4784         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
4785         for concrete functions containing the code of cloned functions.
4786
4787 2011-05-31  Richard Guenther  <rguenther@suse.de>
4788
4789         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
4790         to ...
4791         (forward_propagate_into_comparison_1): ... this.
4792         (forward_propagate_comparison): Rename to ...
4793         (forward_propagate_into_comparison): ... this.  Split out
4794         real forward propagation code to ...
4795         (forward_propagate_comparison): ... this.
4796         (forward_propagate_into_gimple_cond): Remove looping.
4797         (forward_propagate_into_cond): Likewise.
4798         (simplify_not_neg_expr): Return whether we have done something.
4799         (simplify_gimple_switch): Likewise.
4800         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
4801         (ssa_forward_propagate_and_combine): ... this.  Re-structure
4802         to do a forward forward-propagation walk on BBs and a backward
4803         stmt combining walk on BBs.  Consistently re-scan changed statements.
4804         (pass_forwprop): Adjust.
4805
4806 2011-05-30  Ian Lance Taylor  <iant@google.com>
4807
4808         * godump.c (go_format_type): Correct length of name added to
4809         obstack for anonymous field.
4810
4811 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
4812
4813         PR target/49186
4814         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
4815         part of the second operand is 0.
4816
4817 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
4818
4819         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
4820         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
4821         to memory for !TARGET_MEMORY_MISMATCH_STALL.
4822         (*movdf_internal_rex64): Do not penalize F->r alternative.
4823         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
4824         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
4825         when optimizing function for size.  Do not move CONST_DOUBLEs
4826         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
4827         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
4828         SUBREGs.  Do not check for MEM_P operands in the insn condition,
4829         check for ANY_FP_REGNO_P instead.
4830         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
4831         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
4832         function for speed.
4833         * config/i386/i386.c (ix86_option_override_internal): Do not
4834         set TARGET_INTEGER_DFMODE_MOVES here.
4835
4836 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4837
4838         PR target/49168
4839         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
4840
4841 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
4842
4843         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
4844         DW_TAG_rvalue_reference_type even for
4845         -gdwarf-4 -fno-debug-types-section.
4846
4847 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4848
4849         PR tree-optimization/46728
4850         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
4851         (build_and_insert_binop): New.
4852         (gimple_expand_builtin_pow): Reorder args for
4853         build_and_insert_call; use build_and_insert_binop; add more
4854         optimizations for fractional exponents.
4855
4856 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
4857
4858         PR bootstrap/49190
4859
4860         Revert:
4861         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
4862
4863         * tree.h (struct tree_identifier): Inherit from tree_typed, not
4864         tree_common.
4865         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4866         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4867         TS_BASE instead of TS_COMMON.
4868         * varasm.c (assemble_name): Remove assert.
4869
4870 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
4871
4872         * config.gcc: Keep obselete list sorted.
4873
4874 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
4875             Eric Botcazou  <ebotcazou@adacore.com>
4876
4877         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
4878         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
4879         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
4880         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
4881         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
4882
4883 2011-05-30  Richard Guenther  <rguenther@suse.de>
4884
4885         * gimple.c (gimple_types_compatible_p_1): Compare record
4886         and union type members properly.
4887
4888 2011-05-30  Richard Guenther  <rguenther@suse.de>
4889
4890         PR tree-optimization/49210
4891         * ipa-split.c (split_function): Care for the case where the call
4892         result is not trivially convertible to the result holding variable.
4893
4894 2011-05-30  Richard Guenther  <rguenther@suse.de>
4895
4896         PR tree-optimization/49218
4897         * tree-vrp.c (adjust_range_with_scev): Properly check whether
4898         overflow occured.
4899
4900 2011-05-30  Richard Guenther  <rguenther@suse.de>
4901
4902         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
4903         New function split out from ...
4904         (forward_propagate_into_gimple_cond): ... here.  Adjust.
4905         (forward_propagate_into_cond): Likewise.
4906         (forward_propagate_comparison): Also propagate into
4907         comparisons on assignment RHS.  Change return value to
4908         behave similar to forward_propagate_into_cond.
4909         (tree_ssa_forward_propagate_single_use_vars): Handle
4910         strict-overflow warnings properly for forward_propagate_comparison.
4911
4912 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4913
4914         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
4915         from plugin linker.
4916         * configure: Regenerate.
4917
4918 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
4919
4920         PR tree-optimization/49199
4921         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
4922         non-reduction operands are either defined in the loop or by induction.
4923
4924 2011-05-29  Xinliang David Li  <davidxl@google.com>
4925
4926         * opts-global.c (handle_common_deferred_options): Handle new options.
4927         * passes.c (register_one_dump_file): Call register_pass_name.
4928         (execute_one_pass): Check explicit enable/disable flag.
4929         (passr_hash): New function.
4930         (passr_eq): Ditto.
4931         (register_pass_name): Ditto.
4932         (get_pass_by_name): Ditto.
4933         (pass_hash): Ditto.
4934         (pass_eq): Ditto.
4935         (enable_pass): Ditto.
4936         (disable_pass): Ditto.
4937         (is_pass_explicitly_enabled_or_disabled): Ditto.
4938
4939 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
4940
4941         * config/i386/i386.md (*movoi_internal_avx): Use
4942         standard_sse_constant_opcode for alternative 0.
4943         (*movti_internal_sse): Ditto.
4944         (*movti_internal_rex64): Use standard_sse_constant_opcode for
4945         alternative 2.
4946         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
4947         sselog1 type moves.
4948         (*movsi_internal): Ditto.
4949         (*movdi_internal): Ditto.  Add ssecvt type moves.
4950
4951 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
4952
4953         PR target/48830
4954         * rtlanal.c (simplify_subreg_regno): Adjust comment.
4955
4956 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
4957
4958         PR rtl-optimization/49095
4959         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
4960         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
4961
4962 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
4963
4964         PR target/43995
4965         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
4966         recurse_p argument.  Only follow register copies if it is set,
4967         and prevent mips_find_pic_call_symbol from recursing.
4968         (mips_find_pic_call_symbol): Add a recurse_p argument.
4969         Pass it to mips_pic_call_symbol_from_set.
4970         (mips_annotate_pic_calls): Update accordingly.
4971
4972 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
4973
4974         * emit-rtl.c (try_split): Use a loop to search for
4975         NOTE_INSN_CALL_ARG_LOCATIONs.
4976
4977 2011-05-29  Richard Guenther  <rguenther@suse.de>
4978
4979         PR tree-optimization/49217
4980         * ipa-pure-const.c (propagate_pure_const): Fix typos.
4981
4982 2011-05-28  Jan Hubicka  <jh@suse.cz>
4983
4984         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
4985         length.
4986         (string_slot_free): Remove
4987         (create_output_block): Initialize obstack.
4988         (destroy_output_block): Free obstack.
4989         (lto_string_index): Add PERSISTENT parameter; do not duplicate
4990         the string unless it needs to be added into the hash.
4991         (lto_output_string_with_length): Add persistent attribute;
4992         handle NULL strings.
4993         (lto_output_string): Add PERSISTENT parameter.
4994         (output_string_cst, output_identifier): Simplify.
4995         (lto_output_location_bitpack): Update.
4996         (lto_output_builtin_tree): Update.
4997         * lto-streamer.h (struct output_block): Add obstack.
4998         (lto_output_string, lto_output_string_with_length): Remove
4999         declarations; functions are static now.
5000
5001 2011-05-28  Jan Hubicka  <jh@suse.cz>
5002
5003         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
5004         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
5005         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
5006         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
5007         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
5008         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
5009         unpack_ts_decl_with_vis_value_fields,
5010         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
5011         lto_get_builtin_tree): Use enum and variable length i/o.
5012         * basic-block.h (profile_status_d): Add PROFILE_LAST.
5013         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
5014         New functions.
5015         (bp_pack_enum, bp_unpack_enum): New macros.
5016
5017 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
5018
5019         * genrecog.c: Remove redundant forward declarations.
5020
5021 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
5022
5023         * config.gcc: Deprecate mips*-*-openbsd*.
5024
5025 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
5026
5027         PR bootstrap/49195
5028         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
5029         for match_op_dup.
5030
5031 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
5032
5033         PR middle-end/48981
5034         * gengtype.c (vec_prefix_type): New function.
5035         (note_def_vec): Use vec_prefix_type and change the length
5036         attribute to be based on the prefix.
5037         * vec.c: Include coretypes.h before vec.h.
5038         (struct vec_prefix): Remove.
5039         (vec_gc_p_reserve): Change the offsetof to sizeof.
5040         (vec_gc_p_reserve_exact): Likewise.
5041         (vec_heap_p_reserve): Likewise.
5042         (vec_heap_p_reserve_exact): Likewise.
5043         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
5044         (vec_stack_p_reserve): Change the offsetof to sizeof.
5045         (vec_stack_p_reserve_exact): Likewise.
5046         * vec.h (struct vec_prefix): New struct definition.
5047         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
5048         (VEC_T_GTY(T,B)): Likewise.
5049         (DEF_VEC_FUNC_P(T)): Use prefix field.
5050         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
5051         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
5052
5053 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5054
5055         PR tree-optimization/46728
5056         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
5057         (powi_as_mults): Add gimple_set_location.
5058         (build_and_insert_call): New.
5059         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
5060         0.5, 0.25, 0.75, 1./3., or 1./6.
5061
5062 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
5063
5064         * doc/contrib.texi: Update copyright years.
5065         (Contributors): Add Zdenek Sojka.
5066
5067 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
5068
5069         * c-decl.c (c_push_function_context): Copy the current statement
5070         list stack.
5071         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
5072         (finish_struct): Call building_stmt_list_p instead of checking
5073         cur_stmt_list.
5074         * c-parser.c (c_parser_postfix_expression): Likewise.
5075         * c-typeck.c (c_end_compound_stmt): Likewise.
5076         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
5077         * tree-iterator.c (stmt_list_cache): Change to a VEC.
5078         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
5079         (free_stmt_list): Likewise.
5080         * tree.h (struct tree_statement_list): Include typed_tree instead
5081         of tree_common.
5082         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
5083         as TS_TYPED instead of TS_COMMON.
5084
5085 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5086             Uros Bizjak  <ubizjak@gmail.com>
5087
5088         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
5089         (HAVE_AS_IX86_TLSGDPTL): Define.
5090         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
5091         (HAVE_AS_IX86_TLSLDMPLT): Define.
5092         * configure: Regenerate.
5093         * config.in: Regenerate.
5094         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
5095         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
5096         TARGET_SUN_TLS, use @tlsgdplt or @plt.
5097         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
5098         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
5099         @tlsldmplt or @plt.
5100         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
5101
5102 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
5103
5104         * sched-int.h (struct _haifa_deps_insn_data): New members cond
5105         and reverse_cond.
5106         (INSN_COND, INSN_REVERSE_COND): New macros.
5107         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
5108         once.
5109         (sched_get_condition_with_rev): Cache the results, and look them up
5110         if possible.
5111         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
5112         are clobbered by the current insn.
5113         * target.def (exposed_pipline): New sched data hook.
5114         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
5115         * doc/tm.texi: Regenerate.
5116
5117 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5118
5119         PR tree-optimization/49170
5120         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
5121         sincos or cexp.
5122
5123 2011-05-27  Richard Guenther  <rguenther@suse.de>
5124
5125         PR middle-end/49189
5126         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
5127         of comparisons.
5128
5129 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
5130
5131         * haifa-sched.c (sched_scan_info): Remove.
5132         (schedule_block): Call sched_extend_luids rather than sched_init_luids
5133         with NULL args.
5134         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
5135         Remove functions.
5136         (sched_scan): Remove.
5137         (sched_extend_luids): Renamed from luids_extend_insn and no longer
5138         static.  All callers changed.
5139         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
5140         static.  All callers changed.
5141         (sched_init_luids): Remove all arguments except the first.  All
5142         callers changed.  Don't use sched_scan.
5143         (haifa_init_h_i_d): Likewise.
5144         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
5145         manually rather than using sched_init_luids.  Likewise with
5146         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
5147         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
5148         rather than sched_init_luids with NULL args.
5149         * sel-sched-ir.c (new_insns): Remove variable.
5150         (sched_scan): New static function, previously in haifa-sched.c.  Remove
5151         all arguments but the first two; all callers changed.
5152         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
5153         rather than sched_init_luids.
5154         (sel_init_bbs): Remove second argument.  All callers changed.
5155         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
5156         with NULL arguments.
5157         (create_insn_rtx_from_pattern): Likewise.
5158         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
5159         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
5160         (sched_init_insn_luid, sched_extend_luids): Declare.
5161         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
5162         declarations.
5163
5164 2011-05-27  Richard Guenther  <rguenther@suse.de>
5165
5166         PR middle-end/49177
5167         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
5168         A CMP B ? (T) true : (T) false for non-integral types T again.
5169
5170 2011-05-27  Jan Hubicka  <jh@suse.cz>
5171
5172         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
5173         so 0 means NULL string.
5174         (lto_output_string_with_length): ... here.
5175         (lto_output_string, output_string_cst, output_identifier): Update
5176         handling of NULL strings.
5177         (lto_output_location_bitpack): New function.
5178         (lto_output_location): Use it.
5179         (lto_output_tree_ref): Use output_record_start.
5180         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
5181         len values.
5182         * lto-streamer-in.c (string_for_index): Break out from ...; offset
5183         values by 1.
5184         (input_string_internal): ... here;
5185         (input_string_cst, input_identifier, lto_input_string): Update handling
5186         of NULL strings.
5187         (lto_input_location_bitpack): New function
5188         (lto_input_location): Use it.
5189         (unpack_ts_type_common_value_fields): Pack align & alias in var len
5190         values.
5191         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
5192         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
5193         (bp_pack_value): Sanity check the value range.
5194         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
5195         New functions.
5196         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
5197         New functions.
5198
5199 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
5200
5201         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
5202         call_arg_location instructions down the floor.
5203
5204 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
5205
5206         PR rtl-optimization/49154
5207         * ira.c (setup_pressure_classes): Process class without sublcasses
5208         as a candidate for pressure classes.
5209
5210 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
5211
5212         PR rtl-optimization/48575
5213         * genrecog.c (position_type): New enum.
5214         (position): New structure.
5215         (decision): Use position structure instead of a string.
5216         (root_pos, peep2_insn_pos_list): New variables.
5217         (next_position, compare_positions): New functions.
5218         (new_decision): Use position structures instead of strings.
5219         (maybe_both_true): Likewise.
5220         (change_state): Likewise.
5221         (write_tree): Likewise.
5222         (make_insn_sequence): Likewise.
5223
5224 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
5225
5226         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
5227         TS_BASE instead of TS_COMMON.
5228         (find_decls_types_r): Check for TS_TYPED structure before looking at
5229         TREE_TYPE.
5230         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
5231         Add chain field.
5232         (BLOCK_CHAIN): Use new chain field.
5233
5234 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
5235
5236         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
5237         moves expensive on Power7 also.
5238
5239 2011-05-26  Richard Guenther  <rguenther@suse.de>
5240
5241         * fold-const.c (fold_unary_loc): Remove bogus code.
5242
5243 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
5244
5245         * tree.h (struct tree_identifier): Inherit from tree_typed, not
5246         tree_common.
5247         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
5248         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
5249         TS_BASE instead of TS_COMMON.
5250         * varasm.c (assemble_name): Remove assert.
5251
5252 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
5253
5254         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
5255         substituted first.
5256         * libgcc-std.ver: Delete file.
5257
5258 2011-05-26  Richard Guenther  <rguenther@suse.de>
5259
5260         PR tree-optimization/48702
5261         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
5262         only when we know the base address is within bounds.
5263         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
5264         assume the base address of TARGET_MEM_REFs is in bounds.
5265
5266 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5267
5268         PR target/49099
5269         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
5270         declaration in TARGET_SOLARIS.
5271
5272 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
5273
5274         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
5275         The instruction is then expanded explicitly.
5276         (supported_compare): Callable instruction.
5277         (compare): Likewise.
5278
5279 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
5280
5281         PR c++/49165
5282         * gimplify.c (shortcut_cond_r): Don't special case
5283         COND_EXPRs if they have void type on one of their arms.
5284
5285 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
5286
5287         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
5288         to reduce duplication, and to achieve a slightly more logical order
5289         of operations.
5290
5291 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
5292
5293         PR tree-optimization/49161
5294         * tree-vrp.c (struct case_info): New type.
5295         (compare_case_labels): Sort case_info structs instead of
5296         trees, and not primarily by CASE_LABEL uids but by
5297         label_for_block indexes.
5298         (find_switch_asserts): Put case labels into struct case_info
5299         array instead of TREE_VEC, adjust sorting, compare label_for_block
5300         values instead of CASE_LABELs.
5301
5302 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5303
5304         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
5305         ("orndi3_neon"): Likewise.
5306         ("bic<mode>3_neon"): Likewise.
5307
5308 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
5309
5310         PR tree-optimization/49038
5311         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
5312         Ensure at least one epilogue iteration if required by data
5313         accesses with gaps.
5314         * tree-vectorizer.h (struct _loop_vec_info): Add new field
5315         to mark loops that require peeling for gaps.
5316         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
5317         (vect_get_known_peeling_cost): Take peeling for gaps into
5318         account.
5319         (vect_transform_loop): Generate epilogue if required by data
5320         access with gaps.
5321         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
5322         loop as requiring an epilogue if there are gaps in the end of
5323         the strided group.
5324
5325 2011-05-25  Ian Lance Taylor  <iant@google.com>
5326
5327         * godump.c (go_format_type): Output the first field with a usable
5328         Go type, if any.
5329
5330 2011-05-25  Ian Lance Taylor  <iant@google.com>
5331
5332         * godump.c (go_format_type): Check for invalid type names, pointer
5333         target types, and struct field types.
5334
5335 2011-05-25  Jason Merrill  <jason@redhat.com>
5336
5337         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
5338
5339 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
5340
5341         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
5342
5343 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5344
5345         * config/i386/i386.md (*movqi_extv_1)): Put back
5346         "register_operand" check in "type" calculation.
5347         (*movqi_extzv_2): Likewise.
5348
5349 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5350
5351         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
5352
5353 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
5354
5355         PR bootstrap/49160
5356         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
5357         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
5358         __divxc3, __divtc3): Wrap definitions in #ifndef.
5359
5360 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5361
5362         PR target/49142
5363         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
5364         "register_operand" check and replace q_regs_operand with
5365         QIreg_operand in "type" calculation.
5366         (*movqi_extv_1): Likewise.
5367         (*movqi_extzv_2_rex64): Likewise.
5368         (*movqi_extzv_2): Likewise.
5369
5370         * config/i386/predicates.md (QIreg_operand): New.
5371
5372 2011-05-25  Richard Guenther  <rguenther@suse.de>
5373
5374         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
5375         type-based offset disambiguation, streamline MEM_REF and
5376         TARGET_MEM_REF handling.
5377
5378 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5379
5380         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
5381         (bdesc_special_args): Add pause intrinsic.
5382
5383         * config/i386/i386.md (UNSPEC_PAUSE): New.
5384         (pause): Likewise.
5385         (*pause): Likewise.
5386         * config/i386/ia32intrin.h (__pause): Likewise.
5387
5388         * doc/extend.texi (X86 Built-in Functions): Add documentation for
5389         pause intrinsic.
5390
5391 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5392
5393         PR tree-optimization/46728
5394         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
5395         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
5396
5397 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
5398
5399         * tree.h (struct tree_exp): Inherit from struct tree_typed.
5400         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
5401         instead of TS_COMMON.
5402
5403 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
5404
5405         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
5406         LIBGCC2_GNU_PREFIX is defined.
5407         (__N): New macro.
5408         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
5409         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
5410         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
5411         __clz_tab): Define using __N.
5412         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
5413         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
5414         * target.def (libfunc_gnu_prefix): New hook.
5415         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
5416         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
5417         * doc/tm.texi: Regenerate.
5418         * system.h (LIBGCC2_GNU_PREFIX): Poison.
5419         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
5420         account.
5421         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
5422         (init_optabs): Likewise for the bswap libfuncs.
5423         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
5424         and divide.
5425         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
5426         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
5427         * libgcc-std.ver: Remove.
5428         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
5429         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
5430         libgcc-std.ver.
5431         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
5432         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
5433         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
5434         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
5435         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
5436         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
5437         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
5438         * config/fixed-bit.h (FIXED_OP): Define differently depending on
5439         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
5440         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
5441
5442 2011-05-25  Jan Hubicka  <jh@suse.cz>
5443
5444         * lto-streamer-out.c (output_record_start): Use lto_output_enum
5445         (lto_output_tree): Use output_record_start.
5446         * lto-streamer-in.c (input_record_start): Use lto_input_enum
5447         (lto_get_pickled_tree): Use input_record_start.
5448         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
5449         (lto_value_range_error): New function.
5450         * lto-streamer.h (lto_value_range_error): Declare.
5451         (lto_output_int_in_range, lto_input_int_in_range): New functions.
5452         (lto_output_enum, lto_input_enum): New macros.
5453
5454 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
5455
5456         * common.opt (flag_stack_usage_info): New variable.
5457         (-Wstack-usage): New option.
5458         * doc/invoke.texi (Warning options): Document -Wstack-usage.
5459         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
5460         <OPT_fstack_usage>: Likewise.
5461         * toplev.c (output_stack_usage): Handle -Wstack-usage.
5462         * calls.c (expand_call): Test flag_stack_usage_info variable instead
5463         of flag_stack_usage.
5464         (emit_library_call_value_1): Likewise.
5465         * explow.c (allocate_dynamic_stack_space): Likewise.
5466         * function.c (instantiate_virtual_regs ): Likewise.
5467         (prepare_function_start): Likewise.
5468         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
5469         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
5470         * config/arm/arm.c (arm_expand_prologue): Likewise.
5471         (thumb1_expand_prologue): Likewise.
5472         * config/avr/avr.c (expand_prologue): Likewise.
5473         * config/i386/i386.c (ix86_expand_prologue): Likewise.
5474         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
5475         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
5476         * config/mips/mips.c (mips_expand_prologue): Likewise.
5477         * config/pa/pa.c (hppa_expand_prologue): Likewise.
5478         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
5479         * config/s390/s390.c (s390_emit_prologue): Likewise.
5480         * config/sh/sh.c (sh_expand_prologue): Likewise.
5481         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
5482         * config/spu/spu.c (spu_expand_prologue): Likewise.
5483
5484 2011-05-25  Richard Guenther  <rguenther@suse.de>
5485
5486         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
5487         (gimple_canonical_types_compatible_p): Likewise.
5488
5489 2011-05-25  Jan Hubicka  <jh@suse.cz>
5490
5491         PR middle-end/49062
5492         * ipa.c (function_and_variable_visibility): Only add to same
5493         comdat group list if DECL_ONE_ONLY.
5494
5495 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
5496
5497         PR rtl-optimization/49014
5498         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
5499
5500 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
5501
5502         PR target/49128
5503         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
5504
5505 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
5506
5507         PR rtl-optimization/48757
5508         * ira-build.c (loop_with_eh_edge_p): Rename to
5509         loop_with_complex_edge_p, check edges on complexity, make function
5510         conditional.
5511         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
5512         conditional.
5513
5514 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
5515
5516         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
5517         force flag_ira_share_save_slots to 0.
5518
5519 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
5520
5521         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
5522         (vt_initialize): Set PROLOGUE_BB unconditionally.
5523         Add block comment about CFA_BASE_RTX machinery.
5524         Reset FP_CFA_OFFSET to -1 on all invalid paths.
5525         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
5526
5527 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
5528
5529         PR objc/48187
5530         * c-parser.c (c_parser_objc_class_instance_variables): More robust
5531         parsing of syntax error in ObjC instance variable lists.  In
5532         particular, avoid an infinite loop if there is a stray ']'.
5533         Updated error message.
5534
5535 2011-05-24  Ian Lance Taylor  <iant@google.com>
5536
5537         * godump.c (go_define): Don't accept a string immediately after
5538         another operand.
5539
5540 2011-05-24  Ian Lance Taylor  <iant@google.com>
5541
5542         * godump.c (struct godump_container): Add invalid_hash field.
5543         (go_format_type): Return false if type is found in invalid_hash.
5544         (go_output_typedef): Add invalid type to invalid_hash.
5545         (go_finish): Create and delete invalid_hash.
5546
5547 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5548
5549         PR tree-optimization/46728
5550         * tree-ssa-math-opts.c (powi_table): New.
5551         (powi_lookup_cost): New.
5552         (powi_cost): New.
5553         (powi_as_mults_1): New.
5554         (powi_as_mults): New.
5555         (gimple_expand_builtin_powi): New.
5556         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
5557         (gate_cse_sincos): Remove sincos/cexp restriction.
5558
5559 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5560
5561         PR target/3746
5562         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
5563         mips-tdump native.
5564         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
5565         * mips-tdump.c: Likewise.
5566
5567 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5568
5569         PR target/49128
5570         * config/i386/driver-i386.c (host_detect_local_cpu): Always
5571         add -mno-XXX.  Handle FMA.
5572
5573 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
5574
5575         PR rtl-optimization/48633
5576         * ira-build.c (loop_with_eh_edge_p): New function.
5577         (mark_loops_for_removal): Use it.
5578
5579 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
5580
5581         PR rtl-optimization/48971
5582         * ira.c (setup_pressure_classes): Don't check register move cost
5583         for classes with one registers.  Don't add pressure class if there
5584         is a pressure class with the same available hard registers.
5585         Check contains_reg_of_mode.  Fix a typo in collecting
5586         temp_hard_regset.  Ignore hard registers not belonging to a class.
5587
5588 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
5589
5590         PR target/49133
5591         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
5592
5593 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
5594             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5595
5596         PR gcov-profile/48845
5597         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
5598
5599 2011-05-24  Richard Guenther  <rguenther@suse.de>
5600
5601         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
5602         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
5603         (gimple_types_compatible_p_1): Adjust.
5604         (iterative_hash_canonical_type): Do not bother about complete vs.
5605         incomplete types.
5606         (gimple_canonical_types_compatible_p): Likewise.
5607
5608 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5609
5610         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
5611
5612 2011-05-24  Richard Guenther  <rguenther@suse.de>
5613
5614         PR bootstrap/49078
5615         * gimple.c (gimple_register_canonical_type): Revert
5616         previous change.
5617         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
5618         does not for a tree for the case where it matters.  Cache
5619         pointer-type alias-sets.
5620
5621 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
5622
5623         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
5624         (OBJS): Remove options.o, opts-common.o and prefix.o.
5625         (OBJS-libcommon-target): New.
5626         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
5627         (BACKEND): Include libcommon-target.a.
5628         (MOSTLYCLEANFILES): Include libcommon-target.a.
5629         (libcommon-target.a): New.
5630         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
5631         prefix.o.
5632
5633 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
5634
5635         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
5636         parts of output shared with the driver.
5637         * optc-gen.awk: Don't generate parts of output not shared with the
5638         driver.
5639         * opth-gen.awk: Remove GCC_DRIVER conditionals.
5640         * doc/options.texi (SourcerInclude): Mention options-save.c.
5641         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
5642         (OBJS): Add options-save.o.
5643         (options-save.c, options-save.o): New.
5644         (options.o): Update dependencies.
5645         (gcc-options.o): Remove.
5646         (mostlyclean): Remove options-save.c.
5647
5648 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
5649
5650         PR debug/49032
5651         * dbxout.c: Include cgraph.h.
5652         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
5653         and without value expr, return NULL if no varpool node exists for
5654         it or if it is not needed.
5655         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
5656
5657         PR c/49120
5658         * c-decl.c (start_decl): Convert expr to void_type_node.
5659
5660 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
5661
5662         PR rtl-optimization/48826
5663         * emit-rtl.c (try_split): When splitting a call that is followed
5664         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
5665
5666 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
5667
5668         * cfgexpand.c (expand_debug_expr): For unused non-addressable
5669         parameters passed in memory prefer using DECL_INCOMING_RTL over
5670         the pseudos it will be copied into.
5671
5672 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5673
5674         PR target/47315
5675         * config/i386/i386.c (ix86_option_override_internal): Save the
5676         initial options after checking vzeroupper.
5677
5678 2011-05-23  David Li  <davidxl@google.com>
5679
5680         PR tree-optimization/48988
5681         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
5682         Initialize has_valid_pred for each pred chain.
5683
5684 2011-05-23  Richard Guenther  <rguenther@suse.de>
5685
5686         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
5687         (iterative_hash_gimple_type): Always hash type names.
5688
5689 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
5690
5691         * c-typeck.c (build_function_call_vec): Tweak call to
5692         check_function_arguments.
5693
5694 2011-05-23  Richard Guenther  <rguenther@suse.de>
5695
5696         PR tree-optimization/49115
5697         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
5698         is not necessarily carried out, do not claim it kills the ref.
5699         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
5700
5701 2011-05-23  Richard Guenther  <rguenther@suse.de>
5702
5703         PR middle-end/15419
5704         * builtins.c (fold_builtin_memory_op): Be less restrictive about
5705         what pointer types we accept for folding.
5706
5707 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5708
5709         * gthr-gnat.c: Remove.
5710         * gthr-gnat.h: Remove.
5711         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
5712         * config/t-freebsd (LIB2ADDEH): Likewise.
5713         * config/t-linux (LIB2ADDEH): Likewise.
5714         * config/t-sol2 (LIB2ADDEH): Likewise.
5715         * config/ia64/t-vms (LIB2ADDEH): Likewise.
5716         * configure.ac (target_thread_file): Remove gnat handling.
5717         * configure: Regenerate.
5718         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
5719
5720 2011-05-23  Tristan Gingold  <gingold@adacore.com>
5721             Eric Botcazou  <ebotcazou@adacore.com>
5722
5723         * gcov.c (create_file_names): If no object directory is specified,
5724         keep the directory of the file.
5725
5726 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5727
5728         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
5729         * configure: Regenerate.
5730
5731 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
5732
5733         PR middle-end/48973
5734         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
5735         failed and the comparison has a single bit signed type, use
5736         constm1_rtx instead of const1_rtx for true value.
5737         (do_store_flag): If ops->type is single bit signed type, disable
5738         signel bit test optimization and pass -1 instead of 1 as last
5739         parameter to emit_store_flag_force.
5740
5741 2011-05-23  Tom de Vries  <tom@codesourcery.com>
5742
5743         PR target/45098
5744         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
5745         function.
5746         (infer_loop_bounds_from_undefined): Use new function.
5747
5748 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
5749
5750         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
5751         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
5752         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
5753         and -O0 otherwise.
5754         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
5755
5756 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
5757
5758         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
5759         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
5760         returns true.
5761
5762 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
5763
5764         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
5765
5766 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
5767
5768         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
5769         UNSPEC_MOVE_PIC pattern.
5770
5771 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
5772
5773         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
5774         (sparc-*-rtems*): Likewise.
5775         (sparc64-*-elf*): Likewise.
5776         (sparc64-*-rtems*): Likewise.
5777         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
5778         * config/sparc/t-crtin: New file.
5779         * config/sparc/t-sol2 (crti.o): Delete rule.
5780         (crtn.o): Likewise.
5781         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
5782         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
5783         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
5784         (ENDFILE_SPEC): Add crtn.o.
5785
5786 2011-05-22  Tom de Vries  <tom@codesourcery.com>
5787
5788         PR middle-end/48689
5789         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
5790         CODE_CONTAINS_STRUCT (TS_COMMON).
5791
5792 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
5793
5794         PR middle-end/49029
5795         * expmed.c (extract_fixed_bit_field): Test whether target can be used
5796         only after deciding which mode to use.
5797
5798 2011-05-22  Tom de Vries  <tom@codesourcery.com>
5799
5800         PR target/45098
5801         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
5802         for call to get_shiftadd_cost.
5803
5804 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
5805
5806         PR target/49104
5807         * config/i386/cpuid.h (bit_MMXEXT): New define.
5808
5809 2011-05-22  Nick Clifton  <nickc@redhat.com>
5810
5811         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
5812         initialisation of non-existant args[2] element.  Use args[] array
5813         not arg[] array to pass arguments to build_function_type_list.
5814
5815 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
5816
5817         PR tree-optimization/49087
5818         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
5819
5820 2011-05-21  Jason Merrill  <jason@redhat.com>
5821
5822         PR c++/49092
5823         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
5824         static storage duration.
5825
5826 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
5827
5828         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
5829         frame pointer.
5830
5831 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
5832
5833         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
5834         false if there are call-saved registers here...
5835         (sparc_can_use_return_insn_p): ...but here instead.
5836         (save_or_restore_regs): Fix thinko.
5837         (sparc_expand_prologue): Use current_function_is_leaf.
5838         (sparc_frame_pointer_required): Likewise.
5839
5840 2011-05-21  Nick Clifton  <nickc@redhat.com>
5841
5842         PR target/49098
5843         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
5844
5845 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
5846
5847         * gengtype.c (walk_type): Implemented "atomic" GTY option.
5848         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
5849
5850 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
5851
5852         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
5853         * optc-gen.awk: Move common code to opt-read.awk.
5854         * opth-gen.awk: Likewise.
5855         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
5856
5857 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
5858
5859         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
5860
5861 2011-05-20  Tom de Vries  <tom@codesourcery.com>
5862
5863         PR target/45098
5864         * tree-ssa-loop-ivopts.c: Include expmed.h.
5865         (get_shiftadd_cost): New function.
5866         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
5867
5868 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
5869
5870         PR bootstrap/49086
5871         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
5872         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
5873
5874 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
5875
5876         * Makefile.in: Update comment referring to $(OBJS-common).
5877
5878 2011-05-20  Ian Lance Taylor  <iant@google.com>
5879
5880         * godump.c (go_output_typedef): Put enum constants in the macro
5881         hash table to avoid duplicate Go const definitions.
5882
5883 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
5884
5885         * Makefile.in (LIBDEPS): Add libcommon.a.
5886         (LIBS): Likewise.
5887         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
5888         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
5889         pretty-print.o and version.o.
5890         (OBJS-libcommon): New.
5891         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
5892         (BACKEND): Add libcommon.a.
5893         (MOSTLYCLEANFILES): Likewise.
5894         (libcommon.a): New.
5895         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
5896         (cpp$(exeext)): Likewise.
5897         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
5898         pretty-print.o and input.o.
5899         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
5900         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
5901         (errors.o): Remove.
5902         (mips-tfile): Don't explicitly use version.o.
5903         (mips-tdump): Likewise.
5904         (gcov.o): Depend on $(DIAGNOSTIC_H).
5905         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
5906         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
5907         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
5908         * gcov-dump.c: Include intl.h and diagnostic.h.
5909         (main): Initialize diagnostics.
5910         * gcov.c: Include diagnostic.h.
5911         (fnotice): Remove.
5912         (main): Initialize diagnostics.
5913         * lto-wrapper.c: Include diagnostic.h.
5914         (main): Initialize diagnostics.
5915
5916 2011-05-20  Michael Matz  <matz@suse.de>
5917
5918         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
5919
5920 2011-05-20  Michael Matz  <matz@suse.de>
5921             Richard Guenther  <rguenther@suse.de>
5922
5923         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
5924         use lto_streamer_cache_append directly instead of returning a VEC.
5925         (preload_common_node): Remove.
5926         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
5927         track seen nodes.
5928         (lto_streamer_cache_create): Call lto_preload_common_nodes.
5929
5930 2011-05-20  Richard Guenther  <rguenther@suse.de>
5931
5932         PR tree-optimization/49079
5933         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
5934         MEM_REFs correctly for the trailing array access detection.
5935         Special case constants the same way as decls for overall size
5936         constraining.
5937
5938 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
5939
5940         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
5941         argument expansion.
5942
5943 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
5944
5945         PR tree-optimization/49073
5946         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
5947         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
5948         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
5949
5950 2011-05-20  Richard Guenther  <rguenther@suse.de>
5951
5952         PR middle-end/48849
5953         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
5954         of pointer types the same way the middle-end does.
5955
5956 2011-05-20  Richard Guenther  <rguenther@suse.de>
5957
5958         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
5959         or pointer-to chains.  Delay all fixup to uniquify_nodes.
5960
5961 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
5962
5963         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
5964         (fma4_fmaddsub): Likewise
5965
5966 2011-05-19  Jan Hubicka  <jh@suse.cz>
5967
5968         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
5969         (GIMPLE_TYPE_PAIR_SIZE): New macro.
5970         (type_pair_cache): New static var.
5971         (lookup_type_pair): Use fixed sized custom hash; make inline.
5972         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
5973         calls of lookup_type_pair.
5974         (print_gimple_types_stats): Remove cache stats.
5975         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
5976         and gtc_ob.
5977
5978 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
5979
5980         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
5981         when TARGET_RDRND is active.
5982         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
5983         Generate dummy SImode target register when target is NULL.
5984
5985 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
5986
5987         * config/arm/arm-fpus.def: New.
5988         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
5989         arm-fpus.def.
5990         * config/arm/arm-tables.opt: Regenerate.
5991         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
5992         (arm_option_override): Don't decode FPU name to string here.
5993         * config/arm/arm.opt (mfpu=): Use Enum.
5994         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
5995         Update dependencies.
5996
5997 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
5998
5999         * collect2.c: Include diagnostic.h.
6000         (fatal_perror, fatal, error, fancy_abort): Remove.
6001         (main): Set progname.  Call xmalloc_set_program_name and
6002         diagnostic_initialize.
6003         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
6004         scan_libraries, resolve_lib_name): Call fatal_error instead of
6005         fatal and fatal_perror.
6006         * collect2.h (error, fatal, fatal_perror): Don't declare.
6007         * tlink.c: Include diagnostic-core.h.
6008         (recompile_files): Call fatal_error instead of fatal_perror.
6009         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
6010         pretty-print.o and input.o.
6011         (collect2.o, tlink.o): Update dependencies.
6012
6013 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6014
6015         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
6016
6017 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6018
6019         PR target/40483
6020         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
6021         COMDAT group syntax, both SPARC and x86 variants.
6022         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
6023         * configure: Regenerate.
6024         * config/sol2.h (TARGET_SOLARIS): Define.
6025         (PUSHSECTION_FORMAT): Remove.
6026         (SECTION_NAME_FORMAT): Define.
6027         * config/sol2.c: Include hashtab.h.
6028         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
6029         expansion, using SECTION_NAME_FORMAT.
6030         (solaris_comdat_htab): New variable.
6031         (struct comdat_entry): Define.
6032         (comdat_hash): New function.
6033         (comdat_eq): New function.
6034         (solaris_elf_asm_comdat_section): New function.
6035         (solaris_define_comdat_signature): New function.
6036         (solaris_code_end): New function.
6037         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
6038         (solaris_code_end): Declare.
6039         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
6040         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
6041         solaris_code_end.
6042         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
6043         Remove ATTRIBUTE_UNUSED.
6044         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
6045         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
6046         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
6047         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
6048         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
6049         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
6050         (PUSHSECTION_FORMAT): Remove.
6051         (SECTION_NAME_FORMAT): Redefine.
6052
6053 2011-05-19  Kai Tietz  <ktietz@redhat.com>
6054
6055         * tree-cfg.c (verify_gimple_assign_binary): Barf on
6056         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
6057         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
6058
6059 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
6060             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6061
6062         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
6063
6064 2011-05-19  Richard Guenther  <rguenther@suse.de>
6065
6066         PR middle-end/48985
6067         * tree-object-size.c (addr_object_size): If the pointed-to
6068         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
6069
6070 2011-05-19  Richard Guenther  <rguenther@suse.de>
6071
6072         * gimple.c (gimple_types_compatible_p_1): Compare names of
6073         the types themselves.
6074         (iterative_hash_gimple_type): And hash them that way.
6075         (gimple_register_type_1): If we register a main variant properly
6076         initialize the leader to ourselves.
6077
6078 2011-05-19  Tom de Vries  <tom@codesourcery.com>
6079
6080         PR target/45098
6081         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
6082         get_loop_invariant_expr_id.
6083         (get_loop_invariant_expr_id): Use get_expr_id.
6084         (parm_decl_cost): New function.
6085         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
6086         Improve bound cost estimation.  Use different inv_expr_id for elim and
6087         express cases.
6088
6089 2011-05-19  Tom de Vries  <tom@codesourcery.com>
6090
6091         PR target/45098
6092         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
6093         cost_base.cost == 0.
6094
6095 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6096
6097         PR target/49002
6098         * config/i386/sse.md
6099         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
6100         load cast.
6101
6102 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
6103
6104         PR tree-optimization/49039
6105         * tree-vrp.c (extract_range_from_binary_expr): For
6106         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
6107         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
6108
6109 2011-05-18  Tom de Vries  <tom@codesourcery.com>
6110
6111         PR target/45098
6112         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
6113
6114 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
6115
6116         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
6117         (*tls_global_dynamic_64): Ditto.
6118         (*tls_local_dynamic_base_32_gnu): Ditto.
6119         (*tls_local_dynamic_base_64): Ditto.
6120         (tls_initial_exec_64_sun): Ditto.
6121
6122 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
6123
6124         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
6125         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
6126         bf592-none.
6127         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
6128         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
6129         * config/bfin/bfin.c (bfin_cpus): Add bf592.
6130         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
6131         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
6132         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
6133         * config/bfin/elf.h (LIB_SPEC): Add bf592.
6134
6135 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
6136
6137         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
6138         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
6139         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
6140         target_thread_pointer, arm_structure_size_boundary, struct
6141         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
6142         struct abi_name, arm_all_abis): Remove.
6143         (arm_option_override) Don't process most enumerated option values here.
6144         Don't process target_fpe_name here.  Work with integer not string for
6145         structure size boundary; use separate diagnostics for each case.
6146         * config/arm/arm.h (enum float_abi_type, enum
6147         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
6148         to arm-opts.h.
6149         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
6150         arm_structure_size_boundary): Remove.
6151         * config/arm/arm.opt (mabi=): Use Enum and Init.
6152         (arm_abi_type): New Enum and EnumValue entries.
6153         (mfloat-abi=): Use Enum and Init.
6154         (float_abi_type): New Enum and EnumValue entries.
6155         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
6156         (mfp16-format=): Use Enum and Init.
6157         (arm_fp16_format_type): New Enum and EnumValue entries.
6158         (mstructure-size-boundary=): Use UInteger and Init.
6159         (mtp=): Use Enum and Init.
6160         (arm_tp_type): New Enum and EnumValue entries.
6161
6162 2011-05-18  Richard Guenther  <rguenther@suse.de>
6163
6164         PR tree-optimization/49018
6165         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
6166         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
6167         gimple_has_side_effects.
6168
6169 2011-05-18  Richard Guenther  <rguenther@suse.de>
6170
6171         * gimple.c (gimple_register_type_1): New function, split out from ...
6172         (gimple_register_type): ... here.  Avoid infinite recursion.
6173
6174 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
6175
6176         PR tree-optimization/41881
6177         * tree-vectorizer.h (struct _loop_vec_info): Add new field
6178         reduction_chains along with a macro for its access.
6179         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
6180         (destroy_loop_vec_info): Free reduction chains.
6181         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
6182         (vect_is_slp_reduction): New function.
6183         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
6184         (vect_create_epilog_for_reduction): Support SLP reduction chains.
6185         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
6186         definition types for reduction chains.
6187         (vect_supported_load_permutation_p): Don't allow permutations for
6188         reduction chains.
6189         (vect_analyze_slp_instance): Support reduction chains.
6190         (vect_analyze_slp): Try to build SLP instance from reduction chains.
6191         (vect_get_constant_vectors):  Handle reduction chains.
6192         (vect_schedule_slp_instance): Mark the first statement of the
6193         reduction chain as reduction.
6194
6195 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
6196
6197         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
6198         names for group elements access.
6199         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
6200         reduction chains as well.  Remove data reference and interleaving
6201         related words from the fields names.
6202         * tree-vect-loop.c (vect_transform_loop): Use new names for group
6203         elements access.
6204         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
6205         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
6206         vect_update_interleaving_chain, vect_same_range_drs,
6207         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
6208         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
6209         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
6210         vect_analyze_group_access, vect_analyze_data_ref_access,
6211         vect_create_data_ref_ptr, vect_transform_strided_load,
6212         vect_record_strided_load_vectors): Likewise.
6213         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
6214         vect_model_load_cost, vectorizable_store, vectorizable_load,
6215         vect_remove_stores, new_stmt_vec_info): Likewise.
6216         * tree-vect-slp.c (vect_build_slp_tree,
6217         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
6218
6219 2011-05-18  Richard Guenther  <rguenther@suse.de>
6220
6221         PR middle-end/48989
6222         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
6223         operand verification.
6224         (verify_gimple_assign_binary): Likewise.
6225         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
6226         to non-1-precision BOOLEAN_TYPEs.
6227
6228 2011-05-18  Tom de Vries  <tom@codesourcery.com>
6229
6230         PR target/45098
6231         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
6232
6233 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
6234
6235         PR tree-optimization/49000
6236         * tree-ssa.c (execute_update_addresses_taken): Call
6237         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
6238         be rewritten and decl has been marked for renaming, reset
6239         the debug stmt.
6240
6241 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
6242
6243         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
6244         enum_opts_set when testing if attributes have set -mfpmath=.
6245
6246 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
6247
6248         * config/mips/mips.c (mips_handle_option): Remove unused variable.
6249
6250 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
6251
6252         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
6253         info->entry with 0
6254         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
6255         id.transform_lang_insert_block with NULL.
6256
6257 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
6258
6259         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
6260         (output_fp_compare): Change args 3 and 4 to bool.
6261         (ix86_expand_call): Change arg 6 to bool.
6262         (ix86_attr_length_immediate_default): Change arg 2 to bool.
6263         (ix86_attr_length_vex_default): Change arg 3 to bool.
6264         * config/i386/i386.md: Update all uses.
6265         * config/i386/i386.c: Ditto.
6266         (ix86_flags_dependent): Change return type to bool.
6267
6268 2011-05-17  Richard Guenther  <rguenther@suse.de>
6269
6270         * gimple.c (type_hash_pair_compare): Fix comparison.
6271
6272 2011-05-17  Richard Guenther  <rguenther@suse.de>
6273
6274         * gimple.c (iterative_hash_gimple_type): Simplify singleton
6275         case some more, fix final hash value of the non-singleton case.
6276
6277 2011-05-17  Richard Guenther  <rguenther@suse.de>
6278
6279         PR bootstrap/49013
6280         Revert
6281         2011-05-16  Richard Guenther  <rguenther@suse.de>
6282
6283         * gimple.c (gimple_types_compatible_p_1): Use names of the
6284         type itself, not its main variant.
6285         (iterative_hash_gimple_type): Likewise.
6286
6287 2011-05-17  Richard Guenther  <rguenther@suse.de>
6288
6289         * gimple.c (gimple_register_canonical_type): Use the main-variant
6290         leader for computing the canonical type.
6291
6292 2011-05-17  Nick Clifton  <nickc@redhat.com>
6293
6294         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
6295         moves.
6296
6297         * config/rx/rx.md: Add peephole to remove redundant extensions
6298         after loads.
6299         (bitset_in_memory): Use rx_restricted_mem_operand.
6300         (bitinvert_in_memory): Likewise.
6301         (bitclr_in_memory): Likewise.
6302
6303 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
6304             Nick Clifton  <nickc@redhat.com>
6305
6306         * config/rx/rx.md: Add peepholes to match a register move followed
6307         by a comparison of the moved register.  Replace these with an
6308         addition of zero that does both actions in one instruction.
6309
6310 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
6311
6312         PR target/48986
6313         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
6314         predicate to allow CONST_INT.
6315         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
6316
6317 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
6318
6319         * opts-common.c (opt_enum_arg_to_value): New.
6320         * opts.h (opt_enum_arg_to_value): Declare.
6321         * config/i386/i386.opt (fpmath): Remove.
6322         (mfpmath=): Use Enum, Init and Save.
6323         (fpmath_unit): New Enum and EnumValue entries.
6324         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
6325         name for function fpmath state.
6326         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
6327         * config/i386/i386.c: Include diagnostic.h.
6328         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
6329         (ix86_target_string): Take enum fpmath_unit value instead of string.
6330         (ix86_debug_options): Update call to ix86_target_string.
6331         (ix86_option_override_internal): Don't process fpmath strings here.
6332         (x86_function_specific_save, ix86_function_specific_restore):
6333         Don't handle fpmath state specially.
6334         (ix86_function_specific_print): Pass fpmath state to
6335         ix86_target_string instead of printing in this function.
6336         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
6337         Handle enum attributes.
6338         (IX86_ATTR_ENUM, ix86_opt_enum): New.
6339         (ix86_valid_target_attribute_tree): Update option_strings
6340         handling.  Handle fpmath as enum option.
6341         (ix86_can_inline_p): Update field names for function fpmath state.
6342         (ix86_expand_builtin): Update call to ix86_target_string.
6343         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
6344         (ix86_fpmath): Remove.
6345         * config/i386/t-i386 (i386.o): Update dependencies.
6346
6347 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
6348
6349         PR preprocessor/48677
6350         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
6351         from decoded_options[0], not from itself.
6352
6353 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
6354
6355         * config/i386/constraints.md (z): New constraint.
6356         * config/i386/i386.c (c): New mode attribute.
6357         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
6358         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
6359         constraint for operand 0.
6360         (*call_vzeroupper): Ditto.
6361         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
6362         (*call_rex64_ms_sysv_vzeroupper): Ditto.
6363         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
6364         Use "lzm" constraint for operand 0.
6365         (*call_pop_vzeroupper): Ditto.
6366         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
6367         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
6368         constraint for operand 0.
6369         (*sibcall_vzeroupper): Ditto.
6370         (*sibcall_rex64_ms_sysv): Ditto.
6371         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
6372         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
6373         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
6374         (*sibcall_pop_vzeroupper): Ditto.
6375         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
6376         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
6377         mode iterator.  Use "<c>zm" constraint for operand 1.
6378         (*call_value_vzeroupper): Ditto.
6379         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
6380         for operand 1.
6381         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
6382         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
6383         *call_value_pop_1.  Use "lzm" constraint for operand 1.
6384         (*call_value_pop_vzeroupper): Ditto.
6385         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
6386         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
6387         mode iterator.  Use "Uz" constraint for operand 1.
6388         (*sibcall_value_vzeroupper): Ditto.
6389         (*sibcall_value_rex64_ms_sysv): Ditto.
6390         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
6391         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
6392         constraint for operand 1.
6393         (*sibcall_value_pop_vzeroupper): Ditto.
6394         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
6395         and "z" constraint for operand 2.
6396         (*tls_global_dynamic_32_gnu): Ditto.
6397         (*tls_local_dynamic_base_32_gnu): Ditto.
6398         (*tls_local_dynamic_base_64): Ditto.
6399         (*tls_local_dynamic_32_once): Ditto.
6400         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
6401         Update all callers.
6402         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
6403
6404 2011-05-16  Richard Guenther  <rguenther@suse.de>
6405
6406         * gimple.c (gimple_types_compatible_p_1): Use names of the
6407         type itself, not its main variant.
6408         (iterative_hash_gimple_type): Likewise.
6409
6410 2011-05-16  Richard Guenther  <rguenther@suse.de>
6411
6412         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
6413         always visit pointer target and function result and argument types.
6414
6415 2011-05-16  Jason Merrill  <jason@redhat.com>
6416
6417         PR c++/48999
6418         * tree-inline.c (copy_statement_list): Put back recursion.
6419
6420 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
6421
6422         PR target/27663
6423         PR target/41076
6424         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
6425         * config/avr/avr.md ("*ior<mode>qi.byte0",
6426         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
6427
6428 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
6429
6430         PR target/45099
6431         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
6432         register is needed for a function argument.
6433
6434 2011-05-16  Richard Guenther  <rguenther@suse.de>
6435
6436         * gimple.c (struct type_hash_pair): New type.
6437         (type_hash_pair_compare): New function.
6438         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
6439
6440 2011-05-16  Revital Eres  <revital.eres@linaro.org>
6441
6442         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
6443
6444 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
6445
6446         * config/i386/i386.md (floating point move splitters): Fix
6447         usage of standard_80387_constant_p.
6448         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
6449
6450 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
6451
6452         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
6453
6454 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
6455
6456         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
6457         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
6458         (tree_ssa_lim_finalize): Likewise.
6459
6460 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
6461
6462         * config/i386/constraint.md (Yd, Yx): New register constraints.
6463         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
6464         Yd conditional register constraint.
6465         (*movtf_internal): Use standard_sse_constant_opcode.
6466         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
6467         Yx conditional register constraint.
6468         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
6469         Yd conditional register constraint.  Use standard_sse_constant_p to
6470         check for valid SSE constants and call standard_sse_constant_opcode to
6471         output SSE insn.
6472         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
6473         constants and call standard_sse_constant_opcode to output SSE insn.
6474         * config/i386/i386.c (ix86_option_ovverride_internal): Set
6475         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
6476         optimize_size is set.
6477         (standard_sse_constant_opcode): Output conditional AVX insn templates.
6478
6479 2011-05-14  Tobias Burnus  <burnus@net-b.de>
6480
6481         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
6482
6483 2011-05-13  Martin Jambor  <mjambor@suse.cz>
6484
6485         * ipa-prop.c (ipa_cst_from_jfunc): New function.
6486         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
6487         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
6488         (evaluate_conditions_for_ipcp_clone): Removed.
6489         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
6490         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
6491         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
6492
6493 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
6494
6495         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
6496         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
6497         lieu of MAY_HAVE_DEBUG_STMTS.
6498         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
6499         debug statements if !MAY_HAVE_DEBUG_STMTS.
6500
6501 2011-05-13  Martin Thuresson  <martint@google.com>
6502
6503         PR gcov-profile/47793
6504         * libgcov.c (gcov_exit): Support relative profile paths.
6505         * doc/invoke.texi (-fprofile-dir): Update for above change.
6506
6507 2011-05-13  Richard Guenther  <rguenther@suse.de>
6508
6509         * gimple.c (gimple_canonical_types_compatible_p): Do not use
6510         type-pair caching, do not compare hashes.
6511
6512 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
6513
6514         PR middle-end/48965
6515         * tree-cfg.c (edge_to_cases_cleanup): Return true.
6516         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
6517
6518 2011-05-13  Kai Tietz  <ktietz@redhat.com>
6519
6520         * gimplify.c (gimplify_expr): Make sure operand is boolified.
6521         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
6522         compatible type for TRUTH_NOT_EXPR.
6523
6524 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
6525
6526         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
6527         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
6528         can_create_pseudo_p ().
6529
6530 2011-05-13  Richard Guenther  <rguenther@suse.de>
6531
6532         PR lto/48978
6533         * gimple.c (iterative_hash_gimple_type): Revert change in
6534         pointer target and function result and argument hashing.
6535
6536 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
6537
6538         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
6539         (*movxf_internal_nointeger): Ditto.
6540         (*movdf_internal_rex64): Ditto.
6541         (*movdf_internal): Ditto.
6542         (*movdf_internal_nointeger): Ditto.
6543         (*movsf_internal): Ditto.
6544         (sincos splitters): Use can_create_pseudo ().
6545
6546 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
6547
6548         * config/i386/i386-opts.h: New.
6549         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
6550         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
6551         ix86_section_threshold): Remove.
6552         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
6553         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
6554         OPT_mbranch_cost_.
6555         (ix86_option_override_internal): Don't decode strings for options
6556         other than -march=, -mtune= and -mfpmath=.  Don't allow for
6557         __attribute__ uses in remaining diagnostics for options with
6558         string arguments.  Don't check for integer arguments being negative.
6559         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
6560         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
6561         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
6562         ix86_branch_cost, ix86_section_threshold): Remove.
6563         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
6564         HeaderInclude.
6565         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
6566         but not Var.
6567         (masm=): Use Enum and Init.
6568         (asm_dialect): New Enum and EnumValue entries.
6569         (mbranch-cost=): Use UInteger.
6570         (mlarge-data-threshold=): Use UInteger and Init.
6571         (mcmodel=): Use Enum and Init.
6572         (cmodel): New Enum and EnumValue entries.
6573         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
6574         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
6575         mregparm=): Use UInteger.
6576         (mstringop-strategy=): Use Enum and Init.
6577         (stringop_alg): New Enum and EnumValue entries.
6578         (mtls-dialect=): Use Enum and Init.
6579         (tls_dialect): New Enum and EnumValue entries.
6580         (mabi=): Use Enum and Init.
6581         (calling_abi): New Enum and EnumValue entries.
6582         (mveclibabi=): Use Enum and Init.
6583         (ix86_veclibabi): New Enum and EnumValue entries.
6584
6585 2011-05-13  Nick Clifton  <nickc@redhat.com>
6586
6587         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
6588         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
6589
6590 2011-05-13  Kai Tietz  <ktietz@redhat.com>
6591
6592         PR middle-end/48984
6593         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
6594         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
6595         (gimple_boolify): Check for cast for boolean_type_node instead for
6596         BOOLEAN_TYPE.
6597
6598 2011-05-13  Richard Guenther  <rguenther@suse.de>
6599
6600         PR tree-optimization/48172
6601         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
6602         multiplying by number of iterations for equal step.
6603         (vect_create_cond_for_alias_checks): Likewise.
6604
6605 2011-05-13  Andreas Schwab  <schwab@redhat.com>
6606
6607         * configure.ac: Use AS_HELP_STRING throughout.
6608         * configure: Regenerate.
6609
6610 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
6611
6612         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
6613         (ix86_emit_restore_regs_using_mov): Likewise.
6614         (ix86_emit_restore_sse_regs_using_mov): Likewise.
6615
6616 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
6617
6618         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
6619         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
6620         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
6621         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
6622         RTX_OK_FOR_OLO10_P): ...here.
6623         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
6624         SYMBOLIC_CONST.
6625
6626 2011-05-12  Kai Tietz  <ktietz@redhat.com>
6627
6628         * gimplify.c (gimple_boolify): Re-boolify expression
6629         arguments even if expression type is of kind BOOLEAN_TYPE.
6630         (gimplify_boolean_expr): Removed.
6631         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
6632         and XOR. Additional take care that we keep expression's type.
6633         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
6634         of TRUTH_AND|OR|XOR_EXPR.
6635
6636 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
6637
6638         PR tree-optimization/48975
6639         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
6640         on all bbs here and free and clear ifc_bbs at the end.
6641
6642 2011-05-12  Richard Guenther  <rguenther@suse.de>
6643
6644         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
6645         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
6646         until after simple checks.
6647         (gimple_types_compatible_p): Likewise.
6648         (iterative_hash_gimple_type): Always hash pointer targets
6649         and function return and argument types.
6650         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
6651         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
6652         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
6653         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
6654         completely in the simple compare section.
6655         (gimple_register_canonical_type): Query the cache again after
6656         registering.
6657
6658 2011-05-12  Richard Guenther  <rguenther@suse.de>
6659
6660         PR tree-optimization/48172
6661         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
6662         the number of iterations from the segment size calculation.
6663         (vect_create_cond_for_alias_checks): Adjust.
6664
6665 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
6666
6667         PR debug/48967
6668         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
6669         if validate_subreg fails.
6670
6671 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
6672
6673         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
6674         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
6675         early.
6676
6677 2011-05-12  DJ Delorie  <dj@redhat.com>
6678
6679         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
6680         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
6681         created builtin into rx_builtins array.
6682         (rx_builtin_decl): New function.
6683         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
6684
6685 2011-05-12  DJ Delorie  <dj@redhat.com>
6686             Nick Clifton  <nickc@redhat.com>
6687
6688         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
6689         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
6690         (rx_is_legitimate_address): Add pre-decrement and post-increment
6691         addressing in HImode and QImode.  Fix test for out of range
6692         REG+INT addressing.
6693         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
6694         (rx_align_for_label): Test label before extracting its usage count.
6695         (rx_adjust_insn_lengths): Fix selection of insn codes.
6696         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
6697
6698 2011-05-11  Jason Merrill  <jason@redhat.com>
6699
6700         * tree.c (type_hash_canon): Use struct tree_type_non_common.
6701
6702 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
6703
6704         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
6705         reindent the subsequent block.
6706
6707 2011-05-11  Satoru Takabayashi  <satorux@google.com>
6708             Paul Pluzhnikov  <ppluzhnikov@google.com>
6709
6710         * doc/install.texi (Configuration): Document --with-linker-hash-style.
6711         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
6712         * config.in: Add LINKER_HASH_STYLE.
6713         * configure.ac: Add --with-linker-hash-style.
6714         * configure: Regenerate.
6715
6716 2011-05-11  Richard Guenther  <rguenther@suse.de>
6717
6718         PR middle-end/48964
6719         * gimple.c (iterative_hash_canonical_type): Fix typo.
6720
6721 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
6722
6723         * config/i386/i386.c (legitimize_tls_address)
6724         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
6725         expanders directly for TARGET_GNU2_TLS.  Determine pic and
6726         __tls_get_addr symbol reference here.  Update call to
6727         gen_tls_global_dynamic_{32,64} for added arguments.
6728         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
6729         expanders directly for TARGET_GNU2_TLS.  Determine
6730         __tls_get_addr symbol reference here.  Update call to
6731         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
6732         unique UNSPEC REG_EQUIV to libcall block.
6733         (ix86_tls_get_addr): Declare static.
6734         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
6735         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
6736         Do not determine pic and __tls_get_addr symbol reference here. Do not
6737         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
6738         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
6739         (tls_global_dynamic_64): Add operand 2.  Do not determine
6740         __tls_get_addr symbol reference here.  Do not call
6741         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
6742         (tls_local_dynamic_base64): Ditto for operand 1.
6743
6744 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
6745
6746         * function.c (expand_function_start): Initialize stack_check_probe_note
6747         only if the generic stack checking mechanism is used.
6748
6749 2011-05-11  Richard Guenther  <rguenther@suse.de>
6750
6751         PR tree-optimization/15256
6752         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
6753         (A & B) | C, combine (A op CST1) op CST2.
6754         (tree_ssa_forward_propagate_single_use_vars): Only bother to
6755         visit assigns that have uses.
6756
6757 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
6758
6759         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
6760         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
6761         (unpack_ts_type_common_value_fields): ...this.  Update comment.
6762         (unpack_value_fields): Adjust for renaming.
6763         (lto_input_ts_type_tree_pointers): Split into...
6764         (lto_input_ts_type_common_tree_pointer): ...this and...
6765         (lto_input_ts_type_non_common_tree_pointers): ...this.
6766         (lto_input_tree_pointers): Adjust for above split.
6767         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
6768         (pack_ts_type_common_value_fields): ...this.  Update comment.
6769         (lto_output_ts_type_tree_pointers): Split into...
6770         (lto_output_ts_type_common_tree_pointers): ...this and...
6771         (lto_output_ts_type_non_common_tree_pointers): ...this.
6772         (lto_output_tree_pointers): Adjust for above split.
6773         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
6774         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
6775         * stor-layout.c (vector_type_mode): Adjust location of mode field.
6776         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
6777         Define.
6778         (struct tree_type): Split into...
6779         (struct tree_type_common: ...this and...
6780         (struct tree_type_with_lang_specific): ...this and...
6781         (struct tree_type_non_common): ...this.  Adjust accessor macros
6782         accordingly.
6783         (TYPE_VALUES_RAW): Define.
6784         (union tree_node): Update for above changes.
6785         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
6786         TS_TYPE_NON_COMMON.
6787         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
6788         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
6789         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
6790         * treestructu.def (TS_TYPE): Remove.
6791         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
6792         Define.
6793
6794 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
6795
6796         PR debug/48159
6797         * tree-ssa.c (reset_debug_uses): New function.
6798         * tree-flow.h (reset_debug_uses): New prototype.
6799         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
6800         * tree-loop-distribution.c (generate_loops_for_partition): Call
6801         reset_debug_uses on the stmts that will be removed.  Keep around
6802         all debug stmts, don't count them as bits in partition bitmap.
6803         (generate_builtin): Don't count debug stmts or labels as bits in
6804         partition bitmap.
6805
6806 2011-05-11  Richard Guenther  <rguenther@suse.de>
6807
6808         * gimple.c (gimple_type_hash_1): Merge with ...
6809         (gimple_type_hash): ... this.
6810         (gtc_visit): Remove mode parameter and simplify accordingly.
6811         (gimple_types_compatible_p_1): Likewise.
6812         (gimple_types_compatible_p): Likewise.
6813         (iterative_hash_gimple_type): Likewise.
6814         (visit): Likewise.
6815         (gimple_type_eq): Adjust.
6816
6817 2011-05-11  Revital Eres  <revital.eres@linaro.org>
6818
6819         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
6820         enters the branch create an anti edge in the opposite direction
6821         to prevent the creation of reg-moves.
6822         * modulo-sched.c: Adjust comment to reflect the fact we are
6823         scheduling closing branch.
6824         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
6825         (stage_count): New field in struct partial_schedule.
6826         (calculate_stage_count): New function.
6827         (normalize_sched_times): Rename to reset_sched_times and handle
6828         incrementing the sched time of the nodes by a constant value
6829         passed as parameter.
6830         (duplicate_insns_of_cycles): Skip closing branch.
6831         (sms_schedule_by_order): Schedule closing branch.
6832         (ps_insn_find_column): Handle closing branch.
6833         (sms_schedule): Call reset_sched_times and adjust the code to
6834         support scheduling of the closing branch.
6835         (ps_insert_empty_row): Update calls to normalize_sched_times
6836         and rotate_partial_schedule functions.
6837
6838 2011-05-11  Richard Guenther  <rguenther@suse.de>
6839
6840         PR middle-end/48953
6841         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
6842
6843 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
6844
6845         * opts.c (finish_options): Move warning settings from process_options.
6846         * toplev.c (process_options): Move warning settings to finish_options.
6847
6848 2011-05-11  Richard Guenther  <rguenther@suse.de>
6849
6850         PR tree-optimization/18041
6851         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
6852         (simplify_bitwise_binary): ... this.  Handle operand conversions
6853         by applying them to the result instead.
6854         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
6855
6856 2011-05-11  Richard Guenther  <rguenther@suse.de>
6857
6858         * gimple.c (gimple_canonical_types_compatible_p): Split out
6859         from gimple_types_compatible_p and friends.  Do not recurse
6860         to pointed-to types.
6861         (gimple_canonical_type_eq): Use it.
6862         (iterative_hash_canonical_type): Split out from
6863         iterative_hash_gimple_type and friends.  Do not recurse
6864         to pointed-to types.
6865         (gimple_canonical_type_hash): Use it, allocate the hash here.
6866
6867 2011-05-11  Revital Eres  <revital.eres@linaro.org>
6868
6869         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
6870         recognizing doloop.
6871
6872 2011-05-11  Revital Eres  <revital.eres@linaro.org>
6873
6874         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
6875         instead of PREV_INSN.
6876
6877 2011-05-11  Revital Eres  <revital.eres@linaro.org>
6878
6879         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
6880         * loop-doloop.c (doloop_condition_get): Likewise.
6881         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
6882         (doloop_end): New.
6883         * config/arm/arm.md (*addsi3_compare0): Remove "*".
6884
6885 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
6886
6887         * tree.def (CASE_LABEL_EXPR): Add an operand.
6888         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
6889
6890 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
6891
6892         * c-decl.c (c_override_global_bindings_to_false): Remove.
6893         (global_bindings_p): Don't check
6894         c_override_global_bindings_to_false.
6895         * c-tree.h (c_override_global_bindings_to_false): Remove.
6896         * c-typeck.c (composite_type): Don't set
6897         c_override_global_bindings_to_false.
6898
6899 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
6900
6901         PR target/48857, 48495
6902         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
6903         (VSX_MODE): Ditto.
6904         (VSX_MOVE_MODE): Ditto.
6905         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
6906         VSX vector types.  Add V2DImode.
6907         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
6908         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
6909         (MODES_TIEABLE_P): Ditto.
6910
6911         * config/rs6000/rs6000.c (rs6000_emit_move): Use
6912         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
6913         VSX_VECTOR_MODE.
6914         (init_cumulative_args): Ditto.
6915         (rs6000_function_arg_boundary): Ditto.
6916         (rs6000_function_arg_advance_1): Ditto.
6917         (rs6000_function_arg): Ditto.
6918         (rs6000_function_ok_for_sibcall): Ditto.
6919         (emit_frame_save): Ditto.
6920         (rs6000_function_value): Ditto.
6921         (rs6000_libcall_value): Ditto.
6922
6923 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
6924
6925         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
6926         i386/darwin-lib.h to $libgcc_tm_file.
6927         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
6928
6929 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
6930
6931         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
6932
6933 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
6934
6935         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
6936         * config/rs6000/rs6000-tables.opt: New file (generated).
6937         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
6938         rs6000/rs6000-tables.opt to extra_options.
6939         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
6940         * config/rs6000/rs6000.c (rs6000_select): Remove.
6941         (processor_target_table): Move contents to rs6000-cpus.def.
6942         (darwin_rs6000_override_options): Check
6943         global_options_set.x_rs6000_cpu_index instead of
6944         rs6000_select[1].string.
6945         (rs6000_option_override_internal): Likewise.
6946         (rs6000_handle_option): Don't assert that global structures are in
6947         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
6948         (rs6000_default_cpu): New variable.
6949         (rs6000_file_start): Set it instead of local default_cpu.  Check
6950         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
6951         global_options_set.x_rs6000_tune_index instead of rs6000_select.
6952         (rs6000_darwin_file_start): Check rs6000_default_cpu and
6953         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
6954         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
6955         rs6000_select): Remove.
6956         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
6957         Remove.
6958         (mcpu=, mtune=): Use Var, Init, Enum and Save.
6959         * config/rs6000/t-rs6000
6960         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
6961         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6962         global_options_set.x_rs6000_cpu_index instead of
6963         rs6000_select[1].string.
6964         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6965         global_options_set.x_rs6000_cpu_index instead of
6966         rs6000_select[1].string.
6967
6968 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
6969
6970         * config.gcc (libgcc_tm_file): Define instead of including files
6971         from ../../libgcc/config/ in tm_file.
6972         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
6973         * configure: Regenerate.
6974         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
6975         libgcc_tm.h, cs-libgcc_tm.h): New.
6976         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
6977         (clean): Remove libgcc_tm.h.
6978         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
6979         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
6980         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
6981
6982 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
6983
6984         PR target/48896
6985         * config/avr/avr.c (avr_ret_register): Return unsigned int
6986         instead of int.
6987         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
6988         it to avr_libcall_value.
6989         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
6990         expand_expr.
6991         (avr_expand_binop_builtin): Ditto.
6992         (avr_expand_unop_builtin): Ditto.
6993
6994 2011-05-10  DJ Delorie  <dj@redhat.com>
6995
6996         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
6997         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
6998         * config/rx/rx.c (rx_align_for_label): Add label and
6999         uses_threshold parameters.  Do not align when the label is not
7000         used enough.
7001         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
7002
7003 2011-05-10  Richard Guenther  <rguenther@suse.de>
7004
7005         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
7006         a series of conversions and apply foldings similar to what
7007         fold-const does.
7008         (tree_ssa_forward_propagate_single_use_vars): Call it.
7009
7010 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
7011
7012         PR tree-optimization/48611
7013         PR tree-optimization/48794
7014         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
7015         referenced from RESX or EH_DISPATCH arguments.
7016
7017         PR debug/48928
7018         * dfp.c (decimal_to_decnumber): Handle conversion from
7019         dconst{1,2,m1,half}.
7020
7021 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
7022
7023         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
7024         for !flag_prefer_avx128.
7025         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
7026
7027 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
7028
7029         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
7030         (fold_ternary_loc): Use expr_location_or.
7031
7032 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7033
7034         PR debug/48853
7035         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
7036         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
7037         Pmode and mem_mode is not VOIDmode.
7038
7039 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
7040
7041         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
7042         TYPE_QUAL_RESTRICT): Convert to enum.
7043
7044 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
7045
7046         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
7047         (const_pow2_1_to_8_operand): Ditto.
7048         (const_pow2_1_to_128_operand): Ditto.
7049         (const_pow2_1_to_32768_operand): Ditto.
7050         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
7051         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
7052         in insn constraint to check integer value of operand 3.
7053         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
7054
7055         (PINSR_MODE): New mode iterator.
7056         (sse2p4_1): New mode attribute.
7057         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
7058         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
7059         iterator.  Use const_int_operand instead of
7060         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
7061         exact_log2 in insn constraint to check integer value of operand 3.
7062
7063 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
7064
7065         * config/i386/sse.md (blendbits): Remove mode attribute.
7066         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
7067         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
7068         Check integer value of operand 3 in insn constraint.
7069
7070 2011-05-09  Richard Guenther  <rguenther@suse.de>
7071
7072         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
7073         for diagnostics.
7074         (lto_symtab_merge): Likewise.  Do not register types here.
7075         (lto_symtab_merge_decls_2): Likewise.
7076         (lto_symtab_merge_decls_1): Likewise.
7077         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
7078         * gimple.c (enum gtc_mode): Declare.
7079         (gimple_types_compatible_p): Make static.
7080
7081 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7082
7083         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
7084         temporary register to match Pmode.
7085
7086 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
7087
7088         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
7089         and *vec_concatv4si_1_avx.
7090
7091 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
7092
7093         PR rtl-optimization/48927
7094         * ira-conflicts.c (commutative_constraint_p): Use
7095         recog_data.alternative_enabled_p to disable alternatives where
7096         "enabled" attribute is false.
7097         (get_dup_num): Ditto.
7098         * ira-lives.c (single_reg_class): Ditto.
7099         (ira_implicitly_set_insn_hard_regs): Ditto.
7100
7101 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
7102
7103         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
7104         (dataflow_set_preserve_mem_locs): Likewise.
7105
7106 2011-05-09  Philipp Thomas  <pth@suse.de>
7107
7108         * config/mep/mep.c (mep_validate_vliw): Syntax description
7109         should not be translated.
7110
7111 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
7112
7113         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
7114         * config/mips/mips-tables.opt: New file (generated).
7115         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
7116         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
7117         MIPS_ARCH_OPTION_NATIVE): Define.
7118         * config/mips/mips.c (mips_cpu_info_table): Move contents to
7119         mips-cpus.def.
7120         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
7121         mips_parse_cpu): Remove.
7122         (mips_cpu_info_from_opt, mips_default_arch): New.
7123         (mips_handle_option): Don't assert that global structures are in
7124         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
7125         (mips_option_override): Use new variables and functions to set
7126         state of these options.  Use strcmp to check for individual CPU names.
7127         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
7128         definition.
7129         * config/mips/mips.opt (march=): Use ToLower and Enum.
7130         (mips): Use ToLower, Enum and Var.
7131         (mtune=): Use ToLower and Enum.
7132         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
7133
7134 2011-05-08  Jan Hubicka  <jh@suse.cz>
7135
7136         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
7137         Arrange type pairs to be UID ordered.
7138         (gimple_lookup_type_leader): Make inline.
7139
7140 2011-05-09  Nick Clifton  <nickc@redhat.com>
7141
7142         PR target/48899
7143         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
7144         PROCESSOR_DEFAULT.
7145
7146         PR target/48897
7147         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
7148         variable 's'.
7149
7150 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
7151
7152         * combine.c (simplify_comparison): Abstract out parts into...
7153         (simplify_compare_const): ... new function.
7154         (try_combine): Generalize parallel arithmetic/compare combining
7155         to call simplify_compare_const() and CANONICALIZE_COMPARE().
7156
7157 2011-05-08  Jan Hubicka  <jh@suse.cz>
7158
7159         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
7160         (cgraph_create_virtual_clone): Call hooks once virtual clone
7161         is finished.
7162         * cgraph.h (cgraph_clone_node): Update prototype.
7163         * ipa-cp.c (ipcp_estimate_growth): Use
7164         estimate_ipcp_clone_size_and_time.
7165         * ipa-inline-transform.c (clone_inlined_nodes): Update.
7166         * lto-cgraph.c (input_node): Update.
7167         * ipa-inline.c (recursive_inlining): Update.
7168         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
7169         (evaluate_conditions_for_known_args): Break out from ...
7170         (evaluate_conditions_for_edge): ... here.
7171         (evaluate_conditions_for_ipcp_clone): New function.
7172         (inline_node_duplication_hook): Update clone summary based
7173         on parameter map.
7174         (estimate_callee_size_and_time): Rename to ...
7175         (estimate_node_size_and_time): take NODE instead of EDGE;
7176         take POSSIBLE_TRUTHS as argument.
7177         (estimate_callee_size_and_time): Update.
7178         (estimate_ipcp_clone_size_and_time): New function.
7179         (do_estimate_edge_time): Update.
7180
7181 2011-05-08  Richard Guenther  <rguenther@suse.de>
7182
7183         PR middle-end/48908
7184         PR middle-end/48905
7185         * expmed.c (expand_shift_1): Compute adjusted constant shift
7186         amount manually.
7187
7188 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
7189
7190         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
7191
7192 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
7193
7194         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
7195
7196 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
7197
7198         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
7199
7200 2011-05-07  Jan Hubicka  <jh@suse.cz>
7201
7202         * ipa-inline-transform.c (inline_call): Account when program size
7203         decreases.
7204         * ipa-inline.c (relative_time_benefit): New function.
7205         (edge_badness): Reorganize to be power 2 based; fix thinko when
7206         computing badness for negative growth; update comments to match
7207         reality; better dumps.
7208
7209 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
7210
7211         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
7212         type to bool and adjust comment.
7213         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
7214         (fold_mathfn_compare): Remove calls to global_bindings_p.
7215         (fold_inf_compare): Likewise.
7216         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
7217         * c-tree.h (global_bindings_p): Adjust prototype.
7218         * c-decl.c (global_bindings_p): Return bool and simplify.
7219
7220 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
7221
7222         PR tree-optimization/48837
7223         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
7224         when accumulator transformation is performed.
7225
7226 2011-05-06  Jan Hubicka  <jh@suse.cz>
7227
7228         * i386.h (ix86_tune_indices): Add
7229         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
7230         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
7231         * i386.c (initial_ix86_tune_features): Add
7232         X86_SOFTARE_PREFETCHING_BENEFICIAL.
7233         (software_prefetching_beneficial_p): Remove predicate.
7234         (ix86_option_override_internal): Use new macro.
7235
7236 2011-05-06  Jan Hubicka  <jh@suse.cz>
7237
7238         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
7239
7240 2011-05-06  Jan Hubicka  <jh@suse.cz>
7241
7242         * cgraph.c (cgraph_add_thunk): Create real function node instead
7243         of alias node; finalize it and mark needed/reachale; arrange visibility
7244         to be right and add it into the corresponding same comdat group list.
7245         (dump_cgraph_node): Dump thunks.
7246         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
7247         cgraph_function_with_gimple_body_p,
7248         cgraph_first_function_with_gimple_body,
7249         cgraph_next_function_with_gimple_body): New functions.
7250         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
7251         New macros.
7252         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
7253         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
7254         * cgraphunit.c (cgraph_finalize_function): Only look into possible
7255         devirtualization when optimizing.
7256         (verify_cgraph_node): Verify thunks.
7257         (cgraph_analyze_function): Analyze thunks.
7258         (cgraph_mark_functions_to_output): Output thunks only in combination
7259         with function they are assigned to.
7260         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
7261         alias into normal node.
7262         (assemble_thunks): New functoin.
7263         (cgraph_expand_function): Use it.
7264         * lto-cgraph.c (lto_output_node): Stream thunks.
7265         (input_overwrite_node): Stream in thunks.
7266         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
7267         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
7268         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
7269         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
7270         (inline_analyze_function): Do not care about thunk jump functions.
7271         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
7272         * ipa-prop.c (ipa_prop_write_jump_functions): Use
7273         cgraph_function_with_gimple_body_p.
7274         * passes.c (do_per_function_toporder): Use
7275         cgraph_function_with_gimple_body_p.
7276         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
7277         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
7278         (function_called_by_processed_nodes_p): Likewise.
7279
7280 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
7281
7282         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
7283         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
7284         entries.
7285         (mabi=): Replace with separate entries for mabi=altivec,
7286         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
7287         mabi=ieeelongdouble and mabi=ibmlongdouble.
7288         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
7289         check for -mabi=spe without SPE ABI support here.
7290         (rs6000_handle_option): Replace OPT_mabi_ handling with
7291         OPT_mabi_altivec and OPT_mabi_spe handling.
7292
7293 2011-05-06  Cary Coutant  <ccoutant@google.com>
7294
7295         * dwarf2out.c (contains_subprogram_definition): New function.
7296         (should_move_die_to_comdat): Call it.
7297
7298 2011-05-06  Jeff Law  <law@redhat.com>
7299
7300         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
7301         remove_ctrl_stmt_and_useless_edges.
7302         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
7303         (fixup_template_block, thread_single_edge): Likewise.
7304         (mark_threaded_blocks): Use THREAD_TARGET.
7305
7306 2011-05-06  Alan Modra  <amodra@gmail.com>
7307
7308         PR target/48900
7309         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
7310         const0_rtx as the arg to the dummy __tls_get_addr libcall.
7311
7312 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
7313
7314         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
7315         constraint modifier to "r".
7316
7317 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
7318
7319         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
7320         fall through for OPT_mcmodel_.
7321
7322 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7323
7324         * config/s390/s390.c (s390_asm_trampoline_template): Comment
7325         instruction sizes.
7326         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
7327
7328 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7329
7330         PR target/47930
7331         * config/arm/arm.opt (marm): Document it.
7332         (mthumb): Reject negative variant.
7333
7334 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
7335
7336         PR target/48898
7337         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7338         Fix typo in "ccvt" variable name.
7339
7340 2011-05-06  Tristan Gingold  <gingold@adacore.com>
7341
7342         PR target/48895
7343         * config/vms/vms-ar.c (main): Remove cwd variable.
7344
7345 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
7346
7347         PR debug/48902
7348         * var-tracking.c (prepare_call_arguments): Move else before #endif.
7349
7350 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
7351
7352         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
7353         * gimplify.c (gimplify_switch_expr): Likewise.
7354         * omp-low.c (expand_omp_sections): Likewise.
7355         * tree-eh.c (lower_try_finally_switch): Likewise.
7356         (lower_eh_dispatch): Likewise.
7357         * tree.h (build_case_label): Declare.
7358         * tree.c (build_case_label): Define.
7359
7360 2011-05-05  Jason Merrill  <jason@redhat.com>
7361
7362         PR c++/40975
7363         * tree-inline.c (copy_tree_r): Use copy_statement_list.
7364         (copy_statement_list): Don't recurse.
7365         * stor-layout.c (copy_self_referential_tree_r): Don't allow
7366         STATEMENT_LIST.
7367
7368 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
7369
7370         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
7371         through from -mfpu= handling.
7372         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
7373
7374 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
7375
7376         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
7377         POST_MODIFY.
7378
7379 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
7380
7381         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
7382         for 11.31.
7383         (hppa[12]*-*-hpux11*): Ditto.
7384         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
7385         * config/ia64/hpux-unix2003.h: New.
7386         * config/pa/pa-hpux1131.opt: New.
7387         * config/pa/pa-hpux1131.h: New.
7388         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
7389         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
7390         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
7391
7392 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
7393
7394         PR debug/48853
7395         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
7396         instead of mode as 3rd argument to recursive call.
7397         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
7398         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
7399         VOIDmode.
7400         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
7401         don't give up if mode is Pmode and mem_mode is not VOIDmode.
7402         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
7403         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
7404
7405 2011-05-05  Julian Brown  <julian@codesourcery.com>
7406
7407         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
7408         parenthesis in D-register case.
7409
7410 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
7411
7412         * opt-functions.awk (var_type_struct): Handle Enum options.
7413         * optc-gen.awk: Don't check range of variables of character type.
7414         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
7415         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
7416         rs6000_sdata_name, rs6000_explicit_options): Remove.
7417         (rs6000_option_override_internal): Check for -malign-power here.
7418         Use global_options_set instead of rs6000_explicit_options.
7419         (rs6000_parse_fpu_option): Remove.
7420         (rs6000_handle_option): Access variables via opts and opts_set
7421         pointers.  Use error_at and warning_at.  Add fall-through
7422         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
7423         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
7424         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
7425         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
7426         here.  Don't use rs6000_parse_fpu_option.
7427         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
7428         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
7429         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
7430         (mrecip=): Use Var.
7431         (mspe): Use Var and Save.
7432         (mtraceback=): Use Enum and Var.
7433         (rs6000_traceback_type): New Enum and EnumValue entries.
7434         (mfloat-gprs=): Use Enum, Var and Save.
7435         (rs6000_float_gprs): New Enum and EnumValue entries.
7436         (mlong-double-): use Var and Save.
7437         (msched-costly-dep=, minsert-sched-nops=): Use Var.
7438         (malign-): Use Enum and Var.
7439         (rs6000_alignment_flags): New Enum and EnumValue entries.
7440         (mfpu=): Use Enum.
7441         (fpu_type_t): New Enum and EnumValue entries.
7442         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7443         global_options_set instead of rs6000_explicit_options.
7444         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7445         global_options_set instead of rs6000_explicit_options.
7446         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7447         global_options_set instead of rs6000_explicit_options.
7448         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7449         global_options_set instead of rs6000_explicit_options.
7450         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
7451         global_options_set instead of rs6000_explicit_options.
7452         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7453         global_options_set instead of rs6000_explicit_options.
7454         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
7455         definition.
7456         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7457         global_options_set instead of rs6000_explicit_options.
7458         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
7459         (rs6000_cmodel): New Enum and EnumValue entries.
7460         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7461         global_options_set instead of rs6000_explicit_options.
7462         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
7463         (mtls-size=): Use Enum and Var.
7464         (rs6000_tls_size): New Enum and EnumValue entries.
7465
7466 2011-05-05  Michael Matz  <matz@suse.de>
7467
7468         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
7469         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
7470         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
7471         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
7472         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
7473         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
7474         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
7475         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
7476         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
7477         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
7478         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
7479         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
7480         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
7481         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
7482         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
7483         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
7484
7485 2011-05-05  Richard Guenther  <rguenther@suse.de>
7486
7487         * expmed.c (expand_variable_shift): Rename to ...
7488         (expand_shift_1): ... this.  Take an expanded shift amount.
7489         For rotates recurse directly not building trees for the shift amount.
7490         (expand_variable_shift): Wrap around expand_shift_1.
7491         (expand_shift): Adjust.
7492
7493 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
7494
7495         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
7496
7497 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
7498
7499         * tree.h (get_pending_sizes): Remove prototype.
7500         (put_pending_size): Likewise.
7501         (put_pending_sizes): Likewise.
7502         * stor-layout.c (pending_sizes): Delete.
7503         (get_pending_sizes): Likewise.
7504         (put_pending_size): Likewise.
7505         (put_pending_sizes): Likewise.
7506         (variable_size): Do not call put_pending_size and tidy up.
7507         * function.h (struct function): Remove dont_save_pending_sizes_p.
7508         * lto-streamer-in.c (input_function): Do not stream it.
7509         * lto-streamer-out.c (output_function): Likewise.
7510         * tree-inline.c (initialize_cfun): Do not copy it.
7511         * c-decl.c (store_parm_decls): Do not set it.
7512         * omp-low.c (create_task_copyfn): Likewise.
7513         * tree-optimize.c (tree_rest_of_compilation): Likewise.
7514
7515 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
7516
7517         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
7518         conditions.
7519         (*movdf_internal): Ditto.
7520         (*movdf_internal_nointeger): Ditto.
7521         (*movsf_internal): Ditto.
7522
7523 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
7524
7525         * c-decl.c (finish_decl): Don't call get_pending_sizes.
7526         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
7527         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
7528         (c_variable_size): Remove.
7529         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
7530         call put_pending_sizes.
7531         (get_parm_info): Add parameter expr.  Use it to set
7532         arg_info->pending_sizes.
7533         (store_parm_decls): Use arg_info->pending_sizes instead or calling
7534         get_pending_sizes.
7535         * c-parser.c (c_parser_parms_declarator): Update call to
7536         c_parser_parms_list_declarator.
7537         (c_parser_parms_list_declarator): Take parameter expr.  Update
7538         call to push_parm_decl.  Update recursive call.  Don't call
7539         get_pending_sizes.  Update calls to get_parm_info.
7540         (c_parser_objc_method_definition): Update calls to
7541         c_parser_objc_method_decl and objc_start_method_definition.
7542         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
7543         (c_parser_objc_method_decl): Add parameter expr.  Update call to
7544         grokparm.
7545         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
7546         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
7547         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
7548
7549 2011-05-05  Michael Hope  <michael.hope@linaro.org>
7550
7551         PR pch/45979
7552         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
7553         __ARM_EABI__ hosts.
7554
7555 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7556
7557         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
7558         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
7559         (spu_output_mi_thunk): New function.
7560
7561 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7562
7563         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
7564         targetm.asm_out.print_operand.
7565         * config/sol2.c: Include target.h.
7566
7567 2011-05-04  Jan Hubicka  <jh@suse.cz>
7568
7569         * ipa-inline.c (reset_edge_caches): New function.
7570         (update_caller_keys): Add check_inlinablity_for; do not
7571         reset edge caches; remove now unnecesary loop.
7572         (update_callee_keys): Add comments; reset node_growth_cache of callee.
7573         (update_all_callee_keys): Likewise.
7574         (inline_small_functions): Sanity check cache; update code
7575         recomputing it.
7576
7577 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
7578
7579         PR rtl-optimization/47612
7580         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
7581         as the last insn of the sequence to be moved.
7582
7583 2011-05-04  Tobias Burnus  <burnus@net-b.de>
7584
7585         PR fortran/48864
7586         * doc/invoke.texi (Ofast): Document that it
7587         enables Fortran's -fno-protect-parens.
7588
7589 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
7590
7591         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
7592
7593 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
7594
7595         * stor-layout.c (variable_size): Do not issue errors.
7596
7597 2011-05-04  Richard Guenther  <rguenther@suse.de>
7598
7599         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
7600         for array-ref indices.
7601         (tree_coverage_counter_addr): Likewise.
7602         (build_fn_info_type): Use size_int for index types.
7603         (build_gcov_info): Likewise.
7604
7605 2011-05-04  Richard Guenther  <rguenther@suse.de>
7606
7607         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
7608         to build_int_cst.
7609         * c-typeck.c (really_start_incremental_init): Use bitsize_int
7610         for constructor indices.
7611         (push_init_level): Likewise.
7612
7613 2011-05-04  Richard Guenther  <rguenther@suse.de>
7614
7615         * explow.c (promote_mode): Move variable declarations before code.
7616
7617 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
7618
7619         * tree.h (build_function_type_array): Declare.
7620         (build_varargs_function_type_array): Declare.
7621         (build_function_type_vec, build_varargs_function_type_vec): Define.
7622         * tree.c (build_function_type_array_1): New function.
7623         (build_function_type_array): New function.
7624         (build_varargs_function_type_array): New function.
7625
7626 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
7627
7628         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
7629         before setting STMT_VINFO_TYPE.
7630
7631 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7632
7633         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
7634         instead of spu_pass_by_reference.
7635
7636 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7637
7638         * calls.c (emit_library_call_value_1): Invoke
7639         promote_function_mode hook on libcall arguments.
7640         * explow.c (promote_function_mode, promote_mode): Handle TYPE
7641         argument being NULL.
7642         * targhooks.c (default_promote_function_mode): Lisewise.
7643         * config/s390/s390.c (s390_promote_function_mode): Likewise.
7644         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
7645
7646         * doc/tm.texi: Document that TYPE argument might be NULL.
7647
7648 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
7649
7650         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
7651
7652 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
7653
7654         From Bernd Schmidt
7655         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
7656
7657 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7658
7659         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
7660         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
7661         Move ...
7662         * mips-tfile.c: ... here.
7663         Don't include coretypes.h, tm.h, filenames.h.
7664         (saber_stop): Remove definition and all calls.
7665         [__SABER__]: Remove.
7666         (__LINE__): Remove default.
7667         (Size_t, Ptrdiff_t): Remove definitions.
7668         Replace by size_t, ptrdiff_t.
7669         [!MIPS_DEBUGGING_INFO]: Remove.
7670         (SHASH_SIZE, THASH_SIZE): Remove defaults.
7671         (progname): Add const.
7672         (STATIC): Remove.
7673         Replace all uses by static.
7674         (ALIGN_SYMTABLE_OFFSET): Remove default.
7675         * mips-tdump.c: Don't include coretypes.h, tm.h.
7676         Remove !MIPS_IS_STAB guard.
7677         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
7678         $(TM_H), filenames.h dependencies.
7679         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
7680
7681 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
7682
7683         From Jie Zhang
7684         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
7685         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
7686
7687 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
7688
7689         From Bernd Schmidt
7690         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
7691         account and save/restore RETS.
7692         (PROFILE_BEFORE_PROLOGUE): Define.
7693         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
7694         the push insn to use predecrement.
7695
7696 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
7697
7698         From Jie Zhang
7699         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
7700
7701 2011-05-04  Nick Clifton  <nickc@redhat.com>
7702
7703         * config/mn10300/mn10300.c: Include cfgloop.h.
7704         (DUMP): New macro.
7705         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
7706         Lcc or a FLcc insn into the instruction stream.
7707         (mn10300_block_contains_call): New function.  Returns true if the
7708         given basic block contains a CALL insn.
7709         (mn10300_loop_contains_call_insn): New function.  Returns true if
7710         the given loop contains a CALL insn.
7711         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
7712         to use the SETLB and Lcc or FLcc insns.
7713         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
7714         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
7715         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
7716         disable the SETLB optimization.
7717         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
7718         __SETLB__ or __NO_SETLB__.
7719         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
7720         (movsf_internal): Handle MDR register.
7721         (cmpsi): Make visible.
7722         (setlb): New pattern.
7723         (Lcc): New pattern.
7724         (FLcc): New pattern.
7725
7726 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
7727
7728         PR target/48860
7729         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
7730         for reg<->xmm moves.
7731         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
7732         (vec_concatv2di_rex64_sse): Ditto.
7733         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
7734         (*vec_extractv2di_1_rex64): Ditto.
7735
7736         Revert:
7737         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
7738
7739         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
7740         reg<->xmm moves.
7741         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
7742
7743 2011-05-04  Richard Guenther  <rguenther@suse.de>
7744
7745         * tree.h (int_const_binop): Remove notrunc argument.
7746         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
7747         create integer constants that are properly truncated.
7748         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
7749         (const_binop): Remove zero notrunc argument to int_const_binop.
7750         (size_binop_loc): Likewise.
7751         (fold_div_compare): Likewise.
7752         (maybe_canonicalize_comparison_1): Likewise.
7753         (fold_comparison): Likewise.
7754         (fold_binary_loc): Likewise.
7755         (multiple_of_p): Likewise.
7756         * expr.c (store_constructor): Likewise.
7757         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
7758         (maybe_fold_stmt_addition): Likewise.
7759         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
7760         * stor-layout.c (layout_type): Likewise.
7761         * tree-data-ref.c (tree_fold_divides_p): Likewise.
7762         * tree-sra.c (build_ref_for_offset): Likewise.
7763         (build_user_friendly_ref_for_offset): Likewise.
7764         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
7765         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
7766         * tree-ssa-loop-niter.c (inverse): Likewise.
7767         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
7768         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
7769         * tree-switch-conversion.c (check_range): Likewise.
7770         (build_constructors): Likewise.
7771         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
7772         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
7773         (extract_range_from_assert): Likewise.
7774         (vrp_int_const_binop): Likewise.
7775         (extract_range_from_binary_expr): Likewise.
7776         (extract_range_from_unary_expr): Likewise.
7777         (check_array_ref): Likewise.
7778         (find_case_label_range): Likewise.
7779         (simplify_div_or_mod_using_ranges): Likewise.
7780         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
7781         comparing case labels for merging.
7782
7783 2011-05-03  Mark Wielaard  <mjw@redhat.com>
7784
7785         * dwarf2out.c (debug_str_hash_forced): Removed.
7786         (gen_label_for_indirect_string): Removed.
7787         (get_debug_string_label): Removed.
7788         (AT_string_form): Generate label directly.
7789         (output_indirect_string): Test indirect_string_node for
7790         DW_FORM_strp instead of checking label and refcount.
7791         (prune_indirect_string): Removed.
7792         (prune_unused_types): Don't check debug_str_hash_forced or
7793         call prune_indirect_string.
7794
7795 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
7796
7797         PR other/48093
7798         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
7799
7800 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
7801
7802         PR debug/47994
7803         PR debug/47919
7804         * combine.c (try_combine): Skip debug insns at m_split tests.
7805
7806 2011-04-26  Mark Wielaard  <mjw@redhat.com>
7807
7808         PR42288
7809         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
7810         when info_section_emitted.
7811
7812 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
7813
7814         * config/mips/mips-opts.h: New.
7815         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
7816         to mips-opts.h.
7817         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
7818         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
7819         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
7820         via opts pointer.
7821         * config/mips/mips.h (enum mips_code_readable_setting): Move to
7822         mips-opts.h.
7823         (mips_abi, mips_code_readable): Don't declare.
7824         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
7825         (mabi=): Use Enum and Var.
7826         (mips_abi): New Enum and EnumValue entries.
7827         (mcode-readable=): Use Enum and Var.
7828         (mips_code_readable_setting): New Enum and EnumValue entries.
7829         (mr10k-cache-barrier=): Use Enum and Var.
7830         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
7831
7832 2011-05-03  Jan Hubicka  <jh@suse.cz>
7833
7834         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
7835         replace hash by pointer map.
7836         (cgraph_node_set_element_def, cgraph_node_set_element,
7837         const_cgraph_node_set_element, varpool_node_set_element_def,
7838         varpool_node_set_element, const_varpool_node_set_element): Remove.
7839         (free_cgraph_node_set, free_varpool_node_set): New function.
7840         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
7841         * tree-emutls.c: Free varpool node set.
7842         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
7843         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
7844         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
7845         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
7846         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
7847         Move here from ipa.c; implement using pointer_map
7848         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
7849         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
7850         debug_cgraph_node_set, varpool_node_set_new,
7851         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
7852         dump_varpool_node_set, debug_varpool_node_set):
7853         Move to ipa-uitls.c.
7854         * passes.c (ipa_write_summaries): Update.
7855
7856 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7857
7858         From Mike Frysinger:
7859         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
7860         bf542/bf544/bf547/bf548/bf549.
7861
7862 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
7863
7864         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
7865
7866 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7867
7868         From Bernd Schmidt:
7869         * config/bfin/bfin.md (MOVCC): New mode_macro.
7870         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
7871         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
7872         comments from generated assembly.
7873
7874 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7875
7876         From Bernd Schmidt
7877         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
7878         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
7879         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
7880         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
7881         * config/bfin/lib1funcs.asm (___muldi3): New function.
7882
7883 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7884
7885         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
7886         build_function_type_list instead of build_function_type.
7887         Rearrange initialization of `args' to do so.
7888
7889 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7890
7891         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
7892         instead of build_function_type.
7893
7894 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7895
7896         * config/rs6000/rs6000.c (spe_init_builtins): Call
7897         build_function_type_list instead of build_function_type.
7898         (paired_init_builtins, altivec_init_builtins): Likewise.
7899         (builtin_function_type): Likewise.
7900
7901 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7902
7903         * config/sh/sh.c (sh_media_init_builtins): Call
7904         build_function_type_list instead of build_function_type.
7905
7906 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7907
7908         * config/sparc/sparc.c (sparc_file_end): Call
7909         build_function_type_list instead of build_function_type.
7910
7911 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7912
7913         * config/alpha/alpha.c (alpha_init_builtins): Call
7914         build_function_type_list instead of build_function_type.
7915
7916 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7917
7918         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
7919         build_function_type_list instead of build_function_type.
7920
7921 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7922
7923         * config/iq2000/i2000.c (iq2000_init_builtins): Call
7924         build_function_type_list instead of build_function_type.
7925         Delete `endlink' variable.
7926
7927 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7928
7929         * config/avr/avr.c (avr_init_builtins): Call
7930         build_function_type_list instead of build_function_type.
7931
7932 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7933
7934         * config/picochip/picochip.c (picochip_init_builtins): Call
7935         build_function_type_list instead of build_function_type.
7936         Delete `endlink' variable.
7937
7938 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7939
7940         * config/bfin/bfin.c (bfin_init_builtins): Call
7941         build_function_type_list instead of build_function_type.
7942
7943 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7944
7945         From Bernd Schmidt
7946         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
7947         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
7948
7949 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7950
7951         From Jie Zhang:
7952         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
7953         libbffastfp overrides libgcc when -mfast-fp.
7954
7955 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7956
7957         Originally from Bernd Schmidt
7958         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
7959         * config/bfin/bfin.c (override_options): Test it and error if
7960         TARGET_FDPIC.
7961
7962 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7963
7964         Originally From Bernd Schmidt
7965         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
7966         FD-PIC.
7967
7968 2011-05-03  Jeff Law  <law@redhat.com>
7969
7970         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
7971         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
7972         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
7973         than accessing AUX field directly.  Free the AUX field before
7974         clearing it.
7975         (thread_block, thread_through_loop_header): Likewise.
7976         (thread_single_edge, mark_threaded_blocks): Likewise.
7977         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
7978         (register_jump_thread): Do not attempt to thread to a NULL edge.
7979
7980 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
7981
7982         * function.c (init_function_start): Call decide_function_section.
7983         * varasm.c (decide_function_section): New function.
7984         (assemble_start_function): When not using
7985         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
7986         or first_function_block_is_cold.
7987         * rtl.h (decide_function_section): Declare.
7988
7989 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
7990             Jakub Jelinek  <jakub@redhat.com>
7991
7992         PR target/48774
7993         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
7994         only succeed if req_mode is the same as set_mode.
7995
7996 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
7997
7998         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
7999         * genemit.c (gen_exp): Handle RETURN.
8000         * emit-rtl.c (verify_rtx_sharing): Likewise.
8001         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
8002         * rtl.c (copy_rtx): RETURN is shared.
8003         * rtl.h (enum global_rtl_index): Add GR_RETURN.
8004         (ret_rtx): New.
8005         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
8006         * config/s390/s390.c (s390_emit_epilogue): Likewise.
8007         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
8008         * config/cris/cris.c (cris_expand_return): Likewise.
8009         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
8010         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
8011         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
8012         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
8013         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
8014         Likewise.
8015         * config/v850/v850.c (expand_epilogue): Likewise.
8016         * config/bfin/bfin.c (bfin_expand_call): Likewise.
8017         * config/arm/arm.md (epilogue): Likewise.
8018         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
8019         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
8020         variable to ret_reg.
8021
8022 2011-05-03  Richard Guenther  <rguenther@suse.de>
8023
8024         PR lto/48846
8025         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
8026         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
8027         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
8028
8029 2011-05-03  Richard Guenther  <rguenther@suse.de>
8030
8031         * c-decl.c (grokdeclarator): Instead of looking at
8032         TREE_OVERFLOW check if the constant fits in the index type.
8033
8034 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
8035
8036         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
8037         (vec_store_lanes<mode><mode>): Likewise.
8038
8039 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
8040
8041         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
8042         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
8043         convert_optab_index values.
8044         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
8045         * genopinit.c (optabs): Initialize the new optabs.
8046         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
8047         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
8048         (expand_STORE_LANES): New functions.
8049         * tree.h (build_array_type_nelts): Declare.
8050         * tree.c (build_array_type_nelts): New function.
8051         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
8052         (vect_model_load_cost): Likewise.
8053         (vect_store_lanes_supported, vect_load_lanes_supported)
8054         (vect_record_strided_load_vectors): Declare.
8055         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
8056         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
8057         (vect_transform_strided_load): Split out statement recording into...
8058         (vect_record_strided_load_vectors): ...this new function.
8059         * tree-vect-stmts.c (create_vector_array, read_vector_array)
8060         (write_vector_array, create_array_ref): New functions.
8061         (vect_model_store_cost): Add store_lanes_p argument.
8062         (vect_model_load_cost): Add load_lanes_p argument.
8063         (vectorizable_store): Try to use store-lanes functions for
8064         interleaved stores.
8065         (vectorizable_load): Likewise load-lanes and loads.
8066         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
8067         to vect_model_store_cost.
8068         (vect_build_slp_tree): Likewise vect_model_load_cost.
8069
8070 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
8071
8072         * hooks.h (hook_bool_mode_uhwi_false): Declare.
8073         * hooks.c (hook_bool_mode_uhwi_false): New function.
8074         * target.def (array_mode_supported_p): New hook.
8075         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
8076         * doc/tm.texi: Regenerate.
8077         * stor-layout.c (mode_for_array): New function.
8078         (layout_type): Use it.
8079         * config/arm/arm.c (arm_array_mode_supported_p): New function.
8080         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
8081
8082 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
8083
8084         PR target/48723
8085         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
8086         for -fstack-check if the size to allocate is negative.
8087
8088 2011-05-02  Lawrence Crowl  <crowl@google.com>
8089
8090         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
8091         (timevar_cond_start): New for starting a timer only when it is not
8092         already running.
8093         (timevar_cond_stop): New for stopping a timer when it was not already
8094         running.
8095
8096         * timevar.c (timevar_stop): Enable start/stop timers to start again.
8097         (timevar_cond_start): New as above.
8098         (timevar_cond_stop): New as above.
8099
8100         * timevar.def: Add start/stop timers for compiler phases,
8101         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
8102         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
8103         and TV_PHASE_FINALIZE.
8104         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
8105         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
8106         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
8107         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
8108         Make unused TV_OVERLOAD into a start/stop timer.
8109
8110         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
8111         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
8112         to indicate that they are start/stop timers.
8113
8114         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
8115         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
8116         Move initialization to do_compile.
8117         (do_compile): Add initialization from above.
8118         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
8119
8120         * c-decl.c (c_write_global_declarations): Add start/stop of
8121         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
8122
8123         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
8124         or TV_PARSE_INLINE, as appropriate.
8125         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
8126         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
8127
8128 2011-05-02  Jason Merrill  <jason@redhat.com>
8129
8130         PR c++/40975
8131         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
8132
8133 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
8134
8135         PR c/35445
8136         * c-decl.c (finish_decl): Only create a composite if the types are
8137         compatible.
8138
8139 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
8140
8141         * config/fr30/fr30-protos.h (Mmode): Don't define.
8142         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
8143         definition where used.
8144         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
8145         define.  Expand definitions where used.
8146         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
8147         Expand definitions where used.
8148         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
8149         rx_function_arg, rx_function_arg_advance,
8150         rx_function_arg_boundary): Expand definitions of those macros.
8151         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
8152         definition where used.
8153
8154 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
8155
8156         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
8157         reg<->xmm moves.
8158         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
8159         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
8160         with *movv2sf_internal_rex64_avx.
8161         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
8162         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
8163         Use %v prefix in insn mnemonic to handle TARGET_AVX.
8164         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
8165         "vex" in "prefix" attribute calculation.
8166         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
8167
8168 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
8169
8170         PR target/47951
8171         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
8172         inputs match the output.
8173
8174 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
8175
8176         PR target/47955
8177         * config/m68k/m68k.c (m68k_expand_prologue): Set
8178         current_function_static_stack_size.
8179
8180 2011-05-02   Jan Hubicka  <jh@suse.cz>
8181
8182         * lto-streamer.c (lto_streamer_cache_insert_1,
8183         lto_streamer_cache_lookup, lto_streamer_cache_create,
8184         lto_streamer_cache_delete): Use pointer map instead of hashtable.
8185         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
8186
8187 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
8188
8189         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
8190         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
8191         config/m68k/t-opts: New files.
8192         * config/m68k/m68k-tables.opt: New file (generated).
8193         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
8194         extra_options and m68k/t-opts to tmake_file.
8195         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
8196         (all_isas): Initialize using m68k-isas.def.
8197         (all_microarchs): Initialize using m68k-microarchs.def.
8198         (m68k_find_selection): Remove.
8199         (m68k_handle_option): Don't assert that global structures are in
8200         use.  Use error_at.  Access variables via opts pointer.  Don't
8201         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
8202         directly for -m68020-40 and -m68020-60.
8203         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
8204         m68k_tune_entry here.
8205         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
8206         to m68k-opts.h.
8207         (m68k_library_id_string): Remove declaration.
8208         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
8209         (m68k_library_id_string): New Variable.
8210         (march=, mcpu=, mtune=): Use Enum and Var.
8211
8212 2011-05-02  Richard Guenther  <rguenther@suse.de>
8213
8214         * varasm.c (output_constructor_regular_field): Compute zero-based
8215         index with double-ints.  Make sure to ICE instead of producing
8216         wrong code.
8217         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
8218         in asserts.  Properly use a signed type.
8219
8220 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
8221
8222         * config/i386/sse.md (V): New mode iterator.
8223         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
8224         TARGET_SSE2.
8225         (V_256): Rename from AVX256MODE.
8226         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
8227         condition to all users.
8228         (VF1): Ditto.
8229         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
8230         condition to all users.
8231         (VF_128): Make V4SF mode unconditional.
8232         (VF_256): Rename from AVX256MODEF2P.
8233         (VI4F_128): Rename from SSEMODE4S.
8234         (VI8F_128): Rename from SSEMODE2D.
8235         (VI4F_256): Rename from AVX256MODE8P.
8236         (VI8F_256): Rename from AVX256MODE4P.
8237         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
8238         (ssescalarmodesuffix): Remove SF and DF modes.
8239         (SSEMODE124): Remove.
8240         (SSEMODE1248): Ditto.
8241         (SSEMODEF2P): Ditto.
8242         (AVXMODEF2P): Ditto.
8243         (AVXMODEFDP): Ditto.
8244         (AVXMODEFSP): Ditto.
8245         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
8246         unconditional.
8247         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
8248         unconditional.
8249         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
8250         xop_pcmov_<mode>256.  Use V mode iterator.
8251
8252         Adjust RTX patterns globally for renamed mode attributes.
8253
8254 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8255
8256         * haifa-sched.c (sched_emit_insn): Emit insn before first
8257         non-scheduled insn.  Inform back-end about new insn.  Add
8258         new insn to scheduled_insns list.
8259
8260 2011-05-02  Richard Guenther  <rguenther@suse.de>
8261
8262         PR tree-optimization/48822
8263         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
8264         (process_scc): Indicate which iteration we start.
8265
8266 2011-05-02  Jan Hubicka  <jh@suse.cz>
8267
8268         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
8269         (lto_section_overrun): New.
8270         * lto-section-out.c (append_block): Rename to ...
8271         (lto_append_block): ... this one; export.
8272         (lto_output_1_stream): Move lto lto-streamer.h
8273         (lto_output_data_stream): Update.
8274         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
8275         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
8276         functions.
8277
8278 2011-05-02  Richard Guenther  <rguenther@suse.de>
8279
8280         * tree.c (tree_code_counts): New global array.
8281         (record_node_allocation_statistics): Count individual tree codes.
8282         (dump_tree_statistics): Dump individual code stats.
8283
8284 2011-05-01  Jan Hubicka  <jh@suse.cz>
8285
8286         * ipa-inline.c (caller_growth_limits): Fix thinko when
8287         looking for largest stack frame.
8288         * ipa-inline.h (dump_inline_summary): Declare.
8289         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
8290         on stack usage.
8291         (dump_inline_summary): Export.
8292         (debug_inline_summary): Declare as DEBUG_FUNCTION.
8293
8294 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
8295
8296         * reginfo.c (memory_move_cost): Change rclass argument type form
8297         'enum reg_class' to reg_class_t.
8298         * reload.h (memory_move_cost): Update prototype.
8299         * postreload.c reload_cse_simplify_set): Change type dclass var to
8300         reg_class_t.
8301         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
8302         Update prototype.
8303         (ira_allocate_and_set_costs): Change aclass argument type form
8304         'enum reg_class' to reg_class_t.
8305         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
8306         Change aclass argument type to reg_class_t.
8307         (update_conflict_hard_reg_costs): Change type aclass and pref vars
8308         to reg_class_t.
8309         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
8310         memory_move_cost call.
8311
8312         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
8313         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
8314         Change type tmp var to reg_class_t.
8315
8316 2011-04-30  Jan Hubicka  <jh@suse.cz>
8317
8318         * ipa-inline.c (can_inline_edge_p): Disregard limits when
8319         inlining into function with flatten attribute.
8320         (want_inline_small_function_p): Be more realistic about inlining
8321         cold calls where callee size grows.
8322
8323 2011-04-30  Jan Hubicka  <jh@suse.cz>
8324
8325         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
8326         flags.
8327
8328 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
8329
8330         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
8331         PRINT_OPERAND_PUNCT_VALID_P): Remove.
8332         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
8333         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
8334         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8335         (print_operand): Rename to...
8336         (sparc_print_operand): ...this. Make static. Adjust
8337         sparc_print_operand function call.
8338         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
8339         functions.
8340
8341 2011-04-30  Jan Hubicka  <jh@suse.cz>
8342
8343         PR middle-end/48752
8344         * ipa-inline.c (early_inliner): Disable when doing late
8345         addition of function.
8346
8347 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
8348
8349         * dwarf2out.c (get_address_mode): New inline.
8350         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
8351         if not dwarf_strict emit
8352         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
8353         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
8354         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
8355         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
8356         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
8357         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
8358         mem_loc_descriptor callers.
8359         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
8360         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
8361         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
8362         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
8363         (base_types): New variable.
8364         (get_base_type_offset, calc_base_type_die_sizes,
8365         base_type_for_mode, mark_base_types, base_type_cmp,
8366         move_marked_base_types): New functions.
8367         (calc_die_sizes): Assert that die_offset is 0 or equal to
8368         next_die_offset.
8369         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
8370         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
8371         callers.  If not dwarf_strict, call mem_loc_descriptor even for
8372         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
8373         (gen_subprogram_die): Don't give up on call site parameters
8374         with non-integral or large integral modes.  Adjust
8375         mem_loc_descriptor callers.
8376         (prune_unused_types): Call prune_unused_types_mark on base_types
8377         vector entries.
8378         (resolve_addr): Call mark_base_types.
8379         (dwarf2out_finish): Call move_marked_base_types.
8380
8381         PR tree-optimization/48809
8382         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
8383         type.
8384         (gen_inbound_check): Don't compute index_expr - range_min in utype
8385         again, instead reuse SSA_NAME initialized in build_arrays.
8386         Remove two useless gsi_for_stmt calls.
8387
8388 2011-04-29  Jeff Law  <law@redhat.com>
8389
8390         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
8391
8392 2011-04-29  Martin Jambor  <mjambor@suse.cz>
8393
8394         * cgraph.h (cgraph_postorder): Remove declaration.
8395         * ipa-utils.h (ipa_free_postorder_info): Declare.
8396         (ipa_reverse_postorder): Likewise.
8397         * cgraphunit.c: Include ipa-utils.h.
8398         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
8399         * ipa-inline.c: Include ipa-utils.h.
8400         (ipa_inline): Update call to ipa_reverse_postorder.
8401         * ipa-pure-const.c (propagate_pure_const): Update call to
8402         ipa_reduced_postorder and ipa_print_order.  Call
8403         ipa_free_postorder_info to clean up.
8404         (propagate_nothrow): Likewise.
8405         * ipa-reference.c (propagate): Removed a useless call to
8406         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
8407         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
8408         * ipa.c: Include ipa-utils.h.
8409         (ipa_profile): Update call to ipa_reverse_postorder.
8410         (cgraph_postorder): Moved to...
8411         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
8412         (ipa_utils_print_order): Renamed to ipa_print_order.
8413         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
8414         comments.
8415         (ipa_free_postorder_info): New function.
8416         * passes.c: Include ipa-utils.h.
8417         (do_per_function_toporder): Update call to ipa_reverse_postorder.
8418         (ipa_write_summaries): Likewise.
8419         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
8420         (cgraphunit.o): Likewise.
8421         (ipa.o): Likewise.
8422         (ipa-inline.o): Likewise.
8423
8424 2011-04-29  Jan Hubicka  <jh@suse.cz>
8425
8426         * gcc.dg/tree-ssa/inline-10.c: New testcase.
8427         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
8428         * ipa-inline.h (clause_t): Turn into unsigned int.
8429         * ipa-inline-analysis.c (add_clause): Do more simplification.
8430         (and_predicates): Shortcut more cases.
8431         (predicates_equal_p): Move forward; check that clauses are properly
8432         ordered.
8433         (or_predicates): Shortcut more cases.
8434         (edge_execution_predicate): Rewrite as...
8435         (set_cond_stmt_execution_predicate): ... this function; handle
8436         __builtin_constant_p.
8437         (set_switch_stmt_execution_predicate): New .
8438         (compute_bb_predicates): New.
8439         (will_be_nonconstant_predicate): Update TODO.
8440         (estimate_function_body_sizes): Use compute_bb_predicates
8441         and free them later, always try to estimate if stmt is constant.
8442         (estimate_time_after_inlining, estimate_size_after_inlining):
8443         Gracefully handle optimized out edges.
8444         (read_predicate): Fix off by one error.
8445
8446 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
8447
8448         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
8449
8450 2011-04-27  Xinliang David Li  <davidxl@google.com>
8451
8452         * tree-profile.c (init_ic_make_global_vars): Set
8453         tls attribute on ic vars.
8454         * coverage.c (coverage_end_function): Initialize
8455         function_list with zero.
8456
8457 2011-04-29  Richard Guenther  <rguenther@suse.de>
8458
8459         * builtins.c (fold_builtin_classify_type): Use integer_type_node
8460         for the type of the result.
8461         (fold_builtin_isascii): Likewise.
8462         (fold_builtin_toascii): Use integer_type_node where appropriate.
8463         (fold_builtin_logb): Likewise.
8464         (fold_builtin_frexp): Likewise.
8465         (fold_builtin_strstr): Likewise.
8466         (fold_builtin_strpbrk): Likewise.
8467         (fold_builtin_fputs): Likewise.
8468         (fold_builtin_sprintf): Likewise.
8469         (fold_builtin_snprintf): Likewise.
8470         (fold_builtin_printf): Likewise.
8471         (do_mpfr_remquo): Use a proper type for the assigned constant.
8472         (do_mpfr_lgamma_r): Likewise.
8473         * dwarf2out.c (resolve_one_addr): Use size_int.
8474         * except.c (init_eh): Likewise.
8475         (assign_filter_values): Use integer_type_node for filter values.
8476         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
8477         indices.
8478         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
8479         for EH region numbers.
8480         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
8481         for the shift amount.
8482
8483 2011-04-29  Richard Guenther  <rguenther@suse.de>
8484
8485         * expr.h (expand_shift): Rename to ...
8486         (expand_variable_shift): ... this.
8487         (expand_shift): Take a constant shift amount.
8488         * expmed.c (expand_shift): Rename to ...
8489         (expand_variable_shift): ... this.
8490         (expand_shift): New wrapper around expand_variable_shift.
8491         * expr.c (convert_move, emit_group_load_1, emit_group_store,
8492         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
8493         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
8494         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
8495         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
8496         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
8497         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
8498         emit_store_flag_1, emit_store_flag): Likewise.
8499         * builtins.c (expand_builtin_signbit): Likewise.
8500         * calls.c (load_register_parameters): Likewise.
8501         * function.c (assign_parm_setup_block): Likewise.
8502         * lower-subreg.c (resolve_shift_zext): Likewise.
8503         * optabs.c (widen_bswap, expand_abs_nojump,
8504         expand_one_cmpl_abs_nojump, expand_float): Likewise.
8505         * spu/spu.c (spu_expand_extv): Likewise.
8506         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
8507
8508 2011-04-29  Richard Guenther  <rguenther@suse.de>
8509
8510         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
8511         for the remapped region number.
8512         * predict.c (build_predict_expr): Use integer_type_node for the
8513         predict kind.
8514         * fold-const.c (fold_binary_loc): Use integer_type_node for
8515         the shift amount.  Use a proper type for the PLUS_EXPR operand.
8516
8517 2011-04-29  Michael Matz  <matz@suse.de>
8518
8519         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
8520         other trees that just builtins.
8521         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
8522
8523 2011-04-29  Richard Guenther  <rguenther@suse.de>
8524
8525         * tree-nested.c (get_trampoline_type): Use size_int.
8526         (get_nl_goto_field): Likewise.
8527         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
8528         for all indexes.
8529         (lower_eh_constructs_2): Likewise.
8530         (lower_resx): Likewise.
8531         (lower_eh_dispatch): Likewise.
8532         * tree-mudflap.c (mf_build_string): Use size_int.
8533         (mudflap_register_call): Use integer_type_node for the flag.
8534         (mudflap_enqueue_constant): Use size_int.
8535         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
8536         instead of rebuilding it.
8537
8538 2011-04-29  Richard Guenther  <rguenther@suse.de>
8539
8540         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
8541         Handle OBJ_TYPE_REF.
8542         (find_func_aliases_for_call): Use it more consistently.
8543
8544 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
8545
8546         * haifa-sched.c (last_nondebug_scheduled_insn): New.
8547         (rank_for_schedule): Use it.
8548         (schedule_block): Set it.
8549
8550 2011-04-28  David Li  <davidxl@google.com>
8551
8552         * tree.c (crc32_string): Use crc32_byte.
8553         (crc32_byte): New function.
8554         * tree.h (crc32_byte): New function.
8555         * gcov.c (read_graph_file): Handle new cfg_cksum.
8556         (read_count_file): Ditto.
8557         * profile.c (instrument_values): Ditto.
8558         (get_exec_counts): Ditto.
8559         (read_profile_edge_counts): Ditto.
8560         (compute_branch_probabilities): Ditto.
8561         (compute_value_histograms): Ditto.
8562         (branch_prob): Ditto.
8563         (end_branch_prob): Ditto.
8564         * coverage.c (read_counts_file): Ditto.
8565         (get_coverage_counts): Ditto.
8566         (tree_coverage_counter_addr): Ditto.
8567         (coverage_checksum_string): Ditto.
8568         (coverage_begin_output): Ditto.
8569         (coverage_end_function): Ditto.
8570         (build_fn_info_type): Ditto.
8571         (build_fn_info_value): Ditto.
8572         * libgcov.c (gcov_exit): Ditto.
8573         * gcov-dump.c (tag_function): Ditto.
8574         (compute_checksum): Remove.
8575
8576 2011-04-29  Alan Modra  <amodra@gmail.com>
8577
8578         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
8579         unspec plus offset.  Tidy macho code.
8580
8581 2011-04-29  Martin Jambor  <mjambor@suse.cz>
8582
8583         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
8584         node instead of a decl.  Update all callers.
8585         * cgraph.h: Update declaration.
8586
8587 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
8588
8589         PR tree-optimization/48765
8590         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
8591         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
8592         to indicate if loop aware SLP is being used.  Scan the statements
8593         and update the vectorization factor according to the type of
8594         vectorization before statement analysis.
8595         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
8596         pass it to vect_analyze_loop_operations.
8597         (vectorizable_reduction): Set number of copies to 1 in case of pure
8598         SLP statement.
8599         * tree-vect-stmts.c (vectorizable_conversion,
8600         vectorizable_assignment, vectorizable_shift,
8601         vectorizable_operation, vectorizable_type_demotion,
8602         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
8603         Likewise.
8604         (vectorizable_condition): Move the check that it is not SLP
8605         vectorization before the number of copies check.
8606         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
8607         to vectorize the loop using SLP.
8608
8609 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
8610
8611         PR middle-end/48597
8612         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
8613         inline asm.
8614
8615 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
8616
8617         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
8618         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
8619         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
8620         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
8621         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
8622         linux*.h headers.
8623         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
8624         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
8625         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
8626         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
8627         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
8628         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
8629         REG_NAME.
8630         * config/i386/linux.h (REG_NAME): Don't define.
8631         * config/i386/linux64.h (REG_NAME): Don't define.
8632         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
8633         Undefine before defining.
8634
8635 2011-04-28  Jan Hubicka  <jh@suse.cz>
8636
8637         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
8638         nonconstant_names array.
8639         (estimate_function_body_sizes): Build nonconstant_names array; handle
8640         BUILT_IN_CONSTANT_P.
8641
8642 2011-04-28  Richard Guenther  <rguenther@suse.de>
8643
8644         PR bootstrap/48804
8645         Revert
8646         2011-04-28  Richard Guenther  <rguenther@suse.de>
8647
8648         * tree-ssa-structalias.c (solve_constraints): Build succ graph
8649         as late as possible.
8650
8651 2011-04-28  Richard Guenther  <rguenther@suse.de>
8652
8653         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
8654         (debug_constraint): Do it here.
8655         (dump_constraints): And here.
8656         (rewrite_constraints): And here.
8657         (dump_constraint_edge): Remove.
8658         (dump_constraint_graph): Rewrite to produce DOT output.
8659         (solve_constraints): Build succ graph as late as possible.
8660         Dump constraint graphs before and after solving.
8661
8662 2011-04-28  Richard Guenther  <rguenther@suse.de>
8663
8664         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8665         New function split out from ...
8666         (find_func_aliases): ... here.  Call it.
8667         (find_func_aliases_for_call): Likewise.
8668
8669 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8670
8671         * internal-fn.h (internal_fn_name_array): Declare.
8672         (internal_fn_flags_array): Likewise.
8673
8674 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
8675
8676         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
8677         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
8678         Move from sse.md.
8679         (ssemodefsuffix): Remove.
8680         (ssevecmodesuffix): New mode attribute.
8681         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
8682         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
8683         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
8684         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
8685         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
8686         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
8687         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
8688         ssemodesuffix mode attribute.
8689         (float splitters): Use ssevecmodesuffix mode attribute.
8690         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
8691         (sseinsmode): Rename from avxvecmode.
8692         (avxsizesuffix): Rename from avxmodesuffix.
8693         (sseintvecmode): Rename from avxpermvecmode.
8694         (ssedoublevecmode): Rename from ssedoublesizemode.
8695         (ssehalfvecmode): Rename from avxhalfvecmode.
8696         (ssescalarmode): Rename from avxscalarmode.
8697         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
8698         templates for ssemodesuffix mode attribute.
8699         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
8700         mode attribute.
8701
8702         Adjust RTX patterns globally for renamed mode attributes.
8703
8704 2011-04-27  Jan Hubcika  <jh@suse.cz>
8705
8706         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
8707         * ipa-inline-analysis.c: Include alloc-pool.h.
8708         (edge_predicate_pool): New.
8709         (trye_predicate_p): New function
8710         (false_predicate_p): New function.
8711         (add_clause): Sanity check that false clauses are "optimized";
8712         never add clauses to predicate that is already known to be false.
8713         (and_predicate): Use flase_predicate_p.
8714         (evaulate_predicate): Rename to ...
8715         (evaluate_predicate): ... this one; update all callers; assert
8716         that false is not listed among possible truths.
8717         (dump_predicate): Use true_predicate_p.
8718         (account_size_time): Use false_predicate_p.
8719         (evaulate_conditions_for_edge): Rename to ...
8720         (evaluate_conditions_for_edge) ... this one.
8721         (edge_set_predicate): New function.
8722         (inline_edge_duplication_hook): Duplicate edge predicates.
8723         (inline_edge_removal_hook): Free edge predicates.
8724         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
8725         (dump_inline_summary): Update.
8726         (estimate_function_body_sizes): Set edge predicates.
8727         (estimate_calls_size_and_time): Handle predicates.
8728         (estimate_callee_size_and_time): Update.
8729         (remap_predicate): Add toplev_predicate; update comment.
8730         (remap_edge_predicates): New function.
8731         (inline_merge_summary): Compute toplev predicate; update.
8732         (read_predicate): New function.
8733         (read_inline_edge_summary): Use it.
8734         (inline_read_section): Likewise.
8735         (write_predicate): New function.
8736         (write_inline_edge_summary): Use it.
8737         (inline_write_summary): Likewise.
8738         (inline_free_summary): Free alloc pool and edge summary vec.
8739
8740 2011-04-27  Richard Guenther  <rguenther@suse.de>
8741
8742         * tree-ssa-structalias.c (changed_count): Remove.
8743         (changed): Use a bitmap.
8744         (unify_nodes): Adjust.
8745         (do_sd_constraint): Likewise.
8746         (do_ds_constraint): Likewise.
8747         (do_complex_constraint): Likewise.
8748         (solve_graph): Likewise.
8749
8750 2011-04-27  Jan Hubicka  <jh@suse.cz>
8751
8752         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
8753
8754 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
8755
8756         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
8757         (avx_vperm2f128_*_operand): Ditto.
8758         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
8759         Use avx_vpermilp_parallel in insn condition.
8760         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
8761         Use avx_vperm2f128_parallel in insn condition.
8762
8763 2011-04-27  Richard Guenther  <rguenther@suse.de>
8764
8765         * Makefile.in (tree-ssa-structalias.o): Remove
8766         gt-tree-ssa-structalias.h dependency.
8767         (GTFILES): Remove tree-ssa-structalias.c.
8768         * tree.c (allocate_decl_uid): New function.
8769         (make_node_stat): Use it.
8770         (copy_node_stat): Likewise.
8771         * tree.h (allocate_decl_uid): Declare.
8772         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
8773         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
8774         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
8775         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
8776         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
8777         (struct heapvar_map): Likewise.
8778         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
8779         heapvar_insert): Likewise.
8780         (make_heapvar_for): Rename to ...
8781         (make_heapvar): ... this.  Simplify.
8782         (fake_var_decl_obstack): New global var.
8783         (build_fake_var_decl): New function.
8784         (make_constraint_from_heapvar): Adjust.
8785         (handle_lhs_call): Likewise.
8786         (create_function_info_for): Likewise.
8787         (intra_create_variable_infos): Likewise.
8788         (init_alias_vars): Allocate fake_var_decl_obstack.
8789         (init_alias_heapvars, delete_alias_heapvars): Remove.
8790         (compute_points_to_sets): Do not call init_alias_heapvars.
8791         (ipa_pta_execute): Likewise.
8792         (delete_points_to_sets): Free fake_var_decl_obstack.
8793
8794 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8795
8796         * config/spu/divmovti4.c (union qword_UTItype): New data type.
8797         (si_from_UTItype, si_to_UTItype): New functions.
8798         (__udivmodti4): Use them to implement type-punning.
8799         * config/spu/multi3.c (union qword_TItype): New data type.
8800         (si_from_TItype, si_to_TItype): New functions.
8801         (__multi3): Use them to implement type-punning.
8802
8803 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8804
8805         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
8806
8807 2011-04-27  Jan Hubicka  <jh@suse.cz>
8808
8809         * ipa-prop.c (function_insertion_hook_holder): New holder.
8810         (ipa_add_new_function): New function.
8811         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
8812         Register/deregister holder.
8813
8814 2011-04-27  Richard Guenther  <rguenther@suse.de>
8815
8816         PR tree-optimization/48772
8817         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
8818
8819 2011-04-27  Richard Guenther  <rguenther@suse.de>
8820
8821         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
8822         TARGET_MEM_REF handling.
8823
8824 2011-04-27  Nick Clifton  <nickc@redhat.com>
8825
8826         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
8827         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
8828         (REG_CLASS_NAMES): Likewise.
8829         (REG_CLASS_CONTENTS): Likewise.
8830         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
8831         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
8832         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
8833         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
8834         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
8835         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
8836         duplicate register classes.
8837         (frv_class_likely_spilled_p): Likewise.
8838         (frv_register_move_cost): Likewise.
8839
8840         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
8841         end of the regno_reg_class array.
8842
8843 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
8844
8845         PR c/48742
8846         * c-typeck.c (build_binary_op): Don't wrap arguments if
8847         int_operands is true.
8848
8849 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
8850
8851         PR target/48767
8852         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
8853         targetm.calls.must_pass_in_stack for void type.
8854
8855 2011-04-26  Jan Hubicka  <jh@suse.cz>
8856
8857         * cgraphbuild.c (build_cgraph_edges): Update call
8858         of cgraph_create_edge and cgraph_create_indirect_edge.
8859         * cgraph.c (cgraph_create_edge_including_clones,
8860         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
8861         cgraph_update_edges_for_call_stmt_node): Do not take nest
8862         argument; do not initialize call_stmt_size/time.
8863         (dump_cgraph_node): Do not dump nest.
8864         (cgraph_clone_edge): Do not take loop_nest argument;
8865         do not propagate it; do not clone call_stmt_size/time.
8866         (cgraph_clone_node): Likewise.
8867         (cgraph_create_virtual_clone): Update.
8868         * cgraph.h (struct cgraph_edge): Remove
8869         call_stmt_size/call_stmt_time/loop_nest.
8870         (cgraph_create_edge, cgraph_create_indirect_edge,
8871         cgraph_create_edge_including_clones, cgraph_clone_node): Update
8872         prototype.
8873         * tree-emutls.c (gen_emutls_addr): Update.
8874         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
8875         loop_nest; handle indirect calls, too.
8876         (clone_inlined_nodes): Do not care about updating inline summaries.
8877         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
8878         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
8879         stream call_stmt_size/call_stmt_time/loop_nest.
8880         * ipa-inline.c (edge_badness): Update.
8881         (ipa_inline): dump summaries after inlining.
8882         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
8883         New.
8884         (inline_edge_summary): New function.
8885         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
8886         (inline_edge_removal_hook): Handle edge summaries.
8887         (inline_edge_duplication_hook): New hook.
8888         (inline_summary_alloc): Alloc hooks.
8889         (initialize_growth_caches): Do not register removal hooks.
8890         (free_growth_caches); Do not free removal hook.
8891         (dump_inline_edge_summary): New function.
8892         (dump_inline_summary): Use it.
8893         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
8894         (inline_update_callee_summaries): New function.
8895         (inline_merge_summary): Use it.
8896         (do_estimate_edge_time, do_estimate_edge_growth): Update.
8897         (read_inline_edge_summary): New function.
8898         (inline_read_section): Use it.
8899         (write_inline_edge_summary): New function.
8900         (inline_write_summary): Use it.
8901         (inline_free_summary): Free edge new holders.
8902         * tree-inline.c (copy_bb): Update.
8903
8904 2011-04-26  Jason Merrill  <jason@redhat.com>
8905
8906         * tree-eh.c (lower_try_finally_switch): Create the label along with
8907         the CASE_LABEL_EXPR.
8908
8909 2011-04-26  David S. Miller  <davem@davemloft.net>
8910             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8911
8912         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
8913         * configure: Regenerate.
8914
8915 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
8916
8917         PR target/48258
8918         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
8919         reduction.
8920         (VEC_reduc): New code iterator and splitters for vector reduction.
8921         (VEC_reduc_name): Ditto.
8922         (VEC_reduc_rtx): Ditto.
8923         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
8924         (reduc_<VEC_reduc_name>_v4sf): Ditto.
8925
8926         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
8927         support for extracting SF on VSX.
8928
8929         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
8930         generating xscvspdp.
8931         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
8932         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
8933         double add, minimum, maximum vector reduction.
8934         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
8935         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
8936         optimize double vector reduction.
8937         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
8938
8939 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
8940
8941         * config/fr30/fr30.h (inhibit_libc): Don't define.
8942         * config/m32r/m32r-protos.h: Correct comment.
8943         * config/v850/v850.h (GHS_default_section_names,
8944         GHS_current_section_names): Use tree, not union tree_node *.
8945
8946 2011-04-26  Xinliang David Li  <davidxl@google.com>
8947
8948         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
8949         * c-family/c-opts.c (c_common_handle_option): Set
8950         warn_maybe_uninitialized.
8951         * opts.c (common_handle_option): Ditto.
8952         * common.opt:  New option.
8953         * tree-ssa.c (warn_uninit): Add one more parameter.
8954         (warn_uninitialized_var): Pass warning code.
8955         * tree-flow.h: Interface change.
8956
8957 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8958
8959         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
8960         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
8961         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
8962
8963 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8964
8965         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
8966         * config/mips/mips.opt (mmips-tfile): Remove.
8967
8968         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
8969         mips-tdump reference to ...
8970         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
8971         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
8972         reference by Tru64 UNIX.
8973
8974 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
8975
8976         PR debug/48768
8977         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
8978         is error_mark_node, set value to NULL.
8979
8980         PR tree-optimization/48734
8981         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
8982         if return value from maybe_fold_*_comparsions isn't something
8983         the code is prepared to handle.
8984
8985 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
8986
8987         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
8988         mode check.
8989         (ext_QIreg_nomode_operands): Remove.
8990         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
8991         (*andsi_1): Ditto.
8992         (*andhi_1): Ditto.
8993
8994 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
8995
8996         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
8997
8998 2011-04-26  Richard Guenther  <rguenther@suse.de>
8999
9000         * c-typeck.c (build_unary_op): Do not expand array-refs via
9001         pointer arithmetic.  Only adjust qualifiers for function types.
9002
9003 2011-04-26  Richard Guenther  <rguenther@suse.de>
9004
9005         PR middle-end/48694
9006         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
9007         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
9008         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
9009         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
9010
9011 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
9012
9013         * doc/extend.texi: Document __underlying_type.
9014
9015 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
9016
9017         * config/rs6000/titan.md (automata_option "progress"): Remove.
9018
9019 2011-04-25  Jeff Law  <law@redhat.com>
9020
9021         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
9022
9023 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
9024
9025         * system.h (ENUM_BITFIELD): Remove.
9026
9027 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
9028             Eric Botcazou  <ebotcazou@adacore.com>
9029
9030         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
9031         for STORE_FLAG_VALUE==-1 case.
9032
9033 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
9034
9035         PR target/43804
9036         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
9037         LEGITIMATE_PIC_OPERAND_P.
9038
9039 2011-04-24  Jan Hubicka  <jh@suse.cz>
9040
9041         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
9042         WPA hack.
9043         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
9044         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
9045         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
9046         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
9047         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
9048         Sanity check predicate length.
9049         (remap_predicate): Likewise; sanity check jump functions.
9050         (inline_read_section, inline_write_summary): Sanity check
9051         predicate length.
9052
9053 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
9054
9055         PR other/48748
9056         * doc/extend.texi (Type Traits): Document __is_standard_layout,
9057         __is_literal_type, and __is_trivial; update throughout about
9058         possibly cv-qualified void types.
9059
9060 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
9061
9062         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
9063         testsuite and make it version agnostic.
9064
9065 2011-04-22  Jan Hubicka  <jh@suse.cz>
9066
9067         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
9068
9069 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
9070
9071         PR c/48685
9072         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
9073         to VOID_TYPE even around MODIFY_EXPR.
9074
9075 2011-04-22  Mike Stump  <mikestump@comcast.net>
9076
9077         * gensupport.c (read_md_rtx): Fix typo in comment.
9078         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
9079         comment.
9080
9081 2011-04-22  Jan Hubicka  <jh@suse.cz>
9082
9083         * gengtype.c (open_base_files): Add ipa-inline.h include.
9084         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
9085         ipa-prop.c; update all uses.
9086         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
9087         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
9088         merge summary of inlined function into former caller.
9089         * ipa-inline.c (max_benefit): Remove.
9090         (edge_badness): Compensate for removal of benefits.
9091         (update_caller_keys): Use
9092         reset_node_growth_cache/reset_edge_growth_cache.
9093         (update_callee_keys): Likewise.
9094         (update_all_callee_keys): Likewise.
9095         (inline_small_functions): Do not collect max_benefit; do not reset
9096         estimated_growth; call free_growth_caches and initialize_growth_caches.
9097         * ipa-inline.h (struct condition, type clause_t, struct predicate,
9098         struct size_time_entry): New structures.
9099         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
9100         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
9101         and estimated_growth.
9102         (edge_growth_cache_entry): New structure.
9103         (node_growth_cache, edge_growth_cache): New global vars.
9104         (estimate_growth): Turn into inline.
9105         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
9106         initialize_growth_caches, free_growth_caches): Declare.
9107         (estimate_edge_growth): Rewrite.
9108         (estimate_edge_time): Implement as inline cache lookup.
9109         (reset_node_growth_cache, reset_edge_growth_cache): New inline
9110         functions.
9111         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
9112         (NUM_CONDITIONS): New constant.
9113         (predicate_conditions): New enum.
9114         (IS_NOT_CONSTANT): New constant.
9115         (edge_removal_hook_holder): New var.
9116         (node_growth_cache, edge_growth_cache): New global vars.
9117         (true_predicate, single_cond_predicate, false_predicate,
9118         not_inlined_predicate, add_condition, add_clause, and_predicates,
9119         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
9120         dump_clause, dump_predicate, account_size_time,
9121         evaulate_conditions_for_edge): New functions.
9122         (inline_summary_alloc): Move to heap.
9123         (inline_node_removal_hook): Clear condition and entry vectors.
9124         (inline_edge_removal_hook): New function.
9125         (initialize_growth_caches, free_growth_caches): New function.
9126         (dump_inline_summary): Update.
9127         (edge_execution_predicate): New function.
9128         (will_be_nonconstant_predicate): New function.
9129         (estimate_function_body_sizes): Compute BB and constantness predicates.
9130         (compute_inline_parameters): Do not clear estimated_growth.
9131         (estimate_edge_size_and_time): New function.
9132         (estimate_calls_size_and_time): New function.
9133         (estimate_callee_size_and_time): New function.
9134         (remap_predicate): New function.
9135         (inline_merge_summary): New function.
9136         (do_estimate_edge_time): New function based on...
9137         (estimate_edge_time): ... this one.
9138         (do_estimate_edge_growth): New function.
9139         (do_estimate_growth): New function based on....
9140         (estimate_growth): ... this one.
9141         (inline_analyze_function): Analyze after deciding on jump functions.
9142         (inline_read_section): New function.
9143         (inline_read_summary): Use it.
9144         (inline_write_summary): Write all the new data.
9145         * ipa-prop.c (ipa_get_param_decl_index): Export.
9146         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
9147         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
9148         Declare.
9149         (ipa_get_lattice): Move here from ipa-cp.c
9150         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
9151         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
9152         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
9153         cgraph_edge_inlinable_p): Remove.
9154         * cgraphunit.c: Include ipainline.h
9155         (cgraph_process_new_functions): Update call of
9156         compute_inline_parameters.
9157
9158 2011-04-22  Richard Guenther  <rguenther@suse.de>
9159
9160         * tree.c (build_int_cst): Properly create canonicalized integer
9161         constants.
9162         (build_int_cst_type): Remove scary comments.
9163
9164 2011-04-22  Xinliang David Li  <davidxl@google.com>
9165
9166         * toplev.c (process_options): Enable -Werror=coverage-mismatch
9167         by default when -Wno-error is not specified.
9168         * opts-global.c (decode_options): Remove call to
9169         control_warning_options.
9170
9171 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
9172
9173         PR tree-optimization/48717
9174         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
9175         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
9176
9177 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
9178
9179         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
9180         definition where used.
9181
9182 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
9183
9184         PR c/48716
9185         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
9186         TREE_STATIC variables declared inside of some OpenMP construct.
9187
9188 2011-04-22  Martin Jambor  <mjambor@suse.cz>
9189
9190         PR middle-end/48585
9191         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
9192
9193 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
9194
9195         PR c/36750
9196         * c-typeck.c (pop_init_level): Do not warn about initializing
9197         with ` = {0}'.
9198
9199 2011-04-22  Alan Modra  <amodra@gmail.com>
9200
9201         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
9202         when returning call_cookie.
9203         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
9204         pointers, to functions with no more vector args than the current
9205         function, and some non-local calls for ABI_V4.
9206         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
9207         sibcall_nonlocal_aix64): Combine to ..
9208         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
9209         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
9210         (sibcall_value_nonlocal_aix<mode>): ..likewise.
9211         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
9212         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
9213         operand.
9214         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
9215         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
9216         sibcall_value_symbolic_64): Delete.
9217
9218 2011-04-21  Xinliang David Li  <davidxl@google.com>
9219
9220         * cgraph.h: Remove pid.
9221         * cgraph.c: Remove pid.
9222         * value-prof.c (init_node_map): New function.
9223         (del_node_map): New function.
9224         (find_func_by_funcdef_no): New function.
9225         (gimple_ic_transform): Call new function.
9226         * cgraphunit.c (cgraph_finalize_function): Remove pid.
9227         * function.c (get_last_funcdef_no): New function.
9228         * function.h (get_last_funcdef_no): New function.
9229         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
9230         to libgcov function.
9231         (tree-profiling): Call node map init and delete function.
9232
9233 2011-04-21  Ian Lance Taylor  <iant@google.com>
9234
9235         * godump.c (go_format_type): Use exported Go name for anonymous
9236         field name.
9237
9238 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
9239
9240         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
9241         Call builtin_function_type_list instead of builtin_function_type.
9242         (UNARY, BINARY, TRINARY, QUAD): Likewise.
9243
9244 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
9245
9246         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
9247         build_function_type_list instead of build_function_type.
9248         Delete variable `endlink'.
9249
9250 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
9251
9252         * config/s390/s390.c (s390_init_builtins): Call
9253         build_function_type_list instead of build_function_type.
9254
9255 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
9256
9257         * config/ia64/ia64.c (ia64_init_builtins): Call
9258         build_function_type_list instead of builtin_function_type.
9259
9260 2011-04-21  Easwaran Raman  <eraman@google.com>
9261
9262         * cfgexpand.c (stack_var): Remove OFFSET...
9263         (add_stack_var): ...and its reference here...
9264         (expand_stack_vars): ...and here.
9265         (stack_var_cmp): Sort by descending order of size.
9266         (partition_stack_vars): Change heuristic.
9267         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
9268         (dump_stack_var_partition): Add newline after each partition.
9269
9270 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
9271             Jeff Law  <law@redhat.com>
9272
9273         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
9274         * gengtype.c (matching_file_name_substitute): Likewise.
9275
9276 2011-04-21  Richard Guenther  <rguenther@suse.de>
9277
9278         PR lto/48703
9279         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
9280
9281 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
9282
9283         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
9284
9285 2011-04-21  Richard Guenther  <rguenther@suse.de>
9286
9287         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
9288         file name.
9289
9290 2011-04-21  Richard Guenther  <rguenther@suse.de>
9291
9292         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
9293         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
9294         Use DECL_P, not SSA_VAR_P.
9295         (ptr_derefs_may_alias_p): Likewise.
9296         (ptr_deref_may_alias_ref_p_1): Likewise.
9297         (decl_refs_may_alias_p): Likewise.
9298         (refs_may_alias_p_1): Likewise.
9299         (ref_maybe_used_by_call_p_1): Likewise.
9300         (call_may_clobber_ref_p_1): Likewise.
9301         (indirect_ref_may_alias_decl_p): Assume indirect refrences
9302         are either MEM_REF or TARGET_MEM_REF.
9303         (indirect_refs_may_alias_p): Likewise.
9304         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
9305         for MEM_EXPR of indirect calls.
9306
9307 2011-04-21  Tristan Gingold  <gingold@adacore.com>
9308
9309         * vmsdbgout.c (write_srccorr): Compute file length from the string.
9310         (dst_file_info_struct): Remove flen field.
9311         (lookup_filename): Remove code that set flen field.
9312
9313 2011-04-21  Tristan Gingold  <gingold@adacore.com>
9314
9315         * config/ia64/ia64.c (ia64_start_function): Add a guard.
9316
9317 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
9318
9319         PR target/48708
9320         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
9321         vec_extract and vec_concat for non-SSE4_1 targets.
9322
9323 2011-04-21  Richard Guenther  <rguenther@suse.de>
9324
9325         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
9326         return statements.
9327
9328 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
9329
9330         * config/i386/cygming.h (union tree_node, TREE): Don't define or
9331         undefine.
9332         (FILE): Don't undefine.
9333
9334 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
9335
9336         * config/alpha/alpha.c (struct machine_function): Use rtx, not
9337         struct rtx_def *.
9338         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
9339         struct rtx_def *.
9340         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
9341         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
9342         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
9343         rtx_def *.
9344         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
9345         definitions where used.
9346         * config/microblaze/microblaze.h (struct microblaze_args): Use
9347         rtx, not struct rtx_def *.
9348         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
9349         rtx_def *.
9350         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
9351         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
9352         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
9353         not struct rtx_def *.
9354         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
9355         struct rtx_def *.
9356         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
9357         rtx_def *.
9358         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
9359
9360 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
9361
9362         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
9363         operand_equal_p to compare DR_BASE_ADDRESSes.
9364         (vect_check_interleaving): Likewise.
9365
9366 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
9367
9368         PR target/46329
9369         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
9370         for all Neon struct constants.
9371
9372 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
9373
9374         * target.def (legitimate_constant_p): New hook.
9375         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
9376         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
9377         * doc/tm.texi: Regenerate.
9378         * hooks.h (hook_bool_mode_rtx_true): Declare.
9379         * hooks.c (hook_bool_mode_rtx_true): Define.
9380         * system.h (LEGITIMATE_CONSTANT_P): Poison.
9381         * calls.c (precompute_register_parameters): Replace uses of
9382         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
9383         (emit_library_call_value_1): Likewise.
9384         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
9385         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
9386         * ira-costs.c (scan_one_insn): Likewise.
9387         * recog.c (general_operand, immediate_operand): Likewise.
9388         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
9389         * reload1.c (init_eliminable_invariants): Likewise.
9390
9391         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
9392         mode argument.
9393         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
9394         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
9395         argument.
9396         (TARGET_LEGITIMATE_CONSTANT_P): Define.
9397         * config/alpha/predicates.md (input_operand): Update call to
9398         alpha_legitimate_constant_p.
9399
9400         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
9401         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
9402         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
9403         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9404         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
9405         (arm_legitimate_constant_p): New functions.
9406         (arm_cannot_force_const_mem): Make static.
9407
9408         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
9409
9410         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
9411         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
9412         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
9413         instead of bfin_legitimate_constant_p.
9414         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
9415         (TARGET_LEGITIMATE_CONSTANT_P): Define.
9416
9417         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
9418
9419         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
9420
9421         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
9422         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
9423         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9424         (frv_legitimate_constant_p): Make static.  Add a mode argument.
9425
9426         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
9427         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
9428         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
9429
9430         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
9431         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
9432         * config/i386/i386.c (legitimate_constant_p): Rename to...
9433         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
9434         argument.
9435         (ix86_cannot_force_const_mem): Update accordingly.
9436         (ix86_legitimate_address_p): Likewise.
9437         (TARGET_LEGITIMATE_CONSTANT_P): Define.
9438         * config/i386/i386.md: Update commentary.
9439
9440         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
9441         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
9442         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9443         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
9444
9445         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
9446
9447         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
9448         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
9449         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9450         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
9451
9452         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
9453         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
9454         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
9455
9456         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
9457         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9458         (m32r_legitimate_constant_p): New function.
9459
9460         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
9461         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
9462         LEGITIMATE_CONSTANT_P.
9463         (LEGITIMATE_CONSTANT_P): Delete.
9464         * config/m68k/m68k.c (m68k_expand_prologue): Call
9465         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
9466         (m68k_legitimate_constant_p): New function.
9467         * config/m68k/m68k.md: Update comments.
9468
9469         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
9470         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9471         (mcore_legitimate_constant_p): New function.
9472
9473         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
9474         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
9475         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
9476         Add a mode argument.
9477         (mep_legitimate_address): Update accordingly.
9478         (TARGET_LEGITIMATE_CONSTANT_P): Define.
9479
9480         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
9481         Delete.
9482         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
9483         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
9484         static.  Check OP's mode for VOIDmode.
9485         (microblaze_legitimate_constant_p): New function.
9486         (TARGET_LEGITIMATE_CONSTANT_P): Define.
9487
9488         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
9489         * config/mips/mips.c (mips_legitimate_constant_p): New function.
9490         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
9491         (TARGET_LEGITIMATE_CONSTANT_P): Define.
9492         * config/mips/predicates.md: Update comments.
9493
9494         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
9495         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
9496         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9497         (mmix_legitimate_constant_p): Make static, return a bool, and take
9498         a mode argument.
9499         (mmix_print_operand_address): Update accordingly.
9500
9501         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
9502         Delete.
9503         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
9504         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
9505         static.  Add a mode argument.
9506         (TARGET_LEGITIMATE_CONSTANT_P): Define.
9507
9508         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
9509
9510         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
9511         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9512         (pa_legitimate_constant_p): New function.
9513
9514         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
9515
9516         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
9517         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9518         (pdp11_legitimate_constant_p): New function.
9519
9520         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
9521         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9522         (rs6000_legitimate_constant_p): New function.
9523
9524         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
9525         (rx_legitimate_constant_p): ...this.
9526         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
9527         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
9528         (rx_legitimate_constant_p): ...this.
9529         (TARGET_LEGITIMATE_CONSTANT_P): Define.
9530         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
9531
9532         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
9533         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
9534         * config/s390/s390.c (legitimate_constant_p): Rename to...
9535         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
9536         and add a mode argument.
9537         (TARGET_LEGITIMATE_CONSTANT_P): Define.
9538
9539         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
9540
9541         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
9542         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9543         (sh_legitimate_constant_p): New function.
9544
9545         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
9546         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
9547         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9548         (legitimate_constant_p): Rename to...
9549         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
9550         argument.
9551         (constant_address_p): Update accordingly.
9552
9553         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
9554         argument and return a bool.
9555         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
9556         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9557         (spu_legitimate_constant_p): Add a mode argument and return a bool.
9558         (spu_rtx_costs): Update accordingly.
9559         * config/spu/predicates.md (vec_imm_operand): Likewise.
9560
9561         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
9562
9563         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
9564         * config/v850/v850.c (v850_legitimate_constant_p): New function.
9565         (TARGET_LEGITIMATE_CONSTANT_P): Define.
9566
9567         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
9568         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
9569         * config/vax/vax.c (legitimate_constant_p): Likewise.
9570
9571         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
9572         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9573         (xtensa_legitimate_constant_p): New function.
9574
9575 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
9576
9577         * target.def (cannot_force_const_mem): Add a mode argument.
9578         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
9579         * doc/tm.texi: Regenerate.
9580         * hooks.h (hook_bool_mode_rtx_false): Declare.
9581         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
9582         (hook_bool_mode_const_rtx_true): Likewise.
9583         (hook_bool_mode_rtx_false): New function.
9584         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
9585         to be non-VOID.  Update call to cannot_force_const_mem.
9586         (find_reloads): Update accordingly.
9587         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
9588         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
9589         argument.
9590         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
9591         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
9592         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
9593         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
9594         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
9595         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
9596         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
9597         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
9598         (m68k_cannot_force_const_mem): ...this new function.
9599         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
9600         argument.
9601         (mips_const_insns, mips_legitimize_const_move): Update calls.
9602         (mips_secondary_reload_class): Likewise.
9603         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
9604         (pa_cannot_force_const_mem): ...this new function.
9605         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
9606         (rs6000_cannot_force_const_mem): ...this new function.
9607         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
9608         argument.
9609         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
9610         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
9611         to...
9612         (xtensa_cannot_force_const_mem): ...this new function.
9613
9614 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
9615
9616         * config/mips/mips.c (mips16_build_function_stub): Call
9617         build_function_type_list instead of build_function_type.
9618         (mips16_build_call_stub): Likewise.
9619
9620 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
9621
9622         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
9623         instead of build_function_type.
9624
9625 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
9626
9627         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
9628         instead of build_function_type.
9629
9630 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
9631
9632         PR target/48678
9633         * config/i386/i386.md (insv): Change operand 0 constraint to
9634         "register_operand".  Change operand 1 and 2 constraint to
9635         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
9636         * config/i386/sse.md (sse4_1_pinsrb): Export.
9637         (sse2_pinsrw): Ditto.
9638         (sse4_1_pinsrd): Ditto.
9639         (sse4_1_pinsrq): Ditto.
9640         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
9641         * config/i386/i386.c (ix86_expand_pinsr): New.
9642
9643 2011-04-20  Easwaran Raman  <eraman@google.com>
9644
9645         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
9646         containing union type only with -fstrict-aliasing.
9647
9648 2011-04-20  Jim Meyering  <meyering@redhat.com>
9649
9650         Remove useless if-before-free tests.
9651         * calls.c (expand_call, save_area): Likewise.
9652         * cfgcleanup.c (try_forward_edges): Likewise.
9653         * collect2.c (collect_execute): Likewise.
9654         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
9655         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
9656         * coverage.c (coverage_checksum_string): Likewise.
9657         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
9658         * cselib.c (cselib_init): Likewise.
9659         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
9660         (df_set_clean_cfg): Likewise.
9661         * function.c (free_after_compilation): Likewise.
9662         * gcc.c (do_spec_1, main): Likewise.
9663         * gcov.c (create_file_names): Likewise.
9664         * gensupport.c (identify_predicable_attribute): Likewise.
9665         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
9666         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
9667         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
9668         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
9669         * ipa-pure-const.c (local_pure_const): Likewise.
9670         * ipa-reference.c (propagate): Likewise.
9671         * ira-costs.c (free_ira_costs): Likewise.
9672         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
9673         * matrix-reorg.c (mat_free): Likewise.
9674         * prefix.c (get_key_value): Likewise.
9675         * profile.c (compute_value_histograms): Likewise.
9676         * reload1.c (free_reg_equiv): Likewise.
9677         * sched-deps.c (free_deps): Likewise.
9678         * sel-sched-ir.c (fence_clear): Likewise.
9679         * sese.c (set_rename, if_region_set_false_region): Likewise.
9680         * tree-data-ref.c (free_rdg): Likewise.
9681         * tree-eh.c (lower_try_finally): Likewise.
9682         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
9683         * tree-ssa-live.c (delete_var_map): Likewise.
9684         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
9685         * tree-ssa-pre.c (phi_trans_add): Likewise.
9686
9687 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
9688
9689         PR tree-optimization/48611
9690         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
9691         beyond ERT_MUST_NOT_THROW region.
9692
9693 2011-04-20  Catherine Moore  <clm@codesourcery.com>
9694
9695         * config/mips/mips.opt (mfix-24k): New.
9696         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
9697         * config/mips/mips.md (length): Increase by 4 for stores if
9698         fixing 24K errata.
9699         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
9700         all noreorder if fixing 24K errata.
9701         * doc/invoke.texi: Document mfix-24k.
9702
9703 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
9704
9705         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
9706         quad-word modes, reduce to 9-bit index range when above 1016 limit.
9707
9708 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
9709
9710         * config/arm/arm.c (arm_gen_constant): Move movw support ....
9711         (const_ok_for_op): ... to here.
9712
9713 2011-04-20  Kai Tietz  <ktietz@redhat.com>
9714
9715         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
9716         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
9717
9718 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
9719
9720         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
9721
9722 2011-04-20  Richard Guenther  <rguenther@suse.de>
9723
9724         PR tree-optimization/47892
9725         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
9726         are if-convertible.
9727
9728 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
9729
9730         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
9731
9732 2011-04-20  Tristan Gingold  <gingold@adacore.com>
9733
9734         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
9735
9736 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
9737
9738         PR target/18145
9739
9740         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
9741         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
9742         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
9743         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
9744         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
9745
9746         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
9747         New prototype.
9748
9749         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
9750         (avr_asm_named_section, avr_asm_output_aligned_common,
9751         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
9752         New functions to update...
9753         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
9754         (avr_asm_init_sections): Overwrite section callbacks for
9755         data_section, bss_section.
9756         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
9757         from here to...
9758         (avr_file_end): ...here.
9759
9760 2011-04-20  Richard Guenther  <rguenther@suse.de>
9761
9762         PR middle-end/48695
9763         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
9764         objects and types here.  Adjust for their offset before comparing.
9765
9766 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
9767
9768         * tree-vect-stmts.c (vectorizable_store): Only chain one related
9769         statement per copy.
9770
9771 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
9772
9773         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
9774         (GIMPLE_H): Include $(INTERNAL_FN_H).
9775         (OBJS-common): Add internal-fn.o.
9776         (internal-fn.o): New rule.
9777         * internal-fn.def: New file.
9778         * internal-fn.h: Likewise.
9779         * internal-fn.c: Likewise.
9780         * gimple.h: Include internal-fn.h.
9781         (GF_CALL_INTERNAL): New gf_mask.
9782         (gimple_statement_call): Put fntype into a union with a new
9783         internal_fn field.
9784         (gimple_build_call_internal): Declare.
9785         (gimple_build_call_internal_vec): Likewise.
9786         (gimple_call_same_target_p): Likewise.
9787         (gimple_call_internal_p): New function.
9788         (gimple_call_internal_fn): Likewise.
9789         (gimple_call_fntype): Return null for internal calls.
9790         (gimple_call_set_fntype): Assert that the function is not internal.
9791         (gimple_call_set_fn): Likewise.
9792         (gimple_call_set_fndecl): Likewise.
9793         (gimple_call_set_internal_fn): New function.
9794         (gimple_call_addr_fndecl): Handle null functions.
9795         (gimple_call_return_type): Likewise null types.
9796         * gimple.c (gimple_build_call_internal_1): New function.
9797         (gimple_build_call_internal): Likewise.
9798         (gimple_build_call_internal_vec): Likewise.
9799         (gimple_call_same_target_p): Likewise.
9800         (gimple_call_flags): Handle calls to internal functions.
9801         (gimple_call_fnspec): New function.
9802         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
9803         (gimple_has_side_effects): Handle null functions.
9804         (gimple_rhs_has_side_effects): Likewise.
9805         (gimple_call_copy_skip_args): Handle calls to internal functions.
9806         * cfgexpand.c (expand_call_stmt): Likewise.
9807         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
9808         * gimple-fold.c (gimple_fold_call): Handle null functions.
9809         (gimple_fold_stmt_to_constant_1): Don't fold
9810         calls to internal functions.
9811         * gimple-low.c (gimple_check_call_args): Handle calls to internal
9812         functions.
9813         * gimple-pretty-print.c (dump_gimple_call): Likewise.
9814         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
9815         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
9816         (do_warn_unused_result): Likewise.
9817         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
9818         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
9819         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
9820         the target of a call.
9821         (initialize_hash_element): Update accordingly.
9822         (hashable_expr_equal_p): Use gimple_call_same_target_p.
9823         (iterative_hash_hashable_expr): Handle calls to internal functions.
9824         (print_expr_hash_elt): Likewise.
9825         * tree-ssa-pre.c (can_value_number_call): Likewise.
9826         (eliminate): Handle null functions.
9827         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
9828         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
9829         (find_func_aliases): Likewise.
9830         * value-prof.c (gimple_ic_transform): Likewise.
9831         (gimple_indirect_call_to_profile): Likewise.
9832         * lto-streamer-in.c (input_gimple_stmt): Likewise.
9833         * lto-streamer-out.c (output_gimple_stmt): Likewise.
9834
9835 2011-04-19  Jan Hubicka  <jh@suse.cz>
9836
9837         * ipa-inline-transform.c (save_inline_function_body): Add comments.
9838         * ipa-inline.c (inline_small_functions): Compute summaries first,
9839         populate heap later.
9840
9841 2011-04-19  Jan Hubicka  <jh@suse.cz>
9842
9843         * cgraph.h (save_inline_function_body): Remove.
9844         * ipa-inline-transform.c: New file, broke out of...
9845         * ipa-inline.c: ... this one; Update toplevel comment.
9846         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
9847         make global.
9848         (update_noncloned_frequencies): Move to ipa-inline-transform.c
9849         (cgraph_mark_inline_edge): Rename to inline_call; move to
9850         ipa-inline-transform.c.
9851         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
9852         move to ipa-inline-transform.c
9853         (recursive_inlining, inline_small_functions, flatten_function,
9854         ipa_inline, inline_always_inline_functions,
9855         early_inline_small_functions): Update.
9856         (inline_transform): Move to ipa-inline-transform.c.
9857         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
9858         Declare.
9859         * Makefile.in (ipa-inline-transform.o): New file.
9860         * cgraphunit.c (save_inline_function_body): Move to
9861         ipa-inline-transform.c
9862
9863 2011-04-19  DJ Delorie  <dj@redhat.com>
9864
9865         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
9866         registers if we already know there aren't any.
9867         (m32c_emit_epilogue): Don't emit a barrier here.
9868         (m32c_emit_eh_epilogue): Likewise.
9869         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
9870         operands at expand time.
9871         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
9872         int" wchar type.
9873         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
9874         duplicates.  Provide aliases instead.
9875         * config/m32c/prologue.md (eh_return): Emit a barrier here.
9876         (eh_epilogue): Add a "(return)" here as a hint to other parts of
9877         the compiler.
9878
9879 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
9880
9881         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
9882         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
9883         (general_or_i64_p, sparc_register_move_cost): New function.
9884
9885 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9886
9887         * doc/install.texi (Configuration, --enable-threads): Remove mach.
9888         Add lynx, mipssde.  Sort table.
9889
9890 2011-04-19  Xinliang David Li  <davidxl@google.com>
9891
9892         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
9893         not negative.
9894
9895 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
9896
9897         PR target/48678
9898         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
9899         is a SUBREG with non-MODE_INT mode inside of it.
9900
9901 2011-04-19  Martin Jambor  <mjambor@suse.cz>
9902
9903         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
9904         also according to actual contants.
9905         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
9906         (gimple_fold_call): Use it.
9907         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
9908
9909 2011-04-19  Martin Jambor  <mjambor@suse.cz>
9910
9911         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
9912         non-pointer assignments.
9913
9914 2011-04-19  Martin Jambor  <mjambor@suse.cz>
9915
9916         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
9917         account anc_offset and otr_type from the indirect edge info.
9918         * ipa-prop.c (get_ancestor_addr_info): New function.
9919         (compute_complex_ancestor_jump_func): Assignment analysis moved to
9920         get_ancestor_addr_info, call it.
9921         (ipa_note_param_call): Do not initialize information about polymorphic
9922         calls, return the indirect call graph edge.  Remove the last
9923         parameter, adjust all callers.
9924         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
9925         parameters.  Initialize polymorphic information in the indirect edge.
9926
9927 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
9928
9929         PR lto/48148
9930         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
9931         the types if they have different enumeration identifiers.
9932
9933 2011-04-19  Jan Hubicka  <jh@suse.cz>
9934
9935         * cgraph.h (cgraph_optimize_for_size_p): Declare.
9936         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
9937         * predict.c (cgraph_optimize_for_size_p): Break out from ...
9938         (optimize_function_for_size_p) ... here.
9939
9940 2011-04-19  Richard Guenther  <rguenther@suse.de>
9941
9942         PR lto/48207
9943         * tree.c (free_lang_data): Do not reset the decl-assembler-name
9944         langhook.
9945
9946 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
9947
9948         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
9949         if DECL_NO_INLINE_WARNING_P is set on the function.
9950
9951 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
9952
9953         PR fortran/47976
9954         * reload1.c (inc_for_reload): Return void. All callers changed.
9955         (emit_input_reload_insns): Don't try to delete previous output
9956         reloads to a register, or record spill_reg_store for autoincs.
9957
9958 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
9959
9960         * gengtype.h: Updated copyright year.
9961         (struct input_file_st): Add inpisplugin field.
9962         (type_fileloc): New function.
9963         * gengtype.c
9964         (write_typed_struct_alloc_def): Add gcc_assert.
9965         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
9966         (write_typed_alloc_defns): Don't output for plugin files.
9967         (input_file_by_name): Clear inpisplugin field.
9968         (main): Set inpisplugin field for plugin files.
9969
9970 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
9971
9972         * gengtype-state.c (string_eq): New.
9973         (read_state): Use string_eq instead of strcmp when creating the
9974         state_ident_tab.
9975
9976 2011-04-19  Wei Guozhi  <carrot@google.com>
9977
9978         PR target/47855
9979         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
9980         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
9981         linkage.
9982         * config/arm/constraints.md (Uu): New constraint.
9983         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
9984
9985 2011-04-19  Tristan Gingold  <gingold@adacore.com>
9986
9987         * config.gcc (-*-*-*vms): Added.
9988         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
9989         definitions moved.
9990         * config/vms/vms-ld.c: New file.
9991         * config/vms/vms-ar.c: New file.
9992         * config/vms/t-vmsnative: New file.
9993
9994 2011-04-18  Xinliang David Li  <davidxl@google.com>
9995
9996         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
9997
9998 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
9999
10000         PR middle-end/48661
10001         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
10002         if TREE_TYPE (v) is non-NULL.
10003
10004         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
10005         gimple_get_virt_mehtod_for_binfo.
10006         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
10007         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
10008         callers.
10009         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
10010
10011 2011-04-18  Michael Matz  <matz@suse.de>
10012             Steve Ellcey  <sje@cup.hp.com>
10013
10014         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
10015         use its mode as source mode if it isn't VOIDmode.
10016
10017 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
10018
10019         * doc/passes.texi: Fill crossref nodes.
10020
10021 2011-04-18  Jim Meyering  <meyering@redhat.com>
10022
10023         Fix doubled-word typos in comments and strings
10024         * config/alpha/vms-unwind.h: s/for for/for/
10025         * config/arm/unwind-arm.h: Likewise.
10026         * config/microblaze/microblaze.c: Likewise.
10027         * config/sh/constraints.md: s/in in/in/
10028         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
10029
10030 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
10031
10032         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
10033         (AVX_FLOAT_MODE_P): Ditto.
10034         (AVX128_VEC_FLOAT_MODE_P): Ditto.
10035         (AVX256_VEC_FLOAT_MODE_P): Ditto.
10036         (AVX_VEC_FLOAT_MODE_P): Ditto.
10037         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
10038         (UNSPEC_MASKSTORE): Ditto.
10039         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
10040         Merge from <sse>_movmsk<ssemodesuffix> and
10041         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
10042         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
10043         iterator.
10044         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
10045         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
10046         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
10047
10048 2011-04-18  Jan Hubicka  <jh@suse.cz>
10049
10050         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
10051
10052         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
10053         (want_inline_function_called_once_p): Break out the logic from
10054         ipa_inline.
10055         (edge_badness): Ensure that profile is not misupdated.
10056         (lookup_recursive_calls): Prioritize by call frequencies.
10057         (inline_small_functions): Move program size estimates here;
10058         actually process whole queue even when unit growth has been
10059         met. (to properly compute inline_failed reasons and for the
10060         case unit size decrease.) Revisit comments on recursive inlining.
10061         (ipa_inline): Remove unit summary code; first inline hot calls
10062         of functions called once, cold calls next.
10063         (order, nnodes): Remove unused variables.
10064         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
10065         (GTFILES): Remove ipa-inline.c
10066         * sel-sched.c (fill_insns): Silence uninitialized var warning.
10067
10068 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
10069
10070         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
10071
10072 2011-04-18  Jie Zhang  <jie@codesourcery.com>
10073             Richard Earnshaw  <rearnsha@arm.com>
10074
10075         * arm.c (neon_builtin_type_bits): Remove.
10076         (typedef enum neon_builtin_mode): New.
10077         (T_MAX): Don't define.
10078         (typedef enum neon_builtin_datum): Remove bits, codes[],
10079         num_vars and base_fcode.  Add mode, code and fcode.
10080         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
10081         VAR10): Change accordingly.
10082         (neon_builtin_data[]): Change accordingly
10083         (arm_init_neon_builtins): Change accordingly.
10084         (neon_builtin_compare): Remove.
10085         (locate_neon_builtin_icode): Remove.
10086         (arm_expand_neon_builtin): Change accordingly.
10087
10088         * arm.h (enum arm_builtins): Move to ...
10089         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
10090
10091         * arm.c (arm_builtin_decl): Declare.
10092         (TARGET_BUILTIN_DECL): Define.
10093         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
10094         (arm_builtin_decls[]): New.
10095         (arm_init_neon_builtins): Store builtin declarations in
10096         arm_builtin_decls[].
10097         (arm_init_tls_builtins): Likewise.
10098         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
10099         (arm_builtin_decl): New.
10100
10101 2011-04-18  Richard Guenther  <rguenther@suse.de>
10102
10103         * tree.c (upper_bound_in_type): Build properly canonicalized
10104         INTEGER_CSTs.
10105         (lower_bound_in_type): Likewise.
10106
10107 2011-04-18  Richard Guenther  <rguenther@suse.de>
10108
10109         * gimple.h (gimple_call_addr_fndecl): New function.
10110         (gimple_call_fndecl): Use it.
10111         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
10112         for direct calls.
10113         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
10114         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
10115
10116 2011-04-18  Richard Guenther  <rguenther@suse.de>
10117
10118         PR middle-end/48650
10119         * tree.c (build_string): STRING_CST is now derived from tree_typed.
10120
10121 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
10122
10123         PR lto/48492
10124         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
10125         DECL_IN_CONSTANT_POOL without RTL.
10126
10127 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
10128             Ira Rosen  <ira.rosen@linaro.org>
10129
10130         PR target/48252
10131         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
10132         to match neon_vzip/vuzp/vtrn_internal.
10133         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
10134         outputs explicitly dependent on both inputs.
10135         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
10136
10137 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
10138
10139         PR tree-optimization/48616
10140         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
10141         whether the shift is by scalar or vector based on whether all SLP
10142         scalar stmts have the same rhs.
10143
10144 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
10145
10146         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
10147         memory operands.
10148
10149 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
10150
10151         PR target/43700
10152         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
10153         registers.
10154
10155 2011-04-17  Jan Hubicka  <jh@suse.cz>
10156
10157         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
10158         * cgrpahunit.c (cgraph_finalize_function): Do not set
10159         finalized_by_frontend.
10160         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
10161         finalized_by_frontend.
10162
10163 2011-04-17  Jan Hubicka  <jh@suse.cz>
10164
10165         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
10166         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
10167         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
10168         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
10169         method.
10170         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
10171         gimple-fold.c
10172         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
10173
10174 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
10175
10176         PR lto/48538
10177         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
10178         is non-null before accessing it.
10179         (input_cgraph): Remove trailing spaces.
10180
10181 2011-04-17  Revital Eres  <revital.eres@linaro.org>
10182
10183         * params.def (sms-min-sc): New param flag.
10184         * modulo-sched.c (sms_schedule): Use it.
10185         * doc/invoke.texi (sms-min-sc): Document it.
10186
10187 2011-04-17  Jan Hubicka  <jh@suse.cz>
10188
10189         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
10190         present, also set gimple_call_set_cannot_inline.
10191         * ipa-inline.c: Update toplevel comment.
10192         (MAX_TIME): Remove.
10193         (cgraph_clone_inlined_nodes): Fix linebreaks.
10194         (cgraph_check_inline_limits): Restructure to ...
10195         (caller_growth_limits): ... this one; be more tolerant
10196         on growth in nested inline chains; add explanatory comment;
10197         fix stack accounting thinko introduced by previous patch.
10198         (cgraph_default_inline_p): Remove.
10199         (report_inline_failed_reason): New function.
10200         (can_inline_edge_p): New function.
10201         (can_early_inline_edge_p): New function.
10202         (leaf_node_p): Move upwards in file.
10203         (want_early_inline_function_p): New function.
10204         (want_inline_small_function_p): New function.
10205         (want_inline_self_recursive_call_p): New function.
10206         (cgraph_edge_badness): Rename to ...
10207         (edge_badness) ... this one; fix linebreaks.
10208         (update_edge_key): Update call of edge_baddness; add
10209         detailed dump about queue updates.
10210         (update_caller_keys): Use can_inline_edge_p and
10211         want_inline_small_function_p.
10212         (cgraph_decide_recursive_inlining): Rename to...
10213         (recursive_inlining): Use can_inline_edge_p and
10214         want_inline_self_recursive_call_p; simplify and remove no longer
10215         valid FIXME.
10216         (cgraph_set_inline_failed): Remove.
10217         (add_new_edges_to_heap): Use can_inline_edge_p and
10218         want_inline_small_function_p.
10219         (cgraph_decide_inlining_of_small_functions): Rename to ...
10220         (inline_small_functions): ... this one; cleanup; use
10221         can/want predicates; cleanup debug ouput; work edges till fibheap
10222         is exhausted and do not stop once unit growth is reached; remove
10223         later loop processing remaining edges.
10224         (cgraph_flatten): Rename to ...
10225         (flatten_function): ... this one; use can_inline_edge_p
10226         and can_early_inline_edge_p predicates.
10227         (cgraph_decide_inlining): Rename to ...
10228         (ipa_inline): ... this one; remove unreachable nodes before
10229         inlining functions called once; simplify the pass.
10230         (cgraph_perform_always_inlining): Rename to ...
10231         (inline_always_inline_functions): ... this one; use
10232         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
10233         (cgraph_decide_inlining_incrementally): Rename to ...
10234         (early_inline_small_functions): ... this one; simplify
10235         using new predicates; cleanup; make dumps prettier.
10236         (cgraph_early_inlining): Rename to ...
10237         (early_inliner): newer inline regular functions into always-inlines;
10238         fix updating of call stmt summaries.
10239         (pass_early_inline): Update for new names.
10240         (inline_transform): Fix formating.
10241         (gate_cgraph_decide_inlining): Rename to ...
10242         (pass_ipa_inline): ... this one.
10243         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
10244         * ipa-inline-analysis.c (dump_inline_summary): Update.
10245         (compute_inline_parameters): Do not compute disregard_inline_limits;
10246         look for mismatching arguments.
10247         (estimate_growth): Fix handlig of non-trivial self recursion.
10248         (inline_read_summary): Do not read info->disregard_inline_limits.
10249         (inline_write_summary): Do not write info->disregard_inline_limits.
10250         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
10251         and move all checks into can_inline_edge_p predicate; re-enable code
10252         comparing optimization levels.
10253         (expand_call_inline): Do not test inline_forbidden_into_p.
10254         * Makefile.in (ipa-inline.o): Update arguments.
10255
10256 2011-04-17  Revital Eres  <revital.eres@linaro.org>
10257
10258         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
10259
10260 2011-04-17  Revital Eres  <revital.eres@linaro.org>
10261
10262         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
10263
10264 2011-04-17  Michael Matz  <matz@suse.de>
10265
10266         PR tree-optimization/48622
10267         PR lto/48645
10268         * ipa-inline-analysis.c (inline_read_summary): Read size/time
10269         in same order as they're written.
10270
10271 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10272
10273         * config/pa/predicates.md: Reorganize and simplify predicates.
10274         Eliminate duplicate code checks.
10275         (arith_operand): Rename to arith14_operand
10276         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
10277         * config/pa/pa.md: Use renamed operands.
10278         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
10279         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
10280         arith11_operand, adddi3_operand, indexed_memory_operand,
10281         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
10282         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
10283         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
10284         move_dest_operand, move_src_operand, prefetch_cc_operand,
10285         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
10286         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
10287         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
10288         div_operand, int5_operand, movb_comparison_operator,
10289         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
10290         arith_double_operand, ireg_operand, lhs_lshift_operand,
10291         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
10292         integer_store_memory_operand): Likewise.
10293         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
10294         (integer_store_memory_operand, read_only_operand,
10295         function_label_operand, borx_reg_operand,
10296         non_hard_reg_operand): Likewise.
10297         (eq_neq_comparison_operator): Delete unused operator.
10298         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
10299         function_label_operand.
10300         (emit_move_sequence): Likewise.
10301
10302 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
10303
10304         * config/i386/sse.md (sseunpackmode): New mode attribute.
10305         (ssepackmode): Ditto.
10306         (vec_pack_trunc_<mode>): Macroize expander from
10307         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
10308         (vec_unpacks_lo_<mode>): Macroize expander from
10309         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10310         (vec_unpacks_hi_<mode>): Macroize expander from
10311         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10312         (vec_unpacku_lo_<mode>): Macroize expander from
10313         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10314         (vec_unpacku_hi_<mode>): Macroize expander from
10315         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10316         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
10317         ix86_expand_sse4_unpack.
10318         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
10319
10320 2011-04-16  Jan Hubicka  <jh@suse.cz>
10321
10322         * cgraphbuild.c: Include ipa-inline.h.
10323         (reset_inline_failed): Use initialize_inline_failed.
10324         * cgraph.c: Include ipa-inline.h.
10325         (cgraph_create_node_1): Do not initialize estimated_growth.
10326         (initialize_inline_failed): More to ipa-inline-analysis.c
10327         (dump_cgraph_node): Do not dump inline flags.
10328         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
10329         and disregard_inline_limits flags.
10330         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
10331         time, size, estimated_growth.
10332         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
10333         Update.
10334         * cgraphunit.c (cgraph_decide_is_function_needed): Use
10335         DECL_DISREGARD_INLINE_LIMITS.
10336         (cgraph_analyze_function): Do not initialize
10337         node->local.disregard_inline_limits.
10338         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
10339         inlinable, versionable and disregard_inline_limits.
10340         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
10341         cgraph_check_inline_limits, cgraph_default_inline_p,
10342         cgraph_edge_badness, update_caller_keys, update_callee_keys,
10343         add_new_edges_to_heap): Update.
10344         (cgraph_decide_inlining_of_small_function): Update; set
10345         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
10346         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
10347         cgraph_decide_inlining_incrementally): Update.
10348         * ipa-inline.h (inline_summary): Add inlinable, versionable,
10349         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
10350         time, size and estimated_growth parameters.
10351         (estimate_edge_growth): Update.
10352         (initialize_inline_failed): Declare.
10353         * ipa-split.c: Include ipa-inline.h
10354         (execute_split_functions): Update.
10355         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
10356         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
10357         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
10358         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
10359         estimated_growth to INT_MIN.
10360         (inline_node_duplication_hook): Likewise.
10361         (dump_inline_summary): Dump new fields.
10362         (compute_inline_parameters): Update.
10363         (estimate_edge_time, estimate_time_after_inlining,
10364         estimate_size_after_inlining, estimate_growth, inline_read_summary,
10365         inline_write_summary):
10366         (initialize_inline_failed): Move here from cgraph.c.
10367         * tree-sra.c: Include ipa-inline.h.
10368         (ipa_sra_preliminary_function_checks): Update.
10369         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
10370         ipa-inline.h.
10371
10372 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
10373
10374         * config/i386/sse.md (V16): New mode iterator.
10375         (VI1, VI8): Ditto.
10376         (AVXMODEQI, AVXMODEDI): Remove.
10377         (sse2, sse3): New mode attribute.
10378         (mov<mode>): Use V16 mode iterator.
10379         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
10380         (push<mode>1): Use V16 mode iterator.
10381         (movmisalign<mode>): Ditto.
10382         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
10383         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
10384         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
10385         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
10386         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
10387         avx_movdqu<avxmodesuffix>.
10388         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
10389         *avx_movdqu<avxmodesuffix>.
10390         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
10391         avx_lddqu<avxmodesuffix>.
10392         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
10393         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
10394         avx_movnt<AVXMODEDI:mode>.
10395         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
10396         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
10397
10398 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
10399
10400         PR target/48629
10401         * haifa-sched.c (prune_ready_list, schedule_block): Use
10402         sched_pressure_p rather than flag_sched_pressure.
10403
10404 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
10405
10406         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
10407         cgraph_get_node instead of cgraph_get_create_node.
10408
10409 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
10410
10411         * cfgexpand.c (expand_debug_expr): Use
10412         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
10413
10414 2011-04-15  Michael Matz  <matz@suse.de>
10415
10416         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
10417         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
10418         * function.c (gimplify_parameters): Ditto.
10419         * gimplify.c (gimplify_vla_decl): Ditto.
10420
10421         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
10422         (gimple_call_set_alloca_for_var): New inline function.
10423         (gimple_call_alloca_for_var_p): Ditto.
10424         * gimple.c (gimple_build_call_from_tree): Remember
10425         CALL_ALLOCA_FOR_VAR_P state.
10426         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
10427
10428         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
10429         calls if they were for VLA objects.
10430
10431 2011-04-15  Martin Jambor  <mjambor@suse.cz>
10432
10433         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
10434         of ADR_EXPRs.
10435
10436 2011-04-15  Martin Jambor  <mjambor@suse.cz>
10437
10438         PR middle-end/48601
10439         * tree-emutls.c (lower_emutls_function_body): Call
10440         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
10441         result is non-NULL.
10442
10443 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
10444
10445         * c-decl.c (detect_field_duplicates): Call
10446         objc_detect_field_duplicates instead of objc_get_interface_ivars.
10447
10448 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
10449
10450         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
10451         * gimple.c (gimple_asm_clobbers_memory_p): Define.
10452         * ipa-pure-const.c (check_stmt): Call it.
10453         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
10454
10455 2011-04-15  Richard Guenther  <rguenther@suse.de>
10456
10457         PR tree-optimization/48290
10458         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
10459         Properly decide inhibiting propagation based on the valueized
10460         operand.  Do loop-closed SSA form preserving here ...
10461         (init_copy_prop): ... not here.
10462
10463 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
10464
10465         PR target/48612
10466         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
10467         (*ieee_smax<mode>3): Likewise.
10468
10469 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10470
10471         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
10472         Replace match_operand with match_dup for the third operand in
10473         these expanders.
10474
10475 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
10476
10477         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
10478         to track processing of conditionals.  Update all callers.
10479         (try_combine, simplify_if_then_else): Update.
10480
10481 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
10482
10483         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
10484         -fsched-pressure.
10485
10486 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
10487
10488         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
10489         instead of match_operand for operand 3.
10490
10491 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
10492
10493         * recog.h (insn_operand_data): Add an "allows_mem" field.
10494         * genoutput.c (output_operand_data): Initialize it.
10495         * optabs.c (maybe_legitimize_operand_same_code): New function.
10496         (maybe_legitimize_operand): Use it when matching the original
10497         op->value.
10498
10499 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
10500
10501         * gimplify.c: Fix issues in comments throughout.
10502         (voidify_wrapper_expr): Fix long line.
10503         (build_stack_save_restore): Likewise.
10504         (gimplify_loop_expr): Likewise.
10505         (gimplify_compound_lval): Likewise.
10506         (gimplify_init_ctor_eval): Likewise.
10507         (gimplify_modify_expr_rhs): Likewise.
10508         (omp_notice_threadprivate_variable): Likewise.
10509
10510 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
10511
10512         * cfgexpand.c (expand_call_stmt): Convert the function type to the
10513         original one if this is not a builtin function.
10514
10515 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
10516
10517         PR target/48605
10518         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
10519         offset it as needed based on top 2 bits in operands[3], change
10520         MEM mode to SFmode and mask those 2 bits away from operands[3].
10521
10522 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
10523
10524         * c-parser.c (c_parser_objc_protocol_definition): Updated for
10525         change from objc_declare_protocols() to objc_declare_protocol().
10526
10527 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
10528
10529         * config/i386/sse.md (sse4_1): New mode attribute.
10530         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
10531         avx_blend<ssemodesuffix><avxmodesuffix> and
10532         sse4_1_blend<ssemodesuffix> using VF mode iterator.
10533         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
10534         avx_blendv<ssemodesuffix><avxmodesuffix> and
10535         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
10536         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
10537         avx_dp<ssemodesuffix><avxmodesuffix> and
10538         sse4_1_dp<ssemodesuffix> using VF mode iterator.
10539         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
10540         (sse4_1_packusdw): Merge with *avx_packusdw.
10541         (sse4_1_pblendvb): Merge with *avx_pblendvb.
10542         (sse4_1_pblendw): Merge with *avx_pblendw.
10543         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
10544         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
10545         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
10546         VF mode iterator.
10547         (sse4_1_round<ssescalarmodesuffix>): Merge with
10548         *avx_round<ssescalarmodesuffix>.
10549         (aesenc): Merge with *avx_aesenc.
10550         (aesenclast): Merge with *avx_aesenclast.
10551         (aesdec): Merge with *avx_aesdec.
10552         (aesdeclast): Merge with *avx_aesdeclast.
10553         (pclmulqdq): Merge with *pclmulqdq.
10554         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
10555         New predicate.
10556         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
10557
10558 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
10559
10560         PR middle-end/48608
10561         * cfgexpand.c (get_decl_align_unit): Renamed to ...
10562         (align_local_variable): This.  Update DECL_ALIGN.
10563         (add_stack_var): Updated.
10564         (expand_one_stack_var): Likewise.
10565
10566 2011-04-14  Richard Guenther  <rguenther@suse.de>
10567
10568         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
10569         Remove.
10570         (dse_initialize_block_local_data, dse_leave_block,
10571         record_voperand_set, get_stmt_uid): Likewise.
10572         (dse_possible_dead_store_p): Allow any kind of killing stmt.
10573         (dse_optimize_stmt): Remove voperand set handling code.
10574         Simplify and improve to handle any kind of killing stmt.
10575         (dse_record_phi): Remove.
10576         (dse_enter_block): Simplify.
10577         (tree_ssa_dse): Likewise.
10578         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
10579
10580 2011-04-14  Jan Hubicka  <jh@suse.cz>
10581
10582         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
10583         * cgraph.h (struct inline_summary): Move to ipa-inline.h
10584         (cgraph_local_info): Remove inline_summary.
10585         * ipa-cp.c: Include ipa-inline.h.
10586         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
10587         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
10588         accesor.
10589         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
10590         (input_overwrite_node): Do not set inline summary.
10591         (input_node): Do not stream inline summary.
10592         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
10593         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
10594         growth; we do not have inline parameters computed for that anyway.
10595         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
10596         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
10597         (inline_summary_t): New type and VECtor.
10598         (debug_inline_summary, dump_inline_summaries): Declare.
10599         (inline_summary): Use VOCtor.
10600         (estimate_edge_growth): Kill hack computing call stmt size directly.
10601         * lto-section-in.c (lto_section_name): Add inline section.
10602         * ipa-inline-analysis.c: Include lto-streamer.h
10603         (node_removal_hook_holder, node_duplication_hook_holder): New holders
10604         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
10605         (inline_summary_vec): Define.
10606         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
10607         dump_inline_summaries): New functions.
10608         (estimate_function_body_sizes): Properly compute size/time of outgoing
10609         calls.
10610         (compute_inline_parameters): Alloc inline_summary; do not compute
10611         size/time of incomming calls.
10612         (estimate_edge_time): Avoid missing time summary hack.
10613         (inline_read_summary): Read inline summary info.
10614         (inline_write_summary): Write inline summary info.
10615         (inline_free_summary): Free all hooks and inline summary vector.
10616         * lto-streamer.h: Add LTO_section_inline_summary section.
10617         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
10618         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
10619
10620 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
10621
10622         * tree-vectorizer.h (vect_strided_store_supported): Add a
10623         HOST_WIDE_INT argument.
10624         (vect_strided_load_supported): Likewise.
10625         (vect_permute_store_chain): Return void.
10626         (vect_transform_strided_load): Likewise.
10627         (vect_permute_load_chain): Delete.
10628         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
10629         count argument.  Check that the count is a power of two.
10630         (vect_strided_load_supported): Likewise.
10631         (vect_permute_store_chain): Return void.  Update after above changes.
10632         Assert that the access is supported.
10633         (vect_permute_load_chain): Likewise.
10634         (vect_transform_strided_load): Return void.
10635         * tree-vect-stmts.c (vectorizable_store): Update calls after
10636         above interface changes.
10637         (vectorizable_load): Likewise.
10638         (vect_analyze_stmt): Don't check for strided powers of two here.
10639
10640 2011-04-14  Richard Guenther  <rguenther@suse.de>
10641
10642         PR tree-optimization/48590
10643         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10644         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
10645         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
10646         BUILT_IN_STACK_SAVE.
10647         * tree-ssa-dce.c (propagate_necessity): Handle
10648         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
10649
10650 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
10651
10652         * c-parser.c (c_parser_objc_class_declaration): Updated call to
10653         objc_declare_class.
10654
10655 2011-04-14  Richard Guenther  <rguenther@suse.de>
10656
10657         * tree.h (get_object_alignment_1): Declare.
10658         * builtins.c (get_object_alignment_1): Split out worker from ...
10659         (get_object_alignment): ... here.
10660         * fold-const.c (get_pointer_modulus_and_residue): Use
10661         get_object_alignment_1.
10662
10663 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
10664
10665         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
10666         type parameter.
10667         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
10668         parameter.  Generalise code to handle arrays as well as vectors.
10669         (vect_setup_realignment): Update accordingly.
10670         * tree-vect-stmts.c (vectorizable_store): Likewise.
10671         (vectorizable_load): Likewise.
10672
10673 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
10674
10675         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
10676         within the per-copy loop.
10677
10678 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
10679
10680         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
10681         in the dump file.
10682
10683 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
10684
10685         * doc/options.texi (Negative): Explicitly mention that the
10686         Negative chain must be circular.
10687
10688 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
10689
10690         * function.h (block_chainon): Declare.
10691         * function.c (block_chainon): Define.
10692
10693 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
10694             Eric Weddington  <eric.weddington@atmel.com>
10695             Georg-Johann Lay  <avr@gjlay.de>
10696
10697         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
10698         New Includes
10699         (avr_init_builtins, avr_expand_builtin,
10700         avr_expand_delay_cycles, avr_expand_unop_builtin,
10701         avr_expand_binop_builtin ): New functions.
10702         (avr_builtin_id): New enum
10703         (struct avr_builtin_description): New struct
10704         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
10705         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
10706
10707         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
10708         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
10709         UNSPECV_DELAY_CYCLES): new enumeration values
10710         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
10711         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
10712         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
10713         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
10714         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
10715         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
10716         "fmulsu"): New insns
10717
10718         * config/avr/avr-c.c: fix line endings
10719         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
10720         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
10721         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
10722         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
10723         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
10724
10725         * doc/extend.texi (AVR Built-in Functions): New node
10726         (Target Builtins): Add documentation of AVR
10727         built-in functions.
10728
10729 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
10730
10731         PR target/44643
10732         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
10733         alone. Error if non-const data has attribute progmem.
10734
10735 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
10736
10737         * tree.h (struct tree_constructor): Include tree_typed instead of
10738         tree_common.
10739         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
10740         TS_TYPED instead of TS_COMMON.
10741
10742 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
10743
10744         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
10745         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
10746         (sse2_psadbw): Merge with *avx_psadbw.
10747         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
10748         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
10749         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
10750         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
10751         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
10752         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
10753         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
10754         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
10755         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
10756         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
10757         (ssse3_palignrti): Merge with *avx_palignrti.
10758
10759 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
10760
10761         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
10762         * tree-ssanames.c (fini_ssanames): VEC_free it.
10763         (make_ssa_name_fn): Update for VECness of free_ssanames.
10764         (release_ssa_name, release_dead_ssa_names): Likewise.
10765         * tree.h (struct tree_ssa_name): Include tree_typed instead of
10766         tree_common.
10767         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
10768         TS_TYPED instead of TS_COMMON.
10769
10770 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
10771
10772         * postreload-gcse.c (gcse_after_reload_main): Add calls to
10773         statistics_counter_event.
10774         * tree-ssa-copyrename.c (stats): Define.
10775         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
10776         statistics_counter_event.
10777         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
10778         (bswap_stats, widen_mul_stats): Define.
10779         (insert_reciprocals): Increment rdivs_inserted.
10780         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
10781         rfuncs_inserted.  Add calls to statistics_counter_event.
10782         (execute_cse_sincos_1): Increment inserted.
10783         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
10784         statistics_counter_event.
10785         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
10786         of bswap_stats.  Add calls to statistics_counter_event.
10787         (convert_mult_to_widen): Increment widen_mults_inserted.
10788         (convert_plusminus_to_widen): Increment maccs_inserted.
10789         (convert_mult_to_fma): Increment fmas_inserted.
10790         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
10791         calls to statistics_counter_event.
10792
10793 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
10794
10795         PR rtl-optimization/48455
10796         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
10797         `temp_costs->mem_cost'.
10798
10799 2011-04-13  Jan Hubicka  <jh@suse.cz>
10800
10801         * ipa-inline.h: New file.
10802         * ipa-inline-analysis.c: New file. Broken out of ...
10803         * ipa-inline.c: ... this file; update toplevel comment;
10804         include ipa-inline.h
10805         (inline_summary): Move to ipa-inline.h
10806         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
10807         ipa-inline-analysis.c.
10808         (cgraph_estimate_time_after_inlining): Rename to
10809         estiamte_time_after_inlining; move to ipa-inline-analysis.c
10810         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
10811         to estimate_edge_growth.
10812         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
10813         rename to estimate_size_after_inlining.
10814         (cgraph_mark_inline_edge): Update for new naming convention.
10815         (cgraph_check_inline_limits): Likewise.
10816         (cgraph_edge_badness): Likewise.
10817         (cgraph_decide_recursive_inlining): Likewise.
10818         (cgraph_decide_inlining_of_small_functions): Likewise.
10819         (cgraph_decide_inlining_incrementally): Likewise.
10820         (cgraph_estimate_growth): Rename to estimate_growth; move to
10821         ipa-inline-analysis.c.
10822         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
10823         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
10824         (compute_inline_parameters): Likewise.
10825         (compute_inline_parameters_for_current): Likewise.
10826         (pass_inline_parameters): Likewise.
10827         (inline_indirect_intraprocedural_analysis): Likewise.
10828         (analyze_function): Rename to inline_analyze_function; likewise.
10829         (add_new_function): Move to ipa-inline-analysis.c.
10830         (inline_generate_summary): Likewise.
10831         (inline_read_summary): Likewise.
10832         (inline_write_summary): Likewise.
10833         * Makefile.in (ipa-inline-analysis.c): New file.
10834
10835 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10836
10837         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
10838         * configure: Regenerate.
10839
10840 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
10841
10842         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
10843         instead of tree_common.
10844         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
10845         Likewise.
10846         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
10847         TS_TYPED rather than TS_COMMON.
10848         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
10849
10850 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
10851
10852         PR target/45263
10853         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
10854         r20 around calls of __tablejump_elpm__
10855
10856 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
10857
10858         PR middle-end/48591
10859         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
10860         NULL.
10861         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
10862
10863 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
10864
10865         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
10866         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
10867         (cfi_vec): New typedef.
10868         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
10869         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
10870         (cie_cfi_vec): New static variable.
10871         (cie_cfi_head): Delete.
10872         (add_cfi): Accept a cfi_vec * as first argument. All callers and
10873         declaration changed. Use vector rather than list operations.
10874         (new_cfi): Don't initialize the dw_cfi_next field.
10875         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
10876         rather than list operations.
10877         (lookup_cfa): Use vector rather than list operations.
10878         (output_cfis): New argument upto. Accept a cfi_vec rather than
10879         a dw_cfi_ref list head as argument. All callers changed.
10880         Iterate over the vector using upto as a maximum index.
10881         (output_all_cfis): New static function.
10882         (output_fde): Use vector rather than list operations. Use the
10883         new upto argument for output_cfis rather than manipulating a
10884         list.
10885         (dwarf2out_begin_prologue): Change initializations to match
10886         new struct members.
10887         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
10888         from the vector length rather than searching for the end of a list.
10889         Use output_all_cfis.
10890         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
10891
10892 2011-04-13  Nick Clifton  <nickc@redhat.com>
10893
10894         * config/rx/rx.md (movmemsi): Do not use this pattern when
10895         volatile pointers are involved.
10896
10897 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
10898
10899         * config/i386/sse.md (pinsrbits): Remove.
10900         (sse2_packsswb): Merge with *avx_packsswb.
10901         (sse2_packssdw): Merge with *avx_packssdw.
10902         (sse2_packuswb): Merge with *avx_packuswb.
10903         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
10904         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
10905         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
10906         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
10907         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
10908         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
10909         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
10910         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
10911         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
10912         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
10913         (sse2_loadld): Merge with *avx_loadld.
10914         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
10915         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
10916         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
10917         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
10918         (vec_concatv2di): Merge with *vec_concatv2di_avx.
10919
10920 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
10921
10922         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
10923         calling TREE_CHAIN.
10924         * print-tree.c (print_node): Likewise.
10925         * tree-inline.c (copy_tree_r): Likewise.
10926         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
10927         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
10928         instead of TS_COMMON.
10929         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
10930         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
10931         (copy_node_stat): Zero TREE_CHAIN only if necessary.
10932         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
10933         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
10934         ...and these...
10935         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
10936         * tree.h: ...here.
10937         (TREE_CHAIN): Check for a TS_COMMON structure.
10938         (TREE_TYPE): Check for a TS_TYPED structure.
10939
10940 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
10941
10942         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
10943         cgraph_get_create_node instead of cgraph_node.
10944
10945 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
10946
10947         * c-parser.c (c_parser_initelt): Updated call to
10948         objc_build_message_expr.
10949         (c_parser_postfix_expression): Likewise.
10950
10951 2011-04-12  Kai Tietz  <ktietz@redhat.com>
10952
10953         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
10954         MASK_MS_BITFIELD_LAYOUT bit.
10955
10956 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
10957
10958         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
10959         assert it is always true.
10960         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
10961         moves.
10962
10963 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
10964
10965         * c-parser.c (c_lex_one_token): Rewritten conditional used when
10966         compiling Objective-C to be more efficient.
10967
10968 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
10969
10970         * opts-common.c (decode_cmdline_options_to_array): Remove variable
10971         argv_copied.
10972
10973 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
10974
10975         * recog.h, genoutput.c, optabs.c: Revert last patch.
10976
10977 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10978
10979         PR target/48090
10980         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
10981
10982 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
10983
10984         * recog.h (insn_operand_data): Add an "allows_mem" field.
10985         * genoutput.c (output_operand_data): Initialize it.
10986         * optabs.c (maybe_legitimize_operand_same_code): New function.
10987         (maybe_legitimize_operand): Use it when matching the original
10988         op->value.
10989
10990 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
10991
10992         * genpreds.c (process_define_predicate): Move most processing
10993         to gensupport.c.  Continue to validate the expression.
10994         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
10995         (process_define_predicate): Move processing to gensupport.c.
10996         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
10997         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
10998         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
10999         argument.
11000         (valid_predicate_name_p): New function, split out from old
11001         genpreds.c:process_define_predicate.
11002         (process_define_predicate): New function, combining code from
11003         old genpreds.c and genrecog.c functions.
11004         (process_rtx): Call it for DEFINE_PREDICATE and
11005         DEFINE_SPECIAL_PREDICATE.
11006
11007 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
11008
11009         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
11010         size of a '%A' memory reference.
11011         (T_DREG, T_QREG): New neon_builtin_type_bits.
11012         (arm_init_neon_builtins): Assert that the load and store operands
11013         are neon_struct_operands.
11014         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
11015         (NEON_ARG_MEMORY): New builtin_arg.
11016         (neon_dereference_pointer): New function.
11017         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
11018         Handle NEON_ARG_MEMORY.
11019         (arm_expand_neon_builtin): Update after above interface changes.
11020         Use NEON_ARG_MEMORY for loads and stores.
11021         * config/arm/predicates.md (neon_struct_operand): New predicate.
11022         * config/arm/iterators.md (V_two_elem): Tweak formatting.
11023         (V_three_elem): Use BLKmode for accesses that have no associated mode.
11024         (V_four_elem): Tweak formatting.
11025         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
11026         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
11027         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
11028         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
11029         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
11030         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
11031         (neon_vst4<mode>): Replace pointer operand with a memory operand.
11032         Use %A in the output template.
11033         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
11034         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
11035         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
11036         the width of the memory access.  Remove post-increment.
11037         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
11038
11039 2011-04-12  Nick Clifton  <nickc@redhat.com>
11040
11041         * config/v850/v850.c (expand_prologue): Do not use the CALLT
11042         instruction for interrupt handlers if the target is the basic V850
11043         architecture.
11044         (expand_epilogue): Likewise.
11045
11046 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
11047
11048         PR rtl-optimization/48549
11049         * combine.c (propagate_for_debug): Also stop after BB_END of
11050         this_basic_block.  Process LAST and just stop processing after it.
11051         (combine_instructions): If last_combined_insn has been deleted,
11052         set last_combined_insn to its PREV_INSN.
11053
11054 2011-04-12  Richard Guenther  <rguenther@suse.de>
11055
11056         PR tree-optimization/46076
11057         * gimple.h (struct gimple_statement_call): Add fntype field.
11058         (gimple_call_fntype): Adjust.
11059         (gimple_call_set_fntype): New function.
11060         * gimple.c (gimple_build_call_1): Set the call function type.
11061         * gimplify.c (gimplify_call_expr): Preserve the function
11062         type the frontend used for the call.
11063         (gimplify_modify_expr): Likewise.
11064         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
11065         function type.
11066         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
11067         function type.
11068         * tree-ssa.c (useless_type_conversion_p): Function pointer
11069         conversions are useless.
11070
11071 2011-04-12  Martin Jambor  <mjambor@suse.cz>
11072
11073         * cgraph.h (cgraph_node): Remove function declaration.
11074         (cgraph_create_node): Declare.
11075         (cgraph_get_create_node): Likewise.
11076         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
11077         Updated all callers.
11078         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
11079         the decl does not already exist.  Call cgraph_get_create_node instead
11080         of cgraph_node.
11081         (cgraph_get_create_node): New function.
11082         (cgraph_same_body_alias): Update comment.
11083         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
11084         assert it does not return NULL.
11085         (cgraph_update_edges_for_call_stmt): Likewise.
11086         (cgraph_clone_edge): Likewise.
11087         (cgraph_create_virtual_clone): Likewise.
11088         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
11089         instead of cgraph_node.
11090         (cgraph_add_new_function): Call cgraph_create_node or
11091         cgraph_get_create_node instead of cgraph_node.
11092         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
11093         instead of cgraph_node.
11094         (record_eh_tables): Likewise.
11095         (mark_address): Likewise.
11096         (mark_load): Likewise.
11097         (build_cgraph_edges): Call cgraph_get_create_node instead
11098         of cgraph_node.
11099         (rebuild_cgraph_edges): Likewise.
11100         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
11101         instead of cgraph_node.
11102         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
11103         cgraph_node.
11104         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
11105         cgraph_create_node instead of cgraph_node.
11106         * c-decl.c (finish_function): Call cgraph_get_create_node instead
11107         of cgraph_node.
11108         * lto-cgraph.c (input_node): Likewise.
11109         * lto-streamer-in.c (input_function): Likewise.
11110         * varasm.c (mark_decl_referenced): Likewise.
11111         (assemble_alias): Likewise.
11112
11113 2011-04-12  Martin Jambor  <mjambor@suse.cz>
11114
11115         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
11116         instead of cgraph_node and assert it does not return NULL.
11117         * lto-streamer-in.c (lto_read_body): Likewise.
11118         * omp-low.c (new_omp_context): Likewise.
11119         (create_task_copyfn): Likewise.
11120         * tree-emutls.c (lower_emutls_function_body): Likewise.
11121         * matrix-reorg.c (transform_allocation_sites): Likewise.
11122
11123 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
11124
11125         PR c/48552
11126         * c-typeck.c (build_asm_expr): Error out on attempts to use
11127         void type outputs or inputs for constraints that allow reg or
11128         don't allow memory.
11129
11130 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
11131             Richard Earnshaw  <rearnsha@arm.com>
11132
11133         PR target/48250
11134         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
11135         to use sign-magnitude offsets. Reject unsupported unaligned
11136         cases. Add detailed description in comments.
11137         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
11138         condition from TARGET_32BIT to TARGET_ARM.
11139
11140 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
11141
11142         * tree.h (struct typed_tree): New.
11143         (struct tree_common): Include it instead of tree_base.
11144         (TREE_TYPE): Update for new location of type field.
11145         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
11146         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
11147         (union tree_node): Add typed field.
11148         * treestruct.def (TS_TYPED): New.
11149         * lto-streamer.c (check_handled_ts_structures): Handle it.
11150         * tree.c (MARK_TS_TYPED): New macro.
11151         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
11152
11153 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
11154
11155         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
11156         (force_nonfallthru): Do not alter the loop nest if no basic block
11157         was created.
11158
11159 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
11160
11161         * config/i386/sse.md (VI): New mode iterator.
11162         (SSEMODEI): Remove.
11163         (AVX256MODEI): Ditto.
11164         (AVXMODEF4P): Ditto.
11165         (avxvecpsmode): Ditto.
11166         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
11167         (sse2_andnot<mode>3): New expander.
11168         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
11169         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
11170         (<any_logic:code><mode>3): Use VI mode iterator.
11171         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
11172         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
11173         (*andnottf3): Handle AVX three-operand constraints.
11174         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
11175
11176 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
11177             Robert Millan  <rmh@gnu.org>
11178
11179         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
11180         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
11181         GNU_USER_DYNAMIC_LINKER64): Define.
11182         (REG_NAME): Don't undefine.
11183         (MD_UNWIND_SUPPORT): Undefine.
11184         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
11185         (REG_NAME): Don't undefine.
11186         (MD_UNWIND_SUPPORT): Undefine.
11187         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
11188
11189 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
11190
11191         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
11192         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
11193
11194 2011-04-11  Xinliang David Li  <davidxl@google.com>
11195
11196         * value-profile.c (check_ic_target): New function.
11197         (gimple_ic_transform): Sanity check indirect call target.
11198         * gimple-low.c (gimple_check_call_args): Interface change.
11199         (gimple_check_call_matching_types): New function.
11200         * tree-inline.c (tree_can_inline_p): Call new function.
11201
11202 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
11203
11204         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
11205         tree-pretty-print.h & realmpfr.h.
11206
11207 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
11208
11209         PR middle-end/48464
11210         * ira.c (setup_pressure_classes): Fix typo in loop condition.
11211         (setup_allocno_and_important_classes): Ditto.
11212
11213 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
11214
11215         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
11216         GNU_USER_DYNAMIC_LINKER.
11217         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
11218         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11219         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
11220         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
11221         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
11222         GNU_USER_TARGET_OS_CPP_BUILTINS.
11223         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
11224         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11225         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
11226         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11227         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
11228         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
11229         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
11230         GNU_USER_TARGET_OS_CPP_BUILTINS.
11231         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11232         GNU_USER_DYNAMIC_LINKER.
11233         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11234         GNU_USER_TARGET_OS_CPP_BUILTINS.
11235         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
11236         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11237         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
11238         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11239         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
11240         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
11241         GNU_USER_DYNAMIC_LINKER64): Remove.
11242         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
11243         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11244         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11245         GNU_USER_DYNAMIC_LINKER.
11246         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11247         GNU_USER_TARGET_OS_CPP_BUILTINS.
11248         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11249         GNU_USER_TARGET_OS_CPP_BUILTINS.
11250         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
11251         to GNU_USER_TARGET_OS_CPP_BUILTINS.
11252         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11253         GNU_USER_TARGET_OS_CPP_BUILTINS.
11254         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
11255         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
11256         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
11257         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
11258         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11259         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11260         GNU_USER_DYNAMIC_LINKER.
11261         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
11262         GNU_USER_TARGET_OS_CPP_BUILTINS.
11263         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
11264         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11265         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11266         GNU_USER_DYNAMIC_LINKER.
11267         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
11268         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11269         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
11270         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11271         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11272         GNU_USER_DYNAMIC_LINKER.
11273         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
11274         GNU_USER_DYNAMIC_LINKERN32.
11275         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
11276         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
11277         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
11278         GNU_USER_DYNAMIC_LINKER32.
11279         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
11280         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11281         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11282         GNU_USER_DYNAMIC_LINKER.
11283         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
11284         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11285         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
11286         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11287         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
11288         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
11289         GNU_USER_DYNAMIC_LINKER32.
11290         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
11291         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
11292         GNU_USER_DYNAMIC_LINKER.
11293         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
11294         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11295         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
11296         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
11297         GNU_USER_DYNAMIC_LINKER64.
11298         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
11299         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11300         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11301         GNU_USER_DYNAMIC_LINKER.
11302         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
11303         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11304         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11305         GNU_USER_DYNAMIC_LINKER.
11306         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
11307         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11308         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
11309         GNU_USER_DYNAMIC_LINKER32.
11310         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
11311         GNU_USER_DYNAMIC_LINKER64.
11312         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
11313         GNU_USER_DYNAMIC_LINKER64.
11314         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
11315         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11316         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
11317         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11318         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
11319
11320 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
11321
11322         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
11323         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
11324         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
11325         GNU_USER_DYNAMIC_LINKER.
11326         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
11327         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
11328         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
11329         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
11330         GNU_USER_DYNAMIC_LINKER64.
11331         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
11332         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
11333         GNU_USER_LINK_EMULATION.
11334         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
11335         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
11336         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
11337         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
11338         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
11339         CPP_SPEC, CC1_SPEC): Remove.
11340         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
11341         (GNU_USER_DYNAMIC_LINKER): Define.
11342         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
11343         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
11344         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
11345         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
11346         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
11347         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
11348         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
11349         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
11350         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
11351         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
11352         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
11353         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
11354         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
11355         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
11356         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
11357         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
11358         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11359         GNU_USER_DYNAMIC_LINKER.
11360         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11361         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
11362         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11363         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
11364         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11365         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
11366         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
11367         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
11368         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
11369         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
11370
11371 2011-04-11  Kai Tietz  <ktietz@redhat.com>
11372
11373         PR target/9601
11374         PR target/11772
11375         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
11376         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
11377         comment.
11378         (ix86_is_msabi_thiscall): Removed.
11379         (ix86_is_type_thiscall): Likewise.
11380         (ix86_get_callcvt): New function.
11381         (ix86_comp_type_attributes): Simplify check.
11382         (ix86_function_regparm): Use ix86_get_callcvt for calling
11383         convention attribute checks.
11384         (ix86_return_pops_args): Likewise.
11385         (ix86_static_chain): Likewise.
11386         (x86_this_parameter): Likewise.
11387         (x86_output_mi_thunk): Likewise.
11388         (ix86_function_type_abi): Optimize check for types without attributes.
11389         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
11390         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
11391         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
11392         by flag-values.
11393         (IX86_BASE_CALLCVT): Helper macro.
11394         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
11395         Use ix86_get_callcvt for calling convention attribute checks and avoid
11396         symbol-decoration for stdcall in TARGET_RTD case.
11397         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
11398         Likewise.
11399         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
11400         for declaration.
11401
11402 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
11403
11404         * config/i386/sse.md (VI_128): New mode iterator.
11405         (VI12_128): Rename from SSEMODE12.
11406         (VI14_128): Rename from SSEMODE14.
11407         (VI124_128): New mode iterator.
11408         (VI24_128): Rename from SSEMODE248.
11409         (VI248_128): Rename from SSEMODE248.
11410         (SSEMODE124C8): Remove.
11411         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
11412         (*sse2_<plusminus_insn><mode>3): Merge with
11413         *avx_<plusminus_insn><mode>3.
11414         (*mulv8hi3): Merge with *avx_mulv8hi3.
11415         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
11416         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
11417         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
11418         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
11419         (ashr<mode>3): Merge with *avx_ashr<mode>3.
11420         (lshr<mode>3): Merge with *avx_lshr<mode>3.
11421         (ashl<mode>3): Merge with *avx_ashl<mode>3.
11422         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
11423         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
11424         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11425         (*<smaxmin:code>v8hi3): Ditto.
11426         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
11427         (*<smaxmin:code>v16qi3): Ditto.
11428         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
11429         (*sse2_eq<mode>3): Ditto.
11430         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
11431         (*sse2_gt<mode>3): Ditto.
11432         (vcondv2di): Split out of vcond<mode>.
11433         (vconduv2di): Split out of vcondu<mode>.
11434
11435 2011-04-11  Richard Guenther  <rguenther@suse.de>
11436
11437         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
11438         before calling tree_low_cst.
11439
11440 2011-04-11  Richard Guenther  <rguenther@suse.de>
11441
11442         * stor-layout.c (layout_type): Compute all array index size operations
11443         in the original type.
11444         (initialize_sizetypes): Add comment.
11445         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
11446
11447 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
11448
11449         * common.opt (Tbss=, Tdata=, Ttext=): New options.
11450
11451 2011-04-11  Martin Jambor  <mjambor@suse.cz>
11452
11453         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
11454         of cgraph_node, handle NULL return value.
11455         (cgraph_global_info): Likewise.
11456         (cgraph_rtl_info): Likewise.
11457         * tree-inline.c (estimate_num_insns): Likewise.
11458         * gimplify.c (unshare_body): Likewise.
11459         (unvisit_body): Likewise.
11460         (gimplify_body): Likewise.
11461         * predict.c (optimize_function_for_size_p): Likewise.
11462         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
11463         (call_may_clobber_ref_p_1): Likewise.
11464         * varasm.c (function_section_1): Likewise.
11465         (assemble_start_function): Likewise.
11466
11467 2011-04-11  Martin Jambor  <mjambor@suse.cz>
11468
11469         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
11470         of cgraph_node.
11471         * final.c (rest_of_clean_state): Likewise.
11472         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
11473         * passes.c (pass_init_dump_file): Likewise.
11474         (execute_all_ipa_transforms): Likewise.
11475         (function_called_by_processed_nodes_p): Likewise.
11476         * predict.c (maybe_hot_frequency_p): Likewise.
11477         (probably_never_executed_bb_p): Likewise.
11478         (compute_function_frequency): Likewise.
11479         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
11480         (unnest_nesting_tree_1): Likewise.
11481         (lower_nested_functions): Likewise.
11482         * tree-optimize.c (execute_fixup_cfg): Likewise.
11483         (tree_rest_of_compilation): Likewise.
11484         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
11485         * tree-sra.c (ipa_early_sra): Likewise.
11486         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
11487         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
11488         * ipa.c (record_cdtor_fn): Likewise.
11489         * ipa-inline.c (cgraph_early_inlining): Likewise.
11490         (compute_inline_parameters_for_current): Likewise.
11491         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
11492         * ipa-pure-const.c (local_pure_const): Likewise.
11493         * ipa-split.c (split_function): Likewise.
11494         (execute_split_functions): Likewise.
11495         * cgraphbuild.c (build_cgraph_edges): Likewise.
11496         (rebuild_cgraph_edges): Likewise.
11497         (cgraph_rebuild_references): Likewise.
11498         (remove_cgraph_callee_edges): Likewise.
11499         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
11500         (verify_cgraph_node): Likewise.
11501         (cgraph_analyze_functions): Likewise.
11502         (cgraph_preserve_function_body_p): Likewise.
11503         (save_inline_function_body): Likewise.
11504         (save_inline_function_body): Likewise.
11505         * tree-inline.c (copy_bb): Likewise.
11506         (optimize_inline_calls): Likewise.
11507
11508 2011-04-11  Martin Jambor  <mjambor@suse.cz>
11509
11510         PR tree-optimization/48195
11511         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
11512         ipa_check_create_edge_args.
11513         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
11514         ipa_check_create_edge_args.
11515         * ipa-inline.c (inline_generate_summary): Do not call
11516         ipa_check_create_node_params and ipa_check_create_edge_args.
11517         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
11518         ipa_check_create_edge_args.
11519
11520 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
11521
11522         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
11523         instead of loop.
11524         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11525         * function.c (record_hard_reg_sets): Likewise.
11526         * ira.c (compute_regs_asm_clobbered): Likewise.
11527         * sched-deps.c (sched_analyze_1): Likewise.
11528         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
11529
11530 2011-04-09  Xinliang David Li  <davidxl@google.com>
11531
11532         PR tree-optimization/PR48484
11533         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
11534         has_valid_pred lazily
11535
11536 2011-04-09  Duncan Sands  <baldrick@free.fr>
11537
11538         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
11539
11540 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
11541
11542         * combine.c (combine_validate_cost): Adjust comments.  Set registered
11543         cost of I0 to zero at the end, if any.
11544
11545 2011-04-08  Xinliang David Li  <davidxl@google.com>
11546
11547         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
11548         to insane profile data.
11549
11550 2011-04-08  Xinliang David Li  <davidxl@google.com>
11551
11552         * ipa-cp.c (ipcp_update_profiling): Correct
11553          negative scale factor due to insane profile data.
11554
11555 2011-04-08  Xinliang David Li  <davidxl@google.com>
11556
11557         * final.c (dump_basic_block_info): New function.
11558         (final): Dump basic block.
11559         (final_scan_insn): Remove old dump.
11560
11561 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
11562
11563         PR target/47829
11564         * config.gcc (i386-*-freebsd): Disable unwind table generation for
11565         crtbegin/crtend.
11566
11567 2011-04-08  Michael Matz  <matz@suse.de>
11568
11569         PR middle-end/48389
11570         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
11571         functions.
11572         (rebuild_jump_labels): Call rebuild_jump_labels_1.
11573         * rtl.h (rebuild_jump_labels_chain): Declare.
11574         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
11575         insns inserted on edges.
11576
11577 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
11578
11579         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
11580         * config/arm/arm-arches.def: New.
11581         * config/arm/arm-opts.h: New.
11582         * config/arm/genopt.sh: New.
11583         * config/arm/arm-tables.opt: New (generated).
11584         * config/arm/arm.c (arm_handle_option, arm_target_help,
11585         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
11586         (all_architectures): Get most table contents from arm-arches.def.
11587         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
11588         arm_selected_tune here.
11589         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
11590         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
11591         (march=, mcpu=, mtune=): Use Enum and Var.
11592         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
11593         (arm.o): Update dependencies.
11594
11595 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
11596
11597         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
11598         of header_file.
11599         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
11600         (write_typed_alloc_defns): Likewise.
11601         (main): Calls write_typed_alloc_defns with output_header.
11602
11603 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
11604
11605         PR inline-asm/48435
11606         * ira-color.c (setup_profitable_hard_regs): Add comments.
11607         Don't take prohibited hard regs into account.
11608         (setup_conflict_profitable_regs): Rename to
11609         get_conflict_profitable_regs.
11610         (check_hard_reg_p): Check prohibited hard regs.
11611
11612 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
11613
11614         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
11615         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
11616         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
11617
11618 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11619
11620         PR target/48366
11621         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
11622         move from floating point to shift amount register.
11623         (emit_move_sequence): Remove secondary reload support for floating
11624         point to shift amount amount register copies.
11625         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
11626         amount register copies.
11627         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
11628         register, return false if mode isn't a scalar integer mode.
11629         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
11630
11631 2011-04-08  Richard Guenther  <rguenther@suse.de>
11632
11633         * gimple.c (gimple_call_flags): Remove kludge.
11634
11635 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
11636
11637         * sel-sched.c (sel_region_init): Move call to
11638         sel_setup_region_sched_flags after setup_current_loop_nest.
11639
11640 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
11641
11642         PR rtl-optimization/48272
11643         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
11644         init_insn_reg_pressure_info.  Adjust a caller.
11645         * sched-int.h (init_insn_reg_pressure_info): Declare.
11646         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
11647         when sched-pressure is enabled.
11648
11649 2011-04-08  Richard Guenther  <rguenther@suse.de>
11650
11651         * gimple.c (gimple_set_modified): Do not queue calls to
11652         MODIFIED_NORETURN_CALLS here ...
11653         * tree-ssa-operands.c (update_stmt_operands): ... but here.
11654
11655 2011-04-08  Richard Guenther  <rguenther@suse.de>
11656
11657         PR lto/48467
11658         * toplev.c (lang_dependent_init): Do not open asm_out_file
11659         in WPA mode, nor perform debug machinery initialization.
11660         (finalize): Do not unlink asm_out_file in WPA mode.
11661
11662 2011-04-08  Richard Guenther  <rguenther@suse.de>
11663
11664         * gimple.h (gimple_call_fntype): New function.
11665         (gimple_call_return_type): Use it.
11666         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
11667         * gimple-low.c (gimple_check_call_args): Likewise.
11668         * gimple.c (gimple_call_flags): Likewise.
11669         (gimple_call_arg_flags): Likewise.
11670         (gimple_call_return_flags): Likewise.
11671         * tree-cfg.c (verify_gimple_call): Likewise.
11672         (do_warn_unused_result): Likewise.
11673         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
11674         * value-prof.c (gimple_ic_transform): Fix fndecl check.
11675
11676 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
11677
11678         PR rtl-optimization/48235
11679         * sel-sched.c (code_motion_process_successors): Recompute the last
11680         insn in basic block if control flow changed.
11681         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
11682         Update condition for ilist_remove.
11683
11684 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
11685
11686         PR rtl-optimization/48302
11687         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
11688         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
11689         it to record added preheader blocks.
11690         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
11691         on to sel_add_loop_preheaders.
11692         (sel_region_init): Move call to setup_current_loop_nest after
11693         sel_init_bbs.
11694
11695 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
11696
11697         PR target/48273
11698         * cfgloop.h (loop_has_exit_edges): New helper.
11699         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
11700         non-clonable.
11701         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
11702         that have no exit edges.
11703
11704 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
11705
11706         PR rtl-optimization/48442
11707         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
11708         all callers.  Adjust assert.
11709
11710 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
11711
11712         PR tree-optimization/48377
11713         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
11714         is_packed to true even for types with smaller TYPE_ALIGN than
11715         TYPE_SIZE.
11716
11717 2011-04-08  Richard Guenther  <rguenther@suse.de>
11718
11719         PR bootstrap/48513
11720         * doc/tm.texi: Re-generate.
11721
11722 2011-04-08  Wei Guozhi  <carrot@google.com>
11723
11724         PR target/47855
11725         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
11726         * config/arm/arm.c (arm_attr_length_push_multi): New function.
11727         * config/arm/arm.md (*push_multi): Change the length computation to
11728         call a C function.
11729
11730 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
11731
11732         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
11733         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
11734         * doc/tm.texi: Regenerate.
11735         * system.h (ASM_OUTPUT_BSS): Poison.
11736         * varasm.c (asm_output_bss): Remove function.
11737         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
11738
11739         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
11740         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
11741         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
11742         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
11743         Likewise.
11744         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
11745         Likewise.
11746         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
11747         Likewise.
11748         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11749
11750 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
11751
11752         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
11753         EnumValue lines.
11754
11755 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
11756
11757         * config/m68k/m68k.c (m68k_handle_option): Don't handle
11758         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
11759         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
11760         OPT_mcpu32.
11761         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
11762         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
11763         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
11764         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
11765         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
11766         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
11767         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
11768         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
11769         options.  Don't map other m68k options manually.  Don't handle
11770         old-style options as canonical.
11771         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
11772         * doc/install.texi (m68k-*-*): Document binutils version requirement.
11773
11774 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
11775
11776         * basic-block.h (force_nonfallthru): Move to...
11777         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
11778         (force_nonfallthru): ...here.
11779         * cfghooks.c (force_nonfallthru): New function.
11780         * cfgrtl.c (force_nonfallthru): Rename into...
11781         (rtl_force_nonfallthru): ...this.
11782         (commit_one_edge_insertion): Do not set AUX field.
11783         (commit_edge_insertions): Do not discover new basic blocks.
11784         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
11785         (cfg_layout_rtl_cfg_hooks): Likewise.
11786         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
11787         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
11788         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
11789
11790 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
11791
11792         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11793         Remove macros.
11794
11795 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
11796
11797         * config/i386/sse.md: Update copyright year.
11798         (avxcvtvecmode): Remove.
11799         (sse_movhlps): Merge with *avx_movhlps.
11800         (sse_movlhps): Merge with *avx_movlhps.
11801         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
11802         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
11803         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
11804         (sse_loadhps): Merge with *avx_loadhps.
11805         (sse_storelps): Merge with *avx_storelps.
11806         (sse_loadlps): Merge with *avx_loadlps.
11807         (sse_movss): Merge with *avx_movss.
11808         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
11809         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
11810         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
11811         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
11812         (vec_set<mode>_0): Ditto.
11813         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
11814         (sse4_1_insertps): Merge with *avx_insertps.
11815         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
11816         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
11817         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
11818         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
11819         (sse2_storehpd): Merge with *avx_storehpd.
11820         (sse2_loadhpd): Merge with *avx_loadhpd.
11821         (sse2_loadlpd): Merge with *avx_loadlpd.
11822         (sse2_movsd): Merge with *avx_movsd.
11823         (*vec_concatv2df): Merge with *vec_concatv2df.
11824
11825 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
11826
11827         PR debug/48343
11828         * combine.c (combine_instructions): Add last_combined_insn,
11829         update it if insn is after it, pass it to all try_combine calls.
11830         (try_combine): Add last_combined_insn parameter, pass it instead of
11831         i3 to propagate_for_debug.
11832
11833 2011-04-07  Nick Clifton  <nickc@redhat.com>
11834
11835         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
11836         to handle MDR <-> data register transfers.
11837         (movhi_internal): Likewise.
11838
11839 2011-04-07  Alan Modra  <amodra@gmail.com>
11840
11841         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
11842         previous stack info.
11843
11844 2011-04-07  Tom de Vries  <tom@codesourcery.com>
11845
11846         PR target/43920
11847         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
11848         flow_find_cross_jump.  Swap variables to implement backward replacement.
11849         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
11850
11851 2011-04-07  Tom de Vries  <tom@codesourcery.com>
11852
11853         PR target/43920
11854         * cfgcleanup.c (walk_to_nondebug_insn): New function.
11855         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
11856         and bb2.
11857         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
11858         src1 or src2.  Redirect edges to the last basic block.  Update
11859         frequency and count on multiple basic blocks in case of fallthru.
11860
11861 2011-04-07  Tom de Vries  <tom@codesourcery.com>
11862
11863         PR target/43920
11864         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
11865         function.
11866         (old_insns_match_p): Change return type.  Replace return false/true
11867         with return dir_none/dir_both.  Use can_replace_by.
11868         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
11869         direction from dir_p.  Register replacement direction in dir, last_dir
11870         and afterlast_dir.  Handle new return type of old_insns_match_p using
11871         merge_dir.  Return replacement direction in dir_p.
11872         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
11873         return type of old_insns_match_p.
11874         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
11875         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
11876         flow_find_cross_jump.
11877         * basic-block.h (enum replace_direction): New type.
11878         (flow_find_cross_jump): Add parameter to declaration.
11879
11880 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
11881
11882         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
11883         (AVXMODEDCVTPS2DQ): Ditto.
11884         (VEC_FLOAT_MODE): Ditto.
11885         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
11886         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
11887         (<any_logic:code><mode>3): Use VF mode iterator.
11888         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
11889         Use VF mode iterator.
11890         (copysign<mode>3): Use VF mode iterator.
11891         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
11892         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
11893         (*<any_logic:code><MODEF:mode>3): Merge with
11894         *avx_<any_logic:code><MODEF:mode>3.
11895         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
11896         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
11897         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
11898         (avx_cvtdq2ps<avxmodesuffix>): Remove.
11899         (sse2_cvtdq2ps): Use %v modifier.
11900         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
11901         (avx_cvtps2dq<avxmodesuffix>): Remove.
11902         (sse2_cvtps2dq): Use %v modifier.
11903         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
11904         (avx_cvttps2dq<avxmodesuffix>): Remove.
11905         (sse2_cvttps2dq): Use %v modifier.
11906         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
11907         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
11908         (sse2_cvtsd2siq): Fix insn template.
11909         (sse2_cvtsd2siq_2): Ditto.
11910         (sse2_cvttsd2siq): Ditto.
11911         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
11912         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
11913
11914 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
11915
11916         * gcov-io.c: Use GCC Runtime Library Exception.
11917
11918 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
11919
11920         PR debug/48466
11921         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
11922         as base_reg whatever register reg has been eliminated to, instead
11923         of hardcoding STACK_POINTER_REGNUM.
11924
11925 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
11926
11927         * doc/tm.texi.in: Document C target hooks as separate from general
11928         target hooks.
11929         * doc/tm.texi: Regenerate.
11930         * genhooks.c (struct hook_desc): Add docname field.
11931         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
11932         docname field.
11933         (hook_array): Include c-target.def.
11934         (emit_documentation): Use docname field in output.
11935         (emit_init_macros): Take docname argument.  Only emit definitions
11936         for hooks matching docname.
11937         (main): Expect additional arguments in all cases.  Pass argument
11938         to emit_init_macros.
11939         * target.def: Move initial macro definitions and comments to
11940         target-hooks-macros.h.
11941         (gcc_targetcm): Move to c-family/c-target.def.
11942         * target.h (targetcm): Move declaration to c-family/c-target.h.
11943         * targhooks.c (default_handle_c_option): Move to
11944         c-family/c-opts.c.
11945         * targhooks.h (default_handle_c_option): Move declaration to
11946         c-family/c-common.h.
11947         * target-hooks-macros.h: New file.
11948         * config.gcc (target_has_targetcm): Define and use to add to
11949         c_target_objs and cxx_target_objs.
11950         * config/default-c.c: New file.
11951         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
11952         of target.h and target-def.h.
11953         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
11954         (darwin_objc_construct_string, darwin_cfstring_ref_p,
11955         darwin_check_cfstring_format_arg): Make static.
11956         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
11957         TARGET_STRING_OBJECT_REF_TYPE_P,
11958         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
11959         * config/darwin-protos.h (darwin_objc_construct_string,
11960         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
11961         declare.
11962         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
11963         TARGET_STRING_OBJECT_REF_TYPE_P,
11964         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
11965         * config/t-darwin (darwin-c.o): Update dependencies.
11966         * system.h (TARGET_HAS_TARGETCM): Poison.
11967         * Makefile.in (TARGET_H): Update.
11968         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
11969         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
11970         (default-c.o): New target.
11971         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
11972         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
11973         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
11974         c-target.def.
11975         (build/genhooks.o): Update dependencies.
11976
11977 2011-04-06  Richard Guenther  <rguenther@suse.de>
11978
11979         * ipa-inline.c (enum inlining_mode): Remove.
11980         (cgraph_flatten): Use some other token.
11981         (cgraph_edge_early_inlinable_p): New function, split out from ...
11982         (cgraph_perform_always_inlining): New function, split out from ...
11983         (cgraph_decide_inlining_incrementally): ... here.
11984         (cgraph_mark_inline_edge): Adjust.
11985         (cgraph_early_inlining): Re-structure.
11986         (pass_early_inline): Require SSA form.
11987
11988 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
11989             Julian Brown  <julian@codesourcery.com>
11990             Mark Shinwell  <shinwell@codesourcery.com>
11991
11992         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
11993         LO_REGS only for Thumb-1.
11994         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
11995         be used in short instructions when optimising for size on Thumb-2.
11996
11997 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
11998
11999         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
12000         associated with user returns to be preserved.
12001
12002 2011-04-06  Tristan Gingold  <gingold@adacore.com>
12003
12004         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
12005         symbol_queue_size, DBXOUT_DECR_NESTING,
12006         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
12007         if XCOFF_DEBUGGING_INFO.
12008
12009 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
12010
12011         * config/i386/i386.md (attribute isa): New.
12012         (attribute enabled): New.
12013         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
12014         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
12015         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
12016         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
12017         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
12018         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
12019         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
12020         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
12021
12022         * config/i386/sse.md (VF): New mode iterator.
12023         (VF1): Ditto.
12024         (VF2): Ditto.
12025         (VF_128): Ditto.
12026         (SSEMODEF4): Remove.
12027         (attribute sse): Handle V8SF and V4DF modes.
12028         (<absneg:code><mode>2): Use VF mode iterator.
12029         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
12030         mode iterator.
12031         (<plusminus_insn><mode>3): Use VF mode iterator.
12032         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
12033         Use VF mode iterator.
12034         (<sse>_vm<plusminus_insn><mode>3): Merge with
12035         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
12036         (mul<mode>3): Use VF mode iterator.
12037         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
12038         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
12039         mode iterator.
12040         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
12041         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
12042         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
12043         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
12044         mode iterator.
12045         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
12046         Use VF1 mode iterator.
12047         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
12048         (sqrt<VF2:mode>2): New expander.
12049         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
12050         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
12051         and sqrtv2df2.  Use VF mode iterator.
12052         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
12053         mode iterator.
12054         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
12055         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
12056         Use VF1 mode iterator.
12057         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
12058         (<smaxmin:code><mode>3): Use VF mode iterator.
12059         (*<smaxmin:code><mode>3_finite): Merge with
12060         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
12061         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
12062         (<sse>_vm<smaxmin:code><mode>2): Merge with
12063         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
12064         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
12065         mode iterator.
12066         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
12067         mode iterator.
12068         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
12069         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
12070         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
12071         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
12072         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
12073         VF mode iterator.
12074         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
12075         Use VF_128 mode iterator.
12076         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
12077         mode iterator.
12078         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
12079         VF_128 mode iterator.
12080         (vcond<mode>): Use VF mode iterator.
12081         * config/i386/predicates.md (sse_comparison_operator): Merge with
12082         avx_comparison_float_operator.  Do not declare as special_predicate.
12083         * config/i386/i386.c (struct builtin_description): Update for renamed
12084         compare patterns.
12085         (ix86_expand_args_builtin): Ditto.
12086         (ix86_expand_sse_compare_mask): Ditto.
12087
12088 2011-04-06  Richard Guenther  <rguenther@suse.de>
12089
12090         * tree-inline.c (estimate_num_insns): For calls simply account
12091         for all passed arguments and a used return value.
12092
12093 2011-04-06  Richard Guenther  <rguenther@suse.de>
12094
12095         PR tree-optimization/47663
12096         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
12097         call_stmt_time fields.
12098         (cgraph_edge_inlinable_p): Declare.
12099         (cgraph_edge_recursive_p): New inline function.
12100         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
12101         (cgraph_clone_edge): Copy it.
12102         * ipa-inline.c (cgraph_estimate_edge_time): New function.
12103         Account for call stmt time.
12104         (cgraph_estimate_time_after_inlining): Take edge argument.
12105         (cgraph_estimate_edge_growth): Account call stmt size.
12106         (cgraph_estimate_size_after_inlining): Take edge argument.
12107         (cgraph_mark_inline_edge): Adjust.
12108         (cgraph_check_inline_limits): Likewise.
12109         (cgraph_recursive_inlining_p): Remove.
12110         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
12111         (cgraph_decide_recursive_inlining): Take edge argument and
12112         adjust.
12113         (cgraph_decide_inlining_of_small_functions): Do not avoid
12114         diags for recursive inlining here.
12115         (cgraph_flatten): Adjust.
12116         (cgraph_decide_inlining_incrementally): Likewise.
12117         (estimate_function_body_sizes): Remove call cost handling.
12118         (compute_inline_parameters): Initialize caller edge call costs.
12119         (cgraph_estimate_edge_growth): New function.
12120         (cgraph_estimate_growth): Use it.
12121         (cgraph_edge_badness): Likewise.
12122         (cgraph_check_inline_limits): Take an edge argument.
12123         (cgraph_decide_inlining_of_small_functions): Adjust.
12124         (cgraph_decide_inlining): Likewise.
12125         * tree-inline.c (estimate_num_insns): Only account for call
12126         return value if it is used.
12127         (expand_call_inline): Avoid diagnostics on recursive inline
12128         functions here.
12129         * lto-cgraph.c (lto_output_edge): Output edge call costs.
12130         (input_edge): Input edge call costs.
12131
12132 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12133
12134         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
12135
12136 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
12137
12138         * doc/invoke.texi (Spec Files): Fix typo.
12139
12140 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
12141
12142         * profile.c (branch_prob): Move declaration of local variable.  Remove
12143         obsolete ??? comment.  Expand the location explicitly instead of using
12144         the LOCATION_FILE and LOCATION_LINE macros.
12145
12146 2011-04-06  Wei Guozhi  <carrot@google.com>
12147
12148         PR target/47855
12149         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
12150         (arm_cond_branch): Likewise.
12151         (arm_cond_branch_reversed): Likewise.
12152         (arm_jump): Likewise.
12153         (push_multi): Likewise.
12154         * config/arm/constraints.md (Py): New constraint.
12155
12156 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
12157
12158         PR bootstrap/48471
12159         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
12160         Move these...
12161         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
12162         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
12163         #ifdef DBX_DEBUGGING_INFO.
12164
12165 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
12166
12167         PR bootstrap/48403
12168         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
12169         if old and new states differ.
12170
12171 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
12172
12173         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
12174         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
12175         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
12176         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
12177         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
12178         mcfv4e): Use Alias.
12179         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
12180         ColdFire options to -mcpu= options.
12181
12182 2011-04-05  Jeff Law  <law@redhat.com>
12183
12184         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
12185         check if BB is a successor of LOOP->header and return
12186         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
12187
12188 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
12189
12190         * cprop.c (struct reg_use): Remove.
12191         (reg_use_table): Make an array of RTX.
12192         (find_used_regs, constprop_register, local_cprop_pass,
12193         bypass_block): Simplify users of reg_use_table.
12194         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
12195         on one of the uses found by find_used_regs.
12196
12197 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
12198
12199         PR bootstrap/48469
12200         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
12201         declaration.
12202
12203 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
12204
12205         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
12206         as an rtx.
12207         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
12208
12209 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
12210
12211         PR middle-end/48441
12212         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
12213
12214 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
12215
12216         * combine.c: Include obstack.h.
12217         (struct insn_link): Define.
12218         (uid_log_links): Adjust type.
12219         (FOR_EACH_LOG_LINK): New macro.
12220         (insn_link_obstack): Declare.
12221         (alloc_insn_link): Define.
12222         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
12223         type of link variables.
12224         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
12225         (try_combine, record_promoted_values, distribute_notes): Likewise.
12226         (distribute_links): Likewise.  Tweak prototype.
12227         (clear_log_links): Delete.
12228         (adjust_for_new_dest): Call alloc_insn_link.
12229         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
12230
12231 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
12232
12233         * gcse.c (modify_mem_list): Convert to an array of VECs.
12234         (canon_modify_mem_list, compute_transp): Tweak formatting.
12235         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
12236         (load_killed_in_block_p): Likewise.
12237         (record_last_mem_set_info): Likewise.
12238         (clear_modify_mem_tables): Likewise.
12239
12240 2011-04-05  Tom de Vries  <tom@codesourcery.com>
12241
12242         PR middle-end/48461
12243         * function.c (emit_use_return_register_into_block): Only define if
12244         HAVE_return.
12245
12246 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
12247
12248         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
12249
12250 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
12251
12252         * config/rx/rx-opts.h: New.
12253         * config/rx/rx.c (rx_cpu_type): Remove.
12254         (rx_handle_option): Don't assert that global structures are in
12255         use.  Access variables via opts pointer.  Defer most handling of
12256         OPT_mint_register_.  Use error_at.
12257         (rx_option_override): Handle deferred OPT_mint_register_ here.
12258         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
12259         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
12260         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
12261         (rx_cpu_types): New Enum and EnumValue entries.
12262         (mint-register=): Use Defer and use Var accordingly.
12263
12264 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
12265
12266         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
12267         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
12268         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
12269         Move these...
12270         (debug_free_queue, debug_nesting, symbol_queue_index):
12271         ...and these...
12272         * dbxout.c: ...to here.  Make static.
12273
12274 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
12275
12276         * gcse.c (modify_pair): Define.  Define a VEC of it.
12277         (canon_modify_mem_list): Convert to an array of VECs.
12278         (free_insn_expr_list_list): Delete.
12279         (clear_modify_mem_tables): Call VEC_free instead.
12280         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
12281         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
12282         (canon_list_insert, compute_transp): Likewise.
12283
12284 2011-04-05  Tom de Vries  <tom@codesourcery.com>
12285
12286         PR target/43920
12287         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
12288         for size.
12289
12290 2011-04-05  Tom de Vries  <tom@codesourcery.com>
12291
12292         PR target/43920
12293         * function.c (emit_use_return_register_into_block): New function.
12294         (thread_prologue_and_epilogue_insns): Use
12295         emit_use_return_register_into_block.
12296
12297 2011-04-05  Tom de Vries  <tom@codesourcery.com>
12298
12299         PR target/43920
12300         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
12301         insn.
12302
12303 2011-04-05  Tom de Vries  <tom@codesourcery.com>
12304
12305         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
12306
12307 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
12308
12309         * config/arm/arm.md (define_constants for unspec): Replace with
12310         define_c_enum.
12311         (define_constants for unspecv): Replace with define_c_enum.
12312         * config/arm/neon.md (define_constants for unspec): Replace with
12313         define_c_enum.
12314
12315 2011-04-04  Richard Henderson  <rth@redhat.com>
12316
12317         PR bootstrap/48400
12318         * dwarf2out.c (output_line_info): Always emit line info from
12319         at least one section.
12320         (dwarf2out_init): Create text_section_line_info here ...
12321         (set_cur_line_info_table): ... not here.
12322
12323 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
12324
12325         PR target/48380
12326         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
12327         not called.
12328
12329         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
12330
12331 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
12332
12333         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
12334         (expr_equiv_p): Remove.
12335         (insert_set_in_table): Look at <dest, src> pair instead of expr.
12336         (hash_scan_set): Update call to insert_set_in_table.
12337         (dump_hash_table): Dump <dest, src> pair.
12338         (lookup_set): Simplify.  Lookup <dest, src> pair.
12339         (compute_transp): Remove, fold heavily simplified code into...
12340         (compute_local_properties): ...here.  Expect COMP and TRANSP
12341         unconditionally.
12342         (find_avail_set): Take set directly from struct expr.
12343         (find_bypass-set): Likewise.
12344         (bypass_block): Likewise.
12345         (cprop_insn): Likewise.  Remove redundant INSN_P test.
12346
12347         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
12348         checks on form of COND from find_implicit_sets to here.
12349         (find_implicit_sets): Cleanup control flow. Split critical edges
12350         if it exposes implicit sets.  Allocate/resize implicit_sets as
12351         necessary.
12352         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
12353         changed something.  Run df_analyze after find_implicit_sets if any
12354         edges were split.  Do not allocate implicit_sets here.
12355
12356         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
12357         (gcse_obstack): Renamed to cprop_obstack.
12358         (GNEW, GNEWVEC, GNEWVAR): Remove.
12359         (gmalloc): Remove.
12360         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
12361         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
12362         (gcse_alloc): Likewise, and rename to cprop_alloc.
12363         (alloc_gcse_men, free_gcse_mem): Remove.
12364         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
12365         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
12366         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
12367
12368         * cprop.c (oprs_not_set_p): Remove.
12369         (mark_set, mark_clobber): Remove.
12370         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
12371         (reg_not_set_p): New function.
12372         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
12373         (cprop_insn): Likewise.
12374         (cprop_jump): Use FOR_EACH_EDGE.
12375
12376 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
12377
12378         PR bootstrap/48403
12379         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
12380         (rank_for_schedule): Use scheduled_insns vector instead of
12381         last_scheduled_insn.
12382         (ok_for_early_queue_removal): Likewise.
12383         (queue_to_ready): Search forward in nonscheduled_insns_begin if
12384         we have a dbg_cnt.
12385         (choose_ready): Likewise.
12386         (commit_schedule): Use VEC_iterate.
12387         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
12388         a dbg_cnt, use it and ensure the first insn is in the ready list.
12389         (haifa_sched_init): Allocate scheduled_insns.
12390         (sched_extend_ready_list): Don't allocate it; reserve space.
12391         (haifa_sched_finish): Free it.
12392
12393 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
12394
12395         * optc-gen.awk: Always remove type from Variable entry before
12396         recording in var_seen.
12397
12398 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
12399
12400         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
12401         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
12402         call to tidy_fallthru_edges.
12403
12404 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
12405
12406         * doc/options.texi (ToLower): Document.
12407         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
12408         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
12409         * opts.h (cl_option): Add cl_tolower field.
12410         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
12411         arguments with lowercase strings.
12412         * config/rx/rx.opt (mcpu=): Add ToLower.
12413         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
12414         argument.
12415
12416 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
12417
12418         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
12419
12420 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
12421
12422         * config/vax/vax.c: Include reload.h.
12423
12424 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
12425
12426         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
12427         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12428         (sparc_preferred_reload_class): New function.
12429
12430 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
12431
12432         PR debug/48401
12433         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
12434         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
12435
12436 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
12437
12438         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
12439         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
12440
12441 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
12442
12443         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
12444         (ASM_OUTPUT_ALIGNED_BSS): Define.
12445
12446 2011-04-03  Michael Matz  <matz@suse.de>
12447
12448         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
12449         and next_slot members.
12450         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
12451         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
12452         (lto_streamer_cache_append): Declare.
12453         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
12454         unsigned index, remove offset parameter, ensure that we append
12455         or update existing entries.
12456         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
12457         parameter, update next_slot for append.
12458         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
12459         parameter.
12460         (lto_streamer_cache_insert_at): Likewise.
12461         (lto_streamer_cache_append): New function.
12462         (lto_streamer_cache_lookup): Use unsigned index.
12463         (lto_streamer_cache_get): Likewise.
12464         (lto_record_common_node): Don't test tree_node_can_be_shared.
12465         (preload_common_node): Adjust call to lto_streamer_cache_insert.
12466         (lto_streamer_cache_delete): Don't free offsets member.
12467         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
12468         (lto_output_string_with_length): Use lto_output_data_stream.
12469         (lto_output_tree_header): Remove ix parameter, don't write it.
12470         (lto_output_builtin_tree): Likewise.
12471         (lto_write_tree): Adjust callers to above, don't track and write
12472         offset, write unsigned index.
12473         (output_unreferenced_globals): Don't emit all global vars.
12474         (write_global_references): Use unsigned indices.
12475         (lto_output_decl_state_refs): Likewise.
12476         (write_symbol): Likewise.
12477         * lto-streamer-in.c (lto_input_chain): Move earlier.
12478         (input_function): Use unsigned index.
12479         (input_alias_pairs): Don't read and then ignore all global vars.
12480         (lto_materialize_tree): Remove ix_p parameter, don't read index,
12481         don't pass it back, use lto_streamer_cache_append.
12482         (lto_register_var_decl_in_symtab): Use unsigned index.
12483         (lto_register_function_decl_in_symtab): Likewise.
12484         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
12485         index.
12486         (lto_get_builtin_tree): Don't read index, use
12487         lto_streamer_cache_append.
12488         (lto_read_tree): Adjust call to lto_materialize_tree.
12489
12490         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
12491         don't use function calls in arguments to MIN.
12492
12493         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
12494         twice.
12495
12496         * gimple.c (gimple_type_leader_entry): Mark deletable.
12497
12498 2011-04-03  Alan Modra  <amodra@gmail.com>
12499
12500         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
12501
12502 2011-04-03  Michael Matz  <matz@suse.de>
12503
12504         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
12505         an integer.
12506         * tree.h (tree_decl_non_common.vindex): Adjust comment.
12507
12508 2011-04-03  Michael Matz  <matz@suse.de>
12509
12510         * cgraphbuild.c (record_reference): Canonicalize constructor values.
12511         * gimple-fold.c (canonicalize_constructor_val): Accept being called
12512         without function context.
12513         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
12514         current_function_decl and cfun.
12515
12516 2011-04-03  Michael Matz  <matz@suse.de>
12517
12518         * tree.c (decl_init_priority_insert): Don't create entry for
12519         default priority.
12520         (decl_fini_priority_insert): Ditto.
12521         (fields_compatible_p, find_compatible_field): Remove.
12522         * tree.h (fields_compatible_p, find_compatible_field): Remove.
12523         * gimple.c (gimple_compare_field_offset): Adjust block comment.
12524
12525 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
12526
12527         * combine.c (try_combine): Remove useless local variable.
12528
12529 2011-04-03  Richard Guenther  <rguenther@suse.de>
12530             Ira Rosen  <ira.rosen@linaro.org>
12531
12532         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
12533         non-variable offsets and compare the remaining bases of the two
12534         accesses instead of looking for exact same data-ref.
12535
12536 2011-04-02  Kai Tietz  <ktietz@redhat.com>
12537
12538         PR target/48416
12539         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
12540
12541         * i386.c (ix86_is_msabi_thiscall): New helper function.
12542         (ix86_is_type_thiscall): New helper function.
12543         (ix86_comp_type_attributes): Handle thiscall for method-functions
12544         special.
12545         (init_cumulative_args): Likewise.
12546         (find_drap_reg): Likewise.
12547         (ix86_static_chain): Likewise.
12548         (x86_this_parameter): Likewise.
12549         (x86_output_mi_thunk): Likewise.
12550
12551 2011-04-01  Olivier Hainque  <hainque@adacore.com>
12552             Nicolas Setton  <setton@adacore.com>
12553             Eric Botcazou  <ebotcazou@adacore.com>
12554
12555         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
12556         (add_gnat_descriptive_type_attribute): New function.
12557         (gen_array_type_die): Call it.
12558         (gen_enumeration_type_die): Likewise.
12559         (gen_struct_or_union_type_die): Likewise.
12560         (modified_type_die): Likewise.
12561         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
12562         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
12563         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
12564
12565 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
12566
12567         PR bootstrap/48148
12568         * dwarf2out.c (resolve_addr): Don't call force_decl_die
12569         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
12570
12571         Revert:
12572         2011-03-17  Richard Guenther  <rguenther@suse.de>
12573
12574         PR bootstrap/48148
12575         * lto-cgraph.c (input_overwrite_node): Clear the abstract
12576         origin for decls in other ltrans units.
12577         (input_varpool_node): Likewise.
12578
12579 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
12580
12581         PR middle-end/48335
12582         * expr.c (expand_assignment): Handle all possibilities
12583         if TO_RTX is CONCAT.
12584         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
12585         (store_split_bit_field): If SUBREG_REG (op0) or
12586         op0 itself has smaller mode than word, return it
12587         for offset 0 and const0_rtx for out-of-bounds stores.
12588         If word is const0_rtx, skip it.
12589
12590 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
12591
12592         * config/h8300/h8300.c (print_operand_address): Rename to...
12593         (h8300_print_operand_address): ...this. Make static. Adjust comments.
12594         Call h8300_print_operand and h8300_print_operand_address instead of
12595         print_operand and print_operand_address. Declare.
12596         (print_operand): Renake to...
12597         (h8300_print_operand): ...this. Make static. Adjust comments.
12598         Call h8300_print_operand instead of print_operand. Declare.
12599         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
12600         (h8300_register_move_cost): Likewise.
12601         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
12602         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
12603         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
12604         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
12605         * config/h8300/h8300-protos.h (print_operand): Delete.
12606         (print_operand_address): Delete.
12607
12608 2011-04-01  Richard Henderson  <rth@redhat.com>
12609
12610         PR 48400
12611         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
12612         in strict mode before dwarf4.  Re-order tests to early out
12613         before switching sections.
12614
12615 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
12616
12617         * config/h8300/constraints.md: New file.
12618         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
12619         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
12620         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
12621         * config/h8300/predicates.md (bit_operand): Likewise.
12622         (incdec_operand): Use satisfies_constraint_M and
12623         satisfies_constraint_O.  Don't use C code block.
12624         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
12625         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
12626         (compute_mov_length): Use satisfies_constraint_G.
12627         (fix_bit_operand): Use satisfies_constraint_U.
12628         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
12629         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
12630         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
12631         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
12632         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
12633         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
12634         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12635         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
12636         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
12637         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
12638         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
12639         (EXTRA_MEMORY_CONSTRAINT): Delete.
12640
12641 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
12642             Michael Meissner  <meissner@linux.vnet.ibm.com>
12643
12644         PR target/48262
12645         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
12646         operands, as per the specifications.
12647
12648         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
12649         (vec_extract_evenv4sf): Ditto.
12650         (vec_extract_evenv8hi): Ditto.
12651         (vec_extract_evenv16qi): Ditto.
12652         (vec_extract_oddv4si): Ditto.
12653
12654 2011-03-31  Mark Wielaard  <mjw@redhat.com>
12655
12656         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
12657         high_pc attribute if the CU has no associated code. Only output
12658         DW_AT_entry_pc for CU if not generating strict dwarf and
12659         dwarf_version < 4.
12660
12661 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
12662
12663         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
12664         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
12665         out of ...
12666         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
12667         * final.c (final_start_function): Call the new function rather
12668         than using a NULL argument for dwarf2out_frame_debug.
12669
12670         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
12671         that contains the prologue.
12672
12673         * haifa-sched.c (queue_insn): New arg REASON.  All callers
12674         changed.  Print it in debugging output.
12675
12676         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
12677
12678         * sched-ebb.c (begin_schedule_ready): Remove second argument.
12679         Split most of the code into...
12680         (begin_move_insn): ... here.  New function.
12681         (ebb_sched_info): Add a pointer to it.
12682         * haifa-sched.c (scheduled_insns): New static variable.
12683         (sched_extend_ready_list): Allocate it.
12684         (schedule_block): Use it to record the order of scheduled insns.
12685         Perform RTL changes to move insns only after all scheduling
12686         decisions have been made.
12687         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
12688         begin_move_insn field.
12689         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
12690         * sched-int.h (struct haifa_sched_info): Remove second argument
12691         from begin_schedule_ready hook.  Add new member begin_move_insn.
12692         * sched-rgn.c (begin_schedule_ready): Remove second argument.
12693         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
12694
12695         * haifa-sched.c (prune_ready_list): New function, broken out of
12696         schedule_block.
12697         (schedule_block): Use it.
12698
12699 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12700
12701         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
12702
12703 2011-04-01  Kai Tietz  <ktietz@redhat.com>
12704
12705         * config.gcc (*-*-mingw*): Allow as option the
12706         posix threading model.
12707         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
12708         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
12709         definition.
12710         (CPP_SPEC): Add pthread/no-pthread handling.
12711         (LIB_SPEC): Likewise.
12712         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
12713         (LIB_SPEC): Likewise.
12714         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
12715         flag to pass -pthread option for shared libgcc build.
12716         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
12717         for shared libgcc build.
12718         * config/i386/t-mingw-pthread: New file.
12719         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
12720         New define to enable use of library pthread by default.
12721         * config/i386/mingw.opt (pthread): New driver option.
12722         (no-pthread): New driver option.
12723         * config/i386/cygming.opt: Make sure trailing empty line is retained.
12724         * config/i386/mingw-w64.opt: Likewise.
12725
12726 2011-04-01  Gary Funck  <gary@intrepid.com>
12727
12728         * c-decl.c (grokdeclarator): Fix formatting.
12729
12730 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
12731
12732         * expr.c (emit_block_move_via_movmem): Use n_generator_args
12733         instead of n_operands.
12734         (set_storage_via_setmem): Likewise.
12735         * optabs.c (maybe_gen_insn): Likewise.
12736         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
12737         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
12738         (mips_expand_builtin_direct): Likewise.
12739         * config/spu/spu.c (expand_builtin_args): Likewise.
12740
12741 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
12742
12743         * recog.h (insn_data_d): Add n_generator_args.
12744         * genoutput.c (data): Likewise.
12745         (output_insn_data): Print it.
12746         (max_opno, num_dups): Delete.
12747         (scan_operands): Just fill in "d->operand[...]".
12748         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
12749
12750 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
12751
12752         * gensupport.h (pattern_stats): New structure.
12753         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
12754         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
12755         (max_operand_1, max_operand_vec): Delete.
12756         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
12757
12758 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
12759
12760         * emit-rtl.c (emit_pattern_after_setloc): New function.
12761         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
12762         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
12763         (emit_pattern_after): New function.
12764         (emit_insn_after, emit_jump_insn_after): Call it.
12765         (emit_call_insn_after, emit_debug_insn_after): Likewise.
12766         (emit_pattern_before_setloc): New function.
12767         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
12768         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
12769         Likewise.
12770         (emit_pattern_before): New function.
12771         (emit_insn_before, emit_jump_insn_before): Call it.
12772         (emit_call_insn_before, emit_debug_insn_before): Likewise.
12773
12774 2011-03-31  Richard Henderson  <rth@redhat.com>
12775
12776         * dwarf2out.c (dw_separate_line_info_ref): Remove.
12777         (dw_separate_line_info_entry): Remove.
12778         (enum dw_line_info_opcode): New.
12779         (dw_line_info_entry): Use it.
12780         (dw_line_info_table, dw_line_info_table_p): New.
12781         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
12782         (line_info_table, line_info_label_num): Remove.
12783         (line_info_table_in_use): Remove.
12784         (separate_line_info_table): Remove.
12785         (separate_line_info_table_allocated): Remove.
12786         (separate_line_info_table_in_use): Remove.
12787         (LINE_INFO_TABLE_INCREMENT): Remove.
12788         (line_info_label_num): New.
12789         (cur_line_info_table): New.
12790         (text_section_line_info, cold_text_section_line_info): New.
12791         (separate_line_info): New.
12792         (SEPARATE_LINE_CODE_LABEL): Remove.
12793         (print_dwarf_line_table): Remove.
12794         (debug_dwarf): Don't dump it.
12795         (output_one_line_info_table): New.
12796         (output_line_info): Use it.
12797         (new_line_info_table): New.
12798         (set_cur_line_info_table): New.
12799         (dwarf2out_switch_text_section): Use it.
12800         (dwarf2out_begin_function): Likewise.
12801         (push_dw_line_info_entry): New.
12802         (dwarf2out_source_line): Rewrite for new line info tables.
12803         (dwarf2out_init): Remove dead initailizations.
12804
12805 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
12806
12807         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
12808         various flags.
12809         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
12810         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
12811         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
12812         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
12813         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
12814         * opt-functions.awk (flag_init, switch_bit_fields): New.
12815         (switch_flags): Don't handle flags moved to bit-fields.  Don't
12816         generate CL_MISSING_OK or CL_SAVE.
12817         * optc-gen.awk: Update to generate bit-field output as well as
12818         flags field.
12819         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
12820         bit-field instead of CL_REJECT_DRIVER flag.
12821         * opts-common.c (generate_canonical_option,
12822         decode_cmdline_option): Use bit-fields instead of CL_* flags.
12823         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
12824         instead of CL_REJECT_NEGATIVE flag.
12825         * toplev.c (print_switch_values): Use cl_report bit-field instead
12826         of CL_REPORT flag.
12827
12828 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
12829
12830         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
12831         a zero minimum index only if it is redundant.
12832
12833 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
12834
12835         PR rtl-optimization/48381
12836         * ira-color.c (assign_hard_reg): Use hard reg set intersection
12837         instead of ira_class_hard_reg_index for calculating conflicting
12838         hard registers.
12839
12840 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
12841
12842         * cprop.c: Clean up hash table building.
12843         (reg_avail_info): Remove.
12844         (oprs_available_p): Remove.
12845         (record_last_reg_set_info): Remove.
12846         (record_last_set_info): Remove.
12847         (reg_available_p): New function.
12848         (gcse_constant_p): Do not treat unfolded conditions as constants.
12849         (make_set_regs_unavailable): New function.
12850         (hash_scan_set): Simplify with new reg_available_p.
12851         (compute_hash_table_work): Traverse insns stream only once.
12852         Do not compute reg_avail_info. Traverse insns in reverse order.
12853         Record implicit sets after recording explicit sets from the block.
12854
12855 2011-03-31  Michael Matz  <matz@suse.de>
12856
12857         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
12858
12859 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
12860
12861         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
12862         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
12863         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12864         (h8300_mode_dependent_address_p): New function.
12865         (h8300_get_index): Make static.
12866
12867 2011-03-31  Jeff Law  <law@redhat.com>
12868
12869         * reload1.c (elimination_effects): Fix typo in recent change.
12870
12871         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
12872         typo potentially leading to null pointer dereference.
12873
12874         * caller-save.c (new_saved_hard_reg): Eliminate return value.
12875         (setup_save_areas): Corresponding changes to avoid useless
12876         assignments.
12877
12878         * jump.c (reversed_comparison_code_parts): Avoid successive return
12879         statements when REVERSE_CONDITION is defined.
12880
12881         * expr.c (expand_assignment): Avoid useless assignments.
12882         (expand_expr_real_1): Likewise.
12883         (expand_expr_real_2): Avoid useless statements.
12884
12885         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
12886
12887         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
12888
12889         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
12890         statements.
12891
12892         * stmt.c (expand_expr_stmt): Avoid useless assignment.
12893
12894 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
12895
12896         PR target/47109
12897         * doc/tm.texi.in (TARGET_VERSION): Remove.
12898         * doc/tm.texi: Regenerate.
12899         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
12900         * collect2.c (main): Don't use TARGET_VERSION.
12901         * mips-tdump.c (main): Don't use TARGET_VERSION.
12902         * mips-tfile.c (main): Don't use TARGET_VERSION.
12903         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
12904         * config/rs6000/vxworksae.h: Remove.
12905         * config/alpha/alpha.h (TARGET_VERSION): Remove.
12906         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
12907         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
12908         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
12909         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12910         * config/arm/arm.h (TARGET_VERSION): Remove.
12911         * config/arm/coff.h (TARGET_VERSION): Remove.
12912         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
12913         * config/arm/elf.h (TARGET_VERSION): Remove.
12914         * config/arm/freebsd.h (TARGET_VERSION): Remove.
12915         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
12916         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
12917         * config/arm/pe.h (TARGET_VERSION): Remove.
12918         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
12919         * config/arm/semi.h (TARGET_VERSION): Remove.
12920         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
12921         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
12922         * config/arm/vxworks.h (TARGET_VERSION): Remove.
12923         * config/avr/avr.h (TARGET_VERSION): Remove.
12924         * config/bfin/bfin.h (TARGET_VERSION): Remove.
12925         * config/fr30/fr30.h (TARGET_VERSION): Remove.
12926         * config/frv/frv.h (TARGET_VERSION): Remove.
12927         * config/h8300/h8300.h (TARGET_VERSION): Remove.
12928         * config/i386/cygwin.h (TARGET_VERSION): Remove.
12929         * config/i386/darwin.h (TARGET_VERSION): Remove.
12930         * config/i386/darwin64.h (TARGET_VERSION): Remove.
12931         * config/i386/djgpp.h (TARGET_VERSION): Remove.
12932         * config/i386/freebsd.h (TARGET_VERSION): Remove.
12933         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
12934         * config/i386/gnu.h (TARGET_VERSION): Remove.
12935         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
12936         * config/i386/i386elf.h (TARGET_VERSION): Remove.
12937         * config/i386/linux.h (TARGET_VERSION): Remove.
12938         * config/i386/linux64.h (TARGET_VERSION): Remove.
12939         * config/i386/lynx.h (TARGET_VERSION): Remove.
12940         * config/i386/mingw32.h (TARGET_VERSION): Remove.
12941         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
12942         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
12943         * config/i386/netware.h (TARGET_VERSION): Remove.
12944         * config/i386/nto.h (TARGET_VERSION): Remove.
12945         * config/i386/openbsd.h (TARGET_VERSION): Remove.
12946         * config/i386/vxworks.h (TARGET_VERSION): Remove.
12947         * config/ia64/elf.h (TARGET_VERSION): Remove.
12948         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
12949         * config/ia64/hpux.h (TARGET_VERSION): Remove.
12950         * config/ia64/linux.h (TARGET_VERSION): Remove.
12951         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12952         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
12953         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12954         * config/lm32/lm32.h (TARGET_VERSION): Remove.
12955         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
12956         * config/m32c/m32c.h (TARGET_VERSION): Remove.
12957         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
12958         * config/m32r/m32r.h (TARGET_VERSION): Remove.
12959         * config/m68k/linux.h (TARGET_VERSION): Remove.
12960         * config/m68k/m68k.h (TARGET_VERSION): Remove.
12961         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
12962         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
12963         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
12964         * config/mep/mep.h (TARGET_VERSION): Remove.
12965         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
12966         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12967         * config/mips/iris6.h (MACHINE_TYPE): Remove.
12968         * config/mips/linux.h (TARGET_VERSION): Remove.
12969         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
12970         * config/mips/vxworks.h (TARGET_VERSION): Remove.
12971         * config/mmix/mmix.h (TARGET_VERSION): Remove.
12972         * config/mn10300/linux.h (TARGET_VERSION): Remove.
12973         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
12974         * config/pa/pa.h (TARGET_VERSION): Remove.
12975         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
12976         * config/picochip/picochip.h (TARGET_VERSION): Remove.
12977         * config/rs6000/aix.h (TARGET_VERSION): Remove.
12978         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
12979         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
12980         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
12981         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
12982         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
12983         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
12984         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
12985         * config/rs6000/linux.h (TARGET_VERSION): Remove.
12986         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
12987         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
12988         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
12989         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
12990         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
12991         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
12992         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
12993         * config/s390/linux.h (TARGET_VERSION): Remove.
12994         * config/s390/s390.h (TARGET_VERSION): Remove.
12995         * config/s390/tpf.h (TARGET_VERSION): Remove.
12996         * config/score/score.h (TARGET_VERSION): Remove.
12997         * config/sh/linux.h (TARGET_VERSION): Remove.
12998         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
12999         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
13000         * config/sh/sh.h (TARGET_VERSION): Remove.
13001         * config/sh/sh64.h (TARGET_VERSION): Remove.
13002         * config/sh/superh.h (TARGET_VERSION): Remove.
13003         * config/sh/vxworks.h (TARGET_VERSION): Remove.
13004         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
13005         * config/sparc/linux.h (TARGET_VERSION): Remove.
13006         * config/sparc/linux64.h (TARGET_VERSION): Remove.
13007         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
13008         TARGET_NAME32, TARGET_NAME): Remove.
13009         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
13010         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
13011         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
13012         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
13013         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
13014         * config/spu/spu.h (TARGET_VERSION): Remove.
13015         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
13016         * config/v850/v850.h (TARGET_VERSION): Remove.
13017         * config/vax/linux.h (TARGET_VERSION): Remove.
13018         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
13019         * config/xtensa/elf.h (TARGET_VERSION): Remove.
13020         * config/xtensa/linux.h (TARGET_VERSION): Remove.
13021
13022 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
13023
13024         PR target/48142
13025         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
13026         frame-related from frame-unrelated adjustments to the stack pointer.
13027
13028 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
13029
13030         * common.opt (fdebug-types-section): Move earlier.
13031         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
13032
13033 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
13034
13035         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
13036         var.
13037
13038 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
13039
13040         * tree.h (CASE_CHAIN): Define.
13041         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
13042         (gimple_redirect_edge_and_branch): Likewise.
13043
13044 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
13045
13046         PR middle-end/48367
13047         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
13048         calculation.
13049
13050 2011-03-30  Jeff Law  <law@redhat.com>
13051
13052         * PR bootstrap/48371
13053         * reload1.c (reload): Fix botch in last change.
13054
13055         * reload.h (struct reload): Fix typo introduced in last change.
13056
13057 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
13058
13059         * config/arm/arm.opt (mhard-float, msoft-float): Mark
13060         Undocumented.  Remove help text.
13061         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
13062         -mhard-float.
13063
13064 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
13065
13066         * doc/options.texi (NegativeAlias): Document.
13067         (Alias): Mention NegativeAlias.
13068         * opt-functions.awk: Handle NegativeAlias.
13069         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
13070         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
13071         * opts.h (CL_NEGATIVE_ALIAS): Define.
13072         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
13073         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
13074         OPT_mspe_.
13075         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
13076         Alias entries.
13077         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
13078         mno-spe and mno-isel instead of mspe=no and -misel=no.
13079
13080 2011-03-29  Mark Wielaard  <mjw@redhat.com>
13081
13082         * common.opt (fdebug-types-section): New flag.
13083         * doc/invoke.texi: Document new -fno-debug-types-section flag.
13084         * dwarf2out.c (use_debug_types): New define.
13085         (struct die_struct): Mark die_id with GTY desc use_debug_types.
13086         (print_die): Guard output of type unit signatures using
13087         use_debug_types.
13088         (build_abbrev_table): Replace assert of dwarf_version >= 4
13089         with assert on use_debug_types.
13090         (size_of_die): Likewise.
13091         (unmark_dies): Likewise.
13092         (value_format): Decide AT_ref_external form on use_debug_types.
13093         (output_die): Replace dwarf_version version check guard with
13094         use_debug_types where appropriate.
13095         (modified_type_die): Likewise.
13096         (gen_reference_type_die): Likewise.
13097         (dwarf2out_start_source_file): Likewise.
13098         (dwarf2out_end_source_file): Likewise.
13099         (prune_unused_types_walk_attribs): Likewise.
13100         (dwarf2out_finish): Likewise.
13101
13102 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
13103
13104         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
13105
13106 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
13107
13108         PR rtl-optimization/48332
13109         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
13110         mode of input operand N and modeN to its actual mode.
13111
13112 2011-03-30  Jeff Law  <law@redhat.com>
13113
13114         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
13115         define accessor macro.
13116         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
13117         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
13118         (reg_equiv_init): Likewise.
13119         (reg_equivs_size): New variable.
13120         (reg_equiv_init_size): Remove.
13121         (allocate_initial_values): Move prototype to here from....
13122         * integrate.h (allocate_initial_values): Remove prototype.
13123         * integrate.c: Include reload.h.
13124         (allocate_initial_values): Corresponding changes.
13125         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
13126         (fix_reg_equiv_init, no_equiv): Corresponding changes.
13127         (update_equiv_regs): Corresponding changes.
13128         (ira): Corresponding changes.
13129         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
13130         (push_secondary_reload): Corresponding changes.
13131         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
13132         (make_memloc, find_reloads_address): Corresponding changes.
13133         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
13134         (find_reloads_address_1): Corresponding changes.
13135         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
13136         (refers_to_regno_for_reload_p): Corresponding changes.
13137         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
13138         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
13139         * reload1.c: Include ggc.h.
13140         (grow_reg_equivs): New function.
13141         (replace_pseudos_in, reload): Corresponding changes.
13142         (calculate_needs_all_insns, alter_regs): Corresponding changes.
13143         (eliminate_regs_1, elimination_effects): Corresponding changes.
13144         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
13145         (delete_output_reload): Likewise.
13146         * caller-save.c (mark_referenced_regs): Corresponding changes.
13147         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
13148         * frv/predicates.md (frv_load_operand): Corresponding changes.
13149         * microblaze/microblaze.c (double_memory_operand): Corresponding
13150         changes.
13151         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
13152         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
13153         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
13154         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
13155         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
13156         changes.
13157         * pa/pa.c (emit_move_sequence): Corresponding changes.
13158         * vax/vax.c (nonindexed_address_p): Corresponding changes.
13159
13160 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
13161
13162         PR target/47551
13163         * config/arm/arm.c (coproc_secondary_reload_class): Handle
13164         structure modes.  Don't check neon_vector_mem_operand for
13165         vector or structure modes.
13166
13167 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
13168             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13169
13170         PR target/43590
13171         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
13172         operand 1 and reshuffle the operands to match.
13173         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
13174
13175 2011-03-30  Christian Schüler  <cschueler@gmx.de>
13176
13177         PR driver/48208
13178         * config/c.opt (F): Added 'Driver' to -F option.
13179
13180         PR driver/48260
13181         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
13182           handler function.
13183         * config/darwin.opt: Added '-arch' option.
13184
13185 2011-03-30  Nick Clifton  <nickc@redhat.com>
13186
13187         * config/rx/rx.md: Add peepholes and patterns to combine
13188         extending loads and simple arithmetic instructions.
13189         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
13190         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
13191         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
13192         modes to use pre-decrement and post-increment addressing.
13193         (rx_is_restricted_memory_address): Add range checking of REG+INT
13194         addresses.
13195         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
13196         (rx_memory_move_cost): Adjust cost of stores.
13197         (rx_adjust_insn_length): New function.
13198
13199 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
13200
13201         PR c/48305
13202         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
13203         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
13204         matching arg00/arg01 types.
13205
13206 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
13207
13208         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
13209         last_location to UNKNOWN_LOCATION.
13210
13211 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
13212
13213         PR target/48349
13214         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
13215         FLOAT_SSE_REGS.
13216
13217 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
13218             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13219
13220         PR bootstrap/48337
13221         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
13222         Init(PROCESSOR_V7).
13223         (sparc_cpu): Likewise.
13224         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
13225         PROCESSOR_V7.
13226
13227 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
13228
13229         PR target/48336
13230         PR middle-end/48342
13231         PR rtl-optimization/48345
13232         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
13233         hard regs for given mode from profitable regs when doing secondary
13234         allocation.
13235
13236 2011-03-29  Jeff Law  <law@redhat.com>
13237
13238         PR bootstrap/48327
13239         * tree-ssa-threadupdate.c (struct redirection_data): Remove
13240         do_not_duplicate field.
13241         (lookup_redirection_data): Corresponding changes.
13242         (create_duplicates): Always create a template block.
13243         (redirect_edges): Remove code which reused the original block
13244         when it was going to become unreachable code.
13245         (thread_block): Don't set do_not_duplicate field.
13246
13247 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
13248
13249         * lto-opts.c (register_user_option_p, lto_register_user_option):
13250         Make type argument unsigned.
13251         * lto-streamer.h (lto_register_user_option): Make type argument
13252         unsigned.
13253         * opth-gen.awk: Make CL_* macros unsigned.
13254         * opts-common.c (find_opt): Make lang_mask argument unsigned.
13255         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
13256         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
13257         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
13258         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
13259         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
13260         (find_opt): Make lang_mask argument unsigned.
13261
13262 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
13263
13264         PR rtl-optimization/48331
13265         PR rtl-optimization/48334
13266         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
13267         for any used algorithm.
13268
13269 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
13270
13271         * ira-conflicts.c (build_object_conflicts): Add unused attribute
13272         to parent_max.
13273
13274 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
13275
13276         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
13277         (alpha_option_override): Don't set alpha_sr_alias_set.
13278         (emit_frame_store_1): Use gen_frame_mem rather than calling
13279         set_mem_alias_set.
13280         (alpha_expand_epilogue): Ditto.
13281
13282 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
13283
13284         PR tree-optimization/48290
13285         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
13286         vectorization, check that relevant phis in the basic block after
13287         the inner loop are really inner loop's exit phis.
13288
13289 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
13290
13291         PR debug/48190
13292         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
13293         (cached_dw_loc_list_def): New structure.
13294         (cached_dw_loc_list): New typedef.
13295         (cached_dw_loc_list_table): New variable.
13296         (cached_dw_loc_list_table_hash): New function.
13297         (cached_dw_loc_list_table_eq): Likewise.
13298         (add_location_or_const_value_attribute): Take a bool cache_p.
13299         Cache the list when the parameter is true.
13300         (gen_formal_parameter_die): Update caller.
13301         (gen_variable_die): Likewise.
13302         (dwarf2out_finish): Likewise.
13303         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
13304         while generating debug info for the decl.
13305         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
13306         (dwarf2out_init): Initialize cached_dw_loc_list_table.
13307         (resolve_addr): Cache the result of resolving a chain of
13308         location lists.
13309
13310 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
13311
13312         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
13313         conflict object hard regset nodes have intersecting hard reg sets.
13314
13315         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
13316         after regstat_init_n_sets_and_refs.
13317
13318         * ira.c: Add more comments at the top.
13319         (setup_stack_reg_pressure_class, setup_pressure_classes):
13320         Add comments how we compute the register pressure classes.
13321         (setup_allocno_and_important_classes): Add more comments.
13322         (setup_class_translate_array, reorder_important_classes)
13323         (setup_reg_class_relations): Add comments.
13324
13325         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
13326         start of the file.
13327
13328         * ira-color.c: Add 2011 to the Copyright line.
13329         (assign_hard_reg):  Add more comments.
13330         (improve_allocation): Ditto.
13331
13332         * ira-costs.c: Add 2011 to the Copyright line.
13333         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
13334         comments.
13335         (setup_regno_cost_classes_by_mode): Ditto.
13336
13337         Initial patches from ira-improv branch:
13338
13339         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
13340
13341         * ira-build.c (ira_create_object): Remove initialization of
13342         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
13343         (ira_create_allocno): Remove initialization of
13344         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
13345         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
13346         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
13347         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
13348         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
13349         Initialize ALLOCNO_ADD_DATA.
13350         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
13351         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
13352         ALLOCNO_REG.
13353         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
13354         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
13355
13356         * ira.c (ira_reallocate): Remove.
13357         (setup_pressure_classes): Call
13358         ira_init_register_move_cost_if_necessary.  Use
13359         ira_register_move_cost instead of ira_get_register_move_cost.
13360         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
13361         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
13362
13363         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
13364         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
13365         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
13366         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
13367         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
13368         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
13369         Fix formatting.
13370         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
13371         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
13372         (struct allocno_color_data): New.
13373         (allocno_color_data_t): New typedef.
13374         (allocno_color_data): New definition.
13375         (ALLOCNO_COLOR_DATA): New macro.
13376         (struct object_color_data): New.
13377         (object_color_data_t): New typedef.
13378         (object_color_data): New definition.
13379         (OBJECT_COLOR_DATA): New macro.
13380         (update_copy_costs, calculate_allocno_spill_cost): Call
13381         ira_init_register_move_cost_if_necessary.  Use
13382         ira_register_move_cost instead of ira_get_register_move_cost.
13383         (move_spill_restore, update_curr_costs): Ditto.
13384         (allocno_spill_priority): Make it inline.
13385         (color_pass): Allocate and free allocno_color_dat and object_color_data.
13386         (struct coalesce_data, coalesce_data_t): New.
13387         (allocno_coalesce_data): New definition.
13388         (ALLOCNO_COALESCE_DATA): New macro.
13389         (merge_allocnos, coalesced_allocno_conflict_p): Use
13390         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
13391         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
13392         (coalesce_allocnos): Ditto.
13393         (setup_coalesced_allocno_costs_and_nums): Ditto.
13394         (collect_spilled_coalesced_allocnos): Ditto.
13395         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
13396         (setup_slot_coalesced_allocno_live_ranges): Ditto.
13397         (coalesce_spill_slots): Ditto.
13398         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
13399         free allocno_coalesce_data.
13400
13401         * ira-conflicts.c: Fix formatting.
13402         (process_regs_for_copy): Call
13403         ira_init_register_move_cost_if_necessary.  Use
13404         ira_register_move_cost instead of ira_get_register_move_cost.
13405         (build_object_conflicts): Optimize.
13406
13407         * ira-costs.c (record_reg_classes): Optimize.  Call
13408         ira_init_register_move_cost_if_necessary.  Use
13409         ira_register_move_cost, ira_may_move_in_cost, and
13410         ira_may_move_out_cost instead of ira_get_register_move_cost and
13411         ira_get_may_move_cost.
13412         (record_address_regs): Ditto.
13413         (scan_one_insn): Optimize.
13414         (find_costs_and_classes): Optimize.
13415         (process_bb_node_for_hard_reg_moves): Call
13416         ira_init_register_move_cost_if_necessary.  Use
13417         ira_register_move_cost instead of ira_get_register_move_cost.
13418
13419         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
13420         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
13421         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
13422         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
13423         definitions.
13424         (ira_initiate_emit_data, ira_finish_emit_data)
13425         (create_new_allocno): New functions.
13426         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
13427         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
13428         Use ira_register_move_cost instead of ira_get_register_move_cost.
13429
13430         * ira-int.h: Fix some comments.
13431         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
13432         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
13433         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
13434         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
13435         add_data.
13436         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
13437         bitfield after mode.  Make hard_regno a short int.  Make
13438         hard_regno short.  Remove first_coalesced_allocno and
13439         next_coalesced_allocno.  Move mem_optimized_dest_p,
13440         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
13441         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
13442         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
13443         temp, colorable_p.  Add new member add_data.
13444         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
13445         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
13446         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
13447         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
13448         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
13449         (ALLOCNO_ADD_DATA): New macro.
13450         (ira_emit_data_t): New typedef.
13451         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
13452         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
13453         from struct ira_allocno.
13454         (ALLOCNO_EMIT_DATA): New macro.
13455         (ira_allocno_emit_data, allocno_emit_reg): New.
13456         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
13457         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
13458         (OBJECT_ADD_DATA): New macro.
13459         (ira_reallocate): Remove.
13460         (ira_initiate_emit_data, ira_finish_emit_data): New.
13461         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
13462         (ira_init_register_move_cost_if_necessary): New.
13463         (ira_object_conflict_iter_next): Merge into
13464         ira_object_conflict_iter_cond.
13465         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
13466
13467         * ira-live.c (process_single_reg_class_operands): Call
13468         ira_init_register_move_cost_if_necessary.  Use
13469         ira_register_move_cost instead of ira_get_register_move_cost.
13470
13471         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
13472
13473         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
13474
13475         * ira-costs.c: Fix formatting.
13476         (cost_classes, cost_classes_num): Remove.
13477         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
13478         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
13479         (cost_classes_del, cost_classes_htab): New.
13480         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
13481         (initiate_regno_cost_classes, setup_cost_classes): New.
13482         (setup_regno_cost_classes_by_aclass): New.
13483         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
13484         (record_reg_classes): Use regno_cost_classes instead of
13485         cost_classes.  Move checking opposite operand up.
13486         (record_address_regs): Use regno_cost_classes
13487         instead of cost_classes.
13488         (scan_one_insn): Ditto.  Use always general register.
13489         (print_allocno_costs): Use regno_cost_classes instead of
13490         cost_classes.
13491         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
13492         (find_costs_and_classes): Set up cost classes for each registers.
13493         Use also their mode for this.  Use regno_cost_classes instead of
13494         cost_classes.
13495         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
13496         cost_classes.
13497         (free_ira_costs, ira_init_costs): Don't use cost_classes.
13498         (ira_costs, ira_set_pseudo_classes): Call
13499         initiate_regno_cost_classes and finish_regno_cost_classes.
13500
13501         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
13502
13503         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
13504
13505         * target.def (ira_cover_classes): Remove.
13506
13507         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
13508
13509         * doc/tm.texi.in: Ditto.
13510
13511         * ira-conflicts.c: Remove mentioning cover classes from the file.
13512         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
13513         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
13514
13515         * targhooks.c (default_ira_cover_classes): Remove.
13516
13517         * targhooks.h (default_ira_cover_classes): Ditto.
13518
13519         * haifa-sched.c: Remove mentioning cover classes from the file.
13520         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
13521         ira_pressure_classes and ira_pressure_classes_num instead of
13522         ira_reg_class_cover_size and ira_reg_class_cover.  Use
13523         sched_regno_pressure_class instead of sched_regno_cover_class.
13524         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
13525         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13526
13527         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
13528         classes from the file.
13529         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
13530         (struct object_hard_regs, struct object_hard_regs_node): New.
13531         (struct ira_object): New members profitable_hard_regs,
13532         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
13533         (struct ira_allocno): Rename cover_class to aclass.  Rename
13534         cover_class_cost and updated_cover_class_cost to class_cost and
13535         updated_class_cost.  Remove splay_removed_p and
13536         left_conflict_size.  Add new members colorable_p.
13537         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
13538         (ALLOCNO_COLORABLE_P): New macro.
13539         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
13540         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
13541         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
13542         (OBJECT_...): Rename parameter C to O.
13543         (OBJECT_PROFITABLE_HARD_REGS): New macro.
13544         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
13545         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
13546         (struct target_ira_int): New members x_ira_max_memory_move_cost,
13547         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
13548         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
13549         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
13550         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
13551         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
13552         x_ira_reg_class_subunion.
13553         (ira_max_memory_move_cost, ira_max_register_move_cost)
13554         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
13555         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
13556         (ira_important_class_nums, ira_reg_class_superunion): New macros.
13557         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
13558         (ira_reg_class_union): Rename to ira_reg_class_subunion.
13559         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
13560         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
13561         (ira_tune_allocno_costs_and_cover_classes): Rename to
13562         ira_tune_allocno_costs.
13563         (ira_debug_hard_regs_forest): New.
13564         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
13565         (ira_object_conflict_iter_next): Fix comments.
13566         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
13567         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
13568         cover_class to aclass.
13569         (ira_allocate_and_accumulate_costs): Ditto.
13570         (ira_allocate_and_set_or_copy_costs): Ditto.
13571
13572         * opts.c (decode_options): Remove ira_cover_class check.
13573
13574         * ira-color.c: Remove mentioning cover classes from the file.  Use
13575         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
13576         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
13577         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
13578         (splay-tree.h): Remove include.
13579         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
13580         before copy_freq_compare_func.
13581         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
13582         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
13583         New definitions.
13584         (hard_regs_roots, hard_regs_node_vec): Ditto.
13585         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
13586         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
13587         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
13588         (create_new_object_hard_regs_node): Ditto.
13589         (add_new_object_hard_regs_node_to_forest): Ditto.
13590         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
13591         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
13592         Ditto.
13593         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
13594         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
13595         (remove_unused_object_hard_regs_nodes): Ditto.
13596         (enumerate_object_hard_regs_nodes): Ditto.
13597         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
13598         (object_hard_regs_subnode_t): Ditto.
13599         (struct object_hard_regs_subnode): Ditto.
13600         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
13601         (setup_object_hard_regs_subnode_index): Ditto.
13602         (get_object_hard_regs_subnodes_num): Ditto.
13603         (form_object_hard_regs_nodes_forest): Ditto.
13604         (finish_object_hard_regs_nodes_tree): Ditto.
13605         (finish_object_hard_regs_nodes_forest): Ditto.
13606         (allocnos_have_intersected_live_ranges_p): Rename to
13607         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
13608         (pseudos_have_intersected_live_ranges_p): Rename to
13609         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
13610         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
13611         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
13612         (update_copy_costs): Remove assert.  Skip cost update if the hard
13613         reg does not belong the class.
13614         (assign_hard_reg): Process only profitable hard regs.
13615         (uncolorable_allocnos_num): Make it scalar.
13616         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
13617         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
13618         and ira_reg_class_max_nregs.
13619         (bucket_allocno_compare_func): Check frequency first.
13620         (sort_bucket): Add compare function as a parameter.
13621         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
13622         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
13623         (push_allocno_to_stack): Rewrite for checking new allocno
13624         colorability.
13625         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
13626         (push_only_colorable): Pass new parameter to sort_bucket.
13627         (push_allocno_to_spill): Remove.
13628         (allocno_spill_priority_compare): Make it inline and rewrite.
13629         (splay_tree_allocate, splay_tree_free): Remove.
13630         (allocno_spill_sort_compare): New function.
13631         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
13632         build and use splay tree.  Choose first allocno in uncolorable
13633         allocno bucket to spill.  Remove setting spill cost.
13634         (all_conflicting_hard_regs): Remove.
13635         (setup_allocno_available_regs_num): Check only profitable hard
13636         regs.  Print info about hard regs nodes.
13637         (setup_allocno_left_conflicts_size): Remove.
13638         (put_allocno_into_bucket): Don't call
13639         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
13640         (improve_allocation): New.
13641         (color_allocnos): Call setup_profitable_hard_regs,
13642         form_object_hard_regs_nodes_forest, improve_allocation,
13643         finish_object_hard_regs_nodes_forest.  Setup spill cost.
13644         (print_loop_title): Use pressure classes.
13645         (color_allocnso): Ditto.
13646         (do_coloring): Remove allocation and freeing splay_tree_node_pool
13647         and allocnos_for_spilling.
13648         (ira_sort_regnos_for_alter_reg): Don't setup members
13649         {first,next}_coalesced_allocno.
13650         (color): Remove allocating and freeing removed_splay_allocno_vec.
13651         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
13652         prohibited_class_mode_regs.
13653
13654         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
13655         formatting.
13656         (update_allocno_pressure_excess_length): Use pressure classes.
13657         (inc_register_pressure, dec_register_pressure): Check for pressure
13658         class.
13659         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
13660         pressure class.  Use ira_reg_class_nregs instead of
13661         ira_reg_class_max_nregs.
13662         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
13663         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
13664         (single_reg_class): Use ira_reg_class_nregs instead of
13665         ira_reg_class_max_nregs.
13666         (process_bb_node_lives): Use pressure classes.
13667
13668         * ira-emit.c: Remove mentioning cover classes from the file.  Use
13669         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
13670         (change_loop): Use pressure classes.
13671         (modify_move_list): Call ira_set_allocno_class instead of
13672         ira_set_allocno_cover_class.
13673
13674         * ira-build.c: Remove mentioning cover classes from the file.  Use
13675         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
13676         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
13677         ALLOCNO_UPDATED_CLASS_COST instead of
13678         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
13679         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
13680         (ira_create_allocno): Remove initialization of
13681         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
13682         ALLOCNO_COLORABLE_P.
13683         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
13684         Update conflict regs for the objects.
13685         (create_cap_allocno): Remove assert.  Don't propagate
13686         ALLOCNO_AVAILABLE_REGS_NUM.
13687         (ira_free_allocno_costs): New function.
13688         (finish_allocno): Change a part of code into call of
13689         ira_free_allocno_costs.
13690         (low_pressure_loop_node_p): Use pressure classes.
13691         (object_range_compare_func): Don't compare classes.
13692         (setup_min_max_conflict_allocno_ids): Ditto.
13693
13694         * loop-invariant.c: Remove mentioning cover classes from the file.
13695         Use ira_pressure_classes and ira_pressure_classes_num instead of
13696         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
13697         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
13698         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13699         Use reg_allocno_class instead of reg_cover_class.
13700         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
13701         STACK_REG_COVER_CLASS.
13702         (get_regno_cover_class): Rename to get_regno_pressure_class.
13703         (move_loop_invariants): Initialize and finalize regstat.
13704
13705         * ira.c: Remove mentioning cover classes from the file.  Add
13706         comments about coloring without cover classes.  Use ALLOCNO_CLASS
13707         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
13708         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
13709         setup_class_subset_and_memory_move_costs.
13710         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
13711         (setup_cover_and_important_classes): Rename to
13712         setup_allocno_and_important_classes.
13713         (setup_class_translate_array): New.
13714         (setup_class_translate): Call it for allocno and pressure classes.
13715         (cover_class_order): Rename to allocno_class_order.
13716         (comp_reg_classes_func): Use ira_allocno_class_translate instead
13717         of ira_class_translate.
13718         (reorder_important_classes): Set up ira_important_class_nums.
13719         (setup_reg_class_relations): Set up ira_reg_class_superunion.
13720         (print_class_cover): Rename to print_classes.  Add parameter.
13721         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
13722         Print pressure classes too.
13723         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
13724         setup_reg_subclasses.
13725         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
13726         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
13727         (setup_prohibited_class_mode_regs): Use
13728         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
13729         (clarify_prohibited_class_mode_regs): New function.
13730         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
13731         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
13732         (ira_init_once): Initialize them.
13733         (free_register_move_costs): Process them.
13734         (ira_init): Move calls of find_reg_classes and
13735         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
13736         Call clarify_prohibited_class_mode_regs.
13737         (ira_no_alloc_reg): Remove.
13738         (too_high_register_pressure_p): Use pressure classes.
13739
13740         * sched-deps.c: Remove mentioning cover classes from the file.
13741         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
13742         ira_pressure_classes and ira_pressure_classes_num instead of
13743         ira_reg_class_cover_size and ira_reg_class_cover.
13744         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
13745         sched_regno_pressure_class instead of sched_regno_cover_class.
13746         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
13747         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13748
13749         * ira.h: Add 2010 to Copyright.
13750         (ira_no_alloc_reg): Remove external.
13751         (struct target_ira): Rename x_ira_hard_regno_cover_class,
13752         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
13753         x_ira_class_translate to x_ira_hard_regno_allocno_class,
13754         x_ira_allocno_classes_num, x_ira_allocno_classes, and
13755         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
13756         x_ira_pressure_classes, x_ira_pressure_class_translate, and
13757         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
13758         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
13759         x_ira_no_alloc_regs.
13760         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
13761         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
13762         ira_allocno_classes_num and ira_allocno_classes.
13763         (ira_class_translate): Rename to ira_allocno_class_translate.
13764         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
13765         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
13766         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
13767         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
13768         (ira_no_alloc_regs): New.
13769
13770         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
13771         classes from the file.  Use ALLOCNO_CLASS instead of
13772         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
13773         ALLOCNO_COVER_CLASS_COST.
13774         (regno_cover_class): Rename to regno_aclass.
13775         (record_reg_classes): Use ira_reg_class_subunion instead of
13776         ira_reg_class_union.
13777         (record_address_regs): Check overflow.
13778         (scan_one_insn): Ditto.
13779         (print_allocno_costs): Print total mem cost fore regional allocation.
13780         (print_pseudo_costs): Use REG_N_REFS.
13781         (find_costs_and_classes): Use classes intersected with them on the
13782         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
13783         ira_reg_class_union.  Use ira_allocno_class_translate and
13784         regno_aclass instead of ira_class_translate and regno_cover_class.
13785         Modify code for finding regno_aclass.  Setup preferred classes for
13786         the next pass.
13787         (setup_allocno_cover_class_and_costs): Rename to
13788         setup_allocno_class_and_costs.  Use regno_aclass instead of
13789         regno_cover_class.  Use ira_set_allocno_class instead of
13790         ira_set_allocno_cover_class.
13791         (init_costs, finish_costs): Use regno_aclass instead of
13792         regno_cover_class.
13793         (ira_costs): Use setup_allocno_class_and_costs instead of
13794         setup_allocno_cover_class_and_costs.
13795         (ira_tune_allocno_costs_and_cover_classes): Rename to
13796         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
13797         by processing objects.  Use ira_reg_class_max_nregs instead of
13798         ira_reg_class_nregs.
13799
13800         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
13801
13802         * sched-int.h: Remove mentioning cover classes from the file.
13803         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
13804
13805         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
13806         classes from the file.
13807         (struct reg_pref): Rename coverclass into allocnoclass.
13808         (reg_cover_class): Rename to reg_allocno_class.
13809
13810         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
13811
13812         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
13813
13814         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
13815
13816         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
13817
13818         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
13819
13820         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
13821
13822         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
13823
13824         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
13825
13826         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
13827
13828         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
13829
13830         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
13831         (i386_ira_cover_classes): Ditto.
13832
13833         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
13834
13835         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
13836
13837         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
13838
13839         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
13840
13841         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
13842
13843         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
13844
13845         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
13846         (mips_ira_cover_classes): Ditto.
13847
13848         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
13849
13850         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
13851
13852         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
13853
13854         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
13855
13856         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
13857
13858         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
13859         (IRA_COVER_CLASSES_VSX): Ditto.
13860
13861         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
13862         (rs6000_ira_cover_classes): Ditto.
13863
13864         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
13865
13866         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
13867
13868         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
13869
13870         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
13871
13872         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
13873
13874         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
13875
13876         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
13877
13878         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
13879
13880         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
13881
13882         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
13883
13884 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
13885
13886         PR debug/48253
13887         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
13888         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
13889         dw_fde_unlikely_section_end_label, cold_in_std_section,
13890         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
13891         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
13892         fields.
13893         (output_fde): Use dw_fde_second_{begin,end} if second is
13894         true, otherwise dw_fde_{begin,end}.
13895         (output_call_frame_info): Test dw_fde_second_begin != NULL
13896         instead of dw_fde_switched_sections.
13897         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
13898         fields, initialize new fields.  Initialize in_std_section
13899         unconditionally from the first partition.
13900         (dwarf2out_end_epilogue): Don't override dw_fde_end when
13901         dw_fde_second_begin is non-NULL.
13902         (dwarf2out_switch_text_section): Stop initializing removed
13903         dw_fde_struct fields, initialize new fields, initialize
13904         also dw_fde_end here.  Set dw_fde_switch_cfi even when
13905         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
13906         (struct var_loc_list_def): Add last_before_switch field.
13907         (arange_table, arange_table_allocated, arange_table_in_use,
13908         ARANGE_TABLE_INCREMENT, add_arange): Removed.
13909         (size_of_aranges): Count !in_std_section and !second_in_std_section
13910         hunks in fdes, instead of looking at arange_table_in_use.
13911         (output_aranges): Add aranges_length argument, don't call
13912         size_of_aranges here.  Instead of using aranges_table*
13913         emit ranges for fdes when !in_std_section resp.
13914         !second_in_std_section.
13915         (dw_loc_list): Break ranges crossing section switch.
13916         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
13917         use dw_fde_second_end instead of dw_fde_end as end of last range.
13918         (gen_subprogram_die): Don't call add_arange.  Use
13919         dw_fde_{begin,end} for first partition and if switched
13920         section dw_fde_second_{begin,end} for the second.
13921         (var_location_switch_text_section_1,
13922         var_location_switch_text_section): New functions.
13923         (dwarf2out_begin_function): Initialize cold_text_section even
13924         when function_section () isn't text_section.
13925         (prune_unused_types): Don't walk arange_table.
13926         (dwarf2out_finish): Don't needlessly test
13927         flag_reorder_blocks_and_partition when testing cold_text_section_used.
13928         If info_section_emitted, call size_of_aranges and if it indicates
13929         non-empty .debug_aranges, call output_aranges with the computed
13930         size.  Stop using removed dw_fde_struct fields, use
13931         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
13932         for second.
13933
13934         PR debug/48203
13935         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
13936         create ENTRY_VALUE if incoming or address of incoming's MEM
13937         is a hard REG.
13938         * dwarf2out.c (mem_loc_descriptor): Don't emit
13939         DW_OP_GNU_entry_value of DW_OP_fbreg.
13940         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
13941         on ENTRY_VALUE is able to find the canonical parameter VALUE.
13942         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
13943         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
13944         ENTRY_VALUE_EXPs.
13945         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
13946         is a REG_P or MEM_P with REG_P address, compute hash directly
13947         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
13948         (preserve_only_constants): Don't clear VALUES forwaring
13949         ENTRY_VALUE to some other VALUE.
13950
13951 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
13952
13953         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
13954         instead of GEN_INT.
13955
13956 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
13957
13958         * cfgexpand.c (expand_gimple_cond): Always set the source location and
13959         block before expanding the statement.
13960         (expand_gimple_stmt_1): Likewise.  Set them here...
13961         (expand_gimple_stmt): ...and not here.  Tidy.
13962         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
13963         unknown.
13964
13965 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
13966
13967         * Makefile.in: New rule for cprop.o.
13968         * gcse.c: Move constant/copy propagation to cprop.c.
13969         (compute_local_properties): Only handle expression tables.
13970         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
13971         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
13972         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
13973         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
13974         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
13975         compute_cprop_data, find_used_regs, try_replace_reg,
13976         find_avail_set, cprop_jump, constprop_register, cprop_insn,
13977         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
13978         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
13979         find_bypass_set, reg_killed_on_edge, bypass_block,
13980         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
13981         execute_rtl_cprop, pass_rtl_cprop): Move to...
13982         * cprop.c: ...here.  New file, constant/copy propagation for RTL
13983         moved from gcse.c to here with minor cleanups in duplicated code.
13984
13985 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
13986
13987         * config/i386/i386.c (flag_opts): Fix a typo in
13988         -mavx256-split-unaligned-store.
13989
13990 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
13991
13992         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
13993         LIBCALL_VALUE): Remove macros.
13994         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13995         TARGET_FUNCTION_VALUE_REGNO_P): Define.
13996         (h8300_function_value, h8300_libcall_value,
13997         h8300_function_value_regno_p): New functions.
13998
13999 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
14000
14001         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
14002
14003 2011-03-28  Jeff Law  <law@redhat.com>
14004
14005         * tree-ssa-threadupdate.c (redirect_edges): Call
14006         create_edge_and_update_destination_phis as needed.
14007         (create_edge_and_update_destination_phis): Accept new BB argument.
14008         All callers updated.
14009         (thread_block): Do not update the profile when threading around
14010         intermediate blocks.
14011         (thread_single_edge): Likewise.
14012         (determine_bb_domination_status): If BB is not a successor of the
14013         loop header, return NONDOMINATING.
14014         (register_jump_thread): Note when we register a jump thread around
14015         an intermediate block.
14016         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
14017         (thread_across_edge): Use it.
14018
14019 2011-03-28  Tristan Gingold  <gingold@adacore.com>
14020
14021         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
14022         when for_return is 2.
14023
14024 2011-03-28  Jeff Law  <law@redhat.com>
14025
14026         * var-tracking.c (canonicalize_values_mark): Delete unused
14027         lhs assignment.
14028         (canonicalize_values_star, set_variable_part): Likewise.
14029         (clobber_variable_part, delete_variable_part): Likewise.
14030
14031 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
14032
14033         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
14034
14035 2011-03-28  Martin Jambor  <mjambor@suse.cz>
14036
14037         * tree-inline.c (expand_call_inline): Do not check that destination
14038         node is analyzed.
14039         (optimize_inline_calls): Assert that destination node is analyzed.
14040         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
14041         not call tree_lowering_passes.
14042         * cgraph.h (cgraph_analyze_function): Declare.
14043         * cgraphunit.c (cgraph_analyze_function): Make public.
14044
14045 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
14046
14047         * config/sparc/sparc-opts.h: New.
14048         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
14049         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
14050         (sparc_option_override): Store processor_type enumeration rather
14051         than string in cpu_default.  Remove name and enumeration from
14052         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
14053         without using sparc_select.  Use target_flags_explicit instead of
14054         fpu_option_set.
14055         * config/sparc/sparc.h (enum processor_type): Move to
14056         sparc-opts.h.
14057         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
14058         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
14059         HeaderInclude entry.
14060         (mcpu=, mtune=): Use Var and Enum.
14061         (sparc_processor_type): New Enum and EnumValue entries.
14062
14063 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14064             Iain Sandoe  <iains@gcc.gnu.org>
14065
14066         PR target/48245
14067         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
14068
14069 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
14070
14071         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
14072         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
14073         Insert new statements at it in lieu of STMT.
14074         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
14075         * tree-vect-stmts.c (vectorizable_store): Likewise.
14076         (vectorizable_load): Likewise.
14077
14078 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
14079
14080         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
14081         (divtf3): Ditto.
14082         (multf3): Ditto.
14083         (subtf3): Ditto.
14084
14085 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
14086
14087         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
14088         unaligned 256bit load/store.
14089         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
14090         (*avx_movdqu<avxmodesuffix>): Likewise.
14091
14092 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14093
14094         PR target/48288
14095         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
14096         * config/pa/pa.md (iordi3): Use new predicate in expander.
14097         (iorsi3): Likewise.
14098
14099 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
14100
14101         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
14102         FUNCTION_VALUE_REGNO_P): Remove macros.
14103         * config/mips/mips-protos.h (mips_function_value): Remove.
14104         * config/mips/mips.c (mips_function_value): Rename to...
14105         (mips_function_value_1): ... this. Make static.  Handle receiving
14106         the function type in 'fn_decl_or_type' argument.
14107         (mips_function_value, mips_libcall_value,
14108         mips_function_value_regno_p): New function.
14109         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14110         TARGET_FUNCTION_VALUE_REGNO_P): Define.
14111
14112 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
14113
14114         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
14115         and -mavx256-split-unaligned-store.
14116         (ix86_option_override_internal): Split 32-byte AVX unaligned
14117         load/store by default.
14118         (ix86_avx256_split_vector_move_misalign): New.
14119         (ix86_expand_vector_move_misalign): Use it.
14120
14121         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
14122         -mavx256-split-unaligned-store.
14123
14124         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
14125         256bit load/store.  Generate unaligned store on misaligned memory
14126         operand.
14127         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
14128         256bit load/store.
14129         (*avx_movdqu<avxmodesuffix>): Likewise.
14130
14131         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
14132         -mavx256-split-unaligned-store.
14133
14134 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
14135
14136         PR target/38598
14137         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
14138         Update commentary.
14139
14140 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
14141
14142         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
14143         opno arguments with an expand_operand.  Use create_input_operand.
14144         (mips_prepare_builtin_target): Delete.
14145         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
14146         functions.
14147         (mips_expand_builtin_direct): Use create_output_operand and
14148         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
14149         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
14150         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
14151
14152 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
14153
14154         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
14155         function.
14156         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
14157
14158 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
14159
14160         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
14161         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
14162         basic blocks and call commit_edge_insertions directly.
14163         (fixup_abnormal_edges): Move from here to...
14164         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
14165         on the edges and return whether some have actually been inserted.
14166         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
14167         compensation code.
14168
14169 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
14170
14171         PR rtl-optimization/48144
14172         * sel-sched-ir.c (merge_history_vect): Factor out from ...
14173         (merge_expr_data): ... here.
14174         (av_set_intersect): Rename to av_set_code_motion_filter.
14175         Update all callers.  Call merge_history_vect when an expression
14176         is found in both sets.
14177         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
14178
14179 2011-03-26  Alan Modra  <amodra@gmail.com>
14180
14181         * config/rs6000/predicates.md (word_offset_memref_op): Handle
14182         cmodel medium addresses.
14183         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
14184         64-bit gpr loads and stores.
14185         (rs6000_secondary_reload_ppc64): New function.
14186         * config/rs6000/rs6000-protos.h: Declare it.
14187         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
14188
14189 2011-03-26  Alan Modra  <amodra@gmail.com>
14190
14191         PR target/47487
14192         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
14193         GNU Go in traceback table.
14194
14195 2011-03-25  Richard Henderson  <rth@redhat.com>
14196
14197         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
14198         if there are exactly 6 operands.
14199         (set_storage_via_setmem): Similarly.
14200
14201 2011-03-25  Kai Tietz  <ktietz@redhat.com>
14202
14203         * collect2.c (write_c_file_stat): Handle backslash
14204         as right-hand directory separator.
14205         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
14206         checking just for slash.
14207         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
14208         instead of checking for trailing slash.
14209         * gcc.c (record_temp_file): Use filename_cmp instead
14210         of strcmp.
14211         (do_spec_1): Likewise.
14212         (replace_outfile_spec_function): Likewise.
14213         (is_directory): Use filename_ncmp instead of strncmp.
14214         (print_multilib_info): Likewise.
14215         * gcov.c (find_source): Use filename_cmp instead
14216         instead of strcmp.
14217         (make_gcov_file_name): Fix order of slash/backslash
14218         checks.
14219         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
14220         (add_standard_paths): Likewise.
14221         * mips-tfile.c (saber_stop): Handle backslash.
14222         * prefix.c (update_path): Use filename_ncmp instead of
14223         strncmp.
14224         * profile.c (output_location): Use filename_cmp instead
14225         of strcmp.
14226         * read-md.c (handle_toplevel_file): Handle backslash.
14227         * tlink.c (frob_extension):  Likewise.
14228         * tree-cfg.c (same_line_p): Use filename_cmp instead of
14229         strcmp.
14230         * tree-dump.c (dequeue_and_dump): Handle backslash.
14231         * tree.c (get_file_function_name): Likewise.
14232         * gengtype.c (read_input_list): Likewise.
14233         (get_file_realbasename): Likewise.
14234         (get_output_file_with_visibility): Use filename_cmp
14235         instead of strcmp.
14236
14237 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
14238
14239         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
14240         case to VFPv1.
14241
14242 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
14243
14244         * fold-const.c (expr_location_or): New function.
14245         (fold_truth_not_expr): Call it.
14246
14247 2011-03-25  Jeff Law  <law@redhat.com>
14248
14249         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
14250         va_end.
14251         * c-family/c-common.c (def_fn_type): Likewise.
14252         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
14253         * emit-rtl.c (gen_rtvec): Likewise.
14254         * lto/lto-lang.c (def_fn_type): Likewise.
14255
14256 2011-03-25  Richard Guenther  <rguenther@suse.de>
14257
14258         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
14259         also generate copies.
14260         (fini_copy_prop): Handle constant values properly.
14261
14262 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
14263
14264         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
14265         mode size instead of bitsize with DWARF2_ADDR_SIZE.
14266         (hash_loc_operands, compare_loc_operands): Handle
14267         DW_OP_GNU_entry_value.
14268
14269 2011-03-25  Kai Tietz  <ktietz@redhat.com>
14270
14271         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
14272         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
14273         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
14274         comment and use macro TARGET_64BIT_MS_ABI instead.
14275         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
14276         and change default behavior for 32-bit MS_ABI.
14277         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
14278         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
14279         32-bit, too.
14280         (ix86_cfun_abi): Likewise.
14281         (ix86_maybe_switch_abi): Adjust comment.
14282         (init_cumulative_args): Check for bit-ness in MS_ABI case.
14283         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
14284         instead of checking for SYSV_ABI.
14285         (ix86_nsaved_sseregs): Likewise.
14286         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
14287         to 16 bytes.
14288         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
14289         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
14290         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
14291         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
14292         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
14293
14294 2011-03-25  Richard Guenther  <rguenther@suse.de>
14295
14296         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
14297         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
14298         (verify_gimple): Remove.
14299         * tree-cfg.c (verify_gimple_call): Merge verification
14300         from verify_stmts.
14301         (verify_gimple_phi): Merge verification from verify_stmts.
14302         (verify_gimple_label): New function.
14303         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
14304         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
14305         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
14306         (verify_stmts): Rename to verify_gimple_in_cfg.
14307         (verify_gimple_in_cfg): New function.
14308         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
14309         * tree-ssa.c (verify_ssa): Likewise.
14310         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
14311
14312 2011-03-25  Richard Guenther  <rguenther@suse.de>
14313
14314         * passes.c (init_optimization_passes): Add FRE pass after
14315         early SRA.
14316
14317 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
14318             Andrew Stubbs  <ams@codesourcery.com>
14319
14320         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
14321         for Cortex-A8.
14322         (arm_movdi_vfp_cortexa8): New pattern.
14323         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
14324         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
14325         instructions when tuning for Cortex-A8.  Set attribute "arch".
14326         * config/arm/arm.md: Move include arm-tune.md up a bit.
14327         (define_attr "arch"): Add "onlya8" and "nota8" values.
14328         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
14329
14330 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
14331
14332         PR bootstrap/48282
14333         Revert:
14334         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
14335
14336         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
14337         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
14338         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
14339         * passes.c (init_optimization_passes): Move
14340         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
14341
14342 2011-03-25  Kai Tietz  <ktietz@redhat.com>
14343
14344         * c-typeck.c (comptypes_internal): Replace target
14345         hook call of comp_type_attributes by version in tree.c file.
14346         * gimple.c (gimple_types_compatible_p_1): Likewise.
14347         * tree-ssa.c (useless_type_conversion_p): Likewise.
14348         * tree.c (build_type_attribute_qual_variant): Likewise.
14349         (attribute_value_equal): New static helper function.
14350         (comp_type_attributes): New function.
14351         (merge_attributes): Use attribute_value_equal for comparison.
14352         (attribute_list_contained): Likewise.
14353         * tree.h (comp_type_attributes): New prototype.
14354
14355 2011-03-25  Richard Guenther  <rguenther@suse.de>
14356
14357         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
14358         of complex types at -O0.
14359         (verify_gimple_assign_binary): Likewise.
14360         (verify_gimple_assign_ternary): Likewise.
14361
14362 2011-03-24  Mark Wielaard  <mjw@redhat.com>
14363
14364         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
14365         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
14366
14367 2011-03-24  Mark Wielaard  <mjw@redhat.com>
14368
14369         PR debug/48041
14370         * dwarf2out.c (output_abbrev_section): Only write table when
14371         abbrev_die_table_in_use > 1.
14372
14373 2011-02-24  Richard Henderson  <rth@redhat.com>
14374
14375         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
14376         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
14377         (alpha_expand_unaligned_load_words): Use extql.
14378         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
14379         (emit_insxl): Handle all modes for consistency.
14380
14381 2011-02-24  Richard Henderson  <rth@redhat.com>
14382
14383         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
14384         (alpha_expand_unaligned_load): Likewise.
14385         (alpha_expand_unaligned_store): Likewise.
14386         (alpha_expand_unaligned_load_words): Likewise.
14387         (alpha_expand_unaligned_store_words): Likewise.
14388         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
14389         (alpha_split_lock_test_and_set_12): Likewise.
14390         (print_operand, alpha_fold_builtin_extxx): Likewise.
14391         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
14392         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
14393         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
14394         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
14395         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
14396         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
14397         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
14398         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
14399         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
14400         (extwl, extll, extql): Similarly.
14401         (inswh, inslh, insqh): Similarly.
14402         (mskbl, mskwl, mskll, mskql): Similarly.
14403         (mskwh, msklh, mskqh): Similarly.
14404
14405 2011-02-24  Richard Henderson  <rth@redhat.com>
14406
14407         * config/alpha/alpha.md (attribute isa): Add er, ner.
14408         (attribute enabled): Handle them.
14409         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
14410
14411 2011-02-24  Richard Henderson  <rth@redhat.com>
14412
14413         * config/alpha/alpha.md (attribute isa): Add vms.
14414         (attribute enabled): Handle it.
14415         (*movsf): Merge *movsf_{nofix,fix,nofp}.
14416         (*movdf): Merge *movdf_{nofix,fix,nofp}.
14417         (*movtf): Rename from *movtf_internal for consistency.
14418         (*movsi): Merge with *movsi_nt_vms.
14419         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
14420         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
14421         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
14422         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
14423
14424 2011-02-24  Richard Henderson  <rth@redhat.com>
14425
14426         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
14427         (extendqisi2, extendhisi2): Likewise.
14428         (extendqidi2): Simplify BWX/non-BWX expansions.
14429         (extendhidi2): Similarly.
14430
14431 2011-02-24  Richard Henderson  <rth@redhat.com>
14432
14433         * config/alpha/alpha.md (attribute isa): New.
14434         (attribute enabled): New.
14435         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
14436         (zero_extendqisi2, zero_extendqidi2): Similarly.
14437         (zero_extendhisi2, zero_extendhidi2): Similarly.
14438         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
14439
14440 2011-02-24  Richard Henderson  <rth@redhat.com>
14441
14442         * config/alpha/predicates.md (input_operand): Revert last change;
14443         update comment to mention 32-bit VMS rather than Windows.
14444
14445 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
14446
14447         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
14448         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
14449         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
14450         * passes.c (init_optimization_passes): Move
14451         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
14452
14453 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
14454
14455         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
14456
14457 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
14458
14459         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
14460         correctly.
14461
14462 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
14463
14464         PR debug/48204
14465         * simplify-rtx.c (simplify_const_unary_operation): Call
14466         real_convert when changing mode class with FLOAT_EXTEND.
14467
14468 2011-03-24  Nick Clifton  <nickc@redhat.com>
14469
14470         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
14471         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
14472         * config/rx/rx.c (rx_option_override): Set align_jumps,
14473         align_loops and align_labels if not set by the user.
14474         (rx_align_for_label): New function.
14475         (rx_max_skip_for_label): New function.
14476         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
14477         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
14478         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
14479         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
14480         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
14481
14482 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
14483
14484         PR rtl-optimization/48263
14485         * optabs.c (expand_binop_directly): Reinstate convert_modes code
14486         and original commutative_p handling.  Use maybe_gen_insn.
14487
14488 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14489
14490         * reload.c (find_reloads_subreg_address): Add address_reloaded
14491         parameter and return true there if the full address has been
14492         reloaded.
14493         (find_reloads_toplev): Pass address_reloaded flag.
14494         (find_reloads_address_1): Don't use address_reloaded parameter.
14495
14496 2011-03-24  Jeff Law  <law@redhat.com>
14497
14498         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
14499         unused variable "ann".
14500         (remove_unused_locals): Likewise.
14501
14502         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
14503         statement.
14504
14505         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
14506         after it is freed.
14507
14508 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14509
14510         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
14511         for invalid symbolic addresses.
14512         (s390_secondary_reload): Don't use s390_check_symref_alignment for
14513         larl operands.
14514
14515 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
14516
14517         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
14518         the argument in calls to fold_truth_not_expr.
14519
14520 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
14521
14522         * tree.c (record_node_allocation_statistics): New function.
14523         (make_node_stat, copy_node_stat, build_string): Call it.
14524         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
14525         (build1_stat, build_omp_clause): Likewise.
14526
14527 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
14528
14529         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
14530         last commit.
14531
14532 2011-03-24  Richard Guenther  <rguenther@suse.de>
14533
14534         PR tree-optimization/48271
14535         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
14536         blocks that still exist.
14537
14538 2011-03-24  Richard Guenther  <rguenther@suse.de>
14539
14540         PR tree-optimization/48270
14541         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
14542         not free datarefs before ddrs.
14543
14544 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
14545
14546         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
14547         from the address built for a reference with variable offset.
14548
14549 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
14550
14551         PR target/48237
14552         * config/i386/i386.md (*movdf_internal_rex64): Do not split
14553         alternatives that can be handled with movq or movabsq insn.
14554         (*movdf_internal): Disable for !TARGET_64BIT.
14555         (*movdf_internal_nointeger): Ditto.
14556         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
14557
14558 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
14559
14560         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14561         (FUNCTION_ARG_ADVANCE): Likewise.
14562         * tm.texi.in: Change references to them to hook references.
14563         * tm.texi: Regenerate.
14564         * targhooks.c (default_function_arg): Eliminate check for target macro.
14565         (default_function_incoming_arg): Likewise.
14566         (default_function_arg_advance): Likewise.
14567         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
14568         (function_arg_advance): Likewise.
14569         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14570
14571 2011-03-24  Richard Guenther  <rguenther@suse.de>
14572
14573         PR middle-end/48269
14574         * tree-object-size.c (addr_object_size): Do not double-account
14575         for MEM_REF offsets.
14576
14577 2011-03-24  Diego Novillo  <dnovillo@google.com>
14578
14579         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
14580         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
14581         (lto_input_data_block): Move from lto-opts.c.  Make extern.
14582         Update all users.
14583         (lto_input_string): Rename from input_string.  Make extern.
14584         Update all users.
14585         * lto-streamer-out.c (lto_output_string_with_length): Rename from
14586         output_string_with_length.
14587         Output 0 to indicate a non-NULL string.  Update all callers to
14588         not emit 0.
14589         (lto_output_string): Rename from output_string.  Make extern.
14590         Update all users.
14591         (lto_output_decl_state_streams): Make extern.
14592         (lto_output_decl_state_refs): Make extern.
14593         * lto-streamer.h (lto_input_string): Declare.
14594         (lto_input_data_block): Declare.
14595         (lto_output_string): Declare.
14596         (lto_output_string_with_length): Declare.
14597         (lto_output_decl_state_streams): Declare.
14598         (lto_output_decl_state_refs): Declare.
14599
14600 2011-03-24  Richard Guenther  <rguenther@suse.de>
14601
14602         PR tree-optimization/46562
14603         * tree.c (build_invariant_address): New function.
14604         * tree.h (build_invariant_address): Declare.
14605         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
14606         a renamed function moved ...
14607         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
14608         Take valueization callback parameter.
14609         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
14610         * gimple-fold.h: New file.
14611         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
14612         (ccp_fold, fold_const_aggregate_ref,
14613         fold_ctor_reference, fold_nonarray_ctor_reference,
14614         fold_array_ctor_reference, fold_string_cst_ctor_reference,
14615         get_base_constructor): Move ...
14616         * gimple-fold.c: ... here.
14617         (gimple_fold_stmt_to_constant_1): New function
14618         split out from ccp_fold.  Take a valueization callback parameter.
14619         Valueize all operands.
14620         (gimple_fold_stmt_to_constant): New wrapper function.
14621         (fold_const_aggregate_ref_1): New function split out from
14622         fold_const_aggregate_ref.  Take a valueization callback parameter.
14623         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
14624         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
14625         invariant POINTER_PLUS_EXPRs to invariant form.
14626         (vn_valueize): New function.
14627         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
14628         * tree-vrp.c (vrp_valueize): New function.
14629         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
14630         to fold statements to constants.
14631         * tree-ssa-pre.c (eliminate): Properly guard propagation of
14632         function declarations.
14633         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
14634         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
14635
14636 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
14637
14638         * config/h8300/predicates.md (jump_address_operand): Fix register
14639         mode check.
14640
14641 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
14642
14643         * doc/invoke.texi (max-stores-to-sink): Document.
14644         * params.h (MAX_STORES_TO_SINK): Define.
14645         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
14646         if either vectorization or if-conversion is disabled.
14647         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
14648         tree-vect-data-refs.c vect_equal_offsets.
14649         (dr_equal_offsets_p): New function.
14650         (find_data_references_in_bb): Remove static.
14651         * tree-data-ref.h (find_data_references_in_bb): Declare.
14652         (dr_equal_offsets_p): Likewise.
14653         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
14654         (vect_drs_dependent_in_basic_block): Update calls to
14655         vect_equal_offsets.
14656         (vect_check_interleaving): Likewise.
14657         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
14658         (cond_if_else_store_replacement): Rename to...
14659         (cond_if_else_store_replacement_1): ... this.  Change arguments and
14660         documentation.
14661         (cond_if_else_store_replacement): New function.
14662         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
14663         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
14664
14665 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
14666
14667         PR target/46934
14668         * config/arm/arm.md (casesi): Use the gen_int_mode() function
14669         to subtract lower bound instead of GEN_INT().
14670
14671 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
14672
14673         PR other/48179
14674         PR other/48221
14675         PR other/48234
14676         * doc/extend.texi (Alignment): Move section to match order in TOC.
14677         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
14678         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
14679
14680 2011-03-23  Jeff Law  <law@redhat.com>
14681
14682         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
14683         before removing the edge.
14684
14685         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
14686         it may have been freed by redirect_branch_edge or
14687         redirect_edge_succ_nodup.
14688
14689 2011-03-23  Richard Guenther  <rguenther@suse.de>
14690
14691         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
14692         (check_va_list_escapes): Likewise.
14693         (check_all_va_list_escapes): Likewise.
14694
14695 2011-03-23  Richard Guenther  <rguenther@suse.de>
14696
14697         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
14698         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
14699         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
14700         (alias.o): Likewise.
14701         (ipa-type-escape.o): Remove.
14702         (ipa-struct-reorg.o): Likewise.
14703         (GTFILES): Remove ipa-struct-reorg.c.
14704         * alias.c: Do not include ipa-type-escape.h.
14705         * tree-ssa-alias.c: Likewise.
14706         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
14707         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
14708         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
14709         and ipa-type-escape passes.
14710         * tree-pass.h (pass_ipa_type_escape): Remove.
14711         (pass_ipa_struct_reorg): Likewise.
14712         * ipa-struct-reorg.h: Remove.
14713         * ipa-struct-reorg.c: Likewise.
14714         * ipa-type-escape.h: Likewise.
14715         * ipa-type-escape.c: Likewise.
14716         * doc/invoke.texi (-fipa-struct-reorg): Remove.
14717         (--param struct-reorg-cold-struct-ratio): Likewise.
14718         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
14719         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
14720         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
14721
14722 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14723
14724         * config/s390/2084.md: Enable all insn reservations also for z9_ec
14725         cpu attribute value.
14726         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
14727         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
14728         * config/s390/s390.c (processor_flags_table): New constant array.
14729         (s390_handle_arch_option): Remove.
14730         (s390_handle_option): Remove s390_handle_arch_option invocations
14731         and OPT_mwarn_framesize_ handling.
14732         (s390_option_override): Remove s390_handle_arch_option invocation.
14733         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
14734         warnings.
14735         * config/s390/s390.md (cpu attribute): Add z9_ec value.
14736         * config/s390/s390.opt (s390_tune, s390_arch)
14737         (march=): Replace s390_arch_option enum and values with
14738         processor_type.  Set variable name to s390_arch.  Set
14739         initialization value.
14740         (mtune=): Replace s390_arch_option with processor_type.  Set
14741         variable name to s390_tune.  Set initialization value.
14742
14743 2011-03-23  Julian Brown  <julian@codesourcery.com>
14744
14745         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
14746         accesses which are not naturally aligned.
14747
14748 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
14749
14750         PR target/47553
14751         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
14752
14753 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
14754
14755         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
14756         parameter from "int" to "enum insn_code".
14757         (expand_operand_type): New enum.
14758         (expand_operand): New structure.
14759         (create_expand_operand): New function.
14760         (create_fixed_operand, create_output_operand): Likewise
14761         (create_input_operand, create_convert_operand_to): Likewise.
14762         (create_convert_operand_from, create_address_operand): Likewise.
14763         (create_integer_operand): Likewise.
14764         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
14765         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
14766         (expand_insn, expand_jump_insn): Likewise.
14767         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
14768         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
14769         (expand_movstr, expand_builtin___clear_cache): Likewise.
14770         (expand_builtin_lock_release): Likewise.
14771         * explow.c (allocate_dynamic_stack_space): Likewise.
14772         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
14773         and use the default handling in that case.
14774         * expmed.c (check_predicate_volatile_ok): Delete.
14775         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
14776         (emit_cstore): Likewise.
14777         * expr.c (emit_block_move_via_movmem): Likewise.
14778         (set_storage_via_setmem, expand_assignment): Likewise.
14779         (emit_storent_insn, try_casesi): Likewise.
14780         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
14781         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
14782         (expand_vec_shift_expr, expand_binop_directly): Likewise.
14783         (expand_twoval_unop, expand_twoval_binop): Likewise.
14784         (expand_unop_direct, emit_indirect_jump): Likewise.
14785         (emit_conditional_move, vector_compare_rtx): Likewise.
14786         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
14787         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
14788         (expand_sync_lock_test_and_set): Likewise.
14789         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
14790         (emit_unop_insn): Likewise.
14791         (expand_copysign_absneg): Change icode to an insn_code.
14792         (create_convert_operand_from_type): New function.
14793         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
14794         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
14795         (expand_insn, expand_jump_insn): Likewise.
14796         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
14797         than const_int_operand for operand 2.
14798
14799 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14800
14801         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
14802         if possible.
14803
14804 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
14805
14806         * emit-rtl.c (emit_pattern_before_noloc): New function.
14807         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
14808         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
14809         (emit_pattern_after_noloc): New function.
14810         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
14811         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
14812
14813 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
14814
14815         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
14816         (__ffsDI2): Likewise.
14817
14818 2011-03-22  Richard Henderson  <rth@redhat.com>
14819
14820         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
14821         of !TARGET_ABI_OPEN_VMS.
14822         (alpha_trampoline_init, alpha_start_function): Likewise.
14823         (alpha_expand_epilogue, alpha_file_start): Likewise.
14824         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
14825         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
14826         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
14827         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
14828         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
14829
14830 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14831
14832         * config/s390/s390-opts.h: New.
14833         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
14834         s390_arch_flags, s390_warn_framesize, s390_stack_size,
14835         s390_stack_guard): Remove.
14836         (s390_handle_arch_option): Return void.  Take enum
14837         s390_arch_option value instead of string and searching array.
14838         (s390_handle_option): Don't assert that global structures are in
14839         use.  Access variables via opts pointer.  Use error_at.  Don't use
14840         sscanf for -mstack-guard= or -mstack-size=.  Update call to
14841         s390_handle_arch_option.
14842         (s390_option_override): Update call to s390_handle_arch_option.
14843         (s390_emit_prologue): Use %d format for s390_stack_size in
14844         diagnostic.  Use %wd for HOST_WIDE_INT.
14845         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
14846         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
14847         * config/s390/s390.opt (config/s390/s390-opts.h): New
14848         HeaderInclude entry.
14849         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
14850         s390_arch_flags, s390_warn_framesize): New Variable entries.
14851         (s390_arch_option): New Enum and EnumValue entries.
14852         (march=): Use Enum instead of Var.
14853         (mstack-guard=, mstack-size=): Use UInteger and Var.
14854         (mtune=): Use Enum.
14855
14856 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14857
14858         * config/score/score.c (score_handle_option): Don't assert that
14859         global structures are in use.  Access target_flags via opts
14860         pointer.  Use value of -march= option to determine target_flags
14861         settings.
14862         * config/score/score.opt (march=): Use Enum.
14863         (score_arch): New Enum and EnumValue entries.
14864
14865 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14866
14867         * config/mep/mep.c (option_mtiny_specified): Remove.
14868         (mep_option_override): Move register handling for -mivc2 from
14869         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
14870         instead of option_mtiny_specified.
14871         (mep_handle_option): Access target_flags via opts pointer.  Don't
14872         assert that global structures are in use.  Defer part of -mivc2
14873         handling and move it to mep_option_override.
14874         * config/mep/mep.opt (IVC2): New Mask entry.
14875         (mivc2): Use Var and Defer instead of Mask.
14876
14877 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14878
14879         * config/v850/v850-opts.h: New.
14880         * config/v850/v850.c (small_memory): Replace with
14881         small_memory_physical_max array.  Make that array static const.
14882         (v850_handle_memory_option): Take integer value of argument.  Take
14883         gcc_options pointer, option text and location.  Return void.
14884         Update for changes to small memory structures.
14885         (v850_handle_option): Access target_flags via opts pointer.  Don't
14886         assert that global structures are in use.  Update calls to
14887         v850_handle_memory_option.
14888         (v850_encode_data_area): Update references to small memory settings.
14889         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
14890         (enum small_memory_type): Move to v850-opts.h.
14891         * config/v850/v850.opt (config/v850/v850-opts.h): New
14892         HeaderInclude entry.
14893         (small_memory_max): New Variable entry.
14894         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
14895         (mtda, mzda): Likewise.
14896
14897 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14898
14899         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
14900         pointer.  Don't assert that global structures are in use.
14901
14902 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14903
14904         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
14905         via opts pointer.  Don't assert that global structures are in use.
14906
14907 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14908
14909         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
14910         (munix=93): Use Var.
14911         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
14912         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
14913         * config/pa/pa-opts.h: New.
14914         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
14915         (pa_handle_option): Don't assert that global structures are in
14916         use.  Access target_flags via opts pointer.  Don't handle
14917         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
14918         OPT_munix_98 here.
14919         (pa_option_override): Handle deferred OPT_mfixed_range_.
14920
14921 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14922
14923         * config/mn10300/mn10300-opts.h: New.
14924         * config/mn10300/mn10300.c (mn10300_processor,
14925         mn10300_tune_string): Remove.
14926         (mn10300_handle_option): Don't assert that global structures are
14927         in use.  Access mn10300_processor via opts pointer.  Don't handle
14928         OPT_mtune_ here.
14929         * config/mn10300/mn10300.h (enum processor_type): Move to
14930         mn10300-opts.h.
14931         (mn10300_processor): Remove.
14932         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
14933         HeaderInclude entry.
14934         (mn10300_processor): New Variable entry.
14935         (mtune=): Use Var.
14936
14937 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14938
14939         * config/microblaze/microblaze.c: Don't include opts.h.
14940         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
14941         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
14942         (mno-clearbss): Use Var and Warn.
14943
14944 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14945
14946         * config/m32r/m32r-opts.h: New.
14947         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
14948         (m32r_handle_option): Don't assert that global structures are in
14949         use.  Access target_flags and m32r_cache_flush_func via opts
14950         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
14951         OPT_mno_flush_trap here.
14952         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
14953         include of m32r-opts.h.
14954         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
14955         HeaderInclude entry.
14956         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
14957         (mmodel=): Use Enum and Var.
14958         (m32r_model): New Enum and EnumValue entries.
14959         (mno-flush-trap): Use Var.
14960         (msdata=): Use Enum and Var.
14961         (m32r_sdata): New Enum and EnumValue entries.
14962
14963 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14964
14965         * config/m32c/m32c.c: Don't include opts.h.
14966         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
14967         m32c_handle_option): Remove.
14968         (m32c_option_override): Check global_options_set.x_target_memregs
14969         instead of target_memregs_set.
14970         * config/m32c/m32c.h (target_memregs): Remove.
14971         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
14972         variable.
14973
14974 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14975
14976         * config/iq2000/iq2000-opts.h: New.
14977         * config/iq2000/iq2000.c: Don't include opts.h.
14978         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
14979         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
14980         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
14981         HeaderInclude entry.
14982         (iq2000_tune): New Variable entry.
14983         (march=): Add comment.  Use Enum.
14984         (iq2000_arch): New Enum and EnumValue entries.
14985         (mcpu=): Use Enum and Var.
14986         (iq2000_tune): New Enum and EnumValue entries.
14987
14988 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14989
14990         * config/ia64/ia64-opts.h: New.
14991         * config/ia64/ia64.c (ia64_tune): Remove.
14992         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
14993         here.  Use error_at.
14994         (ia64_option_override): Handle deferred OPT_mfixed_range_.
14995         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
14996         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
14997         HeaderInclude entry.
14998         (ia64_tune): New Variable entry.
14999         (mfixed-range=): Use Defer and Var.
15000         (mtune=): Use Enum and Var.
15001         (ia64_tune): New Enum and EnumValue entries.
15002
15003 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
15004
15005         * config/frv/frv-opts.h: New.
15006         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
15007         frv-opts.h.
15008         (frv_cpu_type): Remove.
15009         * config/frv/frv.c: Don't include opts.h.
15010         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
15011         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
15012         (frv_cpu_type): New Variable entry.
15013         (frv_cpu): New Enum and EnumValue entries.
15014
15015 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
15016
15017         * config/cris/cris.c (cris_handle_option): Access target_flags via
15018         opts pointer.  Don't assert that global structures are in use.
15019         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
15020         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
15021
15022 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
15023
15024         * config/bfin/bfin-opts.h: New.
15025         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
15026         bfin_si_revision, bfin_workarounds): Remove.
15027         (bfin_cpus): Make static const.
15028         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
15029         not bfin_lib_id_given.
15030         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
15031         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
15032         pointer. Use error_at.  Don't assert that global structures are in use.
15033         * config/bfin/bfin.h: Include bfin-opts.h.
15034         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
15035         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
15036         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
15037         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
15038         entries.
15039
15040 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
15041
15042         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
15043         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
15044         or -msoft-float here.
15045         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
15046         -msoft-float and -mhard-float.
15047         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
15048         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
15049         msoft-float.
15050         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
15051         -msoft-float.
15052         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
15053         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
15054         not mhard-float.
15055         (LIBGCC_SPEC): Don't handle -msoft-float.
15056         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
15057         -mhard-float.
15058         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
15059         msoft-float.
15060         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
15061         -mfloat-abi=*, not -msoft-float and -mhard-float.
15062         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
15063         -msoft-float.
15064         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
15065         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
15066         mhard-float and msoft-float.
15067         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
15068         mfloat-abi=soft in comments, not mhard-float and msoft-float.
15069         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
15070         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
15071         mhard-float.
15072         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
15073         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
15074         msoft-float.
15075         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
15076         not mhard-float.
15077         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
15078         not msoft-float.
15079
15080 2011-03-22  Richard Henderson  <rth@redhat.com>
15081
15082         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
15083         TARGET_ABI_WINDOWS_NT.
15084         (alpha_output_function_end_prologue): Likewise.
15085         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
15086         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
15087         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
15088         (trap, *movsi_nt_vms): Likewise.
15089         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
15090         (*tablejump_osf_nt_internal): Remove.
15091         * config/alpha/predicates.md (input_operand): Only test Pmode.
15092
15093 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
15094
15095         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
15096         via opts pointer.  Use error_at.  Don't assert that global
15097         structures are in use.
15098
15099 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
15100
15101         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
15102         (ix86_handle_option): Access ix86_isa_flags and
15103         ix86_isa_flags_explicit via opts pointer.  Don't assert that
15104         global structures are in use.
15105         (ix86_function_specific_save, ix86_function_specific_restore):
15106         Update ix86_isa_flags_explicit field name.
15107         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
15108         (ix86_isa_flags_explicit): Rename TargetSave entry to
15109         x_ix86_isa_flags_explicit.
15110
15111 2011-03-22  Richard Henderson  <rth@redhat.com>
15112
15113         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
15114         (alpha_option_override, direct_return): Likewise.
15115         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
15116         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
15117         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
15118         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
15119         (alpha_expand_epilogue, alpha_end_function): Likewise.
15120         (alpha_init_libfuncs): Likewise.
15121         (struct machine_function): Remove unicosmk members.
15122         (print_operand) ['t']: Remove.
15123         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
15124         unicosmk_output_module_name, unicosmk_output_common,
15125         current_section_align, unicosmk_output_text_section_asm_op,
15126         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
15127         unicosmk_section_type_flags, unicosmk_unique_section,
15128         unicosmk_asm_named_section, unicosmk_insert_attributes,
15129         unicosmk_output_align, unicosmk_defer_case_vector,
15130         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
15131         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
15132         unicosmk_output_ssib, unicosmk_add_call_info_word,
15133         unicosmk_extern_head, unicosmk_output_default_externs,
15134         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
15135         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
15136         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
15137         * config/alpha/alpha-protos.h: Update.
15138         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
15139         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
15140         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
15141         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
15142         (*mulsi_se, mulvsi3): Likewise.
15143         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
15144         (*divmodsi_internal, call, call_value, realign): Likewise.
15145         (moddi3, umoddi3): Likewise; remove duplicate expander.
15146         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
15147         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
15148         (*movdi_nofix): Remove r/U alternative.
15149         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
15150         * config/alpha/constraints.md ("U"): Remove.
15151         * config/alpha/predicates.md (call_operand"): Don't test
15152         TARGET_ABI_UNICOSMK.
15153
15154 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
15155
15156         * target.def (handle_option): Take gcc_options and
15157         cl_decoded_option pointers and location_t.
15158         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
15159         * doc/tm.texi: Regenerate.
15160         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
15161         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
15162         * lto-opts.c (lto_reissue_options): Generate option structure for
15163         targetm.handle_option call.
15164         * opts.c (target_handle_option): Update call to
15165         targetm.handle_option.  Remove assertions about values now passed
15166         down to hook.
15167         * targhooks.c (default_target_handle_option): New.
15168         * targhooks.h (default_target_handle_option): Declare.
15169         * config/alpha/alpha.c: Include opts.h.
15170         (alpha_handle_option): Update to new hook interface.
15171         * config/arm/arm.c: Include opts.h.
15172         (arm_handle_option): Update to new hook interface.
15173         * config/arm/t-arm (arm.o): Update dependencies.
15174         * config/bfin/bfin.c: Include opts.h.
15175         (bfin_handle_option): Update to new hook interface.
15176         * config/cris/cris.c: Include opts.h.
15177         (cris_handle_option): Update to new hook interface.
15178         * config/frv/frv.c: Include opts.h.
15179         (frv_handle_option): Update to new hook interface.
15180         * config/i386/i386.c: Include opts.h.
15181         (ix86_handle_option): Update to new hook interface.
15182         (ix86_valid_target_attribute_inner_p): Generate option structure
15183         for call to ix86_handle_option.
15184         * config/i386/t-i386 (i386.o): Update dependencies.
15185         * config/ia64/ia64.c: Include opts.h.
15186         (ia64_handle_option): Update to new hook interface.
15187         * config/ia64/t-ia64 (ia64.o): Update dependencies.
15188         * config/iq2000/iq2000.c: Include opts.h.
15189         (iq2000_handle_option): Update to new hook interface.
15190         * config/m32c/m32c.c: Include opts.h.
15191         (m32c_handle_option): Update to new hook interface.
15192         * config/m32r/m32r.c: Include opts.h.
15193         (m32r_handle_option): Update to new hook interface.
15194         * config/m68k/m68k.c: Include opts.h.
15195         (m68k_handle_option): Update to new hook interface.
15196         * config/mep/mep.c: Include opts.h.
15197         (mep_handle_option): Update to new hook interface.
15198         * config/microblaze/microblaze.c: Include opts.h.
15199         (microblaze_handle_option): Update to new hook interface.
15200         * config/mips/mips.c: Include opts.h.
15201         (mips_handle_option): Update to new hook interface.
15202         * config/mn10300/mn10300.c: Include opts.h.
15203         (mn10300_handle_option): Update to new hook interface.
15204         * config/pa/pa.c: Include opts.h.
15205         (pa_handle_option): Update to new hook interface.
15206         * config/pdp11/pdp11.c: Include opts.h.
15207         (pdp11_handle_option): Update to new hook interface.
15208         * config/rs6000/rs6000.c: Include opts.h.
15209         (rs6000_handle_option): Update to new hook interface.
15210         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
15211         * config/rx/rx.c: Include opts.h.
15212         (rx_handle_option): Update to new hook interface.
15213         * config/s390/s390.c: Include opts.h.
15214         (s390_handle_option): Update to new hook interface.
15215         * config/score/score.c: Include opts.h.
15216         (score_handle_option): Update to new hook interface.
15217         * config/sh/sh.c: Include opts.h.
15218         (sh_handle_option): Update to new hook interface.
15219         * config/sparc/sparc.c: Include opts.h.
15220         (sparc_handle_option): Update to new hook interface.
15221         * config/v850/v850.c: Include opts.h.
15222         (v850_handle_option): Update to new hook interface.
15223
15224 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
15225
15226         * gcc.c (driver_unknown_option_callback): Only permit and save
15227         unknown -Wno- options.
15228         (driver_wrong_lang_callback): Save options directly instead of via
15229         driver_unknown_option_callback.
15230
15231 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
15232
15233         * combine.c (simplify_set): Try harder to find the best CC mode when
15234         simplifying a nested COMPARE on the RHS.
15235
15236 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
15237
15238         * config/alpha/gnu.h: Remove.
15239         * config/arc: Remove directory.
15240         * config/arm/netbsd.h: Remove.
15241         * config/arm/t-pe: Remove.
15242         * config/crx: Remove directory.
15243         * config/i386/netbsd.h: Remove.
15244         * config/m68hc11: Remove directory.
15245         * config/m68k/uclinux-oldabi.h: Remove.
15246         * config/mcore/mcore-pe.h: Remove.
15247         * config/mcore/t-mcore-pe: Remove.
15248         * config/netbsd-aout.h: Remove.
15249         * config/rs6000/gnu.h: Remove.
15250         * config/sh/sh-symbian.h: Remove.
15251         * config/sh/symbian-base.c: Remove.
15252         * config/sh/symbian-c.c: Remove.
15253         * config/sh/symbian-cxx.c: Remove.
15254         * config/sh/symbian-post.h: Remove.
15255         * config/sh/symbian-pre.h: Remove.
15256         * config/sh/t-symbian: Remove.
15257         * config/svr3.h: Remove.
15258         * config/vax/netbsd.h: Remove.
15259         * config.build: Don't handle i[34567]86-*-pe.
15260         * config.gcc: Remove handling of deprecations for most deprecated
15261         targets.
15262         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
15263         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
15264         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
15265         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
15266         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
15267         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
15268         Remove cases.
15269         * config.host: Don't handle i[34567]86-*-pe.
15270         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
15271         (ASM_SPEC32): Don't handle -mcall-gnu.
15272         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
15273         -mcall-gnu.
15274         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
15275         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
15276         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
15277         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
15278         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
15279         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
15280         conditional on SYMBIAN.
15281         * configure.ac: Don't handle powerpc*-*-gnu*.
15282         * configure: Regenerate.
15283         * doc/extend.texi (interrupt attribute): Don't mention CRX.
15284         * doc/install-old.texi (m6811, m6812): Don't mention.
15285         * doc/install.texi (arc-*-elf*): Don't document multilib option.
15286         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
15287         (m68k-uclinuxoldabi): Don't mention.
15288         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
15289         Remove.
15290         (-mcall-gnu): Remove.
15291         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
15292         families): Remove constraint documentation.
15293
15294 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
15295
15296         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
15297         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
15298         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
15299
15300 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
15301
15302         PR target/48226
15303         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
15304         vector when peeking at the next token for vector, don't expand the
15305         keywords.
15306
15307 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
15308
15309         * config/avr/avr-protos.h (expand_epilogue): Change prototype
15310         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
15311         * config/avr/avr.c (init_cumulative_args)
15312         (avr_function_arg_advance): Use it.
15313         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
15314         sibcall epilogues.
15315         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
15316         (avr_function_ok_for_sibcall): ...this new function.
15317         (avr_lookup_function_attribute1): New static Function.
15318         (avr_naked_function_p, interrupt_function_p)
15319         (signal_function_p, avr_OS_task_function_p)
15320         (avr_OS_main_function_p): Use it.
15321         * config/avr/avr.md ("sibcall", "sibcall_value")
15322         ("sibcall_epilogue"): New expander.
15323         ("*call_insn", "*call_value_insn"): New insn.
15324         ("call_insn", "call_value_insn"): Remove
15325         ("call", "call_value", "epilogue"): Change expander to handle
15326         sibling calls.
15327
15328 2011-03-21  Nick Clifton  <nickc@redhat.com>
15329
15330         * doc/invoke.texi (Overall Options): Move closing brace to end of
15331         options list.
15332         (Optimization Options): Add missing @gol.
15333         (Directory Options): Likewise.
15334         (i386 and x86-64 Options): Likewise.
15335         (RS6000 and PowerPC Options): Likewise.
15336         (i386 and x86-64 Windows Options): Likewise.
15337         (V850 Options): Add text missing from descriptions.
15338
15339 2011-03-22  Richard Henderson  <rth@redhat.com>
15340
15341         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
15342         (avr_incoming_return_addr_rtx): New.
15343         (emit_push_byte): New.
15344         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
15345         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
15346         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
15347         (emit_pop_byte): New.
15348         (expand_epilogue): Use it.  Pop frame pointer by bytes.
15349         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
15350         (INCOMING_RETURN_ADDR_RTX): New.
15351         (INCOMING_FRAME_SP_OFFSET): New.
15352         (ARG_POINTER_CFA_OFFSET): New.
15353         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
15354         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
15355         (pophi): Remove.
15356
15357         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
15358
15359 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
15360
15361         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
15362         (FUNCTION_ARG_ADVANCE): Likewise.
15363         * tm.texi.in: Change references to them to hook references.
15364         * tm.texi: Regenerate.
15365         * targhooks.c (default_function_arg): Eliminate check for target
15366         macro.
15367         (default_function_incoming_arg): Likewise.
15368         (default_function_arg_advance): Likewise.
15369         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
15370         (function_arg_advance): Likewise.
15371         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
15372
15373 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
15374
15375         * tree.c (build_call_1): New function.
15376         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
15377
15378 2011-03-22  Richard Guenther  <rguenther@suse.de>
15379
15380         PR tree-optimization/48228
15381         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
15382         for single-arg PHIs.
15383
15384 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
15385
15386         PR rtl-optimization/48143
15387         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
15388         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
15389         sse2_cvtps2pd): Likewise.
15390
15391 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15392
15393         * recog.c (canonicalize_change_group): Use validate_unshare_change.
15394
15395 2011-03-22  Richard Guenther  <rguenther@suse.de>
15396
15397         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
15398         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
15399         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
15400         and REALIGN_LOAD_EXPR.
15401         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
15402         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
15403         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
15404         DOT_PROD_EXPR case ...
15405         (expand_expr_real_2): ... here.
15406         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
15407         and REALIGN_LOAD_EXPR.
15408         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
15409         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
15410         (vect_create_epilog_for_reduction): Likewise.
15411         (vectorizable_reduction): Likewise.
15412         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
15413         * tree-vect-stmts.c (vectorizable_load): Likewise.
15414
15415 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
15416
15417         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
15418
15419 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15420
15421         * config/s390/s390.c (s390_delegitimize_address): Fix offset
15422         handling for PLTOFF/GOTOFF.
15423
15424 2011-03-22  Nick Clifton  <nickc@redhat.com>
15425
15426         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
15427         trailing backslash from the end of the macro definition.
15428
15429 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15430
15431         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
15432         and PLT unspecs.
15433
15434 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
15435
15436         * expr.h (prepare_operand): Move to...
15437         * optabs.h (prepare_operand): ...here and change the insn code
15438         parameter from "int" to "enum insn_code".
15439         (insn_operand_matches): Declare.
15440         * expr.c (init_expr_target): Use insn_operand_matches.
15441         (compress_float_constant): Likewise.
15442         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
15443         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
15444         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
15445         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
15446         Likewise.
15447         (gen_cond_trap): Likewise.
15448         (prepare_operand): Likewise.  Change icode to an insn_code.
15449         (insn_operand_matches): New function.
15450         * reload.c (find_reloads_address_1): Use insn_operand_matches.
15451         * reload1.c (gen_reload): Likewise.
15452         * targhooks.c (default_secondary_reload): Likewise.
15453
15454 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
15455
15456         * config/alpha/alpha.md (unspec): New define_c_enum.
15457         (unspecv): Ditto.
15458
15459 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
15460
15461         PR debug/48214
15462         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
15463         between a call and its CALL_ARG_LOCATION note.
15464
15465 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
15466
15467         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
15468
15469 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
15470
15471         PR c/42544
15472         PR c/48197
15473         * c-common.c (shorten_compare): If primopN is first sign-extended
15474         to opN and then zero-extended to result type, set primopN to opN.
15475
15476 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
15477
15478         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
15479         for barrier handlers.
15480
15481 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
15482
15483         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
15484         UNSPEC constants to be in the unspec enumeration, and redefine
15485         all UNSPECV constants to be in the unspecv enumeration, so that
15486         dumps print which unspec/unspec_volatile this is.
15487         * config/rs6000/vector.md (UNSPEC_*): Ditto.
15488         * config/rs6000/paired.md (UNSPEC_*): Ditto.
15489         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
15490         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
15491         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
15492
15493         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
15494         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
15495         UNSPECV_LWSYNC, since these are used as unspec_volatile.
15496         * config/rs6000/sync.md (isync, lwsync): Ditto.
15497
15498 2011-03-21  Richard Guenther  <rguenther@suse.de>
15499
15500         * params.def (lto-min-partition): Fix typo.
15501
15502 2011-03-21  Richard Guenther  <rguenther@suse.de>
15503
15504         PR c/47939
15505         * c-decl.c (grokdeclarator): Drop to the main variant only
15506         for array types.  Drop flag_gen_aux_info check.
15507
15508 2011-03-21  Richard Guenther  <rguenther@suse.de>
15509
15510         PR translation/47911
15511         * params.def (lto-partitions): Fix typo.
15512         (lto-min-partition): Fix wording.
15513
15514 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
15515
15516         * config/rs6000/t-freebsd: Remove duplication from file.
15517
15518 2011-03-21  Richard Guenther  <rguenther@suse.de>
15519
15520         PR middle-end/47661
15521         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
15522
15523 2011-03-21  Richard Guenther  <rguenther@suse.de>
15524
15525         PR lto/48210
15526         * params.def (lto-partitions): Require at least 1 partition.
15527
15528 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15529
15530         * gthr-solaris.h: Remove.
15531         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
15532         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
15533         (LIB_SPEC): Likewise.
15534         * config/sol2.opt (threads): Remove.
15535         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
15536         (sparc*-*-solaris2*): Likewise.
15537         * configure.ac (enable_threads): Enable solaris support.
15538         * configure: Regenerate.
15539         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
15540         * doc/install.texi (Configuration, --enable-threads=lib): Remove
15541         solaris.
15542
15543 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15544
15545         * config.gcc: Obsolete *-*-solaris2.8*.
15546         * doc/install.texi (Specific, *-*-solaris2*): Document it.
15547
15548 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15549
15550         PR bootstrap/48135
15551         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
15552         reference.  Solaris 8 perl works.
15553
15554 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15555
15556         PR bootstrap/48135
15557         * doc/install.texi (Prerequisites): Move jar etc. up.
15558         Explain support library version requirements.
15559
15560 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15561
15562         PR bootstrap/48135
15563         * doc/install.texi (Prerequisites): Move Perl to build
15564         requirements.  Always necessary on Solaris 2 with Sun ld.
15565
15566 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15567
15568         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
15569         binutils 2.21.
15570         (Specific, i?86-*-solaris2.[89]): Likewise.
15571         (Specific, i?86-*-solaris2.10): Likewise.
15572         (Specific, mips-sgi-irix6): Likewise.
15573         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
15574         Update for binutils 2.21.
15575
15576 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15577
15578         * configure.ac (gcc_cv_lto_plugin): Fix typo.
15579         Allow -fuse-linker-plugin for non-default plugin linker.
15580         * configure: Regenerate.
15581
15582 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
15583
15584         PR bootstrap/48167
15585         * gengtype.c (files_rules): Added rule for cp/parser.h.
15586
15587 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
15588
15589         PR target/48213
15590         * config/s390/s390.c (s390_delegitimize_address): Don't call
15591         lowpart_subreg if orig_x has BLKmode.
15592
15593 2011-03-21  Kai Tietz  <ktietz@redhat.com>
15594
15595         PR target/12171
15596         * doc/plugins.texi: Adjust documentation for plugin register_callback.
15597         * tree.h (attribute_spec): Add new member affects_type_identity.
15598         * attribs.c (empty_attribute_table): Adjust attribute_spec
15599         initializers.
15600         * config/alpha/alpha.c: Likewise.
15601         * config/arc/arc.c: Likewise.
15602         * config/arm/arm.c: Likewise.
15603         * config/avr/avr.c: Likewise.
15604         * config/bfin/bfin.c: Likewise.
15605         * config/crx/crx.c: Likewise.
15606         * config/darwin.h: Likewise.
15607         * config/h8300/h8300.c: Likewise.
15608         * config/i386/cygming.h: Likewise.
15609         * config/i386/i386.c: Likewise.
15610         * config/ia64/ia64.c: Likewise.
15611         * config/m32c/m32c.c: Likewise.
15612         * config/m32r/m32r.c: Likewise.
15613         * config/m68hc11/m68hc11.c: Likewise.
15614         * config/m68k/m68k.c: Likewise.
15615         * config/mcore/mcore.c: Likewise.
15616         * config/mep/mep.c: Likewise.
15617         * config/microblaze/microblaze.c: Likewise.
15618         * config/mips/mips.c: Likewise.
15619         * config/rs6000/rs6000.c: Likewise.
15620         * config/rx/rx.c: Likewise.
15621         * config/sh/sh.c: Likewise.
15622         * config/sol2.h: Likewise.
15623         * config/sparc/sparc.c: Likewise.
15624         * config/spu/spu.c: Likewise.
15625         * config/stormy16/stormy16.c: Likewise.
15626         * config/v850/v850.c: Likewise.
15627
15628 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
15629
15630         * simplify-rtx.c (simplify_binary_operation_1): Handle
15631         (xor (and A B) C) case when B and C are both constants.
15632
15633 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
15634
15635         * tree-dfa.c (add_referenced_var): Fix typo in comment.
15636
15637 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
15638
15639         PR bootstrap/48168
15640         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
15641
15642 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
15643
15644         PR rtl-optimization/48156
15645         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
15646         assume df and df_lr are not NULL.
15647
15648 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15649
15650         PR debug/48023
15651         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
15652         between a call and its CALL_ARG_LOCATION note.
15653
15654 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
15655
15656         PR debug/48178
15657         * config/sh/sh.c (find_barrier): Don't emit a constant pool
15658         between a call and its corresponding CALL_ARG_LOCATION note.
15659
15660 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
15661
15662         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
15663         instead of loop. Use HARD_REGISTER_NUM_P predicate.
15664         * haifa-sched.c (setup_ref_regs): Ditto.
15665         * caller-save.c (add_used_regs_1): Ditto.
15666         * dse.c (look_for_hardregs): Ditto.
15667         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
15668         * sched-rgn.c (check_live_1): Ditto.
15669
15670 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
15671
15672         * c-decl.c (diagnose_mismatched_decls): Give an error for
15673         redefining a typedef with variably modified type.
15674
15675 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
15676
15677         * c-decl.c (grokfield): Don't allow typedefs for structures or
15678         unions with no tag by default.
15679         * doc/extend.texi (Unnamed Fields): Update.
15680
15681 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
15682
15683         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
15684         Rewrite using indirect functions.
15685         (lwp_slwpcb): Ditto.
15686         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
15687         (avx_vinsertf128<mode>): Ditto.
15688
15689 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15690
15691         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
15692         unspecs.
15693
15694 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15695
15696         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
15697         splitting between a call and its corresponding CALL_ARG_LOCATION note.
15698
15699 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
15700
15701         PR rtl-optimization/48170
15702         * gcse.c (hoist_code): Remove bogus asserts.
15703
15704 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
15705
15706         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
15707         computation for prologue/epilogue.
15708
15709 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15710
15711         * Makefile.in (check-consistency): Remove.
15712
15713 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
15714
15715         PR debug/48176
15716         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
15717         arange_table_in_use is 0, but either text_section_used or
15718         cold_text_section_used is true.  Don't call it if
15719         !info_section_emitted.
15720
15721 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
15722
15723         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
15724         FUNCTION_VALUE_REGNO_P): Remove.
15725         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
15726         Remove.
15727         * config/avr/avr.c (avr_ret_register): Make static inline.
15728         (avr_function_value_regno_p): New function.
15729         (avr_libcall_value): Make static. Add 'func' argument.
15730         (avr_function_value): Make static. Rename 'func' argument to
15731         'fn_decl_or_type', forward it to avr_libcall_value. Call
15732         avr_ret_register function instead of RET_REGISTER macro.
15733         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15734
15735 2011-03-18  Jason Merrill  <jason@redhat.com>
15736
15737         PR c++/23372
15738         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
15739
15740 2011-03-18  Richard Guenther  <rguenther@suse.de>
15741
15742         * doc/install.texi (--enable-gold): Remove.
15743         (--with-plugin-ld): Document.
15744         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
15745
15746 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
15747
15748         PR middle-end/47790
15749         * expr.c (optimize_bitfield_assignment_op): Revamp to work
15750         again after expansion changes.
15751
15752 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
15753
15754         * combine.c (try_combine): Do simplification only call of
15755         subst() on i2 even when i1 is present. Update comments.
15756
15757 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
15758
15759         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
15760         and UNSPEC_PCREL_SYMOFF.
15761
15762 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15763
15764         * config/s390/s390.md: Use define_c_enum for the unspec constant
15765         definitions.
15766
15767 2011-03-18  Richard Henderson  <rth@redhat.com>
15768             Jakub Jelinek  <jakub@redhat.com>
15769
15770         PR bootstrap/48161
15771         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
15772         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
15773
15774 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
15775
15776         PR middle-end/47725
15777         * combine.c (cant_combine_insn_p): Don't check zero/sign
15778         extended hard registers.
15779
15780 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
15781
15782         PR middle-end/47725
15783         * combine.c (cant_combine_insn_p): Check zero/sign extended
15784         hard registers.
15785
15786 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
15787
15788         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15789         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
15790         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
15791         Change return type to bool.
15792         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15793
15794 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
15795
15796         PR debug/48163
15797         * var-tracking.c (prepare_call_arguments): If CALL target
15798         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
15799         pc instead of looking it up using cselib_lookup and use
15800         Pmode for it if x has VOIDmode.
15801         * dwarf2out.c (gen_subprogram_die): If also both first and
15802         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
15803
15804         PR debug/48163
15805         * function.c (assign_parms): For data.passed_pointer parms
15806         use MEM of data.entry_parm instead of data.entry_parm itself
15807         as DECL_INCOMING_RTL.
15808         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
15809         also when passed and declared mode is the same, DECL_RTL
15810         is a MEM with pseudo as address and DECL_INCOMING_RTL is
15811         a MEM too.
15812
15813 2011-03-16  Jeff Law  <law@redhat.com>
15814
15815         PR rtl-optimization/37273
15816         * ira-costs.c (scan_one_insn): Detect constants living in memory and
15817         handle them like argument loads from stack slots.  Do not double
15818         count memory for memory constants and argument loads from stack slots.
15819
15820 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
15821
15822         PR debug/48160
15823         * var-tracking.c (prepare_call_arguments): Check SUBREG.
15824
15825 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
15826
15827         PR target/48171
15828         * config/i386/i386.opt: Add Save to -mavx and -mfma.
15829
15830 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
15831
15832         PR bootstrap/48153
15833         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
15834         if dwarf_strict.
15835         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
15836         Clear call_arg_locations and call_arg_loc_last always.
15837
15838         PR middle-end/48152
15839         * var-tracking.c (prepare_call_arguments): If argument needs to be
15840         passed by reference, adjust argtype and mode.
15841
15842 2011-03-17  Richard Guenther  <rguenther@suse.de>
15843
15844         PR middle-end/48134
15845         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
15846         a value make sure to fold the statement.
15847
15848 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
15849
15850         PR target/43872
15851         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
15852         return condition with !cfun->calls_alloca.
15853
15854 2011-03-17  Richard Guenther  <rguenther@suse.de>
15855
15856         PR bootstrap/48148
15857         * lto-cgraph.c (input_overwrite_node): Clear the abstract
15858         origin for decls in other ltrans units.
15859         (input_varpool_node): Likewise.
15860
15861 2011-03-17  Richard Guenther  <rguenther@suse.de>
15862
15863         PR middle-end/48165
15864         * tree-object-size.c (compute_object_offset): Properly return
15865         the offset operand of MEM_REFs as sizetype.
15866
15867 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
15868
15869         PR rtl-optimization/48141
15870         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
15871         * dse.c: Include params.h.
15872         (active_local_stores_len): New variable.
15873         (add_wild_read, dse_step1): Clear it when setting active_local_stores
15874         to NULL.
15875         (record_store, check_mem_read_rtx): Decrease it when removing
15876         from the chain.
15877         (scan_insn): Likewise.  Increase it when adding to chain, if it
15878         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
15879         set active_local_stores to NULL before the addition.
15880         * Makefile.in (dse.o): Depend on $(PARAMS_H).
15881
15882         PR rtl-optimization/48141
15883         * dse.c (record_store): If no positions are needed in an insn
15884         that cannot be deleted, at least unchain it from active_local_stores.
15885
15886 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
15887
15888         PR debug/47510
15889         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
15890         (lookup_type_die_strip_naming_typedef): ... here.
15891         (get_context_die): Use it.
15892         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
15893         the anonymous struct named by the naming typedef.
15894
15895 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
15896
15897         PR target/48154
15898         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
15899         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15900
15901 2011-03-16  Jeff Law  <law@redhat.com>
15902
15903         * tree-vrp.c (identify_jump_threads): Slightly simplify type
15904         check for operands of conditional.  Allow type to be a pointer.
15905
15906 2011-03-16  Richard Guenther  <rguenther@suse.de>
15907
15908         PR tree-optimization/48149
15909         * fold-const.c (fold_binary_loc): Fold
15910         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
15911
15912 2011-03-16  Richard Guenther  <rguenther@suse.de>
15913
15914         PR tree-optimization/26134
15915         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
15916         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
15917         (non_rewritable_mem_ref_base): Handle complex type component
15918         accesses, constrain offsets for vector and complex extracts
15919         more properly.
15920
15921 2011-03-16  Richard Guenther  <rguenther@suse.de>
15922
15923         PR tree-optimization/48146
15924         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
15925         operands avoiding the need for renaming.
15926
15927 2011-03-16  Richard Guenther  <rguenther@suse.de>
15928
15929         * gimple-fold.c (maybe_fold_reference): Open-code relevant
15930         constant folding.  Move MEM_REF canonicalization first.
15931         Rely on fold_const_aggregate_ref for initializer folding.
15932         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
15933
15934 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
15935
15936         PR middle-end/48136
15937         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
15938         arg0/arg1 or their arguments are always fold converted to matching
15939         types.
15940
15941         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
15942         to nargs.
15943
15944 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15945
15946         PR lto/46944
15947         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
15948         Handle in-tree gold.
15949         (ld_vers): Extract binutils version for gold.
15950         (gcc_cv_ld_hidden): Handle gold here.
15951         (gcc_cv_lto_plugin): Determine level of linker plugin support.
15952         * configure: Regenerate.
15953         * config.in: Regenerate.
15954         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
15955         -fuse-linker-plugin otherwise.
15956         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
15957         (LINK_COMMAND_SPEC): Use it.
15958         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
15959
15960 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
15961
15962         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
15963         * calls.c: Remove debug.h include.
15964         (emit_call_1): Don't call virtual_call_token debug hook.
15965         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
15966         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
15967         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
15968         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
15969         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
15970         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
15971         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
15972         dwarf2out_virtual_call): Remove.
15973         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
15974         copy_call_info and virtual_call hooks.
15975         (dwarf2out_init): Don't initialize vcall_insn_table,
15976         debug_dcall_section and debug_vcall_section.
15977         (prune_unused_types): Don't mark nodes from dcall_table.
15978         (dwarf2out_finish): Don't output dcall or vcall tables.
15979         * final.c (final_scan_insn): Don't call direct_call or
15980         virtual_call debug hooks.
15981         * debug.h (struct gcc_debug_hooks): Remove direct_call,
15982         virtual_call_token, copy_call_info and virtual_call hooks.
15983         (debug_nothing_uid): Remove prototype.
15984         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
15985         copy_call_info and virtual_call hooks.
15986         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
15987         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
15988         * debug.c (do_nothing_debug_hooks): Likewise.
15989         (debug_nothing_uid): Remove.
15990         * doc/invoke.texi (-fenable-icf-debug): Remove.
15991         * common.opt (-fenable-icf-debug): Likewise.
15992
15993         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
15994         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
15995         call's MEM.  Handle functions returning aggregate through a hidden
15996         first pointer.  For virtual calls add clobbered pc to call arguments
15997         chain.
15998         * dwarf2out.c (gen_subprogram_die): Emit
15999         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
16000         can't be emitted.
16001
16002         PR debug/45882
16003         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
16004         * rtl.h (ENTRY_VALUE_EXP): Define.
16005         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
16006         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
16007         * print-rtl.c (print_rtx): Likewise.
16008         * gengtype.c (adjust_field_rtx_def): Likewise.
16009         * var-tracking.c (vt_add_function_parameter): Adjust
16010         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
16011         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
16012         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
16013         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
16014         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
16015
16016         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
16017         Call var_location debug hook even on CALL_INSNs.
16018         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
16019         * rtl.def (ENTRY_VALUE): New.
16020         * dwarf2out.c: Include cfglayout.h.
16021         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
16022         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
16023         (struct call_arg_loc_node): New type.
16024         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
16025         tail_call_site_count): New variables.
16026         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
16027         DW_TAG_GNU_call_site_parameter.
16028         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
16029         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
16030         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
16031         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
16032         and DW_AT_GNU_all_source_call_sites.
16033         (mem_loc_descriptor): Handle ENTRY_VALUE.
16034         (add_src_coords_attributes): Don't add enything if
16035         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
16036         (dwarf2out_abstract_function): Save and clear call_arg_location,
16037         call_site_count and tail_call_site_count around dwarf2out_decl call.
16038         (gen_call_site_die): New function.
16039         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
16040         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
16041         (dwarf2out_function_decl): Clear call_arg_locations,
16042         call_arg_loc_last, set call_site_count and tail_call_site_count
16043         to -1 and free block_map.
16044         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
16045         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
16046         followed by any real instructions.
16047         (dwarf2out_begin_function): Set call_site_count and
16048         tail_call_site_count to 0.
16049         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
16050         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
16051         attempt to force a DIE for it and worst case remove the attribute.
16052         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
16053         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
16054         the decl itself.
16055         * var-tracking.c: Include tm_p.h.
16056         (vt_stack_adjustments): For calls call note_register_arguments.
16057         (argument_reg_set): New variable.
16058         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
16059         ensure the VALUE is resolved.
16060         (call_arguments): New variable.
16061         (prepare_call_arguments): New function.
16062         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
16063         (struct expand_loc_callback_data): Add ignore_cur_loc field.
16064         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
16065         always use the best expression.
16066         (vt_expand_loc): Add ignore_cur_loc argument.
16067         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
16068         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
16069         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
16070         note for all calls.
16071         (vt_add_function_parameter): Use cselib_lookup_from_insn.
16072         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
16073         argument.  Don't call cselib_preserve_only_values and
16074         cselib_reset_table.
16075         (note_register_arguments): New function.
16076         (vt_initialize): Compute argument_reg_set.  Call
16077         vt_add_function_parameters before processing basic blocks instead of
16078         afterwards.  For calls call prepare_call_arguments before calling
16079         cselib_process_insn.
16080         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
16081         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
16082         (var-tracking.o): Depend on $(TM_P_H).
16083         * cfglayout.h (insn_scope): New prototype.
16084         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
16085         * cfglayout.c (insn_scope): No longer static.
16086         * insn-notes.def (CALL_ARG_LOCATION): New.
16087         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
16088         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
16089         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
16090         nothing for DECL_EXTERNAL BLOCK_VARS.
16091
16092 2011-03-16  Alan Modra  <amodra@gmail.com>
16093
16094         PR target/45844
16095         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
16096         create invalid offset address for vsx splat insn.
16097         * config/rs6000/predicates.md (splat_input_operand): New.
16098         * config/rs6000/vsx.md (vsx_splat_*): Use it.
16099
16100 2011-03-15  Xinliang David Li  <davidxl@google.com>
16101
16102         PR c/47837
16103         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
16104         (normalize_preds): New function.
16105         (is_use_properly_guarded): Normalize def predicates.
16106
16107 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
16108
16109         PR target/46788
16110         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
16111         in the output template.
16112
16113 2011-03-15  Richard Guenther  <rguenther@suse.de>
16114
16115         PR middle-end/47650
16116         * tree-pretty-print.c (dump_function_declaration): Properly
16117         dump unprototyped and varargs function types.
16118
16119 2011-03-15  Richard Guenther  <rguenther@suse.de>
16120
16121         PR tree-optimization/13954
16122         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
16123         and friends.
16124
16125 2011-03-15  Richard Guenther  <rguenther@suse.de>
16126
16127         PR tree-optimization/48037
16128         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
16129         selects into BIT_FIELD_REFs.
16130         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
16131         vector select.
16132
16133 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
16134
16135         PR tree-optimization/48129
16136         * builtins.c (fold_builtin_snprintf): Convert to type of
16137         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
16138         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
16139
16140 2011-03-15  Richard Guenther  <rguenther@suse.de>
16141
16142         PR tree-optimization/41490
16143         * tree-ssa-dce.c (propagate_necessity): Handle returns without
16144         value but with VUSE.
16145         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
16146         return statements.
16147         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
16148         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
16149         * tree-tailcall.c (find_tail_calls): Ignore returns.
16150
16151 2011-03-15  Richard Guenther  <rguenther@suse.de>
16152
16153         PR middle-end/48031
16154         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
16155         or variable-indexed array accesses when in gimple form.
16156
16157 2011-03-15  Richard Guenther  <rguenther@suse.de>
16158
16159         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
16160
16161 2011-03-15  Alan Modra  <amodra@gmail.com>
16162
16163         PR target/48032
16164         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
16165         presume symbol_refs without a symbol_ref_decl are suitably
16166         aligned, nor other trees we may see here.  Handle anchor symbols.
16167         (legitimate_constant_pool_address_p): Comment.  Add mode param.
16168         Check cmodel=medium addresses.  Adjust all calls.
16169         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
16170         creating cmodel=medium optimized access to locals.
16171         * config/rs6000/constraints.md (R): Pass QImode to
16172         legitimate_constant_pool_address_p.
16173         * config/rs6000/predicates.md (input_operand): Pass mode to
16174         legitimate_constant_pool_address_p.
16175         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
16176         Update prototype.
16177
16178 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
16179
16180         PR target/48053
16181         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
16182         64-bit constants being loaded into registers other than GPRs such
16183         as loading 0 into a VSX register.
16184
16185 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16186
16187         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
16188
16189 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
16190
16191         PR middle-end/47917
16192         * builtins.c (fold_builtin_snprintf): New function.
16193         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
16194         (fold_builtin_4): Likewise.
16195
16196         PR middle-end/38878
16197         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
16198         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
16199         and C - X == X also strip nops from +/-/p+ operand.
16200         When optimizing -X == C, fold C to arg0's type.
16201
16202         PR debug/47946
16203         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
16204         emit it as add_AT_int instead of add_AT_unsigned.
16205
16206 2011-03-14  Tom Tromey  <tromey@redhat.com>
16207
16208         * unwind-dw2.c: Include sys/sdt.h if it exists.
16209         (_Unwind_DebugHook): Use STAP_PROBE2.
16210         * config.in, configure: Rebuild.
16211         * configure.ac: Check for sys/sdt.h.
16212
16213 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
16214
16215         * config/i386/i386.md (ROUND_FLOOR): New constant.
16216         (ROUND_CEIL): Ditto.
16217         (ROUND_TRUNC): Ditto.
16218         (ROUND_MXCSR): Ditto.
16219         (ROUND_NO_EXC): Ditto.
16220         (rint<mode>2): Use new defines instead of numerical constants.
16221         (floor<mode>2): Ditto.
16222         (ceil<mode>2): Ditto.
16223         (btrunc<mode>2): Ditto.
16224         * config/i386/i386-builtin-types.def: Define ROUND function type
16225         aliases.
16226         * config/i386/i386.c (enum ix86_builtins): Add
16227         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
16228         (struct builtin_description): Add
16229         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
16230         (ix86_expand_sse_round): New static function.
16231         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
16232         function types.
16233         (ix86_builtin_vectorized_function): Handle
16234         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
16235
16236 2011-03-14  Tom Tromey  <tromey@redhat.com>
16237
16238         * c-parser.c (c_parser_asm_string_literal): Clear
16239         warn_overlength_strings.
16240
16241 2011-03-14  Tom Tromey  <tromey@redhat.com>
16242
16243         * c-parser.c (disable_extension_diagnostics): Save
16244         warn_overlength_strings.
16245         (restore_extension_diagnostics): Restore warn_overlength_strings.
16246
16247 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
16248
16249         * BASE-VER: Change to 4.7.0.
16250
16251 2011-03-14  Richard Guenther  <rguenther@suse.de>
16252
16253         PR middle-end/48098
16254         * tree.c (build_vector_from_val): Adjust assert to requirements
16255         and reality.
16256
16257 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
16258
16259         PR bootstrap/48102
16260         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
16261
16262 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
16263
16264         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
16265         terms of target_flags_explicit. Adjust copyright year.
16266
16267         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
16268         * config/rs6000/t-freebsd: New file. Add override for
16269         LIB2FUNCS_EXTRA.
16270
16271 2011-03-13  Chris Demetriou  <cgd@google.com>
16272
16273         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
16274         (-fno-diagnostics-show-option): this, to reflect current default.
16275         (-Werror=): Update text about -fno-diagnostics-show-option.
16276
16277 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
16278
16279         PR target/48053
16280         * config/rs6000/predicates.md (easy_vector_constant_add_self,
16281         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
16282         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
16283         mode is not V2DImode or V2DFmode.
16284         (vspltis_constant): Do not handle V2DImode and V2DFmode.
16285         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
16286         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
16287         registers to 0.
16288         (movdi_internal64): Likewise.
16289
16290 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
16291
16292         PR tree-optimization/47127
16293         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
16294         parameter.
16295         (set_cloog_options): Same.
16296         (scop_to_clast): Same.
16297         (print_clast_stmt): Do not call cloog_state_malloc and
16298         cloog_state_free.
16299         (print_generated_program): Same.
16300         (gloog): Same.
16301         * graphite-clast-to-gimple.h (cloog_state): Declared.
16302         (scop_to_clast): Adjust declaration.
16303         * graphite.c (cloog_state): Defined here.
16304         (graphite_initialize): Call cloog_state_malloc.
16305         (graphite_finalize): Call cloog_state_free.
16306
16307 2011-03-11  Jason Merrill  <jason@redhat.com>
16308
16309         * attribs.c (lookup_attribute_spec): Take const_tree.
16310         * tree.h: Adjust.
16311
16312 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
16313
16314         * config/sparc/sparc.c (sparc_option_override): Use
16315         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
16316
16317 2011-03-11  Richard Guenther  <rguenther@suse.de>
16318
16319         PR tree-optimization/48067
16320         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
16321         multiplication result will be only used once on the target
16322         stmt.
16323
16324 2011-03-11  Richard Guenther  <rguenther@suse.de>
16325
16326         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
16327
16328 2011-03-11  Richard Guenther  <rguenther@suse.de>
16329
16330         PR lto/48073
16331         * tree.c (find_decls_types_r): Do not walk types only reachable
16332         from IDENTIFIER_NODEs.
16333
16334 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
16335
16336         PR middle-end/48044
16337         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
16338         all vnode->force_output nodes as needed.
16339
16340 2011-03-11  Jason Merrill  <jason@redhat.com>
16341
16342         PR c++/48069
16343         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
16344         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
16345
16346 2011-03-11  Martin Jambor  <mjambor@suse.cz>
16347
16348         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
16349         cgraph_node.
16350
16351 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
16352
16353         PR tree-optimization/48063
16354         * ipa-inline.c (cgraph_decide_inlining): Don't try to
16355         inline functions called once if !tree_can_inline_p (node->callers).
16356
16357 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
16358
16359         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
16360         extra_objs.
16361         * config/score/score3.c: Delete.
16362         * config/score/score3.h: Delete.
16363         * config/score/mul-div.S: Delete.
16364         * config/score/sfp-machine.h: Add new file.
16365         * config/score/constraints.md: Add new file.
16366         * config/score/t-score-softfp: Add new file.
16367         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
16368         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
16369         (score7_extra_constraint): Delete.
16370         (score7_option_override): Remove unused code.
16371         * config/score/score.c: Remove score3 and score5 define and code.
16372         * config/score/score.h: Remove score3 and score5 define and code.
16373         * config/score/score.md: Remove score3 template and unusual insn.
16374         * config/score/score.opt: Remove score3 and score5 options.
16375
16376 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16377
16378         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
16379         when _HPUX_SOURCE is defined.
16380         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
16381
16382 2011-03-10  Jason Merrill  <jason@redhat.com>
16383
16384         PR c++/48029
16385         * stor-layout.c (layout_type): Don't set structural equality
16386         on arrays of incomplete type.
16387         * tree.c (type_hash_eq): Handle comparing them properly.
16388
16389 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
16390
16391         PR debug/48043
16392         * config/s390/s390.c (s390_delegitimize_address): Make sure the
16393         result mode matches original rtl mode.
16394
16395 2011-03-10  Nick Clifton  <nickc@redhat.com>
16396
16397         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
16398         (andsi3, andsi3_flags): Fix timings for three operand alternative.
16399
16400 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
16401
16402         PR rtl-optimization/47866
16403         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
16404         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
16405         if target wasn't scalar.
16406         * function.c (assign_stack_temp_for_type): Assert that neither
16407         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
16408         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
16409         macro.
16410         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
16411
16412 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16413
16414         * config/s390/s390-protos.h (s390_label_align): New prototype.
16415         * config/s390/s390.c (s390_label_align): New function.
16416         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
16417
16418 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
16419
16420         PR target/47755
16421         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
16422         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
16423         (output_vec_const_move): Ditto.
16424
16425 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
16426
16427         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
16428         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
16429         * config/mips/mips.c (mips_preferred_reload_class): Make static.
16430         Change 'rclass' argument and result type to reg_class_t.
16431         (TARGET_PREFERRED_RELOAD_CLASS): Define.
16432
16433 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
16434
16435         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
16436         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
16437         (TARGET_MEMORY_MOVE_COST): Define.
16438         (avr_register_move_cost, avr_memory_move_cost): New Functions.
16439
16440 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
16441
16442         PR debug/47881
16443         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
16444         removed anything.
16445
16446         PR tree-optimization/48022
16447         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
16448         for EQ/NE_EXPR.
16449
16450 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
16451
16452         PR debug/47991
16453         * var-tracking.c (find_use_val): Return NULL for
16454         cui->sets && cui->store_p BLKmode MEMs.
16455
16456 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
16457
16458         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
16459         Remove.
16460         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
16461         xstormy16_print_operand_address): Remove.
16462         * config/stormy16/stormy16.c (xstormy16_print_operand,
16463         xstormy16_print_operand_address): Make static.
16464         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16465
16466 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
16467
16468         PR target/47862
16469         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
16470         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
16471         before definition.
16472
16473 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
16474
16475         PR bootstrap/48000
16476         * cfgloopmanip.c (fix_bb_placements): Return immediately
16477         if FROM is BASE_LOOP's header.
16478
16479 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
16480
16481         * gimplify.c (gimplify_function_tree): Fix building calls
16482         to __builtin_return_address.
16483
16484 2011-03-07  Alan Modra  <amodra@gmail.com>
16485
16486         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
16487         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
16488         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
16489         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
16490         return_mode args.
16491         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
16492         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
16493         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
16494         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
16495         * config/rs6000/rs6000.c
16496         (rs6000_elf_end_indicate_exec_stack): Rename to..
16497         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
16498         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
16499         (rs6000_file_start): ..here.
16500         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
16501         file scope variables.
16502         (call_ABI_of_interest): New function.
16503         (init_cumulative_args): Set above vars when function return value
16504         is a float, vector, or small struct.
16505         (rs6000_function_arg_advance_1): Likewise for function args.
16506         (rs6000_va_start): Set rs6000_passes_float if variable arg function
16507         references float args.
16508
16509 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
16510
16511         * doc/cfg.texi: Remove "See" before @ref.
16512         * doc/invoke.texi: Likewise.
16513
16514 2011-03-05  Jason Merrill  <jason@redhat.com>
16515
16516         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
16517
16518 2011-03-05  Anthony Green  <green@moxielogic.com>
16519
16520         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
16521
16522 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
16523
16524         PR rtl-optimization/47899
16525         * cfgloopmanip.c (fix_bb_placements): Fix first argument
16526         to flow_loop_nested_p when moving the loop upward.
16527
16528 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
16529
16530         PR target/47719
16531         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
16532
16533 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
16534
16535         PR tree-optimization/47967
16536         * ipa-cp.c (build_const_val): Return NULL instead of creating
16537         VIEW_CONVERT_EXPR for mismatching sizes.
16538         (ipcp_create_replace_map): Return NULL if build_const_val failed.
16539         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
16540         give up on versioning.
16541
16542 2011-03-05  Alan Modra  <amodra@gmail.com>
16543
16544         PR target/47986
16545         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
16546         full cmodel medium/large lo_sum + high addresses.
16547
16548 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16549
16550         * config/s390/s390.c (s390_decompose_address): Reject non-literal
16551         pool references in UNSPEC_LTREL_OFFSET.
16552
16553 2011-03-04  Jan Hubicka  <jh@suse.cz>
16554
16555         PR lto/47497
16556         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
16557         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
16558         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
16559         Add node pointers.
16560         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
16561         cgraph_add_thunk): Add node pointers.
16562         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
16563         associated to right node.
16564         (input_node): Update use of cgraph_same_body_alias
16565         and cgraph_add_thunk.
16566
16567 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
16568
16569         * config/i386/i386.opt (mprefer-avx128): New flag.
16570         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
16571         modes when the flag -mprefer-avx128 is on.
16572
16573 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
16574
16575         * dwarf2out.c (compare_loc_operands): Fix address handling.
16576
16577 2011-03-04  Alan Modra  <amodra@gmail.com>
16578
16579         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
16580
16581 2011-03-04  Richard Guenther  <rguenther@suse.de>
16582
16583         PR middle-end/47968
16584         * expmed.c (extract_bit_field_1): Prefer vector modes that
16585         vec_extract patterns can handle.
16586
16587 2011-03-04  Richard Guenther  <rguenther@suse.de>
16588
16589         PR middle-end/47975
16590         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
16591
16592 2011-03-04  Richard Henderson  <rth@redhat.com>
16593
16594         * explow.c (emit_stack_save): Remove 'after' parameter.
16595         (emit_stack_restore): Likewise.
16596         * expr.h: Update to match.
16597         * builtins.c, calls.c, stmt.c: Likewise.
16598         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
16599         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
16600         * function.c (expand_function_end): Insert the emit_stack_save
16601         sequence before parm_birth_insn instead of after.
16602
16603 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
16604
16605         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
16606         (ssse3_pmaddubsw128): Ditto.
16607         (ssse3_pmaddubsw): Ditto.
16608
16609 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
16610
16611         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
16612
16613 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
16614
16615         PR c/47963
16616         * gimplify.c (omp_add_variable): Only call omp_notice_variable
16617         on TYPE_SIZE_UNIT if it is a DECL.
16618
16619         PR debug/47283
16620         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
16621         first operand is not is_gimple_mem_ref_addr, try to fold it.
16622         If the operand still isn't is_gimple_mem_ref_addr, clear
16623         MEM_EXPR on op0.
16624
16625 2011-03-03  Richard Guenther  <rguenther@suse.de>
16626
16627         PR middle-end/47283
16628         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
16629         match comment.
16630         (refs_may_alias_p_1): For release branches return true if
16631         we are confused by our input.
16632
16633 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16634
16635         * config/s390/s390.c (s390_function_value): Rename to ...
16636         (s390_function_and_libcall_value): ... this.
16637         (s390_function_value): New function.
16638         (s390_libcall_value): New function.
16639         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
16640         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
16641         target macro definitions.
16642         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
16643
16644 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
16645
16646         * config/i386/freebsd64.h (CC1_SPEC): Define.
16647         * config/i386/linux64.h (CC1_SPEC): Define.
16648         * config/i386/x86-64.h (CC1_SPEC): Don't define.
16649
16650 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
16651
16652         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16653         Remove.
16654         * config/stormy16/stormy16.c: Include reload.h.
16655         (xstormy16_memory_move_cost): New function.
16656         (TARGET_MEMORY_MOVE_COST): Define.
16657
16658 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
16659
16660         PR rtl-optimization/47925
16661         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
16662         with side effects.  Remove the more-specific check for volatile asms.
16663
16664 2011-03-02  Alan Modra  <amodra@gmail.com>
16665
16666         PR target/47935
16667         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
16668         toc relative addresses for valid offsets.
16669
16670 2011-03-01  Richard Guenther  <rguenther@suse.de>
16671
16672         PR tree-optimization/47890
16673         * tree-vect-loop.c (get_initial_def_for_induction): Set
16674         related stmt properly.
16675
16676 2011-03-01  Richard Guenther  <rguenther@suse.de>
16677
16678         PR lto/47924
16679         * lto-streamer.c (lto_record_common_node): Also register
16680         the canonical type.
16681
16682 2011-03-01  Richard Guenther  <rguenther@suse.de>
16683
16684         PR lto/46911
16685         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
16686         Do not stream DECL_ABSTRACT_ORIGIN.
16687         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
16688         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
16689         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
16690         Do not stream DECL_ABSTRACT_ORIGIN.
16691         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
16692         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
16693
16694 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
16695
16696         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
16697         FUNCTION_VALUE_REGNO_P): Remove.
16698         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
16699         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
16700         Add 'outgoing' argument.
16701         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
16702         function.
16703         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16704         TARGET_FUNCTION_VALUE_REGNO_P): Define.
16705
16706 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
16707
16708         PR debug/28047
16709         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
16710         (lookup_filename): Likewise.
16711         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
16712
16713 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
16714             Jakub Jelinek  <jakub@redhat.com>
16715
16716         PR middle-end/47893
16717         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
16718         (assign_stack_local_1): Change last argument type to int.
16719         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
16720         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
16721         don't record padding space into frame_space_list nor use those areas.
16722         (assign_stack_local): Adjust caller.
16723         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
16724         of assign_stack_local, pass 0 as last argument.
16725         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
16726         callers.
16727
16728 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
16729
16730         PR debug/47283
16731         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
16732         Use target address_mode and pointer_mode hooks instead of hardcoded
16733         Pmode and ptr_mode.  Handle some simple cases of extending if
16734         POINTERS_EXTEND_UNSIGNED < 0.
16735         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
16736         Call convert_debug_memory_address.
16737         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
16738         convert_debug_memory_address.
16739
16740         PR middle-end/46790
16741         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
16742         * configure: Regenerated.
16743         * config.in: Regenerated.
16744         * varasm.c (default_function_section): Return NULL
16745         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
16746
16747 2011-02-28  Martin Jambor  <mjambor@suse.cz>
16748
16749         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
16750         the description to match the printed values.
16751
16752 2011-02-28  Richard Guenther  <rguenther@suse.de>
16753
16754         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
16755         of the copied scope tree.
16756
16757 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16758
16759         * doc/extend.texi (Function Attributes): Avoid deeply (and
16760         wrongly) nested tables.
16761
16762 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
16763
16764         PR middle-end/47903
16765         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
16766         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
16767         r isn't op0 nor op1.
16768
16769 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
16770
16771         * config/avr/avr.md: Remove magic comment for emacs.
16772
16773 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
16774
16775         PR target/45261
16776         * config/avr/avr.c (avr_option_override): Use error on bad options.
16777         (avr_help): New function.
16778         (TARGET_HELP): Define.
16779
16780 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
16781
16782         PR target/42240
16783         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
16784         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
16785
16786 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
16787
16788         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
16789         (ARM Options): Ditto.
16790         (i386 and x86-64 Options): Ditto.
16791         (RX Options): Ditto.
16792         (SPARC Options): Ditto.
16793
16794 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
16795
16796         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
16797         FreeBSD 6 and later.  Generally use cpu generic.
16798
16799 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
16800
16801         * doc/cpp.texi: Update copyright years.
16802
16803 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
16804
16805         PR target/46898
16806         * config/lm32/lm32.md (ashrsi3): Added needed variable.
16807
16808 2011-02-25  Jon Beniston  <jon@beniston.com>
16809
16810         PR target/46898
16811         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
16812         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
16813         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
16814         (lm32_block_move_inline): Add type cast to remove warning.
16815         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
16816         (gen_int_relational): Move declarations to start of function.
16817
16818 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
16819
16820         PR tree-optimization/45470
16821         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
16822         can throw internally only.
16823         * tree-vect-stmts.c (vectorizable_call): Likewise.
16824
16825 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
16826
16827         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
16828         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
16829         * config/stormy16/stormy16-protos.h
16830         (xstormy16_preferred_reload_class): Remove.
16831         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
16832         static. Change 'rclass' argument and return type to reg_class_t.
16833         (TARGET_PREFERRED_RELOAD_CLASS,
16834         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16835
16836 2011-02-24  Richard Guenther  <rguenther@suse.de>
16837
16838         * lto-streamer-in.c (input_bb): Do not find referenced vars
16839         in debug statements.
16840
16841 2011-02-23  Jason Merrill  <jason@redhat.com>
16842
16843         * common.opt (fabi-version): Document v5 and v6.
16844
16845 2011-02-23  Richard Guenther  <rguenther@suse.de>
16846
16847         PR tree-optimization/47849
16848         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
16849
16850 2011-02-23  Jie Zhang  <jie@codesourcery.com>
16851
16852         * opts-common.c (decode_cmdline_option): Print empty string
16853         argument as "" in decoded->orig_option_with_args_text.
16854         * gcc.c (execute): Print empty string argument as ""
16855         in the verbose output.
16856         (do_spec_1): Keep empty string argument.
16857
16858 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
16859
16860         * config.gcc: Declare score-* and crx-* obsolete.
16861
16862 2011-02-23  Jie Zhang  <jie@codesourcery.com>
16863
16864         PR rtl-optimization/47763
16865         * web.c (web_main): Ignore naked clobber when replacing register.
16866
16867 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
16868
16869         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
16870         Remove.
16871
16872 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
16873
16874         PR doc/47848
16875         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
16876
16877 2011-02-22  Mike Stump  <mikestump@comcast.net>
16878
16879         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
16880         assembler.
16881         * configure: Regenerate.
16882
16883 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
16884
16885         PR rtl-optimization/46002
16886         * ira-color.c (update_copy_costs): Change class intersection
16887         test to reg_class_contents[] test of 'hard_regno'.
16888
16889 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
16890
16891         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
16892         than Driver option.
16893         * config/hpux11.opt (mt): Likewise.
16894         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
16895         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
16896         * config/vax/elf.opt (mno-asm-pic): Likewise.
16897         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
16898
16899 2011-02-21  Mike Stump  <mikestump@comcast.net>
16900
16901         PR target/47822
16902         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
16903         tree so we can get save the type.
16904         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
16905         for CFString instead of trying to use past the end of the builtins.
16906         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
16907         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
16908         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
16909         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
16910         Rename to darwin_builtin_cfstring.
16911         (darwin_init_cfstring_builtins): Return the built type.
16912
16913 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
16914
16915         PR target/47840
16916         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
16917         (_mm256_insert_epi64): Use _mm_insert_epi64.
16918
16919 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
16920
16921         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16922         * config/stormy16/stormy16-protos.h
16923         (xstormy16_mode_dependent_address_p): Remove.
16924         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
16925         Make static. Change return type to bool. Change argument type to
16926         const_rtx. Remove dead code.
16927         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16928
16929 2011-02-21  Richard Guenther  <rguenther@suse.de>
16930
16931         PR lto/47820
16932         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
16933         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
16934         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
16935         TUs context.
16936         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
16937         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
16938
16939 2011-02-20  Richard Guenther  <rguenther@suse.de>
16940
16941         PR lto/47822
16942         * tree.c (free_lang_data_in_decl): Clean builtins from
16943         the TU decl BLOCK_VARS.
16944
16945 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
16946
16947         PR debug/47620
16948         PR debug/47630
16949         * haifa-sched.c (fix_tick_ready): Skip tick computation
16950         for debug insns.
16951
16952 2011-02-19  Richard Guenther  <rguenther@suse.de>
16953
16954         PR lto/47647
16955         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
16956         Remove lazy BLOCK_VARS streaming.
16957         (lto_input_ts_block_tree_pointers): Likewise.
16958         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
16959
16960 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
16961
16962         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
16963
16964 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
16965
16966         * config/i386/biarch32.h, config/i386/mach.h,
16967         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
16968
16969 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
16970
16971         PR target/47800
16972         * config/i386/i386.md (peephole2 for shift and plus): Use
16973         operands[1] original mode in the first insn.
16974
16975 2011-02-18  Mike Stump  <mikestump@comcast.net>
16976
16977         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
16978
16979 2011-02-18  Jan Hubicka  <jh@suse.cz>
16980
16981         PR middle-end/47788
16982         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
16983         to zero when the function is not inlinable at all.
16984
16985 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16986
16987         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
16988         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16989         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
16990         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
16991         * config/pa/t-pa64: Likewise.
16992         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
16993
16994 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
16995
16996         PR driver/47787
16997         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
16998
16999 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17000
17001         PR target/47792
17002         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
17003
17004 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
17005
17006         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
17007         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
17008         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
17009         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
17010         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
17011         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
17012         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
17013         m32r_load_postinc_p, m32r_store_preinc_predec_p,
17014         m32r_legitimate_address_p): New functions.
17015         * config/m32r/constraints.md (constraint "S"): Don't use
17016         STORE_PREINC_PREDEC_P.
17017         (constraint "U"): Don't use LOAD_POSTINC_P.
17018
17019 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
17020
17021         PR rtl-optimization/46178
17022         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
17023         compute ira_hard_regno_cover_class[].
17024
17025 2011-02-18  Richard Guenther  <rguenther@suse.de>
17026
17027         PR lto/47798
17028         * lto-streamer.h (lto_global_var_decls): Declare.
17029         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
17030         statics for global var processing.
17031
17032 2011-02-18  Richard Guenther  <rguenther@suse.de>
17033
17034         PR tree-optimization/47737
17035         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
17036         edge dominance check.
17037
17038 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
17039
17040         PR debug/47780
17041         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
17042         avoid invalid rtx sharing.
17043
17044 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
17045
17046         * doc/cpp.texi (Obsolete Features): Add background on the
17047         origin of assertions.
17048
17049 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
17050
17051         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
17052         objc_abi == 2.
17053         * config/darwin.c (output_objc_section_asm_op): Added support for
17054         ABI v1 and v2.
17055         (is_objc_metadata): New.
17056         (darwin_objc2_section): New.
17057         (darwin_objc1_section): New.
17058         (machopic_select_section): Added support for ABI v1 and v2.
17059         (darwin_emit_objc_zeroed): New.
17060         (darwin_output_aligned_bss): Detect objc metadata and treat it
17061         appropriately.
17062         (darwin_asm_output_aligned_decl_common): Same.
17063         (darwin_asm_output_aligned_decl_local): Same.
17064         * config/darwin-sections.def: Updated for ABI v1 and v2.
17065         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
17066         compiling Objective-C code for the NeXT runtime, default to using
17067         ABI version 0 for 32-bit, and version 2 for 64-bit.
17068
17069 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
17070
17071         * common.opt (optimize_fast): New Variable.
17072         * opts.c (default_options_optimization): Use opts->x_optimize_fast
17073         instead of local variable ofast.
17074
17075 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
17076
17077         * doc/invoke.texi (fobjc-abi-version): Documented.
17078         (fobjc-nilcheck): Documented.
17079         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
17080         version.
17081
17082 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
17083
17084         PR driver/47390
17085         * common.opt (export-dynamic): New Driver option.
17086         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
17087
17088 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
17089
17090         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
17091
17092 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
17093             Jan Hubicka  <jh@suse.cz>
17094
17095         PR debug/47106
17096         PR debug/47402
17097         * cfgexpand.c (account_used_vars_for_block): Remove.
17098         (estimated_stack_frame_size): Use referenced vars.
17099         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
17100         that were referenced in the original function.  Test src_fn
17101         rather than cfun.  Drop redundant get_var_ann.
17102         (setup_one_parameter): Drop redundant get_var_ann.
17103         (declare_return_variable): Likewise.
17104         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
17105         (copy_arguments_for_versioning): Drop redundant get_var_ann.
17106         * ipa-inline.c (compute_inline_parameters): Do not compute
17107         disregard_inline_limits here.
17108         (compute_inlinable_for_current, pass_inlinable): New.
17109         (pass_inline_parameters): Require PROP_referenced_vars.
17110         * cgraphunit.c (cgraph_process_new_functions): Don't run
17111         compute_inline_parameters explicitly unless function is in SSA form.
17112         (cgraph_analyze_function): Set .disregard_inline_limits.
17113         * tree-sra.c (convert_callers): Compute inliner parameters
17114         only for functions already in SSA form.
17115
17116 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
17117
17118         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
17119         -mlittle-endian-data.
17120
17121 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
17122
17123         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
17124         -mno-fpu, not -fpu and -no-fpu.
17125         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
17126         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
17127
17128 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
17129
17130         PR target/43653
17131         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
17132         input reload with PLUS RTX.
17133
17134 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
17135
17136         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
17137         of InverseVar(MDMX).
17138
17139 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
17140
17141         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
17142         --m4-340.
17143
17144 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
17145
17146         * config/mn10300/mn10300.opt (mno-crt0): New.
17147
17148 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
17149
17150         * config/m68k/uclinux.opt (static-libc): New Driver option.
17151
17152 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
17153
17154         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
17155
17156 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
17157
17158         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
17159         %{muser-extend-enabled}.
17160
17161 2011-02-16  Richard Guenther  <rguenther@suse.de>
17162
17163         PR tree-optimization/47738
17164         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
17165         the TODO from tree_predictive_commoning.
17166
17167 2011-02-15  Jeff Law  <law@redhat.com>
17168
17169         Revert
17170         2011-01-25  Jeff Law  <law@redhat.com>
17171
17172         PR rtl-optimization/37273
17173         * ira-costs.c (scan_one_insn): Detect constants living in memory and
17174         handle them like argument loads from stack slots.  Do not double
17175         count memory for memory constants and argument loads from stack slots.
17176
17177 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
17178
17179         PR middle-end/47725
17180         * combine.c (cant_combine_insn_p): Revert the last change.
17181
17182 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
17183
17184         PR target/47755
17185         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
17186         mode for vector constants.  Remove code that checks for TImode.
17187
17188 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
17189
17190         PR debug/47106
17191         PR debug/47402
17192         * cgraph.h (compute_inline_parameters): Return void.
17193         * ipa-inline.c (compute_inline_parameters): Adjust.
17194
17195 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
17196
17197         PR debug/47106
17198         PR debug/47402
17199         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
17200         rather than decl.
17201         * cfgexpand.c (estimated_stack_frame_size): Likewise.
17202         * ipa-inline.c (compute_inline_parameters): Adjust.
17203
17204 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
17205
17206         PR debug/47106
17207         PR debug/47402
17208         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
17209         Adjust all users.  Pass FN to...
17210         * tree-flow-inline.h (first_referenced_var): ... this.  Add
17211         fn argument.
17212         * ipa-struct-reorg.c: Adjust.
17213         * tree-dfa.c: Adjust.
17214         * tree-into-ssa.c: Adjust.
17215         * tree-sra.c: Adjust.
17216         * tree-ssa-alias.c: Adjust.
17217         * tree-ssa-live.c: Adjust.
17218         * tree-ssa.c: Adjust.
17219         * tree-ssanames.c: Adjust.
17220         * tree-tailcall.c: Adjust.
17221
17222 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
17223
17224         PR debug/47106
17225         PR debug/47402
17226         * tree-flow.h (referenced_var_lookup): Add fn parameter.
17227         Adjust all callers.
17228         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
17229         * tree-flow-inline.h: Adjust.
17230         * gimple-pretty-print.c: Adjust.
17231         * tree-into-ssa.c: Adjust.
17232         * tree-ssa.c: Adjust.
17233         * cfgexpand.c: Adjust.
17234
17235 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
17236
17237         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
17238         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17239         (EXTRA_CONSTRAINT): Delete.
17240         * config/iq2000/constraints.md: New file.
17241         * config/iq2000/iq2000.md: Include it.
17242         (define_insn ""): Delete.
17243         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
17244         unsupported constraint letters from patterns.
17245         (call_value, call_value_internal1): Likewise.
17246         (call_value_multiple_internal1): Likewise.
17247
17248 2011-02-15  Nick Clifton  <nickc@redhat.com>
17249
17250         * config/mn10300/mn10300.c: Include tm-constrs.h.
17251         (struct liw_data): New data structure describing an LIW candidate
17252         instruction.
17253         (extract_bundle): Use struct liw_data.  Allow small integer
17254         operands for some instructions.
17255         (check_liw_constraints): Use struct liw_data.  Remove swapped
17256         parameter.  Add comments describing the checks.  Fix bug when
17257         assigning the source of liw1 to the source of liw2.
17258         (liw_candidate): Delete.  Code moved into extract_bundle.
17259         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
17260         before swapping.
17261         * config/mn10300/predicates.md (liw_operand): New predicate.
17262         Allows registers and small integer constants.
17263         * config/mn10300/constraints.md (O): New constraint.  Accetps
17264         integers in the range -8 to +7 inclusive.
17265         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
17266         for moving a small integer into a register.  Give this alternative
17267         LIW attributes.
17268         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
17269         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
17270         using the J,K,L and M constraints,
17271         (liw): Remove SI mode on second operands to allow for HI and QI
17272         mode values.
17273         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
17274         instruction.
17275
17276 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
17277
17278         PR middle-end/47725
17279         * combine.c (cant_combine_insn_p): Check zero/sign extended
17280         hard registers.
17281
17282 2011-02-15  Richard Guenther  <rguenther@suse.de>
17283
17284         PR tree-optimization/47743
17285         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
17286         for a non-type-compatible VN lookup bail out.
17287
17288 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
17289
17290         * config/fr30/constraints.md: New file.
17291         * config/fr30/fr30.md: Include it.
17292         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
17293         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17294         (EXTRA_CONSTRAINT): Delete.
17295
17296 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
17297
17298         * config/frv/constraints.md: New file.
17299         * config/frv/predicates.md: Include it.
17300         * config/frv/frv.c (reg_class_from_letter): Delete.
17301         (frv_option_override): Don't initialize it.
17302         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
17303         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
17304         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
17305         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
17306         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
17307         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17308         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
17309         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
17310         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
17311         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
17312         (REG_CLASS_FROM_CONSTRAINT): Delete.
17313
17314 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
17315
17316         PR middle-end/47581
17317         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
17318         if frame size is 0 in a leaf function.
17319
17320 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17321
17322         PR pch/14940
17323         * config/alpha/host-osf.c: New file.
17324         * config/alpha/x-osf: New file.
17325         * config.host (alpha*-dec-osf*): Use it.
17326
17327 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
17328
17329         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
17330         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
17331         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
17332         (rx_mode_dependent_address_p): ...this. Make static. Change argument
17333         type to const_rtx.
17334         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
17335
17336 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
17337
17338         * config/stormy16/constraints.md: New file.
17339         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
17340         Use satisfies_constraint_Q and satisfies_constraint_R.
17341         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
17342         Delete.
17343         (xstormy16_legitiamte_address_p): Declare.
17344         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
17345         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17346         (EXTRA_CONSTRAINT): Delete.
17347         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
17348         Un-staticize.
17349         (xstormy16_extra_constraint_p): Delete.
17350
17351 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
17352
17353         PR tree-optimization/46494
17354         * loop-unroll.c (split_edge_and_insert): Adjust comment.
17355         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
17356         (pass_rtl_loop_done): Add TODO_verify_flow.
17357         * fwprop.c (pass_rtl_fwprop): Likewise.
17358         * modulo-sched.c (pass_sms): Likewise.
17359         * tree-ssa-dom.c (pass_dominator): Likewise.
17360         * tree-ssa-loop-ch.c (pass_ch): Likewise.
17361         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
17362         (pass_tree_loop_done): Likewise.
17363         * tree-ssa-pre.c (execute_pre): Likewise.
17364         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
17365         * tree-ssa-sink.c (pass_sink_code): Likewise.
17366         * tree-vrp.c (pass_vrp): Likewise.
17367
17368 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
17369
17370         * config/v850/constraints.md: New file.
17371         * config/v850/v850.md: Include it.
17372         * config/v850/predicates.md (reg_or_0_operand): Use
17373         satisfies_constraint_G.
17374         (special_symbolref_operand): Use satisfies_constraint_K.
17375         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
17376         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
17377         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
17378         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
17379         (EXTRA_CONSTRAINT): Delete.
17380         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
17381         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
17382         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
17383
17384 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
17385
17386         PR target/47696
17387         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
17388         description.
17389
17390 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
17391
17392         * config/mcore/constraints.md: New file.
17393         * config/mcore/mcore.md: Include it.
17394         * config/mcore/mcore.c (reg_class_from_letter): Delete.
17395         * config/mcore/mcore.h (reg_class_from_letter): Delete.
17396         (REG_CLASS_FROM_LETTER): Delete.
17397         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
17398         insn_const_int_ok_for_constraint.
17399         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
17400         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
17401         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17402         (EXTRA_CONSTRAINT): Delete.
17403
17404 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17405
17406         PR ada/41929
17407         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
17408         (IS_SIGHANDLER): Define.
17409         (sparc64_is_sighandler): New function, split off from
17410         sparc64_fallback_frame_state.
17411         (sparc_is_sighandler): New function, split off from
17412         sparc_fallback_frame_state.
17413         (sparc64_fallback_frame_state): Merge with ...
17414         (sparc_fallback_frame_state): ... this into ...
17415         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
17416         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
17417         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
17418         stack instead of hardcoded offsets.
17419
17420 2011-02-14  Andriy Gapon  <avg@freebsd.org>
17421
17422         PR target/45808
17423         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
17424
17425 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17426
17427         * configure: Regenerate.
17428
17429 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
17430
17431         PR driver/45731
17432         * gcc.c (asm_options): Correct spec matching --target-help.
17433
17434 2011-02-12  Martin Jambor  <mjambor@suse.cz>
17435
17436         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
17437         to gimple call error.
17438
17439 2011-02-12  Mike Stump  <mikestump@comcast.net>
17440
17441         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
17442         comments in backslash regions.
17443
17444 2011-02-12  Mike Stump  <mikestump@comcast.net>
17445             Jakub Jelinek  <jakub@redhat.com>
17446             Iain Sandoe  <iains@gcc.gnu.org>
17447
17448         PR target/47324
17449         * dwarf2out.c (output_cfa_loc): When required, apply the
17450         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
17451         (output_loc_sequence): Likewise.
17452         (output_loc_operands_raw): Likewise.
17453         (output_loc_sequence_raw): Likewise.
17454         (output_cfa_loc): Likewise.
17455         (output_loc_list): Suppress register number adjustment when
17456         calling output_loc_sequence()
17457         (output_die): Likewise.
17458
17459 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
17460
17461         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
17462         Remove macros.
17463         * config/xtensa/xtensa.c (xtensa_register_move_cost,
17464         xtensa_memory_move_cost): New functions.
17465         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
17466
17467 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
17468
17469         PR lto/47225
17470         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
17471         in the current directory.
17472         * configure: Rebuilt.
17473
17474 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
17475
17476         * config/darwin.c (darwin_override_options): Add a hunk missed
17477         from the commit of r168571.  Trim comment line lengths and
17478         correct indents of the preceding block.
17479
17480 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
17481
17482         * gcc.c (driver_handle_option): Concatenate the argument to -F with
17483         the switch.
17484
17485 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
17486
17487         * common.opt (nostartfiles): New Driver option.
17488
17489 2011-02-11  Xinliang David Li  <davidxl@google.com>
17490
17491         PR tree-optimization/47707
17492         * tree-chrec.c (convert_affine_scev): Keep type precision.
17493
17494 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
17495
17496         PR tree-optimization/47420
17497         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
17498
17499 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
17500
17501         PR rtl-optimization/47614
17502         * rtl.h (check_for_inc_dec): Declare.
17503         * dse.c (check_for_inc_dec): Externalize...
17504         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
17505         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
17506
17507 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
17508
17509         PR driver/47678
17510         * gcc.c (main): Do not compile inputs if there were errors in
17511         option handling.
17512         * opts-common.c (read_cmdline_option): Check for wrong language
17513         after other error checks.
17514
17515 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
17516
17517         * cgraph.c: Fix comment typos.
17518         * cgraph.h: Likewise.
17519         * cgraphunit.c: Likewise.
17520         * ipa-cp.c: Likewise.
17521         * ipa-inline.c: Likewise.
17522         * ipa-prop.c: Likewise.
17523         * ipa-pure-const.c: Likewise.
17524         * ipa-ref.c: Likewise.
17525         * ipa-reference.c: Likewise.
17526
17527 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
17528
17529         PR debug/47684
17530         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
17531
17532 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17533
17534         PR testsuite/47400
17535         * doc/sourcebuild.texi (Require Support): Document
17536         dg-require-ascii-locale.
17537
17538 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
17539
17540         * doc/lto.texi (Write summary): Fix missing parentheses.
17541
17542 2011-02-10  DJ Delorie  <dj@redhat.com>
17543
17544         * config/m32c/m32c.c (m32c_option_override): Disable
17545         -fcombine-stack-adjustments until flag value tracking and compare
17546         optimization can be rewritten.
17547
17548 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
17549
17550         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
17551         PROCESSOR_POWER7.
17552         (PROCESSOR_DEFAULT64): Likewise.
17553
17554 2011-02-10  Richard Henderson  <rth@redhat.com>
17555
17556         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
17557         change from 2011-02-03.
17558         * config/rx/rx.c (flags_from_code): Likewise.
17559         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
17560         is valid, n/pz otherwise.
17561         (rx_select_cc_mode): Return CCmode if Y is not zero.
17562
17563 2011-02-10  Richard Guenther  <rguenther@suse.de>
17564
17565         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
17566
17567 2011-02-10  Richard Guenther  <rguenther@suse.de>
17568
17569         PR tree-optimization/47677
17570         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
17571
17572 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
17573
17574         PR target/47665
17575         * combine.c (make_compound_operation): Only change shifts into
17576         multiplication for SCALAR_INT_MODE_P.
17577
17578 2011-02-10  Jie Zhang  <jie@codesourcery.com>
17579
17580         PR testsuite/47622
17581         Revert
17582         2011-02-05  Jie Zhang  <jie@codesourcery.com>
17583         PR debug/42631
17584         * web.c (entry_register): Don't clobber the number of the
17585         first uninitialized reference in used[].
17586
17587 2011-02-09  Richard Guenther  <rguenther@suse.de>
17588
17589         PR tree-optimization/47664
17590         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
17591         all edges again.
17592
17593 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
17594
17595         PR target/46481
17596         PR target/47032
17597         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
17598         PROCESSOR_POWER7.
17599         (PROCESSOR_DEFAULT64): Same.
17600         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
17601
17602 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17603
17604         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
17605
17606 2011-02-09  Martin Jambor  <mjambor@suse.cz>
17607
17608         PR middle-end/45505
17609         * tree-sra.c (struct access): New flags grp_scalar_read and
17610         grp_scalar_write.  Changed description of assignment read and write
17611         flags.
17612         (dump_access): Dump new flags, reorder all of them.
17613         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
17614         to detect multiple scalar reads.
17615         (analyze_access_subtree): Use the new scalar read write flags instead
17616         of the old flags.  Adjusted comments.
17617
17618 2011-02-08  DJ Delorie  <dj@redhat.com>
17619
17620         PR target/47548
17621         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
17622         patterns.
17623
17624 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
17625
17626         * config/m68k/uclinux.opt: New.
17627         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
17628
17629 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
17630
17631         * config/cris/elf.opt (sim): New Driver option.
17632
17633 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
17634
17635         * config/xtensa/elf.opt: New.
17636         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
17637
17638 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
17639
17640         * config/vax/elf.opt: New.
17641         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
17642
17643 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
17644
17645         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
17646
17647 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
17648
17649         * config/gnu-user.opt: New.
17650         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
17651         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
17652         *-*-uclinux*): Use gnu-user.opt.
17653
17654 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
17655
17656         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
17657         * config/i386/gnu.h (CPP_SPEC): Likewise.
17658
17659 2011-02-08  Ian Lance Taylor  <iant@google.com>
17660
17661         * common.opt (fcx-limited-range): Add SetByCombined flag.
17662         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
17663         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
17664         (fassociative-math, freciprocal-math): Likewise.
17665         (funsafe-math-optimizations): Likewise.
17666         * opth-gen.awk: Handle SetByCombined.
17667         * optc-gen.awk: Likewise.
17668         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
17669         (set_unsafe_math_optimizations_flags): Likewise.
17670         * doc/options.texi (Option properties): Document SetByCombined.
17671
17672 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
17673
17674         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
17675         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
17676         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
17677         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
17678         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
17679
17680 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
17681
17682         PR tree-optimization/46834
17683         PR tree-optimization/46994
17684         PR tree-optimization/46995
17685         * graphite-sese-to-poly.c (used_outside_reduction): New.
17686         (detect_commutative_reduction): Call used_outside_reduction.
17687         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
17688         translate_scalar_reduction_to_array only when at least one
17689         loop-phi/close-phi tuple has been detected.
17690
17691 2011-02-08  Richard Guenther  <rguenther@suse.de>
17692
17693         PR middle-end/47639
17694         * tree-vect-generic.c (expand_vector_operations_1): Update
17695         stmts here ...
17696         (expand_vector_operations): ... not here.  Cleanup EH info
17697         and the CFG if required.
17698
17699 2011-02-08  Richard Guenther  <rguenther@suse.de>
17700
17701         PR tree-optimization/47641
17702         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
17703         require type compatibility.
17704
17705 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17706
17707         * gimple-low.c (lower_function_body): Don't remove the location of
17708         the return statement here.
17709         (lower_gimple_return): Do it here instead but only if the return
17710         statement is actually used twice.
17711
17712 2011-02-08  Richard Guenther  <rguenther@suse.de>
17713
17714         PR tree-optimization/47632
17715         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
17716         unused up_to_stmt parameter, return whether cfg-cleanup is
17717         necessary, remove EH info properly.
17718         (forward_propagate_into_gimple_cond): Adjust caller.
17719         (forward_propagate_into_cond): Likewise.
17720         (forward_propagate_comparison): Likewise.
17721         (tree_ssa_forward_propagate_single_use_vars): Make
17722         forward_propagate_comparison case similar to the two others.
17723
17724 2011-02-08  Nick Clifton  <nickc@redhat.com>
17725
17726         * config/mn10300/mn10300.opt (mliw): New command line option.
17727         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
17728         (liw_bundling): New automaton.
17729         (liw): New attribute.
17730         (liw_op): New attribute.
17731         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
17732         (movsi_internal): Add LIW attributes.
17733         (andsi3): Likewise.
17734         (iorsi3): Likewise.
17735         (xorsi3): Likewise.
17736         (addsi3): Separate register and immediate alternatives.
17737         Add LIW attributes.
17738         (subsi3): Likewise.
17739         (cmpsi): Likewise.
17740         (aslsi3): Likewise.
17741         (lshrsi3): Likewise.
17742         (ashrsi3): Likewise.
17743         (liw): New pattern.
17744         * config/mn10300/mn10300.c (liw_op_names): New
17745         (mn10300_print_operand): Handle 'W' operand descriptor.
17746         (extract_bundle): New function.
17747         (check_liw_constraints): New function.
17748         (liw_candidate): New function.
17749         (mn10300_bundle_liw): New function.
17750         (mn10300_reorg): New function.
17751         (TARGET_MACHINE_DEPENDENT_REORG): Define.
17752         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
17753         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
17754         __LIW__ or __NO_LIW__.
17755         * doc/invoke.texi: Describe the -mliw command line option.
17756
17757 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17758
17759         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
17760         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
17761         pthread_mutex_unlock): Remove.
17762         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
17763         * config/pa/t-pa64: Likewise.
17764         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
17765         shared libc if not linking against libpthread.
17766         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
17767
17768 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
17769
17770         PR target/47558
17771         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
17772         on 10.6 and later to ensure that we always use the unwinder from
17773         the system.  Only add -no_compact_unwind when tarteting darwin
17774         10.6 or later.
17775
17776 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
17777
17778         PR target/46997
17779         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
17780         (vec_interleave_lowv2sf): Ditto.
17781         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
17782         (vec_extract_oddv2sf): Ditto.
17783
17784 2011-02-07  Mike Stump  <mikestump@comcast.net>
17785
17786         PR target/42333
17787         Add __ieee_divdc3 entry point.
17788         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
17789         entry point.
17790         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
17791         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
17792         * config/darwin.c (darwin_rename_builtins): Add.
17793         * config/darwin-protos.h (darwin_rename_builtins): Add.
17794
17795 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
17796
17797         PR target/47636
17798         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
17799         for the condition.
17800
17801 2011-02-07  Mike Stump  <mikestump@comcast.net>
17802
17803         * config/darwin.opt (mmacosx-version-min): Update default OS version.
17804
17805 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
17806
17807         PR target/47534
17808         * config/avr/libgcc.S (exit): Move .endfunc
17809
17810 2011-02-07  Richard Guenther  <rguenther@suse.de>
17811
17812         PR tree-optimization/47615
17813         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
17814         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
17815         (run_scc_vn): Initialize it.
17816         (visit_reference_op_load): Use it.
17817         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
17818
17819 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17820
17821         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
17822         DImode trapping arithmetic libfuncs.
17823
17824 2011-02-07  Richard Guenther  <rguenther@suse.de>
17825
17826         PR tree-optimization/47621
17827         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
17828         two duplicates ...
17829         (execute_update_addresses_taken): ... here.  Make it more
17830         conservative in what we accept.
17831
17832 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
17833
17834         * config/sparc/freebsd.h (ASM_SPEC): Define.
17835         * config/sparc/vxworks.h (ASM_SPEC): Define.
17836
17837 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
17838
17839         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
17840
17841 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
17842
17843         * doc/invoke.texi: Remove reference to compiler internals from
17844         user documentation.
17845
17846         * reg-notes.def: Remove REG_VALUE_PROFILE.
17847         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
17848
17849 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
17850
17851         PR middle-end/47610
17852         * varasm.c (default_section_type_flags): If decl is NULL,
17853         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
17854
17855 2011-02-05  Jie Zhang  <jie@codesourcery.com>
17856
17857         PR debug/42631
17858         * web.c (entry_register): Don't clobber the number of the
17859         first uninitialized reference in used[].
17860
17861 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
17862
17863         PR tree-optimization/46194
17864         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
17865         (build_classic_dist_vector_1): Do not represent classic distance
17866         vectors when the access functions are variating in different loops.
17867
17868 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
17869
17870         * config/mips/iris6.opt: New.
17871         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
17872
17873 2011-02-04  Richard Henderson  <rth@redhat.com>
17874             Steve Ellcey  <sje@cup.hp.com>
17875
17876         PR target/46997
17877         * config/ia64/predicates.md (mux1_brcst_element): New.
17878         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
17879         * config/ia64/ia64.c (ia64_unpack_assemble): New.
17880         (ia64_unpack_sign): New.
17881         (ia64_expand_unpack): Rewrite using new routines.
17882         (ia64_expand_widen_sum): Ditto.
17883         (ia64_expand_dot_prod_v8qi): Ditto.
17884         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
17885         routines, add endian check.
17886         (pmpy2_even): Rename from pmpy2_r, add endian check.
17887         (pmpy2_odd): Rename from pmpy2_l, add endian check.
17888         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
17889         (vec_widen_smult_hi_v4hi): Ditto.
17890         (vec_widen_umult_lo_v4hi): Ditto.
17891         (vec_widen_umult_hi_v4hi): Ditto.
17892         (mulv2si3): Change endian checks.
17893         (sdot_prodv4hi): Rewrite with new calls.
17894         (udot_prodv4hi): New.
17895         (vec_pack_ssat_v4hi): Add endian check.
17896         (vec_pack_usat_v4hi): Ditto.
17897         (vec_pack_ssat_v2si): Ditto.
17898         (max1_even): Rename from max1_r, add endian check.
17899         (max1_odd): Rename from max1_l, add endian check.
17900         (*mux1_rev): Format change.
17901         (*mux1_mix): Ditto.
17902         (*mux1_shuf): Ditto.
17903         (*mux1_alt): Ditto.
17904         (*mux1_brcst_v8qi): Use new predicate.
17905         (vec_extract_evenv8qi): Remove endian check.
17906         (vec_extract_oddv8qi): Ditto.
17907         (vec_interleave_lowv4hi): Format change.
17908         (vec_interleave_highv4hi): Ditto.
17909         (mix2_even): Rename from mix2_r, add endian check.
17910         (mix2_odd): Rename from mux2_l, add endian check.
17911         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
17912         (vec_extract_evenodd_helper): Format change.
17913         (vec_extract_evenv4hi): Remove endian check.
17914         (vec_extract_oddv4hi): Remove endian check.
17915         (vec_interleave_lowv2si): Format change.
17916         (vec_interleave_highv2si): Format change.
17917         (vec_initv2si): Remove endian check.
17918         (vecinit_v2si): Add endian check.
17919         (reduc_splus_v2sf): Add endian check.
17920         (reduc_smax_v2sf): Ditto.
17921         (reduc_smin_v2sf): Ditto.
17922         (vec_initv2sf): Remove endian check.
17923         (fpack): Add endian check.
17924         (fswap): Add endian check.
17925         (vec_interleave_highv2sf): Add endian check.
17926         (vec_interleave_lowv2sf): Add endian check.
17927         (fmix_lr): Add endian check.
17928         (vec_setv2sf): Format change.
17929         (*vec_extractv2sf_0_be): Use shift to extract operand.
17930         (*vec_extractv2sf_1_be): New.
17931         (vec_pack_trunc_v4hi): Add endian check.
17932         (vec_pack_trunc_v2si): Format change.
17933
17934 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
17935
17936         PR inline-asm/23200
17937         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
17938         do bb, locus and block comparison and disallow loads if it is not set.
17939         (stmt_is_replaceable_p): New function.
17940         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
17941         callers.
17942         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
17943         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
17944         SSA_NAME_DEF_STMT.
17945         * tree-flow.h (stmt_is_replaceable_p): New prototype.
17946
17947 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
17948
17949         * config/rs6000/xilinx.opt: New.
17950         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
17951
17952 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
17953
17954         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
17955
17956 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
17957
17958         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
17959         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
17960         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
17961         secondary_reload_info, xtensa_secondary_reload): Remove.
17962         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
17963         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
17964         (xtensa_preferred_reload_class): Make static. Change return and
17965         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
17966         Use CONST_DOUBLE_P predicate.
17967         (xtensa_preferred_output_reload_class): New function.
17968         (xtensa_secondary_reload): Make static.
17969
17970 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
17971
17972         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
17973         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
17974         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
17975
17976 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
17977
17978         PR middle-end/31490
17979         * output.h (SECTION_RELRO): Define.
17980         (SECTION_MACH_DEP): Adjust.
17981         (get_variable_section): New prototype.
17982         * varpool.c (varpool_finalize_named_section_flags): New function.
17983         (varpool_assemble_pending_decls): Call it.
17984         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
17985         * cgraphunit.c (cgraph_output_in_order): Call
17986         varpool_finalize_named_section_flags.
17987         * varasm.c (get_section): Allow section flags conflicts between
17988         relro and read-only sections if the section hasn't been declared yet.
17989         Set SECTION_OVERRIDE after diagnosing section type conflict.
17990         (get_variable_section): No longer static.
17991         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
17992         readonly sections that need relocations.
17993         (decl_readonly_section_1): New function.
17994         (decl_readonly_section): Use it.
17995
17996         Revert:
17997         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
17998                     Steve Ellcey  <sje@cup.hp.com>
17999
18000         PR middle-end/31490
18001         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
18002         if section attribute used.
18003
18004 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
18005
18006         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
18007         * config/darwin.c (SECTION_NO_ANCHOR): Define.
18008         (darwin_init_sections): Remove assertion.
18009
18010 2011-02-03  Nick Clifton  <nickc@redhat.com>
18011
18012         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
18013         lt and ge.
18014         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
18015         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
18016         instead of "n" and "pz".
18017         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
18018         CC_FLAG_S.
18019
18020 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
18021
18022         PR target/47312
18023         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
18024         fma, expand FMA_EXPR as fma{,f,l} call.
18025
18026         PR lto/47274
18027         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
18028         copy them into a unsigned char variable and pass address of it to
18029         lto_output_data_stream.
18030
18031         PR target/47564
18032         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
18033         around backend_init_target and lang_dependent_init_target calls.
18034         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
18035         (verify_cgraph_node): Don't call set_cfun here.  Use
18036         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
18037         Set error_found for incorrectly represented calls to thunks.
18038
18039 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
18040
18041         PR debug/43092
18042         PR rtl-optimization/43494
18043         * rtl.h (for_each_inc_dec_fn): New type.
18044         (for_each_inc_dec): Declare.
18045         * rtlanal.c (struct for_each_inc_dec_ops): New type.
18046         (for_each_inc_dec_find_inc_dec): New fn.
18047         (for_each_inc_dec_find_mem): New fn.
18048         (for_each_inc_dec): New fn.
18049         * dse.c (struct insn_size): Remove.
18050         (replace_inc_dec, replace_inc_dec_mem): Remove.
18051         (emit_inc_dec_insn_before): New fn.
18052         (check_for_inc_dec): Use it, along with for_each_inc_dec.
18053         (canon_address): Pass mem modes to cselib_lookup.
18054         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
18055         (cselib_lookup_from_insn): Likewise.
18056         (cselib_subst_to_values): Likewise.
18057         * cselib.c (find_slot_memmode): New var.
18058         (cselib_find_slot): New fn.  Use it instead of
18059         htab_find_slot_with_hash everywhere.
18060         (entry_and_rtx_equal_p): Use find_slot_memmode.
18061         (autoinc_split): New fn.
18062         (rtx_equal_for_cselib_p): Rename and implement in terms of...
18063         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
18064         Deal with autoinc.  Special-case recursion into MEMs.
18065         (cselib_hash_rtx): Likewise.
18066         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
18067         address and MEM modes.
18068         (cselib_subst_to_values): Add memmode, pass it on.
18069         Deal with autoinc.
18070         (cselib_lookup): Add memmode argument, pass it on.
18071         (cselib_lookup_from_insn): Add memmode.
18072         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
18073         (struct cselib_record_autoinc_data): New.
18074         (cselib_record_autoinc_cb): New fn.
18075         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
18076         mode to cselib_lookup.  Reset autoinced REGs here instead of...
18077         (cselib_process_insn): ... here.
18078         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
18079         to cselib_lookup.
18080         (add_uses): Likewise, also to cselib_subst_to_values.
18081         (add_stores): Likewise.
18082         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
18083         cselib_subst_to_values.
18084         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
18085         * gcse.c (do_local_cprop): Adjusted.
18086         * postreload.c (reload_cse_simplify_set): Adjusted.
18087         (reload_cse_simplify_operands): Adjusted.
18088         * sel-sched-dump (debug_mem_addr_value): Pass mode.
18089
18090 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
18091
18092         PR tree-optimization/45122
18093         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
18094         unsafe assumptions when there's more than one loop exit.
18095
18096 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
18097
18098         PR target/47272
18099         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
18100         Document using vector double with the load/store builtins, and
18101         that the load/store builtins always use Altivec instructions.
18102
18103         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
18104         to use altivec memory instructions, even on VSX.
18105         (vector_altivec_store_<mode>): Ditto.
18106
18107         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
18108         function.
18109
18110         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18111         V2DF, V2DI support to load/store overloaded builtins.
18112
18113         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
18114         altivec load/store builtins for V2DF/V2DI types.
18115
18116         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
18117         set avoid indexed addresses on power6 if -maltivec.
18118         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
18119         vector_altivec_load/vector_altivec_store builtins.
18120         (altivec_expand_st_builtin): Ditto.
18121         (altivec_expand_builtin): Add VSX memory builtins.
18122         (rs6000_init_builtins): Add V2DI types to internal types.
18123         (altivec_init_builtins): Add support for V2DF/V2DI altivec
18124         load/store builtins.
18125         (rs6000_address_for_altivec): Insure memory address is appropriate
18126         for Altivec.
18127
18128         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
18129         vec_vsx_ld and vec_vsx_st.
18130         (vsx_store_<mode>): Ditto.
18131
18132         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
18133         variables to hold long long types for VSX vector memory builtins.
18134         (RS6000_BTI_unsigned_long_long): Ditto.
18135         (long_long_integer_type_internal_node): Ditti.
18136         (long_long_unsigned_type_internal_node): Ditti.
18137
18138         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
18139         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
18140         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
18141
18142         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
18143         short cuts.
18144         (vec_vsx_st): Ditto.
18145
18146 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
18147
18148         * config/pa/pa-hpux10.opt: New.
18149         * config/hpux11.opt (pthread): New Driver option.
18150         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
18151         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
18152
18153 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
18154
18155         * config/ia64/vms.opt: New.
18156         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
18157
18158 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
18159
18160         PR target/47580
18161         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
18162         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
18163         generator functions.
18164         (vsx_floatuns<VSi><mode>2): Ditto.
18165         (vsx_fix_trunc<mode><VSi>2): Ditto.
18166         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
18167
18168 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
18169
18170         * config/i386/djgpp.opt (posix): New Driver option.
18171
18172 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
18173
18174         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
18175         Move to the unsupported targets list.
18176
18177 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
18178
18179         PR rtl-optimization/47525
18180         * df-scan.c: Update copyright years.
18181         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
18182         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
18183
18184 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18185
18186         * config/i386/sysv4.h (TARGET_VERSION): Remove.
18187         (SUBTARGET_RETURN_IN_MEMORY): Remove.
18188         (ASM_OUTPUT_ASCII): Remove.
18189         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
18190
18191 2011-02-02  Jeff Law  <law@redhat.com>
18192
18193         PR middle-end/47543
18194         * reload.c (find_reloads_address): Handle reg+d address where both
18195         components are invalid by reloading the entire address.
18196
18197 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
18198             Richard Guenther  <rguenther@suse.de>
18199
18200         PR tree-optimization/40979
18201         PR bootstrap/47044
18202         * passes.c (init_optimization_passes): After LIM call copy_prop
18203         and DCE to clean up.
18204         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
18205
18206 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
18207
18208         PR tree-optimization/47576
18209         PR tree-optimization/47555
18210         * doc/invoke.texi (scev-max-expr-complexity): Documented.
18211         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
18212         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
18213         * tree-scalar-evolution.c (follow_ssa_edge): Use
18214         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
18215
18216 2011-02-02  Richard Guenther  <rguenther@suse.de>
18217
18218         PR tree-optimization/47566
18219         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
18220
18221 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
18222
18223         PR debug/47106
18224         PR debug/47402
18225         * tree-inline.c (declare_return_variable): Remove unused caller
18226         variable.
18227
18228         PR debug/47106
18229         PR debug/47402
18230         * tree-flow-inline.h (clear_is_used, is_used_p): New.
18231         * cfgexpand.c (account_used_vars_for_block): Use them.
18232         * tree-nrv.c (tree_nrv): Likewise.
18233         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
18234         (dump_scope_block): Likewise.
18235         (remove_unused_locals): Likewise.
18236
18237         PR debug/47106
18238         PR debug/47402
18239         * tree-inline.c (declare_return_variable): Add result decl to
18240         local decls only once.
18241         * gimple-low.c (record_vars_into): Mark newly-created variables
18242         as referenced.
18243
18244 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
18245
18246         PR debug/47498
18247         PR debug/47501
18248         PR debug/45136
18249         PR debug/45130
18250         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
18251         debug insns.
18252         (no_real_insns_p, schedule_block, set_priorities): Drop special
18253         treatment of boundary debug insns.
18254         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
18255         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
18256         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
18257         (BOUNDARY_DEBUG_INSN_P): Likewise.
18258         (SCHEDULE_DEBUG_INSN_P): Likewise.
18259         * sched-rgn.c (init_ready_list): Drop special treatment of
18260         boundary debug insns.
18261         * final.c (rest_of_clean_state): Clear notes' BB.
18262
18263 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
18264
18265         * config/openbsd.opt (assert=): New Driver option.
18266
18267 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
18268
18269         * config/i386/nto.opt: New.
18270         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
18271
18272 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
18273
18274         * config/i386/netware.opt: New.
18275         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
18276
18277 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
18278
18279         * config/interix.opt (posix): New Driver option.
18280
18281 2011-02-01  DJ Delorie  <dj@redhat.com>
18282
18283         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
18284
18285         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
18286         class for A0/A1.
18287
18288 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
18289
18290         PR tree-optimization/47561
18291         * toplev.c (process_options): Print the Graphite flags.  Add
18292         flag_loop_flatten to the list of options requiring Graphite.
18293
18294 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
18295
18296         * config/i386/cygming.opt (posix): New Driver option.
18297
18298 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
18299
18300         * config/arm/vxworks.opt: New.
18301         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
18302
18303 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
18304
18305         * config/alpha/elf.opt: New.
18306         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
18307         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
18308
18309 2011-02-01  Richard Guenther  <rguenther@suse.de>
18310
18311         PR tree-optimization/47559
18312         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
18313         store-motion on references that can throw.
18314
18315 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
18316
18317         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
18318         * tree-pass.h (TDF_CSELIB): New macro.
18319         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
18320         cselib_lookup): Check for it rather than for TDF_DETAILS.
18321
18322 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
18323
18324         PR driver/47547
18325         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
18326         is HOST_BIT_BUCKET.
18327
18328         * opts.c (finish_options): Don't add x_aux_base_name if it is
18329         HOST_BIT_BUCKET.
18330
18331 2011-02-01  Richard Guenther  <rguenther@suse.de>
18332
18333         PR tree-optimization/47555
18334         Revert
18335         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
18336
18337         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
18338
18339 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
18340
18341         PR gcc/46692
18342         * config/lm32/t-lm32: Add multilib for all CPU options.
18343
18344 2011-02-01  Richard Guenther  <rguenther@suse.de>
18345
18346         PR tree-optimization/47541
18347         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
18348         sure to have a field at offset zero.
18349
18350 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
18351
18352         * config/arc/arc.opt (EB, EL): New Driver options.
18353
18354 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
18355
18356         * config/alpha/osf5.opt: New.
18357         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
18358
18359 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
18360
18361         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
18362
18363 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
18364
18365         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
18366         -floop-interchange.
18367         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
18368         is an alias of -floop-interchange and that it requires the
18369         Graphite infrastructure.
18370         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
18371         flag_loop_interchange based on the value of flag_tree_loop_linear.
18372
18373 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
18374             Richard Guenther  <rguenther@suse.de>
18375
18376         PR tree-optimization/47538
18377         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
18378         type instead of r1type, except for comparisons.  For right
18379         shifts and comparisons punt if there are mismatches in
18380         sizetype vs. non-sizetype types.
18381
18382 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18383
18384         * doc/sourcebuild.texi (Effective-Target Keywords): Document
18385         avx_runtime.
18386
18387 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18388
18389         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
18390         version number.
18391         * configure: Regenerate.
18392
18393 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18394
18395         * configure.ac (gcc_cv_ld_static_option): Define.
18396         (gcc_cv_ld_dynamic_option): Define.
18397         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
18398         instead.
18399         (HAVE_LD_STATIC_DYNAMIC): Update message.
18400         (LD_STATIC_OPTION): Define.
18401         (LD_DYNAMIC_OPTION): Define.
18402         * configure: Regenerate.
18403         * config.in: Regenerate.
18404         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
18405         HAVE_LD_STATIC_DYNAMIC]: Use them.
18406
18407 2011-01-31  Nick Clifton  <nickc@redhat.com>
18408
18409         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
18410         registers inside interrupt handlers if the handler is not a leaf
18411         function.
18412
18413 2011-01-31  Nick Clifton  <nickc@redhat.com>
18414
18415         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
18416         reg_renumber returning an INVALID_REGNUM.
18417
18418 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
18419
18420         PR libgcj/44341
18421         * doc/install.texi: Document host options discarded when cross
18422         configuring target libraries.
18423
18424 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
18425
18426         Reverted:
18427         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
18428         PR debug/45136
18429         PR debug/45130
18430         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
18431         debug insns.
18432         (no_real_insns_p, schedule_block, set_priorities): Drop special
18433         treatment of boundary debug insns.
18434         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
18435         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
18436         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
18437         (BOUNDARY_DEBUG_INSN_P): Likewise.
18438         (SCHEDULE_DEBUG_INSN_P): Likewise.
18439         * sched-rgn.c (init_ready_list): Drop special treatment of
18440         boundary debug insns.
18441         * final.c (rest_of_clean-state): Clear notes' BB.
18442
18443 2011-01-31  Alan Modra  <amodra@gmail.com>
18444
18445         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
18446         toc relative expressions as we do in print_operand_address.
18447
18448 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
18449
18450         * doc/extend.texi: Follow spelling conventions.
18451         * doc/invoke.texi: Fix a typo.
18452
18453 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
18454
18455         * config/hpux11.opt: New.
18456         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
18457         ia64*-*-hpux*): Use hpux11.opt.
18458
18459 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
18460
18461         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
18462         to tmake_file.
18463
18464 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
18465
18466         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
18467         support sites.
18468
18469 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
18470
18471         * doc/install.texi (Binaries): Remove outdated reference for
18472         Motorola 68HC11/68HC12 downloads.
18473
18474 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
18475
18476         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
18477         Drepper's paper.
18478
18479 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
18480
18481         PR bootstrap/47147
18482         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
18483         used by NetBSD.
18484
18485 2011-01-28  Ahmad Sharif  <asharif@google.com>
18486
18487         * value-prof.c (check_counter): Corrected error message.
18488
18489 2011-01-29  Jie Zhang  <jie@codesourcery.com>
18490
18491         * config/arm/arm.c (arm_legitimize_reload_address): New.
18492         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
18493         arm_legitimize_reload_address.
18494         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
18495
18496 2011-01-28  Ian Lance Taylor  <iant@google.com>
18497
18498         * godump.c (go_define): Ignore macros whose definitions include
18499         two adjacent operands.
18500
18501 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
18502
18503         PR target/42894
18504         * varasm.c (force_const_mem): Store copy of x in desc->constant
18505         instead of x itself.
18506         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
18507         itself into REG_EQUAL note.
18508
18509 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
18510
18511         * config/freebsd.opt (posix, rdynamic): New Driver options.
18512
18513 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18514
18515         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
18516         -Bstatic/-Bdynamic.
18517         * configure: Regenerate.
18518
18519 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
18520
18521         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
18522         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
18523
18524 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
18525
18526         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
18527         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
18528         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
18529         (s390_preferred_reload_class): Make static. Change return and
18530         'rclass' argument type to reg_class_t.
18531
18532 2011-01-27  Jan Hubicka  <jh@suse.cz>
18533
18534         PR middle-end/46949
18535         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
18536         (process_function_and_variable_attributes): Check defined weakrefs.
18537
18538 2011-01-27  Martin Jambor  <mjambor@suse.cz>
18539
18540         PR tree-optimization/47228
18541         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
18542         build_ref_for_offset.
18543
18544 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18545
18546         * config/spu/spu-elf.h (ASM_SPEC): Remove.
18547
18548 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
18549
18550         PR rtl-optimization/46856
18551         * postreload.c (reload_combine_recognize_const_pattern): Do not
18552         separate cc0 setter and user on cc0 targets.
18553
18554 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
18555
18556         PR c/43082
18557         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
18558         passed a VOID_TYPE expression, immediately emit an error and
18559         return error_mark_node.
18560
18561 2011-01-26  Jeff Law  <law@redhat.com>
18562
18563         PR rtl-optimization/47464
18564         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
18565         rather than may_trap_p as needed.
18566
18567 2011-01-26  DJ Delorie  <dj@redhat.com>
18568
18569         PR rtl-optimization/46878
18570         * combine.c (insn_a_feeds_b): Check for the implicit cc0
18571         setter/user dependency as well.
18572
18573 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
18574
18575         PR rtl-optimization/44469
18576         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
18577         after removing trivially dead basic blocks.
18578
18579 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
18580
18581         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
18582         * config/frv/frv.h (LINK_SPEC): Likewise.
18583         * config/i386/netware.h (LINK_SPEC): Likewise.
18584         * config/m68k/linux.h (ASM_SPEC): Likewise.
18585         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
18586         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
18587         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
18588         * config/sparc/linux.h (ASM_SPEC): Likewise.
18589         * config/sparc/linux64.h (ASM_SPEC): Likewise.
18590         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
18591
18592 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
18593
18594         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
18595         * config/frv/frv.h (ASM_SPEC): Likewise.
18596         * config/m68k/linux.h (ASM_SPEC): Likewise.
18597         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
18598         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
18599         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
18600         * config/sparc/linux.h (ASM_SPEC): Likewise.
18601         * config/sparc/linux64.h (ASM_SPEC): Likewise.
18602         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
18603
18604 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
18605
18606         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
18607         * config/frv/frv.h (LINK_SPEC): Likewise.
18608         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
18609
18610 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
18611
18612         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
18613         * config/frv/frv.h (ASM_SPEC): Likewise.
18614         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
18615         * config/m68k/linux.h (ASM_SPEC): Likewise.
18616         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
18617         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
18618         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
18619         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
18620         * config/sparc/linux.h (ASM_SPEC): Likewise.
18621         * config/sparc/linux64.h (ASM_SPEC): Likewise.
18622         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
18623         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
18624
18625 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
18626
18627         PR target/46997
18628         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
18629         (*mux2): Ditto.
18630         (vec_extract_evenodd_help): Ditto.
18631         (vec_extract_evenv4hi): Ditto.
18632         (vec_extract_oddv4hi): Ditto.
18633         (vec_interleave_lowv2si): Ditto.
18634         (vec_interleave_highv2si): Ditto.
18635         (vec_extract_evenv2si): Ditto.
18636         (vec_extract_oddv2si: Ditto.
18637         (vec_pack_trunc_v2si): Ditto.
18638
18639 2011-01-22  Jan Hubicka  <jh@suse.cz>
18640
18641         PR target/47237
18642         * cgraph.h (cgraph_local_info): New field can_change_signature.
18643         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
18644         signature can change.
18645         (ipcp_estimate_growth): Call sequence simplify only if calle signature
18646         can change.
18647         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
18648         (cgraph_function_versioning): We can not change signature of functions
18649         that don't allow that.
18650         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
18651         (lto_input_node): Likewise.
18652         * ipa-inline.c (compute_inline_parameters): Compute
18653         local.can_change_signature.
18654         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
18655         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
18656         functions that can not change signature.
18657         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
18658         init_cumulative_args): Do not use local calling conventions
18659         for functions that can not change signature.
18660
18661 2011-01-22  Jan Hubicka  <jh@suse.cz>
18662
18663         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
18664
18665 2011-01-26  Richard Guenther  <rguenther@suse.de>
18666
18667         PR tree-optimization/47190
18668         * cgraphunit.c (process_common_attributes): New function.
18669         (process_function_and_variable_attributes): Use it.
18670
18671 2011-01-26  Richard Guenther  <rguenther@suse.de>
18672
18673         PR lto/47423
18674         * cgraphbuild.c (record_eh_tables): Record reference to personality
18675         function.
18676
18677 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
18678
18679         PR debug/45454
18680         * sel-sched.c (moveup_expr): Don't let debug insns prevent
18681         non-debug insns from moving up.
18682
18683 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
18684
18685         PR target/40125
18686         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
18687         t-dlldir{,-x} fragment for build and add it to tmake_file.
18688         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
18689         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
18690         * config/i386/t-dlldir: New file.
18691         (SHLIB_DLLDIR): Define.
18692         * config/i386/t-dlldir-x: New file.
18693         (SHLIB_DLLDIR): Define.
18694         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
18695         (SHLIB_INSTALL): Use it.
18696
18697 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
18698
18699         PR target/47246
18700         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
18701         lower bound of the allowed Thumb-2 coprocessor load/store
18702         index range to -256. Add explaining comment.
18703
18704 2011-01-25  Ian Lance Taylor  <iant@google.com>
18705
18706         * godump.c (go_define): Improve lexing of macro expansion to only
18707         accept expressions which match Go spec.
18708
18709 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
18710
18711         PR c++/43601
18712         * tree.c (handle_dll_attribute): Handle it.
18713         * doc/extend.texi (@item dllexport): Mention it.
18714         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
18715
18716 2011-01-25  Ian Lance Taylor  <iant@google.com>
18717
18718         PR tree-optimization/26854
18719         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
18720         (decl_jump_unsafe): Move higher in file, with no other change.
18721         (bind): Set has_jump_unsafe_decl if appropriate.
18722         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
18723         (check_earlier_gotos): Likewise.
18724         (c_check_switch_jump_warnings): Likewise.
18725
18726 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
18727
18728         * doc/invoke.texi (Warning Options): Add missing hyphen.
18729         (-fprofile-dir): Minor grammatical fixes.
18730         (-fbranch-probabilities): Likewise.
18731
18732 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
18733
18734         PR debug/45136
18735         PR debug/45130
18736         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
18737         debug insns.
18738         (no_real_insns_p, schedule_block, set_priorities): Drop special
18739         treatment of boundary debug insns.
18740         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
18741         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
18742         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
18743         (BOUNDARY_DEBUG_INSN_P): Likewise.
18744         (SCHEDULE_DEBUG_INSN_P): Likewise.
18745         * sched-rgn.c (init_ready_list): Drop special treatment of
18746         boundary debug insns.
18747         * final.c (rest_of_clean-state): Clear notes' BB.
18748
18749 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18750
18751         * Makefile.in (LAMBDA_H): Removed.
18752         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
18753         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
18754         lambda-trans.o, and tree-loop-linear.o.
18755         (lto-symtab.o): Remove dependence on LAMBDA_H.
18756         (tree-loop-linear.o): Remove rule.
18757         (lambda-mat.o): Same.
18758         (lambda-trans.o): Same.
18759         (lambda-code.o): Same.
18760         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
18761         (tree-vect-slp.o): Same.
18762         * hwint.h (gcd): Moved here.
18763         (least_common_multiple): Same.
18764         * lambda-code.c: Removed.
18765         * lambda-mat.c: Removed.
18766         * lambda-trans.c: Removed.
18767         * lambda.h: Removed.
18768         * tree-loop-linear.c: Removed.
18769         * lto-symtab.c: Do not include lambda.h.
18770         * omega.c (gcd): Removed.
18771         * passes.c (init_optimization_passes): Remove pass_linear_transform.
18772         * tree-data-ref.c (print_lambda_vector): Moved here.
18773         (lambda_vector_copy): Same.
18774         (lambda_matrix_copy): Same.
18775         (lambda_matrix_id): Same.
18776         (lambda_vector_first_nz): Same.
18777         (lambda_matrix_row_add): Same.
18778         (lambda_matrix_row_exchange): Same.
18779         (lambda_vector_mult_const): Same.
18780         (lambda_vector_negate): Same.
18781         (lambda_matrix_row_negate): Same.
18782         (lambda_vector_equal): Same.
18783         (lambda_matrix_right_hermite): Same.
18784         * tree-data-ref.h: Do not include lambda.h.
18785         (lambda_vector): Moved here.
18786         (lambda_matrix): Same.
18787         (dependence_level): Same.
18788         (lambda_transform_legal_p): Removed declaration.
18789         (lambda_collect_parameters): Same.
18790         (lambda_compute_access_matrices): Same.
18791         (lambda_vector_gcd): Same.
18792         (lambda_vector_new): Same.
18793         (lambda_vector_clear): Same.
18794         (lambda_vector_lexico_pos): Same.
18795         (lambda_vector_zerop): Same.
18796         (lambda_matrix_new): Same.
18797         * tree-flow.h (least_common_multiple): Removed declaration.
18798         * tree-parloops.c (lambda_trans_matrix): Moved here.
18799         (LTM_MATRIX): Same.
18800         (LTM_ROWSIZE): Same.
18801         (LTM_COLSIZE): Same.
18802         (LTM_DENOMINATOR): Same.
18803         (lambda_trans_matrix_new): Same.
18804         (lambda_matrix_vector_mult): Same.
18805         (lambda_transform_legal_p): Same.
18806         * tree-pass.h (pass_linear_transform): Removed declaration.
18807         * tree-ssa-loop.c (tree_linear_transform): Removed.
18808         (gate_tree_linear_transform): Removed.
18809         (pass_linear_transform): Removed.
18810         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
18811         flag_loop_interchange.
18812
18813 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
18814
18815         PR tree-optimization/47265
18816         PR tree-optimization/47443
18817         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
18818         if name still has some uses.
18819
18820 2011-01-25  Martin Jambor  <mjambor@suse.cz>
18821
18822         PR tree-optimization/47382
18823         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
18824         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
18825
18826 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
18827
18828         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
18829         sjlj_except_unwind_info.
18830
18831 2011-01-25  Richard Guenther  <rguenther@suse.de>
18832
18833         PR tree-optimization/47426
18834         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
18835         visible functions results escape.
18836
18837 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
18838
18839         PR target/45701
18840         * config/arm/arm.c (any_sibcall_uses_r3): New function.
18841         (arm_get_frame_offsets): Use it.
18842
18843 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18844             Jakub Jelinek  <jakub@redhat.com>
18845
18846         PR tree-optimization/47271
18847         * tree-if-conv.c (bb_postdominates_preds): New.
18848         (if_convertible_bb_p): Call bb_postdominates_preds.
18849         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
18850         (predicate_scalar_phi): Call bb_postdominates_preds.
18851
18852 2011-01-25  Nick Clifton  <nickc@redhat.com>
18853
18854         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
18855         * config/rx/rx.c (rx_function_value): Likewise.
18856         (rx_promote_function_mode): Likewise.
18857         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
18858         in order to make it legitimate.
18859         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
18860         make sure that the first operand is the same as the result register.
18861         (addsi3_unspec): Delete.
18862         (subdi3): Do not accept immediate operands.
18863         (subdi3_internal): Likewise.
18864
18865 2011-01-25  Jeff Law  <law@redhat.com>
18866
18867         PR rtl-optimization/37273
18868         * ira-costs.c (scan_one_insn): Detect constants living in memory and
18869         handle them like argument loads from stack slots.  Do not double
18870         count memory for memory constants and argument loads from stack slots.
18871
18872 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
18873
18874         PR tree-optimization/47427
18875         PR tree-optimization/47428
18876         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
18877         coalesce if the new root var would be TREE_READONLY.
18878
18879 2011-01-25  Richard Guenther  <rguenther@suse.de>
18880
18881         PR middle-end/47414
18882         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
18883         correct type for TBAA.
18884
18885 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18886
18887         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
18888         (close_phi_written_to_memory): Call for_each_index with
18889         dr_indices_valid_in_loop.
18890
18891 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18892
18893         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
18894         when it is initialized.
18895
18896 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18897
18898         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
18899         call to graphite_find_data_references_in_stmt.
18900         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
18901         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
18902         call to graphite_find_data_references_in_stmt.
18903         (analyze_drs_in_stmts): Same.
18904         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
18905         in which the scalar analysis of indices is performed.
18906         (create_data_ref): Same.  Update call to dr_analyze_indices.
18907         (find_data_references_in_stmt): Update call to create_data_ref.
18908         (graphite_find_data_references_in_stmt): Same.
18909         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
18910         declaration.
18911         (create_data_ref): Same.
18912         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
18913         call to create_data_ref.
18914
18915 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18916
18917         * graphite-sese-to-poly.c (build_poly_scop): Move
18918         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
18919
18920 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18921
18922         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
18923         VAR_DECL, PARM_DECL, and RESULT_DECL.
18924
18925 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18926
18927         * graphite-dependences.c (reduction_dr_1): Allow several reductions
18928         in a reduction PBB.
18929         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
18930         that have already been marked as PBB_IS_REDUCTION.
18931
18932 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18933
18934         * graphite-scop-detection.c (same_close_phi_node): New.
18935         (remove_duplicate_close_phi): New.
18936         (make_close_phi_nodes_unique): New.
18937         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
18938
18939 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18940
18941         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
18942         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
18943         of both data references to be the same.
18944
18945 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18946
18947         * graphite-dependences.c (build_lexicographical_constraint): Remove
18948         the gdim parameter.
18949         (build_lexicographical_constraint): Adjust call to
18950         ppl_powerset_is_empty.
18951         (dependence_polyhedron): Same.
18952         (graphite_legal_transform_dr): Same.
18953         (graphite_carried_dependence_level_k): Same.
18954         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
18955         parameter.
18956         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
18957
18958 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18959
18960         * graphite-sese-to-poly.c
18961         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
18962         (close_phi_written_to_memory): New.
18963         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
18964         and unshare_expr.
18965
18966 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18967
18968         * doc/install.texi: Update the expected version number of PPL to 0.11.
18969         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
18970         #if PPL_VERSION_MINOR < 11.
18971
18972 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18973
18974         * graphite-dependences.c: Include graphite-cloog-util.h.
18975         (new_poly_ddr): Inlined into dependence_polyhedron.
18976         (free_poly_ddr): Moved close by new_poly_ddr.
18977         (dependence_polyhedron_1): Renamed dependence_polyhedron.
18978         Early return NULL when ppl_powerset_is_empty returns true.
18979         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
18980         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
18981         (graphite_legal_transform_dr): Call new_poly_ddr.
18982         (graphite_carried_dependence_level_k): Same.
18983         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
18984         (dot_transformed_deps_stmt_1): Removed.
18985         (dot_deps_stmt_1): Call dot_deps_stmt_2.
18986         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
18987         (dot_deps_1): Call dot_deps_2.
18988         * Makefile.in (graphite-dependences.o): Add missing dependence on
18989         graphite-cloog-util.h.
18990
18991 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18992
18993         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
18994         (build_lexicographical_constraint): Same.
18995         (dependence_polyhedron_1): Same.
18996         (graphite_legal_transform_dr): Same.
18997         (graphite_carried_dependence_level_k): Same.
18998         * graphite-ppl.c (ppl_powerset_is_empty): New.
18999         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
19000         * tree-data-ref.c (dump_data_reference): Print the basic block index.
19001
19002 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
19003
19004         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
19005         the "a followed by b" relation and document it.
19006
19007 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
19008
19009         * graphite-dependences.c (build_lexicographical_constraint): Stop the
19010         iteration when the bag of constraints is empty.
19011
19012 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
19013
19014         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
19015
19016 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
19017
19018         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
19019         nest and two loop depths as parameters.
19020         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
19021         lst_perfect_nestify.
19022
19023 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
19024
19025         * graphite-dependences.c (print_pddr): Call
19026         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
19027
19028 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
19029
19030         * graphite-ppl.c (debug_gmp_value): New.
19031         * graphite-ppl.h (debug_gmp_value): Declared.
19032
19033 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
19034
19035         * doc/install.texi: Document availability of cloog-0.16.
19036
19037 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
19038
19039         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
19040         invalid postdominance info.
19041
19042 2011-01-24  Jan Hubicka  <jh@suse.cz>
19043
19044         PR c/21659
19045         * doc/extend.texi (weak pragma): Drop claim that it must
19046         appear before definition.
19047         * varasm.c (merge_weak, declare_weak): Only sanity check
19048         that DECL is not output at a time it is declared weak.
19049
19050 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
19051
19052         * machmode.def: Fixed comments.
19053
19054 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
19055
19056         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
19057
19058 2011-01-24  Paul Koning  <ni1d@arrl.net>
19059
19060         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
19061         WORDS_BIG_ENDIAN.
19062
19063 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
19064
19065         PR target/46519
19066         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
19067         (block_info): Add scanned and prev.
19068         (move_or_delete_vzeroupper_2): Return if the basic block
19069         has been scanned and the upper 128bit state is unchanged
19070         from the last scan.
19071         (move_or_delete_vzeroupper_1): Return true if the exit
19072         state is changed.
19073         (move_or_delete_vzeroupper): Visit basic blocks using the
19074         work-list based algorithm based on vt_find_locations in
19075         var-tracking.c.
19076
19077         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
19078
19079 2011-01-24  Nick Clifton  <nickc@redhat.com>
19080
19081         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
19082         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
19083         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
19084         then define __v850e1__.
19085         * doc/invoke.texi: Document -mv850es.
19086
19087 2011-01-24  Richard Henderson  <rth@redhat.com>
19088
19089         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
19090         compound unordered comparisons.
19091         * config/rx/rx.c (rx_split_fp_compare): Remove.
19092         * config/rx/rx-protos.h: Update.
19093         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
19094         (cbranchsf4): Don't call rx_split_fp_compare.
19095         (*cbranchsf4): Use rx_split_cbranch.
19096         (*cmpsf): Don't accept "i" constraint.
19097         (*conditional_branch): Only valid after reload.
19098         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
19099
19100 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
19101
19102         PR target/47385
19103         * config/rs6000/altivec.md (vector constant splitters): Add
19104         support for creating vector single precision constants if -mvsx is
19105         used and we would create the constant using Altivec primitives.
19106
19107 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
19108             Richard Sandiford  <rdsandiford@googlemail.com>
19109
19110         PR rtl-optimization/47166
19111         * reload1.c (emit_reload_insns): Disable the spill_reg_store
19112         mechanism for PRE_MODIFY and POST_MODIFY.
19113         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
19114         reloadreg.
19115
19116 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
19117
19118         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
19119
19120 2011-01-22  Jan Hubicka  <jh@suse.cz>
19121
19122         PR lto/47333
19123         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
19124
19125 2011-01-22  Jan Hubicka  <jh@suse.cz>
19126
19127         PR tree-optimization/43884
19128         PR lto/44334
19129         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
19130         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
19131
19132 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
19133
19134         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
19135         * config/s390/s390.c (s390_register_move_cost,
19136         s390_memory_move_cost): New.
19137         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
19138
19139 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19140
19141         PR middle-end/47401
19142         * except.c (sjlj_assign_call_site_values): Move setting the
19143         crtl->uses_eh_lsda flag to ...
19144         (sjlj_mark_call_sites): ... here.
19145         (sjlj_emit_function_enter): Support NULL dispatch label.
19146         (sjlj_build_landing_pads): In a function with no landing pads
19147         that still has must-not-throw regions, generate code to register
19148         a personality function with empty LSDA.
19149
19150 2011-01-21  Richard Henderson  <rth@redhat.com>
19151
19152         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
19153
19154         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
19155
19156         * compare-elim.c: New file.
19157         * Makefile.in (OBJS-common): Add it.
19158         (compare-elim.o): New.
19159         * common.opt (fcompare-elim): New.
19160         * opts.c (default_options_table): Add OPT_fcompare_elim.
19161         * tree-pass.h (pass_compare_elim_after_reload): New.
19162         * passes.c (init_optimization_passes): Add it.
19163         * recog.h: Protect against re-inclusion.
19164         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
19165         * doc/invoke.texi (-fcompare-elim): Document it.
19166         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
19167         * doc/tm.texi: Rebuild.
19168
19169 2011-01-22  Nick Clifton  <nickc@redhat.com>
19170
19171         * config/rx/rx.md (cstoresf4): Pass comparison operator to
19172         rx_split_fp_compare.
19173
19174 2011-01-22  Nick Clifton  <nickc@redhat.com>
19175
19176         * config/rx/rx.md (UNSPEC_CONST): New.
19177         (deallocate_and_return): Wrap the amount popped off the stack in
19178         an UNSPEC_CONST in order to stop it being rejected by
19179         -mmax-constant-size.
19180         (pop_and_return): Add a "(return)" rtx.
19181         (call): Drop the immediate operand.
19182         (call_internal): Likewise.
19183         (call_value): Likewise.
19184         (call_value_internal): Likewise.
19185         (sibcall_internal): Likewise.
19186         (sibcall_value_internal): Likewise.
19187         (sibcall): Likewise.  Generate an explicit call using
19188         sibcall_internal.
19189         (sibcall_value): Likewise.
19190         (mov<>): FAIL if a constant operand is not legitimate.
19191         (addsi3_unpsec): New pattern.
19192
19193         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
19194         (ok_for_max_constant): New function.
19195         (gen_safe_add): New function.
19196         (rx_expand_prologue): Use gen_safe_add.
19197         (rx_expand_epilogue): Likewise.
19198         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
19199         UNSPEC CONSTs.
19200
19201 2011-01-21  Jeff Law  <law@redhat.com>
19202
19203         PR tree-optimization/47053
19204         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
19205         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
19206         statements are deleted.
19207         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
19208         is nonempty, then purge dead edges and cleanup the CFG.
19209
19210 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
19211
19212         PR debug/47402
19213         Temporarily revert:
19214         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
19215         PR debug/47106
19216         * tree-dfa.c (create_var_ann): Mark variable as used.
19217
19218 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
19219
19220         PR middle-end/45566
19221         * except.c (convert_to_eh_region_ranges): Emit queued no-region
19222         notes from other section in hot/cold partitioning even if
19223         last_action is -3.  Increment call_site_base.
19224
19225         PR rtl-optimization/47366
19226         * fwprop.c (forward_propagate_into): Return bool.  If
19227         any changes are made, -fnon-call-exceptions is used and
19228         REG_EH_REGION note is present, call purge_dead_edges
19229         and return true if it purged anything.
19230         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
19231         any EH edges were purged.
19232
19233 2011-01-21  Jeff Law  <law@redhat.com>
19234
19235         PR rtl-optimization/41619
19236         * caller-save.c (setup_save_areas): Break out code to determine
19237         which hard regs are live across calls by examining the reload chains
19238         so that it is always used.
19239         Eliminate code which checked REG_N_CALLS_CROSSED.
19240
19241 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
19242
19243         PR tree-optimization/47355
19244         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
19245         NOP has non-debug uses beyond PHIs in new_bb.
19246
19247 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
19248
19249         PR debug/47106
19250         * cfgexpand.c (account_used_vars_for_block): Only account vars
19251         that are annotated as used.
19252         (estimated_stack_frame_size): Don't set TREE_USED.
19253         * tree-dfa.c (create_var_ann): Mark variable as used.
19254
19255 2011-01-21  Richard Guenther  <rguenther@suse.de>
19256
19257         PR middle-end/47395
19258         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
19259
19260 2011-01-21  Richard Guenther  <rguenther@suse.de>
19261
19262         PR tree-optimization/47365
19263         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
19264         (vn_reference_lookup_pieces): Adjust.
19265         (vn_reference_lookup): Likewise.
19266         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
19267         (vn_reference_lookup_3): Only look through kills if in
19268         VN_WALKREWRITE mode.
19269         (vn_reference_lookup_pieces): Adjust.
19270         (vn_reference_lookup): Likewise.
19271         (visit_reference_op_load): Likewise.
19272         (visit_reference_op_store): Likewise.
19273         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
19274         (compute_avail): Likewise.
19275         (eliminate): Likewise.
19276
19277 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
19278
19279         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
19280         DECL_IGNORED_P non-reg vars if they are used.
19281
19282         PR tree-optimization/47391
19283         * varpool.c (const_value_known_p): Return false if
19284         decl is volatile.
19285
19286 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
19287
19288         PR bootstrap/47215
19289         * config/i386/i386.c (ix86_local_alignment): Handle
19290         case for va_list_type_node is nil.
19291         (ix86_canonical_va_list_type): Likewise.
19292
19293 2011-01-21  Alan Modra  <amodra@gmail.com>
19294
19295         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
19296         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
19297
19298 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19299
19300         * config/arm/arm.md (define_attr type): Rename f_load
19301         and f_store to f_fpa_load and f_fpa_store. Update.
19302         (write_conflict): Deal with rename fallout.
19303         (*push_fp_multi): Likewise.
19304         * config/arm/fpa.md (f_load): Use f_fpa_load.
19305         (f_store): Use f_fpa_store.
19306         (*movsf_fpa): Likewise.
19307         (*movdf_fpa): Likewise.
19308         (*movxf_fpa): Likewise.
19309         (*thumb2_movsf_fpa): Likewise.
19310         (*thumb2_movdf_fpa): Likewise.
19311         (*thumb2_movxf_fpa): Likewise.
19312         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
19313         f_loadd and f_stored.
19314         (*thumb2_movdi_vfp): Likewise.
19315         (*thumb2_movsf_vfp): Fix attribute to f_loads.
19316         (*thumb2_movsi_vfp): Likewise.
19317         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
19318         Use f_loads instead of f_load.
19319         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
19320
19321 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
19322
19323         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
19324         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
19325         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
19326         (xtensa_mode_dependent_address_p): New function.
19327         (constantpool_address_p): Make static. Change return type to bool.
19328         Change argument type to const_rtx. Use CONST_INT_P predicate.
19329
19330 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
19331
19332         PR debug/46583
19333         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
19334
19335 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
19336
19337         PR debug/47283
19338         * cfgexpand.c (expand_debug_expr): Instead of generating
19339         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
19340         etc. handling.
19341
19342 2011-01-20  Richard Guenther  <rguenther@suse.de>
19343
19344         PR middle-end/47370
19345         * tree-inline.c (remap_gimple_op_r): Recurse manually for
19346         the pointer operand of MEM_REFs.
19347
19348 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
19349
19350         PR tree-optimization/46130
19351         * ipa-split.c (consider_split): If return_bb contains non-virtual
19352         PHIs other than for retval or if split_function would not adjust it,
19353         refuse to split.
19354
19355 2011-01-20  Richard Guenther  <rguenther@suse.de>
19356
19357         PR tree-optimization/47167
19358         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
19359         Revert previous change, only avoid enumeral type changes.
19360
19361 2011-01-19  Mike Stump  <mikestump@comcast.net>
19362
19363         * doc/tm.texi.in (BRANCH_COST): Englishify.
19364         * doc/tm.texi (BRANCH_COST): Likewise.
19365
19366 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
19367
19368         PR c++/47291
19369         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
19370         (gen_scheduled_generic_parms_dies): New functions.
19371         (gen_struct_or_union_type_die): Schedule template parameters DIEs
19372         generation for the end of CU compilation.
19373         (dwarf2out_finish): Generate template parameters DIEs here.
19374
19375 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
19376
19377         PR debug/46240
19378         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
19379         debug bind stmt on merge edges.
19380
19381 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
19382
19383         PR debug/47079
19384         PR debug/46724
19385         * function.c (instantiate_expr): Instantiate incoming rtl of
19386         implicit arguments, and recurse on VALUE_EXPRs.
19387         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
19388         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
19389
19390 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
19391
19392         * c-parser.c (c_parser_for_statement): Initialize
19393         collection_expression.
19394
19395 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
19396
19397         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
19398
19399 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
19400
19401         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
19402         (LINK_SHLIB_SPEC): Don't use %(link_path).
19403         (SUBTARGET_EXTRA_SPECS): Remove link_path.
19404
19405 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
19406
19407         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
19408         (NO_SHARED_LIB_SUPPORT): Remove.
19409         (LINK_SHLIB_SPEC): Remove one conditional definition.
19410
19411 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
19412
19413         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
19414         %{call_shared}.
19415         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
19416         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
19417         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
19418         %{call_shared} and conditionals on these options not being passed.
19419         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
19420         %{call_shared}.
19421
19422 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
19423
19424         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
19425         simplify.
19426
19427         * ipa-split.c: Spelling fixes.
19428
19429 2011-01-19  Richard Henderson  <rth@redhat.com>
19430
19431         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
19432         (*mulsi3): Likewise.
19433
19434         * longlong.h [__mn10300__] (count_leading_zeros): New.
19435         [__mn10300__] (umul_ppmm, smul_ppmm): New.
19436         [__mn10300__] (add_ssaaaa, subddmmss): New.
19437         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
19438         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
19439
19440 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19441
19442         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
19443
19444 2011-01-19  Richard Henderson  <rth@redhat.com>
19445
19446         * config/mn10300/mn10300.md (addsi3_flags): New.
19447         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
19448         (subsi3_flags, subc_internal, subdi3): New.
19449         (subdi3_internal, *subdi3_degenerate): New.
19450         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
19451
19452         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
19453         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
19454         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
19455         * config/mn10300/mn10300-protos.h: Update.
19456         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
19457         (return_ret): Likewise.  Rename from return_internal_regs.
19458         (return_internal): Remove.
19459
19460         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
19461         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
19462         (mn10300_legitimate_constant_p): Likewise.
19463         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
19464         (mn10300_frame_size): New.
19465         (mn10300_expand_prologue): Use it.
19466         (mn10300_expand_epilogue): Likewise.
19467         (mn10300_initial_offset): Likewise.
19468         * config/mn10300/mn10300-protos.h: Update.
19469         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
19470         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
19471         (prologue, epilogue, return_internal): Tidy output code.
19472         (mn10300_store_multiple_operation, return): Likewise.
19473         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
19474         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
19475         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
19476         (load_pic, am33_load_pic): New.
19477         (mn10300_load_pic0, mn10300_load_pic1): New.
19478
19479         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
19480         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
19481         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
19482         (cc_flags_for_mode, cc_flags_for_code): New.
19483         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
19484         overflow flag is not valid.  Validate that the flags we need
19485         for the comparison are valid.
19486         (mn10300_output_cmp): Remove.
19487         (mn10300_output_add): New.
19488         (mn10300_select_cc_mode): Use cc_flags_for_code.
19489         (mn10300_split_cbranch): New.
19490         (mn10300_match_ccmode): New.
19491         (mn10300_split_and_operand_count): New.
19492         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
19493         to the function.
19494         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
19495         (addsi3): ... here.  Use mn10300_output_add.
19496         (*addsi3_flags): New.
19497         (*am33_subsi3, *mn10300_subsi3): Merge...
19498         (subsi3): ... here.  Use attribute isa.
19499         (*subsi3_flags): New.
19500         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
19501         when possible.
19502         (*am33_andsi3, *mn10300_andsi3): Merge...
19503         (andsi3): ... here.
19504         (*andsi3_flags): New.
19505         (andsi3 splitters): New.
19506         (*am33_iorsi3, *mn10300_iorsi3): Merge...
19507         (iorsi3): ... here.
19508         (*iorsi3_flags): New.
19509         (*am33_xorsi3, *mn10300_xorsi3): Merge...
19510         (xorsi3): ... here.
19511         (*xorsi3_flags): New.
19512         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
19513         (one_cmplsi2): ... here.
19514         (*one_cmplsi2_flags): New.
19515         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
19516         instead of "dax" in constraints.  Use mn10300_split_cbranch.
19517         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
19518         use matching constraints to eliminate a self-comparison.
19519         (*integer_conditional_branch): Rename from integer_conditional_branch.
19520         Use int_mode_flags to match CC_REG.
19521         (*cbranchsi4_btst, *btstsi): New.
19522         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
19523         mn10300_split_cbranch.
19524         (*am33_cmpsf): Rename from am33_cmpsf.
19525         (*float_conditional_branch): Rename from float_conditional_branch.
19526         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
19527         (zero_extendqisi2): ... here.
19528         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
19529         (zero_extendhisi2): ... here.
19530         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
19531         (extendqisi2): ... here.
19532         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
19533         (extendhisi2): ... here.
19534         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
19535         (ashlsi3): ... here.
19536         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
19537         (lshrsi3): ... here.
19538         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
19539         (ashrsi3): ... here.
19540         (consecutive add peephole): Remove.
19541         * config/mn10300/predicates.md (label_ref_operand): New.
19542         (int_mode_flags): New.
19543         (CCZN_comparison_operator): New.
19544
19545         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
19546         (throughput_42_latency_43): New reservation.
19547         (mulsidi3, umulsidi3): New expanders.
19548         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
19549         the MDR register to allocation; separately allocate the low and
19550         high parts of the DImode result.
19551         (umulsidi3_internal): Similarly.
19552         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
19553         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
19554         (udivsi3, umodsi3): Remove.
19555         (udivmodsi4, divmodsi4): New expanders.
19556         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
19557         (*divmodsi4): Simiarly.
19558         (ext_internal): New.
19559
19560         * config/mn10300/constraints.md ("z"): New constraint.
19561         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
19562         (FIXED_REGISTERS): Don't fix MDR.
19563         (CALL_USED_REGSITERS): Reformat nicely.
19564         (REG_ALLOC_ORDER): Add MDR.
19565         (enum regclass): Add MDR_REGS.
19566         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
19567         (IRA_COVER_CLASSES): Add MDR_REGS.
19568         (REGNO_REG_CLASS): Handle MDR_REG.
19569         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
19570         (mn10300_register_move_cost): Likewise.
19571         * config/mn10300/mn10300.md (MDR_REG): New.
19572         (*movsi_internal): Handle moves to/from MDR_REGS.
19573
19574         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
19575         POST_MODIFY.
19576         (mn10300_secondary_reload): Tidy combination reload classes.
19577         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
19578         addresses for AM33.  Allow symbolic offsets for reg+imm.
19579         (mn10300_regno_in_class_p): New.
19580         (mn10300_legitimize_reload_address): New.
19581         * config/mn10300/mn10300.h (enum reg_class): Remove
19582         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
19583         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
19584         SP_OR_GENERAL_REGS.
19585         (REG_CLASS_NAMES): Update to match.
19586         (REG_CLASS_CONTENTS): Likewise.
19587         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
19588         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
19589         (REGNO_IN_RANGE_P): Remove.
19590         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
19591         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
19592         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
19593         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
19594         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
19595         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
19596         (REGNO_GENERAL_P): New.
19597         (HAVE_POST_MODIFY_DISP): New.
19598         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
19599         (LEGITIMIZE_RELOAD_ADDRESS): New.
19600         * config/mn10300/mn10300-protos.h: Update.
19601
19602         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
19603         DATA_REGS for AM33 stack-pointer destination.
19604         (mn10300_preferred_output_reload_class): Likewise.
19605         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
19606         into a form appropriate for ...
19607         (TARGET_SECONDARY_RELOAD): New.
19608         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
19609         * config/mn10300/mn10300-protos.h: Update.
19610         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
19611         reload_insi; use the "A" constraint for the scratch; handle AM33
19612         moves of sp to non-address registers.
19613
19614         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
19615         (*movqi_internal): ... here.
19616         (*am33_movhi, *mn10300_movhi): Merge into...
19617         (*movhi_internal): ... here.
19618         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
19619         as the source/destination of moves from/to SP.
19620         (movsf): Only allow for AM33-2.
19621         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
19622         any integer constant constraint.  Only allow for AM33-2.  Tidy
19623         all of the alternative outputs.
19624         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
19625         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
19626         for MN103.
19627         (udivsi3, umodsi3): New patterns for MN103 only.
19628
19629 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
19630
19631         * doc/tm.texi.in: Spell out that a lack of register class unions
19632         can lead to ICEs.
19633         * doc/tm.texi: Regenerate.
19634
19635 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
19636
19637         PR rtl-optimization/47337
19638         * dce.c (check_argument_store): New function.
19639         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
19640
19641         PR tree-optimization/47290
19642         * tree-eh.c (infinite_empty_loop_p): New function.
19643         (cleanup_empty_eh): Use it.
19644
19645 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
19646
19647         PR target/46997
19648         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
19649         (a64_expand_widen_sum): Ditto.
19650         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
19651         (vec_extract_evenodd_help): Ditto.
19652         (vec_extract_evenv4hi): Ditto.
19653         (vec_extract_oddv4hi): Ditto.
19654         (vec_extract_evenv2si): Ditto.
19655         (vec_extract_oddv2si): Ditto.
19656         (vec_extract_evenv2sf): Ditto.
19657         (vec_extract_oddv2sf): Ditto.
19658         (vec_pack_trunc_v4hi: Ditto.
19659         (vec_pack_trunc_v2si): Ditto.
19660         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
19661         (vec_interleave_highv8qi): Ditto.
19662         (mix1_r): Ditto.
19663         (vec_extract_oddv8qi): Ditto.
19664         (vec_interleave_lowv4hi): Ditto.
19665         (vec_interleave_highv4hi): Ditto.
19666         (vec_interleave_lowv2si): Ditto.
19667         (vec_interleave_highv2si): Ditto.
19668
19669 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19670
19671         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
19672         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
19673         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
19674         (pa_c_mode_for_suffix): New.
19675         (TARGET_EXPAND_BUILTIN): Define.
19676         (TARGET_C_MODE_FOR_SUFFIX): Define.
19677         (pa_builtins): Define.
19678         (pa_init_builtins): Register __float128 type and init new support
19679         builtins.
19680         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
19681         * config/pa/quadlib.c (_U_Qfcopysign): New.
19682
19683 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
19684
19685         PR middle-end/46894
19686         * explow.c (allocate_dynamic_stack_space): Do not assume more than
19687         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
19688         are defined.
19689
19690 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19691
19692         PR tree-optimization/47179
19693         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
19694         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
19695
19696 2011-01-18  Richard Guenther  <rguenther@suse.de>
19697
19698         PR rtl-optimization/47216
19699         * emit-rtl.c: Include tree-flow.h.
19700         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
19701         of replicating it with different semantics.
19702         * Makefile.in (emit-rtl.o): Adjust.
19703
19704 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19705
19706         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
19707         (cortex_a9_dp): Handle neon types correctly.
19708
19709 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
19710
19711         PR rtl-optimization/47299
19712         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
19713         subtarget.  Use normal multiplication if both operands are constants.
19714         * expmed.c (expand_widening_mult): Don't try to optimize constant
19715         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
19716         before using it.
19717
19718 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19719
19720         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
19721         spacing after 'e.g.', typos, comma, hyphenation.
19722
19723 2011-01-17  Richard Henderson  <rth@redhat.com>
19724
19725         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
19726         (rx_restricted_mem_operand): New.
19727         (rx_shift_operand): Use register_operand.
19728         (rx_source_operand, rx_compare_operand): Likewise.
19729         * config/rx/rx.md (addsi3_flags): New expander.
19730         (adddi3): Rewrite as expander.
19731         (adc_internal, *adc_flags, adddi3_internal): New patterns.
19732         (subsi3_flags): New expander.
19733         (subdi3): Rewrite as expander.
19734         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
19735
19736         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
19737         (rx_init_builtins): Remove sat builtin.
19738         (rx_expand_builtin): Likewise.
19739         * config/rx/rx.md (ssaddsi3): New.
19740         (*sat): Rename from sat.  Represent the CC_REG input.
19741
19742         * config/rx/predicates.md (rshift_operator): New.
19743         * config/rx/rx.c (rx_expand_insv): Remove.
19744         * config/rx/rx-protos.h: Update.
19745         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
19746         operand to the canonical position.
19747         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
19748         (*bitclr, *bitclr_in_memory): Similarly.
19749         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
19750         (insv): Retain the zero_extract in the expansion.
19751
19752         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
19753         (bswaphi2, bitinvert, revw): Likewise.
19754
19755         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
19756         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
19757         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
19758         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
19759         (bitset, bitset_in_memory): Likewise.
19760         (bitinvert, bitinvert_in_memory): Likewise.
19761         (bitclr, bitclr_in_memory): Likewise.
19762         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
19763         (rx_strend, rx_cmpstrn): Likewise.
19764         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
19765         (bitop peep2 patterns): Remove.
19766
19767         * config/rx/rx.c (rx_match_ccmode): New.
19768         * config/rx/rx-protos.h: Update.
19769         * config/rx/rx.md (abssi2): Clobber, don't set flags.
19770         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
19771         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
19772         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
19773         (fix_truncsfsi2, floatsisf2): Likewise.
19774         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
19775         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
19776         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
19777         (*subsi3_flags, *xorsi3_flags): New.
19778
19779         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
19780
19781         * config/rx/rx.c (rx_print_operand): Remove workaround for
19782         unsplit comparison operations.
19783
19784         * config/rx/rx.md (movsicc): Split after reload.
19785         (*movsicc): Merge *movsieq and *movsine via match_operator.
19786         (*stcc): New pattern.
19787
19788         * config/rx/rx.c (rx_float_compare_mode): Remove.
19789         * config/rx/rx.h (rx_float_compare_mode): Remove.
19790         * config/rx/rx.md (cstoresi4): Split after reload.
19791         (*sccc): New pattern.
19792
19793         * config/rx/predicates.md (label_ref_operand): New.
19794         (rx_z_comparison_operator): New.
19795         (rx_zs_comparison_operator): New.
19796         (rx_fp_comparison_operator): New.
19797         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
19798         Validate that the flags are set properly for the comparison.
19799         (rx_gen_cond_branch_template): Remove.
19800         (rx_cc_modes_compatible): Remove.
19801         (mode_from_flags): New.
19802         (flags_from_code): Rename from flags_needed_for_conditional.
19803         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
19804         (rx_select_cc_mode): Likewise.
19805         (rx_split_fp_compare): New.
19806         (rx_split_cbranch): New.
19807         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
19808         (*cbranchsi4): Use match_operator and rx_split_cbranch.
19809         (*cbranchsf4): Similarly.
19810         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
19811         match_operator and rx_split_cbranch.
19812         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
19813         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
19814         (*cmpsi): Rename from cmpsi.
19815         (*tstsi): Rename from tstsi.
19816         (*cmpsf): Rename from cmpsf; use CC_Fmode.
19817         (*conditional_branch): Rename from conditional_branch.
19818         (*reveresed_conditional_branch): Remove.
19819         (b<code>): Remove expander.
19820         * config/rx/rx-protos.h: Update.
19821
19822         * config/rx/rx.c (rx_compare_redundant): Remove.
19823         * config/rx/rx.md (cmpsi): Don't use it.
19824         * config/rx/rx-protos.h: Update.
19825
19826         * config/rx/rx-modes.def (CC_F): New mode.
19827         * config/rx/rx.c (rx_select_cc_mode): New.
19828         * config/rx/rx.h (SELECT_CC_MODE): Use it.
19829         * config/rx/rx-protos.h: Update.
19830
19831 2011-01-17  Richard Henderson  <rth@redhat.com>
19832
19833         * except.c (dump_eh_tree): Fix stray ; after for statement.
19834
19835 2011-01-17  Richard Guenther  <rguenther@suse.de>
19836
19837         PR tree-optimization/47313
19838         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
19839         handling before copying the body.  Properly deal with
19840         by-reference result in SSA form.
19841
19842 2011-01-17  Ian Lance Taylor  <iant@google.com>
19843
19844         PR target/47219
19845         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
19846         (struct_value_alias_set): Don't define.
19847         (sparc_option_override): Don't set sparc_sr_alias_set and
19848         struct_value_alias_set.
19849         (save_or_restore_regs): Use gen_frame_mem rather than calling
19850         set_mem_alias_set.
19851         (sparc_struct_value_rtx): Likewise.
19852
19853 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
19854
19855         PR target/47318
19856         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
19857         (_mm_maskstore_pd): Likewise.
19858         (_mm_maskload_ps): Likewise.
19859         (_mm_maskstore_ps): Likewise.
19860         (_mm256_maskload_pd): Change mask to __m256i.
19861         (_mm256_maskstore_pd): Likewise.
19862         (_mm256_maskload_ps): Likewise.
19863         (_mm256_maskstore_ps): Likewise.
19864
19865         * config/i386/i386-builtin-types.def: Updated.
19866         (ix86_expand_special_args_builtin): Likewise.
19867
19868         * config/i386/i386.c (bdesc_special_args): Update
19869         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
19870         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
19871         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
19872         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
19873
19874         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
19875         Use <avxpermvecmode> on mask register.
19876         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
19877
19878 2011-01-17  Olivier Hainque  <hainque@adacore.com>
19879             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
19880             Eric Botcazou  <ebotcazou@adacore.com>
19881
19882         PR target/46655
19883         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
19884         if <= USHRT_MAX in 32-bit mode.
19885
19886 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19887
19888         * doc/install.texi (Configuration, Specific): Wrap long
19889         lines in examples.  Allow line wrapping in long options
19890         and URLs where beneficial for PDF output.
19891
19892 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
19893
19894         * config/mips/mips.c (mips_classify_symbol): Don't return
19895         SYMBOL_PC_RELATIVE for nonlocal labels.
19896
19897 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
19898
19899         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
19900
19901 2011-01-15  Jan Hubicka  <jh@suse.cz>
19902
19903         PR tree-optimization/47276
19904         * ipa.c (function_and_variable_visibility): Do not try to mark alias
19905         declarations as needed.
19906
19907 2011-01-15  Martin Jambor  <mjambor@suse.cz>
19908
19909         * common.opt (fdevirtualize): New flag.
19910         * doc/invoke.texi (Option Summary): Document it.
19911         * opts.c (default_options_table): Add devirtualize flag.
19912         * ipa-prop.c (detect_type_change): Return immediately if
19913         devirtualize flag is not set.
19914         (detect_type_change_ssa): Likewise.
19915         (compute_known_type_jump_func): Likewise.
19916         (ipa_analyze_virtual_call_uses): Likewise.
19917
19918 2011-01-14  Martin Jambor  <mjambor@suse.cz>
19919
19920         PR tree-optimization/45934
19921         PR tree-optimization/46302
19922         * ipa-prop.c (type_change_info): New type.
19923         (stmt_may_be_vtbl_ptr_store): New function.
19924         (check_stmt_for_type_change): Likewise.
19925         (detect_type_change): Likewise.
19926         (detect_type_change_ssa): Likewise.
19927         (compute_complex_assign_jump_func): Check for dynamic type change.
19928         (compute_complex_ancestor_jump_func): Likewise.
19929         (compute_known_type_jump_func): Likewise.
19930         (compute_scalar_jump_functions): Likewise.
19931         (ipa_analyze_virtual_call_uses): Likewise.
19932         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
19933
19934 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19935
19936         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
19937         * config/i386/i386.opt (msse5): New Alias.
19938
19939 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19940
19941         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
19942         * config/sparc/linux64.h (CC1_SPEC): Likewise.
19943         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
19944         * config/sparc/sparc.h (CC1_SPEC): Likewise.
19945
19946 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19947
19948         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
19949         -mcpu options.
19950         * config/sparc/linux64.h (CC1_SPEC): Likewise.
19951         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
19952         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
19953         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
19954         Likewise.
19955         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
19956
19957 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19958
19959         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
19960
19961 2011-01-14  Mike Stump  <mikestump@comcast.net>
19962
19963         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
19964         * config/fr30/fr30.md: Likweise
19965         (movsi_push): Likewise.
19966         (movsi_pop): Likewise.
19967         (enter_func): Likewise.
19968         * config/moxie/moxie.md (movsi_push): Likewise.
19969         (movsi_pop): Likewise.
19970
19971 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19972
19973         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
19974         %{no_archive} %{exact_version}.
19975         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
19976         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
19977         %{no_archive} %{exact_version}.
19978         * config/mips/openbsd.h (LINK_SPEC): Likewise.
19979         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
19980         * config/mips/vxworks.h: Likewise.
19981
19982 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19983
19984         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
19985
19986 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19987
19988         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
19989         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
19990
19991 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19992
19993         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
19994         -nodefaultlib.
19995
19996 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19997
19998         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
19999         for mcpu not cpu.
20000         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
20001         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
20002         not cpu.
20003         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
20004         Don't handle -shlib.
20005
20006 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
20007
20008         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
20009         (CC1_SPEC): Don't handle -profile.
20010
20011 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
20012
20013         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
20014         * config/mips/mips.h (CC1_SPEC): Likewise.
20015
20016 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
20017
20018         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
20019         * config/mips/mips.h (CC1_SPEC): Likewise.
20020
20021 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
20022
20023         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
20024         * config/m32r/linux.h (LINK_SPEC): Likewise.
20025         * config/mips/linux.h (LINK_SPEC): Likewise.
20026         * config/mips/linux64.h (LINK_SPEC): Likewise.
20027         * config/sparc/linux.h (LINK_SPEC): Likewise.
20028         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
20029         LINK_SPEC): Likewise.
20030         * config/xtensa/linux.h (LINK_SPEC): Likewise.
20031
20032 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
20033
20034         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
20035         %{version:-v}.
20036         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
20037
20038 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
20039
20040         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
20041         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
20042
20043 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
20044
20045         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
20046
20047 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20048
20049         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
20050         supports -Bstatic/-Bdynamic.
20051         * configure: Regenerate.
20052
20053 2011-01-14  Jan Hubicka  <jh@suse.cz>
20054             Jack Howarth  <howarth@bromo.med.uc.edu>
20055
20056         PR target/46037
20057         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
20058         when checking debug_info_level. Test write_symbols instead of
20059         debug_hooks->var_location when setting flag_var_tracking_uninit.
20060
20061 2011-01-14  Richard Guenther  <rguenther@suse.de>
20062
20063         PR tree-optimization/47179
20064         * target.def (ref_may_alias_errno): New target hook.
20065         * targhooks.h (default_ref_may_alias_errno): Declare.
20066         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
20067         (default_ref_may_alias_errno): New function.
20068         * target.h (struct ao_ref_s): Declare.
20069         * tree-ssa-alias.c: Include target.h.
20070         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
20071         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
20072         (targhooks.o): Likewise.
20073         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
20074         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
20075
20076 2011-01-14  Richard Guenther  <rguenther@suse.de>
20077
20078         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
20079
20080 2011-01-14  Richard Guenther  <rguenther@suse.de>
20081
20082         PR tree-optimization/47280
20083         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
20084         return CFG changes.
20085         (tree_ssa_forward_propagate_single_use_vars): Deal with
20086         CFG changes from associate_plusminus.
20087
20088 2011-01-14  Richard Guenther  <rguenther@suse.de>
20089
20090         PR middle-end/47281
20091         Revert
20092         2011-01-11  Richard Guenther  <rguenther@suse.de>
20093
20094         PR tree-optimization/46076
20095         * tree-ssa.c (useless_type_conversion_p): Conversions from
20096         unprototyped to empty argument list function types are useless.
20097
20098 2011-01-14  Richard Guenther  <rguenther@suse.de>
20099
20100         PR tree-optimization/47286
20101         * tree-ssa-structalias.c (new_var_info): Register variables are global.
20102
20103 2011-01-14  Martin Jambor  <mjambor@suse.cz>
20104
20105         PR middle-end/46823
20106         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
20107
20108 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
20109
20110         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
20111         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
20112         * config/xtensa/xtensa.c (xtensa_libcall_value,
20113         xtensa_function_value_regno_p): New functions.
20114         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
20115
20116 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
20117
20118         PR c++/47213
20119         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
20120         PE specific hook.
20121         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
20122         New function prototype.
20123         * config/i386/winnt.c (i386_pe_assemble_visibility):
20124         Warn only if attribute was specified by user.
20125
20126 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
20127
20128         PR target/47251
20129         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
20130         floating point.
20131         (floatunsdidf2_fcfidu): Ditto.
20132
20133 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20134
20135         * config/s390/s390.c (print_operand_address): Replace 'error' with
20136         'output_operand_lossage'.
20137         (print_operand): Likewise.
20138
20139 2011-01-13  Jeff Law  <law@redhat.com>
20140
20141         PR rtl-optimization/39077
20142         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
20143         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
20144         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
20145         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
20146         * gcse.c (prune_insertions_deletions): New function.
20147         (compute_pre_data): Use it.
20148
20149 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
20150
20151         PR debug/PR46973
20152         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
20153         static function.
20154         (prune_unused_types_mark): Use it.
20155
20156 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
20157
20158         PR rtl-optimization/45352
20159         * sel-sched.c: Update copyright years.
20160         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
20161         in the advancing loop when we have issued issue_rate insns.
20162
20163 2011-01-12  Richard Henderson  <rth@redhat.com>
20164
20165         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
20166         (TARGET_MD_ASM_CLOBBERS): New.
20167
20168         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
20169         (TARGET_DELEGITIMIZE_ADDRESS): New.
20170
20171         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
20172         (clzsi2, *bsch): New patterns.
20173
20174         * config/mn10300/mn10300.md (INT): New mode iterator.
20175         (*mov<INT>_clr): New pattern, and peep2 to generate it.
20176
20177         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
20178         flag_split_wide_types.
20179
20180         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
20181         (mn10300_trampoline_init): Rewrite without a template, an immediate
20182         load and a direct branch.
20183         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
20184
20185 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
20186
20187         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
20188         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
20189         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
20190         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
20191
20192 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
20193
20194         PR debug/47209
20195         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
20196         of type.
20197
20198 2011-01-12  Jan Hubicka  <jh@suse.cz>
20199
20200         PR driver/47244
20201         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
20202         (PLUGIN_COND_CLOSE): New macro.
20203         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
20204
20205 2011-01-12  Richard Guenther  <rguenther@suse.de>
20206
20207         PR lto/47259
20208         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
20209         register variables in a MEM_REF.
20210
20211 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
20212
20213         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
20214         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
20215         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
20216         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
20217         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
20218         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
20219         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
20220         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
20221         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
20222         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
20223         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
20224         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
20225         * config/gnu-user.h: New.  Copied from linux.h.
20226         (LINUX_TARGET_STARTFILE_SPEC): Rename to
20227         GNU_USER_TARGET_STARTFILE_SPEC.
20228         (LINUX_TARGET_ENDFILE_SPEC): Rename to
20229         GNU_USER_TARGET_ENDFILE_SPEC.
20230         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
20231         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
20232         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
20233         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
20234         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
20235         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
20236         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
20237         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
20238         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
20239         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
20240         * config/arm/linux-eabi.h (CC1_SPEC): Use
20241         GNU_USER_TARGET_CC1_SPEC.
20242         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
20243         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
20244         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
20245         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
20246         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
20247         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
20248         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
20249         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
20250
20251 2011-01-12  Richard Guenther  <rguenther@suse.de>
20252
20253         PR other/46946
20254         * doc/invoke.texi (ffast-math): Document it is turned on
20255         with -Ofast.
20256
20257 2011-01-12  Jan Hubicka  <jh@suse.cz>
20258
20259         PR tree-optimization/47233
20260         * opts.c (common_handle_option): Disable ipa-reference with profile
20261         feedback.
20262
20263 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
20264
20265         * c-parser.c (c_parser_objc_at_property_declaration): Improved
20266         error message.
20267
20268 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
20269
20270         * c-parser.c (c_lex_one_token): Updated and reindented some
20271         comments.  No changes in code.
20272
20273 2011-01-11  Ian Lance Taylor  <iant@google.com>
20274
20275         * godump.c (go_output_var): Don't output the variable if there is
20276         already a type with the same name.
20277
20278 2011-01-11  Ian Lance Taylor  <iant@google.com>
20279
20280         * godump.c (go_format_type): Don't generate float80.
20281
20282 2011-01-11  Richard Henderson  <rth@redhat.com>
20283
20284         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
20285         declaration.  Rewrite for both speed and size.
20286         (mn10300_address_cost_1): Remove.
20287         (mn10300_register_move_cost): New.
20288         (mn10300_memory_move_cost): New.
20289         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
20290         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
20291         extensions, shifts, BSWAP, CLZ.
20292         (mn10300_wide_const_load_uses_clr): Remove.
20293         (TARGET_REGISTER_MOVE_COST): New.
20294         (TARGET_MEMORY_MOVE_COST): New.
20295         * config/mn10300/mn10300-protos.h: Update.
20296         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
20297
20298         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
20299         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
20300         * config/mn10300/mn10300-protos.h: Update.
20301         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
20302         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
20303         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
20304         (*test_int_bitfield, *test_byte_bitfield): Remove.
20305         (*bit_test, *subreg_bit_test): Remove.
20306         * config/mn10300/predicates.md (const_8bit_operand): Remove.
20307
20308         * config/mn10300/constraints.md ("c"): Rename from "A".
20309         ("A", "D"): New constraint letters.
20310         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
20311         (fmssf4, fnmasf4, fnmssf4): Likewise.
20312
20313         * config/mn10300/mn10300.md (isa): New attribute.
20314         (enabled): New attribute.
20315
20316         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
20317         (abssf2, negsf2): Define only for hardware fp.
20318         (sqrtsf2): Reformat.
20319         (addsf3, subsf3, mulsf3): Merge expander and insn.
20320
20321         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
20322         (DEBUGGER_AUTO_OFFSET): Remove.
20323         (DEBUGGER_ARG_OFFSET): Remove.
20324
20325         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
20326         Emit register stores with the same offsets as the hardware.
20327         (mn10300_store_multiple_operation): Don't check that the register
20328         save offsets are monotonic.
20329         * config/mn10300/mn10300-protos.h: Update.
20330
20331         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
20332
20333         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
20334         in terms of the value on the stack, not the MDR register.
20335
20336 2011-01-11  Jan Hubicka  <jh@suse.cz>
20337
20338         PR lto/45721
20339         PR lto/45375
20340         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
20341         (symbol_alias_set_destroy, symbol_alias_set_contains,
20342         propagate_aliases_backward): Declare.
20343         * lto-streamer-out.c (struct sets): New sturcture.
20344         (trivally_defined_alias): New function.
20345         (output_alias_pair_p): Rewrite.
20346         (output_unreferenced_globals): Fix output of alias pairs.
20347         (produce_symtab): Likewise.
20348         * ipa.c (function_and_variable_visibility): Set weak alias destination
20349         as needed in lto.
20350         * varasm.c (symbol_alias_set_t): Remove.
20351         (symbol_alias_set_destroy): Export.
20352         (propagate_aliases_forward, propagate_aliases_backward): New functions
20353         based on ...
20354         (compute_visible_aliases): ... this one; remove.
20355         (trivially_visible_alias): New
20356         (trivially_defined_alias): New.
20357         (remove_unreachable_alias_pairs): Rewrite.
20358         (finish_aliases_1): Reorganize code checking if alias is defined.
20359         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
20360         in LTO mode.
20361
20362 2011-01-11  Richard Guenther  <rguenther@suse.de>
20363
20364         PR tree-optimization/46076
20365         * tree-ssa.c (useless_type_conversion_p): Conversions from
20366         unprototyped to empty argument list function types are useless.
20367
20368 2011-01-11  Richard Guenther  <rguenther@suse.de>
20369
20370         PR middle-end/45235
20371         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
20372         volatile MEMs as MEM_READONLY_P.
20373
20374 2011-01-11  Richard Guenther  <rguenther@suse.de>
20375
20376         PR tree-optimization/47239
20377         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
20378
20379 2011-01-11  Jeff Law  <law@redhat.com>
20380
20381         PR tree-optimization/47086
20382         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
20383         IVs from statements that might throw.
20384
20385 2011-01-10  Jan Hubicka  <jh@suse.cz>
20386
20387         PR lto/45375
20388         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
20389
20390 2011-01-10  Jan Hubicka  <jh@suse.cz>
20391
20392         PR lto/45375
20393         * profile.c (read_profile_edge_counts): Ignore profile inconistency
20394         when correcting profile.
20395
20396 2011-01-10  Jan Hubicka  <jh@suse.cz>
20397
20398         PR lto/46083
20399         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
20400         DECL_FINI_PRIORITY.
20401         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
20402         Restore DECL_FINI_PRIORITY.
20403
20404 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20405
20406         * doc/gimple.texi: Fix quoting of multi-word return values in
20407         @deftypefn statements.  Ensure presence of return value.  Wrap
20408         overlong @deftypefn lines.
20409         (is_gimple_operand, is_gimple_min_invariant_address): Remove
20410         descriptions of removed functions.
20411         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
20412         of multi-word return value in @deftypefn statement.
20413
20414 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20415
20416         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
20417         (Conditional Expressions, Logical Operators)
20418         (Statement and operand traversals): Do not indent smallexample
20419         code.  Fix duplicate function argument in example.
20420
20421 2011-01-10  Jeff Law  <law@redhat.com>
20422
20423         PR tree-optimization/47141
20424         * ipa-split.c (split_function): Handle case where we are
20425         returning a value and the return block has a virtual operand phi.
20426
20427 2011-01-10  Jan Hubicka  <jh@suse.cz>
20428
20429         PR tree-optimization/47234
20430         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
20431         (pass_feedback_split_functions): Declare.
20432         * passes.c (init_optimization_passes): Add ipa-split as subpass of
20433         tree-profile.
20434         * ipa-split.c (gate_split_functions): Update comments; disable
20435         split-functions for profile_arc_flag and branch_probabilities.
20436         (gate_feedback_split_functions): New function.
20437         (execute_feedback_split_functions): New function.
20438         (pass_feedback_split_functions): New global var.
20439
20440 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
20441
20442         PR lto/46760
20443         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
20444         calling gimple_call_set_cannot_inline.
20445
20446 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
20447
20448         * config/darwin-sections.def: Remove unused section.
20449
20450 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
20451
20452         PR c++/47218
20453         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
20454
20455 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
20456
20457         PR objc/47232
20458         * c-parser.c (c_parser_declaration_or_fndef): Improved
20459         error message.
20460
20461 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
20462
20463         * config/i386/winnt.c (i386_pe_start_function): Make sure
20464         to switch back to function's section.
20465
20466 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
20467
20468         PR gcc/46902
20469         PR testsuite/46912
20470         * plugin.c: Move include of dlfcn.h from here...
20471         * system.h: ... to here.
20472
20473 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20474
20475         * doc/cpp.texi (C++ Named Operators): Fix markup for header
20476         file name.
20477         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
20478         two extra empty pages in PDF output.
20479
20480 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
20481
20482         PR objc/47078
20483         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
20484         for error recovery purposes behave as if it was not specified so
20485         that the default type is usd.
20486
20487 2011-01-07  Jan Hubicka  <jh@suse.cz>
20488
20489         PR tree-optmization/46469
20490         * ipa.c (function_and_variable_visibility): Clear needed flags on
20491         nodes with external decls; handle weakrefs merging correctly.
20492
20493 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
20494
20495         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
20496         not false.
20497
20498 2011-01-07  Jan Hubicka  <jh@suse.cz>
20499
20500         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
20501         and no longer claim that gold is required for linker plugin.
20502         * configure: Regenerate.
20503         * gcc.c (PLUGIN_COND): New macro.
20504         (LINK_COMMAND_SPEC): Use it.
20505         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
20506         * config.in (HAVE_LTO_PLUGIN): New.
20507         * configure.ac (--with-lto-plugin): New parameter; autodetect
20508         HAVE_LTO_PLUGIN.
20509
20510 2011-01-07  Jan Hubicka  <jh@suse.cz>
20511
20512         PR tree-optimization/46367
20513         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
20514         when we can update original.
20515         (cgraph_mark_inline_edge): Sanity check.
20516         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
20517
20518 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20519
20520         * config/spu/spu.h (ASM_COMMENT_START): Define.
20521
20522 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
20523
20524         PR driver/42445
20525         * gcc.c (%>S): New.
20526         (SWITCH_KEEP_FOR_GCC): Likewise.
20527         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
20528         (do_spec_1): Handle "%>".
20529
20530         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
20531
20532 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
20533
20534         PR target/47201
20535         * config/i386/i386.c (ix86_delegitimize_address): If
20536         simplify_gen_subreg fails, return orig_x.
20537
20538         PR bootstrap/47187
20539         * value-prof.c (gimple_stringop_fixed_value): Handle
20540         lhs of the call properly.
20541
20542 2011-01-07  Jan Hubicka  <jh@suse.cz>
20543
20544         PR lto/45375
20545         * lto-opt.c (lto_reissue_options): Set flag_shlib.
20546
20547 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
20548
20549         * target.def (function_switched_text_sections): New hook.
20550         * doc/tm.texi: Regenerated.
20551         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
20552         * final.c (default_function_switched_text_sections): New.
20553         (final_scan_insn): Call function_switched_text_sections when a
20554         mid-function section change occurs.
20555         * output.h (default_function_switched_text_sections): Declare.
20556         * config/darwin-protos.h (darwin_function_switched_text_sections):
20557         Likewise.
20558         * config/darwin.c (darwin_function_switched_text_sections): New.
20559         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
20560
20561 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
20562
20563         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
20564         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
20565         the secondary code fragment when outputting for DWARF == 2.
20566
20567 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
20568
20569         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
20570         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
20571         Remove.
20572         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
20573         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
20574
20575 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
20576
20577         PR debug/46704
20578         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
20579         when it is not empty.
20580
20581 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
20582
20583         Bobcat Enablement
20584         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
20585         (case ${target}): Add btver1.
20586         * config/i386/driver-i386.c (host_detect_local_cpu): Let
20587         -march=native recognize btver1 processors.
20588         * config/i386/i386-c.c (ix86_target_macros_internal): Add
20589         btver1 def_and_undef
20590         * config/i386/i386.c (struct processor_costs btver1_cost): New
20591         btver1 cost table.
20592         (m_BTVER1): New definition.
20593         (m_AMD_MULTIPLE): Includes m_BTVER1.
20594         (initial_ix86_tune_features): Add btver1 tune.
20595         (processor_target_table): Add btver1 entry.
20596         (static const char *const cpu_names): Add btver1 entry.
20597         (software_prefetching_beneficial_p): Add btver1.
20598         (ix86_option_override_internal): Add btver1 instruction sets.
20599         (ix86_issue_rate): Add btver1.
20600         (ix86_adjust_cost): Add btver1.
20601         * config/i386/i386.h (TARGET_BTVER1): New definition.
20602         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
20603         (enum processor_type): Add PROCESSOR_BTVER1.
20604         * config/i386/i386.md (define_attr "cpu"): Add btver1.
20605
20606 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20607
20608         PR target/43309
20609         * config/i386/i386.c (legitimize_tls_address)
20610         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
20611         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
20612         (tls_initial_exec_64_sun): New pattern.
20613
20614 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
20615
20616         * doc/invoke.texi (Overall Options): Improve wording and markup
20617         of the description of -wrapper.
20618
20619 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
20620
20621         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
20622         rdynamic, threads): New Driver options.
20623
20624 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20625
20626         PR target/38118
20627         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
20628         if coming from .tdata.
20629         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
20630
20631 2011-01-06  Jan Hubicka  <jh@suse.cz>
20632
20633         PR lto/47188
20634         * collect2.c (main): Do not enable LTOmode when plugin is active.
20635
20636 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20637
20638         PR other/45915
20639         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
20640         --version output if supported.
20641         * configure: Regenerate.
20642
20643 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
20644
20645         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
20646         Driver options.
20647
20648 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
20649
20650         PR c/47150
20651         * c-convert.c (convert): When converting a complex expression
20652         other than COMPLEX_EXPR to a different complex type, ensure
20653         c_save_expr is called instead of save_expr, unless in_late_binary_op.
20654         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
20655         when converting COMPLEX_TYPE.
20656
20657 2011-01-06  Ira Rosen  <irar@il.ibm.com>
20658
20659         PR tree-optimization/47139
20660         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
20661         only the last reduction value is used outside the loop.  Update
20662         documentation.
20663
20664 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
20665
20666         * config/rtems.opt: New.
20667         * config.gcc (*-*-rtems*): Use rtems.opt.
20668
20669 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
20670
20671         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
20672         processors do not support 3DNow instructions.
20673
20674 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20675
20676         * config/spu/spu.c (spu_option_override): Set parameter
20677         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
20678
20679 2011-01-05  Jan Hubicka  <jh@suse.cz>
20680
20681         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
20682         at the command line.
20683
20684 2011-01-05  Martin Jambor  <mjambor@suse.cz>
20685
20686         PR lto/47162
20687         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
20688         deltas on streamed outgoing edges.
20689         (output_node_opt_summary): Output info for outgoing edges only when
20690         the node is in new parameter set.
20691         (output_cgraph_opt_summary): New parameter set, passed to the two
20692         aforementioned functions.  Update its forward declaration and its
20693         callee too.
20694
20695 2011-01-05  Tom Tromey  <tromey@redhat.com>
20696
20697         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
20698         operator to c_finish_omp_atomic.
20699         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
20700         (build_unary_op): Update.
20701         (build_modify_expr): Update.
20702         (build_asm_expr): Update.
20703
20704 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20705
20706         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
20707         newly inserted insns.
20708         (pad_bb): Likewise.
20709         (spu_emit_branch_hint): Likewise.
20710         (insert_hbrp_for_ilb_runout): Likewise.
20711         (spu_machine_dependent_reorg): Call df_finish_pass after
20712         schedule_insns returns.
20713
20714 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20715
20716         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
20717
20718 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
20719
20720         PR tree-optimization/47005
20721         * tree-sra.c (struct access): Add 'non_addressable' bit.
20722         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
20723         (decide_one_param_reduction): Return 0 if the parameter is passed by
20724         reference and one of the accesses in the group is non_addressable.
20725
20726 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
20727
20728         PR tree-optimization/47056
20729         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
20730         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
20731         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
20732
20733 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
20734
20735         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
20736         initializer.  Skip view conversions from aggregate types.
20737
20738 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
20739
20740         PR bootstrap/47055
20741         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
20742
20743 2011-01-04  Philipp Thomas  <pth@suse.de>
20744
20745         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
20746         obvious typo.
20747
20748 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20749
20750         * function.c (thread_prologue_and_epilogue_insns): Do not crash
20751         on empty epilogue sequences.
20752
20753 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
20754
20755         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
20756         non-static): New Driver options.
20757
20758 2011-01-04  Jie Zhang  <jie@codesourcery.com>
20759
20760         PR driver/47137
20761         * gcc.c (default_compilers[]): Set combinable field to 0
20762         for all assembly languages.
20763
20764 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
20765
20766         * config/mips/loongson3a.md: New file.
20767         * config/mips/mips.md: Include loongson3a.md.
20768         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
20769         TUNE_LOONGSON_3A.
20770
20771 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
20772
20773         PR middle-end/47017
20774         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
20775         instead of convert_memory_address_addr_space on the base expression.
20776
20777 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20778
20779         * config/spu/spu.c (spu_option_override): Update error text
20780         for bad -march= / -mtune= values.
20781
20782 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20783
20784         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
20785         if branch-hint optimization will be performed.
20786
20787 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
20788
20789         PR tree-optimization/47148
20790         * ipa-split.c (split_function): Convert arguments to
20791         DECL_ARG_TYPE if possible.
20792
20793         PR tree-optimization/47155
20794         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
20795         when computing uns.
20796
20797         PR rtl-optimization/47157
20798         * combine.c (try_combine): If undobuf.other_insn becomes
20799         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
20800         and set *new_direct_jump_p too.
20801
20802 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
20803
20804         PR tree-optimization/47021
20805         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
20806
20807 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
20808
20809         * gcc.c (process_command): Update copyright notice dates.
20810         * gcov.c (print_version): Likewise.
20811         * gcov-dump.c (print_version): Likewise.
20812         * mips-tfile.c (main): Likewise.
20813         * mips-tdump.c (main): Likewise.
20814
20815 2011-01-03  Martin Jambor  <mjambor@suse.cz>
20816
20817         PR tree-optimization/46801
20818         * tree-sra.c (type_internals_preclude_sra_p): Check whether
20819         aggregate fields start at byte boundary instead of the bit-field flag.
20820
20821 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
20822
20823         PR driver/47137
20824         * gcc.c (main): Revert revision 168407.
20825
20826 2011-01-03  Martin Jambor  <mjambor@suse.cz>
20827
20828         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
20829
20830 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20831
20832         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
20833         vector optab to expand vector/scalar shift, update gimple to vector.
20834
20835 2011-01-03  Martin Jambor  <mjambor@suse.cz>
20836
20837         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
20838         a thunk.
20839
20840 2011-01-03  Martin Jambor  <mjambor@suse.cz>
20841
20842         PR tree-optimization/46984
20843         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
20844         HOST_WIDE_INT.
20845         (cgraph_create_indirect_edge): Fixed line length.
20846         (cgraph_indirect_call_info): Declare.
20847         (cgraph_make_edge_direct) Update declaration.
20848         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
20849         (cgraph_create_indirect_edge): Use it.
20850         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
20851         callees.
20852         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
20853         the new thunk_delta representation.
20854         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
20855         HOST_WIDE_INT.
20856         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
20857         (ipa_read_indirect_edge_info): Likewise.
20858         * lto-cgraph.c (output_edge_opt_summary): New function.
20859         (output_node_opt_summary): Call it on all outgoing edges.
20860         (input_edge_opt_summary): New function.
20861         (input_node_opt_summary): Call it on all outgoing edges.
20862
20863 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
20864
20865         PR driver/47137
20866         * gcc.c (main): Don't check have_o when settting combine_inputs.
20867
20868 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
20869
20870         * regrename.c: Add general comment describing the pass.
20871         (struct du_head): Remove 'length' field.
20872         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
20873         (regrename_optimize): Do not sort chains.  Rework comments, add others.
20874         Force renaming to the preferred class (if any) in the first pass and do
20875         not consider registers that belong to it in the second pass.
20876         (create_new_chain): Do not set 'length' field.
20877         (scan_rtx_reg): Likewise.
20878
20879 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
20880
20881         PR tree-optimization/47140
20882         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
20883         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
20884         to bit_value_binop.
20885
20886         PR rtl-optimization/47028
20887         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
20888         parm_birth_insn instead of at the beginning of first bb.
20889
20890 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
20891
20892         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
20893         Remove the word "see" before "@pxref".
20894         * doc/rtl.texi: Remove the word "see" before "@pxref".
20895
20896 2011-01-01  Jan Hubicka  <jh@suse.cz>
20897
20898         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
20899         memory.
20900
20901 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
20902
20903         PR target/38662
20904         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
20905
20906 \f
20907 Copyright (C) 2011 Free Software Foundation, Inc.
20908
20909 Copying and distribution of this file, with or without modification,
20910 are permitted in any medium without royalty provided the copyright
20911 notice and this notice are preserved.