OSDN Git Service

* reload1.c (elimination_effects): Fix typo in recent change.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
2
3         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
4         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
5         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6         (h8300_mode_dependent_address_p): New function.
7         (h8300_get_index): Make static.
8
9 2011-03-31  Jeff Law  <law@redhat.com>
10
11         * reload1.c (elimination_effects): Fix typo in recent change.
12
13         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid 
14         typo potentially leading to null pointer dereference.
15
16         * caller-save.c (new_saved_hard_reg): Eliminate return value.
17         (setup_save_areas): Corresponding changes to avoid useless
18         assignments.
19
20         * jump.c (reversed_comparison_code_parts): Avoid successive return
21         statements when REVERSE_CONDITION is defined.
22
23         * expr.c (expand_assignment): Avoid useless assignments.
24         (expand_expr_real_1): Likewise.
25         (expand_expr_real_2): Avoid useless statements.
26
27         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
28
29         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
30
31         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
32         statements.
33
34         * stmt.c (expand_expr_stmt): Avoid useless assignment.
35
36 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
37
38         PR target/47109
39         * doc/tm.texi.in (TARGET_VERSION): Remove.
40         * doc/tm.texi: Regenerate.
41         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
42         * collect2.c (main): Don't use TARGET_VERSION.
43         * mips-tdump.c (main): Don't use TARGET_VERSION.
44         * mips-tfile.c (main): Don't use TARGET_VERSION.
45         * config.gcc (powerpc-wrs-vxworksae): Don't use
46         rs6000/vxworksae.h.
47         * config/rs6000/vxworksae.h: Remove.
48         * config/alpha/alpha.h (TARGET_VERSION): Remove.
49         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
50         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
51         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
52         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
53         * config/arm/arm.h (TARGET_VERSION): Remove.
54         * config/arm/coff.h (TARGET_VERSION): Remove.
55         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
56         * config/arm/elf.h (TARGET_VERSION): Remove.
57         * config/arm/freebsd.h (TARGET_VERSION): Remove.
58         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
59         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
60         * config/arm/pe.h (TARGET_VERSION): Remove.
61         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
62         * config/arm/semi.h (TARGET_VERSION): Remove.
63         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
64         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
65         * config/arm/vxworks.h (TARGET_VERSION): Remove.
66         * config/avr/avr.h (TARGET_VERSION): Remove.
67         * config/bfin/bfin.h (TARGET_VERSION): Remove.
68         * config/fr30/fr30.h (TARGET_VERSION): Remove.
69         * config/frv/frv.h (TARGET_VERSION): Remove.
70         * config/h8300/h8300.h (TARGET_VERSION): Remove.
71         * config/i386/cygwin.h (TARGET_VERSION): Remove.
72         * config/i386/darwin.h (TARGET_VERSION): Remove.
73         * config/i386/darwin64.h (TARGET_VERSION): Remove.
74         * config/i386/djgpp.h (TARGET_VERSION): Remove.
75         * config/i386/freebsd.h (TARGET_VERSION): Remove.
76         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
77         * config/i386/gnu.h (TARGET_VERSION): Remove.
78         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
79         * config/i386/i386elf.h (TARGET_VERSION): Remove.
80         * config/i386/linux.h (TARGET_VERSION): Remove.
81         * config/i386/linux64.h (TARGET_VERSION): Remove.
82         * config/i386/lynx.h (TARGET_VERSION): Remove.
83         * config/i386/mingw32.h (TARGET_VERSION): Remove.
84         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
85         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
86         * config/i386/netware.h (TARGET_VERSION): Remove.
87         * config/i386/nto.h (TARGET_VERSION): Remove.
88         * config/i386/openbsd.h (TARGET_VERSION): Remove.
89         * config/i386/vxworks.h (TARGET_VERSION): Remove.
90         * config/ia64/elf.h (TARGET_VERSION): Remove.
91         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
92         * config/ia64/hpux.h (TARGET_VERSION): Remove.
93         * config/ia64/linux.h (TARGET_VERSION): Remove.
94         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
95         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
96         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
97         * config/lm32/lm32.h (TARGET_VERSION): Remove.
98         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
99         * config/m32c/m32c.h (TARGET_VERSION): Remove.
100         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
101         * config/m32r/m32r.h (TARGET_VERSION): Remove.
102         * config/m68k/linux.h (TARGET_VERSION): Remove.
103         * config/m68k/m68k.h (TARGET_VERSION): Remove.
104         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
105         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
106         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
107         * config/mep/mep.h (TARGET_VERSION): Remove.
108         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
109         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
110         * config/mips/iris6.h (MACHINE_TYPE): Remove.
111         * config/mips/linux.h (TARGET_VERSION): Remove.
112         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
113         * config/mips/vxworks.h (TARGET_VERSION): Remove.
114         * config/mmix/mmix.h (TARGET_VERSION): Remove.
115         * config/mn10300/linux.h (TARGET_VERSION): Remove.
116         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
117         * config/pa/pa.h (TARGET_VERSION): Remove.
118         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
119         * config/picochip/picochip.h (TARGET_VERSION): Remove.
120         * config/rs6000/aix.h (TARGET_VERSION): Remove.
121         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
122         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
123         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
124         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
125         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
126         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
127         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
128         * config/rs6000/linux.h (TARGET_VERSION): Remove.
129         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
130         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
131         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
132         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
133         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
134         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
135         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
136         * config/s390/linux.h (TARGET_VERSION): Remove.
137         * config/s390/s390.h (TARGET_VERSION): Remove.
138         * config/s390/tpf.h (TARGET_VERSION): Remove.
139         * config/score/score.h (TARGET_VERSION): Remove.
140         * config/sh/linux.h (TARGET_VERSION): Remove.
141         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
142         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
143         * config/sh/sh.h (TARGET_VERSION): Remove.
144         * config/sh/sh64.h (TARGET_VERSION): Remove.
145         * config/sh/superh.h (TARGET_VERSION): Remove.
146         * config/sh/vxworks.h (TARGET_VERSION): Remove.
147         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
148         * config/sparc/linux.h (TARGET_VERSION): Remove.
149         * config/sparc/linux64.h (TARGET_VERSION): Remove.
150         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
151         TARGET_NAME32, TARGET_NAME): Remove.
152         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
153         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
154         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
155         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
156         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
157         * config/spu/spu.h (TARGET_VERSION): Remove.
158         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
159         * config/v850/v850.h (TARGET_VERSION): Remove.
160         * config/vax/linux.h (TARGET_VERSION): Remove.
161         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
162         * config/xtensa/elf.h (TARGET_VERSION): Remove.
163         * config/xtensa/linux.h (TARGET_VERSION): Remove.
164
165 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
166
167         PR target/48142
168         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
169         frame-related from frame-unrelated adjustments to the stack pointer.
170
171 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
172
173         * common.opt (fdebug-types-section): Move earlier.
174         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
175
176 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
177
178         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
179         var.
180
181 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
182
183         * tree.h (CASE_CHAIN): Define.
184         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
185         (gimple_redirect_edge_and_branch): Likewise.
186
187 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
188
189         PR middle-end/48367
190         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
191         calculation.
192
193 2011-03-30  Jeff Law  <law@redhat.com>
194
195         * PR bootstrap/48371
196         * reload1.c (reload): Fix botch in last change.
197
198         * reload.h (struct reload): Fix typo introduced in last change.
199
200 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
201
202         * config/arm/arm.opt (mhard-float, msoft-float): Mark
203         Undocumented.  Remove help text.
204         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
205         -mhard-float.
206
207 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
208
209         * doc/options.texi (NegativeAlias): Document.
210         (Alias): Mention NegativeAlias.
211         * opt-functions.awk: Handle NegativeAlias.
212         * optc-gen.awk: Disallow NegativeAlias with multiple Alias
213         arguments.
214         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
215         * opts.h (CL_NEGATIVE_ALIAS): Define.
216         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
217         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
218         OPT_mspe_.
219         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
220         Alias entries.
221         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
222         mno-spe and mno-isel instead of mspe=no and -misel=no.
223
224 2011-03-29  Mark Wielaard  <mjw@redhat.com>
225
226         * common.opt (fdebug-types-section): New flag.
227         * doc/invoke.texi: Document new -fno-debug-types-section flag.
228         * dwarf2out.c (use_debug_types): New define.
229         (struct die_struct): Mark die_id with GTY desc use_debug_types.
230         (print_die): Guard output of type unit signatures using
231         use_debug_types.
232         (build_abbrev_table): Replace assert of dwarf_version >= 4
233         with assert on use_debug_types.
234         (size_of_die): Likewise.
235         (unmark_dies): Likewise.
236         (value_format): Decide AT_ref_external form on use_debug_types.
237         (output_die): Replace dwarf_version version check guard with
238         use_debug_types where appropriate.
239         (modified_type_die): Likewise.
240         (gen_reference_type_die): Likewise.
241         (dwarf2out_start_source_file): Likewise.
242         (dwarf2out_end_source_file): Likewise.
243         (prune_unused_types_walk_attribs): Likewise.
244         (dwarf2out_finish): Likewise.
245
246 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
247
248         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
249
250 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
251
252         PR rtl-optimization/48332
253         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
254         mode of input operand N and modeN to its actual mode.
255
256 2011-03-30  Jeff Law  <law@redhat.com>
257
258         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
259         define accessor macro.
260         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
261         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
262         (reg_equiv_init): Likewise.
263         (reg_equivs_size): New variable.
264         (reg_equiv_init_size): Remove.
265         (allocate_initial_values): Move prototype to here from....
266         * integrate.h (allocate_initial_values): Remove prototype.
267         * integrate.c: Include reload.h.
268         (allocate_initial_values): Corresponding changes.
269         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
270         (fix_reg_equiv_init, no_equiv): Corresponding changes.
271         (update_equiv_regs): Corresponding changes.
272         (ira): Corresponding changes.
273         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
274         (push_secondary_reload): Corresponding changes.
275         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
276         (make_memloc, find_reloads_address): Corresponding changes.
277         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
278         (find_reloads_address_1): Corresponding changes.
279         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
280         (refers_to_regno_for_reload_p): Corresponding changes.
281         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
282         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
283         * reload1.c: Include ggc.h.
284         (grow_reg_equivs): New function.
285         (replace_pseudos_in, reload): Corresponding changes.
286         (calculate_needs_all_insns, alter_regs): Corresponding changes.
287         (eliminate_regs_1, elimination_effects): Corresponding changes.
288         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
289         (delete_output_reload): Likewise.
290         * caller-save.c (mark_referenced_regs): Corresponding changes.
291         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
292         * frv/predicates.md (frv_load_operand): Corresponding changes.
293         * microblaze/microblaze.c (double_memory_operand): Corresponding
294         changes.
295         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
296         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
297         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding
298         changes.
299         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
300         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
301         changes.
302         * pa/pa.c (emit_move_sequence): Corresponding changes.
303         * vax/vax.c (nonindexed_address_p): Corresponding changes.
304
305 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
306
307         PR target/47551
308         * config/arm/arm.c (coproc_secondary_reload_class): Handle
309         structure modes.  Don't check neon_vector_mem_operand for
310         vector or structure modes.
311
312 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
313             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
314
315         PR target/43590
316         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
317         operand 1 and reshuffle the operands to match.
318         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
319
320 2011-03-30  Christian Schüler  <cschueler@gmx.de>
321
322         PR driver/48208
323         * config/c.opt (F): Added 'Driver' to -F option.
324         PR driver/48260
325         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
326           handler function.
327         * config/darwin.opt: Added '-arch' option.
328
329 2011-03-30  Nick Clifton  <nickc@redhat.com>
330
331         * config/rx/rx.md: Add peepholes and patterns to combine
332         extending loads and simple arithmetic instructions.
333         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
334         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
335         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
336         modes to use pre-decrement and post-increment addressing.
337         (rx_is_restricted_memory_address): Add range checking of REG+INT
338         addresses.
339         (rx_print_operand): Add support for %Q.
340         Fix handling of %Q.
341         (rx_memory_move_cost): Adjust cost of stores.
342         (rx_adjust_insn_length): New function.
343
344 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
345
346         PR c/48305
347         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
348         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
349         matching arg00/arg01 types.
350
351 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
352
353         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
354         last_location to UNKNOWN_LOCATION.
355
356 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
357
358         PR target/48349
359         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
360         FLOAT_SSE_REGS.
361
362 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
363             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
364
365         PR bootstrap/48337
366         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
367         Init(PROCESSOR_V7).
368         (sparc_cpu): Likewise.
369         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
370         PROCESSOR_V7.
371
372 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
373
374         PR target/48336
375         PR middle-end/48342
376         PR rtl-optimization/48345
377         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
378         hard regs for given mode from profitable regs when doing secondary
379         allocation.
380
381 2011-03-29  Jeff Law  <law@redhat.com>
382
383         PR bootstrap/48327
384         * tree-ssa-threadupdate.c (struct redirection_data): Remove
385         do_not_duplicate field.
386         (lookup_redirection_data): Corresponding changes.
387         (create_duplicates): Always create a template block.
388         (redirect_edges): Remove code which reused the original block
389         when it was going to become unreachable code.
390         (thread_block): Don't set do_not_duplicate field.
391
392 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
393
394         * lto-opts.c (register_user_option_p, lto_register_user_option):
395         Make type argument unsigned.
396         * lto-streamer.h (lto_register_user_option): Make type argument
397         unsigned.
398         * opth-gen.awk: Make CL_* macros unsigned.
399         * opts-common.c (find_opt): Make lang_mask argument unsigned.
400         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
401         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
402         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
403         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
404         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
405         (find_opt): Make lang_mask argument unsigned.
406
407 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
408
409         PR rtl-optimization/48331
410         PR rtl-optimization/48334
411         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
412         for any used algorithm.
413
414 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
415
416         * ira-conflicts.c (build_object_conflicts): Add unused attribute
417         to parent_max.
418
419 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
420
421         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
422         (alpha_option_override): Don't set alpha_sr_alias_set.
423         (emit_frame_store_1): Use gen_frame_mem rather than calling
424         set_mem_alias_set.
425         (alpha_expand_epilogue): Ditto.
426
427 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
428
429         PR tree-optimization/48290
430         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
431         vectorization, check that relevant phis in the basic block after
432         the inner loop are really inner loop's exit phis.
433
434 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
435
436         PR debug/48190
437         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
438         (cached_dw_loc_list_def): New structure.
439         (cached_dw_loc_list): New typedef.
440         (cached_dw_loc_list_table): New variable.
441         (cached_dw_loc_list_table_hash): New function.
442         (cached_dw_loc_list_table_eq): Likewise.
443         (add_location_or_const_value_attribute): Take a bool cache_p.
444         Cache the list when the parameter is true.
445         (gen_formal_parameter_die): Update caller.
446         (gen_variable_die): Likewise.
447         (dwarf2out_finish): Likewise.
448         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
449         while generating debug info for the decl.
450         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
451         (dwarf2out_init): Initialize cached_dw_loc_list_table.
452         (resolve_addr): Cache the result of resolving a chain of
453         location lists.
454
455 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
456
457         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
458         conflict object hard regset nodes have intersecting hard reg sets.
459
460         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
461         after regstat_init_n_sets_and_refs.
462
463         * ira.c: Add more comments at the top.
464         (setup_stack_reg_pressure_class, setup_pressure_classes):
465         Add comments how we compute the register pressure classes.
466         (setup_allocno_and_important_classes): Add more comments.
467         (setup_class_translate_array, reorder_important_classes)
468         (setup_reg_class_relations): Add comments.
469
470         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
471         start of the file.
472
473         * ira-color.c: Add 2011 to the Copyright line.
474         (assign_hard_reg):  Add more comments.
475         (improve_allocation): Ditto.
476
477         * ira-costs.c: Add 2011 to the Copyright line.
478         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
479         comments.
480         (setup_regno_cost_classes_by_mode): Ditto.
481
482         Initial patches from ira-improv branch:
483
484         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
485
486         * ira-build.c: (ira_create_object): Remove initialization of
487         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
488         (ira_create_allocno): Remove initialization of
489         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
490         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
491         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
492         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
493         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
494         Initialize ALLOCNO_ADD_DATA.
495         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
496         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
497         ALLOCNO_REG.
498         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
499         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
500
501         * ira.c (ira_reallocate): Remove.
502         (setup_pressure_classes): Call
503         ira_init_register_move_cost_if_necessary.  Use
504         ira_register_move_cost instead of ira_get_register_move_cost.
505         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
506         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
507
508         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
509         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
510         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
511         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
512         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
513         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
514         Fix formatting.
515         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
516         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
517         (struct allocno_color_data): New.
518         (allocno_color_data_t): New typedef.
519         (allocno_color_data): New definition.
520         (ALLOCNO_COLOR_DATA): New macro.
521         (struct object_color_data): New.
522         (object_color_data_t): New typedef.
523         (object_color_data): New definition.
524         (OBJECT_COLOR_DATA): New macro.
525         (update_copy_costs, calculate_allocno_spill_cost): Call
526         ira_init_register_move_cost_if_necessary.  Use
527         ira_register_move_cost instead of ira_get_register_move_cost.
528         (move_spill_restore, update_curr_costs): Ditto.
529         (allocno_spill_priority): Make it inline.
530         (color_pass): Allocate and free allocno_color_dat and object_color_data.
531         (struct coalesce_data, coalesce_data_t): New.
532         (allocno_coalesce_data): New definition.
533         (ALLOCNO_COALESCE_DATA): New macro.
534         (merge_allocnos, coalesced_allocno_conflict_p): Use
535         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
536         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
537         (coalesce_allocnos): Ditto.
538         (setup_coalesced_allocno_costs_and_nums): Ditto.
539         (collect_spilled_coalesced_allocnos): Ditto.
540         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
541         (setup_slot_coalesced_allocno_live_ranges): Ditto.
542         (coalesce_spill_slots): Ditto.
543         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
544         free allocno_coalesce_data.
545
546         * ira-conflicts.c: Fix formatting.
547         (process_regs_for_copy): Call
548         ira_init_register_move_cost_if_necessary.  Use
549         ira_register_move_cost instead of ira_get_register_move_cost.
550         (build_object_conflicts): Optimize.
551
552         * ira-costs.c (record_reg_classes): Optimize.  Call
553         ira_init_register_move_cost_if_necessary.  Use
554         ira_register_move_cost, ira_may_move_in_cost, and
555         ira_may_move_out_cost instead of ira_get_register_move_cost and
556         ira_get_may_move_cost.
557         (record_address_regs): Ditto.
558         (scan_one_insn): Optimize.
559         (find_costs_and_classes): Optimize.
560         (process_bb_node_for_hard_reg_moves): Call
561         ira_init_register_move_cost_if_necessary.  Use
562         ira_register_move_cost instead of ira_get_register_move_cost.
563
564         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
565         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
566         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
567         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
568         definitions.
569         (ira_initiate_emit_data, ira_finish_emit_data)
570         (create_new_allocno): New functions.
571         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
572         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
573         Use ira_register_move_cost instead of ira_get_register_move_cost.
574
575         * ira-int.h: Fix some comments.
576         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
577         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
578         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
579         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
580         add_data.
581         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
582         bitfield after mode.  Make hard_regno a short int.  Make
583         hard_regno short.  Remove first_coalesced_allocno and
584         next_coalesced_allocno.  Move mem_optimized_dest_p,
585         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
586         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
587         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
588         temp, colorable_p.  Add new member add_data.
589         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
590         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
591         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
592         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
593         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
594         (ALLOCNO_ADD_DATA): New macro.
595         (ira_emit_data_t): New typedef.
596         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
597         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
598         from struct ira_allocno.
599         (ALLOCNO_EMIT_DATA): New macro.
600         (ira_allocno_emit_data, allocno_emit_reg): New.
601         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
602         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
603         (OBJECT_ADD_DATA): New macro.
604         (ira_reallocate): Remove.
605         (ira_initiate_emit_data, ira_finish_emit_data): New.
606         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
607         (ira_init_register_move_cost_if_necessary): New.
608         (ira_object_conflict_iter_next): Merge into
609         ira_object_conflict_iter_cond.
610         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
611
612         * ira-live.c: (process_single_reg_class_operands): Call
613         ira_init_register_move_cost_if_necessary.  Use
614         ira_register_move_cost instead of ira_get_register_move_cost.
615
616         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
617
618         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
619
620         * ira-costs.c: Fix formatting.
621         (cost_classes, cost_classes_num): Remove.
622         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
623         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
624         (cost_classes_del, cost_classes_htab): New.
625         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
626         (initiate_regno_cost_classes, setup_cost_classes): New.
627         (setup_regno_cost_classes_by_aclass): New.
628         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
629         (record_reg_classes): Use regno_cost_classes instead of
630         cost_classes.  Move checking opposite operand up.
631         (record_address_regs): Use regno_cost_classes
632         instead of cost_classes.
633         (scan_one_insn): Ditto.  Use always general register.
634         (print_allocno_costs): Use regno_cost_classes instead of
635         cost_classes.
636         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
637         (find_costs_and_classes): Set up cost classes for each registers.
638         Use also their mode for this.  Use regno_cost_classes instead of
639         cost_classes.
640         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
641         cost_classes.
642         (free_ira_costs, ira_init_costs): Don't use cost_classes.
643         (ira_costs, ira_set_pseudo_classes): Call
644         initiate_regno_cost_classes and finish_regno_cost_classes.
645
646         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
647
648         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
649
650         * target.def (ira_cover_classes): Remove.
651
652         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
653
654         * doc/tm.texi.in: Ditto.
655
656         * ira-conflicts.c: Remove mentioning cover classes from the file.
657         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
658         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
659
660         * targhooks.c (default_ira_cover_classes): Remove.
661
662         * targhooks.h (default_ira_cover_classes): Ditto.
663
664         * haifa-sched.c: Remove mentioning cover classes from the file.
665         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
666         ira_pressure_classes and ira_pressure_classes_num instead of
667         ira_reg_class_cover_size and ira_reg_class_cover.  Use
668         sched_regno_pressure_class instead of sched_regno_cover_class.
669         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
670         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
671
672         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
673         classes from the file.
674         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
675         (struct object_hard_regs, struct object_hard_regs_node): New.
676         (struct ira_object): New members profitable_hard_regs,
677         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
678         (struct ira_allocno): Rename cover_class to aclass.  Rename
679         cover_class_cost and updated_cover_class_cost to class_cost and
680         updated_class_cost.  Remove splay_removed_p and
681         left_conflict_size.  Add new members colorable_p.
682         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
683         (ALLOCNO_COLORABLE_P): New macro.
684         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
685         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
686         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
687         (OBJECT_...): Rename parameter C to O.
688         (OBJECT_PROFITABLE_HARD_REGS): New macro.
689         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
690         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
691         (struct target_ira_int): New members x_ira_max_memory_move_cost,
692         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
693         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
694         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
695         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
696         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
697         x_ira_reg_class_subunion.
698         (ira_max_memory_move_cost, ira_max_register_move_cost)
699         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
700         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
701         (ira_important_class_nums, ira_reg_class_superunion): New macros.
702         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
703         (ira_reg_class_union): Rename to ira_reg_class_subunion.
704         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
705         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
706         (ira_tune_allocno_costs_and_cover_classes): Rename to
707         ira_tune_allocno_costs.
708         (ira_debug_hard_regs_forest): New.
709         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
710         (ira_object_conflict_iter_next): Fix comments.
711         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
712         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
713         cover_class to aclass.
714         (ira_allocate_and_accumulate_costs): Ditto.
715         (ira_allocate_and_set_or_copy_costs): Ditto.
716
717         * opts.c (decode_options): Remove ira_cover_class check.
718
719         * ira-color.c: Remove mentioning cover classes from the file.  Use
720         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
721         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
722         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
723         (splay-tree.h): Remove include.
724         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
725         before copy_freq_compare_func.
726         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
727         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
728         New definitions.
729         (hard_regs_roots, hard_regs_node_vec): Ditto.
730         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
731         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
732         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
733         (create_new_object_hard_regs_node): Ditto.
734         (add_new_object_hard_regs_node_to_forest): Ditto.
735         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
736         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
737         Ditto.
738         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
739         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
740         (remove_unused_object_hard_regs_nodes): Ditto.
741         (enumerate_object_hard_regs_nodes): Ditto.
742         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
743         (object_hard_regs_subnode_t): Ditto.
744         (struct object_hard_regs_subnode): Ditto.
745         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
746         (setup_object_hard_regs_subnode_index): Ditto.
747         (get_object_hard_regs_subnodes_num): Ditto.
748         (form_object_hard_regs_nodes_forest): Ditto.
749         (finish_object_hard_regs_nodes_tree): Ditto.
750         (finish_object_hard_regs_nodes_forest): Ditto.
751         (allocnos_have_intersected_live_ranges_p): Rename to
752         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
753         (pseudos_have_intersected_live_ranges_p): Rename to
754         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
755         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
756         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
757         (update_copy_costs): Remove assert.  Skip cost update if the hard
758         reg does not belong the class.
759         (assign_hard_reg): Process only profitable hard regs.
760         (uncolorable_allocnos_num): Make it scalar.
761         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
762         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
763         and ira_reg_class_max_nregs.
764         (bucket_allocno_compare_func): Check frequency first.
765         (sort_bucket): Add compare function as a parameter.
766         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
767         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
768         (push_allocno_to_stack): Rewrite for checking new allocno
769         colorability.
770         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
771         (push_only_colorable): Pass new parameter to sort_bucket.
772         (push_allocno_to_spill): Remove.
773         (allocno_spill_priority_compare): Make it inline and rewrite.
774         (splay_tree_allocate, splay_tree_free): Remove.
775         (allocno_spill_sort_compare): New function.
776         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
777         build and use splay tree.  Choose first allocno in uncolorable
778         allocno bucket to spill.  Remove setting spill cost.
779         (all_conflicting_hard_regs): Remove.
780         (setup_allocno_available_regs_num): Check only profitable hard
781         regs.  Print info about hard regs nodes.
782         (setup_allocno_left_conflicts_size): Remove.
783         (put_allocno_into_bucket): Don't call
784         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
785         (improve_allocation): New.
786         (color_allocnos): Call setup_profitable_hard_regs,
787         form_object_hard_regs_nodes_forest, improve_allocation,
788         finish_object_hard_regs_nodes_forest.  Setup spill cost.
789         (print_loop_title): Use pressure classes.
790         (color_allocnso): Ditto.
791         (do_coloring): Remove allocation and freeing splay_tree_node_pool
792         and allocnos_for_spilling.
793         (ira_sort_regnos_for_alter_reg): Don't setup members
794         {first,next}_coalesced_allocno.
795         (color): Remove allocating and freeing removed_splay_allocno_vec.
796         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
797         prohibited_class_mode_regs.
798
799         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
800         formatting.
801         (update_allocno_pressure_excess_length): Use pressure classes.
802         (inc_register_pressure, dec_register_pressure): Check for pressure
803         class.
804         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
805         pressure class.  Use ira_reg_class_nregs instead of
806         ira_reg_class_max_nregs.
807         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
808         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
809         (single_reg_class): Use ira_reg_class_nregs instead of
810         ira_reg_class_max_nregs.
811         (process_bb_node_lives): Use pressure classes.
812
813         * ira-emit.c: Remove mentioning cover classes from the file.  Use
814         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
815         (change_loop): Use pressure classes.
816         (modify_move_list): Call ira_set_allocno_class instead of
817         ira_set_allocno_cover_class.
818
819         * ira-build.c: Remove mentioning cover classes from the file.  Use
820         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
821         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
822         ALLOCNO_UPDATED_CLASS_COST instead of
823         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
824         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
825         (ira_create_allocno): Remove initialization of
826         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
827         ALLOCNO_COLORABLE_P.
828         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
829         Update conflict regs for the objects.
830         (create_cap_allocno): Remove assert.  Don't propagate
831         ALLOCNO_AVAILABLE_REGS_NUM.
832         (ira_free_allocno_costs): New function.
833         (finish_allocno): Change a part of code into call of
834         ira_free_allocno_costs.
835         (low_pressure_loop_node_p): Use pressure classes.
836         (object_range_compare_func): Don't compare classes.
837         (setup_min_max_conflict_allocno_ids): Ditto.
838
839         * loop-invariant.c: Remove mentioning cover classes from the file.
840         Use ira_pressure_classes and ira_pressure_classes_num instead of
841         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
842         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
843         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
844         Use reg_allocno_class instead of reg_cover_class.
845         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
846         STACK_REG_COVER_CLASS.
847         (get_regno_cover_class): Rename to get_regno_pressure_class.
848         (move_loop_invariants): Initialize and finalize regstat.
849
850         * ira.c: Remove mentioning cover classes from the file.  Add
851         comments about coloring without cover classes.  Use ALLOCNO_CLASS
852         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
853         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
854         setup_class_subset_and_memory_move_costs.
855         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
856         (setup_cover_and_important_classes): Rename to
857         setup_allocno_and_important_classes.
858         (setup_class_translate_array): New.
859         (setup_class_translate): Call it for allocno and pressure classes.
860         (cover_class_order): Rename to allocno_class_order.
861         (comp_reg_classes_func): Use ira_allocno_class_translate instead
862         of ira_class_translate.
863         (reorder_important_classes): Set up ira_important_class_nums.
864         (setup_reg_class_relations): Set up ira_reg_class_superunion.
865         (print_class_cover): Rename to print_classes.  Add parameter.
866         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
867         Print pressure classes too.
868         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
869         setup_reg_subclasses.
870         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
871         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
872         (setup_prohibited_class_mode_regs): Use
873         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
874         (clarify_prohibited_class_mode_regs): New function.
875         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
876         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
877         (ira_init_once): Initialize them.
878         (free_register_move_costs): Process them.
879         (ira_init): Move calls of find_reg_classes and
880         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
881         Call clarify_prohibited_class_mode_regs.
882         (ira_no_alloc_reg): Remove.
883         (too_high_register_pressure_p): Use pressure classes.
884
885         * sched-deps.c: Remove mentioning cover classes from the file.
886         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
887         ira_pressure_classes and ira_pressure_classes_num instead of
888         ira_reg_class_cover_size and ira_reg_class_cover.
889         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
890         sched_regno_pressure_class instead of sched_regno_cover_class.
891         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
892         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
893
894         * ira.h: Add 2010 to Copyright.
895         (ira_no_alloc_reg): Remove external.
896         (struct target_ira): Rename x_ira_hard_regno_cover_class,
897         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
898         x_ira_class_translate to x_ira_hard_regno_allocno_class,
899         x_ira_allocno_classes_num, x_ira_allocno_classes, and
900         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
901         x_ira_pressure_classes, x_ira_pressure_class_translate, and
902         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
903         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
904         x_ira_no_alloc_regs.
905         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
906         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
907         ira_allocno_classes_num and ira_allocno_classes.
908         (ira_class_translate): Rename to ira_allocno_class_translate.
909         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
910         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
911         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
912         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
913         (ira_no_alloc_regs): New.
914
915         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
916         classes from the file.  Use ALLOCNO_CLASS instead of
917         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
918         ALLOCNO_COVER_CLASS_COST.
919         (regno_cover_class): Rename to regno_aclass.
920         (record_reg_classes): Use ira_reg_class_subunion instead of
921         ira_reg_class_union.
922         (record_address_regs): Check overflow.
923         (scan_one_insn): Ditto.
924         (print_allocno_costs): Print total mem cost fore regional allocation.
925         (print_pseudo_costs): Use REG_N_REFS.
926         (find_costs_and_classes): Use classes intersected with them on the
927         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
928         ira_reg_class_union.  Use ira_allocno_class_translate and
929         regno_aclass instead of ira_class_translate and regno_cover_class.
930         Modify code for finding regno_aclass.  Setup preferred classes for
931         the next pass.
932         (setup_allocno_cover_class_and_costs): Rename to
933         setup_allocno_class_and_costs.  Use regno_aclass instead of
934         regno_cover_class.  Use ira_set_allocno_class instead of
935         ira_set_allocno_cover_class.
936         (init_costs, finish_costs): Use regno_aclass instead of
937         regno_cover_class.
938         (ira_costs): Use setup_allocno_class_and_costs instead of
939         setup_allocno_cover_class_and_costs.
940         (ira_tune_allocno_costs_and_cover_classes): Rename to
941         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
942         by processing objects.  Use ira_reg_class_max_nregs instead of
943         ira_reg_class_nregs.
944
945         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
946
947         * sched-int.h: Remove mentioning cover classes from the file.
948         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
949
950         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
951         classes from the file.
952         (struct reg_pref): Rename coverclass into allocnoclass.
953         (reg_cover_class): Rename to reg_allocno_class.
954
955         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
956
957         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
958
959         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
960
961         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
962
963         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
964
965         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
966
967         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
968
969         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
970
971         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
972
973         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
974
975         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
976         (i386_ira_cover_classes): Ditto.
977
978         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
979
980         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
981
982         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
983
984         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
985
986         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
987
988         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
989
990         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
991         (mips_ira_cover_classes): Ditto.
992
993         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
994
995         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
996
997         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
998
999         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
1000
1001         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
1002
1003         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
1004         (IRA_COVER_CLASSES_VSX): Ditto.
1005
1006         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
1007         (rs6000_ira_cover_classes): Ditto.
1008
1009         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
1010
1011         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
1012
1013         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
1014
1015         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
1016
1017         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
1018
1019         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
1020
1021         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
1022
1023         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
1024
1025         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
1026
1027         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
1028
1029 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
1030
1031         PR debug/48253
1032         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
1033         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
1034         dw_fde_unlikely_section_end_label, cold_in_std_section,
1035         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
1036         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
1037         fields.
1038         (output_fde): Use dw_fde_second_{begin,end} if second is
1039         true, otherwise dw_fde_{begin,end}.
1040         (output_call_frame_info): Test dw_fde_second_begin != NULL
1041         instead of dw_fde_switched_sections.
1042         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
1043         fields, initialize new fields.  Initialize in_std_section
1044         unconditionally from the first partition.
1045         (dwarf2out_end_epilogue): Don't override dw_fde_end when
1046         dw_fde_second_begin is non-NULL.
1047         (dwarf2out_switch_text_section): Stop initializing removed
1048         dw_fde_struct fields, initialize new fields, initialize
1049         also dw_fde_end here.  Set dw_fde_switch_cfi even when
1050         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
1051         (struct var_loc_list_def): Add last_before_switch field.
1052         (arange_table, arange_table_allocated, arange_table_in_use,
1053         ARANGE_TABLE_INCREMENT, add_arange): Removed.
1054         (size_of_aranges): Count !in_std_section and !second_in_std_section
1055         hunks in fdes, instead of looking at arange_table_in_use.
1056         (output_aranges): Add aranges_length argument, don't call
1057         size_of_aranges here.  Instead of using aranges_table*
1058         emit ranges for fdes when !in_std_section resp.
1059         !second_in_std_section.
1060         (dw_loc_list): Break ranges crossing section switch.
1061         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
1062         use dw_fde_second_end instead of dw_fde_end as end of last range.
1063         (gen_subprogram_die): Don't call add_arange.  Use
1064         dw_fde_{begin,end} for first partition and if switched
1065         section dw_fde_second_{begin,end} for the second.
1066         (var_location_switch_text_section_1,
1067         var_location_switch_text_section): New functions.
1068         (dwarf2out_begin_function): Initialize cold_text_section even
1069         when function_section () isn't text_section.
1070         (prune_unused_types): Don't walk arange_table.
1071         (dwarf2out_finish): Don't needlessly test
1072         flag_reorder_blocks_and_partition when testing cold_text_section_used.
1073         If info_section_emitted, call size_of_aranges and if it indicates
1074         non-empty .debug_aranges, call output_aranges with the computed
1075         size.  Stop using removed dw_fde_struct fields, use
1076         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
1077         for second.
1078
1079         PR debug/48203
1080         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
1081         create ENTRY_VALUE if incoming or address of incoming's MEM
1082         is a hard REG.
1083         * dwarf2out.c (mem_loc_descriptor): Don't emit
1084         DW_OP_GNU_entry_value of DW_OP_fbreg.
1085         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
1086         on ENTRY_VALUE is able to find the canonical parameter VALUE.
1087         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
1088         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
1089         ENTRY_VALUE_EXPs.
1090         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
1091         is a REG_P or MEM_P with REG_P address, compute hash directly
1092         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
1093         (preserve_only_constants): Don't clear VALUES forwaring
1094         ENTRY_VALUE to some other VALUE.
1095
1096 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
1097
1098         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
1099         instead of GEN_INT.
1100
1101 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
1102
1103         * cfgexpand.c (expand_gimple_cond): Always set the source location and
1104         block before expanding the statement.
1105         (expand_gimple_stmt_1): Likewise.  Set them here...
1106         (expand_gimple_stmt): ...and not here.  Tidy.
1107         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
1108         unknown.
1109
1110 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
1111
1112         * Makefile.in: New rule for cprop.o.
1113         * gcse.c: Move constant/copy propagation to cprop.c.
1114         (compute_local_properties): Only handle expression tables.
1115         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
1116         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
1117         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
1118         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
1119         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
1120         compute_cprop_data, find_used_regs, try_replace_reg,
1121         find_avail_set, cprop_jump, constprop_register, cprop_insn,
1122         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
1123         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
1124         find_bypass_set, reg_killed_on_edge, bypass_block,
1125         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
1126         execute_rtl_cprop, pass_rtl_cprop): Move to...
1127         * cprop.c: ...here.  New file, constant/copy propagation for RTL
1128         moved from gcse.c to here with minor cleanups in duplicated code.
1129
1130 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
1131
1132         * config/i386/i386.c (flag_opts): Fix a typo in
1133         -mavx256-split-unaligned-store.
1134
1135 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
1136
1137         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
1138         LIBCALL_VALUE): Remove macros.
1139         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1140         TARGET_FUNCTION_VALUE_REGNO_P): Define.
1141         (h8300_function_value, h8300_libcall_value,
1142         h8300_function_value_regno_p): New functions.
1143
1144 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
1145
1146         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
1147
1148 2011-03-28  Jeff Law  <law@redhat.com>
1149
1150         * tree-ssa-threadupdate.c (redirect_edges): Call
1151         create_edge_and_update_destination_phis as needed.
1152         (create_edge_and_update_destination_phis): Accept new BB argument.
1153         All callers updated.
1154         (thread_block): Do not update the profile when threading around
1155         intermediate blocks.
1156         (thread_single_edge): Likewise.
1157         (determine_bb_domination_status): If BB is not a successor of the
1158         loop header, return NONDOMINATING.
1159         (register_jump_thread): Note when we register a jump thread around
1160         an intermediate block.
1161         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
1162         (thread_across_edge): Use it.
1163
1164 2011-03-28  Tristan Gingold  <gingold@adacore.com>
1165
1166         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
1167         when for_return is 2.
1168
1169 2011-03-28  Jeff Law  <law@redhat.com>
1170
1171         * var-tracking.c (canonicalize_values_mark): Delete unused
1172         lhs assignment.
1173         (canonicalize_values_star, set_variable_part): Likewise.
1174         (clobber_variable_part, delete_variable_part): Likewise.
1175
1176 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
1177
1178         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
1179
1180 2011-03-28  Martin Jambor  <mjambor@suse.cz>
1181
1182         * tree-inline.c (expand_call_inline): Do not check that destination
1183         node is analyzed.
1184         (optimize_inline_calls): Assert that destination node is analyzed.
1185         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
1186         not call tree_lowering_passes.
1187         * cgraph.h (cgraph_analyze_function): Declare.
1188         * cgraphunit.c (cgraph_analyze_function): Make public.
1189
1190 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
1191
1192         * config/sparc/sparc-opts.h: New.
1193         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
1194         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
1195         (sparc_option_override): Store processor_type enumeration rather
1196         than string in cpu_default.  Remove name and enumeration from
1197         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
1198         without using sparc_select.  Use target_flags_explicit instead of
1199         fpu_option_set.
1200         * config/sparc/sparc.h (enum processor_type): Move to
1201         sparc-opts.h.
1202         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
1203         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
1204         HeaderInclude entry.
1205         (mcpu=, mtune=): Use Var and Enum.
1206         (sparc_processor_type): New Enum and EnumValue entries.
1207
1208 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1209             Iain Sandoe  <iains@gcc.gnu.org>
1210
1211         PR target/48245
1212         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
1213
1214 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
1215
1216         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
1217         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
1218         Insert new statements at it in lieu of STMT.
1219         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
1220         * tree-vect-stmts.c (vectorizable_store): Likewise.
1221         (vectorizable_load): Likewise.
1222
1223 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
1224
1225         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
1226         (divtf3): Ditto.
1227         (multf3): Ditto.
1228         (subtf3): Ditto.
1229
1230 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
1231
1232         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
1233         unaligned 256bit load/store.
1234         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
1235         (*avx_movdqu<avxmodesuffix>): Likewise.
1236
1237 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1238
1239         PR target/48288
1240         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
1241         * config/pa/pa.md (iordi3): Use new predicate in expander.
1242         (iorsi3): Likewise.
1243
1244 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
1245
1246         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
1247         FUNCTION_VALUE_REGNO_P): Remove macros.
1248         * config/mips/mips-protos.h (mips_function_value): Remove.
1249         * config/mips/mips.c (mips_function_value): Rename to...
1250         (mips_function_value_1): ... this. Make static.  Handle receiving
1251         the function type in 'fn_decl_or_type' argument.
1252         (mips_function_value, mips_libcall_value,
1253         mips_function_value_regno_p): New function.
1254         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1255         TARGET_FUNCTION_VALUE_REGNO_P): Define.
1256
1257 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
1258
1259         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
1260         and -mavx256-split-unaligned-store.
1261         (ix86_option_override_internal): Split 32-byte AVX unaligned
1262         load/store by default.
1263         (ix86_avx256_split_vector_move_misalign): New.
1264         (ix86_expand_vector_move_misalign): Use it.
1265
1266         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
1267         -mavx256-split-unaligned-store.
1268
1269         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
1270         256bit load/store.  Generate unaligned store on misaligned memory
1271         operand.
1272         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
1273         256bit load/store.
1274         (*avx_movdqu<avxmodesuffix>): Likewise.
1275
1276         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
1277         -mavx256-split-unaligned-store.
1278
1279 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
1280
1281         PR target/38598
1282         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
1283         Update commentary.
1284
1285 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
1286
1287         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
1288         opno arguments with an expand_operand.  Use create_input_operand.
1289         (mips_prepare_builtin_target): Delete.
1290         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
1291         functions.
1292         (mips_expand_builtin_direct): Use create_output_operand and
1293         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
1294         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
1295         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
1296
1297 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
1298
1299         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
1300         function.
1301         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
1302
1303 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
1304
1305         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
1306         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
1307         basic blocks and call commit_edge_insertions directly.
1308         (fixup_abnormal_edges): Move from here to...
1309         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
1310         on the edges and return whether some have actually been inserted.
1311         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
1312         compensation code.
1313
1314 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
1315
1316         PR rtl-optimization/48144
1317         * sel-sched-ir.c (merge_history_vect): Factor out from ...
1318         (merge_expr_data): ... here.
1319         (av_set_intersect): Rename to av_set_code_motion_filter.
1320         Update all callers.  Call merge_history_vect when an expression
1321         is found in both sets.
1322         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
1323
1324 2011-03-26  Alan Modra  <amodra@gmail.com>
1325
1326         * config/rs6000/predicates.md (word_offset_memref_op): Handle
1327         cmodel medium addresses.
1328         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
1329         64-bit gpr loads and stores.
1330         (rs6000_secondary_reload_ppc64): New function.
1331         * config/rs6000/rs6000-protos.h: Declare it.
1332         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
1333
1334 2011-03-26  Alan Modra  <amodra@gmail.com>
1335
1336         PR target/47487
1337         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
1338         GNU Go in traceback table.
1339
1340 2011-03-25  Richard Henderson  <rth@redhat.com>
1341
1342         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
1343         if there are exactly 6 operands.
1344         (set_storage_via_setmem): Similarly.
1345
1346 2011-03-25  Kai Tietz  <ktietz@redhat.com>
1347
1348         * collect2.c (write_c_file_stat): Handle backslash
1349         as right-hand directory separator.
1350         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
1351         checking just for slash.
1352         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
1353         instead of checking for trailing slash.
1354         * gcc.c (record_temp_file): Use filename_cmp instead
1355         of strcmp.
1356         (do_spec_1): Likewise.
1357         (replace_outfile_spec_function): Likewise.
1358         (is_directory): Use filename_ncmp instead of strncmp.
1359         (print_multilib_info): Likewise.
1360         * gcov.c (find_source): Use filename_cmp instead
1361         instead of strcmp.
1362         (make_gcov_file_name): Fix order of slash/backslash
1363         checks.
1364         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
1365         (add_standard_paths): Likewise.
1366         * mips-tfile.c (saber_stop): Handle backslash.
1367         * prefix.c (update_path): Use filename_ncmp instead of
1368         strncmp.
1369         * profile.c (output_location): Use filename_cmp instead
1370         of strcmp.
1371         * read-md.c (handle_toplevel_file): Handle backslash.
1372         * tlink.c (frob_extension):  Likewise.
1373         * tree-cfg.c (same_line_p): Use filename_cmp instead of
1374         strcmp.
1375         * tree-dump.c (dequeue_and_dump): Handle backslash.
1376         * tree.c (get_file_function_name): Likewise.
1377         * gengtype.c (read_input_list): Likewise.
1378         (get_file_realbasename): Likewise.
1379         (get_output_file_with_visibility): Use filename_cmp
1380         instead of strcmp.
1381
1382 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
1383
1384         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
1385         case to VFPv1.
1386
1387 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
1388
1389         * fold-const.c (expr_location_or): New function.
1390         (fold_truth_not_expr): Call it.
1391
1392 2011-03-25  Jeff Law  <law@redhat.com>
1393
1394         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
1395         va_end.
1396         * c-family/c-common.c (def_fn_type): Likewise.
1397         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
1398         * emit-rtl.c (gen_rtvec): Likewise.
1399         * lto/lto-lang.c (def_fn_type): Likewise.
1400
1401 2011-03-25  Richard Guenther  <rguenther@suse.de>
1402
1403         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
1404         also generate copies.
1405         (fini_copy_prop): Handle constant values properly.
1406
1407 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
1408
1409         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
1410         mode size instead of bitsize with DWARF2_ADDR_SIZE.
1411         (hash_loc_operands, compare_loc_operands): Handle
1412         DW_OP_GNU_entry_value.
1413
1414 2011-03-25  Kai Tietz  <ktietz@redhat.com>
1415
1416         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
1417         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
1418         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
1419         comment and use macro TARGET_64BIT_MS_ABI instead.
1420         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
1421         and change default behavior for 32-bit MS_ABI.
1422         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
1423         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
1424         32-bit, too.
1425         (ix86_cfun_abi): Likewise.
1426         (ix86_maybe_switch_abi): Adjust comment.
1427         (init_cumulative_args): Check for bit-ness in MS_ABI case.
1428         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
1429         instead of checking for SYSV_ABI.
1430         (ix86_nsaved_sseregs): Likewise.
1431         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
1432         to 16 bytes.
1433         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
1434         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
1435         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
1436         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
1437         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
1438
1439 2011-03-25  Richard Guenther  <rguenther@suse.de>
1440
1441         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
1442         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
1443         (verify_gimple): Remove.
1444         * tree-cfg.c (verify_gimple_call): Merge verification
1445         from verify_stmts.
1446         (verify_gimple_phi): Merge verification from verify_stmts.
1447         (verify_gimple_label): New function.
1448         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
1449         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
1450         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
1451         (verify_stmts): Rename to verify_gimple_in_cfg.
1452         (verify_gimple_in_cfg): New function.
1453         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
1454         * tree-ssa.c (verify_ssa): Likewise.
1455         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
1456
1457 2011-03-25  Richard Guenther  <rguenther@suse.de>
1458
1459         * passes.c (init_optimization_passes): Add FRE pass after
1460         early SRA.
1461
1462 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
1463             Andrew Stubbs  <ams@codesourcery.com>
1464
1465         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
1466         for Cortex-A8.
1467         (arm_movdi_vfp_cortexa8): New pattern.
1468         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
1469         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
1470         instructions when tuning for Cortex-A8.  Set attribute "arch".
1471         * config/arm/arm.md: Move include arm-tune.md up a bit.
1472         (define_attr "arch"): Add "onlya8" and "nota8" values.
1473         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
1474
1475 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
1476
1477         PR bootstrap/48282
1478         Revert:
1479         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
1480
1481         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
1482         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
1483         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
1484         * passes.c (init_optimization_passes): Move
1485         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
1486
1487 2011-03-25  Kai Tietz  <ktietz@redhat.com>
1488
1489         * c-typeck.c (comptypes_internal): Replace target
1490         hook call of comp_type_attributes by version in tree.c file.
1491         * gimple.c (gimple_types_compatible_p_1): Likewise.
1492         * tree-ssa.c (useless_type_conversion_p): Likewise.
1493         * tree.c (build_type_attribute_qual_variant): Likewise.
1494         (attribute_value_equal): New static helper function.
1495         (comp_type_attributes): New function.
1496         (merge_attributes): Use attribute_value_equal for comparison.
1497         (attribute_list_contained): Likewise.
1498         * tree.h (comp_type_attributes): New prototype.
1499
1500 2011-03-25  Richard Guenther  <rguenther@suse.de>
1501
1502         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
1503         of complex types at -O0.
1504         (verify_gimple_assign_binary): Likewise.
1505         (verify_gimple_assign_ternary): Likewise.
1506
1507 2011-03-24  Mark Wielaard  <mjw@redhat.com>
1508
1509         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
1510         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
1511
1512 2011-03-24  Mark Wielaard  <mjw@redhat.com>
1513
1514         PR debug/48041
1515         * dwarf2out.c (output_abbrev_section): Only write table when
1516         abbrev_die_table_in_use > 1.
1517
1518 2011-02-24  Richard Henderson  <rth@redhat.com>
1519
1520         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
1521         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
1522         (alpha_expand_unaligned_load_words): Use extql.
1523         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
1524         (emit_insxl): Handle all modes for consistency.
1525
1526 2011-02-24  Richard Henderson  <rth@redhat.com>
1527
1528         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
1529         (alpha_expand_unaligned_load): Likewise.
1530         (alpha_expand_unaligned_store): Likewise.
1531         (alpha_expand_unaligned_load_words): Likewise.
1532         (alpha_expand_unaligned_store_words): Likewise.
1533         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
1534         (alpha_split_lock_test_and_set_12): Likewise.
1535         (print_operand, alpha_fold_builtin_extxx): Likewise.
1536         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
1537         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
1538         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
1539         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
1540         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
1541         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
1542         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
1543         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
1544         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
1545         (extwl, extll, extql): Similarly.
1546         (inswh, inslh, insqh): Similarly.
1547         (mskbl, mskwl, mskll, mskql): Similarly.
1548         (mskwh, msklh, mskqh): Similarly.
1549
1550 2011-02-24  Richard Henderson  <rth@redhat.com>
1551
1552         * config/alpha/alpha.md (attribute isa): Add er, ner.
1553         (attribute enabled): Handle them.
1554         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
1555
1556 2011-02-24  Richard Henderson  <rth@redhat.com>
1557
1558         * config/alpha/alpha.md (attribute isa): Add vms.
1559         (attribute enabled): Handle it.
1560         (*movsf): Merge *movsf_{nofix,fix,nofp}.
1561         (*movdf): Merge *movdf_{nofix,fix,nofp}.
1562         (*movtf): Rename from *movtf_internal for consistency.
1563         (*movsi): Merge with *movsi_nt_vms.
1564         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
1565         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
1566         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
1567         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
1568
1569 2011-02-24  Richard Henderson  <rth@redhat.com>
1570
1571         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
1572         (extendqisi2, extendhisi2): Likewise.
1573         (extendqidi2): Simplify BWX/non-BWX expansions.
1574         (extendhidi2): Similarly.
1575
1576 2011-02-24  Richard Henderson  <rth@redhat.com>
1577
1578         * config/alpha/alpha.md (attribute isa): New.
1579         (attribute enabled): New.
1580         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
1581         (zero_extendqisi2, zero_extendqidi2): Similarly.
1582         (zero_extendhisi2, zero_extendhidi2): Similarly.
1583         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
1584
1585 2011-02-24  Richard Henderson  <rth@redhat.com>
1586
1587         * config/alpha/predicates.md (input_operand): Revert last change;
1588         update comment to mention 32-bit VMS rather than Windows.
1589
1590 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
1591
1592         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
1593         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
1594         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
1595         * passes.c (init_optimization_passes): Move
1596         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
1597
1598 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
1599
1600         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
1601
1602 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
1603
1604         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
1605         correctly.
1606
1607 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
1608
1609         PR debug/48204
1610         * simplify-rtx.c (simplify_const_unary_operation): Call
1611         real_convert when changing mode class with FLOAT_EXTEND.
1612
1613 2011-03-24  Nick Clifton  <nickc@redhat.com>
1614
1615         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
1616         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
1617         * config/rx/rx.c (rx_option_override): Set align_jumps,
1618         align_loops and align_labels if not set by the user.
1619         (rx_align_for_label): New function.
1620         (rx_max_skip_for_label): New function.
1621         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
1622         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
1623         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
1624         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
1625         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
1626
1627 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
1628
1629         PR rtl-optimization/48263
1630         * optabs.c (expand_binop_directly): Reinstate convert_modes code
1631         and original commutative_p handling.  Use maybe_gen_insn.
1632
1633 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1634
1635         * reload.c (find_reloads_subreg_address): Add address_reloaded
1636         parameter and return true there if the full address has been
1637         reloaded.
1638         (find_reloads_toplev): Pass address_reloaded flag.
1639         (find_reloads_address_1): Don't use address_reloaded parameter.
1640
1641 2011-03-24  Jeff Law  <law@redhat.com>
1642
1643         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
1644         unused variable "ann".
1645         (remove_unused_locals): Likewise.
1646
1647         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
1648         statement.
1649
1650         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
1651         after it is freed.
1652
1653 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1654
1655         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
1656         for invalid symbolic addresses.
1657         (s390_secondary_reload): Don't use s390_check_symref_alignment for
1658         larl operands.
1659
1660 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
1661
1662         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
1663         the argument in calls to fold_truth_not_expr.
1664
1665 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
1666
1667         * tree.c (record_node_allocation_statistics): New function.
1668         (make_node_stat, copy_node_stat, build_string): Call it.
1669         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
1670         (build1_stat, build_omp_clause): Likewise.
1671
1672 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
1673
1674         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
1675         last commit.
1676
1677 2011-03-24  Richard Guenther  <rguenther@suse.de>
1678
1679         PR tree-optimization/48271
1680         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
1681         blocks that still exist.
1682
1683 2011-03-24  Richard Guenther  <rguenther@suse.de>
1684
1685         PR tree-optimization/48270
1686         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
1687         not free datarefs before ddrs.
1688
1689 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
1690
1691         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
1692         from the address built for a reference with variable offset.
1693
1694 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
1695
1696         PR target/48237
1697         * config/i386/i386.md (*movdf_internal_rex64): Do not split
1698         alternatives that can be handled with movq or movabsq insn.
1699         (*movdf_internal): Disable for !TARGET_64BIT.
1700         (*movdf_internal_nointeger): Ditto.
1701         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
1702
1703 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
1704
1705         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
1706         (FUNCTION_ARG_ADVANCE): Likewise.
1707         * tm.texi.in: Change references to them to hook references.
1708         * tm.texi: Regenerate.
1709         * targhooks.c (default_function_arg): Eliminate check for target macro.
1710         (default_function_incoming_arg): Likewise.
1711         (default_function_arg_advance): Likewise.
1712         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
1713         (function_arg_advance): Likewise.
1714         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
1715
1716 2011-03-24  Richard Guenther  <rguenther@suse.de>
1717
1718         PR middle-end/48269
1719         * tree-object-size.c (addr_object_size): Do not double-account
1720         for MEM_REF offsets.
1721
1722 2011-03-24  Diego Novillo  <dnovillo@google.com>
1723
1724         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
1725         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
1726         (lto_input_data_block): Move from lto-opts.c.  Make extern.
1727         Update all users.
1728         (lto_input_string): Rename from input_string.  Make extern.
1729         Update all users.
1730         * lto-streamer-out.c (lto_output_string_with_length): Rename from
1731         output_string_with_length.
1732         Output 0 to indicate a non-NULL string.  Update all callers to
1733         not emit 0.
1734         (lto_output_string): Rename from output_string.  Make extern.
1735         Update all users.
1736         (lto_output_decl_state_streams): Make extern.
1737         (lto_output_decl_state_refs): Make extern.
1738         * lto-streamer.h (lto_input_string): Declare.
1739         (lto_input_data_block): Declare.
1740         (lto_output_string): Declare.
1741         (lto_output_string_with_length): Declare.
1742         (lto_output_decl_state_streams): Declare.
1743         (lto_output_decl_state_refs): Declare.
1744
1745 2011-03-24  Richard Guenther  <rguenther@suse.de>
1746
1747         PR tree-optimization/46562
1748         * tree.c (build_invariant_address): New function.
1749         * tree.h (build_invariant_address): Declare.
1750         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
1751         a renamed function moved ...
1752         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
1753         Take valueization callback parameter.
1754         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
1755         * gimple-fold.h: New file.
1756         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
1757         (ccp_fold, fold_const_aggregate_ref,
1758         fold_ctor_reference, fold_nonarray_ctor_reference,
1759         fold_array_ctor_reference, fold_string_cst_ctor_reference,
1760         get_base_constructor): Move ...
1761         * gimple-fold.c: ... here.
1762         (gimple_fold_stmt_to_constant_1): New function
1763         split out from ccp_fold.  Take a valueization callback parameter.
1764         Valueize all operands.
1765         (gimple_fold_stmt_to_constant): New wrapper function.
1766         (fold_const_aggregate_ref_1): New function split out from
1767         fold_const_aggregate_ref.  Take a valueization callback parameter.
1768         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
1769         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
1770         invariant POINTER_PLUS_EXPRs to invariant form.
1771         (vn_valueize): New function.
1772         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
1773         * tree-vrp.c (vrp_valueize): New function.
1774         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
1775         to fold statements to constants.
1776         * tree-ssa-pre.c (eliminate): Properly guard propagation of
1777         function declarations.
1778         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
1779         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
1780
1781 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
1782
1783         * config/h8300/predicates.md (jump_address_operand): Fix register
1784         mode check.
1785
1786 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
1787
1788         * doc/invoke.texi (max-stores-to-sink): Document.
1789         * params.h (MAX_STORES_TO_SINK): Define.
1790         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
1791         if either vectorization or if-conversion is disabled.
1792         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
1793         tree-vect-data-refs.c vect_equal_offsets.
1794         (dr_equal_offsets_p): New function.
1795         (find_data_references_in_bb): Remove static.
1796         * tree-data-ref.h (find_data_references_in_bb): Declare.
1797         (dr_equal_offsets_p): Likewise.
1798         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
1799         (vect_drs_dependent_in_basic_block): Update calls to
1800         vect_equal_offsets.
1801         (vect_check_interleaving): Likewise.
1802         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
1803         (cond_if_else_store_replacement): Rename to...
1804         (cond_if_else_store_replacement_1): ... this.  Change arguments and
1805         documentation.
1806         (cond_if_else_store_replacement): New function.
1807         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
1808         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
1809
1810 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
1811
1812         PR target/46934
1813         * config/arm/arm.md (casesi): Use the gen_int_mode() function
1814         to subtract lower bound instead of GEN_INT().
1815
1816 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
1817
1818         PR other/48179
1819         PR other/48221
1820         PR other/48234
1821         * doc/extend.texi (Alignment): Move section to match order in TOC.
1822         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
1823         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
1824
1825 2011-03-23  Jeff Law  <law@redhat.com>
1826
1827         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
1828         before removing the edge.
1829
1830         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
1831         it may have been freed by redirect_branch_edge or
1832         redirect_edge_succ_nodup.
1833
1834 2011-03-23  Richard Guenther  <rguenther@suse.de>
1835
1836         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
1837         (check_va_list_escapes): Likewise.
1838         (check_all_va_list_escapes): Likewise.
1839
1840 2011-03-23  Richard Guenther  <rguenther@suse.de>
1841
1842         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
1843         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
1844         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
1845         (alias.o): Likewise.
1846         (ipa-type-escape.o): Remove.
1847         (ipa-struct-reorg.o): Likewise.
1848         (GTFILES): Remove ipa-struct-reorg.c.
1849         * alias.c: Do not include ipa-type-escape.h.
1850         * tree-ssa-alias.c: Likewise.
1851         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
1852         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
1853         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
1854         and ipa-type-escape passes.
1855         * tree-pass.h (pass_ipa_type_escape): Remove.
1856         (pass_ipa_struct_reorg): Likewise.
1857         * ipa-struct-reorg.h: Remove.
1858         * ipa-struct-reorg.c: Likewise.
1859         * ipa-type-escape.h: Likewise.
1860         * ipa-type-escape.c: Likewise.
1861         * doc/invoke.texi (-fipa-struct-reorg): Remove.
1862         (--param struct-reorg-cold-struct-ratio): Likewise.
1863         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
1864         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
1865         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
1866
1867 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1868
1869         * config/s390/2084.md: Enable all insn reservations also for z9_ec
1870         cpu attribute value.
1871         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
1872         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
1873         * config/s390/s390.c (processor_flags_table): New constant array.
1874         (s390_handle_arch_option): Remove.
1875         (s390_handle_option): Remove s390_handle_arch_option invocations
1876         and OPT_mwarn_framesize_ handling.
1877         (s390_option_override): Remove s390_handle_arch_option invocation.
1878         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
1879         warnings.
1880         * config/s390/s390.md (cpu attribute): Add z9_ec value.
1881         * config/s390/s390.opt (s390_tune, s390_arch)
1882         (march=): Replace s390_arch_option enum and values with
1883         processor_type.  Set variable name to s390_arch.  Set
1884         initialization value.
1885         (mtune=): Replace s390_arch_option with processor_type.  Set
1886         variable name to s390_tune.  Set initialization value.
1887
1888 2011-03-23  Julian Brown  <julian@codesourcery.com>
1889
1890         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
1891         accesses which are not naturally aligned.
1892
1893 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
1894
1895         PR target/47553
1896         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
1897
1898 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
1899
1900         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
1901         parameter from "int" to "enum insn_code".
1902         (expand_operand_type): New enum.
1903         (expand_operand): New structure.
1904         (create_expand_operand): New function.
1905         (create_fixed_operand, create_output_operand): Likewise
1906         (create_input_operand, create_convert_operand_to): Likewise.
1907         (create_convert_operand_from, create_address_operand): Likewise.
1908         (create_integer_operand): Likewise.
1909         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
1910         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
1911         (expand_insn, expand_jump_insn): Likewise.
1912         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
1913         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
1914         (expand_movstr, expand_builtin___clear_cache): Likewise.
1915         (expand_builtin_lock_release): Likewise.
1916         * explow.c (allocate_dynamic_stack_space): Likewise.
1917         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
1918         and use the default handling in that case.
1919         * expmed.c (check_predicate_volatile_ok): Delete.
1920         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
1921         (emit_cstore): Likewise.
1922         * expr.c (emit_block_move_via_movmem): Likewise.
1923         (set_storage_via_setmem, expand_assignment): Likewise.
1924         (emit_storent_insn, try_casesi): Likewise.
1925         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
1926         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
1927         (expand_vec_shift_expr, expand_binop_directly): Likewise.
1928         (expand_twoval_unop, expand_twoval_binop): Likewise.
1929         (expand_unop_direct, emit_indirect_jump): Likewise.
1930         (emit_conditional_move, vector_compare_rtx): Likewise.
1931         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
1932         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
1933         (expand_sync_lock_test_and_set): Likewise.
1934         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
1935         (emit_unop_insn): Likewise.
1936         (expand_copysign_absneg): Change icode to an insn_code.
1937         (create_convert_operand_from_type): New function.
1938         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
1939         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
1940         (expand_insn, expand_jump_insn): Likewise.
1941         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
1942         than const_int_operand for operand 2.
1943
1944 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1945
1946         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
1947         if possible.
1948
1949 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
1950
1951         * emit-rtl.c (emit_pattern_before_noloc): New function.
1952         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
1953         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
1954         (emit_pattern_after_noloc): New function.
1955         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
1956         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
1957
1958 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
1959
1960         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
1961         (__ffsDI2): Likewise.
1962
1963 2011-03-22  Richard Henderson  <rth@redhat.com>
1964
1965         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
1966         of !TARGET_ABI_OPEN_VMS.
1967         (alpha_trampoline_init, alpha_start_function): Likewise.
1968         (alpha_expand_epilogue, alpha_file_start): Likewise.
1969         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
1970         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
1971         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
1972         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
1973         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
1974
1975 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
1976
1977         * config/s390/s390-opts.h: New.
1978         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
1979         s390_arch_flags, s390_warn_framesize, s390_stack_size,
1980         s390_stack_guard): Remove.
1981         (s390_handle_arch_option): Return void.  Take enum
1982         s390_arch_option value instead of string and searching array.
1983         (s390_handle_option): Don't assert that global structures are in
1984         use.  Access variables via opts pointer.  Use error_at.  Don't use
1985         sscanf for -mstack-guard= or -mstack-size=.  Update call to
1986         s390_handle_arch_option.
1987         (s390_option_override): Update call to s390_handle_arch_option.
1988         (s390_emit_prologue): Use %d format for s390_stack_size in
1989         diagnostic.  Use %wd for HOST_WIDE_INT.
1990         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
1991         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
1992         * config/s390/s390.opt (config/s390/s390-opts.h): New
1993         HeaderInclude entry.
1994         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
1995         s390_arch_flags, s390_warn_framesize): New Variable entries.
1996         (s390_arch_option): New Enum and EnumValue entries.
1997         (march=): Use Enum instead of Var.
1998         (mstack-guard=, mstack-size=): Use UInteger and Var.
1999         (mtune=): Use Enum.
2000
2001 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2002
2003         * config/score/score.c (score_handle_option): Don't assert that
2004         global structures are in use.  Access target_flags via opts
2005         pointer.  Use value of -march= option to determine target_flags
2006         settings.
2007         * config/score/score.opt (march=): Use Enum.
2008         (score_arch): New Enum and EnumValue entries.
2009
2010 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2011
2012         * config/mep/mep.c (option_mtiny_specified): Remove.
2013         (mep_option_override): Move register handling for -mivc2 from
2014         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
2015         instead of option_mtiny_specified.
2016         (mep_handle_option): Access target_flags via opts pointer.  Don't
2017         assert that global structures are in use.  Defer part of -mivc2
2018         handling and move it to mep_option_override.
2019         * config/mep/mep.opt (IVC2): New Mask entry.
2020         (mivc2): Use Var and Defer instead of Mask.
2021
2022 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2023
2024         * config/v850/v850-opts.h: New.
2025         * config/v850/v850.c (small_memory): Replace with
2026         small_memory_physical_max array.  Make that array static const.
2027         (v850_handle_memory_option): Take integer value of argument.  Take
2028         gcc_options pointer, option text and location.  Return void.
2029         Update for changes to small memory structures.
2030         (v850_handle_option): Access target_flags via opts pointer.  Don't
2031         assert that global structures are in use.  Update calls to
2032         v850_handle_memory_option.
2033         (v850_encode_data_area): Update references to small memory settings.
2034         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
2035         (enum small_memory_type): Move to v850-opts.h.
2036         * config/v850/v850.opt (config/v850/v850-opts.h): New
2037         HeaderInclude entry.
2038         (small_memory_max): New Variable entry.
2039         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
2040         (mtda, mzda): Likewise.
2041
2042 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2043
2044         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
2045         pointer.  Don't assert that global structures are in use.
2046
2047 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2048
2049         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
2050         via opts pointer.  Don't assert that global structures are in use.
2051
2052 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2053
2054         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
2055         (munix=93): Use Var.
2056         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
2057         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
2058         * config/pa/pa-opts.h: New.
2059         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
2060         (pa_handle_option): Don't assert that global structures are in
2061         use.  Access target_flags via opts pointer.  Don't handle
2062         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
2063         OPT_munix_98 here.
2064         (pa_option_override): Handle deferred OPT_mfixed_range_.
2065
2066 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2067
2068         * config/mn10300/mn10300-opts.h: New.
2069         * config/mn10300/mn10300.c (mn10300_processor,
2070         mn10300_tune_string): Remove.
2071         (mn10300_handle_option): Don't assert that global structures are
2072         in use.  Access mn10300_processor via opts pointer.  Don't handle
2073         OPT_mtune_ here.
2074         * config/mn10300/mn10300.h (enum processor_type): Move to
2075         mn10300-opts.h.
2076         (mn10300_processor): Remove.
2077         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
2078         HeaderInclude entry.
2079         (mn10300_processor): New Variable entry.
2080         (mtune=): Use Var.
2081
2082 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2083
2084         * config/microblaze/microblaze.c: Don't include opts.h.
2085         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
2086         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
2087         (mno-clearbss): Use Var and Warn.
2088
2089 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2090
2091         * config/m32r/m32r-opts.h: New.
2092         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
2093         (m32r_handle_option): Don't assert that global structures are in
2094         use.  Access target_flags and m32r_cache_flush_func via opts
2095         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
2096         OPT_mno_flush_trap here.
2097         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
2098         include of m32r-opts.h.
2099         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
2100         HeaderInclude entry.
2101         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
2102         (mmodel=): Use Enum and Var.
2103         (m32r_model): New Enum and EnumValue entries.
2104         (mno-flush-trap): Use Var.
2105         (msdata=): Use Enum and Var.
2106         (m32r_sdata): New Enum and EnumValue entries.
2107
2108 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2109
2110         * config/m32c/m32c.c: Don't include opts.h.
2111         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
2112         m32c_handle_option): Remove.
2113         (m32c_option_override): Check global_options_set.x_target_memregs
2114         instead of target_memregs_set.
2115         * config/m32c/m32c.h (target_memregs): Remove.
2116         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
2117         variable.
2118
2119 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2120
2121         * config/iq2000/iq2000-opts.h: New.
2122         * config/iq2000/iq2000.c: Don't include opts.h.
2123         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
2124         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
2125         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
2126         HeaderInclude entry.
2127         (iq2000_tune): New Variable entry.
2128         (march=): Add comment.  Use Enum.
2129         (iq2000_arch): New Enum and EnumValue entries.
2130         (mcpu=): Use Enum and Var.
2131         (iq2000_tune): New Enum and EnumValue entries.
2132
2133 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2134
2135         * config/ia64/ia64-opts.h: New.
2136         * config/ia64/ia64.c (ia64_tune): Remove.
2137         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
2138         here.  Use error_at.
2139         (ia64_option_override): Handle deferred OPT_mfixed_range_.
2140         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
2141         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
2142         HeaderInclude entry.
2143         (ia64_tune): New Variable entry.
2144         (mfixed-range=): Use Defer and Var.
2145         (mtune=): Use Enum and Var.
2146         (ia64_tune): New Enum and EnumValue entries.
2147
2148 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2149
2150         * config/frv/frv-opts.h: New.
2151         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
2152         frv-opts.h.
2153         (frv_cpu_type): Remove.
2154         * config/frv/frv.c: Don't include opts.h.
2155         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
2156         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
2157         (frv_cpu_type): New Variable entry.
2158         (frv_cpu): New Enum and EnumValue entries.
2159
2160 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2161
2162         * config/cris/cris.c (cris_handle_option): Access target_flags via
2163         opts pointer.  Don't assert that global structures are in use.
2164         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
2165         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
2166
2167 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2168
2169         * config/bfin/bfin-opts.h: New.
2170         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
2171         bfin_si_revision, bfin_workarounds): Remove.
2172         (bfin_cpus): Make static const.
2173         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
2174         not bfin_lib_id_given.
2175         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
2176         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
2177         pointer. Use error_at.  Don't assert that global structures are in use.
2178         * config/bfin/bfin.h: Include bfin-opts.h.
2179         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
2180         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
2181         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
2182         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
2183         entries.
2184
2185 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2186
2187         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
2188         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
2189         or -msoft-float here.
2190         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
2191         -msoft-float and -mhard-float.
2192         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
2193         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
2194         msoft-float.
2195         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
2196         -msoft-float.
2197         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
2198         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
2199         not mhard-float.
2200         (LIBGCC_SPEC): Don't handle -msoft-float.
2201         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
2202         -mhard-float.
2203         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
2204         msoft-float.
2205         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
2206         -mfloat-abi=*, not -msoft-float and -mhard-float.
2207         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
2208         -msoft-float.
2209         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
2210         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
2211         mhard-float and msoft-float.
2212         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
2213         mfloat-abi=soft in comments, not mhard-float and msoft-float.
2214         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
2215         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
2216         mhard-float.
2217         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
2218         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
2219         msoft-float.
2220         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
2221         not mhard-float.
2222         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
2223         not msoft-float.
2224
2225 2011-03-22  Richard Henderson  <rth@redhat.com>
2226
2227         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
2228         TARGET_ABI_WINDOWS_NT.
2229         (alpha_output_function_end_prologue): Likewise.
2230         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
2231         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
2232         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
2233         (trap, *movsi_nt_vms): Likewise.
2234         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
2235         (*tablejump_osf_nt_internal): Remove.
2236         * config/alpha/predicates.md (input_operand): Only test Pmode.
2237
2238 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2239
2240         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
2241         via opts pointer.  Use error_at.  Don't assert that global
2242         structures are in use.
2243
2244 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2245
2246         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
2247         (ix86_handle_option): Access ix86_isa_flags and
2248         ix86_isa_flags_explicit via opts pointer.  Don't assert that
2249         global structures are in use.
2250         (ix86_function_specific_save, ix86_function_specific_restore):
2251         Update ix86_isa_flags_explicit field name.
2252         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
2253         (ix86_isa_flags_explicit): Rename TargetSave entry to
2254         x_ix86_isa_flags_explicit.
2255
2256 2011-03-22  Richard Henderson  <rth@redhat.com>
2257
2258         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
2259         (alpha_option_override, direct_return): Likewise.
2260         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
2261         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
2262         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
2263         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
2264         (alpha_expand_epilogue, alpha_end_function): Likewise.
2265         (alpha_init_libfuncs): Likewise.
2266         (struct machine_function): Remove unicosmk members.
2267         (print_operand) ['t']: Remove.
2268         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
2269         unicosmk_output_module_name, unicosmk_output_common,
2270         current_section_align, unicosmk_output_text_section_asm_op,
2271         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
2272         unicosmk_section_type_flags, unicosmk_unique_section,
2273         unicosmk_asm_named_section, unicosmk_insert_attributes,
2274         unicosmk_output_align, unicosmk_defer_case_vector,
2275         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
2276         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
2277         unicosmk_output_ssib, unicosmk_add_call_info_word,
2278         unicosmk_extern_head, unicosmk_output_default_externs,
2279         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
2280         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
2281         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
2282         * config/alpha/alpha-protos.h: Update.
2283         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
2284         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
2285         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
2286         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
2287         (*mulsi_se, mulvsi3): Likewise.
2288         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
2289         (*divmodsi_internal, call, call_value, realign): Likewise.
2290         (moddi3, umoddi3): Likewise; remove duplicate expander.
2291         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
2292         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
2293         (*movdi_nofix): Remove r/U alternative.
2294         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
2295         * config/alpha/constraints.md ("U"): Remove.
2296         * config/alpha/predicates.md (call_operand"): Don't test
2297         TARGET_ABI_UNICOSMK.
2298
2299 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2300
2301         * target.def (handle_option): Take gcc_options and
2302         cl_decoded_option pointers and location_t.
2303         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
2304         * doc/tm.texi: Regenerate.
2305         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
2306         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
2307         * lto-opts.c (lto_reissue_options): Generate option structure for
2308         targetm.handle_option call.
2309         * opts.c (target_handle_option): Update call to
2310         targetm.handle_option.  Remove assertions about values now passed
2311         down to hook.
2312         * targhooks.c (default_target_handle_option): New.
2313         * targhooks.h (default_target_handle_option): Declare.
2314         * config/alpha/alpha.c: Include opts.h.
2315         (alpha_handle_option): Update to new hook interface.
2316         * config/arm/arm.c: Include opts.h.
2317         (arm_handle_option): Update to new hook interface.
2318         * config/arm/t-arm (arm.o): Update dependencies.
2319         * config/bfin/bfin.c: Include opts.h.
2320         (bfin_handle_option): Update to new hook interface.
2321         * config/cris/cris.c: Include opts.h.
2322         (cris_handle_option): Update to new hook interface.
2323         * config/frv/frv.c: Include opts.h.
2324         (frv_handle_option): Update to new hook interface.
2325         * config/i386/i386.c: Include opts.h.
2326         (ix86_handle_option): Update to new hook interface.
2327         (ix86_valid_target_attribute_inner_p): Generate option structure
2328         for call to ix86_handle_option.
2329         * config/i386/t-i386 (i386.o): Update dependencies.
2330         * config/ia64/ia64.c: Include opts.h.
2331         (ia64_handle_option): Update to new hook interface.
2332         * config/ia64/t-ia64 (ia64.o): Update dependencies.
2333         * config/iq2000/iq2000.c: Include opts.h.
2334         (iq2000_handle_option): Update to new hook interface.
2335         * config/m32c/m32c.c: Include opts.h.
2336         (m32c_handle_option): Update to new hook interface.
2337         * config/m32r/m32r.c: Include opts.h.
2338         (m32r_handle_option): Update to new hook interface.
2339         * config/m68k/m68k.c: Include opts.h.
2340         (m68k_handle_option): Update to new hook interface.
2341         * config/mep/mep.c: Include opts.h.
2342         (mep_handle_option): Update to new hook interface.
2343         * config/microblaze/microblaze.c: Include opts.h.
2344         (microblaze_handle_option): Update to new hook interface.
2345         * config/mips/mips.c: Include opts.h.
2346         (mips_handle_option): Update to new hook interface.
2347         * config/mn10300/mn10300.c: Include opts.h.
2348         (mn10300_handle_option): Update to new hook interface.
2349         * config/pa/pa.c: Include opts.h.
2350         (pa_handle_option): Update to new hook interface.
2351         * config/pdp11/pdp11.c: Include opts.h.
2352         (pdp11_handle_option): Update to new hook interface.
2353         * config/rs6000/rs6000.c: Include opts.h.
2354         (rs6000_handle_option): Update to new hook interface.
2355         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
2356         * config/rx/rx.c: Include opts.h.
2357         (rx_handle_option): Update to new hook interface.
2358         * config/s390/s390.c: Include opts.h.
2359         (s390_handle_option): Update to new hook interface.
2360         * config/score/score.c: Include opts.h.
2361         (score_handle_option): Update to new hook interface.
2362         * config/sh/sh.c: Include opts.h.
2363         (sh_handle_option): Update to new hook interface.
2364         * config/sparc/sparc.c: Include opts.h.
2365         (sparc_handle_option): Update to new hook interface.
2366         * config/v850/v850.c: Include opts.h.
2367         (v850_handle_option): Update to new hook interface.
2368
2369 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2370
2371         * gcc.c (driver_unknown_option_callback): Only permit and save
2372         unknown -Wno- options.
2373         (driver_wrong_lang_callback): Save options directly instead of via
2374         driver_unknown_option_callback.
2375
2376 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
2377
2378         * combine.c (simplify_set): Try harder to find the best CC mode when
2379         simplifying a nested COMPARE on the RHS.
2380
2381 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
2382
2383         * config/alpha/gnu.h: Remove.
2384         * config/arc: Remove directory.
2385         * config/arm/netbsd.h: Remove.
2386         * config/arm/t-pe: Remove.
2387         * config/crx: Remove directory.
2388         * config/i386/netbsd.h: Remove.
2389         * config/m68hc11: Remove directory.
2390         * config/m68k/uclinux-oldabi.h: Remove.
2391         * config/mcore/mcore-pe.h: Remove.
2392         * config/mcore/t-mcore-pe: Remove.
2393         * config/netbsd-aout.h: Remove.
2394         * config/rs6000/gnu.h: Remove.
2395         * config/sh/sh-symbian.h: Remove.
2396         * config/sh/symbian-base.c: Remove.
2397         * config/sh/symbian-c.c: Remove.
2398         * config/sh/symbian-cxx.c: Remove.
2399         * config/sh/symbian-post.h: Remove.
2400         * config/sh/symbian-pre.h: Remove.
2401         * config/sh/t-symbian: Remove.
2402         * config/svr3.h: Remove.
2403         * config/vax/netbsd.h: Remove.
2404         * config.build: Don't handle i[34567]86-*-pe.
2405         * config.gcc: Remove handling of deprecations for most deprecated
2406         targets.
2407         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
2408         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
2409         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
2410         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
2411         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
2412         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
2413         Remove cases.
2414         * config.host: Don't handle i[34567]86-*-pe.
2415         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
2416         (ASM_SPEC32): Don't handle -mcall-gnu.
2417         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
2418         -mcall-gnu.
2419         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
2420         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
2421         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
2422         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
2423         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
2424         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
2425         conditional on SYMBIAN.
2426         * configure.ac: Don't handle powerpc*-*-gnu*.
2427         * configure: Regenerate.
2428         * doc/extend.texi (interrupt attribute): Don't mention CRX.
2429         * doc/install-old.texi (m6811, m6812): Don't mention.
2430         * doc/install.texi (arc-*-elf*): Don't document multilib option.
2431         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
2432         (m68k-uclinuxoldabi): Don't mention.
2433         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
2434         Remove.
2435         (-mcall-gnu): Remove.
2436         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
2437         families): Remove constraint documentation.
2438
2439 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
2440
2441         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
2442         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
2443         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
2444
2445 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
2446
2447         * config/avr/avr-protos.h (expand_epilogue): Change prototype
2448         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
2449         * config/avr/avr.c (init_cumulative_args)
2450         (avr_function_arg_advance): Use it.
2451         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
2452         sibcall epilogues.
2453         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
2454         (avr_function_ok_for_sibcall): ...this new function.
2455         (avr_lookup_function_attribute1): New static Function.
2456         (avr_naked_function_p, interrupt_function_p)
2457         (signal_function_p, avr_OS_task_function_p)
2458         (avr_OS_main_function_p): Use it.
2459         * config/avr/avr.md ("sibcall", "sibcall_value")
2460         ("sibcall_epilogue"): New expander.
2461         ("*call_insn", "*call_value_insn"): New insn.
2462         ("call_insn", "call_value_insn"): Remove
2463         ("call", "call_value", "epilogue"): Change expander to handle
2464         sibling calls.
2465
2466 2011-03-21  Nick Clifton  <nickc@redhat.com>
2467
2468         * doc/invoke.texi (Overall Options): Move closing brace to end of
2469         options list.
2470         (Optimization Options): Add missing @gol.
2471         (Directory Options): Likewise.
2472         (i386 and x86-64 Options): Likewise.
2473         (RS6000 and PowerPC Options): Likewise.
2474         (i386 and x86-64 Windows Options): Likewise.
2475         (V850 Options): Add text missing from descriptions.
2476
2477 2011-03-22  Richard Henderson  <rth@redhat.com>
2478
2479         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
2480         (avr_incoming_return_addr_rtx): New.
2481         (emit_push_byte): New.
2482         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
2483         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
2484         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
2485         (emit_pop_byte): New.
2486         (expand_epilogue): Use it.  Pop frame pointer by bytes.
2487         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
2488         (INCOMING_RETURN_ADDR_RTX): New.
2489         (INCOMING_FRAME_SP_OFFSET): New.
2490         (ARG_POINTER_CFA_OFFSET): New.
2491         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
2492         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
2493         (pophi): Remove.
2494
2495         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
2496
2497 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
2498
2499         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
2500         (FUNCTION_ARG_ADVANCE): Likewise.
2501         * tm.texi.in: Change references to them to hook references.
2502         * tm.texi: Regenerate.
2503         * targhooks.c (default_function_arg): Eliminate check for target
2504         macro.
2505         (default_function_incoming_arg): Likewise.
2506         (default_function_arg_advance): Likewise.
2507         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
2508         (function_arg_advance): Likewise.
2509         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
2510
2511 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
2512
2513         * tree.c (build_call_1): New function.
2514         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
2515
2516 2011-03-22  Richard Guenther  <rguenther@suse.de>
2517
2518         PR tree-optimization/48228
2519         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
2520         for single-arg PHIs.
2521
2522 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
2523
2524         PR rtl-optimization/48143
2525         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
2526         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
2527         sse2_cvtps2pd): Likewise.
2528
2529 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2530
2531         * recog.c (canonicalize_change_group): Use validate_unshare_change.
2532
2533 2011-03-22  Richard Guenther  <rguenther@suse.de>
2534
2535         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
2536         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
2537         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
2538         and REALIGN_LOAD_EXPR.
2539         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
2540         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
2541         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
2542         DOT_PROD_EXPR case ...
2543         (expand_expr_real_2): ... here.
2544         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
2545         and REALIGN_LOAD_EXPR.
2546         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
2547         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
2548         (vect_create_epilog_for_reduction): Likewise.
2549         (vectorizable_reduction): Likewise.
2550         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
2551         * tree-vect-stmts.c (vectorizable_load): Likewise.
2552
2553 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
2554
2555         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
2556
2557 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2558
2559         * config/s390/s390.c (s390_delegitimize_address): Fix offset
2560         handling for PLTOFF/GOTOFF.
2561
2562 2011-03-22  Nick Clifton  <nickc@redhat.com>
2563
2564         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
2565         trailing backslash from the end of the macro definition.
2566
2567 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2568
2569         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
2570         and PLT unspecs.
2571
2572 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
2573
2574         * expr.h (prepare_operand): Move to...
2575         * optabs.h (prepare_operand): ...here and change the insn code
2576         parameter from "int" to "enum insn_code".
2577         (insn_operand_matches): Declare.
2578         * expr.c (init_expr_target): Use insn_operand_matches.
2579         (compress_float_constant): Likewise.
2580         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
2581         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
2582         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
2583         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
2584         Likewise.
2585         (gen_cond_trap): Likewise.
2586         (prepare_operand): Likewise.  Change icode to an insn_code.
2587         (insn_operand_matches): New function.
2588         * reload.c (find_reloads_address_1): Use insn_operand_matches.
2589         * reload1.c (gen_reload): Likewise.
2590         * targhooks.c (default_secondary_reload): Likewise.
2591
2592 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
2593
2594         * config/alpha/alpha.md (unspec): New define_c_enum.
2595         (unspecv): Ditto.
2596
2597 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
2598
2599         PR debug/48214
2600         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
2601         between a call and its CALL_ARG_LOCATION note.
2602
2603 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
2604
2605         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
2606
2607 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
2608
2609         PR c/42544
2610         PR c/48197
2611         * c-common.c (shorten_compare): If primopN is first sign-extended
2612         to opN and then zero-extended to result type, set primopN to opN.
2613
2614 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
2615
2616         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
2617         for barrier handlers.
2618
2619 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
2620
2621         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
2622         UNSPEC constants to be in the unspec enumeration, and redefine
2623         all UNSPECV constants to be in the unspecv enumeration, so that
2624         dumps print which unspec/unspec_volatile this is.
2625         * config/rs6000/vector.md (UNSPEC_*): Ditto.
2626         * config/rs6000/paired.md (UNSPEC_*): Ditto.
2627         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
2628         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
2629         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
2630
2631         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
2632         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
2633         UNSPECV_LWSYNC, since these are used as unspec_volatile.
2634         * config/rs6000/sync.md (isync, lwsync): Ditto.
2635
2636 2011-03-21  Richard Guenther  <rguenther@suse.de>
2637
2638         * params.def (lto-min-partition): Fix typo.
2639
2640 2011-03-21  Richard Guenther  <rguenther@suse.de>
2641
2642         PR c/47939
2643         * c-decl.c (grokdeclarator): Drop to the main variant only
2644         for array types.  Drop flag_gen_aux_info check.
2645
2646 2011-03-21  Richard Guenther  <rguenther@suse.de>
2647
2648         PR translation/47911
2649         * params.def (lto-partitions): Fix typo.
2650         (lto-min-partition): Fix wording.
2651
2652 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
2653
2654         * config/rs6000/t-freebsd: Remove duplication from file.
2655
2656 2011-03-21  Richard Guenther  <rguenther@suse.de>
2657
2658         PR middle-end/47661
2659         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
2660
2661 2011-03-21  Richard Guenther  <rguenther@suse.de>
2662
2663         PR lto/48210
2664         * params.def (lto-partitions): Require at least 1 partition.
2665
2666 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2667
2668         * gthr-solaris.h: Remove.
2669         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
2670         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
2671         (LIB_SPEC): Likewise.
2672         * config/sol2.opt (threads): Remove.
2673         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
2674         (sparc*-*-solaris2*): Likewise.
2675         * configure.ac (enable_threads): Enable solaris support.
2676         * configure: Regenerate.
2677         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
2678         * doc/install.texi (Configuration, --enable-threads=lib): Remove
2679         solaris.
2680
2681 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2682
2683         * config.gcc: Obsolete *-*-solaris2.8*.
2684         * doc/install.texi (Specific, *-*-solaris2*): Document it.
2685
2686 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2687
2688         PR bootstrap/48135
2689         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
2690         reference.  Solaris 8 perl works.
2691
2692 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2693
2694         PR bootstrap/48135
2695         * doc/install.texi (Prerequisites): Move jar etc. up.
2696         Explain support library version requirements.
2697
2698 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2699
2700         PR bootstrap/48135
2701         * doc/install.texi (Prerequisites): Move Perl to build
2702         requirements.  Always necessary on Solaris 2 with Sun ld.
2703
2704 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2705
2706         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
2707         binutils 2.21.
2708         (Specific, i?86-*-solaris2.[89]): Likewise.
2709         (Specific, i?86-*-solaris2.10): Likewise.
2710         (Specific, mips-sgi-irix6): Likewise.
2711         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
2712         Update for binutils 2.21.
2713
2714 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2715
2716         * configure.ac (gcc_cv_lto_plugin): Fix typo.
2717         Allow -fuse-linker-plugin for non-default plugin linker.
2718         * configure: Regenerate.
2719
2720 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
2721
2722         PR bootstrap/48167
2723         * gengtype.c (files_rules): Added rule for cp/parser.h.
2724
2725 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
2726
2727         PR target/48213
2728         * config/s390/s390.c (s390_delegitimize_address): Don't call
2729         lowpart_subreg if orig_x has BLKmode.
2730
2731 2011-03-21  Kai Tietz  <ktietz@redhat.com>
2732
2733         PR target/12171
2734         * doc/plugins.texi: Adjust documentation for plugin register_callback.
2735         * tree.h (attribute_spec): Add new member affects_type_identity.
2736         * attribs.c (empty_attribute_table): Adjust attribute_spec
2737         initializers.
2738         * config/alpha/alpha.c: Likewise.
2739         * config/arc/arc.c: Likewise.
2740         * config/arm/arm.c: Likewise.
2741         * config/avr/avr.c: Likewise.
2742         * config/bfin/bfin.c: Likewise.
2743         * config/crx/crx.c: Likewise.
2744         * config/darwin.h: Likewise.
2745         * config/h8300/h8300.c: Likewise.
2746         * config/i386/cygming.h: Likewise.
2747         * config/i386/i386.c: Likewise.
2748         * config/ia64/ia64.c: Likewise.
2749         * config/m32c/m32c.c: Likewise.
2750         * config/m32r/m32r.c: Likewise.
2751         * config/m68hc11/m68hc11.c: Likewise.
2752         * config/m68k/m68k.c: Likewise.
2753         * config/mcore/mcore.c: Likewise.
2754         * config/mep/mep.c: Likewise.
2755         * config/microblaze/microblaze.c: Likewise.
2756         * config/mips/mips.c: Likewise.
2757         * config/rs6000/rs6000.c: Likewise.
2758         * config/rx/rx.c: Likewise.
2759         * config/sh/sh.c: Likewise.
2760         * config/sol2.h: Likewise.
2761         * config/sparc/sparc.c: Likewise.
2762         * config/spu/spu.c: Likewise.
2763         * config/stormy16/stormy16.c: Likewise.
2764         * config/v850/v850.c: Likewise.
2765
2766 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
2767
2768         * simplify-rtx.c (simplify_binary_operation_1): Handle
2769         (xor (and A B) C) case when B and C are both constants.
2770
2771 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
2772
2773         * tree-dfa.c (add_referenced_var): Fix typo in comment.
2774
2775 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
2776
2777         PR bootstrap/48168
2778         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
2779
2780 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
2781
2782         PR rtl-optimization/48156
2783         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
2784         assume df and df_lr are not NULL.
2785
2786 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2787
2788         PR debug/48023
2789         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
2790         between a call and its CALL_ARG_LOCATION note.
2791
2792 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
2793
2794         PR debug/48178
2795         * config/sh/sh.c (find_barrier): Don't emit a constant pool
2796         between a call and its corresponding CALL_ARG_LOCATION note.
2797
2798 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
2799
2800         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
2801         instead of loop. Use HARD_REGISTER_NUM_P predicate.
2802         * haifa-sched.c (setup_ref_regs): Ditto.
2803         * caller-save.c (add_used_regs_1): Ditto.
2804         * dse.c (look_for_hardregs): Ditto.
2805         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
2806         * sched-rgn.c (check_live_1): Ditto.
2807
2808 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
2809
2810         * c-decl.c (diagnose_mismatched_decls): Give an error for
2811         redefining a typedef with variably modified type.
2812
2813 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
2814
2815         * c-decl.c (grokfield): Don't allow typedefs for structures or
2816         unions with no tag by default.
2817         * doc/extend.texi (Unnamed Fields): Update.
2818
2819 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
2820
2821         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
2822         Rewrite using indirect functions.
2823         (lwp_slwpcb): Ditto.
2824         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
2825         (avx_vinsertf128<mode>): Ditto.
2826
2827 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2828
2829         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
2830         unspecs.
2831
2832 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2833
2834         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
2835         splitting between a call and its corresponding CALL_ARG_LOCATION note.
2836
2837 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
2838
2839         PR rtl-optimization/48170
2840         * gcse.c (hoist_code): Remove bogus asserts.
2841
2842 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
2843
2844         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
2845         computation for prologue/epilogue.
2846
2847 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2848
2849         * Makefile.in (check-consistency): Remove.
2850
2851 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
2852
2853         PR debug/48176
2854         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
2855         arange_table_in_use is 0, but either text_section_used or
2856         cold_text_section_used is true.  Don't call it if
2857         !info_section_emitted.
2858
2859 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
2860
2861         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
2862         FUNCTION_VALUE_REGNO_P): Remove.
2863         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
2864         Remove.
2865         * config/avr/avr.c (avr_ret_register): Make static inline.
2866         (avr_function_value_regno_p): New function.
2867         (avr_libcall_value): Make static. Add 'func' argument.
2868         (avr_function_value): Make static. Rename 'func' argument to
2869         'fn_decl_or_type', forward it to avr_libcall_value. Call
2870         avr_ret_register function instead of RET_REGISTER macro.
2871         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
2872
2873 2011-03-18  Jason Merrill  <jason@redhat.com>
2874
2875         PR c++/23372
2876         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
2877
2878 2011-03-18  Richard Guenther  <rguenther@suse.de>
2879
2880         * doc/install.texi (--enable-gold): Remove.
2881         (--with-plugin-ld): Document.
2882         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
2883
2884 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
2885
2886         PR middle-end/47790
2887         * expr.c (optimize_bitfield_assignment_op): Revamp to work
2888         again after expansion changes.
2889
2890 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
2891
2892         * combine.c (try_combine): Do simplification only call of
2893         subst() on i2 even when i1 is present. Update comments.
2894
2895 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
2896
2897         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
2898         and UNSPEC_PCREL_SYMOFF.
2899
2900 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2901
2902         * config/s390/s390.md: Use define_c_enum for the unspec constant
2903         definitions.
2904
2905 2011-03-18  Richard Henderson  <rth@redhat.com>
2906             Jakub Jelinek  <jakub@redhat.com>
2907
2908         PR bootstrap/48161
2909         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
2910         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
2911
2912 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
2913
2914         PR middle-end/47725
2915         * combine.c (cant_combine_insn_p): Don't check zero/sign
2916         extended hard registers.
2917
2918 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
2919
2920         PR middle-end/47725
2921         * combine.c (cant_combine_insn_p): Check zero/sign extended
2922         hard registers.
2923
2924 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
2925
2926         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2927         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
2928         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
2929         Change return type to bool.
2930         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2931
2932 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
2933
2934         PR debug/48163
2935         * var-tracking.c (prepare_call_arguments): If CALL target
2936         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
2937         pc instead of looking it up using cselib_lookup and use
2938         Pmode for it if x has VOIDmode.
2939         * dwarf2out.c (gen_subprogram_die): If also both first and
2940         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
2941
2942         PR debug/48163
2943         * function.c (assign_parms): For data.passed_pointer parms
2944         use MEM of data.entry_parm instead of data.entry_parm itself
2945         as DECL_INCOMING_RTL.
2946         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
2947         also when passed and declared mode is the same, DECL_RTL
2948         is a MEM with pseudo as address and DECL_INCOMING_RTL is
2949         a MEM too.
2950
2951 2011-03-16  Jeff Law  <law@redhat.com>
2952
2953         PR rtl-optimization/37273
2954         * ira-costs.c (scan_one_insn): Detect constants living in memory and
2955         handle them like argument loads from stack slots.  Do not double
2956         count memory for memory constants and argument loads from stack slots.
2957
2958 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
2959
2960         PR debug/48160
2961         * var-tracking.c (prepare_call_arguments): Check SUBREG.
2962
2963 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
2964
2965         PR target/48171
2966         * config/i386/i386.opt: Add Save to -mavx and -mfma.
2967
2968 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
2969
2970         PR bootstrap/48153
2971         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
2972         if dwarf_strict.
2973         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
2974         Clear call_arg_locations and call_arg_loc_last always.
2975
2976         PR middle-end/48152
2977         * var-tracking.c (prepare_call_arguments): If argument needs to be
2978         passed by reference, adjust argtype and mode.
2979
2980 2011-03-17  Richard Guenther  <rguenther@suse.de>
2981
2982         PR middle-end/48134
2983         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
2984         a value make sure to fold the statement.
2985
2986 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
2987
2988         PR target/43872
2989         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
2990         return condition with !cfun->calls_alloca.
2991
2992 2011-03-17  Richard Guenther  <rguenther@suse.de>
2993
2994         PR bootstrap/48148
2995         * lto-cgraph.c (input_overwrite_node): Clear the abstract
2996         origin for decls in other ltrans units.
2997         (input_varpool_node): Likewise.
2998
2999 2011-03-17  Richard Guenther  <rguenther@suse.de>
3000
3001         PR middle-end/48165
3002         * tree-object-size.c (compute_object_offset): Properly return
3003         the offset operand of MEM_REFs as sizetype.
3004
3005 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
3006
3007         PR rtl-optimization/48141
3008         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
3009         * dse.c: Include params.h.
3010         (active_local_stores_len): New variable.
3011         (add_wild_read, dse_step1): Clear it when setting active_local_stores
3012         to NULL.
3013         (record_store, check_mem_read_rtx): Decrease it when removing
3014         from the chain.
3015         (scan_insn): Likewise.  Increase it when adding to chain, if it
3016         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
3017         set active_local_stores to NULL before the addition.
3018         * Makefile.in (dse.o): Depend on $(PARAMS_H).
3019
3020         PR rtl-optimization/48141
3021         * dse.c (record_store): If no positions are needed in an insn
3022         that cannot be deleted, at least unchain it from active_local_stores.
3023
3024 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
3025
3026         PR debug/47510
3027         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
3028         (lookup_type_die_strip_naming_typedef): ... here.
3029         (get_context_die): Use it.
3030         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
3031         the anonymous struct named by the naming typedef.
3032
3033 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
3034
3035         PR target/48154
3036         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
3037         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
3038
3039 2011-03-16  Jeff Law  <law@redhat.com>
3040
3041         * tree-vrp.c (identify_jump_threads): Slightly simplify type
3042         check for operands of conditional.  Allow type to be a pointer.
3043
3044 2011-03-16  Richard Guenther  <rguenther@suse.de>
3045
3046         PR tree-optimization/48149
3047         * fold-const.c (fold_binary_loc): Fold
3048         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
3049
3050 2011-03-16  Richard Guenther  <rguenther@suse.de>
3051
3052         PR tree-optimization/26134
3053         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
3054         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
3055         (non_rewritable_mem_ref_base): Handle complex type component
3056         accesses, constrain offsets for vector and complex extracts
3057         more properly.
3058
3059 2011-03-16  Richard Guenther  <rguenther@suse.de>
3060
3061         PR tree-optimization/48146
3062         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
3063         operands avoiding the need for renaming.
3064
3065 2011-03-16  Richard Guenther  <rguenther@suse.de>
3066
3067         * gimple-fold.c (maybe_fold_reference): Open-code relevant
3068         constant folding.  Move MEM_REF canonicalization first.
3069         Rely on fold_const_aggregate_ref for initializer folding.
3070         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
3071
3072 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
3073
3074         PR middle-end/48136
3075         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
3076         arg0/arg1 or their arguments are always fold converted to matching
3077         types.
3078
3079         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
3080         to nargs.
3081
3082 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3083
3084         PR lto/46944
3085         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
3086         Handle in-tree gold.
3087         (ld_vers): Extract binutils version for gold.
3088         (gcc_cv_ld_hidden): Handle gold here.
3089         (gcc_cv_lto_plugin): Determine level of linker plugin support.
3090         * configure: Regenerate.
3091         * config.in: Regenerate.
3092         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
3093         -fuse-linker-plugin otherwise.
3094         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
3095         (LINK_COMMAND_SPEC): Use it.
3096         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
3097
3098 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
3099
3100         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
3101         * calls.c: Remove debug.h include.
3102         (emit_call_1): Don't call virtual_call_token debug hook.
3103         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
3104         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
3105         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
3106         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
3107         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
3108         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
3109         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
3110         dwarf2out_virtual_call): Remove.
3111         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
3112         copy_call_info and virtual_call hooks.
3113         (dwarf2out_init): Don't initialize vcall_insn_table,
3114         debug_dcall_section and debug_vcall_section.
3115         (prune_unused_types): Don't mark nodes from dcall_table.
3116         (dwarf2out_finish): Don't output dcall or vcall tables.
3117         * final.c (final_scan_insn): Don't call direct_call or
3118         virtual_call debug hooks.
3119         * debug.h (struct gcc_debug_hooks): Remove direct_call,
3120         virtual_call_token, copy_call_info and virtual_call hooks.
3121         (debug_nothing_uid): Remove prototype.
3122         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
3123         copy_call_info and virtual_call hooks.
3124         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3125         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
3126         * debug.c (do_nothing_debug_hooks): Likewise.
3127         (debug_nothing_uid): Remove.
3128         * doc/invoke.texi (-fenable-icf-debug): Remove.
3129         * common.opt (-fenable-icf-debug): Likewise.
3130
3131         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
3132         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
3133         call's MEM.  Handle functions returning aggregate through a hidden
3134         first pointer.  For virtual calls add clobbered pc to call arguments
3135         chain.
3136         * dwarf2out.c (gen_subprogram_die): Emit
3137         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
3138         can't be emitted.
3139
3140         PR debug/45882
3141         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
3142         * rtl.h (ENTRY_VALUE_EXP): Define.
3143         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
3144         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
3145         * print-rtl.c (print_rtx): Likewise.
3146         * gengtype.c (adjust_field_rtx_def): Likewise.
3147         * var-tracking.c (vt_add_function_parameter): Adjust
3148         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
3149         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
3150         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
3151         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
3152         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
3153
3154         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
3155         Call var_location debug hook even on CALL_INSNs.
3156         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
3157         * rtl.def (ENTRY_VALUE): New.
3158         * dwarf2out.c: Include cfglayout.h.
3159         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3160         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
3161         (struct call_arg_loc_node): New type.
3162         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
3163         tail_call_site_count): New variables.
3164         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
3165         DW_TAG_GNU_call_site_parameter.
3166         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
3167         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
3168         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
3169         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
3170         and DW_AT_GNU_all_source_call_sites.
3171         (mem_loc_descriptor): Handle ENTRY_VALUE.
3172         (add_src_coords_attributes): Don't add enything if
3173         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
3174         (dwarf2out_abstract_function): Save and clear call_arg_location,
3175         call_site_count and tail_call_site_count around dwarf2out_decl call.
3176         (gen_call_site_die): New function.
3177         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
3178         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
3179         (dwarf2out_function_decl): Clear call_arg_locations,
3180         call_arg_loc_last, set call_site_count and tail_call_site_count
3181         to -1 and free block_map.
3182         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
3183         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
3184         followed by any real instructions.
3185         (dwarf2out_begin_function): Set call_site_count and
3186         tail_call_site_count to 0.
3187         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
3188         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
3189         attempt to force a DIE for it and worst case remove the attribute.
3190         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
3191         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
3192         the decl itself.
3193         * var-tracking.c: Include tm_p.h.
3194         (vt_stack_adjustments): For calls call note_register_arguments.
3195         (argument_reg_set): New variable.
3196         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
3197         ensure the VALUE is resolved.
3198         (call_arguments): New variable.
3199         (prepare_call_arguments): New function.
3200         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
3201         (struct expand_loc_callback_data): Add ignore_cur_loc field.
3202         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
3203         always use the best expression.
3204         (vt_expand_loc): Add ignore_cur_loc argument.
3205         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
3206         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
3207         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
3208         note for all calls.
3209         (vt_add_function_parameter): Use cselib_lookup_from_insn.
3210         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
3211         argument.  Don't call cselib_preserve_only_values and
3212         cselib_reset_table.
3213         (note_register_arguments): New function.
3214         (vt_initialize): Compute argument_reg_set.  Call
3215         vt_add_function_parameters before processing basic blocks instead of
3216         afterwards.  For calls call prepare_call_arguments before calling
3217         cselib_process_insn.
3218         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
3219         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
3220         (var-tracking.o): Depend on $(TM_P_H).
3221         * cfglayout.h (insn_scope): New prototype.
3222         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
3223         * cfglayout.c (insn_scope): No longer static.
3224         * insn-notes.def (CALL_ARG_LOCATION): New.
3225         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
3226         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
3227         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
3228         nothing for DECL_EXTERNAL BLOCK_VARS.
3229
3230 2011-03-16  Alan Modra  <amodra@gmail.com>
3231
3232         PR target/45844
3233         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
3234         create invalid offset address for vsx splat insn.
3235         * config/rs6000/predicates.md (splat_input_operand): New.
3236         * config/rs6000/vsx.md (vsx_splat_*): Use it.
3237
3238 2011-03-15  Xinliang David Li  <davidxl@google.com>
3239
3240         PR c/47837
3241         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
3242         (normalize_preds): New function.
3243         (is_use_properly_guarded): Normalize def predicates.
3244
3245 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3246
3247         PR target/46788
3248         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
3249         in the output template.
3250
3251 2011-03-15  Richard Guenther  <rguenther@suse.de>
3252
3253         PR middle-end/47650
3254         * tree-pretty-print.c (dump_function_declaration): Properly
3255         dump unprototyped and varargs function types.
3256
3257 2011-03-15  Richard Guenther  <rguenther@suse.de>
3258
3259         PR tree-optimization/13954
3260         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
3261         and friends.
3262
3263 2011-03-15  Richard Guenther  <rguenther@suse.de>
3264
3265         PR tree-optimization/48037
3266         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
3267         selects into BIT_FIELD_REFs.
3268         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
3269         vector select.
3270
3271 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
3272
3273         PR tree-optimization/48129
3274         * builtins.c (fold_builtin_snprintf): Convert to type of
3275         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
3276         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
3277
3278 2011-03-15  Richard Guenther  <rguenther@suse.de>
3279
3280         PR tree-optimization/41490
3281         * tree-ssa-dce.c (propagate_necessity): Handle returns without
3282         value but with VUSE.
3283         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
3284         return statements.
3285         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
3286         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
3287         * tree-tailcall.c (find_tail_calls): Ignore returns.
3288
3289 2011-03-15  Richard Guenther  <rguenther@suse.de>
3290
3291         PR middle-end/48031
3292         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
3293         or variable-indexed array accesses when in gimple form.
3294
3295 2011-03-15  Richard Guenther  <rguenther@suse.de>
3296
3297         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
3298
3299 2011-03-15  Alan Modra  <amodra@gmail.com>
3300
3301         PR target/48032
3302         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
3303         presume symbol_refs without a symbol_ref_decl are suitably
3304         aligned, nor other trees we may see here.  Handle anchor symbols.
3305         (legitimate_constant_pool_address_p): Comment.  Add mode param.
3306         Check cmodel=medium addresses.  Adjust all calls.
3307         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
3308         creating cmodel=medium optimized access to locals.
3309         * config/rs6000/constraints.md (R): Pass QImode to
3310         legitimate_constant_pool_address_p.
3311         * config/rs6000/predicates.md (input_operand): Pass mode to
3312         legitimate_constant_pool_address_p.
3313         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
3314         Update prototype.
3315
3316 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
3317
3318         PR target/48053
3319         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
3320         64-bit constants being loaded into registers other than GPRs such
3321         as loading 0 into a VSX register.
3322
3323 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3324
3325         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
3326
3327 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
3328
3329         PR middle-end/47917
3330         * builtins.c (fold_builtin_snprintf): New function.
3331         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
3332         (fold_builtin_4): Likewise.
3333
3334         PR middle-end/38878
3335         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
3336         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
3337         and C - X == X also strip nops from +/-/p+ operand.
3338         When optimizing -X == C, fold C to arg0's type.
3339
3340         PR debug/47946
3341         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
3342         emit it as add_AT_int instead of add_AT_unsigned.
3343
3344 2011-03-14  Tom Tromey  <tromey@redhat.com>
3345
3346         * unwind-dw2.c: Include sys/sdt.h if it exists.
3347         (_Unwind_DebugHook): Use STAP_PROBE2.
3348         * config.in, configure: Rebuild.
3349         * configure.ac: Check for sys/sdt.h.
3350
3351 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
3352
3353         * config/i386/i386.md (ROUND_FLOOR): New constant.
3354         (ROUND_CEIL): Ditto.
3355         (ROUND_TRUNC): Ditto.
3356         (ROUND_MXCSR): Ditto.
3357         (ROUND_NO_EXC): Ditto.
3358         (rint<mode>2): Use new defines instead of numerical constants.
3359         (floor<mode>2): Ditto.
3360         (ceil<mode>2): Ditto.
3361         (btrunc<mode>2): Ditto.
3362         * config/i386/i386-builtin-types.def: Define ROUND function type
3363         aliases.
3364         * config/i386/i386.c (enum ix86_builtins): Add
3365         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
3366         (struct builtin_description): Add
3367         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
3368         (ix86_expand_sse_round): New static function.
3369         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
3370         function types.
3371         (ix86_builtin_vectorized_function): Handle
3372         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
3373
3374 2011-03-14  Tom Tromey  <tromey@redhat.com>
3375
3376         * c-parser.c (c_parser_asm_string_literal): Clear
3377         warn_overlength_strings.
3378
3379 2011-03-14  Tom Tromey  <tromey@redhat.com>
3380
3381         * c-parser.c (disable_extension_diagnostics): Save
3382         warn_overlength_strings.
3383         (restore_extension_diagnostics): Restore warn_overlength_strings.
3384
3385 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
3386
3387         * BASE-VER: Change to 4.7.0.
3388
3389 2011-03-14  Richard Guenther  <rguenther@suse.de>
3390
3391         PR middle-end/48098
3392         * tree.c (build_vector_from_val): Adjust assert to requirements
3393         and reality.
3394
3395 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
3396
3397         PR bootstrap/48102
3398         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
3399
3400 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
3401
3402         * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
3403         terms of target_flags_explicit. Adjust copyright year.
3404
3405         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
3406         * config/rs6000/t-freebsd: New file. Add override for
3407         LIB2FUNCS_EXTRA.
3408
3409 2011-03-13  Chris Demetriou  <cgd@google.com>
3410
3411         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
3412         (-fno-diagnostics-show-option): this, to reflect current default.
3413         (-Werror=): Update text about -fno-diagnostics-show-option.
3414
3415 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
3416
3417         PR target/48053
3418         * config/rs6000/predicates.md (easy_vector_constant_add_self,
3419         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
3420         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
3421         mode is not V2DImode or V2DFmode.
3422         (vspltis_constant): Do not handle V2DImode and V2DFmode.
3423         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
3424         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
3425         registers to 0.
3426         (movdi_internal64): Likewise.
3427
3428 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
3429
3430         PR tree-optimization/47127
3431         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
3432         parameter.
3433         (set_cloog_options): Same.
3434         (scop_to_clast): Same.
3435         (print_clast_stmt): Do not call cloog_state_malloc and
3436         cloog_state_free.
3437         (print_generated_program): Same.
3438         (gloog): Same.
3439         * graphite-clast-to-gimple.h (cloog_state): Declared.
3440         (scop_to_clast): Adjust declaration.
3441         * graphite.c (cloog_state): Defined here.
3442         (graphite_initialize): Call cloog_state_malloc.
3443         (graphite_finalize): Call cloog_state_free.
3444
3445 2011-03-11  Jason Merrill  <jason@redhat.com>
3446
3447         * attribs.c (lookup_attribute_spec): Take const_tree.
3448         * tree.h: Adjust.
3449
3450 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
3451
3452         * config/sparc/sparc.c (sparc_option_override): Use
3453         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
3454
3455 2011-03-11  Richard Guenther  <rguenther@suse.de>
3456
3457         PR tree-optimization/48067
3458         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
3459         multiplication result will be only used once on the target
3460         stmt.
3461
3462 2011-03-11  Richard Guenther  <rguenther@suse.de>
3463
3464         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
3465
3466 2011-03-11  Richard Guenther  <rguenther@suse.de>
3467
3468         PR lto/48073
3469         * tree.c (find_decls_types_r): Do not walk types only reachable
3470         from IDENTIFIER_NODEs.
3471
3472 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
3473
3474         PR middle-end/48044
3475         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
3476         all vnode->force_output nodes as needed.
3477
3478 2011-03-11  Jason Merrill  <jason@redhat.com>
3479
3480         PR c++/48069
3481         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
3482         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
3483
3484 2011-03-11  Martin Jambor  <mjambor@suse.cz>
3485
3486         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
3487         cgraph_node.
3488
3489 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
3490
3491         PR tree-optimization/48063
3492         * ipa-inline.c (cgraph_decide_inlining): Don't try to
3493         inline functions called once if !tree_can_inline_p (node->callers).
3494
3495 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
3496
3497         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
3498         extra_objs.
3499         * config/score/score3.c: Delete.
3500         * config/score/score3.h: Delete.
3501         * config/score/mul-div.S: Delete.
3502         * config/score/sfp-machine.h: Add new file.
3503         * config/score/constraints.md: Add new file.
3504         * config/score/t-score-softfp: Add new file.
3505         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
3506         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
3507         (score7_extra_constraint): Delete.
3508         (score7_option_override): Remove unused code.
3509         * config/score/score.c: Remove score3 and score5 define and code.
3510         * config/score/score.h: Remove score3 and score5 define and code.
3511         * config/score/score.md: Remove score3 template and unusual insn.
3512         * config/score/score.opt: Remove score3 and score5 options.
3513
3514 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3515
3516         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
3517         when _HPUX_SOURCE is defined.
3518         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
3519
3520 2011-03-10  Jason Merrill  <jason@redhat.com>
3521
3522         PR c++/48029
3523         * stor-layout.c (layout_type): Don't set structural equality
3524         on arrays of incomplete type.
3525         * tree.c (type_hash_eq): Handle comparing them properly.
3526
3527 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
3528
3529         PR debug/48043
3530         * config/s390/s390.c (s390_delegitimize_address): Make sure the
3531         result mode matches original rtl mode.
3532
3533 2011-03-10  Nick Clifton  <nickc@redhat.com>
3534
3535         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
3536         (andsi3, andsi3_flags): Fix timings for three operand alternative.
3537
3538 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
3539
3540         PR rtl-optimization/47866
3541         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
3542         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
3543         if target wasn't scalar.
3544         * function.c (assign_stack_temp_for_type): Assert that neither
3545         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
3546         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
3547         macro.
3548         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
3549
3550 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3551
3552         * config/s390/s390-protos.h (s390_label_align): New prototype.
3553         * config/s390/s390.c (s390_label_align): New function.
3554         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
3555
3556 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
3557
3558         PR target/47755
3559         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
3560         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
3561         (output_vec_const_move): Ditto.
3562
3563 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
3564
3565         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
3566         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
3567         * config/mips/mips.c (mips_preferred_reload_class): Make static.
3568         Change 'rclass' argument and result type to reg_class_t.
3569         (TARGET_PREFERRED_RELOAD_CLASS): Define.
3570
3571 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
3572
3573         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3574         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
3575         (TARGET_MEMORY_MOVE_COST): Define.
3576         (avr_register_move_cost, avr_memory_move_cost): New Functions.
3577
3578 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
3579
3580         PR debug/47881
3581         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
3582         removed anything.
3583
3584         PR tree-optimization/48022
3585         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
3586         for EQ/NE_EXPR.
3587
3588 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
3589
3590         PR debug/47991
3591         * var-tracking.c (find_use_val): Return NULL for
3592         cui->sets && cui->store_p BLKmode MEMs.
3593
3594 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
3595
3596         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
3597         Remove.
3598         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
3599         xstormy16_print_operand_address): Remove.
3600         * config/stormy16/stormy16.c (xstormy16_print_operand,
3601         xstormy16_print_operand_address): Make static.
3602         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3603
3604 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
3605
3606         PR target/47862
3607         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3608         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
3609         before definition.
3610
3611 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
3612
3613         PR bootstrap/48000
3614         * cfgloopmanip.c (fix_bb_placements): Return immediately
3615         if FROM is BASE_LOOP's header.
3616
3617 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
3618
3619         * gimplify.c (gimplify_function_tree): Fix building calls
3620         to __builtin_return_address.
3621
3622 2011-03-07  Alan Modra  <amodra@gmail.com>
3623
3624         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
3625         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
3626         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
3627         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
3628         return_mode args.
3629         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
3630         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
3631         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
3632         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
3633         * config/rs6000/rs6000.c
3634         (rs6000_elf_end_indicate_exec_stack): Rename to..
3635         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
3636         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
3637         (rs6000_file_start): ..here.
3638         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
3639         file scope variables.
3640         (call_ABI_of_interest): New function.
3641         (init_cumulative_args): Set above vars when function return value
3642         is a float, vector, or small struct.
3643         (rs6000_function_arg_advance_1): Likewise for function args.
3644         (rs6000_va_start): Set rs6000_passes_float if variable arg function
3645         references float args.
3646
3647 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
3648
3649         * doc/cfg.texi: Remove "See" before @ref.
3650         * doc/invoke.texi: Likewise.
3651
3652 2011-03-05  Jason Merrill  <jason@redhat.com>
3653
3654         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
3655
3656 2011-03-05  Anthony Green  <green@moxielogic.com>
3657
3658         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
3659
3660 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
3661
3662         PR rtl-optimization/47899
3663         * cfgloopmanip.c (fix_bb_placements): Fix first argument
3664         to flow_loop_nested_p when moving the loop upward.
3665
3666 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
3667
3668         PR target/47719
3669         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
3670
3671 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
3672
3673         PR tree-optimization/47967
3674         * ipa-cp.c (build_const_val): Return NULL instead of creating
3675         VIEW_CONVERT_EXPR for mismatching sizes.
3676         (ipcp_create_replace_map): Return NULL if build_const_val failed.
3677         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
3678         give up on versioning.
3679
3680 2011-03-05  Alan Modra  <amodra@gmail.com>
3681
3682         PR target/47986
3683         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3684         full cmodel medium/large lo_sum + high addresses.
3685
3686 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3687
3688         * config/s390/s390.c (s390_decompose_address): Reject non-literal
3689         pool references in UNSPEC_LTREL_OFFSET.
3690
3691 2011-03-04  Jan Hubicka  <jh@suse.cz>
3692
3693         PR lto/47497
3694         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
3695         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
3696         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
3697         Add node pointers.
3698         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
3699         cgraph_add_thunk): Add node pointers.
3700         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
3701         associated to right node.
3702         (input_node): Update use of cgraph_same_body_alias
3703         and cgraph_add_thunk.
3704
3705 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
3706
3707         * config/i386/i386.opt (mprefer-avx128): New flag.
3708         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
3709         modes when the flag -mprefer-avx128 is on.
3710
3711 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
3712
3713         * dwarf2out.c (compare_loc_operands): Fix address handling.
3714
3715 2011-03-04  Alan Modra  <amodra@gmail.com>
3716
3717         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
3718
3719 2011-03-04  Richard Guenther  <rguenther@suse.de>
3720
3721         PR middle-end/47968
3722         * expmed.c (extract_bit_field_1): Prefer vector modes that
3723         vec_extract patterns can handle.
3724
3725 2011-03-04  Richard Guenther  <rguenther@suse.de>
3726
3727         PR middle-end/47975
3728         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
3729
3730 2011-03-04  Richard Henderson  <rth@redhat.com>
3731
3732         * explow.c (emit_stack_save): Remove 'after' parameter.
3733         (emit_stack_restore): Likewise.
3734         * expr.h: Update to match.
3735         * builtins.c, calls.c, stmt.c: Likewise.
3736         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
3737         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
3738         * function.c (expand_function_end): Insert the emit_stack_save
3739         sequence before parm_birth_insn instead of after.
3740
3741 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
3742
3743         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
3744         (ssse3_pmaddubsw128): Ditto.
3745         (ssse3_pmaddubsw): Ditto.
3746
3747 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
3748
3749         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
3750
3751 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
3752
3753         PR c/47963
3754         * gimplify.c (omp_add_variable): Only call omp_notice_variable
3755         on TYPE_SIZE_UNIT if it is a DECL.
3756
3757         PR debug/47283
3758         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
3759         first operand is not is_gimple_mem_ref_addr, try to fold it.
3760         If the operand still isn't is_gimple_mem_ref_addr, clear
3761         MEM_EXPR on op0.
3762
3763 2011-03-03  Richard Guenther  <rguenther@suse.de>
3764
3765         PR middle-end/47283
3766         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
3767         match comment.
3768         (refs_may_alias_p_1): For release branches return true if
3769         we are confused by our input.
3770
3771 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3772
3773         * config/s390/s390.c (s390_function_value): Rename to ...
3774         (s390_function_and_libcall_value): ... this.
3775         (s390_function_value): New function.
3776         (s390_libcall_value): New function.
3777         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
3778         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
3779         target macro definitions.
3780         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
3781
3782 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
3783
3784         * config/i386/freebsd64.h (CC1_SPEC): Define.
3785         * config/i386/linux64.h (CC1_SPEC): Define.
3786         * config/i386/x86-64.h (CC1_SPEC): Don't define.
3787
3788 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
3789
3790         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
3791         Remove.
3792         * config/stormy16/stormy16.c: Include reload.h.
3793         (xstormy16_memory_move_cost): New function.
3794         (TARGET_MEMORY_MOVE_COST): Define.
3795
3796 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
3797
3798         PR rtl-optimization/47925
3799         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
3800         with side effects.  Remove the more-specific check for volatile asms.
3801
3802 2011-03-02  Alan Modra  <amodra@gmail.com>
3803
3804         PR target/47935
3805         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
3806         toc relative addresses for valid offsets.
3807
3808 2011-03-01  Richard Guenther  <rguenther@suse.de>
3809
3810         PR tree-optimization/47890
3811         * tree-vect-loop.c (get_initial_def_for_induction): Set
3812         related stmt properly.
3813
3814 2011-03-01  Richard Guenther  <rguenther@suse.de>
3815
3816         PR lto/47924
3817         * lto-streamer.c (lto_record_common_node): Also register
3818         the canonical type.
3819
3820 2011-03-01  Richard Guenther  <rguenther@suse.de>
3821
3822         PR lto/46911
3823         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
3824         Do not stream DECL_ABSTRACT_ORIGIN.
3825         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
3826         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
3827         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
3828         Do not stream DECL_ABSTRACT_ORIGIN.
3829         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
3830         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
3831
3832 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
3833
3834         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
3835         FUNCTION_VALUE_REGNO_P): Remove.
3836         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
3837         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
3838         Add 'outgoing' argument.
3839         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
3840         function.
3841         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3842         TARGET_FUNCTION_VALUE_REGNO_P): Define.
3843
3844 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
3845
3846         PR debug/28047
3847         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
3848         (lookup_filename): Likewise.
3849         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
3850
3851 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
3852             Jakub Jelinek  <jakub@redhat.com>
3853
3854         PR middle-end/47893
3855         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
3856         (assign_stack_local_1): Change last argument type to int.
3857         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
3858         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
3859         don't record padding space into frame_space_list nor use those areas.
3860         (assign_stack_local): Adjust caller.
3861         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
3862         of assign_stack_local, pass 0 as last argument.
3863         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
3864         callers.
3865
3866 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
3867
3868         PR debug/47283
3869         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
3870         Use target address_mode and pointer_mode hooks instead of hardcoded
3871         Pmode and ptr_mode.  Handle some simple cases of extending if
3872         POINTERS_EXTEND_UNSIGNED < 0.
3873         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
3874         Call convert_debug_memory_address.
3875         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
3876         convert_debug_memory_address.
3877
3878         PR middle-end/46790
3879         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
3880         * configure: Regenerated.
3881         * config.in: Regenerated.
3882         * varasm.c (default_function_section): Return NULL
3883         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
3884
3885 2011-02-28  Martin Jambor  <mjambor@suse.cz>
3886
3887         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
3888         the description to match the printed values.
3889
3890 2011-02-28  Richard Guenther  <rguenther@suse.de>
3891
3892         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
3893         of the copied scope tree.
3894
3895 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3896
3897         * doc/extend.texi (Function Attributes): Avoid deeply (and
3898         wrongly) nested tables.
3899
3900 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
3901
3902         PR middle-end/47903
3903         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
3904         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
3905         r isn't op0 nor op1.
3906
3907 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
3908
3909         * config/avr/avr.md: Remove magic comment for emacs.
3910
3911 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
3912
3913         PR target/45261
3914         * config/avr/avr.c (avr_option_override): Use error on bad options.
3915         (avr_help): New function.
3916         (TARGET_HELP): Define.
3917
3918 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
3919
3920         PR target/42240
3921         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
3922         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
3923
3924 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
3925
3926         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
3927         (ARM Options): Ditto.
3928         (i386 and x86-64 Options): Ditto.
3929         (RX Options): Ditto.
3930         (SPARC Options): Ditto.
3931
3932 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
3933
3934         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
3935         FreeBSD 6 and later.  Generally use cpu generic.
3936
3937 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
3938
3939         * doc/cpp.texi: Update copyright years.
3940
3941 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
3942
3943         PR target/46898
3944         * config/lm32/lm32.md (ashrsi3): Added needed variable.
3945
3946 2011-02-25  Jon Beniston  <jon@beniston.com>
3947
3948         PR target/46898
3949         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
3950         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
3951         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
3952         (lm32_block_move_inline): Add type cast to remove warning.
3953         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
3954         (gen_int_relational): Move declarations to start of function.
3955
3956 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
3957
3958         PR tree-optimization/45470
3959         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
3960         can throw internally only.
3961         * tree-vect-stmts.c (vectorizable_call): Likewise.
3962
3963 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
3964
3965         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
3966         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
3967         * config/stormy16/stormy16-protos.h
3968         (xstormy16_preferred_reload_class): Remove.
3969         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
3970         static. Change 'rclass' argument and return type to reg_class_t.
3971         (TARGET_PREFERRED_RELOAD_CLASS,
3972         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3973
3974 2011-02-24  Richard Guenther  <rguenther@suse.de>
3975
3976         * lto-streamer-in.c (input_bb): Do not find referenced vars
3977         in debug statements.
3978
3979 2011-02-23  Jason Merrill  <jason@redhat.com>
3980
3981         * common.opt (fabi-version): Document v5 and v6.
3982
3983 2011-02-23  Richard Guenther  <rguenther@suse.de>
3984
3985         PR tree-optimization/47849
3986         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
3987
3988 2011-02-23  Jie Zhang  <jie@codesourcery.com>
3989
3990         * opts-common.c (decode_cmdline_option): Print empty string
3991         argument as "" in decoded->orig_option_with_args_text.
3992         * gcc.c (execute): Print empty string argument as ""
3993         in the verbose output.
3994         (do_spec_1): Keep empty string argument.
3995
3996 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
3997
3998         * config.gcc: Declare score-* and crx-* obsolete.
3999
4000 2011-02-23  Jie Zhang  <jie@codesourcery.com>
4001
4002         PR rtl-optimization/47763
4003         * web.c (web_main): Ignore naked clobber when replacing register.
4004
4005 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
4006
4007         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4008         Remove.
4009
4010 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
4011
4012         PR doc/47848
4013         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
4014
4015 2011-02-22  Mike Stump  <mikestump@comcast.net>
4016
4017         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
4018         assembler.
4019         * configure: Regenerate.
4020
4021 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
4022
4023         PR rtl-optimization/46002
4024         * ira-color.c (update_copy_costs): Change class intersection
4025         test to reg_class_contents[] test of 'hard_regno'.
4026
4027 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
4028
4029         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
4030         than Driver option.
4031         * config/hpux11.opt (mt): Likewise.
4032         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
4033         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
4034         * config/vax/elf.opt (mno-asm-pic): Likewise.
4035         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
4036
4037 2011-02-21  Mike Stump  <mikestump@comcast.net>
4038
4039         PR target/47822
4040         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
4041         tree so we can get save the type.
4042         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
4043         for CFString instead of trying to use past the end of the builtins.
4044         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
4045         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
4046         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
4047         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
4048         Rename to darwin_builtin_cfstring.
4049         (darwin_init_cfstring_builtins): Return the built type.
4050
4051 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
4052
4053         PR target/47840
4054         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
4055         (_mm256_insert_epi64): Use _mm_insert_epi64.
4056
4057 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
4058
4059         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
4060         * config/stormy16/stormy16-protos.h
4061         (xstormy16_mode_dependent_address_p): Remove.
4062         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
4063         Make static. Change return type to bool. Change argument type to
4064         const_rtx. Remove dead code.
4065         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
4066
4067 2011-02-21  Richard Guenther  <rguenther@suse.de>
4068
4069         PR lto/47820
4070         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
4071         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
4072         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
4073         TUs context.
4074         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
4075         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
4076
4077 2011-02-20  Richard Guenther  <rguenther@suse.de>
4078
4079         PR lto/47822
4080         * tree.c (free_lang_data_in_decl): Clean builtins from
4081         the TU decl BLOCK_VARS.
4082
4083 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
4084
4085         PR debug/47620
4086         PR debug/47630
4087         * haifa-sched.c (fix_tick_ready): Skip tick computation
4088         for debug insns.
4089
4090 2011-02-19  Richard Guenther  <rguenther@suse.de>
4091
4092         PR lto/47647
4093         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
4094         Remove lazy BLOCK_VARS streaming.
4095         (lto_input_ts_block_tree_pointers): Likewise.
4096         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
4097
4098 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
4099
4100         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
4101
4102 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
4103
4104         * config/i386/biarch32.h, config/i386/mach.h,
4105         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
4106
4107 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
4108
4109         PR target/47800
4110         * config/i386/i386.md (peephole2 for shift and plus): Use
4111         operands[1] original mode in the first insn.
4112
4113 2011-02-18  Mike Stump  <mikestump@comcast.net>
4114
4115         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
4116
4117 2011-02-18  Jan Hubicka  <jh@suse.cz>
4118
4119         PR middle-end/47788
4120         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
4121         to zero when the function is not inlinable at all.
4122
4123 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4124
4125         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
4126         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
4127         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
4128         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
4129         * config/pa/t-pa64: Likewise.
4130         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4131
4132 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
4133
4134         PR driver/47787
4135         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
4136
4137 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4138
4139         PR target/47792
4140         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
4141
4142 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
4143
4144         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
4145         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
4146         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
4147         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
4148         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
4149         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
4150         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
4151         m32r_load_postinc_p, m32r_store_preinc_predec_p,
4152         m32r_legitimate_address_p): New functions.
4153         * config/m32r/constraints.md (constraint "S"): Don't use
4154         STORE_PREINC_PREDEC_P.
4155         (constraint "U"): Don't use LOAD_POSTINC_P.
4156
4157 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
4158
4159         PR rtl-optimization/46178
4160         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
4161         compute ira_hard_regno_cover_class[].
4162
4163 2011-02-18  Richard Guenther  <rguenther@suse.de>
4164
4165         PR lto/47798
4166         * lto-streamer.h (lto_global_var_decls): Declare.
4167         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
4168         statics for global var processing.
4169
4170 2011-02-18  Richard Guenther  <rguenther@suse.de>
4171
4172         PR tree-optimization/47737
4173         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
4174         edge dominance check.
4175
4176 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
4177
4178         PR debug/47780
4179         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
4180         avoid invalid rtx sharing.
4181
4182 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
4183
4184         * doc/cpp.texi (Obsolete Features): Add background on the
4185         origin of assertions.
4186
4187 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
4188
4189         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
4190         objc_abi == 2.
4191         * config/darwin.c (output_objc_section_asm_op): Added support for
4192         ABI v1 and v2.
4193         (is_objc_metadata): New.
4194         (darwin_objc2_section): New.
4195         (darwin_objc1_section): New.
4196         (machopic_select_section): Added support for ABI v1 and v2.
4197         (darwin_emit_objc_zeroed): New.
4198         (darwin_output_aligned_bss): Detect objc metadata and treat it
4199         appropriately.
4200         (darwin_asm_output_aligned_decl_common): Same.
4201         (darwin_asm_output_aligned_decl_local): Same.
4202         * config/darwin-sections.def: Updated for ABI v1 and v2.
4203         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
4204         compiling Objective-C code for the NeXT runtime, default to using
4205         ABI version 0 for 32-bit, and version 2 for 64-bit.
4206
4207 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
4208
4209         * common.opt (optimize_fast): New Variable.
4210         * opts.c (default_options_optimization): Use opts->x_optimize_fast
4211         instead of local variable ofast.
4212
4213 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
4214
4215         * doc/invoke.texi (fobjc-abi-version): Documented.
4216         (fobjc-nilcheck): Documented.
4217         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
4218         version.
4219
4220 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
4221
4222         PR driver/47390
4223         * common.opt (export-dynamic): New Driver option.
4224         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
4225
4226 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
4227
4228         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
4229
4230 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
4231             Jan Hubicka  <jh@suse.cz>
4232
4233         PR debug/47106
4234         PR debug/47402
4235         * cfgexpand.c (account_used_vars_for_block): Remove.
4236         (estimated_stack_frame_size): Use referenced vars.
4237         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
4238         that were referenced in the original function.  Test src_fn
4239         rather than cfun.  Drop redundant get_var_ann.
4240         (setup_one_parameter): Drop redundant get_var_ann.
4241         (declare_return_variable): Likewise.
4242         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
4243         (copy_arguments_for_versioning): Drop redundant get_var_ann.
4244         * ipa-inline.c (compute_inline_parameters): Do not compute
4245         disregard_inline_limits here.
4246         (compute_inlinable_for_current, pass_inlinable): New.
4247         (pass_inline_parameters): Require PROP_referenced_vars.
4248         * cgraphunit.c (cgraph_process_new_functions): Don't run
4249         compute_inline_parameters explicitly unless function is in SSA form.
4250         (cgraph_analyze_function): Set .disregard_inline_limits.
4251         * tree-sra.c (convert_callers): Compute inliner parameters
4252         only for functions already in SSA form.
4253
4254 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
4255
4256         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
4257         -mlittle-endian-data.
4258
4259 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
4260
4261         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
4262         -mno-fpu, not -fpu and -no-fpu.
4263         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
4264         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
4265
4266 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
4267
4268         PR target/43653
4269         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
4270         input reload with PLUS RTX.
4271
4272 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
4273
4274         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
4275         of InverseVar(MDMX).
4276
4277 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
4278
4279         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
4280         --m4-340.
4281
4282 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
4283
4284         * config/mn10300/mn10300.opt (mno-crt0): New.
4285
4286 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
4287
4288         * config/m68k/uclinux.opt (static-libc): New Driver option.
4289
4290 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
4291
4292         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
4293
4294 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
4295
4296         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
4297         %{muser-extend-enabled}.
4298
4299 2011-02-16  Richard Guenther  <rguenther@suse.de>
4300
4301         PR tree-optimization/47738
4302         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
4303         the TODO from tree_predictive_commoning.
4304
4305 2011-02-15  Jeff Law  <law@redhat.com>
4306
4307         Revert
4308         2011-01-25  Jeff Law  <law@redhat.com>
4309
4310         PR rtl-optimization/37273
4311         * ira-costs.c (scan_one_insn): Detect constants living in memory and
4312         handle them like argument loads from stack slots.  Do not double
4313         count memory for memory constants and argument loads from stack slots.
4314
4315 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
4316
4317         PR middle-end/47725
4318         * combine.c (cant_combine_insn_p): Revert the last change.
4319
4320 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
4321
4322         PR target/47755
4323         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
4324         mode for vector constants.  Remove code that checks for TImode.
4325
4326 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
4327
4328         PR debug/47106
4329         PR debug/47402
4330         * cgraph.h (compute_inline_parameters): Return void.
4331         * ipa-inline.c (compute_inline_parameters): Adjust.
4332
4333 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
4334
4335         PR debug/47106
4336         PR debug/47402
4337         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
4338         rather than decl.
4339         * cfgexpand.c (estimated_stack_frame_size): Likewise.
4340         * ipa-inline.c (compute_inline_parameters): Adjust.
4341
4342 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
4343
4344         PR debug/47106
4345         PR debug/47402
4346         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
4347         Adjust all users.  Pass FN to...
4348         * tree-flow-inline.h (first_referenced_var): ... this.  Add
4349         fn argument.
4350         * ipa-struct-reorg.c: Adjust.
4351         * tree-dfa.c: Adjust.
4352         * tree-into-ssa.c: Adjust.
4353         * tree-sra.c: Adjust.
4354         * tree-ssa-alias.c: Adjust.
4355         * tree-ssa-live.c: Adjust.
4356         * tree-ssa.c: Adjust.
4357         * tree-ssanames.c: Adjust.
4358         * tree-tailcall.c: Adjust.
4359
4360 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
4361
4362         PR debug/47106
4363         PR debug/47402
4364         * tree-flow.h (referenced_var_lookup): Add fn parameter.
4365         Adjust all callers.
4366         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
4367         * tree-flow-inline.h: Adjust.
4368         * gimple-pretty-print.c: Adjust.
4369         * tree-into-ssa.c: Adjust.
4370         * tree-ssa.c: Adjust.
4371         * cfgexpand.c: Adjust.
4372
4373 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
4374
4375         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
4376         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4377         (EXTRA_CONSTRAINT): Delete.
4378         * config/iq2000/constraints.md: New file.
4379         * config/iq2000/iq2000.md: Include it.
4380         (define_insn ""): Delete.
4381         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
4382         unsupported constraint letters from patterns.
4383         (call_value, call_value_internal1): Likewise.
4384         (call_value_multiple_internal1): Likewise.
4385
4386 2011-02-15  Nick Clifton  <nickc@redhat.com>
4387
4388         * config/mn10300/mn10300.c: Include tm-constrs.h.
4389         (struct liw_data): New data structure describing an LIW candidate
4390         instruction.
4391         (extract_bundle): Use struct liw_data.  Allow small integer
4392         operands for some instructions.
4393         (check_liw_constraints): Use struct liw_data.  Remove swapped
4394         parameter.  Add comments describing the checks.  Fix bug when
4395         assigning the source of liw1 to the source of liw2.
4396         (liw_candidate): Delete.  Code moved into extract_bundle.
4397         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
4398         before swapping.
4399         * config/mn10300/predicates.md (liw_operand): New predicate.
4400         Allows registers and small integer constants.
4401         * config/mn10300/constraints.md (O): New constraint.  Accetps
4402         integers in the range -8 to +7 inclusive.
4403         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
4404         for moving a small integer into a register.  Give this alternative
4405         LIW attributes.
4406         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
4407         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
4408         using the J,K,L and M constraints,
4409         (liw): Remove SI mode on second operands to allow for HI and QI
4410         mode values.
4411         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
4412         instruction.
4413
4414 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
4415
4416         PR middle-end/47725
4417         * combine.c (cant_combine_insn_p): Check zero/sign extended
4418         hard registers.
4419
4420 2011-02-15  Richard Guenther  <rguenther@suse.de>
4421
4422         PR tree-optimization/47743
4423         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
4424         for a non-type-compatible VN lookup bail out.
4425
4426 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
4427
4428         * config/fr30/constraints.md: New file.
4429         * config/fr30/fr30.md: Include it.
4430         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
4431         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4432         (EXTRA_CONSTRAINT): Delete.
4433
4434 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
4435
4436         * config/frv/constraints.md: New file.
4437         * config/frv/predicates.md: Include it.
4438         * config/frv/frv.c (reg_class_from_letter): Delete.
4439         (frv_option_override): Don't initialize it.
4440         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
4441         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
4442         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
4443         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
4444         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
4445         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4446         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
4447         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
4448         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
4449         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
4450         (REG_CLASS_FROM_CONSTRAINT): Delete.
4451
4452 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
4453
4454         PR middle-end/47581
4455         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
4456         if frame size is 0 in a leaf function.
4457
4458 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4459
4460         PR pch/14940
4461         * config/alpha/host-osf.c: New file.
4462         * config/alpha/x-osf: New file.
4463         * config.host (alpha*-dec-osf*): Use it.
4464
4465 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
4466
4467         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
4468         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
4469         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
4470         (rx_mode_dependent_address_p): ...this. Make static. Change argument
4471         type to const_rtx.
4472         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
4473
4474 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
4475
4476         * config/stormy16/constraints.md: New file.
4477         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
4478         Use satisfies_constraint_Q and satisfies_constraint_R.
4479         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
4480         Delete.
4481         (xstormy16_legitiamte_address_p): Declare.
4482         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
4483         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4484         (EXTRA_CONSTRAINT): Delete.
4485         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
4486         Un-staticize.
4487         (xstormy16_extra_constraint_p): Delete.
4488
4489 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
4490
4491         PR tree-optimization/46494
4492         * loop-unroll.c (split_edge_and_insert): Adjust comment.
4493         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
4494         (pass_rtl_loop_done): Add TODO_verify_flow.
4495         * fwprop.c (pass_rtl_fwprop): Likewise.
4496         * modulo-sched.c (pass_sms): Likewise.
4497         * tree-ssa-dom.c (pass_dominator): Likewise.
4498         * tree-ssa-loop-ch.c (pass_ch): Likewise.
4499         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
4500         (pass_tree_loop_done): Likewise.
4501         * tree-ssa-pre.c (execute_pre): Likewise.
4502         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
4503         * tree-ssa-sink.c (pass_sink_code): Likewise.
4504         * tree-vrp.c (pass_vrp): Likewise.
4505
4506 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
4507
4508         * config/v850/constraints.md: New file.
4509         * config/v850/v850.md: Include it.
4510         * config/v850/predicates.md (reg_or_0_operand): Use
4511         satisfies_constraint_G.
4512         (special_symbolref_operand): Use satisfies_constraint_K.
4513         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
4514         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
4515         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
4516         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
4517         (EXTRA_CONSTRAINT): Delete.
4518         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
4519         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
4520         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
4521
4522 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
4523
4524         PR target/47696
4525         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
4526         description.
4527
4528 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
4529
4530         * config/mcore/constraints.md: New file.
4531         * config/mcore/mcore.md: Include it.
4532         * config/mcore/mcore.c (reg_class_from_letter): Delete.
4533         * config/mcore/mcore.h (reg_class_from_letter): Delete.
4534         (REG_CLASS_FROM_LETTER): Delete.
4535         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
4536         insn_const_int_ok_for_constraint.
4537         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
4538         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
4539         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4540         (EXTRA_CONSTRAINT): Delete.
4541
4542 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4543
4544         PR ada/41929
4545         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
4546         (IS_SIGHANDLER): Define.
4547         (sparc64_is_sighandler): New function, split off from
4548         sparc64_fallback_frame_state.
4549         (sparc_is_sighandler): New function, split off from
4550         sparc_fallback_frame_state.
4551         (sparc64_fallback_frame_state): Merge with ...
4552         (sparc_fallback_frame_state): ... this into ...
4553         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
4554         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
4555         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
4556         stack instead of hardcoded offsets.
4557
4558 2011-02-14  Andriy Gapon  <avg@freebsd.org>
4559
4560         PR target/45808
4561         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
4562
4563 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4564
4565         * configure: Regenerate.
4566
4567 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
4568
4569         PR driver/45731
4570         * gcc.c (asm_options): Correct spec matching --target-help.
4571
4572 2011-02-12  Martin Jambor  <mjambor@suse.cz>
4573
4574         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
4575         to gimple call error.
4576
4577 2011-02-12  Mike Stump  <mikestump@comcast.net>
4578
4579         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
4580         comments in backslash regions.
4581
4582 2011-02-12  Mike Stump  <mikestump@comcast.net>
4583             Jakub Jelinek  <jakub@redhat.com>
4584             Iain Sandoe  <iains@gcc.gnu.org>
4585
4586         PR target/47324
4587         * dwarf2out.c (output_cfa_loc): When required, apply the
4588         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
4589         (output_loc_sequence): Likewise.
4590         (output_loc_operands_raw): Likewise.
4591         (output_loc_sequence_raw): Likewise.
4592         (output_cfa_loc): Likewise.
4593         (output_loc_list): Suppress register number adjustment when
4594         calling output_loc_sequence()
4595         (output_die): Likewise.
4596
4597 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
4598
4599         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
4600         Remove macros.
4601         * config/xtensa/xtensa.c (xtensa_register_move_cost,
4602         xtensa_memory_move_cost): New functions.
4603         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
4604
4605 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
4606
4607         PR lto/47225
4608         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
4609         in the current directory.
4610         * configure: Rebuilt.
4611
4612 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
4613
4614         * config/darwin.c (darwin_override_options): Add a hunk missed
4615         from the commit of r168571.  Trim comment line lengths and
4616         correct indents of the preceding block.
4617
4618 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
4619
4620         * gcc.c (driver_handle_option): Concatenate the argument to -F with
4621         the switch.
4622
4623 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
4624
4625         * common.opt (nostartfiles): New Driver option.
4626
4627 2011-02-11  Xinliang David Li  <davidxl@google.com>
4628
4629         PR tree-optimization/47707
4630         * tree-chrec.c (convert_affine_scev): Keep type precision.
4631
4632 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
4633
4634         PR tree-optimization/47420
4635         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
4636
4637 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
4638
4639         PR rtl-optimization/47614
4640         * rtl.h (check_for_inc_dec): Declare.
4641         * dse.c (check_for_inc_dec): Externalize...
4642         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
4643         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
4644
4645 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
4646
4647         PR driver/47678
4648         * gcc.c (main): Do not compile inputs if there were errors in
4649         option handling.
4650         * opts-common.c (read_cmdline_option): Check for wrong language
4651         after other error checks.
4652
4653 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
4654
4655         * cgraph.c: Fix comment typos.
4656         * cgraph.h: Likewise.
4657         * cgraphunit.c: Likewise.
4658         * ipa-cp.c: Likewise.
4659         * ipa-inline.c: Likewise.
4660         * ipa-prop.c: Likewise.
4661         * ipa-pure-const.c: Likewise.
4662         * ipa-ref.c: Likewise.
4663         * ipa-reference.c: Likewise.
4664
4665 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
4666
4667         PR debug/47684
4668         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
4669
4670 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4671
4672         PR testsuite/47400
4673         * doc/sourcebuild.texi (Require Support): Document
4674         dg-require-ascii-locale.
4675
4676 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
4677
4678         * doc/lto.texi (Write summary): Fix missing parentheses.
4679
4680 2011-02-10  DJ Delorie  <dj@redhat.com>
4681
4682         * config/m32c/m32c.c (m32c_option_override): Disable
4683         -fcombine-stack-adjustments until flag value tracking and compare
4684         optimization can be rewritten.
4685
4686 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
4687
4688         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
4689         PROCESSOR_POWER7.
4690         (PROCESSOR_DEFAULT64): Likewise.
4691
4692 2011-02-10  Richard Henderson  <rth@redhat.com>
4693
4694         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
4695         change from 2011-02-03.
4696         * config/rx/rx.c (flags_from_code): Likewise.
4697         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
4698         is valid, n/pz otherwise.
4699         (rx_select_cc_mode): Return CCmode if Y is not zero.
4700
4701 2011-02-10  Richard Guenther  <rguenther@suse.de>
4702
4703         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
4704
4705 2011-02-10  Richard Guenther  <rguenther@suse.de>
4706
4707         PR tree-optimization/47677
4708         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
4709
4710 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
4711
4712         PR target/47665
4713         * combine.c (make_compound_operation): Only change shifts into
4714         multiplication for SCALAR_INT_MODE_P.
4715
4716 2011-02-10  Jie Zhang  <jie@codesourcery.com>
4717
4718         PR testsuite/47622
4719         Revert
4720         2011-02-05  Jie Zhang  <jie@codesourcery.com>
4721         PR debug/42631
4722         * web.c (entry_register): Don't clobber the number of the
4723         first uninitialized reference in used[].
4724
4725 2011-02-09  Richard Guenther  <rguenther@suse.de>
4726
4727         PR tree-optimization/47664
4728         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
4729         all edges again.
4730
4731 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
4732
4733         PR target/46481
4734         PR target/47032
4735         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
4736         PROCESSOR_POWER7.
4737         (PROCESSOR_DEFAULT64): Same.
4738         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
4739
4740 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4741
4742         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
4743
4744 2011-02-09  Martin Jambor  <mjambor@suse.cz>
4745
4746         PR middle-end/45505
4747         * tree-sra.c (struct access): New flags grp_scalar_read and
4748         grp_scalar_write.  Changed description of assignment read and write
4749         flags.
4750         (dump_access): Dump new flags, reorder all of them.
4751         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
4752         to detect multiple scalar reads.
4753         (analyze_access_subtree): Use the new scalar read write flags instead
4754         of the old flags.  Adjusted comments.
4755
4756 2011-02-08  DJ Delorie  <dj@redhat.com>
4757
4758         PR target/47548
4759         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
4760         patterns.
4761
4762 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
4763
4764         * config/m68k/uclinux.opt: New.
4765         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
4766
4767 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
4768
4769         * config/cris/elf.opt (sim): New Driver option.
4770
4771 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
4772
4773         * config/xtensa/elf.opt: New.
4774         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
4775
4776 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
4777
4778         * config/vax/elf.opt: New.
4779         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
4780
4781 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
4782
4783         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
4784
4785 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
4786
4787         * config/gnu-user.opt: New.
4788         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
4789         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
4790         *-*-uclinux*): Use gnu-user.opt.
4791
4792 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
4793
4794         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
4795         * config/i386/gnu.h (CPP_SPEC): Likewise.
4796
4797 2011-02-08  Ian Lance Taylor  <iant@google.com>
4798
4799         * common.opt (fcx-limited-range): Add SetByCombined flag.
4800         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
4801         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
4802         (fassociative-math, freciprocal-math): Likewise.
4803         (funsafe-math-optimizations): Likewise.
4804         * opth-gen.awk: Handle SetByCombined.
4805         * optc-gen.awk: Likewise.
4806         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
4807         (set_unsafe_math_optimizations_flags): Likewise.
4808         * doc/options.texi (Option properties): Document SetByCombined.
4809
4810 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
4811
4812         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
4813         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
4814         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
4815         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
4816         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
4817
4818 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
4819
4820         PR tree-optimization/46834
4821         PR tree-optimization/46994
4822         PR tree-optimization/46995
4823         * graphite-sese-to-poly.c (used_outside_reduction): New.
4824         (detect_commutative_reduction): Call used_outside_reduction.
4825         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
4826         translate_scalar_reduction_to_array only when at least one
4827         loop-phi/close-phi tuple has been detected.
4828
4829 2011-02-08  Richard Guenther  <rguenther@suse.de>
4830
4831         PR middle-end/47639
4832         * tree-vect-generic.c (expand_vector_operations_1): Update
4833         stmts here ...
4834         (expand_vector_operations): ... not here.  Cleanup EH info
4835         and the CFG if required.
4836
4837 2011-02-08  Richard Guenther  <rguenther@suse.de>
4838
4839         PR tree-optimization/47641
4840         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
4841         require type compatibility.
4842
4843 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4844
4845         * gimple-low.c (lower_function_body): Don't remove the location of
4846         the return statement here.
4847         (lower_gimple_return): Do it here instead but only if the return
4848         statement is actually used twice.
4849
4850 2011-02-08  Richard Guenther  <rguenther@suse.de>
4851
4852         PR tree-optimization/47632
4853         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
4854         unused up_to_stmt parameter, return whether cfg-cleanup is
4855         necessary, remove EH info properly.
4856         (forward_propagate_into_gimple_cond): Adjust caller.
4857         (forward_propagate_into_cond): Likewise.
4858         (forward_propagate_comparison): Likewise.
4859         (tree_ssa_forward_propagate_single_use_vars): Make
4860         forward_propagate_comparison case similar to the two others.
4861
4862 2011-02-08  Nick Clifton  <nickc@redhat.com>
4863
4864         * config/mn10300/mn10300.opt (mliw): New command line option.
4865         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
4866         (liw_bundling): New automaton.
4867         (liw): New attribute.
4868         (liw_op): New attribute.
4869         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
4870         (movsi_internal): Add LIW attributes.
4871         (andsi3): Likewise.
4872         (iorsi3): Likewise.
4873         (xorsi3): Likewise.
4874         (addsi3): Separate register and immediate alternatives.
4875         Add LIW attributes.
4876         (subsi3): Likewise.
4877         (cmpsi): Likewise.
4878         (aslsi3): Likewise.
4879         (lshrsi3): Likewise.
4880         (ashrsi3): Likewise.
4881         (liw): New pattern.
4882         * config/mn10300/mn10300.c (liw_op_names): New
4883         (mn10300_print_operand): Handle 'W' operand descriptor.
4884         (extract_bundle): New function.
4885         (check_liw_constraints): New function.
4886         (liw_candidate): New function.
4887         (mn10300_bundle_liw): New function.
4888         (mn10300_reorg): New function.
4889         (TARGET_MACHINE_DEPENDENT_REORG): Define.
4890         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
4891         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
4892         __LIW__ or __NO_LIW__.
4893         * doc/invoke.texi: Describe the -mliw command line option.
4894
4895 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4896
4897         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
4898         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
4899         pthread_mutex_unlock): Remove.
4900         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
4901         * config/pa/t-pa64: Likewise.
4902         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
4903         shared libc if not linking against libpthread.
4904         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
4905
4906 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
4907
4908         PR target/47558
4909         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
4910         on 10.6 and later to ensure that we always use the unwinder from
4911         the system.  Only add -no_compact_unwind when tarteting darwin
4912         10.6 or later.
4913
4914 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
4915
4916         PR target/46997
4917         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
4918         (vec_interleave_lowv2sf): Ditto.
4919         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
4920         (vec_extract_oddv2sf): Ditto.
4921
4922 2011-02-07  Mike Stump  <mikestump@comcast.net>
4923
4924         PR target/42333
4925         Add __ieee_divdc3 entry point.
4926         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
4927         entry point.
4928         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
4929         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
4930         * config/darwin.c (darwin_rename_builtins): Add.
4931         * config/darwin-protos.h (darwin_rename_builtins): Add.
4932
4933 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
4934
4935         PR target/47636
4936         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
4937         for the condition.
4938
4939 2011-02-07  Mike Stump  <mikestump@comcast.net>
4940
4941         * config/darwin.opt (mmacosx-version-min): Update default OS version.
4942
4943 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
4944
4945         PR target/47534
4946         * config/avr/libgcc.S (exit): Move .endfunc
4947
4948 2011-02-07  Richard Guenther  <rguenther@suse.de>
4949
4950         PR tree-optimization/47615
4951         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
4952         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
4953         (run_scc_vn): Initialize it.
4954         (visit_reference_op_load): Use it.
4955         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
4956
4957 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4958
4959         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
4960         DImode trapping arithmetic libfuncs.
4961
4962 2011-02-07  Richard Guenther  <rguenther@suse.de>
4963
4964         PR tree-optimization/47621
4965         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
4966         two duplicates ...
4967         (execute_update_addresses_taken): ... here.  Make it more
4968         conservative in what we accept.
4969
4970 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
4971
4972         * config/sparc/freebsd.h (ASM_SPEC): Define.
4973         * config/sparc/vxworks.h (ASM_SPEC): Define.
4974
4975 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
4976
4977         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
4978
4979 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
4980
4981         * doc/invoke.texi: Remove reference to compiler internals from
4982         user documentation.
4983
4984         * reg-notes.def: Remove REG_VALUE_PROFILE.
4985         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
4986
4987 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
4988
4989         PR middle-end/47610
4990         * varasm.c (default_section_type_flags): If decl is NULL,
4991         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
4992
4993 2011-02-05  Jie Zhang  <jie@codesourcery.com>
4994
4995         PR debug/42631
4996         * web.c (entry_register): Don't clobber the number of the
4997         first uninitialized reference in used[].
4998
4999 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
5000
5001         PR tree-optimization/46194
5002         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
5003         (build_classic_dist_vector_1): Do not represent classic distance
5004         vectors when the access functions are variating in different loops.
5005
5006 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
5007
5008         * config/mips/iris6.opt: New.
5009         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
5010
5011 2011-02-04  Richard Henderson  <rth@redhat.com>
5012             Steve Ellcey  <sje@cup.hp.com>
5013
5014         PR target/46997
5015         * config/ia64/predicates.md (mux1_brcst_element): New.
5016         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
5017         * config/ia64/ia64.c (ia64_unpack_assemble): New.
5018         (ia64_unpack_sign): New.
5019         (ia64_expand_unpack): Rewrite using new routines.
5020         (ia64_expand_widen_sum): Ditto.
5021         (ia64_expand_dot_prod_v8qi): Ditto.
5022         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
5023         routines, add endian check.
5024         (pmpy2_even): Rename from pmpy2_r, add endian check.
5025         (pmpy2_odd): Rename from pmpy2_l, add endian check.
5026         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
5027         (vec_widen_smult_hi_v4hi): Ditto.
5028         (vec_widen_umult_lo_v4hi): Ditto.
5029         (vec_widen_umult_hi_v4hi): Ditto.
5030         (mulv2si3): Change endian checks.
5031         (sdot_prodv4hi): Rewrite with new calls.
5032         (udot_prodv4hi): New.
5033         (vec_pack_ssat_v4hi): Add endian check.
5034         (vec_pack_usat_v4hi): Ditto.
5035         (vec_pack_ssat_v2si): Ditto.
5036         (max1_even): Rename from max1_r, add endian check.
5037         (max1_odd): Rename from max1_l, add endian check.
5038         (*mux1_rev): Format change.
5039         (*mux1_mix): Ditto.
5040         (*mux1_shuf): Ditto.
5041         (*mux1_alt): Ditto.
5042         (*mux1_brcst_v8qi): Use new predicate.
5043         (vec_extract_evenv8qi): Remove endian check.
5044         (vec_extract_oddv8qi): Ditto.
5045         (vec_interleave_lowv4hi): Format change.
5046         (vec_interleave_highv4hi): Ditto.
5047         (mix2_even): Rename from mix2_r, add endian check.
5048         (mix2_odd): Rename from mux2_l, add endian check.
5049         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
5050         (vec_extract_evenodd_helper): Format change.
5051         (vec_extract_evenv4hi): Remove endian check.
5052         (vec_extract_oddv4hi): Remove endian check.
5053         (vec_interleave_lowv2si): Format change.
5054         (vec_interleave_highv2si): Format change.
5055         (vec_initv2si): Remove endian check.
5056         (vecinit_v2si): Add endian check.
5057         (reduc_splus_v2sf): Add endian check.
5058         (reduc_smax_v2sf): Ditto.
5059         (reduc_smin_v2sf): Ditto.
5060         (vec_initv2sf): Remove endian check.
5061         (fpack): Add endian check.
5062         (fswap): Add endian check.
5063         (vec_interleave_highv2sf): Add endian check.
5064         (vec_interleave_lowv2sf): Add endian check.
5065         (fmix_lr): Add endian check.
5066         (vec_setv2sf): Format change.
5067         (*vec_extractv2sf_0_be): Use shift to extract operand.
5068         (*vec_extractv2sf_1_be): New.
5069         (vec_pack_trunc_v4hi): Add endian check.
5070         (vec_pack_trunc_v2si): Format change.
5071
5072 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
5073
5074         PR inline-asm/23200
5075         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
5076         do bb, locus and block comparison and disallow loads if it is not set.
5077         (stmt_is_replaceable_p): New function.
5078         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
5079         callers.
5080         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
5081         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
5082         SSA_NAME_DEF_STMT.
5083         * tree-flow.h (stmt_is_replaceable_p): New prototype.
5084
5085 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
5086
5087         * config/rs6000/xilinx.opt: New.
5088         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
5089
5090 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
5091
5092         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
5093
5094 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
5095
5096         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
5097         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
5098         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
5099         secondary_reload_info, xtensa_secondary_reload): Remove.
5100         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
5101         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
5102         (xtensa_preferred_reload_class): Make static. Change return and
5103         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
5104         Use CONST_DOUBLE_P predicate.
5105         (xtensa_preferred_output_reload_class): New function.
5106         (xtensa_secondary_reload): Make static.
5107
5108 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
5109
5110         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
5111         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
5112         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
5113
5114 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
5115
5116         PR middle-end/31490
5117         * output.h (SECTION_RELRO): Define.
5118         (SECTION_MACH_DEP): Adjust.
5119         (get_variable_section): New prototype.
5120         * varpool.c (varpool_finalize_named_section_flags): New function.
5121         (varpool_assemble_pending_decls): Call it.
5122         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
5123         * cgraphunit.c (cgraph_output_in_order): Call
5124         varpool_finalize_named_section_flags.
5125         * varasm.c (get_section): Allow section flags conflicts between
5126         relro and read-only sections if the section hasn't been declared yet.
5127         Set SECTION_OVERRIDE after diagnosing section type conflict.
5128         (get_variable_section): No longer static.
5129         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
5130         readonly sections that need relocations.
5131         (decl_readonly_section_1): New function.
5132         (decl_readonly_section): Use it.
5133
5134         Revert:
5135         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
5136                     Steve Ellcey  <sje@cup.hp.com>
5137
5138         PR middle-end/31490
5139         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
5140         if section attribute used.
5141
5142 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
5143
5144         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
5145         * config/darwin.c (SECTION_NO_ANCHOR): Define.
5146         (darwin_init_sections): Remove assertion.
5147
5148 2011-02-03  Nick Clifton  <nickc@redhat.com>
5149
5150         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
5151         lt and ge.
5152         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
5153         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
5154         instead of "n" and "pz".
5155         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
5156         CC_FLAG_S.
5157
5158 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
5159
5160         PR target/47312
5161         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
5162         fma, expand FMA_EXPR as fma{,f,l} call.
5163
5164         PR lto/47274
5165         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
5166         copy them into a unsigned char variable and pass address of it to
5167         lto_output_data_stream.
5168
5169         PR target/47564
5170         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
5171         around backend_init_target and lang_dependent_init_target calls.
5172         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
5173         (verify_cgraph_node): Don't call set_cfun here.  Use
5174         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
5175         Set error_found for incorrectly represented calls to thunks.
5176
5177 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
5178
5179         PR debug/43092
5180         PR rtl-optimization/43494
5181         * rtl.h (for_each_inc_dec_fn): New type.
5182         (for_each_inc_dec): Declare.
5183         * rtlanal.c (struct for_each_inc_dec_ops): New type.
5184         (for_each_inc_dec_find_inc_dec): New fn.
5185         (for_each_inc_dec_find_mem): New fn.
5186         (for_each_inc_dec): New fn.
5187         * dse.c (struct insn_size): Remove.
5188         (replace_inc_dec, replace_inc_dec_mem): Remove.
5189         (emit_inc_dec_insn_before): New fn.
5190         (check_for_inc_dec): Use it, along with for_each_inc_dec.
5191         (canon_address): Pass mem modes to cselib_lookup.
5192         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
5193         (cselib_lookup_from_insn): Likewise.
5194         (cselib_subst_to_values): Likewise.
5195         * cselib.c (find_slot_memmode): New var.
5196         (cselib_find_slot): New fn.  Use it instead of
5197         htab_find_slot_with_hash everywhere.
5198         (entry_and_rtx_equal_p): Use find_slot_memmode.
5199         (autoinc_split): New fn.
5200         (rtx_equal_for_cselib_p): Rename and implement in terms of...
5201         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
5202         Deal with autoinc.  Special-case recursion into MEMs.
5203         (cselib_hash_rtx): Likewise.
5204         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
5205         address and MEM modes.
5206         (cselib_subst_to_values): Add memmode, pass it on.
5207         Deal with autoinc.
5208         (cselib_lookup): Add memmode argument, pass it on.
5209         (cselib_lookup_from_insn): Add memmode.
5210         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
5211         (struct cselib_record_autoinc_data): New.
5212         (cselib_record_autoinc_cb): New fn.
5213         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
5214         mode to cselib_lookup.  Reset autoinced REGs here instead of...
5215         (cselib_process_insn): ... here.
5216         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
5217         to cselib_lookup.
5218         (add_uses): Likewise, also to cselib_subst_to_values.
5219         (add_stores): Likewise.
5220         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
5221         cselib_subst_to_values.
5222         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
5223         * gcse.c (do_local_cprop): Adjusted.
5224         * postreload.c (reload_cse_simplify_set): Adjusted.
5225         (reload_cse_simplify_operands): Adjusted.
5226         * sel-sched-dump (debug_mem_addr_value): Pass mode.
5227
5228 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
5229
5230         PR tree-optimization/45122
5231         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
5232         unsafe assumptions when there's more than one loop exit.
5233
5234 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
5235
5236         PR target/47272
5237         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
5238         Document using vector double with the load/store builtins, and
5239         that the load/store builtins always use Altivec instructions.
5240
5241         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
5242         to use altivec memory instructions, even on VSX.
5243         (vector_altivec_store_<mode>): Ditto.
5244
5245         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
5246         function.
5247
5248         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5249         V2DF, V2DI support to load/store overloaded builtins.
5250
5251         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
5252         altivec load/store builtins for V2DF/V2DI types.
5253
5254         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
5255         set avoid indexed addresses on power6 if -maltivec.
5256         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
5257         vector_altivec_load/vector_altivec_store builtins.
5258         (altivec_expand_st_builtin): Ditto.
5259         (altivec_expand_builtin): Add VSX memory builtins.
5260         (rs6000_init_builtins): Add V2DI types to internal types.
5261         (altivec_init_builtins): Add support for V2DF/V2DI altivec
5262         load/store builtins.
5263         (rs6000_address_for_altivec): Insure memory address is appropriate
5264         for Altivec.
5265
5266         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
5267         vec_vsx_ld and vec_vsx_st.
5268         (vsx_store_<mode>): Ditto.
5269
5270         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
5271         variables to hold long long types for VSX vector memory builtins.
5272         (RS6000_BTI_unsigned_long_long): Ditto.
5273         (long_long_integer_type_internal_node): Ditti.
5274         (long_long_unsigned_type_internal_node): Ditti.
5275
5276         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
5277         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
5278         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
5279
5280         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
5281         short cuts.
5282         (vec_vsx_st): Ditto.
5283
5284 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
5285
5286         * config/pa/pa-hpux10.opt: New.
5287         * config/hpux11.opt (pthread): New Driver option.
5288         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
5289         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
5290
5291 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
5292
5293         * config/ia64/vms.opt: New.
5294         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
5295
5296 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
5297
5298         PR target/47580
5299         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
5300         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
5301         generator functions.
5302         (vsx_floatuns<VSi><mode>2): Ditto.
5303         (vsx_fix_trunc<mode><VSi>2): Ditto.
5304         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
5305
5306 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
5307
5308         * config/i386/djgpp.opt (posix): New Driver option.
5309
5310 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
5311
5312         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
5313         Move to the unsupported targets list.
5314
5315 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
5316
5317         PR rtl-optimization/47525
5318         * df-scan.c: Update copyright years.
5319         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
5320         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
5321
5322 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5323
5324         * config/i386/sysv4.h (TARGET_VERSION): Remove.
5325         (SUBTARGET_RETURN_IN_MEMORY): Remove.
5326         (ASM_OUTPUT_ASCII): Remove.
5327         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
5328
5329 2011-02-02  Jeff Law  <law@redhat.com>
5330
5331         PR middle-end/47543
5332         * reload.c (find_reloads_address): Handle reg+d address where both
5333         components are invalid by reloading the entire address.
5334
5335 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
5336             Richard Guenther  <rguenther@suse.de>
5337
5338         PR tree-optimization/40979
5339         PR bootstrap/47044
5340         * passes.c (init_optimization_passes): After LIM call copy_prop
5341         and DCE to clean up.
5342         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
5343
5344 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
5345
5346         PR tree-optimization/47576
5347         PR tree-optimization/47555
5348         * doc/invoke.texi (scev-max-expr-complexity): Documented.
5349         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
5350         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
5351         * tree-scalar-evolution.c (follow_ssa_edge): Use
5352         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
5353
5354 2011-02-02  Richard Guenther  <rguenther@suse.de>
5355
5356         PR tree-optimization/47566
5357         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
5358
5359 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
5360
5361         PR debug/47106
5362         PR debug/47402
5363         * tree-inline.c (declare_return_variable): Remove unused caller
5364         variable.
5365
5366         PR debug/47106
5367         PR debug/47402
5368         * tree-flow-inline.h (clear_is_used, is_used_p): New.
5369         * cfgexpand.c (account_used_vars_for_block): Use them.
5370         * tree-nrv.c (tree_nrv): Likewise.
5371         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
5372         (dump_scope_block): Likewise.
5373         (remove_unused_locals): Likewise.
5374
5375         PR debug/47106
5376         PR debug/47402
5377         * tree-inline.c (declare_return_variable): Add result decl to
5378         local decls only once.
5379         * gimple-low.c (record_vars_into): Mark newly-created variables
5380         as referenced.
5381
5382 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
5383
5384         PR debug/47498
5385         PR debug/47501
5386         PR debug/45136
5387         PR debug/45130
5388         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
5389         debug insns.
5390         (no_real_insns_p, schedule_block, set_priorities): Drop special
5391         treatment of boundary debug insns.
5392         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
5393         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
5394         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
5395         (BOUNDARY_DEBUG_INSN_P): Likewise.
5396         (SCHEDULE_DEBUG_INSN_P): Likewise.
5397         * sched-rgn.c (init_ready_list): Drop special treatment of
5398         boundary debug insns.
5399         * final.c (rest_of_clean_state): Clear notes' BB.
5400
5401 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
5402
5403         * config/openbsd.opt (assert=): New Driver option.
5404
5405 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
5406
5407         * config/i386/nto.opt: New.
5408         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
5409
5410 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
5411
5412         * config/i386/netware.opt: New.
5413         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
5414
5415 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
5416
5417         * config/interix.opt (posix): New Driver option.
5418
5419 2011-02-01  DJ Delorie  <dj@redhat.com>
5420
5421         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
5422
5423         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
5424         class for A0/A1.
5425
5426 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
5427
5428         PR tree-optimization/47561
5429         * toplev.c (process_options): Print the Graphite flags.  Add
5430         flag_loop_flatten to the list of options requiring Graphite.
5431
5432 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
5433
5434         * config/i386/cygming.opt (posix): New Driver option.
5435
5436 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
5437
5438         * config/arm/vxworks.opt: New.
5439         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
5440
5441 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
5442
5443         * config/alpha/elf.opt: New.
5444         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
5445         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
5446
5447 2011-02-01  Richard Guenther  <rguenther@suse.de>
5448
5449         PR tree-optimization/47559
5450         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
5451         store-motion on references that can throw.
5452
5453 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
5454
5455         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
5456         * tree-pass.h (TDF_CSELIB): New macro.
5457         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
5458         cselib_lookup): Check for it rather than for TDF_DETAILS.
5459
5460 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
5461
5462         PR driver/47547
5463         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
5464         is HOST_BIT_BUCKET.
5465
5466         * opts.c (finish_options): Don't add x_aux_base_name if it is
5467         HOST_BIT_BUCKET.
5468
5469 2011-02-01  Richard Guenther  <rguenther@suse.de>
5470
5471         PR tree-optimization/47555
5472         Revert
5473         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
5474
5475         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
5476
5477 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
5478
5479         PR gcc/46692
5480         * config/lm32/t-lm32: Add multilib for all CPU options.
5481
5482 2011-02-01  Richard Guenther  <rguenther@suse.de>
5483
5484         PR tree-optimization/47541
5485         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
5486         sure to have a field at offset zero.
5487
5488 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
5489
5490         * config/arc/arc.opt (EB, EL): New Driver options.
5491
5492 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
5493
5494         * config/alpha/osf5.opt: New.
5495         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
5496
5497 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
5498
5499         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
5500
5501 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
5502
5503         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
5504         -floop-interchange.
5505         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
5506         is an alias of -floop-interchange and that it requires the
5507         Graphite infrastructure.
5508         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
5509         flag_loop_interchange based on the value of flag_tree_loop_linear.
5510
5511 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
5512             Richard Guenther  <rguenther@suse.de>
5513
5514         PR tree-optimization/47538
5515         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
5516         type instead of r1type, except for comparisons.  For right
5517         shifts and comparisons punt if there are mismatches in
5518         sizetype vs. non-sizetype types.
5519
5520 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5521
5522         * doc/sourcebuild.texi (Effective-Target Keywords): Document
5523         avx_runtime.
5524
5525 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5526
5527         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
5528         version number.
5529         * configure: Regenerate.
5530
5531 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5532
5533         * configure.ac (gcc_cv_ld_static_option): Define.
5534         (gcc_cv_ld_dynamic_option): Define.
5535         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
5536         instead.
5537         (HAVE_LD_STATIC_DYNAMIC): Update message.
5538         (LD_STATIC_OPTION): Define.
5539         (LD_DYNAMIC_OPTION): Define.
5540         * configure: Regenerate.
5541         * config.in: Regenerate.
5542         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
5543         HAVE_LD_STATIC_DYNAMIC]: Use them.
5544
5545 2011-01-31  Nick Clifton  <nickc@redhat.com>
5546
5547         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
5548         registers inside interrupt handlers if the handler is not a leaf
5549         function.
5550
5551 2011-01-31  Nick Clifton  <nickc@redhat.com>
5552
5553         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
5554         reg_renumber returning an INVALID_REGNUM.
5555
5556 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
5557
5558         PR libgcj/44341
5559         * doc/install.texi: Document host options discarded when cross
5560         configuring target libraries.
5561
5562 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
5563
5564         Reverted:
5565         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
5566         PR debug/45136
5567         PR debug/45130
5568         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
5569         debug insns.
5570         (no_real_insns_p, schedule_block, set_priorities): Drop special
5571         treatment of boundary debug insns.
5572         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
5573         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
5574         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
5575         (BOUNDARY_DEBUG_INSN_P): Likewise.
5576         (SCHEDULE_DEBUG_INSN_P): Likewise.
5577         * sched-rgn.c (init_ready_list): Drop special treatment of
5578         boundary debug insns.
5579         * final.c (rest_of_clean-state): Clear notes' BB.
5580
5581 2011-01-31  Alan Modra  <amodra@gmail.com>
5582
5583         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
5584         toc relative expressions as we do in print_operand_address.
5585
5586 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
5587
5588         * doc/extend.texi: Follow spelling conventions.
5589         * doc/invoke.texi: Fix a typo.
5590
5591 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
5592
5593         * config/hpux11.opt: New.
5594         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
5595         ia64*-*-hpux*): Use hpux11.opt.
5596
5597 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
5598
5599         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
5600         to tmake_file.
5601
5602 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
5603
5604         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
5605         support sites.
5606
5607 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
5608
5609         * doc/install.texi (Binaries): Remove outdated reference for
5610         Motorola 68HC11/68HC12 downloads.
5611
5612 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
5613
5614         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
5615         Drepper's paper.
5616
5617 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
5618
5619         PR bootstrap/47147
5620         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
5621         used by NetBSD.
5622
5623 2011-01-28  Ahmad Sharif  <asharif@google.com>
5624
5625         * value-prof.c (check_counter): Corrected error message.
5626
5627 2011-01-29  Jie Zhang  <jie@codesourcery.com>
5628
5629         * config/arm/arm.c (arm_legitimize_reload_address): New.
5630         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
5631         arm_legitimize_reload_address.
5632         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
5633
5634 2011-01-28  Ian Lance Taylor  <iant@google.com>
5635
5636         * godump.c (go_define): Ignore macros whose definitions include
5637         two adjacent operands.
5638
5639 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
5640
5641         PR target/42894
5642         * varasm.c (force_const_mem): Store copy of x in desc->constant
5643         instead of x itself.
5644         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
5645         itself into REG_EQUAL note.
5646
5647 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
5648
5649         * config/freebsd.opt (posix, rdynamic): New Driver options.
5650
5651 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5652
5653         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
5654         -Bstatic/-Bdynamic.
5655         * configure: Regenerate.
5656
5657 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
5658
5659         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
5660         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
5661
5662 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
5663
5664         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
5665         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
5666         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5667         (s390_preferred_reload_class): Make static. Change return and
5668         'rclass' argument type to reg_class_t.
5669
5670 2011-01-27  Jan Hubicka  <jh@suse.cz>
5671
5672         PR middle-end/46949
5673         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
5674         (process_function_and_variable_attributes): Check defined weakrefs.
5675
5676 2011-01-27  Martin Jambor  <mjambor@suse.cz>
5677
5678         PR tree-optimization/47228
5679         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
5680         build_ref_for_offset.
5681
5682 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5683
5684         * config/spu/spu-elf.h (ASM_SPEC): Remove.
5685
5686 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
5687
5688         PR rtl-optimization/46856
5689         * postreload.c (reload_combine_recognize_const_pattern): Do not
5690         separate cc0 setter and user on cc0 targets.
5691
5692 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
5693
5694         PR c/43082
5695         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
5696         passed a VOID_TYPE expression, immediately emit an error and
5697         return error_mark_node.
5698
5699 2011-01-26  Jeff Law  <law@redhat.com>
5700
5701         PR rtl-optimization/47464
5702         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
5703         rather than may_trap_p as needed.
5704
5705 2011-01-26  DJ Delorie  <dj@redhat.com>
5706
5707         PR rtl-optimization/46878
5708         * combine.c (insn_a_feeds_b): Check for the implicit cc0
5709         setter/user dependency as well.
5710
5711 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
5712
5713         PR rtl-optimization/44469
5714         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
5715         after removing trivially dead basic blocks.
5716
5717 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
5718
5719         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
5720         * config/frv/frv.h (LINK_SPEC): Likewise.
5721         * config/i386/netware.h (LINK_SPEC): Likewise.
5722         * config/m68k/linux.h (ASM_SPEC): Likewise.
5723         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
5724         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
5725         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
5726         * config/sparc/linux.h (ASM_SPEC): Likewise.
5727         * config/sparc/linux64.h (ASM_SPEC): Likewise.
5728         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
5729
5730 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
5731
5732         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
5733         * config/frv/frv.h (ASM_SPEC): Likewise.
5734         * config/m68k/linux.h (ASM_SPEC): Likewise.
5735         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
5736         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
5737         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
5738         * config/sparc/linux.h (ASM_SPEC): Likewise.
5739         * config/sparc/linux64.h (ASM_SPEC): Likewise.
5740         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
5741
5742 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
5743
5744         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
5745         * config/frv/frv.h (LINK_SPEC): Likewise.
5746         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
5747
5748 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
5749
5750         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
5751         * config/frv/frv.h (ASM_SPEC): Likewise.
5752         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
5753         * config/m68k/linux.h (ASM_SPEC): Likewise.
5754         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
5755         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
5756         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
5757         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
5758         * config/sparc/linux.h (ASM_SPEC): Likewise.
5759         * config/sparc/linux64.h (ASM_SPEC): Likewise.
5760         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
5761         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
5762
5763 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
5764
5765         PR target/46997
5766         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
5767         (*mux2): Ditto.
5768         (vec_extract_evenodd_help): Ditto.
5769         (vec_extract_evenv4hi): Ditto.
5770         (vec_extract_oddv4hi): Ditto.
5771         (vec_interleave_lowv2si): Ditto.
5772         (vec_interleave_highv2si): Ditto.
5773         (vec_extract_evenv2si): Ditto.
5774         (vec_extract_oddv2si: Ditto.
5775         (vec_pack_trunc_v2si): Ditto.
5776
5777 2011-01-22  Jan Hubicka  <jh@suse.cz>
5778
5779         PR target/47237
5780         * cgraph.h (cgraph_local_info): New field can_change_signature.
5781         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
5782         signature can change.
5783         (ipcp_estimate_growth): Call sequence simplify only if calle signature
5784         can change.
5785         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
5786         (cgraph_function_versioning): We can not change signature of functions
5787         that don't allow that.
5788         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
5789         (lto_input_node): Likewise.
5790         * ipa-inline.c (compute_inline_parameters): Compute
5791         local.can_change_signature.
5792         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
5793         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
5794         functions that can not change signature.
5795         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
5796         init_cumulative_args): Do not use local calling conventions
5797         for functions that can not change signature.
5798
5799 2011-01-22  Jan Hubicka  <jh@suse.cz>
5800
5801         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
5802
5803 2011-01-26  Richard Guenther  <rguenther@suse.de>
5804
5805         PR tree-optimization/47190
5806         * cgraphunit.c (process_common_attributes): New function.
5807         (process_function_and_variable_attributes): Use it.
5808
5809 2011-01-26  Richard Guenther  <rguenther@suse.de>
5810
5811         PR lto/47423
5812         * cgraphbuild.c (record_eh_tables): Record reference to personality
5813         function.
5814
5815 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
5816
5817         PR debug/45454
5818         * sel-sched.c (moveup_expr): Don't let debug insns prevent
5819         non-debug insns from moving up.
5820
5821 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
5822
5823         PR target/40125
5824         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
5825         t-dlldir{,-x} fragment for build and add it to tmake_file.
5826         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
5827         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
5828         * config/i386/t-dlldir: New file.
5829         (SHLIB_DLLDIR): Define.
5830         * config/i386/t-dlldir-x: New file.
5831         (SHLIB_DLLDIR): Define.
5832         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
5833         (SHLIB_INSTALL): Use it.
5834
5835 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
5836
5837         PR target/47246
5838         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
5839         lower bound of the allowed Thumb-2 coprocessor load/store
5840         index range to -256. Add explaining comment.
5841
5842 2011-01-25  Ian Lance Taylor  <iant@google.com>
5843
5844         * godump.c (go_define): Improve lexing of macro expansion to only
5845         accept expressions which match Go spec.
5846
5847 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
5848
5849         PR c++/43601
5850         * tree.c (handle_dll_attribute): Handle it.
5851         * doc/extend.texi (@item dllexport): Mention it.
5852         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
5853
5854 2011-01-25  Ian Lance Taylor  <iant@google.com>
5855
5856         PR tree-optimization/26854
5857         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
5858         (decl_jump_unsafe): Move higher in file, with no other change.
5859         (bind): Set has_jump_unsafe_decl if appropriate.
5860         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
5861         (check_earlier_gotos): Likewise.
5862         (c_check_switch_jump_warnings): Likewise.
5863
5864 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
5865
5866         * doc/invoke.texi (Warning Options): Add missing hyphen.
5867         (-fprofile-dir): Minor grammatical fixes.
5868         (-fbranch-probabilities): Likewise.
5869
5870 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
5871
5872         PR debug/45136
5873         PR debug/45130
5874         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
5875         debug insns.
5876         (no_real_insns_p, schedule_block, set_priorities): Drop special
5877         treatment of boundary debug insns.
5878         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
5879         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
5880         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
5881         (BOUNDARY_DEBUG_INSN_P): Likewise.
5882         (SCHEDULE_DEBUG_INSN_P): Likewise.
5883         * sched-rgn.c (init_ready_list): Drop special treatment of
5884         boundary debug insns.
5885         * final.c (rest_of_clean-state): Clear notes' BB.
5886
5887 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5888
5889         * Makefile.in (LAMBDA_H): Removed.
5890         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
5891         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
5892         lambda-trans.o, and tree-loop-linear.o.
5893         (lto-symtab.o): Remove dependence on LAMBDA_H.
5894         (tree-loop-linear.o): Remove rule.
5895         (lambda-mat.o): Same.
5896         (lambda-trans.o): Same.
5897         (lambda-code.o): Same.
5898         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
5899         (tree-vect-slp.o): Same.
5900         * hwint.h (gcd): Moved here.
5901         (least_common_multiple): Same.
5902         * lambda-code.c: Removed.
5903         * lambda-mat.c: Removed.
5904         * lambda-trans.c: Removed.
5905         * lambda.h: Removed.
5906         * tree-loop-linear.c: Removed.
5907         * lto-symtab.c: Do not include lambda.h.
5908         * omega.c (gcd): Removed.
5909         * passes.c (init_optimization_passes): Remove pass_linear_transform.
5910         * tree-data-ref.c (print_lambda_vector): Moved here.
5911         (lambda_vector_copy): Same.
5912         (lambda_matrix_copy): Same.
5913         (lambda_matrix_id): Same.
5914         (lambda_vector_first_nz): Same.
5915         (lambda_matrix_row_add): Same.
5916         (lambda_matrix_row_exchange): Same.
5917         (lambda_vector_mult_const): Same.
5918         (lambda_vector_negate): Same.
5919         (lambda_matrix_row_negate): Same.
5920         (lambda_vector_equal): Same.
5921         (lambda_matrix_right_hermite): Same.
5922         * tree-data-ref.h: Do not include lambda.h.
5923         (lambda_vector): Moved here.
5924         (lambda_matrix): Same.
5925         (dependence_level): Same.
5926         (lambda_transform_legal_p): Removed declaration.
5927         (lambda_collect_parameters): Same.
5928         (lambda_compute_access_matrices): Same.
5929         (lambda_vector_gcd): Same.
5930         (lambda_vector_new): Same.
5931         (lambda_vector_clear): Same.
5932         (lambda_vector_lexico_pos): Same.
5933         (lambda_vector_zerop): Same.
5934         (lambda_matrix_new): Same.
5935         * tree-flow.h (least_common_multiple): Removed declaration.
5936         * tree-parloops.c (lambda_trans_matrix): Moved here.
5937         (LTM_MATRIX): Same.
5938         (LTM_ROWSIZE): Same.
5939         (LTM_COLSIZE): Same.
5940         (LTM_DENOMINATOR): Same.
5941         (lambda_trans_matrix_new): Same.
5942         (lambda_matrix_vector_mult): Same.
5943         (lambda_transform_legal_p): Same.
5944         * tree-pass.h (pass_linear_transform): Removed declaration.
5945         * tree-ssa-loop.c (tree_linear_transform): Removed.
5946         (gate_tree_linear_transform): Removed.
5947         (pass_linear_transform): Removed.
5948         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
5949         flag_loop_interchange.
5950
5951 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
5952
5953         PR tree-optimization/47265
5954         PR tree-optimization/47443
5955         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
5956         if name still has some uses.
5957
5958 2011-01-25  Martin Jambor  <mjambor@suse.cz>
5959
5960         PR tree-optimization/47382
5961         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
5962         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
5963
5964 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
5965
5966         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
5967         sjlj_except_unwind_info.
5968
5969 2011-01-25  Richard Guenther  <rguenther@suse.de>
5970
5971         PR tree-optimization/47426
5972         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
5973         visible functions results escape.
5974
5975 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
5976
5977         PR target/45701
5978         * config/arm/arm.c (any_sibcall_uses_r3): New function.
5979         (arm_get_frame_offsets): Use it.
5980
5981 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5982             Jakub Jelinek  <jakub@redhat.com>
5983
5984         PR tree-optimization/47271
5985         * tree-if-conv.c (bb_postdominates_preds): New.
5986         (if_convertible_bb_p): Call bb_postdominates_preds.
5987         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
5988         (predicate_scalar_phi): Call bb_postdominates_preds.
5989
5990 2011-01-25  Nick Clifton  <nickc@redhat.com>
5991
5992         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
5993         * config/rx/rx.c (rx_function_value): Likewise.
5994         (rx_promote_function_mode): Likewise.
5995         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
5996         in order to make it legitimate.
5997         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
5998         make sure that the first operand is the same as the result register.
5999         (addsi3_unspec): Delete.
6000         (subdi3): Do not accept immediate operands.
6001         (subdi3_internal): Likewise.
6002
6003 2011-01-25  Jeff Law  <law@redhat.com>
6004
6005         PR rtl-optimization/37273
6006         * ira-costs.c (scan_one_insn): Detect constants living in memory and
6007         handle them like argument loads from stack slots.  Do not double
6008         count memory for memory constants and argument loads from stack slots.
6009
6010 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
6011
6012         PR tree-optimization/47427
6013         PR tree-optimization/47428
6014         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
6015         coalesce if the new root var would be TREE_READONLY.
6016
6017 2011-01-25  Richard Guenther  <rguenther@suse.de>
6018
6019         PR middle-end/47414
6020         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
6021         correct type for TBAA.
6022
6023 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6024
6025         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
6026         (close_phi_written_to_memory): Call for_each_index with
6027         dr_indices_valid_in_loop.
6028
6029 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6030
6031         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
6032         when it is initialized.
6033
6034 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6035
6036         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
6037         call to graphite_find_data_references_in_stmt.
6038         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
6039         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
6040         call to graphite_find_data_references_in_stmt.
6041         (analyze_drs_in_stmts): Same.
6042         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
6043         in which the scalar analysis of indices is performed.
6044         (create_data_ref): Same.  Update call to dr_analyze_indices.
6045         (find_data_references_in_stmt): Update call to create_data_ref.
6046         (graphite_find_data_references_in_stmt): Same.
6047         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
6048         declaration.
6049         (create_data_ref): Same.
6050         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
6051         call to create_data_ref.
6052
6053 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6054
6055         * graphite-sese-to-poly.c (build_poly_scop): Move
6056         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
6057
6058 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6059
6060         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
6061         VAR_DECL, PARM_DECL, and RESULT_DECL.
6062
6063 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6064
6065         * graphite-dependences.c (reduction_dr_1): Allow several reductions
6066         in a reduction PBB.
6067         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
6068         that have already been marked as PBB_IS_REDUCTION.
6069
6070 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6071
6072         * graphite-scop-detection.c (same_close_phi_node): New.
6073         (remove_duplicate_close_phi): New.
6074         (make_close_phi_nodes_unique): New.
6075         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
6076
6077 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6078
6079         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
6080         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
6081         of both data references to be the same.
6082
6083 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6084
6085         * graphite-dependences.c (build_lexicographical_constraint): Remove
6086         the gdim parameter.
6087         (build_lexicographical_constraint): Adjust call to
6088         ppl_powerset_is_empty.
6089         (dependence_polyhedron): Same.
6090         (graphite_legal_transform_dr): Same.
6091         (graphite_carried_dependence_level_k): Same.
6092         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
6093         parameter.
6094         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
6095
6096 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6097
6098         * graphite-sese-to-poly.c
6099         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
6100         (close_phi_written_to_memory): New.
6101         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
6102         and unshare_expr.
6103
6104 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6105
6106         * doc/install.texi: Update the expected version number of PPL to 0.11.
6107         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
6108         #if PPL_VERSION_MINOR < 11.
6109
6110 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6111
6112         * graphite-dependences.c: Include graphite-cloog-util.h.
6113         (new_poly_ddr): Inlined into dependence_polyhedron.
6114         (free_poly_ddr): Moved close by new_poly_ddr.
6115         (dependence_polyhedron_1): Renamed dependence_polyhedron.
6116         Early return NULL when ppl_powerset_is_empty returns true.
6117         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
6118         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
6119         (graphite_legal_transform_dr): Call new_poly_ddr.
6120         (graphite_carried_dependence_level_k): Same.
6121         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
6122         (dot_transformed_deps_stmt_1): Removed.
6123         (dot_deps_stmt_1): Call dot_deps_stmt_2.
6124         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
6125         (dot_deps_1): Call dot_deps_2.
6126         * Makefile.in (graphite-dependences.o): Add missing dependence on
6127         graphite-cloog-util.h.
6128
6129 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6130
6131         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
6132         (build_lexicographical_constraint): Same.
6133         (dependence_polyhedron_1): Same.
6134         (graphite_legal_transform_dr): Same.
6135         (graphite_carried_dependence_level_k): Same.
6136         * graphite-ppl.c (ppl_powerset_is_empty): New.
6137         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
6138         * tree-data-ref.c (dump_data_reference): Print the basic block index.
6139
6140 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6141
6142         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
6143         the "a followed by b" relation and document it.
6144
6145 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6146
6147         * graphite-dependences.c (build_lexicographical_constraint): Stop the
6148         iteration when the bag of constraints is empty.
6149
6150 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6151
6152         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
6153
6154 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6155
6156         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
6157         nest and two loop depths as parameters.
6158         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
6159         lst_perfect_nestify.
6160
6161 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6162
6163         * graphite-dependences.c (print_pddr): Call
6164         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
6165
6166 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
6167
6168         * graphite-ppl.c (debug_gmp_value): New.
6169         * graphite-ppl.h (debug_gmp_value): Declared.
6170
6171 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
6172
6173         * doc/install.texi: Document availability of cloog-0.16.
6174
6175 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
6176
6177         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
6178         invalid postdominance info.
6179
6180 2011-01-24  Jan Hubicka  <jh@suse.cz>
6181
6182         PR c/21659
6183         * doc/extend.texi (weak pragma): Drop claim that it must
6184         appear before definition.
6185         * varasm.c (merge_weak, declare_weak): Only sanity check
6186         that DECL is not output at a time it is declared weak.
6187
6188 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
6189
6190         * machmode.def: Fixed comments.
6191
6192 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
6193
6194         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
6195
6196 2011-01-24  Paul Koning  <ni1d@arrl.net>
6197
6198         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
6199         WORDS_BIG_ENDIAN.
6200
6201 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
6202
6203         PR target/46519
6204         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
6205         (block_info): Add scanned and prev.
6206         (move_or_delete_vzeroupper_2): Return if the basic block
6207         has been scanned and the upper 128bit state is unchanged
6208         from the last scan.
6209         (move_or_delete_vzeroupper_1): Return true if the exit
6210         state is changed.
6211         (move_or_delete_vzeroupper): Visit basic blocks using the
6212         work-list based algorithm based on vt_find_locations in
6213         var-tracking.c.
6214
6215         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
6216
6217 2011-01-24  Nick Clifton  <nickc@redhat.com>
6218
6219         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
6220         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
6221         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
6222         then define __v850e1__.
6223         * doc/invoke.texi: Document -mv850es.
6224
6225 2011-01-24  Richard Henderson  <rth@redhat.com>
6226
6227         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
6228         compound unordered comparisons.
6229         * config/rx/rx.c (rx_split_fp_compare): Remove.
6230         * config/rx/rx-protos.h: Update.
6231         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
6232         (cbranchsf4): Don't call rx_split_fp_compare.
6233         (*cbranchsf4): Use rx_split_cbranch.
6234         (*cmpsf): Don't accept "i" constraint.
6235         (*conditional_branch): Only valid after reload.
6236         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
6237
6238 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
6239
6240         PR target/47385
6241         * config/rs6000/altivec.md (vector constant splitters): Add
6242         support for creating vector single precision constants if -mvsx is
6243         used and we would create the constant using Altivec primitives.
6244
6245 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
6246             Richard Sandiford  <rdsandiford@googlemail.com>
6247
6248         PR rtl-optimization/47166
6249         * reload1.c (emit_reload_insns): Disable the spill_reg_store
6250         mechanism for PRE_MODIFY and POST_MODIFY.
6251         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
6252         reloadreg.
6253
6254 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
6255
6256         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
6257
6258 2011-01-22  Jan Hubicka  <jh@suse.cz>
6259
6260         PR lto/47333
6261         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
6262
6263 2011-01-22  Jan Hubicka  <jh@suse.cz>
6264
6265         PR tree-optimization/43884
6266         PR lto/44334
6267         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
6268         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
6269
6270 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
6271
6272         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6273         * config/s390/s390.c (s390_register_move_cost,
6274         s390_memory_move_cost): New.
6275         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
6276
6277 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6278
6279         PR middle-end/47401
6280         * except.c (sjlj_assign_call_site_values): Move setting the
6281         crtl->uses_eh_lsda flag to ...
6282         (sjlj_mark_call_sites): ... here.
6283         (sjlj_emit_function_enter): Support NULL dispatch label.
6284         (sjlj_build_landing_pads): In a function with no landing pads
6285         that still has must-not-throw regions, generate code to register
6286         a personality function with empty LSDA.
6287
6288 2011-01-21  Richard Henderson  <rth@redhat.com>
6289
6290         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
6291
6292         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
6293
6294         * compare-elim.c: New file.
6295         * Makefile.in (OBJS-common): Add it.
6296         (compare-elim.o): New.
6297         * common.opt (fcompare-elim): New.
6298         * opts.c (default_options_table): Add OPT_fcompare_elim.
6299         * tree-pass.h (pass_compare_elim_after_reload): New.
6300         * passes.c (init_optimization_passes): Add it.
6301         * recog.h: Protect against re-inclusion.
6302         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
6303         * doc/invoke.texi (-fcompare-elim): Document it.
6304         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
6305         * doc/tm.texi: Rebuild.
6306
6307 2011-01-22  Nick Clifton  <nickc@redhat.com>
6308
6309         * config/rx/rx.md (cstoresf4): Pass comparison operator to
6310         rx_split_fp_compare.
6311
6312 2011-01-22  Nick Clifton  <nickc@redhat.com>
6313
6314         * config/rx/rx.md (UNSPEC_CONST): New.
6315         (deallocate_and_return): Wrap the amount popped off the stack in
6316         an UNSPEC_CONST in order to stop it being rejected by
6317         -mmax-constant-size.
6318         (pop_and_return): Add a "(return)" rtx.
6319         (call): Drop the immediate operand.
6320         (call_internal): Likewise.
6321         (call_value): Likewise.
6322         (call_value_internal): Likewise.
6323         (sibcall_internal): Likewise.
6324         (sibcall_value_internal): Likewise.
6325         (sibcall): Likewise.  Generate an explicit call using
6326         sibcall_internal.
6327         (sibcall_value): Likewise.
6328         (mov<>): FAIL if a constant operand is not legitimate.
6329         (addsi3_unpsec): New pattern.
6330
6331         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
6332         (ok_for_max_constant): New function.
6333         (gen_safe_add): New function.
6334         (rx_expand_prologue): Use gen_safe_add.
6335         (rx_expand_epilogue): Likewise.
6336         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
6337         UNSPEC CONSTs.
6338
6339 2011-01-21  Jeff Law  <law@redhat.com>
6340
6341         PR tree-optimization/47053
6342         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
6343         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
6344         statements are deleted.
6345         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
6346         is nonempty, then purge dead edges and cleanup the CFG.
6347
6348 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
6349
6350         PR debug/47402
6351         Temporarily revert:
6352         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
6353         PR debug/47106
6354         * tree-dfa.c (create_var_ann): Mark variable as used.
6355
6356 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
6357
6358         PR middle-end/45566
6359         * except.c (convert_to_eh_region_ranges): Emit queued no-region
6360         notes from other section in hot/cold partitioning even if
6361         last_action is -3.  Increment call_site_base.
6362
6363         PR rtl-optimization/47366
6364         * fwprop.c (forward_propagate_into): Return bool.  If
6365         any changes are made, -fnon-call-exceptions is used and
6366         REG_EH_REGION note is present, call purge_dead_edges
6367         and return true if it purged anything.
6368         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
6369         any EH edges were purged.
6370
6371 2011-01-21  Jeff Law  <law@redhat.com>
6372
6373         PR rtl-optimization/41619
6374         * caller-save.c (setup_save_areas): Break out code to determine
6375         which hard regs are live across calls by examining the reload chains
6376         so that it is always used.
6377         Eliminate code which checked REG_N_CALLS_CROSSED.
6378
6379 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
6380
6381         PR tree-optimization/47355
6382         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
6383         NOP has non-debug uses beyond PHIs in new_bb.
6384
6385 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
6386
6387         PR debug/47106
6388         * cfgexpand.c (account_used_vars_for_block): Only account vars
6389         that are annotated as used.
6390         (estimated_stack_frame_size): Don't set TREE_USED.
6391         * tree-dfa.c (create_var_ann): Mark variable as used.
6392
6393 2011-01-21  Richard Guenther  <rguenther@suse.de>
6394
6395         PR middle-end/47395
6396         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
6397
6398 2011-01-21  Richard Guenther  <rguenther@suse.de>
6399
6400         PR tree-optimization/47365
6401         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
6402         (vn_reference_lookup_pieces): Adjust.
6403         (vn_reference_lookup): Likewise.
6404         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
6405         (vn_reference_lookup_3): Only look through kills if in
6406         VN_WALKREWRITE mode.
6407         (vn_reference_lookup_pieces): Adjust.
6408         (vn_reference_lookup): Likewise.
6409         (visit_reference_op_load): Likewise.
6410         (visit_reference_op_store): Likewise.
6411         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
6412         (compute_avail): Likewise.
6413         (eliminate): Likewise.
6414
6415 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
6416
6417         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
6418         DECL_IGNORED_P non-reg vars if they are used.
6419
6420         PR tree-optimization/47391
6421         * varpool.c (const_value_known_p): Return false if
6422         decl is volatile.
6423
6424 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
6425
6426         PR bootstrap/47215
6427         * config/i386/i386.c (ix86_local_alignment): Handle
6428         case for va_list_type_node is nil.
6429         (ix86_canonical_va_list_type): Likewise.
6430
6431 2011-01-21  Alan Modra  <amodra@gmail.com>
6432
6433         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
6434         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
6435
6436 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6437
6438         * config/arm/arm.md (define_attr type): Rename f_load
6439         and f_store to f_fpa_load and f_fpa_store. Update.
6440         (write_conflict): Deal with rename fallout.
6441         (*push_fp_multi): Likewise.
6442         * config/arm/fpa.md (f_load): Use f_fpa_load.
6443         (f_store): Use f_fpa_store.
6444         (*movsf_fpa): Likewise.
6445         (*movdf_fpa): Likewise.
6446         (*movxf_fpa): Likewise.
6447         (*thumb2_movsf_fpa): Likewise.
6448         (*thumb2_movdf_fpa): Likewise.
6449         (*thumb2_movxf_fpa): Likewise.
6450         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
6451         f_loadd and f_stored.
6452         (*thumb2_movdi_vfp): Likewise.
6453         (*thumb2_movsf_vfp): Fix attribute to f_loads.
6454         (*thumb2_movsi_vfp): Likewise.
6455         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
6456         Use f_loads instead of f_load.
6457         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
6458
6459 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
6460
6461         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6462         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
6463         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6464         (xtensa_mode_dependent_address_p): New function.
6465         (constantpool_address_p): Make static. Change return type to bool.
6466         Change argument type to const_rtx. Use CONST_INT_P predicate.
6467
6468 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
6469
6470         PR debug/46583
6471         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
6472
6473 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
6474
6475         PR debug/47283
6476         * cfgexpand.c (expand_debug_expr): Instead of generating
6477         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
6478         etc. handling.
6479
6480 2011-01-20  Richard Guenther  <rguenther@suse.de>
6481
6482         PR middle-end/47370
6483         * tree-inline.c (remap_gimple_op_r): Recurse manually for
6484         the pointer operand of MEM_REFs.
6485
6486 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
6487
6488         PR tree-optimization/46130
6489         * ipa-split.c (consider_split): If return_bb contains non-virtual
6490         PHIs other than for retval or if split_function would not adjust it,
6491         refuse to split.
6492
6493 2011-01-20  Richard Guenther  <rguenther@suse.de>
6494
6495         PR tree-optimization/47167
6496         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
6497         Revert previous change, only avoid enumeral type changes.
6498
6499 2011-01-19  Mike Stump  <mikestump@comcast.net>
6500
6501         * doc/tm.texi.in (BRANCH_COST): Englishify.
6502         * doc/tm.texi (BRANCH_COST): Likewise.
6503
6504 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
6505
6506         PR c++/47291
6507         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
6508         (gen_scheduled_generic_parms_dies): New functions.
6509         (gen_struct_or_union_type_die): Schedule template parameters DIEs
6510         generation for the end of CU compilation.
6511         (dwarf2out_finish): Generate template parameters DIEs here.
6512
6513 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
6514
6515         PR debug/46240
6516         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
6517         debug bind stmt on merge edges.
6518
6519 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
6520
6521         PR debug/47079
6522         PR debug/46724
6523         * function.c (instantiate_expr): Instantiate incoming rtl of
6524         implicit arguments, and recurse on VALUE_EXPRs.
6525         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
6526         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
6527
6528 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
6529
6530         * c-parser.c (c_parser_for_statement): Initialize
6531         collection_expression.
6532
6533 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
6534
6535         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
6536
6537 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
6538
6539         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
6540         (LINK_SHLIB_SPEC): Don't use %(link_path).
6541         (SUBTARGET_EXTRA_SPECS): Remove link_path.
6542
6543 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
6544
6545         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
6546         (NO_SHARED_LIB_SUPPORT): Remove.
6547         (LINK_SHLIB_SPEC): Remove one conditional definition.
6548
6549 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
6550
6551         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
6552         %{call_shared}.
6553         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
6554         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
6555         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
6556         %{call_shared} and conditionals on these options not being passed.
6557         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
6558         %{call_shared}.
6559
6560 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
6561
6562         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
6563         simplify.
6564
6565         * ipa-split.c: Spelling fixes.
6566
6567 2011-01-19  Richard Henderson  <rth@redhat.com>
6568
6569         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
6570         (*mulsi3): Likewise.
6571
6572         * longlong.h [__mn10300__] (count_leading_zeros): New.
6573         [__mn10300__] (umul_ppmm, smul_ppmm): New.
6574         [__mn10300__] (add_ssaaaa, subddmmss): New.
6575         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
6576         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
6577
6578 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6579
6580         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
6581
6582 2011-01-19  Richard Henderson  <rth@redhat.com>
6583
6584         * config/mn10300/mn10300.md (addsi3_flags): New.
6585         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
6586         (subsi3_flags, subc_internal, subdi3): New.
6587         (subdi3_internal, *subdi3_degenerate): New.
6588         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
6589
6590         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
6591         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
6592         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
6593         * config/mn10300/mn10300-protos.h: Update.
6594         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
6595         (return_ret): Likewise.  Rename from return_internal_regs.
6596         (return_internal): Remove.
6597
6598         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
6599         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
6600         (mn10300_legitimate_constant_p): Likewise.
6601         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
6602         (mn10300_frame_size): New.
6603         (mn10300_expand_prologue): Use it.
6604         (mn10300_expand_epilogue): Likewise.
6605         (mn10300_initial_offset): Likewise.
6606         * config/mn10300/mn10300-protos.h: Update.
6607         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
6608         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
6609         (prologue, epilogue, return_internal): Tidy output code.
6610         (mn10300_store_multiple_operation, return): Likewise.
6611         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
6612         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
6613         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
6614         (load_pic, am33_load_pic): New.
6615         (mn10300_load_pic0, mn10300_load_pic1): New.
6616
6617         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
6618         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
6619         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
6620         (cc_flags_for_mode, cc_flags_for_code): New.
6621         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
6622         overflow flag is not valid.  Validate that the flags we need
6623         for the comparison are valid.
6624         (mn10300_output_cmp): Remove.
6625         (mn10300_output_add): New.
6626         (mn10300_select_cc_mode): Use cc_flags_for_code.
6627         (mn10300_split_cbranch): New.
6628         (mn10300_match_ccmode): New.
6629         (mn10300_split_and_operand_count): New.
6630         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
6631         to the function.
6632         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
6633         (addsi3): ... here.  Use mn10300_output_add.
6634         (*addsi3_flags): New.
6635         (*am33_subsi3, *mn10300_subsi3): Merge...
6636         (subsi3): ... here.  Use attribute isa.
6637         (*subsi3_flags): New.
6638         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
6639         when possible.
6640         (*am33_andsi3, *mn10300_andsi3): Merge...
6641         (andsi3): ... here.
6642         (*andsi3_flags): New.
6643         (andsi3 splitters): New.
6644         (*am33_iorsi3, *mn10300_iorsi3): Merge...
6645         (iorsi3): ... here.
6646         (*iorsi3_flags): New.
6647         (*am33_xorsi3, *mn10300_xorsi3): Merge...
6648         (xorsi3): ... here.
6649         (*xorsi3_flags): New.
6650         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
6651         (one_cmplsi2): ... here.
6652         (*one_cmplsi2_flags): New.
6653         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
6654         instead of "dax" in constraints.  Use mn10300_split_cbranch.
6655         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
6656         use matching constraints to eliminate a self-comparison.
6657         (*integer_conditional_branch): Rename from integer_conditional_branch.
6658         Use int_mode_flags to match CC_REG.
6659         (*cbranchsi4_btst, *btstsi): New.
6660         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
6661         mn10300_split_cbranch.
6662         (*am33_cmpsf): Rename from am33_cmpsf.
6663         (*float_conditional_branch): Rename from float_conditional_branch.
6664         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
6665         (zero_extendqisi2): ... here.
6666         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
6667         (zero_extendhisi2): ... here.
6668         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
6669         (extendqisi2): ... here.
6670         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
6671         (extendhisi2): ... here.
6672         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
6673         (ashlsi3): ... here.
6674         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
6675         (lshrsi3): ... here.
6676         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
6677         (ashrsi3): ... here.
6678         (consecutive add peephole): Remove.
6679         * config/mn10300/predicates.md (label_ref_operand): New.
6680         (int_mode_flags): New.
6681         (CCZN_comparison_operator): New.
6682
6683         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
6684         (throughput_42_latency_43): New reservation.
6685         (mulsidi3, umulsidi3): New expanders.
6686         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
6687         the MDR register to allocation; separately allocate the low and
6688         high parts of the DImode result.
6689         (umulsidi3_internal): Similarly.
6690         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
6691         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
6692         (udivsi3, umodsi3): Remove.
6693         (udivmodsi4, divmodsi4): New expanders.
6694         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
6695         (*divmodsi4): Simiarly.
6696         (ext_internal): New.
6697
6698         * config/mn10300/constraints.md ("z"): New constraint.
6699         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
6700         (FIXED_REGISTERS): Don't fix MDR.
6701         (CALL_USED_REGSITERS): Reformat nicely.
6702         (REG_ALLOC_ORDER): Add MDR.
6703         (enum regclass): Add MDR_REGS.
6704         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
6705         (IRA_COVER_CLASSES): Add MDR_REGS.
6706         (REGNO_REG_CLASS): Handle MDR_REG.
6707         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
6708         (mn10300_register_move_cost): Likewise.
6709         * config/mn10300/mn10300.md (MDR_REG): New.
6710         (*movsi_internal): Handle moves to/from MDR_REGS.
6711
6712         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
6713         POST_MODIFY.
6714         (mn10300_secondary_reload): Tidy combination reload classes.
6715         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
6716         addresses for AM33.  Allow symbolic offsets for reg+imm.
6717         (mn10300_regno_in_class_p): New.
6718         (mn10300_legitimize_reload_address): New.
6719         * config/mn10300/mn10300.h (enum reg_class): Remove
6720         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
6721         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
6722         SP_OR_GENERAL_REGS.
6723         (REG_CLASS_NAMES): Update to match.
6724         (REG_CLASS_CONTENTS): Likewise.
6725         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
6726         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
6727         (REGNO_IN_RANGE_P): Remove.
6728         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
6729         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
6730         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
6731         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
6732         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
6733         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
6734         (REGNO_GENERAL_P): New.
6735         (HAVE_POST_MODIFY_DISP): New.
6736         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
6737         (LEGITIMIZE_RELOAD_ADDRESS): New.
6738         * config/mn10300/mn10300-protos.h: Update.
6739
6740         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
6741         DATA_REGS for AM33 stack-pointer destination.
6742         (mn10300_preferred_output_reload_class): Likewise.
6743         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
6744         into a form appropriate for ...
6745         (TARGET_SECONDARY_RELOAD): New.
6746         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
6747         * config/mn10300/mn10300-protos.h: Update.
6748         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
6749         reload_insi; use the "A" constraint for the scratch; handle AM33
6750         moves of sp to non-address registers.
6751
6752         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
6753         (*movqi_internal): ... here.
6754         (*am33_movhi, *mn10300_movhi): Merge into...
6755         (*movhi_internal): ... here.
6756         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
6757         as the source/destination of moves from/to SP.
6758         (movsf): Only allow for AM33-2.
6759         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
6760         any integer constant constraint.  Only allow for AM33-2.  Tidy
6761         all of the alternative outputs.
6762         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
6763         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
6764         for MN103.
6765         (udivsi3, umodsi3): New patterns for MN103 only.
6766
6767 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
6768
6769         * doc/tm.texi.in: Spell out that a lack of register class unions
6770         can lead to ICEs.
6771         * doc/tm.texi: Regenerate.
6772
6773 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
6774
6775         PR rtl-optimization/47337
6776         * dce.c (check_argument_store): New function.
6777         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
6778
6779         PR tree-optimization/47290
6780         * tree-eh.c (infinite_empty_loop_p): New function.
6781         (cleanup_empty_eh): Use it.
6782
6783 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
6784
6785         PR target/46997
6786         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
6787         (a64_expand_widen_sum): Ditto.
6788         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
6789         (vec_extract_evenodd_help): Ditto.
6790         (vec_extract_evenv4hi): Ditto.
6791         (vec_extract_oddv4hi): Ditto.
6792         (vec_extract_evenv2si): Ditto.
6793         (vec_extract_oddv2si): Ditto.
6794         (vec_extract_evenv2sf): Ditto.
6795         (vec_extract_oddv2sf): Ditto.
6796         (vec_pack_trunc_v4hi: Ditto.
6797         (vec_pack_trunc_v2si): Ditto.
6798         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
6799         (vec_interleave_highv8qi): Ditto.
6800         (mix1_r): Ditto.
6801         (vec_extract_oddv8qi): Ditto.
6802         (vec_interleave_lowv4hi): Ditto.
6803         (vec_interleave_highv4hi): Ditto.
6804         (vec_interleave_lowv2si): Ditto.
6805         (vec_interleave_highv2si): Ditto.
6806
6807 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6808
6809         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
6810         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
6811         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
6812         (pa_c_mode_for_suffix): New.
6813         (TARGET_EXPAND_BUILTIN): Define.
6814         (TARGET_C_MODE_FOR_SUFFIX): Define.
6815         (pa_builtins): Define.
6816         (pa_init_builtins): Register __float128 type and init new support
6817         builtins.
6818         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
6819         * config/pa/quadlib.c (_U_Qfcopysign): New.
6820
6821 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
6822
6823         PR middle-end/46894
6824         * explow.c (allocate_dynamic_stack_space): Do not assume more than
6825         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
6826         are defined.
6827
6828 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6829
6830         PR tree-optimization/47179
6831         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
6832         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
6833
6834 2011-01-18  Richard Guenther  <rguenther@suse.de>
6835
6836         PR rtl-optimization/47216
6837         * emit-rtl.c: Include tree-flow.h.
6838         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
6839         of replicating it with different semantics.
6840         * Makefile.in (emit-rtl.o): Adjust.
6841
6842 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6843
6844         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
6845         (cortex_a9_dp): Handle neon types correctly.
6846
6847 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
6848
6849         PR rtl-optimization/47299
6850         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
6851         subtarget.  Use normal multiplication if both operands are constants.
6852         * expmed.c (expand_widening_mult): Don't try to optimize constant
6853         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
6854         before using it.
6855
6856 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6857
6858         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
6859         spacing after 'e.g.', typos, comma, hyphenation.
6860
6861 2011-01-17  Richard Henderson  <rth@redhat.com>
6862
6863         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
6864         (rx_restricted_mem_operand): New.
6865         (rx_shift_operand): Use register_operand.
6866         (rx_source_operand, rx_compare_operand): Likewise.
6867         * config/rx/rx.md (addsi3_flags): New expander.
6868         (adddi3): Rewrite as expander.
6869         (adc_internal, *adc_flags, adddi3_internal): New patterns.
6870         (subsi3_flags): New expander.
6871         (subdi3): Rewrite as expander.
6872         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
6873
6874         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
6875         (rx_init_builtins): Remove sat builtin.
6876         (rx_expand_builtin): Likewise.
6877         * config/rx/rx.md (ssaddsi3): New.
6878         (*sat): Rename from sat.  Represent the CC_REG input.
6879
6880         * config/rx/predicates.md (rshift_operator): New.
6881         * config/rx/rx.c (rx_expand_insv): Remove.
6882         * config/rx/rx-protos.h: Update.
6883         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
6884         operand to the canonical position.
6885         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
6886         (*bitclr, *bitclr_in_memory): Similarly.
6887         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
6888         (insv): Retain the zero_extract in the expansion.
6889
6890         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
6891         (bswaphi2, bitinvert, revw): Likewise.
6892
6893         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
6894         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
6895         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
6896         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
6897         (bitset, bitset_in_memory): Likewise.
6898         (bitinvert, bitinvert_in_memory): Likewise.
6899         (bitclr, bitclr_in_memory): Likewise.
6900         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
6901         (rx_strend, rx_cmpstrn): Likewise.
6902         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
6903         (bitop peep2 patterns): Remove.
6904
6905         * config/rx/rx.c (rx_match_ccmode): New.
6906         * config/rx/rx-protos.h: Update.
6907         * config/rx/rx.md (abssi2): Clobber, don't set flags.
6908         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
6909         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
6910         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
6911         (fix_truncsfsi2, floatsisf2): Likewise.
6912         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
6913         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
6914         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
6915         (*subsi3_flags, *xorsi3_flags): New.
6916
6917         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
6918
6919         * config/rx/rx.c (rx_print_operand): Remove workaround for
6920         unsplit comparison operations.
6921
6922         * config/rx/rx.md (movsicc): Split after reload.
6923         (*movsicc): Merge *movsieq and *movsine via match_operator.
6924         (*stcc): New pattern.
6925
6926         * config/rx/rx.c (rx_float_compare_mode): Remove.
6927         * config/rx/rx.h (rx_float_compare_mode): Remove.
6928         * config/rx/rx.md (cstoresi4): Split after reload.
6929         (*sccc): New pattern.
6930
6931         * config/rx/predicates.md (label_ref_operand): New.
6932         (rx_z_comparison_operator): New.
6933         (rx_zs_comparison_operator): New.
6934         (rx_fp_comparison_operator): New.
6935         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
6936         Validate that the flags are set properly for the comparison.
6937         (rx_gen_cond_branch_template): Remove.
6938         (rx_cc_modes_compatible): Remove.
6939         (mode_from_flags): New.
6940         (flags_from_code): Rename from flags_needed_for_conditional.
6941         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
6942         (rx_select_cc_mode): Likewise.
6943         (rx_split_fp_compare): New.
6944         (rx_split_cbranch): New.
6945         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
6946         (*cbranchsi4): Use match_operator and rx_split_cbranch.
6947         (*cbranchsf4): Similarly.
6948         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
6949         match_operator and rx_split_cbranch.
6950         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
6951         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
6952         (*cmpsi): Rename from cmpsi.
6953         (*tstsi): Rename from tstsi.
6954         (*cmpsf): Rename from cmpsf; use CC_Fmode.
6955         (*conditional_branch): Rename from conditional_branch.
6956         (*reveresed_conditional_branch): Remove.
6957         (b<code>): Remove expander.
6958         * config/rx/rx-protos.h: Update.
6959
6960         * config/rx/rx.c (rx_compare_redundant): Remove.
6961         * config/rx/rx.md (cmpsi): Don't use it.
6962         * config/rx/rx-protos.h: Update.
6963
6964         * config/rx/rx-modes.def (CC_F): New mode.
6965         * config/rx/rx.c (rx_select_cc_mode): New.
6966         * config/rx/rx.h (SELECT_CC_MODE): Use it.
6967         * config/rx/rx-protos.h: Update.
6968
6969 2011-01-17  Richard Henderson  <rth@redhat.com>
6970
6971         * except.c (dump_eh_tree): Fix stray ; after for statement.
6972
6973 2011-01-17  Richard Guenther  <rguenther@suse.de>
6974
6975         PR tree-optimization/47313
6976         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
6977         handling before copying the body.  Properly deal with
6978         by-reference result in SSA form.
6979
6980 2011-01-17  Ian Lance Taylor  <iant@google.com>
6981
6982         PR target/47219
6983         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
6984         (struct_value_alias_set): Don't define.
6985         (sparc_option_override): Don't set sparc_sr_alias_set and
6986         struct_value_alias_set.
6987         (save_or_restore_regs): Use gen_frame_mem rather than calling
6988         set_mem_alias_set.
6989         (sparc_struct_value_rtx): Likewise.
6990
6991 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
6992
6993         PR target/47318
6994         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
6995         (_mm_maskstore_pd): Likewise.
6996         (_mm_maskload_ps): Likewise.
6997         (_mm_maskstore_ps): Likewise.
6998         (_mm256_maskload_pd): Change mask to __m256i.
6999         (_mm256_maskstore_pd): Likewise.
7000         (_mm256_maskload_ps): Likewise.
7001         (_mm256_maskstore_ps): Likewise.
7002
7003         * config/i386/i386-builtin-types.def: Updated.
7004         (ix86_expand_special_args_builtin): Likewise.
7005
7006         * config/i386/i386.c (bdesc_special_args): Update
7007         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
7008         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
7009         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
7010         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
7011
7012         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
7013         Use <avxpermvecmode> on mask register.
7014         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
7015
7016 2011-01-17  Olivier Hainque  <hainque@adacore.com>
7017             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
7018             Eric Botcazou  <ebotcazou@adacore.com>
7019
7020         PR target/46655
7021         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
7022         if <= USHRT_MAX in 32-bit mode.
7023
7024 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7025
7026         * doc/install.texi (Configuration, Specific): Wrap long
7027         lines in examples.  Allow line wrapping in long options
7028         and URLs where beneficial for PDF output.
7029
7030 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
7031
7032         * config/mips/mips.c (mips_classify_symbol): Don't return
7033         SYMBOL_PC_RELATIVE for nonlocal labels.
7034
7035 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
7036
7037         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
7038
7039 2011-01-15  Jan Hubicka  <jh@suse.cz>
7040
7041         PR tree-optimization/47276
7042         * ipa.c (function_and_variable_visibility): Do not try to mark alias
7043         declarations as needed.
7044
7045 2011-01-15  Martin Jambor  <mjambor@suse.cz>
7046
7047         * common.opt (fdevirtualize): New flag.
7048         * doc/invoke.texi (Option Summary): Document it.
7049         * opts.c (default_options_table): Add devirtualize flag.
7050         * ipa-prop.c (detect_type_change): Return immediately if
7051         devirtualize flag is not set.
7052         (detect_type_change_ssa): Likewise.
7053         (compute_known_type_jump_func): Likewise.
7054         (ipa_analyze_virtual_call_uses): Likewise.
7055
7056 2011-01-14  Martin Jambor  <mjambor@suse.cz>
7057
7058         PR tree-optimization/45934
7059         PR tree-optimization/46302
7060         * ipa-prop.c (type_change_info): New type.
7061         (stmt_may_be_vtbl_ptr_store): New function.
7062         (check_stmt_for_type_change): Likewise.
7063         (detect_type_change): Likewise.
7064         (detect_type_change_ssa): Likewise.
7065         (compute_complex_assign_jump_func): Check for dynamic type change.
7066         (compute_complex_ancestor_jump_func): Likewise.
7067         (compute_known_type_jump_func): Likewise.
7068         (compute_scalar_jump_functions): Likewise.
7069         (ipa_analyze_virtual_call_uses): Likewise.
7070         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
7071
7072 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7073
7074         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
7075         * config/i386/i386.opt (msse5): New Alias.
7076
7077 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7078
7079         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
7080         * config/sparc/linux64.h (CC1_SPEC): Likewise.
7081         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
7082         * config/sparc/sparc.h (CC1_SPEC): Likewise.
7083
7084 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7085
7086         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
7087         -mcpu options.
7088         * config/sparc/linux64.h (CC1_SPEC): Likewise.
7089         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
7090         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
7091         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
7092         Likewise.
7093         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
7094
7095 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7096
7097         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
7098
7099 2011-01-14  Mike Stump  <mikestump@comcast.net>
7100
7101         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
7102         * config/fr30/fr30.md: Likweise
7103         (movsi_push): Likewise.
7104         (movsi_pop): Likewise.
7105         (enter_func): Likewise.
7106         * config/moxie/moxie.md (movsi_push): Likewise.
7107         (movsi_pop): Likewise.
7108
7109 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7110
7111         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
7112         %{no_archive} %{exact_version}.
7113         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
7114         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
7115         %{no_archive} %{exact_version}.
7116         * config/mips/openbsd.h (LINK_SPEC): Likewise.
7117         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
7118         * config/mips/vxworks.h: Likewise.
7119
7120 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7121
7122         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
7123
7124 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7125
7126         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
7127         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
7128
7129 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7130
7131         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
7132         -nodefaultlib.
7133
7134 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7135
7136         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
7137         for mcpu not cpu.
7138         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
7139         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
7140         not cpu.
7141         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
7142         Don't handle -shlib.
7143
7144 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7145
7146         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
7147         (CC1_SPEC): Don't handle -profile.
7148
7149 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7150
7151         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
7152         * config/mips/mips.h (CC1_SPEC): Likewise.
7153
7154 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7155
7156         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
7157         * config/mips/mips.h (CC1_SPEC): Likewise.
7158
7159 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7160
7161         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
7162         * config/m32r/linux.h (LINK_SPEC): Likewise.
7163         * config/mips/linux.h (LINK_SPEC): Likewise.
7164         * config/mips/linux64.h (LINK_SPEC): Likewise.
7165         * config/sparc/linux.h (LINK_SPEC): Likewise.
7166         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
7167         LINK_SPEC): Likewise.
7168         * config/xtensa/linux.h (LINK_SPEC): Likewise.
7169
7170 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7171
7172         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
7173         %{version:-v}.
7174         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
7175
7176 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7177
7178         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
7179         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
7180
7181 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
7182
7183         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
7184
7185 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7186
7187         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
7188         supports -Bstatic/-Bdynamic.
7189         * configure: Regenerate.
7190
7191 2011-01-14  Jan Hubicka  <jh@suse.cz>
7192             Jack Howarth  <howarth@bromo.med.uc.edu>
7193
7194         PR target/46037
7195         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
7196         when checking debug_info_level. Test write_symbols instead of
7197         debug_hooks->var_location when setting flag_var_tracking_uninit.
7198
7199 2011-01-14  Richard Guenther  <rguenther@suse.de>
7200
7201         PR tree-optimization/47179
7202         * target.def (ref_may_alias_errno): New target hook.
7203         * targhooks.h (default_ref_may_alias_errno): Declare.
7204         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
7205         (default_ref_may_alias_errno): New function.
7206         * target.h (struct ao_ref_s): Declare.
7207         * tree-ssa-alias.c: Include target.h.
7208         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
7209         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
7210         (targhooks.o): Likewise.
7211         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
7212         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
7213
7214 2011-01-14  Richard Guenther  <rguenther@suse.de>
7215
7216         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
7217
7218 2011-01-14  Richard Guenther  <rguenther@suse.de>
7219
7220         PR tree-optimization/47280
7221         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
7222         return CFG changes.
7223         (tree_ssa_forward_propagate_single_use_vars): Deal with
7224         CFG changes from associate_plusminus.
7225
7226 2011-01-14  Richard Guenther  <rguenther@suse.de>
7227
7228         PR middle-end/47281
7229         Revert
7230         2011-01-11  Richard Guenther  <rguenther@suse.de>
7231
7232         PR tree-optimization/46076
7233         * tree-ssa.c (useless_type_conversion_p): Conversions from
7234         unprototyped to empty argument list function types are useless.
7235
7236 2011-01-14  Richard Guenther  <rguenther@suse.de>
7237
7238         PR tree-optimization/47286
7239         * tree-ssa-structalias.c (new_var_info): Register variables are global.
7240
7241 2011-01-14  Martin Jambor  <mjambor@suse.cz>
7242
7243         PR middle-end/46823
7244         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
7245
7246 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
7247
7248         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
7249         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7250         * config/xtensa/xtensa.c (xtensa_libcall_value,
7251         xtensa_function_value_regno_p): New functions.
7252         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
7253
7254 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
7255
7256         PR c++/47213
7257         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
7258         PE specific hook.
7259         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
7260         New function prototype.
7261         * config/i386/winnt.c (i386_pe_assemble_visibility):
7262         Warn only if attribute was specified by user.
7263
7264 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
7265
7266         PR target/47251
7267         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
7268         floating point.
7269         (floatunsdidf2_fcfidu): Ditto.
7270
7271 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7272
7273         * config/s390/s390.c (print_operand_address): Replace 'error' with
7274         'output_operand_lossage'.
7275         (print_operand): Likewise.
7276
7277 2011-01-13  Jeff Law  <law@redhat.com>
7278
7279         PR rtl-optimization/39077
7280         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
7281         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
7282         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
7283         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
7284         * gcse.c (prune_insertions_deletions): New function.
7285         (compute_pre_data): Use it.
7286
7287 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
7288
7289         PR debug/PR46973
7290         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
7291         static function.
7292         (prune_unused_types_mark): Use it.
7293
7294 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
7295
7296         PR rtl-optimization/45352
7297         * sel-sched.c: Update copyright years.
7298         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
7299         in the advancing loop when we have issued issue_rate insns.
7300
7301 2011-01-12  Richard Henderson  <rth@redhat.com>
7302
7303         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
7304         (TARGET_MD_ASM_CLOBBERS): New.
7305
7306         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
7307         (TARGET_DELEGITIMIZE_ADDRESS): New.
7308
7309         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
7310         (clzsi2, *bsch): New patterns.
7311
7312         * config/mn10300/mn10300.md (INT): New mode iterator.
7313         (*mov<INT>_clr): New pattern, and peep2 to generate it.
7314
7315         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
7316         flag_split_wide_types.
7317
7318         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
7319         (mn10300_trampoline_init): Rewrite without a template, an immediate
7320         load and a direct branch.
7321         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
7322
7323 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
7324
7325         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7326         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
7327         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
7328         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7329
7330 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
7331
7332         PR debug/47209
7333         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
7334         of type.
7335
7336 2011-01-12  Jan Hubicka  <jh@suse.cz>
7337
7338         PR driver/47244
7339         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
7340         (PLUGIN_COND_CLOSE): New macro.
7341         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
7342
7343 2011-01-12  Richard Guenther  <rguenther@suse.de>
7344
7345         PR lto/47259
7346         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
7347         register variables in a MEM_REF.
7348
7349 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
7350
7351         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
7352         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
7353         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
7354         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7355         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7356         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
7357         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
7358         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
7359         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
7360         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
7361         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
7362         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
7363         * config/gnu-user.h: New.  Copied from linux.h.
7364         (LINUX_TARGET_STARTFILE_SPEC): Rename to
7365         GNU_USER_TARGET_STARTFILE_SPEC.
7366         (LINUX_TARGET_ENDFILE_SPEC): Rename to
7367         GNU_USER_TARGET_ENDFILE_SPEC.
7368         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
7369         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
7370         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
7371         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
7372         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
7373         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
7374         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
7375         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
7376         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
7377         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
7378         * config/arm/linux-eabi.h (CC1_SPEC): Use
7379         GNU_USER_TARGET_CC1_SPEC.
7380         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
7381         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
7382         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
7383         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
7384         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
7385         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
7386         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
7387         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
7388
7389 2011-01-12  Richard Guenther  <rguenther@suse.de>
7390
7391         PR other/46946
7392         * doc/invoke.texi (ffast-math): Document it is turned on
7393         with -Ofast.
7394
7395 2011-01-12  Jan Hubicka  <jh@suse.cz>
7396
7397         PR tree-optimization/47233
7398         * opts.c (common_handle_option): Disable ipa-reference with profile
7399         feedback.
7400
7401 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
7402
7403         * c-parser.c (c_parser_objc_at_property_declaration): Improved
7404         error message.
7405
7406 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
7407
7408         * c-parser.c (c_lex_one_token): Updated and reindented some
7409         comments.  No changes in code.
7410
7411 2011-01-11  Ian Lance Taylor  <iant@google.com>
7412
7413         * godump.c (go_output_var): Don't output the variable if there is
7414         already a type with the same name.
7415
7416 2011-01-11  Ian Lance Taylor  <iant@google.com>
7417
7418         * godump.c (go_format_type): Don't generate float80.
7419
7420 2011-01-11  Richard Henderson  <rth@redhat.com>
7421
7422         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
7423         declaration.  Rewrite for both speed and size.
7424         (mn10300_address_cost_1): Remove.
7425         (mn10300_register_move_cost): New.
7426         (mn10300_memory_move_cost): New.
7427         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
7428         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
7429         extensions, shifts, BSWAP, CLZ.
7430         (mn10300_wide_const_load_uses_clr): Remove.
7431         (TARGET_REGISTER_MOVE_COST): New.
7432         (TARGET_MEMORY_MOVE_COST): New.
7433         * config/mn10300/mn10300-protos.h: Update.
7434         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
7435
7436         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
7437         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
7438         * config/mn10300/mn10300-protos.h: Update.
7439         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
7440         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
7441         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
7442         (*test_int_bitfield, *test_byte_bitfield): Remove.
7443         (*bit_test, *subreg_bit_test): Remove.
7444         * config/mn10300/predicates.md (const_8bit_operand): Remove.
7445
7446         * config/mn10300/constraints.md ("c"): Rename from "A".
7447         ("A", "D"): New constraint letters.
7448         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
7449         (fmssf4, fnmasf4, fnmssf4): Likewise.
7450
7451         * config/mn10300/mn10300.md (isa): New attribute.
7452         (enabled): New attribute.
7453
7454         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
7455         (abssf2, negsf2): Define only for hardware fp.
7456         (sqrtsf2): Reformat.
7457         (addsf3, subsf3, mulsf3): Merge expander and insn.
7458
7459         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
7460         (DEBUGGER_AUTO_OFFSET): Remove.
7461         (DEBUGGER_ARG_OFFSET): Remove.
7462
7463         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
7464         Emit register stores with the same offsets as the hardware.
7465         (mn10300_store_multiple_operation): Don't check that the register
7466         save offsets are monotonic.
7467         * config/mn10300/mn10300-protos.h: Update.
7468
7469         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
7470
7471         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
7472         in terms of the value on the stack, not the MDR register.
7473
7474 2011-01-11  Jan Hubicka  <jh@suse.cz>
7475
7476         PR lto/45721
7477         PR lto/45375
7478         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
7479         (symbol_alias_set_destroy, symbol_alias_set_contains,
7480         propagate_aliases_backward): Declare.
7481         * lto-streamer-out.c (struct sets): New sturcture.
7482         (trivally_defined_alias): New function.
7483         (output_alias_pair_p): Rewrite.
7484         (output_unreferenced_globals): Fix output of alias pairs.
7485         (produce_symtab): Likewise.
7486         * ipa.c (function_and_variable_visibility): Set weak alias destination
7487         as needed in lto.
7488         * varasm.c (symbol_alias_set_t): Remove.
7489         (symbol_alias_set_destroy): Export.
7490         (propagate_aliases_forward, propagate_aliases_backward): New functions
7491         based on ...
7492         (compute_visible_aliases): ... this one; remove.
7493         (trivially_visible_alias): New
7494         (trivially_defined_alias): New.
7495         (remove_unreachable_alias_pairs): Rewrite.
7496         (finish_aliases_1): Reorganize code checking if alias is defined.
7497         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
7498         in LTO mode.
7499
7500 2011-01-11  Richard Guenther  <rguenther@suse.de>
7501
7502         PR tree-optimization/46076
7503         * tree-ssa.c (useless_type_conversion_p): Conversions from
7504         unprototyped to empty argument list function types are useless.
7505
7506 2011-01-11  Richard Guenther  <rguenther@suse.de>
7507
7508         PR middle-end/45235
7509         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
7510         volatile MEMs as MEM_READONLY_P.
7511
7512 2011-01-11  Richard Guenther  <rguenther@suse.de>
7513
7514         PR tree-optimization/47239
7515         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
7516
7517 2011-01-11  Jeff Law  <law@redhat.com>
7518
7519         PR tree-optimization/47086
7520         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
7521         IVs from statements that might throw.
7522
7523 2011-01-10  Jan Hubicka  <jh@suse.cz>
7524
7525         PR lto/45375
7526         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
7527
7528 2011-01-10  Jan Hubicka  <jh@suse.cz>
7529
7530         PR lto/45375
7531         * profile.c (read_profile_edge_counts): Ignore profile inconistency
7532         when correcting profile.
7533
7534 2011-01-10  Jan Hubicka  <jh@suse.cz>
7535
7536         PR lto/46083
7537         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
7538         DECL_FINI_PRIORITY.
7539         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
7540         Restore DECL_FINI_PRIORITY.
7541
7542 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7543
7544         * doc/gimple.texi: Fix quoting of multi-word return values in
7545         @deftypefn statements.  Ensure presence of return value.  Wrap
7546         overlong @deftypefn lines.
7547         (is_gimple_operand, is_gimple_min_invariant_address): Remove
7548         descriptions of removed functions.
7549         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
7550         of multi-word return value in @deftypefn statement.
7551
7552 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7553
7554         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
7555         (Conditional Expressions, Logical Operators)
7556         (Statement and operand traversals): Do not indent smallexample
7557         code.  Fix duplicate function argument in example.
7558
7559 2011-01-10  Jeff Law  <law@redhat.com>
7560
7561         PR tree-optimization/47141
7562         * ipa-split.c (split_function): Handle case where we are
7563         returning a value and the return block has a virtual operand phi.
7564
7565 2011-01-10  Jan Hubicka  <jh@suse.cz>
7566
7567         PR tree-optimization/47234
7568         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
7569         (pass_feedback_split_functions): Declare.
7570         * passes.c (init_optimization_passes): Add ipa-split as subpass of
7571         tree-profile.
7572         * ipa-split.c (gate_split_functions): Update comments; disable
7573         split-functions for profile_arc_flag and branch_probabilities.
7574         (gate_feedback_split_functions): New function.
7575         (execute_feedback_split_functions): New function.
7576         (pass_feedback_split_functions): New global var.
7577
7578 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
7579
7580         PR lto/46760
7581         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
7582         calling gimple_call_set_cannot_inline.
7583
7584 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
7585
7586         * config/darwin-sections.def: Remove unused section.
7587
7588 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
7589
7590         PR c++/47218
7591         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
7592
7593 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
7594
7595         PR objc/47232
7596         * c-parser.c (c_parser_declaration_or_fndef): Improved
7597         error message.
7598
7599 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
7600
7601         * config/i386/winnt.c (i386_pe_start_function): Make sure
7602         to switch back to function's section.
7603
7604 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
7605
7606         PR gcc/46902
7607         PR testsuite/46912
7608         * plugin.c: Move include of dlfcn.h from here...
7609         * system.h: ... to here.
7610
7611 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7612
7613         * doc/cpp.texi (C++ Named Operators): Fix markup for header
7614         file name.
7615         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
7616         two extra empty pages in PDF output.
7617
7618 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
7619
7620         PR objc/47078
7621         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
7622         for error recovery purposes behave as if it was not specified so
7623         that the default type is usd.
7624
7625 2011-01-07  Jan Hubicka  <jh@suse.cz>
7626
7627         PR tree-optmization/46469
7628         * ipa.c (function_and_variable_visibility): Clear needed flags on
7629         nodes with external decls; handle weakrefs merging correctly.
7630
7631 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
7632
7633         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
7634         not false.
7635
7636 2011-01-07  Jan Hubicka  <jh@suse.cz>
7637
7638         * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
7639         and no longer claim that gold is required for linker plugin.
7640         * configure: Regenerate.
7641         * gcc.c (PLUGIN_COND): New macro.
7642         (LINK_COMMAND_SPEC): Use it.
7643         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
7644         * config.in (HAVE_LTO_PLUGIN): New.
7645         * configure.ac (--with-lto-plugin): New parameter; autodetect
7646         HAVE_LTO_PLUGIN.
7647
7648 2011-01-07  Jan Hubicka  <jh@suse.cz>
7649
7650         PR tree-optimization/46367
7651         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
7652         when we can update original.
7653         (cgraph_mark_inline_edge): Sanity check.
7654         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
7655
7656 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7657
7658         * config/spu/spu.h (ASM_COMMENT_START): Define.
7659
7660 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
7661
7662         PR driver/42445
7663         * gcc.c (%>S): New.
7664         (SWITCH_KEEP_FOR_GCC): Likewise.
7665         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
7666         (do_spec_1): Handle "%>".
7667
7668         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
7669
7670 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
7671
7672         PR target/47201
7673         * config/i386/i386.c (ix86_delegitimize_address): If
7674         simplify_gen_subreg fails, return orig_x.
7675
7676         PR bootstrap/47187
7677         * value-prof.c (gimple_stringop_fixed_value): Handle
7678         lhs of the call properly.
7679
7680 2011-01-07  Jan Hubicka  <jh@suse.cz>
7681
7682         PR lto/45375
7683         * lto-opt.c (lto_reissue_options): Set flag_shlib.
7684
7685 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
7686
7687         * target.def (function_switched_text_sections): New hook.
7688         * doc/tm.texi: Regenerated.
7689         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
7690         * final.c (default_function_switched_text_sections): New.
7691         (final_scan_insn): Call function_switched_text_sections when a
7692         mid-function section change occurs.
7693         * output.h (default_function_switched_text_sections): Declare.
7694         * config/darwin-protos.h (darwin_function_switched_text_sections):
7695         Likewise.
7696         * config/darwin.c (darwin_function_switched_text_sections): New.
7697         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
7698
7699 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
7700
7701         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
7702         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
7703         the secondary code fragment when outputting for DWARF == 2.
7704
7705 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
7706
7707         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7708         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
7709         Remove.
7710         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
7711         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7712
7713 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
7714
7715         PR debug/46704
7716         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
7717         when it is not empty.
7718
7719 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
7720
7721         Bobcat Enablement
7722         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
7723         (case ${target}): Add btver1.
7724         * config/i386/driver-i386.c (host_detect_local_cpu): Let
7725         -march=native recognize btver1 processors.
7726         * config/i386/i386-c.c (ix86_target_macros_internal): Add
7727         btver1 def_and_undef
7728         * config/i386/i386.c (struct processor_costs btver1_cost): New
7729         btver1 cost table.
7730         (m_BTVER1): New definition.
7731         (m_AMD_MULTIPLE): Includes m_BTVER1.
7732         (initial_ix86_tune_features): Add btver1 tune.
7733         (processor_target_table): Add btver1 entry.
7734         (static const char *const cpu_names): Add btver1 entry.
7735         (software_prefetching_beneficial_p): Add btver1.
7736         (ix86_option_override_internal): Add btver1 instruction sets.
7737         (ix86_issue_rate): Add btver1.
7738         (ix86_adjust_cost): Add btver1.
7739         * config/i386/i386.h (TARGET_BTVER1): New definition.
7740         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
7741         (enum processor_type): Add PROCESSOR_BTVER1.
7742         * config/i386/i386.md (define_attr "cpu"): Add btver1.
7743
7744 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7745
7746         PR target/43309
7747         * config/i386/i386.c (legitimize_tls_address)
7748         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
7749         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
7750         (tls_initial_exec_64_sun): New pattern.
7751
7752 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
7753
7754         * doc/invoke.texi (Overall Options): Improve wording and markup
7755         of the description of -wrapper.
7756
7757 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
7758
7759         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
7760         rdynamic, threads): New Driver options.
7761
7762 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7763
7764         PR target/38118
7765         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
7766         if coming from .tdata.
7767         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
7768
7769 2011-01-06  Jan Hubicka  <jh@suse.cz>
7770
7771         PR lto/47188
7772         * collect2.c (main): Do not enable LTOmode when plugin is active.
7773
7774 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7775
7776         PR other/45915
7777         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
7778         --version output if supported.
7779         * configure: Regenerate.
7780
7781 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
7782
7783         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
7784         Driver options.
7785
7786 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
7787
7788         PR c/47150
7789         * c-convert.c (convert): When converting a complex expression
7790         other than COMPLEX_EXPR to a different complex type, ensure
7791         c_save_expr is called instead of save_expr, unless in_late_binary_op.
7792         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
7793         when converting COMPLEX_TYPE.
7794
7795 2011-01-06  Ira Rosen  <irar@il.ibm.com>
7796
7797         PR tree-optimization/47139
7798         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
7799         only the last reduction value is used outside the loop.  Update
7800         documentation.
7801
7802 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
7803
7804         * config/rtems.opt: New.
7805         * config.gcc (*-*-rtems*): Use rtems.opt.
7806
7807 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
7808
7809         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
7810         processors do not support 3DNow instructions.
7811
7812 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7813
7814         * config/spu/spu.c (spu_option_override): Set parameter
7815         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
7816
7817 2011-01-05  Jan Hubicka  <jh@suse.cz>
7818
7819         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
7820         at the command line.
7821
7822 2011-01-05  Martin Jambor  <mjambor@suse.cz>
7823
7824         PR lto/47162
7825         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
7826         deltas on streamed outgoing edges.
7827         (output_node_opt_summary): Output info for outgoing edges only when
7828         the node is in new parameter set.
7829         (output_cgraph_opt_summary): New parameter set, passed to the two
7830         aforementioned functions.  Update its forward declaration and its
7831         callee too.
7832
7833 2011-01-05  Tom Tromey  <tromey@redhat.com>
7834
7835         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
7836         operator to c_finish_omp_atomic.
7837         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
7838         (build_unary_op): Update.
7839         (build_modify_expr): Update.
7840         (build_asm_expr): Update.
7841
7842 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7843
7844         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
7845         newly inserted insns.
7846         (pad_bb): Likewise.
7847         (spu_emit_branch_hint): Likewise.
7848         (insert_hbrp_for_ilb_runout): Likewise.
7849         (spu_machine_dependent_reorg): Call df_finish_pass after
7850         schedule_insns returns.
7851
7852 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7853
7854         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
7855
7856 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
7857
7858         PR tree-optimization/47005
7859         * tree-sra.c (struct access): Add 'non_addressable' bit.
7860         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
7861         (decide_one_param_reduction): Return 0 if the parameter is passed by
7862         reference and one of the accesses in the group is non_addressable.
7863
7864 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
7865
7866         PR tree-optimization/47056
7867         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
7868         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
7869         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
7870
7871 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
7872
7873         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
7874         initializer.  Skip view conversions from aggregate types.
7875
7876 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
7877
7878         PR bootstrap/47055
7879         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
7880
7881 2011-01-04  Philipp Thomas  <pth@suse.de>
7882
7883         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
7884         obvious typo.
7885
7886 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7887
7888         * function.c (thread_prologue_and_epilogue_insns): Do not crash
7889         on empty epilogue sequences.
7890
7891 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
7892
7893         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
7894         non-static): New Driver options.
7895
7896 2011-01-04  Jie Zhang  <jie@codesourcery.com>
7897
7898         PR driver/47137
7899         * gcc.c (default_compilers[]): Set combinable field to 0
7900         for all assembly languages.
7901
7902 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
7903
7904         * config/mips/loongson3a.md: New file.
7905         * config/mips/mips.md: Include loongson3a.md.
7906         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
7907         TUNE_LOONGSON_3A.
7908
7909 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
7910
7911         PR middle-end/47017
7912         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
7913         instead of convert_memory_address_addr_space on the base expression.
7914
7915 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7916
7917         * config/spu/spu.c (spu_option_override): Update error text
7918         for bad -march= / -mtune= values.
7919
7920 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7921
7922         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
7923         if branch-hint optimization will be performed.
7924
7925 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
7926
7927         PR tree-optimization/47148
7928         * ipa-split.c (split_function): Convert arguments to
7929         DECL_ARG_TYPE if possible.
7930
7931         PR tree-optimization/47155
7932         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
7933         when computing uns.
7934
7935         PR rtl-optimization/47157
7936         * combine.c (try_combine): If undobuf.other_insn becomes
7937         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
7938         and set *new_direct_jump_p too.
7939
7940 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
7941
7942         PR tree-optimization/47021
7943         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
7944
7945 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
7946
7947         * gcc.c (process_command): Update copyright notice dates.
7948         * gcov.c (print_version): Likewise.
7949         * gcov-dump.c (print_version): Likewise.
7950         * mips-tfile.c (main): Likewise.
7951         * mips-tdump.c (main): Likewise.
7952
7953 2011-01-03  Martin Jambor  <mjambor@suse.cz>
7954
7955         PR tree-optimization/46801
7956         * tree-sra.c (type_internals_preclude_sra_p): Check whether
7957         aggregate fields start at byte boundary instead of the bit-field flag.
7958
7959 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
7960
7961         PR driver/47137
7962         * gcc.c (main): Revert revision 168407.
7963
7964 2011-01-03  Martin Jambor  <mjambor@suse.cz>
7965
7966         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
7967
7968 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7969
7970         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
7971         vector optab to expand vector/scalar shift, update gimple to vector.
7972
7973 2011-01-03  Martin Jambor  <mjambor@suse.cz>
7974
7975         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
7976         a thunk.
7977
7978 2011-01-03  Martin Jambor  <mjambor@suse.cz>
7979
7980         PR tree-optimization/46984
7981         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
7982         HOST_WIDE_INT.
7983         (cgraph_create_indirect_edge): Fixed line length.
7984         (cgraph_indirect_call_info): Declare.
7985         (cgraph_make_edge_direct) Update declaration.
7986         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
7987         (cgraph_create_indirect_edge): Use it.
7988         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
7989         callees.
7990         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
7991         the new thunk_delta representation.
7992         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
7993         HOST_WIDE_INT.
7994         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
7995         (ipa_read_indirect_edge_info): Likewise.
7996         * lto-cgraph.c (output_edge_opt_summary): New function.
7997         (output_node_opt_summary): Call it on all outgoing edges.
7998         (input_edge_opt_summary): New function.
7999         (input_node_opt_summary): Call it on all outgoing edges.
8000
8001 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
8002
8003         PR driver/47137
8004         * gcc.c (main): Don't check have_o when settting combine_inputs.
8005
8006 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
8007
8008         * regrename.c: Add general comment describing the pass.
8009         (struct du_head): Remove 'length' field.
8010         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
8011         (regrename_optimize): Do not sort chains.  Rework comments, add others.
8012         Force renaming to the preferred class (if any) in the first pass and do
8013         not consider registers that belong to it in the second pass.
8014         (create_new_chain): Do not set 'length' field.
8015         (scan_rtx_reg): Likewise.
8016
8017 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
8018
8019         PR tree-optimization/47140
8020         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
8021         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
8022         to bit_value_binop.
8023
8024         PR rtl-optimization/47028
8025         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
8026         parm_birth_insn instead of at the beginning of first bb.
8027
8028 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
8029
8030         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
8031         Remove the word "see" before "@pxref".
8032         * doc/rtl.texi: Remove the word "see" before "@pxref".
8033
8034 2011-01-01  Jan Hubicka  <jh@suse.cz>
8035
8036         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
8037         memory.
8038
8039 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
8040
8041         PR target/38662
8042         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
8043
8044 \f
8045 Copyright (C) 2011 Free Software Foundation, Inc.
8046
8047 Copying and distribution of this file, with or without modification,
8048 are permitted in any medium without royalty provided the copyright
8049 notice and this notice are preserved.