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