OSDN Git Service

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