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