OSDN Git Service

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