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