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