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