1 2011-04-14 Richard Sandiford <rdsandiford@googlemail.com>
3 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6 2011-04-14 Richard Sandiford <rdsandiford@googlemail.com>
8 * doc/options.texi (Negative): Explicitly mention that the
9 Negative chain must be circular.
11 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
13 * function.h (block_chainon): Declare.
14 * function.c (block_chainon): Define.
16 2011-04-14 Anatoly Sokolov <aesok@post.ru>
17 Eric Weddington <eric.weddington@atmel.com>
18 Georg-Johann Lay <avr@gjlay.de>
20 * config/avr/avr.c: ("insn-codes.h", "optabs.h", "langhooks.h"):
22 (avr_init_builtins, avr_expand_builtin,
23 avr_expand_delay_cycles, avr_expand_unop_builtin,
24 avr_expand_binop_builtin ): New functions.
25 (avr_builtin_id): New enum
26 (struct avr_builtin_description): New struct
27 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
28 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
30 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
31 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
32 UNSPECV_DELAY_CYCLES): new enumeration values
33 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
34 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
35 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
36 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
37 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
38 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
41 * config/avr/avr-c.c: fix line endings
42 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
43 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
44 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
45 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
46 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
48 * doc/extend.texi (AVR Built-in Functions): New node
49 (Target Builtins): Add documentation of AVR
52 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
55 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
56 alone. Error if non-const data has attribute progmem.
58 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
60 * tree.h (struct tree_constructor): Include tree_typed instead of
62 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
63 TS_TYPED instead of TS_COMMON.
65 2011-04-12 Uros Bizjak <ubizjak@gmail.com>
67 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
68 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
69 (sse2_psadbw): Merge with *avx_psadbw.
70 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
71 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
72 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
73 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
74 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
75 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
76 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
77 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
78 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
79 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
80 (ssse3_palignrti): Merge with *avx_palignrti.
82 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
84 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
85 * tree-ssanames.c (fini_ssanames): VEC_free it.
86 (make_ssa_name_fn): Update for VECness of free_ssanames.
87 (release_ssa_name, release_dead_ssa_names): Likewise.
88 * tree.h (struct tree_ssa_name): Include tree_typed instead of
90 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
91 TS_TYPED instead of TS_COMMON.
93 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
95 * postreload-gcse.c (gcse_after_reload_main): Add calls to
96 statistics_counter_event.
97 * tree-ssa-copyrename.c (stats): Define.
98 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
99 statistics_counter_event.
100 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
101 (bswap_stats, widen_mul_stats): Define.
102 (insert_reciprocals): Increment rdivs_inserted.
103 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
104 rfuncs_inserted. Add calls to statistics_counter_event.
105 (execute_cse_sincos_1): Increment inserted.
106 (execute_cse_sincos): Zeroize sincos_stats. Add call to
107 statistics_counter_event.
108 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
109 of bswap_stats. Add calls to statistics_counter_event.
110 (convert_mult_to_widen): Increment widen_mults_inserted.
111 (convert_plusminus_to_widen): Increment maccs_inserted.
112 (convert_mult_to_fma): Increment fmas_inserted.
113 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
114 calls to statistics_counter_event.
116 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
118 PR rtl-optimization/48455
119 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
120 `temp_costs->mem_cost'.
122 2011-04-13 Jan Hubicka <jh@suse.cz>
124 * ipa-inline.h: New file.
125 * ipa-inline-analysis.c: New file. Broken out of ...
126 * ipa-inline.c: ... this file; update toplevel comment;
128 (inline_summary): Move to ipa-inline.h
129 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
130 ipa-inline-analysis.c.
131 (cgraph_estimate_time_after_inlining): Rename to estiamte_time_after_inlining;
132 move to ipa-inline-analysis.c
133 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
134 to estimate_edge_growth.
135 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
136 rename to estimate_size_after_inlining.
137 (cgraph_mark_inline_edge): Update for new naming convention.
138 (cgraph_check_inline_limits): Likewise.
139 (cgraph_edge_badness): Likewise.
140 (cgraph_decide_recursive_inlining): Likewise.
141 (cgraph_decide_inlining_of_small_functions): Likewise.
142 (cgraph_decide_inlining_incrementally): Likewise.
143 (cgraph_estimate_growth): Rename to estimate_growth; move to ipa-inline-analysis.c.
144 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
145 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
146 (compute_inline_parameters): Likewise.
147 (compute_inline_parameters_for_current): Likewise.
148 (pass_inline_parameters): Likewise.
149 (inline_indirect_intraprocedural_analysis): Likewise.
150 (analyze_function): Rename to inline_analyze_function; likewise.
151 (add_new_function): Move to ipa-inline-analysis.c.
152 (inline_generate_summary): Likewise.
153 (inline_read_summary): Likewise.
154 (inline_write_summary): Likewise.
155 * Makefile.in (ipa-inline-analysis.c): New file.
157 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
159 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
160 * configure: Regenerate.
162 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
164 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
165 instead of tree_common.
166 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
168 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
169 TS_TYPED rather than TS_COMMON.
170 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
172 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
175 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
176 r20 around calls of __tablejump_elpm__
178 2011-04-13 Jakub Jelinek <jakub@redhat.com>
181 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
183 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
185 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
187 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
188 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
189 (cfi_vec): New typedef.
190 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
191 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
192 (cie_cfi_vec): New static variable.
193 (cie_cfi_head): Delete.
194 (add_cfi): Accept a cfi_vec * as first argument. All callers and
195 declaration changed. Use vector rather than list operations.
196 (new_cfi): Don't initialize the dw_cfi_next field.
197 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
198 rather than list operations.
199 (lookup_cfa): Use vector rather than list operations.
200 (output_cfis): New argument upto. Accept a cfi_vec rather than
201 a dw_cfi_ref list head as argument. All callers changed.
202 Iterate over the vector using upto as a maximum index.
203 (output_all_cfis): New static function.
204 (output_fde): Use vector rather than list operations. Use the
205 new upto argument for output_cfis rather than manipulating a
207 (dwarf2out_begin_prologue): Change initializations to match
209 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
210 from the vector length rather than searching for the end of a list.
212 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
214 2011-04-13 Nick Clifton <nickc@redhat.com>
216 * config/rx/rx.md (movmemsi): Do not use this pattern when
217 volatile pointers are involved.
219 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
221 * config/i386/sse.md (pinsrbits): Remove.
222 (sse2_packsswb): Merge with *avx_packsswb.
223 (sse2_packssdw): Merge with *avx_packssdw.
224 (sse2_packuswb): Merge with *avx_packuswb.
225 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
226 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
227 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
228 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
229 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
230 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
231 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
232 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
233 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
234 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
235 (sse2_loadld): Merge with *avx_loadld.
236 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
237 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
238 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
239 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
240 (vec_concatv2di): Merge with *vec_concatv2di_avx.
242 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
244 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
246 * print-tree.c (print_node): Likewise.
247 * tree-inline.c (copy_tree_r): Likewise.
248 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
249 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
250 instead of TS_COMMON.
251 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
252 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
253 (copy_node_stat): Zero TREE_CHAIN only if necessary.
254 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
255 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
257 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
259 (TREE_CHAIN): Check for a TS_COMMON structure.
260 (TREE_TYPE): Check for a TS_TYPED structure.
262 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
264 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
265 cgraph_get_create_node instead of cgraph_node.
267 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
269 * c-parser.c (c_parser_initelt): Updated call to
270 objc_build_message_expr.
271 (c_parser_postfix_expression): Likewise.
273 2011-04-12 Kai Tietz <ktietz@redhat.com>
275 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
276 MASK_MS_BITFIELD_LAYOUT bit.
278 2011-04-12 Jakub Jelinek <jakub@redhat.com>
280 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
281 assert it is always true.
282 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
285 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
287 * c-parser.c (c_lex_one_token): Rewritten conditional used when
288 compiling Objective-C to be more efficient.
290 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
292 * opts-common.c (decode_cmdline_options_to_array): Remove variable
295 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
297 * recog.h, genoutput.c, optabs.c: Revert last patch.
299 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
302 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
304 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
306 * recog.h (insn_operand_data): Add an "allows_mem" field.
307 * genoutput.c (output_operand_data): Initialize it.
308 * optabs.c (maybe_legitimize_operand_same_code): New function.
309 (maybe_legitimize_operand): Use it when matching the original
312 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
314 * genpreds.c (process_define_predicate): Move most processing
315 to gensupport.c. Continue to validate the expression.
316 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
317 (process_define_predicate): Move processing to gensupport.c.
318 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
319 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
320 (compute_predicate_codes): Moved from genrecog.c. Add lineno
322 (valid_predicate_name_p): New function, split out from old
323 genpreds.c:process_define_predicate.
324 (process_define_predicate): New function, combining code from
325 old genpreds.c and genrecog.c functions.
326 (process_rtx): Call it for DEFINE_PREDICATE and
327 DEFINE_SPECIAL_PREDICATE.
329 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
331 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
332 size of a '%A' memory reference.
333 (T_DREG, T_QREG): New neon_builtin_type_bits.
334 (arm_init_neon_builtins): Assert that the load and store operands
335 are neon_struct_operands.
336 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
337 (NEON_ARG_MEMORY): New builtin_arg.
338 (neon_dereference_pointer): New function.
339 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
340 Handle NEON_ARG_MEMORY.
341 (arm_expand_neon_builtin): Update after above interface changes.
342 Use NEON_ARG_MEMORY for loads and stores.
343 * config/arm/predicates.md (neon_struct_operand): New predicate.
344 * config/arm/iterators.md (V_two_elem): Tweak formatting.
345 (V_three_elem): Use BLKmode for accesses that have no associated mode.
346 (V_four_elem): Tweak formatting.
347 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
348 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
349 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
350 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
351 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
352 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
353 (neon_vst4<mode>): Replace pointer operand with a memory operand.
354 Use %A in the output template.
355 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
356 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
357 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
358 the width of the memory access. Remove post-increment.
359 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
361 2011-04-12 Nick Clifton <nickc@redhat.com>
363 * config/v850/v850.c (expand_prologue): Do not use the CALLT
364 instruction for interrupt handlers if the target is the basic V850
366 (expand_epilogue): Likewise.
368 2011-04-12 Jakub Jelinek <jakub@redhat.com>
370 PR rtl-optimization/48549
371 * combine.c (propagate_for_debug): Also stop after BB_END of
372 this_basic_block. Process LAST and just stop processing after it.
373 (combine_instructions): If last_combined_insn has been deleted,
374 set last_combined_insn to its PREV_INSN.
376 2011-04-12 Richard Guenther <rguenther@suse.de>
378 PR tree-optimization/46076
379 * gimple.h (struct gimple_statement_call): Add fntype field.
380 (gimple_call_fntype): Adjust.
381 (gimple_call_set_fntype): New function.
382 * gimple.c (gimple_build_call_1): Set the call function type.
383 * gimplify.c (gimplify_call_expr): Preserve the function
384 type the frontend used for the call.
385 (gimplify_modify_expr): Likewise.
386 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
388 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
390 * tree-ssa.c (useless_type_conversion_p): Function pointer
391 conversions are useless.
393 2011-04-12 Martin Jambor <mjambor@suse.cz>
395 * cgraph.h (cgraph_node): Remove function declaration.
396 (cgraph_create_node): Declare.
397 (cgraph_get_create_node): Likewise.
398 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
400 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
401 the decl does not already exist. Call cgraph_get_create_node instead
403 (cgraph_get_create_node): New function.
404 (cgraph_same_body_alias): Update comment.
405 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
406 assert it does not return NULL.
407 (cgraph_update_edges_for_call_stmt): Likewise.
408 (cgraph_clone_edge): Likewise.
409 (cgraph_create_virtual_clone): Likewise.
410 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
411 instead of cgraph_node.
412 (cgraph_add_new_function): Call cgraph_create_node or
413 cgraph_get_create_node instead of cgraph_node.
414 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
415 instead of cgraph_node.
416 (record_eh_tables): Likewise.
417 (mark_address): Likewise.
418 (mark_load): Likewise.
419 (build_cgraph_edges): Call cgraph_get_create_node instead
421 (rebuild_cgraph_edges): Likewise.
422 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
423 instead of cgraph_node.
424 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
426 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
427 cgraph_create_node instead of cgraph_node.
428 * c-decl.c (finish_function): Call cgraph_get_create_node instead
430 * lto-cgraph.c (input_node): Likewise.
431 * lto-streamer-in.c (input_function): Likewise.
432 * varasm.c (mark_decl_referenced): Likewise.
433 (assemble_alias): Likewise.
435 2011-04-12 Martin Jambor <mjambor@suse.cz>
437 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
438 instead of cgraph_node and assert it does not return NULL.
439 * lto-streamer-in.c (lto_read_body): Likewise.
440 * omp-low.c (new_omp_context): Likewise.
441 (create_task_copyfn): Likewise.
442 * tree-emutls.c (lower_emutls_function_body): Likewise.
443 * matrix-reorg.c (transform_allocation_sites): Likewise.
445 2011-04-12 Jakub Jelinek <jakub@redhat.com>
448 * c-typeck.c (build_asm_expr): Error out on attempts to use
449 void type outputs or inputs for constraints that allow reg or
452 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
453 Richard Earnshaw <rearnsha@arm.com>
456 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
457 to use sign-magnitude offsets. Reject unsupported unaligned
458 cases. Add detailed description in comments.
459 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
460 condition from TARGET_32BIT to TARGET_ARM.
462 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
464 * tree.h (struct typed_tree): New.
465 (struct tree_common): Include it instead of tree_base.
466 (TREE_TYPE): Update for new location of type field.
467 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
468 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
469 (union tree_node): Add typed field.
470 * treestruct.def (TS_TYPED): New.
471 * lto-streamer.c (check_handled_ts_structures): Handle it.
472 * tree.c (MARK_TS_TYPED): New macro.
473 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
475 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
477 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
478 (force_nonfallthru): Do not alter the loop nest if no basic block
481 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
483 * config/i386/sse.md (VI): New mode iterator.
485 (AVX256MODEI): Ditto.
487 (avxvecpsmode): Ditto.
488 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
489 (sse2_andnot<mode>3): New expander.
490 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
491 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
492 (<any_logic:code><mode>3): Use VI mode iterator.
493 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
494 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
495 (*andnottf3): Handle AVX three-operand constraints.
496 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
498 2011-04-11 Joseph Myers <joseph@codesourcery.com>
499 Robert Millan <rmh@gnu.org>
501 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
502 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
503 GNU_USER_DYNAMIC_LINKER64): Define.
504 (REG_NAME): Don't undefine.
505 (MD_UNWIND_SUPPORT): Undefine.
506 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
507 (REG_NAME): Don't undefine.
508 (MD_UNWIND_SUPPORT): Undefine.
509 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
511 2011-04-11 Joseph Myers <joseph@codesourcery.com>
513 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
514 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
516 2011-04-11 Xinliang David Li <davidxl@google.com>
518 * value-profile.c (check_ic_target): New function.
519 (gimple_ic_transform): Sanity check indirect call target.
520 * gimple-low.c (gimple_check_call_args): Interface change.
521 (gimple_check_call_matching_types): New function.
522 * tree-inline.c (tree_can_inline_p): Call new function.
524 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
526 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
527 tree-pretty-print.h & realmpfr.h.
529 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
532 * ira.c (setup_pressure_classes): Fix typo in loop condition.
533 (setup_allocno_and_important_classes): Ditto.
535 2011-04-11 Joseph Myers <joseph@codesourcery.com>
537 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
538 GNU_USER_DYNAMIC_LINKER.
539 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
540 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
541 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
542 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
543 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
544 GNU_USER_TARGET_OS_CPP_BUILTINS.
545 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
546 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
547 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
548 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
549 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
550 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
551 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
552 GNU_USER_TARGET_OS_CPP_BUILTINS.
553 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
554 GNU_USER_DYNAMIC_LINKER.
555 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
556 GNU_USER_TARGET_OS_CPP_BUILTINS.
557 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
558 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
559 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
560 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
561 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
562 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
563 GNU_USER_DYNAMIC_LINKER64): Remove.
564 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
565 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
566 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
567 GNU_USER_DYNAMIC_LINKER.
568 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
569 GNU_USER_TARGET_OS_CPP_BUILTINS.
570 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
571 GNU_USER_TARGET_OS_CPP_BUILTINS.
572 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
573 to GNU_USER_TARGET_OS_CPP_BUILTINS.
574 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
575 GNU_USER_TARGET_OS_CPP_BUILTINS.
576 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
577 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
578 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
579 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
580 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
581 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
582 GNU_USER_DYNAMIC_LINKER.
583 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
584 GNU_USER_TARGET_OS_CPP_BUILTINS.
585 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
586 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
587 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
588 GNU_USER_DYNAMIC_LINKER.
589 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
590 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
591 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
592 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
593 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
594 GNU_USER_DYNAMIC_LINKER.
595 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
596 GNU_USER_DYNAMIC_LINKERN32.
597 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
598 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
599 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
600 GNU_USER_DYNAMIC_LINKER32.
601 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
602 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
603 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
604 GNU_USER_DYNAMIC_LINKER.
605 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
606 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
607 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
608 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
609 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
610 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
611 GNU_USER_DYNAMIC_LINKER32.
612 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
613 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
614 GNU_USER_DYNAMIC_LINKER.
615 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
616 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
617 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
618 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
619 GNU_USER_DYNAMIC_LINKER64.
620 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
621 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
622 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
623 GNU_USER_DYNAMIC_LINKER.
624 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
625 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
626 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
627 GNU_USER_DYNAMIC_LINKER.
628 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
629 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
630 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
631 GNU_USER_DYNAMIC_LINKER32.
632 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
633 GNU_USER_DYNAMIC_LINKER64.
634 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
635 GNU_USER_DYNAMIC_LINKER64.
636 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
637 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
638 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
639 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
640 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
642 2011-04-11 Joseph Myers <joseph@codesourcery.com>
644 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
645 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
646 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
647 GNU_USER_DYNAMIC_LINKER.
648 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
649 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
650 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
651 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
652 GNU_USER_DYNAMIC_LINKER64.
653 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
654 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
655 GNU_USER_LINK_EMULATION.
656 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
657 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
658 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
659 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
660 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
661 CPP_SPEC, CC1_SPEC): Remove.
662 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
663 (GNU_USER_DYNAMIC_LINKER): Define.
664 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
665 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
666 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
667 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
668 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
669 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
670 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
671 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
672 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
673 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
674 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
675 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
676 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
677 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
678 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
679 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
680 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
681 GNU_USER_DYNAMIC_LINKER.
682 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
683 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
684 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
685 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
686 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
687 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
688 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
689 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
690 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
691 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
693 2011-04-11 Kai Tietz <ktietz@redhat.com>
697 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
698 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
700 (ix86_is_msabi_thiscall): Removed.
701 (ix86_is_type_thiscall): Likewise.
702 (ix86_get_callcvt): New function.
703 (ix86_comp_type_attributes): Simplify check.
704 (ix86_function_regparm): Use ix86_get_callcvt for calling
705 convention attribute checks.
706 (ix86_return_pops_args): Likewise.
707 (ix86_static_chain): Likewise.
708 (x86_this_parameter): Likewise.
709 (x86_output_mi_thunk): Likewise.
710 (ix86_function_type_abi): Optimize check for types without attributes.
711 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
712 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
713 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
715 (IX86_BASE_CALLCVT): Helper macro.
716 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
717 Use ix86_get_callcvt for calling convention attribute checks and avoid
718 symbol-decoration for stdcall in TARGET_RTD case.
719 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
721 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
724 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
726 * config/i386/sse.md (VI_128): New mode iterator.
727 (VI12_128): Rename from SSEMODE12.
728 (VI14_128): Rename from SSEMODE14.
729 (VI124_128): New mode iterator.
730 (VI24_128): Rename from SSEMODE248.
731 (VI248_128): Rename from SSEMODE248.
732 (SSEMODE124C8): Remove.
733 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
734 (*sse2_<plusminus_insn><mode>3): Merge with
735 *avx_<plusminus_insn><mode>3.
736 (*mulv8hi3): Merge with *avx_mulv8hi3.
737 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
738 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
739 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
740 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
741 (ashr<mode>3): Merge with *avx_ashr<mode>3.
742 (lshr<mode>3): Merge with *avx_lshr<mode>3.
743 (ashl<mode>3): Merge with *avx_ashl<mode>3.
744 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
745 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
746 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
747 (*<smaxmin:code>v8hi3): Ditto.
748 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
749 (*<smaxmin:code>v16qi3): Ditto.
750 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
751 (*sse2_eq<mode>3): Ditto.
752 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
753 (*sse2_gt<mode>3): Ditto.
754 (vcondv2di): Split out of vcond<mode>.
755 (vconduv2di): Split out of vcondu<mode>.
757 2011-04-11 Richard Guenther <rguenther@suse.de>
759 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
760 before calling tree_low_cst.
762 2011-04-11 Richard Guenther <rguenther@suse.de>
764 * stor-layout.c (layout_type): Compute all array index size operations
765 in the original type.
766 (initialize_sizetypes): Add comment.
767 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
769 2011-04-11 Joseph Myers <joseph@codesourcery.com>
771 * common.opt (Tbss=, Tdata=, Ttext=): New options.
773 2011-04-11 Martin Jambor <mjambor@suse.cz>
775 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
776 of cgraph_node, handle NULL return value.
777 (cgraph_global_info): Likewise.
778 (cgraph_rtl_info): Likewise.
779 * tree-inline.c (estimate_num_insns): Likewise.
780 * gimplify.c (unshare_body): Likewise.
781 (unvisit_body): Likewise.
782 (gimplify_body): Likewise.
783 * predict.c (optimize_function_for_size_p): Likewise.
784 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
785 (call_may_clobber_ref_p_1): Likewise.
786 * varasm.c (function_section_1): Likewise.
787 (assemble_start_function): Likewise.
789 2011-04-11 Martin Jambor <mjambor@suse.cz>
791 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
793 * final.c (rest_of_clean_state): Likewise.
794 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
795 * passes.c (pass_init_dump_file): Likewise.
796 (execute_all_ipa_transforms): Likewise.
797 (function_called_by_processed_nodes_p): Likewise.
798 * predict.c (maybe_hot_frequency_p): Likewise.
799 (probably_never_executed_bb_p): Likewise.
800 (compute_function_frequency): Likewise.
801 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
802 (unnest_nesting_tree_1): Likewise.
803 (lower_nested_functions): Likewise.
804 * tree-optimize.c (execute_fixup_cfg): Likewise.
805 (tree_rest_of_compilation): Likewise.
806 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
807 * tree-sra.c (ipa_early_sra): Likewise.
808 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
809 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
810 * ipa.c (record_cdtor_fn): Likewise.
811 * ipa-inline.c (cgraph_early_inlining): Likewise.
812 (compute_inline_parameters_for_current): Likewise.
813 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
814 * ipa-pure-const.c (local_pure_const): Likewise.
815 * ipa-split.c (split_function): Likewise.
816 (execute_split_functions): Likewise.
817 * cgraphbuild.c (build_cgraph_edges): Likewise.
818 (rebuild_cgraph_edges): Likewise.
819 (cgraph_rebuild_references): Likewise.
820 (remove_cgraph_callee_edges): Likewise.
821 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
822 (verify_cgraph_node): Likewise.
823 (cgraph_analyze_functions): Likewise.
824 (cgraph_preserve_function_body_p): Likewise.
825 (save_inline_function_body): Likewise.
826 (save_inline_function_body): Likewise.
827 * tree-inline.c (copy_bb): Likewise.
828 (optimize_inline_calls): Likewise.
830 2011-04-11 Martin Jambor <mjambor@suse.cz>
832 PR tree-optimization/48195
833 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
834 ipa_check_create_edge_args.
835 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
836 ipa_check_create_edge_args.
837 * ipa-inline.c (inline_generate_summary): Do not call
838 ipa_check_create_node_params and ipa_check_create_edge_args.
839 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
840 ipa_check_create_edge_args.
842 2011-04-09 Anatoly Sokolov <aesok@post.ru>
844 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
846 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
847 * function.c (record_hard_reg_sets): Likewise.
848 * ira.c (compute_regs_asm_clobbered): Likewise.
849 * sched-deps.c (sched_analyze_1): Likewise.
850 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
852 2011-04-09 Xinliang David Li <davidxl@google.com>
854 PR tree-optimization/PR48484
855 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
856 has_valid_pred lazily
858 2011-04-09 Duncan Sands <baldrick@free.fr>
860 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
862 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
864 * combine.c (combine_validate_cost): Adjust comments. Set registered
865 cost of I0 to zero at the end, if any.
867 2011-04-08 Xinliang David Li <davidxl@google.com>
869 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
870 to insane profile data.
872 2011-04-08 Xinliang David Li <davidxl@google.com>
874 * final.c (dump_basic_block_info): New function.
875 (final): Dump basic block.
876 (final_scan_insn): Remove old dump.
878 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
881 * config.gcc (i386-*-freebsd): Disable unwind table generation for
884 2011-04-08 Michael Matz <matz@suse.de>
887 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
889 (rebuild_jump_labels): Call rebuild_jump_labels_1.
890 * rtl.h (rebuild_jump_labels_chain): Declare.
891 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
892 insns inserted on edges.
894 2011-04-08 Joseph Myers <joseph@codesourcery.com>
896 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
897 * config/arm/arm-arches.def: New.
898 * config/arm/arm-opts.h: New.
899 * config/arm/genopt.sh: New.
900 * config/arm/arm-tables.opt: New (generated).
901 * config/arm/arm.c (arm_handle_option, arm_target_help,
902 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
903 (all_architectures): Get most table contents from arm-arches.def.
904 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
905 arm_selected_tune here.
906 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
907 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
908 (march=, mcpu=, mtune=): Use Enum and Var.
909 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
910 (arm.o): Update dependencies.
912 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
914 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
916 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
917 (write_typed_alloc_defns): Likewise.
918 (main): Calls write_typed_alloc_defns with output_header.
920 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
923 * ira-color.c (setup_profitable_hard_regs): Add comments.
924 Don't take prohibited hard regs into account.
925 (setup_conflict_profitable_regs): Rename to
926 get_conflict_profitable_regs.
927 (check_hard_reg_p): Check prohibited hard regs.
929 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
931 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
932 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
933 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
935 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
938 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
939 move from floating point to shift amount register .
940 (emit_move_sequence): Remove secondary reload support for floating
941 point to shift amount amount register copies.
942 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
943 amount register copies.
944 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
945 register, return false if mode isn't a scalar integer mode.
946 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
948 2011-04-08 Richard Guenther <rguenther@suse.de>
950 * gimple.c (gimple_call_flags): Remove kludge.
952 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
954 * sel-sched.c (sel_region_init): Move call to
955 sel_setup_region_sched_flags after setup_current_loop_nest.
957 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
959 PR rtl-optimization/48272
960 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
961 init_insn_reg_pressure_info. Adjust a caller.
962 * sched-int.h (init_insn_reg_pressure_info): Declare.
963 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
964 when sched-pressure is enabled.
966 2011-04-08 Richard Guenther <rguenther@suse.de>
968 * gimple.c (gimple_set_modified): Do not queue calls to
969 MODIFIED_NORETURN_CALLS here ...
970 * tree-ssa-operands.c (update_stmt_operands): ... but here.
972 2011-04-08 Richard Guenther <rguenther@suse.de>
975 * toplev.c (lang_dependent_init): Do not open asm_out_file
976 in WPA mode, nor perform debug machinery initialization.
977 (finalize): Do not unlink asm_out_file in WPA mode.
979 2011-04-08 Richard Guenther <rguenther@suse.de>
981 * gimple.h (gimple_call_fntype): New function.
982 (gimple_call_return_type): Use it.
983 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
984 * gimple-low.c (gimple_check_call_args): Likewise.
985 * gimple.c (gimple_call_flags): Likewise.
986 (gimple_call_arg_flags): Likewise.
987 (gimple_call_return_flags): Likewise.
988 * tree-cfg.c (verify_gimple_call): Likewise.
989 (do_warn_unused_result): Likewise.
990 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
991 * value-prof.c (gimple_ic_transform): Fix fndecl check.
993 2011-04-08 Dmitry Melnik <dm@ispras.ru>
995 PR rtl-optimization/48235
996 * sel-sched.c (code_motion_process_successors): Recompute the last
997 insn in basic block if control flow changed.
998 (code_motion_path_driver): Ditto. Recompute the first insn as well.
999 Update condition for ilist_remove.
1001 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
1003 PR rtl-optimization/48302
1004 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
1005 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
1006 it to record added preheader blocks.
1007 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
1008 on to sel_add_loop_preheaders.
1009 (sel_region_init): Move call to setup_current_loop_nest after
1012 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
1015 * cfgloop.h (loop_has_exit_edges): New helper.
1016 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
1018 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
1019 that have no exit edges.
1021 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
1023 PR rtl-optimization/48442
1024 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
1025 all callers. Adjust assert.
1027 2011-04-08 Jakub Jelinek <jakub@redhat.com>
1029 PR tree-optimization/48377
1030 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
1031 is_packed to true even for types with smaller TYPE_ALIGN than
1034 2011-04-08 Richard Guenther <rguenther@suse.de>
1037 * doc/tm.texi: Re-generate.
1039 2011-04-08 Wei Guozhi <carrot@google.com>
1042 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
1043 * config/arm/arm.c (arm_attr_length_push_multi): New function.
1044 * config/arm/arm.md (*push_multi): Change the length computation to
1047 2011-04-08 Anatoly Sokolov <aesok@post.ru>
1049 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
1050 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
1051 * doc/tm.texi: Regenerate.
1052 * system.h (ASM_OUTPUT_BSS): Poison.
1053 * varasm.c (asm_output_bss): Remove function.
1054 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
1056 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
1057 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
1058 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
1059 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1061 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1063 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1065 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
1067 2011-04-07 Joseph Myers <joseph@codesourcery.com>
1069 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
1072 2011-04-07 Joseph Myers <joseph@codesourcery.com>
1074 * config/m68k/m68k.c (m68k_handle_option): Don't handle
1075 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
1076 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
1078 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
1079 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
1080 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
1081 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
1082 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
1083 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
1084 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
1085 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
1086 options. Don't map other m68k options manually. Don't handle
1087 old-style options as canonical.
1088 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
1089 * doc/install.texi (m68k-*-*): Document binutils version requirement.
1091 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
1093 * basic-block.h (force_nonfallthru): Move to...
1094 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
1095 (force_nonfallthru): ...here.
1096 * cfghooks.c (force_nonfallthru): New function.
1097 * cfgrtl.c (force_nonfallthru): Rename into...
1098 (rtl_force_nonfallthru): ...this.
1099 (commit_one_edge_insertion): Do not set AUX field.
1100 (commit_edge_insertions): Do not discover new basic blocks.
1101 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
1102 (cfg_layout_rtl_cfg_hooks): Likewise.
1103 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
1104 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
1105 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
1107 2011-04-07 Anatoly Sokolov <aesok@post.ru>
1109 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
1112 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
1114 * config/i386/sse.md: Update copyright year.
1115 (avxcvtvecmode): Remove.
1116 (sse_movhlps): Merge with *avx_movhlps.
1117 (sse_movlhps): Merge with *avx_movlhps.
1118 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
1119 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
1120 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
1121 (sse_loadhps): Merge with *avx_loadhps.
1122 (sse_storelps): Merge with *avx_storelps.
1123 (sse_loadlps): Merge with *avx_loadlps.
1124 (sse_movss): Merge with *avx_movss.
1125 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
1126 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
1127 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
1128 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
1129 (vec_set<mode>_0): Ditto.
1130 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
1131 (sse4_1_insertps): Merge with *avx_insertps.
1132 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
1133 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
1134 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
1135 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
1136 (sse2_storehpd): Merge with *avx_storehpd.
1137 (sse2_loadhpd): Merge with *avx_loadhpd.
1138 (sse2_loadlpd): Merge with *avx_loadlpd.
1139 (sse2_movsd): Merge with *avx_movsd.
1140 (*vec_concatv2df): Merge with *vec_concatv2df.
1142 2011-04-07 Jakub Jelinek <jakub@redhat.com>
1145 * combine.c (combine_instructions): Add last_combined_insn,
1146 update it if insn is after it, pass it to all try_combine calls.
1147 (try_combine): Add last_combined_insn parameter, pass it instead of
1148 i3 to propagate_for_debug.
1150 2011-04-07 Nick Clifton <nickc@redhat.com>
1152 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
1153 to handle MDR <-> data register transfers.
1154 (movhi_internal): Likewise.
1156 2011-04-07 Alan Modra <amodra@gmail.com>
1158 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
1159 previous stack info.
1161 2011-04-07 Tom de Vries <tom@codesourcery.com>
1164 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
1165 flow_find_cross_jump. Swap variables to implement backward replacement.
1166 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
1168 2011-04-07 Tom de Vries <tom@codesourcery.com>
1171 * cfgcleanup.c (walk_to_nondebug_insn): New function.
1172 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
1174 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
1175 src1 or src2. Redirect edges to the last basic block. Update
1176 frequency and count on multiple basic blocks in case of fallthru.
1178 2011-04-07 Tom de Vries <tom@codesourcery.com>
1181 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
1183 (old_insns_match_p): Change return type. Replace return false/true
1184 with return dir_none/dir_both. Use can_replace_by.
1185 (flow_find_cross_jump): Add dir_p parameter. Init replacement
1186 direction from dir_p. Register replacement direction in dir, last_dir
1187 and afterlast_dir. Handle new return type of old_insns_match_p using
1188 merge_dir. Return replacement direction in dir_p.
1189 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
1190 return type of old_insns_match_p.
1191 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
1192 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
1193 flow_find_cross_jump.
1194 * basic-block.h (enum replace_direction): New type.
1195 (flow_find_cross_jump): Add parameter to declaration.
1197 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
1199 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
1200 (AVXMODEDCVTPS2DQ): Ditto.
1201 (VEC_FLOAT_MODE): Ditto.
1202 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
1203 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
1204 (<any_logic:code><mode>3): Use VF mode iterator.
1205 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
1206 Use VF mode iterator.
1207 (copysign<mode>3): Use VF mode iterator.
1208 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
1209 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
1210 (*<any_logic:code><MODEF:mode>3): Merge with
1211 *avx_<any_logic:code><MODEF:mode>3.
1212 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
1213 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
1214 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
1215 (avx_cvtdq2ps<avxmodesuffix>): Remove.
1216 (sse2_cvtdq2ps): Use %v modifier.
1217 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
1218 (avx_cvtps2dq<avxmodesuffix>): Remove.
1219 (sse2_cvtps2dq): Use %v modifier.
1220 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
1221 (avx_cvttps2dq<avxmodesuffix>): Remove.
1222 (sse2_cvttps2dq): Use %v modifier.
1223 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
1224 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
1225 (sse2_cvtsd2siq): Fix insn template.
1226 (sse2_cvtsd2siq_2): Ditto.
1227 (sse2_cvttsd2siq): Ditto.
1228 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
1229 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
1231 2011-04-06 Joseph Myers <joseph@codesourcery.com>
1233 * gcov-io.c: Use GCC Runtime Library Exception.
1235 2011-04-06 Jakub Jelinek <jakub@redhat.com>
1238 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
1239 as base_reg whatever register reg has been eliminated to, instead
1240 of hardcoding STACK_POINTER_REGNUM.
1242 2011-04-06 Joseph Myers <joseph@codesourcery.com>
1244 * doc/tm.texi.in: Document C target hooks as separate from general
1246 * doc/tm.texi: Regenerate.
1247 * genhooks.c (struct hook_desc): Add docname field.
1248 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
1250 (hook_array): Include c-target.def.
1251 (emit_documentation): Use docname field in output.
1252 (emit_init_macros): Take docname argument. Only emit definitions
1253 for hooks matching docname.
1254 (main): Expect additional arguments in all cases. Pass argument
1255 to emit_init_macros.
1256 * target.def: Move initial macro definitions and comments to
1257 target-hooks-macros.h.
1258 (gcc_targetcm): Move to c-family/c-target.def.
1259 * target.h (targetcm): Move declaration to c-family/c-target.h.
1260 * targhooks.c (default_handle_c_option): Move to
1262 * targhooks.h (default_handle_c_option): Move declaration to
1263 c-family/c-common.h.
1264 * target-hooks-macros.h: New file.
1265 * config.gcc (target_has_targetcm): Define and use to add to
1266 c_target_objs and cxx_target_objs.
1267 * config/default-c.c: New file.
1268 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
1269 of target.h and target-def.h.
1270 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
1271 (darwin_objc_construct_string, darwin_cfstring_ref_p,
1272 darwin_check_cfstring_format_arg): Make static.
1273 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
1274 TARGET_STRING_OBJECT_REF_TYPE_P,
1275 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
1276 * config/darwin-protos.h (darwin_objc_construct_string,
1277 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
1279 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
1280 TARGET_STRING_OBJECT_REF_TYPE_P,
1281 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
1282 * config/t-darwin (darwin-c.o): Update dependencies.
1283 * system.h (TARGET_HAS_TARGETCM): Poison.
1284 * Makefile.in (TARGET_H): Update.
1285 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
1286 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
1287 (default-c.o): New target.
1288 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
1289 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
1290 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
1292 (build/genhooks.o): Update dependencies.
1294 2011-04-06 Richard Guenther <rguenther@suse.de>
1296 * ipa-inline.c (enum inlining_mode): Remove.
1297 (cgraph_flatten): Use some other token.
1298 (cgraph_edge_early_inlinable_p): New function, split out from ...
1299 (cgraph_perform_always_inlining): New function, split out from ...
1300 (cgraph_decide_inlining_incrementally): ... here.
1301 (cgraph_mark_inline_edge): Adjust.
1302 (cgraph_early_inlining): Re-structure.
1303 (pass_early_inline): Require SSA form.
1305 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
1306 Julian Brown <julian@codesourcery.com>
1307 Mark Shinwell <shinwell@codesourcery.com>
1309 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
1310 LO_REGS only for Thumb-1.
1311 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
1312 be used in short instructions when optimising for size on Thumb-2.
1314 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
1316 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
1317 associated with user returns to be preserved.
1319 2011-04-06 Tristan Gingold <gingold@adacore.com>
1321 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
1322 symbol_queue_size, DBXOUT_DECR_NESTING,
1323 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
1324 if XCOFF_DEBUGGING_INFO.
1326 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
1328 * config/i386/i386.md (attribute isa): New.
1329 (attribute enabled): New.
1330 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
1331 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
1332 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
1333 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
1334 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
1335 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1336 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
1337 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
1339 * config/i386/sse.md (VF): New mode iterator.
1343 (SSEMODEF4): Remove.
1344 (attribute sse): Handle V8SF and V4DF modes.
1345 (<absneg:code><mode>2): Use VF mode iterator.
1346 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
1348 (<plusminus_insn><mode>3): Use VF mode iterator.
1349 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
1350 Use VF mode iterator.
1351 (<sse>_vm<plusminus_insn><mode>3): Merge with
1352 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
1353 (mul<mode>3): Use VF mode iterator.
1354 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
1355 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
1357 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
1358 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
1359 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
1360 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
1362 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
1363 Use VF1 mode iterator.
1364 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
1365 (sqrt<VF2:mode>2): New expander.
1366 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
1367 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
1368 and sqrtv2df2. Use VF mode iterator.
1369 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
1371 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
1372 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
1373 Use VF1 mode iterator.
1374 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
1375 (<smaxmin:code><mode>3): Use VF mode iterator.
1376 (*<smaxmin:code><mode>3_finite): Merge with
1377 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
1378 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1379 (<sse>_vm<smaxmin:code><mode>2): Merge with
1380 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
1381 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
1383 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
1385 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
1386 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
1387 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
1388 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
1389 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
1391 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
1392 Use VF_128 mode iterator.
1393 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
1395 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
1396 VF_128 mode iterator.
1397 (vcond<mode>): Use VF mode iterator.
1398 * config/i386/predicates.md (sse_comparison_operator): Merge with
1399 avx_comparison_float_operator. Do not declare as special_predicate.
1400 * config/i386/i386.c (struct builtin_description): Update for renamed
1402 (ix86_expand_args_builtin): Ditto.
1403 (ix86_expand_sse_compare_mask): Ditto.
1405 2011-04-06 Richard Guenther <rguenther@suse.de>
1407 * tree-inline.c (estimate_num_insns): For calls simply account
1408 for all passed arguments and a used return value.
1410 2011-04-06 Richard Guenther <rguenther@suse.de>
1412 PR tree-optimization/47663
1413 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
1414 call_stmt_time fields.
1415 (cgraph_edge_inlinable_p): Declare.
1416 (cgraph_edge_recursive_p): New inline function.
1417 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
1418 (cgraph_clone_edge): Copy it.
1419 * ipa-inline.c (cgraph_estimate_edge_time): New function.
1420 Account for call stmt time.
1421 (cgraph_estimate_time_after_inlining): Take edge argument.
1422 (cgraph_estimate_edge_growth): Account call stmt size.
1423 (cgraph_estimate_size_after_inlining): Take edge argument.
1424 (cgraph_mark_inline_edge): Adjust.
1425 (cgraph_check_inline_limits): Likewise.
1426 (cgraph_recursive_inlining_p): Remove.
1427 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
1428 (cgraph_decide_recursive_inlining): Take edge argument and
1430 (cgraph_decide_inlining_of_small_functions): Do not avoid
1431 diags for recursive inlining here.
1432 (cgraph_flatten): Adjust.
1433 (cgraph_decide_inlining_incrementally): Likewise.
1434 (estimate_function_body_sizes): Remove call cost handling.
1435 (compute_inline_parameters): Initialize caller edge call costs.
1436 (cgraph_estimate_edge_growth): New function.
1437 (cgraph_estimate_growth): Use it.
1438 (cgraph_edge_badness): Likewise.
1439 (cgraph_check_inline_limits): Take an edge argument.
1440 (cgraph_decide_inlining_of_small_functions): Adjust.
1441 (cgraph_decide_inlining): Likewise.
1442 * tree-inline.c (estimate_num_insns): Only account for call
1443 return value if it is used.
1444 (expand_call_inline): Avoid diagnostics on recursive inline
1446 * lto-cgraph.c (lto_output_edge): Output edge call costs.
1447 (input_edge): Input edge call costs.
1449 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1451 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
1453 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
1455 * doc/invoke.texi (Spec Files): Fix typo.
1457 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
1459 * profile.c (branch_prob): Move declaration of local variable. Remove
1460 obsolete ??? comment. Expand the location explicitly instead of using
1461 the LOCATION_FILE and LOCATION_LINE macros.
1463 2011-04-06 Wei Guozhi <carrot@google.com>
1466 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
1467 (arm_cond_branch): Likewise.
1468 (arm_cond_branch_reversed): Likewise.
1469 (arm_jump): Likewise.
1470 (push_multi): Likewise.
1471 * config/arm/constraints.md (Py): New constraint.
1473 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
1476 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
1478 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
1479 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
1480 #ifdef DBX_DEBUGGING_INFO.
1482 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
1485 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
1486 if old and new states differ.
1488 2011-04-05 Joseph Myers <joseph@codesourcery.com>
1490 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
1491 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
1492 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
1493 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
1494 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
1496 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
1497 ColdFire options to -mcpu= options.
1499 2011-04-05 Jeff Law <law@redhat.com>
1501 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
1502 check if BB is a successor of LOOP->header and return
1503 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
1505 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
1507 * cprop.c (struct reg_use): Remove.
1508 (reg_use_table): Make an array of RTX.
1509 (find_used_regs, constprop_register, local_cprop_pass,
1510 bypass_block): Simplify users of reg_use_table.
1511 (cprop_insn): Likewise. Iterate if copy propagation succeeded
1512 on one of the uses found by find_used_regs.
1514 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
1517 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
1520 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
1522 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
1524 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
1526 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
1529 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
1531 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
1533 * combine.c: Include obstack.h.
1534 (struct insn_link): Define.
1535 (uid_log_links): Adjust type.
1536 (FOR_EACH_LOG_LINK): New macro.
1537 (insn_link_obstack): Declare.
1538 (alloc_insn_link): Define.
1539 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
1540 type of link variables.
1541 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
1542 (try_combine, record_promoted_values, distribute_notes): Likewise.
1543 (distribute_links): Likewise. Tweak prototype.
1544 (clear_log_links): Delete.
1545 (adjust_for_new_dest): Call alloc_insn_link.
1546 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
1548 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
1550 * gcse.c (modify_mem_list): Convert to an array of VECs.
1551 (canon_modify_mem_list, compute_transp): Tweak formatting.
1552 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
1553 (load_killed_in_block_p): Likewise.
1554 (record_last_mem_set_info): Likewise.
1555 (clear_modify_mem_tables): Likewise.
1557 2011-04-05 Tom de Vries <tom@codesourcery.com>
1560 * function.c (emit_use_return_register_into_block): Only define if
1563 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
1565 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
1567 2011-04-05 Joseph Myers <joseph@codesourcery.com>
1569 * config/rx/rx-opts.h: New.
1570 * config/rx/rx.c (rx_cpu_type): Remove.
1571 (rx_handle_option): Don't assert that global structures are in
1572 use. Access variables via opts pointer. Defer most handling of
1573 OPT_mint_register_. Use error_at.
1574 (rx_option_override): Handle deferred OPT_mint_register_ here.
1575 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
1576 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
1577 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
1578 (rx_cpu_types): New Enum and EnumValue entries.
1579 (mint-register=): Use Defer and use Var accordingly.
1581 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
1583 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
1584 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
1585 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
1587 (debug_free_queue, debug_nesting, symbol_queue_index):
1589 * dbxout.c: ...to here. Make static.
1591 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
1593 * gcse.c (modify_pair): Define. Define a VEC of it.
1594 (canon_modify_mem_list): Convert to an array of VECs.
1595 (free_insn_expr_list_list): Delete.
1596 (clear_modify_mem_tables): Call VEC_free instead.
1597 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
1598 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
1599 (canon_list_insert, compute_transp): Likewise.
1601 2011-04-05 Tom de Vries <tom@codesourcery.com>
1604 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
1607 2011-04-05 Tom de Vries <tom@codesourcery.com>
1610 * function.c (emit_use_return_register_into_block): New function.
1611 (thread_prologue_and_epilogue_insns): Use
1612 emit_use_return_register_into_block.
1614 2011-04-05 Tom de Vries <tom@codesourcery.com>
1617 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
1620 2011-04-05 Tom de Vries <tom@codesourcery.com>
1622 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
1624 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
1626 * config/arm/arm.md (define_constants for unspec): Replace with
1628 (define_constants for unspecv): Replace with define_c_enum.
1629 * config/arm/neon.md (define_constants for unspec): Replace with
1632 2011-04-04 Richard Henderson <rth@redhat.com>
1635 * dwarf2out.c (output_line_info): Always emit line info from
1636 at least one section.
1637 (dwarf2out_init): Create text_section_line_info here ...
1638 (set_cur_line_info_table): ... not here.
1640 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
1643 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
1646 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
1648 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
1650 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
1651 (expr_equiv_p): Remove.
1652 (insert_set_in_table): Look at <dest, src> pair instead of expr.
1653 (hash_scan_set): Update call to insert_set_in_table.
1654 (dump_hash_table): Dump <dest, src> pair.
1655 (lookup_set): Simplify. Lookup <dest, src> pair.
1656 (compute_transp): Remove, fold heavily simplified code into...
1657 (compute_local_properties): ...here. Expect COMP and TRANSP
1659 (find_avail_set): Take set directly from struct expr.
1660 (find_bypass-set): Likewise.
1661 (bypass_block): Likewise.
1662 (cprop_insn): Likewise. Remove redundant INSN_P test.
1664 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
1665 checks on form of COND from find_implicit_sets to here.
1666 (find_implicit_sets): Cleanup control flow. Split critical edges
1667 if it exposes implicit sets. Allocate/resize implicit_sets as
1669 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
1670 changed something. Run df_analyze after find_implicit_sets if any
1671 edges were split. Do not allocate implicit_sets here.
1673 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
1674 (gcse_obstack): Renamed to cprop_obstack.
1675 (GNEW, GNEWVEC, GNEWVAR): Remove.
1677 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
1678 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
1679 (gcse_alloc): Likewise, and rename to cprop_alloc.
1680 (alloc_gcse_men, free_gcse_mem): Remove.
1681 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
1682 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
1683 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
1685 * cprop.c (oprs_not_set_p): Remove.
1686 (mark_set, mark_clobber): Remove.
1687 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
1688 (reg_not_set_p): New function.
1689 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
1690 (cprop_insn): Likewise.
1691 (cprop_jump): Use FOR_EACH_EDGE.
1693 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
1696 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
1697 (rank_for_schedule): Use scheduled_insns vector instead of
1698 last_scheduled_insn.
1699 (ok_for_early_queue_removal): Likewise.
1700 (queue_to_ready): Search forward in nonscheduled_insns_begin if
1702 (choose_ready): Likewise.
1703 (commit_schedule): Use VEC_iterate.
1704 (schedule_block): Initialize nonscheduled_insns_begin. If we have
1705 a dbg_cnt, use it and ensure the first insn is in the ready list.
1706 (haifa_sched_init): Allocate scheduled_insns.
1707 (sched_extend_ready_list): Don't allocate it; reserve space.
1708 (haifa_sched_finish): Free it.
1710 2011-04-04 Joseph Myers <joseph@codesourcery.com>
1712 * optc-gen.awk: Always remove type from Variable entry before
1713 recording in var_seen.
1715 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
1717 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
1718 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
1719 call to tidy_fallthru_edges.
1721 2011-04-04 Joseph Myers <joseph@codesourcery.com>
1723 * doc/options.texi (ToLower): Document.
1724 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
1725 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
1726 * opts.h (cl_option): Add cl_tolower field.
1727 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
1728 arguments with lowercase strings.
1729 * config/rx/rx.opt (mcpu=): Add ToLower.
1730 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
1733 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
1735 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
1737 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
1739 * config/vax/vax.c: Include reload.h.
1741 2011-04-04 Anatoly Sokolov <aesok@post.ru>
1743 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
1744 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
1745 (sparc_preferred_reload_class): New function.
1747 2011-04-04 Jakub Jelinek <jakub@redhat.com>
1750 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
1751 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
1753 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
1755 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
1756 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
1758 2011-04-03 Anatoly Sokolov <aesok@post.ru>
1760 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
1761 (ASM_OUTPUT_ALIGNED_BSS): Define.
1763 2011-04-03 Michael Matz <matz@suse.de>
1765 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
1766 and next_slot members.
1767 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
1768 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
1769 (lto_streamer_cache_append): Declare.
1770 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
1771 unsigned index, remove offset parameter, ensure that we append
1772 or update existing entries.
1773 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
1774 parameter, update next_slot for append.
1775 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
1777 (lto_streamer_cache_insert_at): Likewise.
1778 (lto_streamer_cache_append): New function.
1779 (lto_streamer_cache_lookup): Use unsigned index.
1780 (lto_streamer_cache_get): Likewise.
1781 (lto_record_common_node): Don't test tree_node_can_be_shared.
1782 (preload_common_node): Adjust call to lto_streamer_cache_insert.
1783 (lto_streamer_cache_delete): Don't free offsets member.
1784 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
1785 (lto_output_string_with_length): Use lto_output_data_stream.
1786 (lto_output_tree_header): Remove ix parameter, don't write it.
1787 (lto_output_builtin_tree): Likewise.
1788 (lto_write_tree): Adjust callers to above, don't track and write
1789 offset, write unsigned index.
1790 (output_unreferenced_globals): Don't emit all global vars.
1791 (write_global_references): Use unsigned indices.
1792 (lto_output_decl_state_refs): Likewise.
1793 (write_symbol): Likewise.
1794 * lto-streamer-in.c (lto_input_chain): Move earlier.
1795 (input_function): Use unsigned index.
1796 (input_alias_pairs): Don't read and then ignore all global vars.
1797 (lto_materialize_tree): Remove ix_p parameter, don't read index,
1798 don't pass it back, use lto_streamer_cache_append.
1799 (lto_register_var_decl_in_symtab): Use unsigned index.
1800 (lto_register_function_decl_in_symtab): Likewise.
1801 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
1803 (lto_get_builtin_tree): Don't read index, use
1804 lto_streamer_cache_append.
1805 (lto_read_tree): Adjust call to lto_materialize_tree.
1807 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
1808 don't use function calls in arguments to MIN.
1810 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
1813 * gimple.c (gimple_type_leader_entry): Mark deletable.
1815 2011-04-03 Alan Modra <amodra@gmail.com>
1817 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
1819 2011-04-03 Michael Matz <matz@suse.de>
1821 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
1823 * tree.h (tree_decl_non_common.vindex): Adjust comment.
1825 2011-04-03 Michael Matz <matz@suse.de>
1827 * cgraphbuild.c (record_reference): Canonicalize constructor values.
1828 * gimple-fold.c (canonicalize_constructor_val): Accept being called
1829 without function context.
1830 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
1831 current_function_decl and cfun.
1833 2011-04-03 Michael Matz <matz@suse.de>
1835 * tree.c (decl_init_priority_insert): Don't create entry for
1837 (decl_fini_priority_insert): Ditto.
1838 (fields_compatible_p, find_compatible_field): Remove.
1839 * tree.h (fields_compatible_p, find_compatible_field): Remove.
1840 * gimple.c (gimple_compare_field_offset): Adjust block comment.
1842 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
1844 * combine.c (try_combine): Remove useless local variable.
1846 2011-04-03 Richard Guenther <rguenther@suse.de>
1847 Ira Rosen <ira.rosen@linaro.org>
1849 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
1850 non-variable offsets and compare the remaining bases of the two
1851 accesses instead of looking for exact same data-ref.
1853 2011-04-02 Kai Tietz <ktietz@redhat.com>
1856 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
1858 * i386.c (ix86_is_msabi_thiscall): New helper function.
1859 (ix86_is_type_thiscall): New helper function.
1860 (ix86_comp_type_attributes): Handle thiscall for method-functions
1862 (init_cumulative_args): Likewise.
1863 (find_drap_reg): Likewise.
1864 (ix86_static_chain): Likewise.
1865 (x86_this_parameter): Likewise.
1866 (x86_output_mi_thunk): Likewise.
1868 2011-04-01 Olivier Hainque <hainque@adacore.com>
1869 Nicolas Setton <setton@adacore.com>
1870 Eric Botcazou <ebotcazou@adacore.com>
1872 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
1873 (add_gnat_descriptive_type_attribute): New function.
1874 (gen_array_type_die): Call it.
1875 (gen_enumeration_type_die): Likewise.
1876 (gen_struct_or_union_type_die): Likewise.
1877 (modified_type_die): Likewise.
1878 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
1879 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
1880 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
1882 2011-04-01 Jakub Jelinek <jakub@redhat.com>
1885 * dwarf2out.c (resolve_addr): Don't call force_decl_die
1886 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
1889 2011-03-17 Richard Guenther <rguenther@suse.de>
1892 * lto-cgraph.c (input_overwrite_node): Clear the abstract
1893 origin for decls in other ltrans units.
1894 (input_varpool_node): Likewise.
1896 2011-04-01 Jakub Jelinek <jakub@redhat.com>
1899 * expr.c (expand_assignment): Handle all possibilities
1900 if TO_RTX is CONCAT.
1901 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
1902 (store_split_bit_field): If SUBREG_REG (op0) or
1903 op0 itself has smaller mode than word, return it
1904 for offset 0 and const0_rtx for out-of-bounds stores.
1905 If word is const0_rtx, skip it.
1907 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
1909 * config/h8300/h8300.c (print_operand_address): Rename to...
1910 (h8300_print_operand_address): ...this. Make static. Adjust comments.
1911 Call h8300_print_operand and h8300_print_operand_address instead of
1912 print_operand and print_operand_address. Declare.
1913 (print_operand): Renake to...
1914 (h8300_print_operand): ...this. Make static. Adjust comments.
1915 Call h8300_print_operand instead of print_operand. Declare.
1916 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
1917 (h8300_register_move_cost): Likewise.
1918 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
1919 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
1920 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
1921 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
1922 * config/h8300/h8300-protos.h (print_operand): Delete.
1923 (print_operand_address): Delete.
1925 2011-04-01 Richard Henderson <rth@redhat.com>
1928 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
1929 in strict mode before dwarf4. Re-order tests to early out
1930 before switching sections.
1932 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
1934 * config/h8300/constraints.md: New file.
1935 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
1936 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
1937 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
1938 * config/h8300/predicates.md (bit_operand): Likewise.
1939 (incdec_operand): Use satisfies_constraint_M and
1940 satisfies_constraint_O. Don't use C code block.
1941 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
1942 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
1943 (compute_mov_length): Use satisfies_constraint_G.
1944 (fix_bit_operand): Use satisfies_constraint_U.
1945 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
1946 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
1947 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
1948 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
1949 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
1950 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
1951 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1952 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
1953 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
1954 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
1955 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
1956 (EXTRA_MEMORY_CONSTRAINT): Delete.
1958 2011-04-01 Andrew Pinski <pinskia@gmail.com>
1959 Michael Meissner <meissner@linux.vnet.ibm.com>
1962 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
1963 operands, as per the specifications.
1965 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
1966 (vec_extract_evenv4sf): Ditto.
1967 (vec_extract_evenv8hi): Ditto.
1968 (vec_extract_evenv16qi): Ditto.
1969 (vec_extract_oddv4si): Ditto.
1971 2011-03-31 Mark Wielaard <mjw@redhat.com>
1973 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
1974 high_pc attribute if the CU has no associated code. Only output
1975 DW_AT_entry_pc for CU if not generating strict dwarf and
1978 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
1980 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
1981 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
1983 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
1984 * final.c (final_start_function): Call the new function rather
1985 than using a NULL argument for dwarf2out_frame_debug.
1987 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
1988 that contains the prologue.
1990 * haifa-sched.c (queue_insn): New arg REASON. All callers
1991 changed. Print it in debugging output.
1993 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
1995 * sched-ebb.c (begin_schedule_ready): Remove second argument.
1996 Split most of the code into...
1997 (begin_move_insn): ... here. New function.
1998 (ebb_sched_info): Add a pointer to it.
1999 * haifa-sched.c (scheduled_insns): New static variable.
2000 (sched_extend_ready_list): Allocate it.
2001 (schedule_block): Use it to record the order of scheduled insns.
2002 Perform RTL changes to move insns only after all scheduling
2003 decisions have been made.
2004 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
2005 begin_move_insn field.
2006 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
2007 * sched-int.h (struct haifa_sched_info): Remove second argument
2008 from begin_schedule_ready hook. Add new member begin_move_insn.
2009 * sched-rgn.c (begin_schedule_ready): Remove second argument.
2010 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
2012 * haifa-sched.c (prune_ready_list): New function, broken out of
2014 (schedule_block): Use it.
2016 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2018 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
2020 2011-04-01 Kai Tietz <ktietz@redhat.com>
2022 * config.gcc (*-*-mingw*): Allow as option the
2023 posix threading model.
2024 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
2025 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
2027 (CPP_SPEC): Add pthread/no-pthread handling.
2028 (LIB_SPEC): Likewise.
2029 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
2030 (LIB_SPEC): Likewise.
2031 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
2032 flag to pass -pthread option for shared libgcc build.
2033 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
2034 for shared libgcc build.
2035 * config/i386/t-mingw-pthread: New file.
2036 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
2037 New define to enable use of library pthread by default.
2038 * config/i386/mingw.opt (pthread): New driver option.
2039 (no-pthread): New driver option.
2040 * config/i386/cygming.opt: Make sure trailing empty line is retained.
2041 * config/i386/mingw-w64.opt: Likewise.
2043 2011-04-01 Gary Funck <gary@intrepid.com>
2045 * c-decl.c (grokdeclarator): Fix formatting.
2047 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
2049 * expr.c (emit_block_move_via_movmem): Use n_generator_args
2050 instead of n_operands.
2051 (set_storage_via_setmem): Likewise.
2052 * optabs.c (maybe_gen_insn): Likewise.
2053 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
2054 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
2055 (mips_expand_builtin_direct): Likewise.
2056 * config/spu/spu.c (expand_builtin_args): Likewise.
2058 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
2060 * recog.h (insn_data_d): Add n_generator_args.
2061 * genoutput.c (data): Likewise.
2062 (output_insn_data): Print it.
2063 (max_opno, num_dups): Delete.
2064 (scan_operands): Just fill in "d->operand[...]".
2065 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
2067 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
2069 * gensupport.h (pattern_stats): New structure.
2070 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
2071 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
2072 (max_operand_1, max_operand_vec): Delete.
2073 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
2075 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
2077 * emit-rtl.c (emit_pattern_after_setloc): New function.
2078 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
2079 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
2080 (emit_pattern_after): New function.
2081 (emit_insn_after, emit_jump_insn_after): Call it.
2082 (emit_call_insn_after, emit_debug_insn_after): Likewise.
2083 (emit_pattern_before_setloc): New function.
2084 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
2085 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
2087 (emit_pattern_before): New function.
2088 (emit_insn_before, emit_jump_insn_before): Call it.
2089 (emit_call_insn_before, emit_debug_insn_before): Likewise.
2091 2011-03-31 Richard Henderson <rth@redhat.com>
2093 * dwarf2out.c (dw_separate_line_info_ref): Remove.
2094 (dw_separate_line_info_entry): Remove.
2095 (enum dw_line_info_opcode): New.
2096 (dw_line_info_entry): Use it.
2097 (dw_line_info_table, dw_line_info_table_p): New.
2098 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
2099 (line_info_table, line_info_label_num): Remove.
2100 (line_info_table_in_use): Remove.
2101 (separate_line_info_table): Remove.
2102 (separate_line_info_table_allocated): Remove.
2103 (separate_line_info_table_in_use): Remove.
2104 (LINE_INFO_TABLE_INCREMENT): Remove.
2105 (line_info_label_num): New.
2106 (cur_line_info_table): New.
2107 (text_section_line_info, cold_text_section_line_info): New.
2108 (separate_line_info): New.
2109 (SEPARATE_LINE_CODE_LABEL): Remove.
2110 (print_dwarf_line_table): Remove.
2111 (debug_dwarf): Don't dump it.
2112 (output_one_line_info_table): New.
2113 (output_line_info): Use it.
2114 (new_line_info_table): New.
2115 (set_cur_line_info_table): New.
2116 (dwarf2out_switch_text_section): Use it.
2117 (dwarf2out_begin_function): Likewise.
2118 (push_dw_line_info_entry): New.
2119 (dwarf2out_source_line): Rewrite for new line info tables.
2120 (dwarf2out_init): Remove dead initailizations.
2122 2011-03-31 Joseph Myers <joseph@codesourcery.com>
2124 * opts.h (cl_option): Add comments to fields. Add bit-fields for
2126 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
2127 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
2128 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
2129 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
2130 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
2131 * opt-functions.awk (flag_init, switch_bit_fields): New.
2132 (switch_flags): Don't handle flags moved to bit-fields. Don't
2133 generate CL_MISSING_OK or CL_SAVE.
2134 * optc-gen.awk: Update to generate bit-field output as well as
2136 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
2137 bit-field instead of CL_REJECT_DRIVER flag.
2138 * opts-common.c (generate_canonical_option,
2139 decode_cmdline_option): Use bit-fields instead of CL_* flags.
2140 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
2141 instead of CL_REJECT_NEGATIVE flag.
2142 * toplev.c (print_switch_values): Use cl_report bit-field instead
2145 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
2147 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
2148 a zero minimum index only if it is redundant.
2150 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
2152 PR rtl-optimization/48381
2153 * ira-color.c (assign_hard_reg): Use hard reg set intersection
2154 instead of ira_class_hard_reg_index for calculating conflicting
2157 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
2159 * cprop.c: Clean up hash table building.
2160 (reg_avail_info): Remove.
2161 (oprs_available_p): Remove.
2162 (record_last_reg_set_info): Remove.
2163 (record_last_set_info): Remove.
2164 (reg_available_p): New function.
2165 (gcse_constant_p): Do not treat unfolded conditions as constants.
2166 (make_set_regs_unavailable): New function.
2167 (hash_scan_set): Simplify with new reg_available_p.
2168 (compute_hash_table_work): Traverse insns stream only once.
2169 Do not compute reg_avail_info. Traverse insns in reverse order.
2170 Record implicit sets after recording explicit sets from the block.
2172 2011-03-31 Michael Matz <matz@suse.de>
2174 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
2176 2011-03-31 Anatoly Sokolov <aesok@post.ru>
2178 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
2179 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
2180 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
2181 (h8300_mode_dependent_address_p): New function.
2182 (h8300_get_index): Make static.
2184 2011-03-31 Jeff Law <law@redhat.com>
2186 * reload1.c (elimination_effects): Fix typo in recent change.
2188 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
2189 typo potentially leading to null pointer dereference.
2191 * caller-save.c (new_saved_hard_reg): Eliminate return value.
2192 (setup_save_areas): Corresponding changes to avoid useless
2195 * jump.c (reversed_comparison_code_parts): Avoid successive return
2196 statements when REVERSE_CONDITION is defined.
2198 * expr.c (expand_assignment): Avoid useless assignments.
2199 (expand_expr_real_1): Likewise.
2200 (expand_expr_real_2): Avoid useless statements.
2202 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
2204 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
2206 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
2209 * stmt.c (expand_expr_stmt): Avoid useless assignment.
2211 2011-03-31 Joseph Myers <joseph@codesourcery.com>
2214 * doc/tm.texi.in (TARGET_VERSION): Remove.
2215 * doc/tm.texi: Regenerate.
2216 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
2217 * collect2.c (main): Don't use TARGET_VERSION.
2218 * mips-tdump.c (main): Don't use TARGET_VERSION.
2219 * mips-tfile.c (main): Don't use TARGET_VERSION.
2220 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
2221 * config/rs6000/vxworksae.h: Remove.
2222 * config/alpha/alpha.h (TARGET_VERSION): Remove.
2223 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
2224 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
2225 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
2226 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
2227 * config/arm/arm.h (TARGET_VERSION): Remove.
2228 * config/arm/coff.h (TARGET_VERSION): Remove.
2229 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
2230 * config/arm/elf.h (TARGET_VERSION): Remove.
2231 * config/arm/freebsd.h (TARGET_VERSION): Remove.
2232 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
2233 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
2234 * config/arm/pe.h (TARGET_VERSION): Remove.
2235 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
2236 * config/arm/semi.h (TARGET_VERSION): Remove.
2237 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
2238 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
2239 * config/arm/vxworks.h (TARGET_VERSION): Remove.
2240 * config/avr/avr.h (TARGET_VERSION): Remove.
2241 * config/bfin/bfin.h (TARGET_VERSION): Remove.
2242 * config/fr30/fr30.h (TARGET_VERSION): Remove.
2243 * config/frv/frv.h (TARGET_VERSION): Remove.
2244 * config/h8300/h8300.h (TARGET_VERSION): Remove.
2245 * config/i386/cygwin.h (TARGET_VERSION): Remove.
2246 * config/i386/darwin.h (TARGET_VERSION): Remove.
2247 * config/i386/darwin64.h (TARGET_VERSION): Remove.
2248 * config/i386/djgpp.h (TARGET_VERSION): Remove.
2249 * config/i386/freebsd.h (TARGET_VERSION): Remove.
2250 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
2251 * config/i386/gnu.h (TARGET_VERSION): Remove.
2252 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
2253 * config/i386/i386elf.h (TARGET_VERSION): Remove.
2254 * config/i386/linux.h (TARGET_VERSION): Remove.
2255 * config/i386/linux64.h (TARGET_VERSION): Remove.
2256 * config/i386/lynx.h (TARGET_VERSION): Remove.
2257 * config/i386/mingw32.h (TARGET_VERSION): Remove.
2258 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
2259 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
2260 * config/i386/netware.h (TARGET_VERSION): Remove.
2261 * config/i386/nto.h (TARGET_VERSION): Remove.
2262 * config/i386/openbsd.h (TARGET_VERSION): Remove.
2263 * config/i386/vxworks.h (TARGET_VERSION): Remove.
2264 * config/ia64/elf.h (TARGET_VERSION): Remove.
2265 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
2266 * config/ia64/hpux.h (TARGET_VERSION): Remove.
2267 * config/ia64/linux.h (TARGET_VERSION): Remove.
2268 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
2269 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
2270 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
2271 * config/lm32/lm32.h (TARGET_VERSION): Remove.
2272 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
2273 * config/m32c/m32c.h (TARGET_VERSION): Remove.
2274 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
2275 * config/m32r/m32r.h (TARGET_VERSION): Remove.
2276 * config/m68k/linux.h (TARGET_VERSION): Remove.
2277 * config/m68k/m68k.h (TARGET_VERSION): Remove.
2278 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
2279 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
2280 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
2281 * config/mep/mep.h (TARGET_VERSION): Remove.
2282 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
2283 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
2284 * config/mips/iris6.h (MACHINE_TYPE): Remove.
2285 * config/mips/linux.h (TARGET_VERSION): Remove.
2286 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
2287 * config/mips/vxworks.h (TARGET_VERSION): Remove.
2288 * config/mmix/mmix.h (TARGET_VERSION): Remove.
2289 * config/mn10300/linux.h (TARGET_VERSION): Remove.
2290 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
2291 * config/pa/pa.h (TARGET_VERSION): Remove.
2292 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
2293 * config/picochip/picochip.h (TARGET_VERSION): Remove.
2294 * config/rs6000/aix.h (TARGET_VERSION): Remove.
2295 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
2296 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
2297 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
2298 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
2299 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
2300 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
2301 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
2302 * config/rs6000/linux.h (TARGET_VERSION): Remove.
2303 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
2304 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
2305 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
2306 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
2307 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
2308 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
2309 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
2310 * config/s390/linux.h (TARGET_VERSION): Remove.
2311 * config/s390/s390.h (TARGET_VERSION): Remove.
2312 * config/s390/tpf.h (TARGET_VERSION): Remove.
2313 * config/score/score.h (TARGET_VERSION): Remove.
2314 * config/sh/linux.h (TARGET_VERSION): Remove.
2315 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
2316 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
2317 * config/sh/sh.h (TARGET_VERSION): Remove.
2318 * config/sh/sh64.h (TARGET_VERSION): Remove.
2319 * config/sh/superh.h (TARGET_VERSION): Remove.
2320 * config/sh/vxworks.h (TARGET_VERSION): Remove.
2321 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
2322 * config/sparc/linux.h (TARGET_VERSION): Remove.
2323 * config/sparc/linux64.h (TARGET_VERSION): Remove.
2324 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
2325 TARGET_NAME32, TARGET_NAME): Remove.
2326 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
2327 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
2328 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
2329 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
2330 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
2331 * config/spu/spu.h (TARGET_VERSION): Remove.
2332 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
2333 * config/v850/v850.h (TARGET_VERSION): Remove.
2334 * config/vax/linux.h (TARGET_VERSION): Remove.
2335 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
2336 * config/xtensa/elf.h (TARGET_VERSION): Remove.
2337 * config/xtensa/linux.h (TARGET_VERSION): Remove.
2339 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
2342 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
2343 frame-related from frame-unrelated adjustments to the stack pointer.
2345 2011-03-31 Jakub Jelinek <jakub@redhat.com>
2347 * common.opt (fdebug-types-section): Move earlier.
2348 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
2350 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
2352 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
2355 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
2357 * tree.h (CASE_CHAIN): Define.
2358 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
2359 (gimple_redirect_edge_and_branch): Likewise.
2361 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
2364 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
2367 2011-03-30 Jeff Law <law@redhat.com>
2369 * PR bootstrap/48371
2370 * reload1.c (reload): Fix botch in last change.
2372 * reload.h (struct reload): Fix typo introduced in last change.
2374 2011-03-30 Joseph Myers <joseph@codesourcery.com>
2376 * config/arm/arm.opt (mhard-float, msoft-float): Mark
2377 Undocumented. Remove help text.
2378 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
2381 2011-03-30 Joseph Myers <joseph@codesourcery.com>
2383 * doc/options.texi (NegativeAlias): Document.
2384 (Alias): Mention NegativeAlias.
2385 * opt-functions.awk: Handle NegativeAlias.
2386 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
2387 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
2388 * opts.h (CL_NEGATIVE_ALIAS): Define.
2389 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
2390 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
2392 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
2394 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
2395 mno-spe and mno-isel instead of mspe=no and -misel=no.
2397 2011-03-29 Mark Wielaard <mjw@redhat.com>
2399 * common.opt (fdebug-types-section): New flag.
2400 * doc/invoke.texi: Document new -fno-debug-types-section flag.
2401 * dwarf2out.c (use_debug_types): New define.
2402 (struct die_struct): Mark die_id with GTY desc use_debug_types.
2403 (print_die): Guard output of type unit signatures using
2405 (build_abbrev_table): Replace assert of dwarf_version >= 4
2406 with assert on use_debug_types.
2407 (size_of_die): Likewise.
2408 (unmark_dies): Likewise.
2409 (value_format): Decide AT_ref_external form on use_debug_types.
2410 (output_die): Replace dwarf_version version check guard with
2411 use_debug_types where appropriate.
2412 (modified_type_die): Likewise.
2413 (gen_reference_type_die): Likewise.
2414 (dwarf2out_start_source_file): Likewise.
2415 (dwarf2out_end_source_file): Likewise.
2416 (prune_unused_types_walk_attribs): Likewise.
2417 (dwarf2out_finish): Likewise.
2419 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
2421 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
2423 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
2425 PR rtl-optimization/48332
2426 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
2427 mode of input operand N and modeN to its actual mode.
2429 2011-03-30 Jeff Law <law@redhat.com>
2431 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
2432 define accessor macro.
2433 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
2434 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
2435 (reg_equiv_init): Likewise.
2436 (reg_equivs_size): New variable.
2437 (reg_equiv_init_size): Remove.
2438 (allocate_initial_values): Move prototype to here from....
2439 * integrate.h (allocate_initial_values): Remove prototype.
2440 * integrate.c: Include reload.h.
2441 (allocate_initial_values): Corresponding changes.
2442 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
2443 (fix_reg_equiv_init, no_equiv): Corresponding changes.
2444 (update_equiv_regs): Corresponding changes.
2445 (ira): Corresponding changes.
2446 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
2447 (push_secondary_reload): Corresponding changes.
2448 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
2449 (make_memloc, find_reloads_address): Corresponding changes.
2450 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
2451 (find_reloads_address_1): Corresponding changes.
2452 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
2453 (refers_to_regno_for_reload_p): Corresponding changes.
2454 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
2455 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
2456 * reload1.c: Include ggc.h.
2457 (grow_reg_equivs): New function.
2458 (replace_pseudos_in, reload): Corresponding changes.
2459 (calculate_needs_all_insns, alter_regs): Corresponding changes.
2460 (eliminate_regs_1, elimination_effects): Corresponding changes.
2461 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
2462 (delete_output_reload): Likewise.
2463 * caller-save.c (mark_referenced_regs): Corresponding changes.
2464 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
2465 * frv/predicates.md (frv_load_operand): Corresponding changes.
2466 * microblaze/microblaze.c (double_memory_operand): Corresponding
2468 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
2469 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
2470 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
2471 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
2472 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
2474 * pa/pa.c (emit_move_sequence): Corresponding changes.
2475 * vax/vax.c (nonindexed_address_p): Corresponding changes.
2477 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
2480 * config/arm/arm.c (coproc_secondary_reload_class): Handle
2481 structure modes. Don't check neon_vector_mem_operand for
2482 vector or structure modes.
2484 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
2485 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2488 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
2489 operand 1 and reshuffle the operands to match.
2490 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
2492 2011-03-30 Christian Schüler <cschueler@gmx.de>
2495 * config/c.opt (F): Added 'Driver' to -F option.
2498 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
2500 * config/darwin.opt: Added '-arch' option.
2502 2011-03-30 Nick Clifton <nickc@redhat.com>
2504 * config/rx/rx.md: Add peepholes and patterns to combine
2505 extending loads and simple arithmetic instructions.
2506 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
2507 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
2508 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
2509 modes to use pre-decrement and post-increment addressing.
2510 (rx_is_restricted_memory_address): Add range checking of REG+INT
2512 (rx_print_operand): Add support for %Q. Fix handling of %Q.
2513 (rx_memory_move_cost): Adjust cost of stores.
2514 (rx_adjust_insn_length): New function.
2516 2011-03-30 Jakub Jelinek <jakub@redhat.com>
2519 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
2520 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
2521 matching arg00/arg01 types.
2523 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
2525 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
2526 last_location to UNKNOWN_LOCATION.
2528 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
2531 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
2534 2011-03-30 Joseph Myers <joseph@codesourcery.com>
2535 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2538 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
2540 (sparc_cpu): Likewise.
2541 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
2544 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
2548 PR rtl-optimization/48345
2549 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
2550 hard regs for given mode from profitable regs when doing secondary
2553 2011-03-29 Jeff Law <law@redhat.com>
2556 * tree-ssa-threadupdate.c (struct redirection_data): Remove
2557 do_not_duplicate field.
2558 (lookup_redirection_data): Corresponding changes.
2559 (create_duplicates): Always create a template block.
2560 (redirect_edges): Remove code which reused the original block
2561 when it was going to become unreachable code.
2562 (thread_block): Don't set do_not_duplicate field.
2564 2011-03-29 Joseph Myers <joseph@codesourcery.com>
2566 * lto-opts.c (register_user_option_p, lto_register_user_option):
2567 Make type argument unsigned.
2568 * lto-streamer.h (lto_register_user_option): Make type argument
2570 * opth-gen.awk: Make CL_* macros unsigned.
2571 * opts-common.c (find_opt): Make lang_mask argument unsigned.
2572 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
2573 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
2574 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
2575 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
2576 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
2577 (find_opt): Make lang_mask argument unsigned.
2579 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
2581 PR rtl-optimization/48331
2582 PR rtl-optimization/48334
2583 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
2584 for any used algorithm.
2586 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
2588 * ira-conflicts.c (build_object_conflicts): Add unused attribute
2591 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
2593 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
2594 (alpha_option_override): Don't set alpha_sr_alias_set.
2595 (emit_frame_store_1): Use gen_frame_mem rather than calling
2597 (alpha_expand_epilogue): Ditto.
2599 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
2601 PR tree-optimization/48290
2602 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
2603 vectorization, check that relevant phis in the basic block after
2604 the inner loop are really inner loop's exit phis.
2606 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
2609 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
2610 (cached_dw_loc_list_def): New structure.
2611 (cached_dw_loc_list): New typedef.
2612 (cached_dw_loc_list_table): New variable.
2613 (cached_dw_loc_list_table_hash): New function.
2614 (cached_dw_loc_list_table_eq): Likewise.
2615 (add_location_or_const_value_attribute): Take a bool cache_p.
2616 Cache the list when the parameter is true.
2617 (gen_formal_parameter_die): Update caller.
2618 (gen_variable_die): Likewise.
2619 (dwarf2out_finish): Likewise.
2620 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
2621 while generating debug info for the decl.
2622 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
2623 (dwarf2out_init): Initialize cached_dw_loc_list_table.
2624 (resolve_addr): Cache the result of resolving a chain of
2627 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
2629 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
2630 conflict object hard regset nodes have intersecting hard reg sets.
2632 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
2633 after regstat_init_n_sets_and_refs.
2635 * ira.c: Add more comments at the top.
2636 (setup_stack_reg_pressure_class, setup_pressure_classes):
2637 Add comments how we compute the register pressure classes.
2638 (setup_allocno_and_important_classes): Add more comments.
2639 (setup_class_translate_array, reorder_important_classes)
2640 (setup_reg_class_relations): Add comments.
2642 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
2645 * ira-color.c: Add 2011 to the Copyright line.
2646 (assign_hard_reg): Add more comments.
2647 (improve_allocation): Ditto.
2649 * ira-costs.c: Add 2011 to the Copyright line.
2650 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
2652 (setup_regno_cost_classes_by_mode): Ditto.
2654 Initial patches from ira-improv branch:
2656 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
2658 * ira-build.c: (ira_create_object): Remove initialization of
2659 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
2660 (ira_create_allocno): Remove initialization of
2661 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
2662 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
2663 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
2664 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
2665 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
2666 Initialize ALLOCNO_ADD_DATA.
2667 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
2668 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
2670 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
2671 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
2673 * ira.c (ira_reallocate): Remove.
2674 (setup_pressure_classes): Call
2675 ira_init_register_move_cost_if_necessary. Use
2676 ira_register_move_cost instead of ira_get_register_move_cost.
2677 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
2678 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
2680 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
2681 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
2682 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
2683 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
2684 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
2685 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
2687 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
2688 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
2689 (struct allocno_color_data): New.
2690 (allocno_color_data_t): New typedef.
2691 (allocno_color_data): New definition.
2692 (ALLOCNO_COLOR_DATA): New macro.
2693 (struct object_color_data): New.
2694 (object_color_data_t): New typedef.
2695 (object_color_data): New definition.
2696 (OBJECT_COLOR_DATA): New macro.
2697 (update_copy_costs, calculate_allocno_spill_cost): Call
2698 ira_init_register_move_cost_if_necessary. Use
2699 ira_register_move_cost instead of ira_get_register_move_cost.
2700 (move_spill_restore, update_curr_costs): Ditto.
2701 (allocno_spill_priority): Make it inline.
2702 (color_pass): Allocate and free allocno_color_dat and object_color_data.
2703 (struct coalesce_data, coalesce_data_t): New.
2704 (allocno_coalesce_data): New definition.
2705 (ALLOCNO_COALESCE_DATA): New macro.
2706 (merge_allocnos, coalesced_allocno_conflict_p): Use
2707 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
2708 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
2709 (coalesce_allocnos): Ditto.
2710 (setup_coalesced_allocno_costs_and_nums): Ditto.
2711 (collect_spilled_coalesced_allocnos): Ditto.
2712 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
2713 (setup_slot_coalesced_allocno_live_ranges): Ditto.
2714 (coalesce_spill_slots): Ditto.
2715 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
2716 free allocno_coalesce_data.
2718 * ira-conflicts.c: Fix formatting.
2719 (process_regs_for_copy): Call
2720 ira_init_register_move_cost_if_necessary. Use
2721 ira_register_move_cost instead of ira_get_register_move_cost.
2722 (build_object_conflicts): Optimize.
2724 * ira-costs.c (record_reg_classes): Optimize. Call
2725 ira_init_register_move_cost_if_necessary. Use
2726 ira_register_move_cost, ira_may_move_in_cost, and
2727 ira_may_move_out_cost instead of ira_get_register_move_cost and
2728 ira_get_may_move_cost.
2729 (record_address_regs): Ditto.
2730 (scan_one_insn): Optimize.
2731 (find_costs_and_classes): Optimize.
2732 (process_bb_node_for_hard_reg_moves): Call
2733 ira_init_register_move_cost_if_necessary. Use
2734 ira_register_move_cost instead of ira_get_register_move_cost.
2736 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
2737 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
2738 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
2739 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
2741 (ira_initiate_emit_data, ira_finish_emit_data)
2742 (create_new_allocno): New functions.
2743 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
2744 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
2745 Use ira_register_move_cost instead of ira_get_register_move_cost.
2747 * ira-int.h: Fix some comments.
2748 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
2749 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
2750 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
2751 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
2753 (struct ira_allocno): Make mode and aclass a bitfield. Move other
2754 bitfield after mode. Make hard_regno a short int. Make
2755 hard_regno short. Remove first_coalesced_allocno and
2756 next_coalesced_allocno. Move mem_optimized_dest_p,
2757 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
2758 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
2759 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
2760 temp, colorable_p. Add new member add_data.
2761 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
2762 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
2763 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
2764 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
2765 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
2766 (ALLOCNO_ADD_DATA): New macro.
2767 (ira_emit_data_t): New typedef.
2768 (struct ira_emit_data): New. Move mem_optimized_dest_p,
2769 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
2770 from struct ira_allocno.
2771 (ALLOCNO_EMIT_DATA): New macro.
2772 (ira_allocno_emit_data, allocno_emit_reg): New.
2773 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
2774 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
2775 (OBJECT_ADD_DATA): New macro.
2776 (ira_reallocate): Remove.
2777 (ira_initiate_emit_data, ira_finish_emit_data): New.
2778 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
2779 (ira_init_register_move_cost_if_necessary): New.
2780 (ira_object_conflict_iter_next): Merge into
2781 ira_object_conflict_iter_cond.
2782 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
2784 * ira-live.c: (process_single_reg_class_operands): Call
2785 ira_init_register_move_cost_if_necessary. Use
2786 ira_register_move_cost instead of ira_get_register_move_cost.
2788 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
2790 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
2792 * ira-costs.c: Fix formatting.
2793 (cost_classes, cost_classes_num): Remove.
2794 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
2795 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
2796 (cost_classes_del, cost_classes_htab): New.
2797 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
2798 (initiate_regno_cost_classes, setup_cost_classes): New.
2799 (setup_regno_cost_classes_by_aclass): New.
2800 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
2801 (record_reg_classes): Use regno_cost_classes instead of
2802 cost_classes. Move checking opposite operand up.
2803 (record_address_regs): Use regno_cost_classes
2804 instead of cost_classes.
2805 (scan_one_insn): Ditto. Use always general register.
2806 (print_allocno_costs): Use regno_cost_classes instead of
2808 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
2809 (find_costs_and_classes): Set up cost classes for each registers.
2810 Use also their mode for this. Use regno_cost_classes instead of
2812 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
2814 (free_ira_costs, ira_init_costs): Don't use cost_classes.
2815 (ira_costs, ira_set_pseudo_classes): Call
2816 initiate_regno_cost_classes and finish_regno_cost_classes.
2818 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
2820 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
2822 * target.def (ira_cover_classes): Remove.
2824 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
2826 * doc/tm.texi.in: Ditto.
2828 * ira-conflicts.c: Remove mentioning cover classes from the file.
2829 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
2830 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
2832 * targhooks.c (default_ira_cover_classes): Remove.
2834 * targhooks.h (default_ira_cover_classes): Ditto.
2836 * haifa-sched.c: Remove mentioning cover classes from the file.
2837 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
2838 ira_pressure_classes and ira_pressure_classes_num instead of
2839 ira_reg_class_cover_size and ira_reg_class_cover. Use
2840 sched_regno_pressure_class instead of sched_regno_cover_class.
2841 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
2842 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
2844 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
2845 classes from the file.
2846 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
2847 (struct object_hard_regs, struct object_hard_regs_node): New.
2848 (struct ira_object): New members profitable_hard_regs,
2849 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
2850 (struct ira_allocno): Rename cover_class to aclass. Rename
2851 cover_class_cost and updated_cover_class_cost to class_cost and
2852 updated_class_cost. Remove splay_removed_p and
2853 left_conflict_size. Add new members colorable_p.
2854 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
2855 (ALLOCNO_COLORABLE_P): New macro.
2856 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
2857 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
2858 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
2859 (OBJECT_...): Rename parameter C to O.
2860 (OBJECT_PROFITABLE_HARD_REGS): New macro.
2861 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
2862 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
2863 (struct target_ira_int): New members x_ira_max_memory_move_cost,
2864 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
2865 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
2866 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
2867 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
2868 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
2869 x_ira_reg_class_subunion.
2870 (ira_max_memory_move_cost, ira_max_register_move_cost)
2871 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
2872 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
2873 (ira_important_class_nums, ira_reg_class_superunion): New macros.
2874 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
2875 (ira_reg_class_union): Rename to ira_reg_class_subunion.
2876 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
2877 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
2878 (ira_tune_allocno_costs_and_cover_classes): Rename to
2879 ira_tune_allocno_costs.
2880 (ira_debug_hard_regs_forest): New.
2881 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
2882 (ira_object_conflict_iter_next): Fix comments.
2883 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
2884 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
2885 cover_class to aclass.
2886 (ira_allocate_and_accumulate_costs): Ditto.
2887 (ira_allocate_and_set_or_copy_costs): Ditto.
2889 * opts.c (decode_options): Remove ira_cover_class check.
2891 * ira-color.c: Remove mentioning cover classes from the file. Use
2892 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
2893 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
2894 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
2895 (splay-tree.h): Remove include.
2896 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
2897 before copy_freq_compare_func.
2898 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
2899 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
2901 (hard_regs_roots, hard_regs_node_vec): Ditto.
2902 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
2903 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
2904 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
2905 (create_new_object_hard_regs_node): Ditto.
2906 (add_new_object_hard_regs_node_to_forest): Ditto.
2907 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
2908 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
2910 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
2911 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
2912 (remove_unused_object_hard_regs_nodes): Ditto.
2913 (enumerate_object_hard_regs_nodes): Ditto.
2914 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
2915 (object_hard_regs_subnode_t): Ditto.
2916 (struct object_hard_regs_subnode): Ditto.
2917 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
2918 (setup_object_hard_regs_subnode_index): Ditto.
2919 (get_object_hard_regs_subnodes_num): Ditto.
2920 (form_object_hard_regs_nodes_forest): Ditto.
2921 (finish_object_hard_regs_nodes_tree): Ditto.
2922 (finish_object_hard_regs_nodes_forest): Ditto.
2923 (allocnos_have_intersected_live_ranges_p): Rename to
2924 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
2925 (pseudos_have_intersected_live_ranges_p): Rename to
2926 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
2927 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
2928 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
2929 (update_copy_costs): Remove assert. Skip cost update if the hard
2930 reg does not belong the class.
2931 (assign_hard_reg): Process only profitable hard regs.
2932 (uncolorable_allocnos_num): Make it scalar.
2933 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
2934 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
2935 and ira_reg_class_max_nregs.
2936 (bucket_allocno_compare_func): Check frequency first.
2937 (sort_bucket): Add compare function as a parameter.
2938 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
2939 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
2940 (push_allocno_to_stack): Rewrite for checking new allocno
2942 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
2943 (push_only_colorable): Pass new parameter to sort_bucket.
2944 (push_allocno_to_spill): Remove.
2945 (allocno_spill_priority_compare): Make it inline and rewrite.
2946 (splay_tree_allocate, splay_tree_free): Remove.
2947 (allocno_spill_sort_compare): New function.
2948 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
2949 build and use splay tree. Choose first allocno in uncolorable
2950 allocno bucket to spill. Remove setting spill cost.
2951 (all_conflicting_hard_regs): Remove.
2952 (setup_allocno_available_regs_num): Check only profitable hard
2953 regs. Print info about hard regs nodes.
2954 (setup_allocno_left_conflicts_size): Remove.
2955 (put_allocno_into_bucket): Don't call
2956 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
2957 (improve_allocation): New.
2958 (color_allocnos): Call setup_profitable_hard_regs,
2959 form_object_hard_regs_nodes_forest, improve_allocation,
2960 finish_object_hard_regs_nodes_forest. Setup spill cost.
2961 (print_loop_title): Use pressure classes.
2962 (color_allocnso): Ditto.
2963 (do_coloring): Remove allocation and freeing splay_tree_node_pool
2964 and allocnos_for_spilling.
2965 (ira_sort_regnos_for_alter_reg): Don't setup members
2966 {first,next}_coalesced_allocno.
2967 (color): Remove allocating and freeing removed_splay_allocno_vec.
2968 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
2969 prohibited_class_mode_regs.
2971 * ira-lives.c: Remove mentioning cover classes from the file. Fix
2973 (update_allocno_pressure_excess_length): Use pressure classes.
2974 (inc_register_pressure, dec_register_pressure): Check for pressure
2976 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
2977 pressure class. Use ira_reg_class_nregs instead of
2978 ira_reg_class_max_nregs.
2979 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
2980 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
2981 (single_reg_class): Use ira_reg_class_nregs instead of
2982 ira_reg_class_max_nregs.
2983 (process_bb_node_lives): Use pressure classes.
2985 * ira-emit.c: Remove mentioning cover classes from the file. Use
2986 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
2987 (change_loop): Use pressure classes.
2988 (modify_move_list): Call ira_set_allocno_class instead of
2989 ira_set_allocno_cover_class.
2991 * ira-build.c: Remove mentioning cover classes from the file. Use
2992 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
2993 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
2994 ALLOCNO_UPDATED_CLASS_COST instead of
2995 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
2996 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
2997 (ira_create_allocno): Remove initialization of
2998 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
2999 ALLOCNO_COLORABLE_P.
3000 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
3001 Update conflict regs for the objects.
3002 (create_cap_allocno): Remove assert. Don't propagate
3003 ALLOCNO_AVAILABLE_REGS_NUM.
3004 (ira_free_allocno_costs): New function.
3005 (finish_allocno): Change a part of code into call of
3006 ira_free_allocno_costs.
3007 (low_pressure_loop_node_p): Use pressure classes.
3008 (object_range_compare_func): Don't compare classes.
3009 (setup_min_max_conflict_allocno_ids): Ditto.
3011 * loop-invariant.c: Remove mentioning cover classes from the file.
3012 Use ira_pressure_classes and ira_pressure_classes_num instead of
3013 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
3014 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
3015 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3016 Use reg_allocno_class instead of reg_cover_class.
3017 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
3018 STACK_REG_COVER_CLASS.
3019 (get_regno_cover_class): Rename to get_regno_pressure_class.
3020 (move_loop_invariants): Initialize and finalize regstat.
3022 * ira.c: Remove mentioning cover classes from the file. Add
3023 comments about coloring without cover classes. Use ALLOCNO_CLASS
3024 instead of ALLOCNO_COVER_CLASS. Fix formatting.
3025 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
3026 setup_class_subset_and_memory_move_costs.
3027 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
3028 (setup_cover_and_important_classes): Rename to
3029 setup_allocno_and_important_classes.
3030 (setup_class_translate_array): New.
3031 (setup_class_translate): Call it for allocno and pressure classes.
3032 (cover_class_order): Rename to allocno_class_order.
3033 (comp_reg_classes_func): Use ira_allocno_class_translate instead
3034 of ira_class_translate.
3035 (reorder_important_classes): Set up ira_important_class_nums.
3036 (setup_reg_class_relations): Set up ira_reg_class_superunion.
3037 (print_class_cover): Rename to print_classes. Add parameter.
3038 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3039 Print pressure classes too.
3040 (find_reg_class_closure): Rename to find_reg_classes. Don't call
3041 setup_reg_subclasses.
3042 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
3043 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
3044 (setup_prohibited_class_mode_regs): Use
3045 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
3046 (clarify_prohibited_class_mode_regs): New function.
3047 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
3048 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
3049 (ira_init_once): Initialize them.
3050 (free_register_move_costs): Process them.
3051 (ira_init): Move calls of find_reg_classes and
3052 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
3053 Call clarify_prohibited_class_mode_regs.
3054 (ira_no_alloc_reg): Remove.
3055 (too_high_register_pressure_p): Use pressure classes.
3057 * sched-deps.c: Remove mentioning cover classes from the file.
3058 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
3059 ira_pressure_classes and ira_pressure_classes_num instead of
3060 ira_reg_class_cover_size and ira_reg_class_cover.
3061 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
3062 sched_regno_pressure_class instead of sched_regno_cover_class.
3063 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
3064 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3066 * ira.h: Add 2010 to Copyright.
3067 (ira_no_alloc_reg): Remove external.
3068 (struct target_ira): Rename x_ira_hard_regno_cover_class,
3069 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
3070 x_ira_class_translate to x_ira_hard_regno_allocno_class,
3071 x_ira_allocno_classes_num, x_ira_allocno_classes, and
3072 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
3073 x_ira_pressure_classes, x_ira_pressure_class_translate, and
3074 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
3075 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
3076 x_ira_no_alloc_regs.
3077 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
3078 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
3079 ira_allocno_classes_num and ira_allocno_classes.
3080 (ira_class_translate): Rename to ira_allocno_class_translate.
3081 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
3082 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
3083 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
3084 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
3085 (ira_no_alloc_regs): New.
3087 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
3088 classes from the file. Use ALLOCNO_CLASS instead of
3089 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
3090 ALLOCNO_COVER_CLASS_COST.
3091 (regno_cover_class): Rename to regno_aclass.
3092 (record_reg_classes): Use ira_reg_class_subunion instead of
3093 ira_reg_class_union.
3094 (record_address_regs): Check overflow.
3095 (scan_one_insn): Ditto.
3096 (print_allocno_costs): Print total mem cost fore regional allocation.
3097 (print_pseudo_costs): Use REG_N_REFS.
3098 (find_costs_and_classes): Use classes intersected with them on the
3099 1st pass. Check overflow. Use ira_reg_class_subunion instead of
3100 ira_reg_class_union. Use ira_allocno_class_translate and
3101 regno_aclass instead of ira_class_translate and regno_cover_class.
3102 Modify code for finding regno_aclass. Setup preferred classes for
3104 (setup_allocno_cover_class_and_costs): Rename to
3105 setup_allocno_class_and_costs. Use regno_aclass instead of
3106 regno_cover_class. Use ira_set_allocno_class instead of
3107 ira_set_allocno_cover_class.
3108 (init_costs, finish_costs): Use regno_aclass instead of
3110 (ira_costs): Use setup_allocno_class_and_costs instead of
3111 setup_allocno_cover_class_and_costs.
3112 (ira_tune_allocno_costs_and_cover_classes): Rename to
3113 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
3114 by processing objects. Use ira_reg_class_max_nregs instead of
3115 ira_reg_class_nregs.
3117 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
3119 * sched-int.h: Remove mentioning cover classes from the file.
3120 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
3122 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
3123 classes from the file.
3124 (struct reg_pref): Rename coverclass into allocnoclass.
3125 (reg_cover_class): Rename to reg_allocno_class.
3127 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
3129 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
3131 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
3133 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
3135 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
3137 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
3139 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
3141 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
3143 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
3145 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
3147 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
3148 (i386_ira_cover_classes): Ditto.
3150 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
3152 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
3154 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
3156 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
3158 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
3160 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
3162 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
3163 (mips_ira_cover_classes): Ditto.
3165 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
3167 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
3169 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
3171 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
3173 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
3175 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
3176 (IRA_COVER_CLASSES_VSX): Ditto.
3178 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
3179 (rs6000_ira_cover_classes): Ditto.
3181 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
3183 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
3185 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
3187 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
3189 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
3191 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
3193 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
3195 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
3197 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
3199 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
3201 2011-03-29 Jakub Jelinek <jakub@redhat.com>
3204 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
3205 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
3206 dw_fde_unlikely_section_end_label, cold_in_std_section,
3207 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
3208 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
3210 (output_fde): Use dw_fde_second_{begin,end} if second is
3211 true, otherwise dw_fde_{begin,end}.
3212 (output_call_frame_info): Test dw_fde_second_begin != NULL
3213 instead of dw_fde_switched_sections.
3214 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
3215 fields, initialize new fields. Initialize in_std_section
3216 unconditionally from the first partition.
3217 (dwarf2out_end_epilogue): Don't override dw_fde_end when
3218 dw_fde_second_begin is non-NULL.
3219 (dwarf2out_switch_text_section): Stop initializing removed
3220 dw_fde_struct fields, initialize new fields, initialize
3221 also dw_fde_end here. Set dw_fde_switch_cfi even when
3222 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
3223 (struct var_loc_list_def): Add last_before_switch field.
3224 (arange_table, arange_table_allocated, arange_table_in_use,
3225 ARANGE_TABLE_INCREMENT, add_arange): Removed.
3226 (size_of_aranges): Count !in_std_section and !second_in_std_section
3227 hunks in fdes, instead of looking at arange_table_in_use.
3228 (output_aranges): Add aranges_length argument, don't call
3229 size_of_aranges here. Instead of using aranges_table*
3230 emit ranges for fdes when !in_std_section resp.
3231 !second_in_std_section.
3232 (dw_loc_list): Break ranges crossing section switch.
3233 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
3234 use dw_fde_second_end instead of dw_fde_end as end of last range.
3235 (gen_subprogram_die): Don't call add_arange. Use
3236 dw_fde_{begin,end} for first partition and if switched
3237 section dw_fde_second_{begin,end} for the second.
3238 (var_location_switch_text_section_1,
3239 var_location_switch_text_section): New functions.
3240 (dwarf2out_begin_function): Initialize cold_text_section even
3241 when function_section () isn't text_section.
3242 (prune_unused_types): Don't walk arange_table.
3243 (dwarf2out_finish): Don't needlessly test
3244 flag_reorder_blocks_and_partition when testing cold_text_section_used.
3245 If info_section_emitted, call size_of_aranges and if it indicates
3246 non-empty .debug_aranges, call output_aranges with the computed
3247 size. Stop using removed dw_fde_struct fields, use
3248 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
3252 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
3253 create ENTRY_VALUE if incoming or address of incoming's MEM
3255 * dwarf2out.c (mem_loc_descriptor): Don't emit
3256 DW_OP_GNU_entry_value of DW_OP_fbreg.
3257 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
3258 on ENTRY_VALUE is able to find the canonical parameter VALUE.
3259 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
3260 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
3262 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
3263 is a REG_P or MEM_P with REG_P address, compute hash directly
3264 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
3265 (preserve_only_constants): Don't clear VALUES forwaring
3266 ENTRY_VALUE to some other VALUE.
3268 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
3270 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
3273 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
3275 * cfgexpand.c (expand_gimple_cond): Always set the source location and
3276 block before expanding the statement.
3277 (expand_gimple_stmt_1): Likewise. Set them here...
3278 (expand_gimple_stmt): ...and not here. Tidy.
3279 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
3282 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
3284 * Makefile.in: New rule for cprop.o.
3285 * gcse.c: Move constant/copy propagation to cprop.c.
3286 (compute_local_properties): Only handle expression tables.
3287 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
3288 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
3289 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
3290 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
3291 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
3292 compute_cprop_data, find_used_regs, try_replace_reg,
3293 find_avail_set, cprop_jump, constprop_register, cprop_insn,
3294 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
3295 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
3296 find_bypass_set, reg_killed_on_edge, bypass_block,
3297 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
3298 execute_rtl_cprop, pass_rtl_cprop): Move to...
3299 * cprop.c: ...here. New file, constant/copy propagation for RTL
3300 moved from gcse.c to here with minor cleanups in duplicated code.
3302 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
3304 * config/i386/i386.c (flag_opts): Fix a typo in
3305 -mavx256-split-unaligned-store.
3307 2011-03-28 Anatoly Sokolov <aesok@post.ru>
3309 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
3310 LIBCALL_VALUE): Remove macros.
3311 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3312 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3313 (h8300_function_value, h8300_libcall_value,
3314 h8300_function_value_regno_p): New functions.
3316 2011-03-28 Anatoly Sokolov <aesok@post.ru>
3318 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
3320 2011-03-28 Jeff Law <law@redhat.com>
3322 * tree-ssa-threadupdate.c (redirect_edges): Call
3323 create_edge_and_update_destination_phis as needed.
3324 (create_edge_and_update_destination_phis): Accept new BB argument.
3325 All callers updated.
3326 (thread_block): Do not update the profile when threading around
3327 intermediate blocks.
3328 (thread_single_edge): Likewise.
3329 (determine_bb_domination_status): If BB is not a successor of the
3330 loop header, return NONDOMINATING.
3331 (register_jump_thread): Note when we register a jump thread around
3332 an intermediate block.
3333 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
3334 (thread_across_edge): Use it.
3336 2011-03-28 Tristan Gingold <gingold@adacore.com>
3338 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
3339 when for_return is 2.
3341 2011-03-28 Jeff Law <law@redhat.com>
3343 * var-tracking.c (canonicalize_values_mark): Delete unused
3345 (canonicalize_values_star, set_variable_part): Likewise.
3346 (clobber_variable_part, delete_variable_part): Likewise.
3348 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
3350 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
3352 2011-03-28 Martin Jambor <mjambor@suse.cz>
3354 * tree-inline.c (expand_call_inline): Do not check that destination
3356 (optimize_inline_calls): Assert that destination node is analyzed.
3357 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
3358 not call tree_lowering_passes.
3359 * cgraph.h (cgraph_analyze_function): Declare.
3360 * cgraphunit.c (cgraph_analyze_function): Make public.
3362 2011-03-28 Joseph Myers <joseph@codesourcery.com>
3364 * config/sparc/sparc-opts.h: New.
3365 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
3366 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
3367 (sparc_option_override): Store processor_type enumeration rather
3368 than string in cpu_default. Remove name and enumeration from
3369 cpu_table. Directly default -mcpu then default -mtune from -mcpu
3370 without using sparc_select. Use target_flags_explicit instead of
3372 * config/sparc/sparc.h (enum processor_type): Move to
3374 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
3375 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
3376 HeaderInclude entry.
3377 (mcpu=, mtune=): Use Var and Enum.
3378 (sparc_processor_type): New Enum and EnumValue entries.
3380 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3381 Iain Sandoe <iains@gcc.gnu.org>
3384 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
3386 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
3388 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
3389 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
3390 Insert new statements at it in lieu of STMT.
3391 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
3392 * tree-vect-stmts.c (vectorizable_store): Likewise.
3393 (vectorizable_load): Likewise.
3395 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
3397 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
3402 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
3404 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
3405 unaligned 256bit load/store.
3406 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
3407 (*avx_movdqu<avxmodesuffix>): Likewise.
3409 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3412 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
3413 * config/pa/pa.md (iordi3): Use new predicate in expander.
3416 2011-03-27 Anatoly Sokolov <aesok@post.ru>
3418 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
3419 FUNCTION_VALUE_REGNO_P): Remove macros.
3420 * config/mips/mips-protos.h (mips_function_value): Remove.
3421 * config/mips/mips.c (mips_function_value): Rename to...
3422 (mips_function_value_1): ... this. Make static. Handle receiving
3423 the function type in 'fn_decl_or_type' argument.
3424 (mips_function_value, mips_libcall_value,
3425 mips_function_value_regno_p): New function.
3426 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3427 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3429 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
3431 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
3432 and -mavx256-split-unaligned-store.
3433 (ix86_option_override_internal): Split 32-byte AVX unaligned
3434 load/store by default.
3435 (ix86_avx256_split_vector_move_misalign): New.
3436 (ix86_expand_vector_move_misalign): Use it.
3438 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
3439 -mavx256-split-unaligned-store.
3441 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
3442 256bit load/store. Generate unaligned store on misaligned memory
3444 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
3446 (*avx_movdqu<avxmodesuffix>): Likewise.
3448 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
3449 -mavx256-split-unaligned-store.
3451 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
3454 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
3457 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
3459 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
3460 opno arguments with an expand_operand. Use create_input_operand.
3461 (mips_prepare_builtin_target): Delete.
3462 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
3464 (mips_expand_builtin_direct): Use create_output_operand and
3465 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
3466 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
3467 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
3469 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
3471 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
3473 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
3475 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
3477 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
3478 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
3479 basic blocks and call commit_edge_insertions directly.
3480 (fixup_abnormal_edges): Move from here to...
3481 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
3482 on the edges and return whether some have actually been inserted.
3483 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
3486 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
3488 PR rtl-optimization/48144
3489 * sel-sched-ir.c (merge_history_vect): Factor out from ...
3490 (merge_expr_data): ... here.
3491 (av_set_intersect): Rename to av_set_code_motion_filter.
3492 Update all callers. Call merge_history_vect when an expression
3493 is found in both sets.
3494 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
3496 2011-03-26 Alan Modra <amodra@gmail.com>
3498 * config/rs6000/predicates.md (word_offset_memref_op): Handle
3499 cmodel medium addresses.
3500 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
3501 64-bit gpr loads and stores.
3502 (rs6000_secondary_reload_ppc64): New function.
3503 * config/rs6000/rs6000-protos.h: Declare it.
3504 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
3506 2011-03-26 Alan Modra <amodra@gmail.com>
3509 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
3510 GNU Go in traceback table.
3512 2011-03-25 Richard Henderson <rth@redhat.com>
3514 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
3515 if there are exactly 6 operands.
3516 (set_storage_via_setmem): Similarly.
3518 2011-03-25 Kai Tietz <ktietz@redhat.com>
3520 * collect2.c (write_c_file_stat): Handle backslash
3521 as right-hand directory separator.
3522 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
3523 checking just for slash.
3524 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
3525 instead of checking for trailing slash.
3526 * gcc.c (record_temp_file): Use filename_cmp instead
3528 (do_spec_1): Likewise.
3529 (replace_outfile_spec_function): Likewise.
3530 (is_directory): Use filename_ncmp instead of strncmp.
3531 (print_multilib_info): Likewise.
3532 * gcov.c (find_source): Use filename_cmp instead
3534 (make_gcov_file_name): Fix order of slash/backslash
3536 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
3537 (add_standard_paths): Likewise.
3538 * mips-tfile.c (saber_stop): Handle backslash.
3539 * prefix.c (update_path): Use filename_ncmp instead of
3541 * profile.c (output_location): Use filename_cmp instead
3543 * read-md.c (handle_toplevel_file): Handle backslash.
3544 * tlink.c (frob_extension): Likewise.
3545 * tree-cfg.c (same_line_p): Use filename_cmp instead of
3547 * tree-dump.c (dequeue_and_dump): Handle backslash.
3548 * tree.c (get_file_function_name): Likewise.
3549 * gengtype.c (read_input_list): Likewise.
3550 (get_file_realbasename): Likewise.
3551 (get_output_file_with_visibility): Use filename_cmp
3554 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
3556 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
3559 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
3561 * fold-const.c (expr_location_or): New function.
3562 (fold_truth_not_expr): Call it.
3564 2011-03-25 Jeff Law <law@redhat.com>
3566 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
3568 * c-family/c-common.c (def_fn_type): Likewise.
3569 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
3570 * emit-rtl.c (gen_rtvec): Likewise.
3571 * lto/lto-lang.c (def_fn_type): Likewise.
3573 2011-03-25 Richard Guenther <rguenther@suse.de>
3575 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
3576 also generate copies.
3577 (fini_copy_prop): Handle constant values properly.
3579 2011-03-25 Jakub Jelinek <jakub@redhat.com>
3581 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
3582 mode size instead of bitsize with DWARF2_ADDR_SIZE.
3583 (hash_loc_operands, compare_loc_operands): Handle
3584 DW_OP_GNU_entry_value.
3586 2011-03-25 Kai Tietz <ktietz@redhat.com>
3588 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
3589 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
3590 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
3591 comment and use macro TARGET_64BIT_MS_ABI instead.
3592 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
3593 and change default behavior for 32-bit MS_ABI.
3594 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
3595 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
3597 (ix86_cfun_abi): Likewise.
3598 (ix86_maybe_switch_abi): Adjust comment.
3599 (init_cumulative_args): Check for bit-ness in MS_ABI case.
3600 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
3601 instead of checking for SYSV_ABI.
3602 (ix86_nsaved_sseregs): Likewise.
3603 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
3605 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
3606 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
3607 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
3608 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
3609 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
3611 2011-03-25 Richard Guenther <rguenther@suse.de>
3613 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
3614 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
3615 (verify_gimple): Remove.
3616 * tree-cfg.c (verify_gimple_call): Merge verification
3618 (verify_gimple_phi): Merge verification from verify_stmts.
3619 (verify_gimple_label): New function.
3620 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
3621 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
3622 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
3623 (verify_stmts): Rename to verify_gimple_in_cfg.
3624 (verify_gimple_in_cfg): New function.
3625 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
3626 * tree-ssa.c (verify_ssa): Likewise.
3627 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
3629 2011-03-25 Richard Guenther <rguenther@suse.de>
3631 * passes.c (init_optimization_passes): Add FRE pass after
3634 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
3635 Andrew Stubbs <ams@codesourcery.com>
3637 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
3639 (arm_movdi_vfp_cortexa8): New pattern.
3640 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
3641 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
3642 instructions when tuning for Cortex-A8. Set attribute "arch".
3643 * config/arm/arm.md: Move include arm-tune.md up a bit.
3644 (define_attr "arch"): Add "onlya8" and "nota8" values.
3645 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
3647 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
3651 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
3653 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
3654 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
3655 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
3656 * passes.c (init_optimization_passes): Move
3657 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
3659 2011-03-25 Kai Tietz <ktietz@redhat.com>
3661 * c-typeck.c (comptypes_internal): Replace target
3662 hook call of comp_type_attributes by version in tree.c file.
3663 * gimple.c (gimple_types_compatible_p_1): Likewise.
3664 * tree-ssa.c (useless_type_conversion_p): Likewise.
3665 * tree.c (build_type_attribute_qual_variant): Likewise.
3666 (attribute_value_equal): New static helper function.
3667 (comp_type_attributes): New function.
3668 (merge_attributes): Use attribute_value_equal for comparison.
3669 (attribute_list_contained): Likewise.
3670 * tree.h (comp_type_attributes): New prototype.
3672 2011-03-25 Richard Guenther <rguenther@suse.de>
3674 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
3675 of complex types at -O0.
3676 (verify_gimple_assign_binary): Likewise.
3677 (verify_gimple_assign_ternary): Likewise.
3679 2011-03-24 Mark Wielaard <mjw@redhat.com>
3681 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
3682 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
3684 2011-03-24 Mark Wielaard <mjw@redhat.com>
3687 * dwarf2out.c (output_abbrev_section): Only write table when
3688 abbrev_die_table_in_use > 1.
3690 2011-02-24 Richard Henderson <rth@redhat.com>
3692 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
3693 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
3694 (alpha_expand_unaligned_load_words): Use extql.
3695 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
3696 (emit_insxl): Handle all modes for consistency.
3698 2011-02-24 Richard Henderson <rth@redhat.com>
3700 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
3701 (alpha_expand_unaligned_load): Likewise.
3702 (alpha_expand_unaligned_store): Likewise.
3703 (alpha_expand_unaligned_load_words): Likewise.
3704 (alpha_expand_unaligned_store_words): Likewise.
3705 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
3706 (alpha_split_lock_test_and_set_12): Likewise.
3707 (print_operand, alpha_fold_builtin_extxx): Likewise.
3708 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
3709 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
3710 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
3711 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
3712 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
3713 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
3714 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
3715 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
3716 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
3717 (extwl, extll, extql): Similarly.
3718 (inswh, inslh, insqh): Similarly.
3719 (mskbl, mskwl, mskll, mskql): Similarly.
3720 (mskwh, msklh, mskqh): Similarly.
3722 2011-02-24 Richard Henderson <rth@redhat.com>
3724 * config/alpha/alpha.md (attribute isa): Add er, ner.
3725 (attribute enabled): Handle them.
3726 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
3728 2011-02-24 Richard Henderson <rth@redhat.com>
3730 * config/alpha/alpha.md (attribute isa): Add vms.
3731 (attribute enabled): Handle it.
3732 (*movsf): Merge *movsf_{nofix,fix,nofp}.
3733 (*movdf): Merge *movdf_{nofix,fix,nofp}.
3734 (*movtf): Rename from *movtf_internal for consistency.
3735 (*movsi): Merge with *movsi_nt_vms.
3736 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
3737 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
3738 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
3739 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
3741 2011-02-24 Richard Henderson <rth@redhat.com>
3743 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
3744 (extendqisi2, extendhisi2): Likewise.
3745 (extendqidi2): Simplify BWX/non-BWX expansions.
3746 (extendhidi2): Similarly.
3748 2011-02-24 Richard Henderson <rth@redhat.com>
3750 * config/alpha/alpha.md (attribute isa): New.
3751 (attribute enabled): New.
3752 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
3753 (zero_extendqisi2, zero_extendqidi2): Similarly.
3754 (zero_extendhisi2, zero_extendhidi2): Similarly.
3755 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
3757 2011-02-24 Richard Henderson <rth@redhat.com>
3759 * config/alpha/predicates.md (input_operand): Revert last change;
3760 update comment to mention 32-bit VMS rather than Windows.
3762 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
3764 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
3765 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
3766 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
3767 * passes.c (init_optimization_passes): Move
3768 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
3770 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
3772 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
3774 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
3776 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
3779 2011-03-24 Jakub Jelinek <jakub@redhat.com>
3782 * simplify-rtx.c (simplify_const_unary_operation): Call
3783 real_convert when changing mode class with FLOAT_EXTEND.
3785 2011-03-24 Nick Clifton <nickc@redhat.com>
3787 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
3788 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
3789 * config/rx/rx.c (rx_option_override): Set align_jumps,
3790 align_loops and align_labels if not set by the user.
3791 (rx_align_for_label): New function.
3792 (rx_max_skip_for_label): New function.
3793 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
3794 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
3795 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
3796 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
3797 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
3799 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
3801 PR rtl-optimization/48263
3802 * optabs.c (expand_binop_directly): Reinstate convert_modes code
3803 and original commutative_p handling. Use maybe_gen_insn.
3805 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3807 * reload.c (find_reloads_subreg_address): Add address_reloaded
3808 parameter and return true there if the full address has been
3810 (find_reloads_toplev): Pass address_reloaded flag.
3811 (find_reloads_address_1): Don't use address_reloaded parameter.
3813 2011-03-24 Jeff Law <law@redhat.com>
3815 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
3816 unused variable "ann".
3817 (remove_unused_locals): Likewise.
3819 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
3822 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
3825 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3827 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
3828 for invalid symbolic addresses.
3829 (s390_secondary_reload): Don't use s390_check_symref_alignment for
3832 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
3834 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
3835 the argument in calls to fold_truth_not_expr.
3837 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
3839 * tree.c (record_node_allocation_statistics): New function.
3840 (make_node_stat, copy_node_stat, build_string): Call it.
3841 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
3842 (build1_stat, build_omp_clause): Likewise.
3844 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
3846 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
3849 2011-03-24 Richard Guenther <rguenther@suse.de>
3851 PR tree-optimization/48271
3852 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
3853 blocks that still exist.
3855 2011-03-24 Richard Guenther <rguenther@suse.de>
3857 PR tree-optimization/48270
3858 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
3859 not free datarefs before ddrs.
3861 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
3863 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
3864 from the address built for a reference with variable offset.
3866 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
3869 * config/i386/i386.md (*movdf_internal_rex64): Do not split
3870 alternatives that can be handled with movq or movabsq insn.
3871 (*movdf_internal): Disable for !TARGET_64BIT.
3872 (*movdf_internal_nointeger): Ditto.
3873 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
3875 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
3877 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
3878 (FUNCTION_ARG_ADVANCE): Likewise.
3879 * tm.texi.in: Change references to them to hook references.
3880 * tm.texi: Regenerate.
3881 * targhooks.c (default_function_arg): Eliminate check for target macro.
3882 (default_function_incoming_arg): Likewise.
3883 (default_function_arg_advance): Likewise.
3884 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
3885 (function_arg_advance): Likewise.
3886 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
3888 2011-03-24 Richard Guenther <rguenther@suse.de>
3891 * tree-object-size.c (addr_object_size): Do not double-account
3892 for MEM_REF offsets.
3894 2011-03-24 Diego Novillo <dnovillo@google.com>
3896 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
3897 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
3898 (lto_input_data_block): Move from lto-opts.c. Make extern.
3900 (lto_input_string): Rename from input_string. Make extern.
3902 * lto-streamer-out.c (lto_output_string_with_length): Rename from
3903 output_string_with_length.
3904 Output 0 to indicate a non-NULL string. Update all callers to
3906 (lto_output_string): Rename from output_string. Make extern.
3908 (lto_output_decl_state_streams): Make extern.
3909 (lto_output_decl_state_refs): Make extern.
3910 * lto-streamer.h (lto_input_string): Declare.
3911 (lto_input_data_block): Declare.
3912 (lto_output_string): Declare.
3913 (lto_output_string_with_length): Declare.
3914 (lto_output_decl_state_streams): Declare.
3915 (lto_output_decl_state_refs): Declare.
3917 2011-03-24 Richard Guenther <rguenther@suse.de>
3919 PR tree-optimization/46562
3920 * tree.c (build_invariant_address): New function.
3921 * tree.h (build_invariant_address): Declare.
3922 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
3923 a renamed function moved ...
3924 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
3925 Take valueization callback parameter.
3926 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
3927 * gimple-fold.h: New file.
3928 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
3929 (ccp_fold, fold_const_aggregate_ref,
3930 fold_ctor_reference, fold_nonarray_ctor_reference,
3931 fold_array_ctor_reference, fold_string_cst_ctor_reference,
3932 get_base_constructor): Move ...
3933 * gimple-fold.c: ... here.
3934 (gimple_fold_stmt_to_constant_1): New function
3935 split out from ccp_fold. Take a valueization callback parameter.
3936 Valueize all operands.
3937 (gimple_fold_stmt_to_constant): New wrapper function.
3938 (fold_const_aggregate_ref_1): New function split out from
3939 fold_const_aggregate_ref. Take a valueization callback parameter.
3940 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
3941 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
3942 invariant POINTER_PLUS_EXPRs to invariant form.
3943 (vn_valueize): New function.
3944 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
3945 * tree-vrp.c (vrp_valueize): New function.
3946 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
3947 to fold statements to constants.
3948 * tree-ssa-pre.c (eliminate): Properly guard propagation of
3949 function declarations.
3950 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
3951 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
3953 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
3955 * config/h8300/predicates.md (jump_address_operand): Fix register
3958 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
3960 * doc/invoke.texi (max-stores-to-sink): Document.
3961 * params.h (MAX_STORES_TO_SINK): Define.
3962 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
3963 if either vectorization or if-conversion is disabled.
3964 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
3965 tree-vect-data-refs.c vect_equal_offsets.
3966 (dr_equal_offsets_p): New function.
3967 (find_data_references_in_bb): Remove static.
3968 * tree-data-ref.h (find_data_references_in_bb): Declare.
3969 (dr_equal_offsets_p): Likewise.
3970 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
3971 (vect_drs_dependent_in_basic_block): Update calls to
3973 (vect_check_interleaving): Likewise.
3974 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
3975 (cond_if_else_store_replacement): Rename to...
3976 (cond_if_else_store_replacement_1): ... this. Change arguments and
3978 (cond_if_else_store_replacement): New function.
3979 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
3980 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
3982 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
3985 * config/arm/arm.md (casesi): Use the gen_int_mode() function
3986 to subtract lower bound instead of GEN_INT().
3988 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
3993 * doc/extend.texi (Alignment): Move section to match order in TOC.
3994 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
3995 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
3997 2011-03-23 Jeff Law <law@redhat.com>
3999 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
4000 before removing the edge.
4002 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
4003 it may have been freed by redirect_branch_edge or
4004 redirect_edge_succ_nodup.
4006 2011-03-23 Richard Guenther <rguenther@suse.de>
4008 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
4009 (check_va_list_escapes): Likewise.
4010 (check_all_va_list_escapes): Likewise.
4012 2011-03-23 Richard Guenther <rguenther@suse.de>
4014 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
4015 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
4016 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
4017 (alias.o): Likewise.
4018 (ipa-type-escape.o): Remove.
4019 (ipa-struct-reorg.o): Likewise.
4020 (GTFILES): Remove ipa-struct-reorg.c.
4021 * alias.c: Do not include ipa-type-escape.h.
4022 * tree-ssa-alias.c: Likewise.
4023 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
4024 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
4025 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
4026 and ipa-type-escape passes.
4027 * tree-pass.h (pass_ipa_type_escape): Remove.
4028 (pass_ipa_struct_reorg): Likewise.
4029 * ipa-struct-reorg.h: Remove.
4030 * ipa-struct-reorg.c: Likewise.
4031 * ipa-type-escape.h: Likewise.
4032 * ipa-type-escape.c: Likewise.
4033 * doc/invoke.texi (-fipa-struct-reorg): Remove.
4034 (--param struct-reorg-cold-struct-ratio): Likewise.
4035 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
4036 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
4037 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
4039 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4041 * config/s390/2084.md: Enable all insn reservations also for z9_ec
4042 cpu attribute value.
4043 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
4044 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
4045 * config/s390/s390.c (processor_flags_table): New constant array.
4046 (s390_handle_arch_option): Remove.
4047 (s390_handle_option): Remove s390_handle_arch_option invocations
4048 and OPT_mwarn_framesize_ handling.
4049 (s390_option_override): Remove s390_handle_arch_option invocation.
4050 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
4052 * config/s390/s390.md (cpu attribute): Add z9_ec value.
4053 * config/s390/s390.opt (s390_tune, s390_arch)
4054 (march=): Replace s390_arch_option enum and values with
4055 processor_type. Set variable name to s390_arch. Set
4056 initialization value.
4057 (mtune=): Replace s390_arch_option with processor_type. Set
4058 variable name to s390_tune. Set initialization value.
4060 2011-03-23 Julian Brown <julian@codesourcery.com>
4062 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
4063 accesses which are not naturally aligned.
4065 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
4068 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
4070 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
4072 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
4073 parameter from "int" to "enum insn_code".
4074 (expand_operand_type): New enum.
4075 (expand_operand): New structure.
4076 (create_expand_operand): New function.
4077 (create_fixed_operand, create_output_operand): Likewise
4078 (create_input_operand, create_convert_operand_to): Likewise.
4079 (create_convert_operand_from, create_address_operand): Likewise.
4080 (create_integer_operand): Likewise.
4081 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
4082 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
4083 (expand_insn, expand_jump_insn): Likewise.
4084 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
4085 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
4086 (expand_movstr, expand_builtin___clear_cache): Likewise.
4087 (expand_builtin_lock_release): Likewise.
4088 * explow.c (allocate_dynamic_stack_space): Likewise.
4089 (probe_stack_range): Likewise. Allow check_stack to FAIL,
4090 and use the default handling in that case.
4091 * expmed.c (check_predicate_volatile_ok): Delete.
4092 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
4093 (emit_cstore): Likewise.
4094 * expr.c (emit_block_move_via_movmem): Likewise.
4095 (set_storage_via_setmem, expand_assignment): Likewise.
4096 (emit_storent_insn, try_casesi): Likewise.
4097 (emit_single_push_insn): Likewise. Allow the expansion to fail.
4098 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
4099 (expand_vec_shift_expr, expand_binop_directly): Likewise.
4100 (expand_twoval_unop, expand_twoval_binop): Likewise.
4101 (expand_unop_direct, emit_indirect_jump): Likewise.
4102 (emit_conditional_move, vector_compare_rtx): Likewise.
4103 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
4104 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
4105 (expand_sync_lock_test_and_set): Likewise.
4106 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
4107 (emit_unop_insn): Likewise.
4108 (expand_copysign_absneg): Change icode to an insn_code.
4109 (create_convert_operand_from_type): New function.
4110 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
4111 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
4112 (expand_insn, expand_jump_insn): Likewise.
4113 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
4114 than const_int_operand for operand 2.
4116 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4118 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
4121 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
4123 * emit-rtl.c (emit_pattern_before_noloc): New function.
4124 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
4125 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
4126 (emit_pattern_after_noloc): New function.
4127 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
4128 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
4130 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
4132 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
4133 (__ffsDI2): Likewise.
4135 2011-03-22 Richard Henderson <rth@redhat.com>
4137 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
4138 of !TARGET_ABI_OPEN_VMS.
4139 (alpha_trampoline_init, alpha_start_function): Likewise.
4140 (alpha_expand_epilogue, alpha_file_start): Likewise.
4141 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
4142 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
4143 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
4144 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
4145 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
4147 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4149 * config/s390/s390-opts.h: New.
4150 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
4151 s390_arch_flags, s390_warn_framesize, s390_stack_size,
4152 s390_stack_guard): Remove.
4153 (s390_handle_arch_option): Return void. Take enum
4154 s390_arch_option value instead of string and searching array.
4155 (s390_handle_option): Don't assert that global structures are in
4156 use. Access variables via opts pointer. Use error_at. Don't use
4157 sscanf for -mstack-guard= or -mstack-size=. Update call to
4158 s390_handle_arch_option.
4159 (s390_option_override): Update call to s390_handle_arch_option.
4160 (s390_emit_prologue): Use %d format for s390_stack_size in
4161 diagnostic. Use %wd for HOST_WIDE_INT.
4162 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
4163 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
4164 * config/s390/s390.opt (config/s390/s390-opts.h): New
4165 HeaderInclude entry.
4166 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
4167 s390_arch_flags, s390_warn_framesize): New Variable entries.
4168 (s390_arch_option): New Enum and EnumValue entries.
4169 (march=): Use Enum instead of Var.
4170 (mstack-guard=, mstack-size=): Use UInteger and Var.
4173 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4175 * config/score/score.c (score_handle_option): Don't assert that
4176 global structures are in use. Access target_flags via opts
4177 pointer. Use value of -march= option to determine target_flags
4179 * config/score/score.opt (march=): Use Enum.
4180 (score_arch): New Enum and EnumValue entries.
4182 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4184 * config/mep/mep.c (option_mtiny_specified): Remove.
4185 (mep_option_override): Move register handling for -mivc2 from
4186 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
4187 instead of option_mtiny_specified.
4188 (mep_handle_option): Access target_flags via opts pointer. Don't
4189 assert that global structures are in use. Defer part of -mivc2
4190 handling and move it to mep_option_override.
4191 * config/mep/mep.opt (IVC2): New Mask entry.
4192 (mivc2): Use Var and Defer instead of Mask.
4194 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4196 * config/v850/v850-opts.h: New.
4197 * config/v850/v850.c (small_memory): Replace with
4198 small_memory_physical_max array. Make that array static const.
4199 (v850_handle_memory_option): Take integer value of argument. Take
4200 gcc_options pointer, option text and location. Return void.
4201 Update for changes to small memory structures.
4202 (v850_handle_option): Access target_flags via opts pointer. Don't
4203 assert that global structures are in use. Update calls to
4204 v850_handle_memory_option.
4205 (v850_encode_data_area): Update references to small memory settings.
4206 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4207 (enum small_memory_type): Move to v850-opts.h.
4208 * config/v850/v850.opt (config/v850/v850-opts.h): New
4209 HeaderInclude entry.
4210 (small_memory_max): New Variable entry.
4211 (msda): Replace by pair of options msda= and msda-. Use UInteger.
4212 (mtda, mzda): Likewise.
4214 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4216 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
4217 pointer. Don't assert that global structures are in use.
4219 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4221 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
4222 via opts pointer. Don't assert that global structures are in use.
4224 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4226 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
4227 (munix=93): Use Var.
4228 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
4229 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
4230 * config/pa/pa-opts.h: New.
4231 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
4232 (pa_handle_option): Don't assert that global structures are in
4233 use. Access target_flags via opts pointer. Don't handle
4234 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
4236 (pa_option_override): Handle deferred OPT_mfixed_range_.
4238 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4240 * config/mn10300/mn10300-opts.h: New.
4241 * config/mn10300/mn10300.c (mn10300_processor,
4242 mn10300_tune_string): Remove.
4243 (mn10300_handle_option): Don't assert that global structures are
4244 in use. Access mn10300_processor via opts pointer. Don't handle
4246 * config/mn10300/mn10300.h (enum processor_type): Move to
4248 (mn10300_processor): Remove.
4249 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
4250 HeaderInclude entry.
4251 (mn10300_processor): New Variable entry.
4254 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4256 * config/microblaze/microblaze.c: Don't include opts.h.
4257 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
4258 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
4259 (mno-clearbss): Use Var and Warn.
4261 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4263 * config/m32r/m32r-opts.h: New.
4264 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
4265 (m32r_handle_option): Don't assert that global structures are in
4266 use. Access target_flags and m32r_cache_flush_func via opts
4267 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
4268 OPT_mno_flush_trap here.
4269 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
4270 include of m32r-opts.h.
4271 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
4272 HeaderInclude entry.
4273 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
4274 (mmodel=): Use Enum and Var.
4275 (m32r_model): New Enum and EnumValue entries.
4276 (mno-flush-trap): Use Var.
4277 (msdata=): Use Enum and Var.
4278 (m32r_sdata): New Enum and EnumValue entries.
4280 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4282 * config/m32c/m32c.c: Don't include opts.h.
4283 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
4284 m32c_handle_option): Remove.
4285 (m32c_option_override): Check global_options_set.x_target_memregs
4286 instead of target_memregs_set.
4287 * config/m32c/m32c.h (target_memregs): Remove.
4288 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
4291 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4293 * config/iq2000/iq2000-opts.h: New.
4294 * config/iq2000/iq2000.c: Don't include opts.h.
4295 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
4296 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
4297 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
4298 HeaderInclude entry.
4299 (iq2000_tune): New Variable entry.
4300 (march=): Add comment. Use Enum.
4301 (iq2000_arch): New Enum and EnumValue entries.
4302 (mcpu=): Use Enum and Var.
4303 (iq2000_tune): New Enum and EnumValue entries.
4305 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4307 * config/ia64/ia64-opts.h: New.
4308 * config/ia64/ia64.c (ia64_tune): Remove.
4309 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
4311 (ia64_option_override): Handle deferred OPT_mfixed_range_.
4312 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
4313 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
4314 HeaderInclude entry.
4315 (ia64_tune): New Variable entry.
4316 (mfixed-range=): Use Defer and Var.
4317 (mtune=): Use Enum and Var.
4318 (ia64_tune): New Enum and EnumValue entries.
4320 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4322 * config/frv/frv-opts.h: New.
4323 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
4325 (frv_cpu_type): Remove.
4326 * config/frv/frv.c: Don't include opts.h.
4327 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
4328 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
4329 (frv_cpu_type): New Variable entry.
4330 (frv_cpu): New Enum and EnumValue entries.
4332 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4334 * config/cris/cris.c (cris_handle_option): Access target_flags via
4335 opts pointer. Don't assert that global structures are in use.
4336 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
4337 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
4339 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4341 * config/bfin/bfin-opts.h: New.
4342 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
4343 bfin_si_revision, bfin_workarounds): Remove.
4344 (bfin_cpus): Make static const.
4345 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
4346 not bfin_lib_id_given.
4347 (bfin_handle_option): Don't set bfin_lib_id_given. Access
4348 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
4349 pointer. Use error_at. Don't assert that global structures are in use.
4350 * config/bfin/bfin.h: Include bfin-opts.h.
4351 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
4352 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
4353 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
4354 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
4357 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4359 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
4360 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
4361 or -msoft-float here.
4362 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
4363 -msoft-float and -mhard-float.
4364 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
4365 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
4367 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
4369 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
4370 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
4372 (LIBGCC_SPEC): Don't handle -msoft-float.
4373 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
4375 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
4377 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
4378 -mfloat-abi=*, not -msoft-float and -mhard-float.
4379 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
4381 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
4382 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
4383 mhard-float and msoft-float.
4384 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
4385 mfloat-abi=soft in comments, not mhard-float and msoft-float.
4386 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
4387 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
4389 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
4390 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
4392 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
4394 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
4397 2011-03-22 Richard Henderson <rth@redhat.com>
4399 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
4400 TARGET_ABI_WINDOWS_NT.
4401 (alpha_output_function_end_prologue): Likewise.
4402 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
4403 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4404 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
4405 (trap, *movsi_nt_vms): Likewise.
4406 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
4407 (*tablejump_osf_nt_internal): Remove.
4408 * config/alpha/predicates.md (input_operand): Only test Pmode.
4410 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4412 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
4413 via opts pointer. Use error_at. Don't assert that global
4414 structures are in use.
4416 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4418 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
4419 (ix86_handle_option): Access ix86_isa_flags and
4420 ix86_isa_flags_explicit via opts pointer. Don't assert that
4421 global structures are in use.
4422 (ix86_function_specific_save, ix86_function_specific_restore):
4423 Update ix86_isa_flags_explicit field name.
4424 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
4425 (ix86_isa_flags_explicit): Rename TargetSave entry to
4426 x_ix86_isa_flags_explicit.
4428 2011-03-22 Richard Henderson <rth@redhat.com>
4430 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
4431 (alpha_option_override, direct_return): Likewise.
4432 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
4433 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
4434 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
4435 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
4436 (alpha_expand_epilogue, alpha_end_function): Likewise.
4437 (alpha_init_libfuncs): Likewise.
4438 (struct machine_function): Remove unicosmk members.
4439 (print_operand) ['t']: Remove.
4440 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
4441 unicosmk_output_module_name, unicosmk_output_common,
4442 current_section_align, unicosmk_output_text_section_asm_op,
4443 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
4444 unicosmk_section_type_flags, unicosmk_unique_section,
4445 unicosmk_asm_named_section, unicosmk_insert_attributes,
4446 unicosmk_output_align, unicosmk_defer_case_vector,
4447 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
4448 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
4449 unicosmk_output_ssib, unicosmk_add_call_info_word,
4450 unicosmk_extern_head, unicosmk_output_default_externs,
4451 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
4452 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
4453 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
4454 * config/alpha/alpha-protos.h: Update.
4455 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
4456 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
4457 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
4458 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
4459 (*mulsi_se, mulvsi3): Likewise.
4460 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
4461 (*divmodsi_internal, call, call_value, realign): Likewise.
4462 (moddi3, umoddi3): Likewise; remove duplicate expander.
4463 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
4464 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
4465 (*movdi_nofix): Remove r/U alternative.
4466 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
4467 * config/alpha/constraints.md ("U"): Remove.
4468 * config/alpha/predicates.md (call_operand"): Don't test
4469 TARGET_ABI_UNICOSMK.
4471 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4473 * target.def (handle_option): Take gcc_options and
4474 cl_decoded_option pointers and location_t.
4475 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
4476 * doc/tm.texi: Regenerate.
4477 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
4478 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
4479 * lto-opts.c (lto_reissue_options): Generate option structure for
4480 targetm.handle_option call.
4481 * opts.c (target_handle_option): Update call to
4482 targetm.handle_option. Remove assertions about values now passed
4484 * targhooks.c (default_target_handle_option): New.
4485 * targhooks.h (default_target_handle_option): Declare.
4486 * config/alpha/alpha.c: Include opts.h.
4487 (alpha_handle_option): Update to new hook interface.
4488 * config/arm/arm.c: Include opts.h.
4489 (arm_handle_option): Update to new hook interface.
4490 * config/arm/t-arm (arm.o): Update dependencies.
4491 * config/bfin/bfin.c: Include opts.h.
4492 (bfin_handle_option): Update to new hook interface.
4493 * config/cris/cris.c: Include opts.h.
4494 (cris_handle_option): Update to new hook interface.
4495 * config/frv/frv.c: Include opts.h.
4496 (frv_handle_option): Update to new hook interface.
4497 * config/i386/i386.c: Include opts.h.
4498 (ix86_handle_option): Update to new hook interface.
4499 (ix86_valid_target_attribute_inner_p): Generate option structure
4500 for call to ix86_handle_option.
4501 * config/i386/t-i386 (i386.o): Update dependencies.
4502 * config/ia64/ia64.c: Include opts.h.
4503 (ia64_handle_option): Update to new hook interface.
4504 * config/ia64/t-ia64 (ia64.o): Update dependencies.
4505 * config/iq2000/iq2000.c: Include opts.h.
4506 (iq2000_handle_option): Update to new hook interface.
4507 * config/m32c/m32c.c: Include opts.h.
4508 (m32c_handle_option): Update to new hook interface.
4509 * config/m32r/m32r.c: Include opts.h.
4510 (m32r_handle_option): Update to new hook interface.
4511 * config/m68k/m68k.c: Include opts.h.
4512 (m68k_handle_option): Update to new hook interface.
4513 * config/mep/mep.c: Include opts.h.
4514 (mep_handle_option): Update to new hook interface.
4515 * config/microblaze/microblaze.c: Include opts.h.
4516 (microblaze_handle_option): Update to new hook interface.
4517 * config/mips/mips.c: Include opts.h.
4518 (mips_handle_option): Update to new hook interface.
4519 * config/mn10300/mn10300.c: Include opts.h.
4520 (mn10300_handle_option): Update to new hook interface.
4521 * config/pa/pa.c: Include opts.h.
4522 (pa_handle_option): Update to new hook interface.
4523 * config/pdp11/pdp11.c: Include opts.h.
4524 (pdp11_handle_option): Update to new hook interface.
4525 * config/rs6000/rs6000.c: Include opts.h.
4526 (rs6000_handle_option): Update to new hook interface.
4527 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
4528 * config/rx/rx.c: Include opts.h.
4529 (rx_handle_option): Update to new hook interface.
4530 * config/s390/s390.c: Include opts.h.
4531 (s390_handle_option): Update to new hook interface.
4532 * config/score/score.c: Include opts.h.
4533 (score_handle_option): Update to new hook interface.
4534 * config/sh/sh.c: Include opts.h.
4535 (sh_handle_option): Update to new hook interface.
4536 * config/sparc/sparc.c: Include opts.h.
4537 (sparc_handle_option): Update to new hook interface.
4538 * config/v850/v850.c: Include opts.h.
4539 (v850_handle_option): Update to new hook interface.
4541 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4543 * gcc.c (driver_unknown_option_callback): Only permit and save
4544 unknown -Wno- options.
4545 (driver_wrong_lang_callback): Save options directly instead of via
4546 driver_unknown_option_callback.
4548 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
4550 * combine.c (simplify_set): Try harder to find the best CC mode when
4551 simplifying a nested COMPARE on the RHS.
4553 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4555 * config/alpha/gnu.h: Remove.
4556 * config/arc: Remove directory.
4557 * config/arm/netbsd.h: Remove.
4558 * config/arm/t-pe: Remove.
4559 * config/crx: Remove directory.
4560 * config/i386/netbsd.h: Remove.
4561 * config/m68hc11: Remove directory.
4562 * config/m68k/uclinux-oldabi.h: Remove.
4563 * config/mcore/mcore-pe.h: Remove.
4564 * config/mcore/t-mcore-pe: Remove.
4565 * config/netbsd-aout.h: Remove.
4566 * config/rs6000/gnu.h: Remove.
4567 * config/sh/sh-symbian.h: Remove.
4568 * config/sh/symbian-base.c: Remove.
4569 * config/sh/symbian-c.c: Remove.
4570 * config/sh/symbian-cxx.c: Remove.
4571 * config/sh/symbian-post.h: Remove.
4572 * config/sh/symbian-pre.h: Remove.
4573 * config/sh/t-symbian: Remove.
4574 * config/svr3.h: Remove.
4575 * config/vax/netbsd.h: Remove.
4576 * config.build: Don't handle i[34567]86-*-pe.
4577 * config.gcc: Remove handling of deprecations for most deprecated
4579 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
4580 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
4581 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
4582 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
4583 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
4584 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
4586 * config.host: Don't handle i[34567]86-*-pe.
4587 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
4588 (ASM_SPEC32): Don't handle -mcall-gnu.
4589 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
4591 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
4592 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
4593 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
4594 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
4595 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
4596 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
4597 conditional on SYMBIAN.
4598 * configure.ac: Don't handle powerpc*-*-gnu*.
4599 * configure: Regenerate.
4600 * doc/extend.texi (interrupt attribute): Don't mention CRX.
4601 * doc/install-old.texi (m6811, m6812): Don't mention.
4602 * doc/install.texi (arc-*-elf*): Don't document multilib option.
4603 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
4604 (m68k-uclinuxoldabi): Don't mention.
4605 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
4607 (-mcall-gnu): Remove.
4608 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
4609 families): Remove constraint documentation.
4611 2011-03-22 Marius Strobl <marius@FreeBSD.org>
4613 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
4614 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
4615 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
4617 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
4619 * config/avr/avr-protos.h (expand_epilogue): Change prototype
4620 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
4621 * config/avr/avr.c (init_cumulative_args)
4622 (avr_function_arg_advance): Use it.
4623 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
4625 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
4626 (avr_function_ok_for_sibcall): ...this new function.
4627 (avr_lookup_function_attribute1): New static Function.
4628 (avr_naked_function_p, interrupt_function_p)
4629 (signal_function_p, avr_OS_task_function_p)
4630 (avr_OS_main_function_p): Use it.
4631 * config/avr/avr.md ("sibcall", "sibcall_value")
4632 ("sibcall_epilogue"): New expander.
4633 ("*call_insn", "*call_value_insn"): New insn.
4634 ("call_insn", "call_value_insn"): Remove
4635 ("call", "call_value", "epilogue"): Change expander to handle
4638 2011-03-21 Nick Clifton <nickc@redhat.com>
4640 * doc/invoke.texi (Overall Options): Move closing brace to end of
4642 (Optimization Options): Add missing @gol.
4643 (Directory Options): Likewise.
4644 (i386 and x86-64 Options): Likewise.
4645 (RS6000 and PowerPC Options): Likewise.
4646 (i386 and x86-64 Windows Options): Likewise.
4647 (V850 Options): Add text missing from descriptions.
4649 2011-03-22 Richard Henderson <rth@redhat.com>
4651 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
4652 (avr_incoming_return_addr_rtx): New.
4653 (emit_push_byte): New.
4654 (expand_prologue): Use it. Remove incorrect dwarf annotation for
4655 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
4656 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
4657 (emit_pop_byte): New.
4658 (expand_epilogue): Use it. Pop frame pointer by bytes.
4659 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
4660 (INCOMING_RETURN_ADDR_RTX): New.
4661 (INCOMING_FRAME_SP_OFFSET): New.
4662 (ARG_POINTER_CFA_OFFSET): New.
4663 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
4664 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
4667 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
4669 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
4671 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
4672 (FUNCTION_ARG_ADVANCE): Likewise.
4673 * tm.texi.in: Change references to them to hook references.
4674 * tm.texi: Regenerate.
4675 * targhooks.c (default_function_arg): Eliminate check for target
4677 (default_function_incoming_arg): Likewise.
4678 (default_function_arg_advance): Likewise.
4679 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
4680 (function_arg_advance): Likewise.
4681 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
4683 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
4685 * tree.c (build_call_1): New function.
4686 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
4688 2011-03-22 Richard Guenther <rguenther@suse.de>
4690 PR tree-optimization/48228
4691 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
4692 for single-arg PHIs.
4694 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
4696 PR rtl-optimization/48143
4697 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
4698 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
4699 sse2_cvtps2pd): Likewise.
4701 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4703 * recog.c (canonicalize_change_group): Use validate_unshare_change.
4705 2011-03-22 Richard Guenther <rguenther@suse.de>
4707 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
4708 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
4709 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
4710 and REALIGN_LOAD_EXPR.
4711 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
4712 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
4713 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
4714 DOT_PROD_EXPR case ...
4715 (expand_expr_real_2): ... here.
4716 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
4717 and REALIGN_LOAD_EXPR.
4718 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
4719 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
4720 (vect_create_epilog_for_reduction): Likewise.
4721 (vectorizable_reduction): Likewise.
4722 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
4723 * tree-vect-stmts.c (vectorizable_load): Likewise.
4725 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
4727 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
4729 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4731 * config/s390/s390.c (s390_delegitimize_address): Fix offset
4732 handling for PLTOFF/GOTOFF.
4734 2011-03-22 Nick Clifton <nickc@redhat.com>
4736 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
4737 trailing backslash from the end of the macro definition.
4739 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4741 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
4744 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
4746 * expr.h (prepare_operand): Move to...
4747 * optabs.h (prepare_operand): ...here and change the insn code
4748 parameter from "int" to "enum insn_code".
4749 (insn_operand_matches): Declare.
4750 * expr.c (init_expr_target): Use insn_operand_matches.
4751 (compress_float_constant): Likewise.
4752 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
4753 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
4754 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
4755 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
4757 (gen_cond_trap): Likewise.
4758 (prepare_operand): Likewise. Change icode to an insn_code.
4759 (insn_operand_matches): New function.
4760 * reload.c (find_reloads_address_1): Use insn_operand_matches.
4761 * reload1.c (gen_reload): Likewise.
4762 * targhooks.c (default_secondary_reload): Likewise.
4764 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
4766 * config/alpha/alpha.md (unspec): New define_c_enum.
4769 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
4772 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
4773 between a call and its CALL_ARG_LOCATION note.
4775 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
4777 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
4779 2011-03-21 Jakub Jelinek <jakub@redhat.com>
4783 * c-common.c (shorten_compare): If primopN is first sign-extended
4784 to opN and then zero-extended to result type, set primopN to opN.
4786 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
4788 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
4789 for barrier handlers.
4791 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4793 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
4794 UNSPEC constants to be in the unspec enumeration, and redefine
4795 all UNSPECV constants to be in the unspecv enumeration, so that
4796 dumps print which unspec/unspec_volatile this is.
4797 * config/rs6000/vector.md (UNSPEC_*): Ditto.
4798 * config/rs6000/paired.md (UNSPEC_*): Ditto.
4799 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
4800 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
4801 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
4803 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
4804 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
4805 UNSPECV_LWSYNC, since these are used as unspec_volatile.
4806 * config/rs6000/sync.md (isync, lwsync): Ditto.
4808 2011-03-21 Richard Guenther <rguenther@suse.de>
4810 * params.def (lto-min-partition): Fix typo.
4812 2011-03-21 Richard Guenther <rguenther@suse.de>
4815 * c-decl.c (grokdeclarator): Drop to the main variant only
4816 for array types. Drop flag_gen_aux_info check.
4818 2011-03-21 Richard Guenther <rguenther@suse.de>
4820 PR translation/47911
4821 * params.def (lto-partitions): Fix typo.
4822 (lto-min-partition): Fix wording.
4824 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
4826 * config/rs6000/t-freebsd: Remove duplication from file.
4828 2011-03-21 Richard Guenther <rguenther@suse.de>
4831 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
4833 2011-03-21 Richard Guenther <rguenther@suse.de>
4836 * params.def (lto-partitions): Require at least 1 partition.
4838 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4840 * gthr-solaris.h: Remove.
4841 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
4842 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
4843 (LIB_SPEC): Likewise.
4844 * config/sol2.opt (threads): Remove.
4845 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
4846 (sparc*-*-solaris2*): Likewise.
4847 * configure.ac (enable_threads): Enable solaris support.
4848 * configure: Regenerate.
4849 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
4850 * doc/install.texi (Configuration, --enable-threads=lib): Remove
4853 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4855 * config.gcc: Obsolete *-*-solaris2.8*.
4856 * doc/install.texi (Specific, *-*-solaris2*): Document it.
4858 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4861 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
4862 reference. Solaris 8 perl works.
4864 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4867 * doc/install.texi (Prerequisites): Move jar etc. up.
4868 Explain support library version requirements.
4870 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4873 * doc/install.texi (Prerequisites): Move Perl to build
4874 requirements. Always necessary on Solaris 2 with Sun ld.
4876 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4878 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
4880 (Specific, i?86-*-solaris2.[89]): Likewise.
4881 (Specific, i?86-*-solaris2.10): Likewise.
4882 (Specific, mips-sgi-irix6): Likewise.
4883 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
4884 Update for binutils 2.21.
4886 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4888 * configure.ac (gcc_cv_lto_plugin): Fix typo.
4889 Allow -fuse-linker-plugin for non-default plugin linker.
4890 * configure: Regenerate.
4892 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
4895 * gengtype.c (files_rules): Added rule for cp/parser.h.
4897 2011-03-21 Jakub Jelinek <jakub@redhat.com>
4900 * config/s390/s390.c (s390_delegitimize_address): Don't call
4901 lowpart_subreg if orig_x has BLKmode.
4903 2011-03-21 Kai Tietz <ktietz@redhat.com>
4906 * doc/plugins.texi: Adjust documentation for plugin register_callback.
4907 * tree.h (attribute_spec): Add new member affects_type_identity.
4908 * attribs.c (empty_attribute_table): Adjust attribute_spec
4910 * config/alpha/alpha.c: Likewise.
4911 * config/arc/arc.c: Likewise.
4912 * config/arm/arm.c: Likewise.
4913 * config/avr/avr.c: Likewise.
4914 * config/bfin/bfin.c: Likewise.
4915 * config/crx/crx.c: Likewise.
4916 * config/darwin.h: Likewise.
4917 * config/h8300/h8300.c: Likewise.
4918 * config/i386/cygming.h: Likewise.
4919 * config/i386/i386.c: Likewise.
4920 * config/ia64/ia64.c: Likewise.
4921 * config/m32c/m32c.c: Likewise.
4922 * config/m32r/m32r.c: Likewise.
4923 * config/m68hc11/m68hc11.c: Likewise.
4924 * config/m68k/m68k.c: Likewise.
4925 * config/mcore/mcore.c: Likewise.
4926 * config/mep/mep.c: Likewise.
4927 * config/microblaze/microblaze.c: Likewise.
4928 * config/mips/mips.c: Likewise.
4929 * config/rs6000/rs6000.c: Likewise.
4930 * config/rx/rx.c: Likewise.
4931 * config/sh/sh.c: Likewise.
4932 * config/sol2.h: Likewise.
4933 * config/sparc/sparc.c: Likewise.
4934 * config/spu/spu.c: Likewise.
4935 * config/stormy16/stormy16.c: Likewise.
4936 * config/v850/v850.c: Likewise.
4938 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
4940 * simplify-rtx.c (simplify_binary_operation_1): Handle
4941 (xor (and A B) C) case when B and C are both constants.
4943 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
4945 * tree-dfa.c (add_referenced_var): Fix typo in comment.
4947 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
4950 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
4952 2011-03-20 Jakub Jelinek <jakub@redhat.com>
4954 PR rtl-optimization/48156
4955 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
4956 assume df and df_lr are not NULL.
4958 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4961 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
4962 between a call and its CALL_ARG_LOCATION note.
4964 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
4967 * config/sh/sh.c (find_barrier): Don't emit a constant pool
4968 between a call and its corresponding CALL_ARG_LOCATION note.
4970 2011-03-19 Anatoly Sokolov <aesok@post.ru>
4972 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
4973 instead of loop. Use HARD_REGISTER_NUM_P predicate.
4974 * haifa-sched.c (setup_ref_regs): Ditto.
4975 * caller-save.c (add_used_regs_1): Ditto.
4976 * dse.c (look_for_hardregs): Ditto.
4977 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
4978 * sched-rgn.c (check_live_1): Ditto.
4980 2011-03-18 Joseph Myers <joseph@codesourcery.com>
4982 * c-decl.c (diagnose_mismatched_decls): Give an error for
4983 redefining a typedef with variably modified type.
4985 2011-03-18 Joseph Myers <joseph@codesourcery.com>
4987 * c-decl.c (grokfield): Don't allow typedefs for structures or
4988 unions with no tag by default.
4989 * doc/extend.texi (Unnamed Fields): Update.
4991 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
4993 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
4994 Rewrite using indirect functions.
4995 (lwp_slwpcb): Ditto.
4996 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
4997 (avx_vinsertf128<mode>): Ditto.
4999 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5001 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
5004 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5006 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
5007 splitting between a call and its corresponding CALL_ARG_LOCATION note.
5009 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
5011 PR rtl-optimization/48170
5012 * gcse.c (hoist_code): Remove bogus asserts.
5014 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
5016 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
5017 computation for prologue/epilogue.
5019 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5021 * Makefile.in (check-consistency): Remove.
5023 2011-03-18 Jakub Jelinek <jakub@redhat.com>
5026 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
5027 arange_table_in_use is 0, but either text_section_used or
5028 cold_text_section_used is true. Don't call it if
5029 !info_section_emitted.
5031 2011-03-18 Anatoly Sokolov <aesok@post.ru>
5033 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
5034 FUNCTION_VALUE_REGNO_P): Remove.
5035 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
5037 * config/avr/avr.c (avr_ret_register): Make static inline.
5038 (avr_function_value_regno_p): New function.
5039 (avr_libcall_value): Make static. Add 'func' argument.
5040 (avr_function_value): Make static. Rename 'func' argument to
5041 'fn_decl_or_type', forward it to avr_libcall_value. Call
5042 avr_ret_register function instead of RET_REGISTER macro.
5043 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
5045 2011-03-18 Jason Merrill <jason@redhat.com>
5048 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
5050 2011-03-18 Richard Guenther <rguenther@suse.de>
5052 * doc/install.texi (--enable-gold): Remove.
5053 (--with-plugin-ld): Document.
5054 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
5056 2011-03-18 Andrew Pinski <pinskia@gmail.com>
5059 * expr.c (optimize_bitfield_assignment_op): Revamp to work
5060 again after expansion changes.
5062 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
5064 * combine.c (try_combine): Do simplification only call of
5065 subst() on i2 even when i1 is present. Update comments.
5067 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
5069 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
5070 and UNSPEC_PCREL_SYMOFF.
5072 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5074 * config/s390/s390.md: Use define_c_enum for the unspec constant
5077 2011-03-18 Richard Henderson <rth@redhat.com>
5078 Jakub Jelinek <jakub@redhat.com>
5081 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
5082 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
5084 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
5087 * combine.c (cant_combine_insn_p): Don't check zero/sign
5088 extended hard registers.
5090 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
5093 * combine.c (cant_combine_insn_p): Check zero/sign extended
5096 2011-03-17 Anatoly Sokolov <aesok@post.ru>
5098 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
5099 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
5100 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
5101 Change return type to bool.
5102 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5104 2011-03-17 Jakub Jelinek <jakub@redhat.com>
5107 * var-tracking.c (prepare_call_arguments): If CALL target
5108 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
5109 pc instead of looking it up using cselib_lookup and use
5110 Pmode for it if x has VOIDmode.
5111 * dwarf2out.c (gen_subprogram_die): If also both first and
5112 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
5115 * function.c (assign_parms): For data.passed_pointer parms
5116 use MEM of data.entry_parm instead of data.entry_parm itself
5117 as DECL_INCOMING_RTL.
5118 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
5119 also when passed and declared mode is the same, DECL_RTL
5120 is a MEM with pseudo as address and DECL_INCOMING_RTL is
5123 2011-03-16 Jeff Law <law@redhat.com>
5125 PR rtl-optimization/37273
5126 * ira-costs.c (scan_one_insn): Detect constants living in memory and
5127 handle them like argument loads from stack slots. Do not double
5128 count memory for memory constants and argument loads from stack slots.
5130 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
5133 * var-tracking.c (prepare_call_arguments): Check SUBREG.
5135 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
5138 * config/i386/i386.opt: Add Save to -mavx and -mfma.
5140 2011-03-17 Jakub Jelinek <jakub@redhat.com>
5143 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
5145 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
5146 Clear call_arg_locations and call_arg_loc_last always.
5149 * var-tracking.c (prepare_call_arguments): If argument needs to be
5150 passed by reference, adjust argtype and mode.
5152 2011-03-17 Richard Guenther <rguenther@suse.de>
5155 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
5156 a value make sure to fold the statement.
5158 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
5161 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
5162 return condition with !cfun->calls_alloca.
5164 2011-03-17 Richard Guenther <rguenther@suse.de>
5167 * lto-cgraph.c (input_overwrite_node): Clear the abstract
5168 origin for decls in other ltrans units.
5169 (input_varpool_node): Likewise.
5171 2011-03-17 Richard Guenther <rguenther@suse.de>
5174 * tree-object-size.c (compute_object_offset): Properly return
5175 the offset operand of MEM_REFs as sizetype.
5177 2011-03-17 Jakub Jelinek <jakub@redhat.com>
5179 PR rtl-optimization/48141
5180 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
5181 * dse.c: Include params.h.
5182 (active_local_stores_len): New variable.
5183 (add_wild_read, dse_step1): Clear it when setting active_local_stores
5185 (record_store, check_mem_read_rtx): Decrease it when removing
5187 (scan_insn): Likewise. Increase it when adding to chain, if it
5188 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
5189 set active_local_stores to NULL before the addition.
5190 * Makefile.in (dse.o): Depend on $(PARAMS_H).
5192 PR rtl-optimization/48141
5193 * dse.c (record_store): If no positions are needed in an insn
5194 that cannot be deleted, at least unchain it from active_local_stores.
5196 2011-03-16 Dodji Seketeli <dodji@redhat.com>
5199 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
5200 (lookup_type_die_strip_naming_typedef): ... here.
5201 (get_context_die): Use it.
5202 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
5203 the anonymous struct named by the naming typedef.
5205 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
5208 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
5209 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
5211 2011-03-16 Jeff Law <law@redhat.com>
5213 * tree-vrp.c (identify_jump_threads): Slightly simplify type
5214 check for operands of conditional. Allow type to be a pointer.
5216 2011-03-16 Richard Guenther <rguenther@suse.de>
5218 PR tree-optimization/48149
5219 * fold-const.c (fold_binary_loc): Fold
5220 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
5222 2011-03-16 Richard Guenther <rguenther@suse.de>
5224 PR tree-optimization/26134
5225 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
5226 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
5227 (non_rewritable_mem_ref_base): Handle complex type component
5228 accesses, constrain offsets for vector and complex extracts
5231 2011-03-16 Richard Guenther <rguenther@suse.de>
5233 PR tree-optimization/48146
5234 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
5235 operands avoiding the need for renaming.
5237 2011-03-16 Richard Guenther <rguenther@suse.de>
5239 * gimple-fold.c (maybe_fold_reference): Open-code relevant
5240 constant folding. Move MEM_REF canonicalization first.
5241 Rely on fold_const_aggregate_ref for initializer folding.
5242 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
5244 2011-03-16 Jakub Jelinek <jakub@redhat.com>
5247 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
5248 arg0/arg1 or their arguments are always fold converted to matching
5251 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
5254 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5257 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
5258 Handle in-tree gold.
5259 (ld_vers): Extract binutils version for gold.
5260 (gcc_cv_ld_hidden): Handle gold here.
5261 (gcc_cv_lto_plugin): Determine level of linker plugin support.
5262 * configure: Regenerate.
5263 * config.in: Regenerate.
5264 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
5265 -fuse-linker-plugin otherwise.
5266 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
5267 (LINK_COMMAND_SPEC): Use it.
5268 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
5270 2011-03-16 Jakub Jelinek <jakub@redhat.com>
5272 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
5273 * calls.c: Remove debug.h include.
5274 (emit_call_1): Don't call virtual_call_token debug hook.
5275 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
5276 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
5277 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
5278 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
5279 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
5280 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
5281 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
5282 dwarf2out_virtual_call): Remove.
5283 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
5284 copy_call_info and virtual_call hooks.
5285 (dwarf2out_init): Don't initialize vcall_insn_table,
5286 debug_dcall_section and debug_vcall_section.
5287 (prune_unused_types): Don't mark nodes from dcall_table.
5288 (dwarf2out_finish): Don't output dcall or vcall tables.
5289 * final.c (final_scan_insn): Don't call direct_call or
5290 virtual_call debug hooks.
5291 * debug.h (struct gcc_debug_hooks): Remove direct_call,
5292 virtual_call_token, copy_call_info and virtual_call hooks.
5293 (debug_nothing_uid): Remove prototype.
5294 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
5295 copy_call_info and virtual_call hooks.
5296 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5297 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
5298 * debug.c (do_nothing_debug_hooks): Likewise.
5299 (debug_nothing_uid): Remove.
5300 * doc/invoke.texi (-fenable-icf-debug): Remove.
5301 * common.opt (-fenable-icf-debug): Likewise.
5303 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
5304 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
5305 call's MEM. Handle functions returning aggregate through a hidden
5306 first pointer. For virtual calls add clobbered pc to call arguments
5308 * dwarf2out.c (gen_subprogram_die): Emit
5309 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
5313 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
5314 * rtl.h (ENTRY_VALUE_EXP): Define.
5315 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
5316 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
5317 * print-rtl.c (print_rtx): Likewise.
5318 * gengtype.c (adjust_field_rtx_def): Likewise.
5319 * var-tracking.c (vt_add_function_parameter): Adjust
5320 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
5321 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
5322 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
5323 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
5324 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
5326 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
5327 Call var_location debug hook even on CALL_INSNs.
5328 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
5329 * rtl.def (ENTRY_VALUE): New.
5330 * dwarf2out.c: Include cfglayout.h.
5331 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
5332 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
5333 (struct call_arg_loc_node): New type.
5334 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
5335 tail_call_site_count): New variables.
5336 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
5337 DW_TAG_GNU_call_site_parameter.
5338 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
5339 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
5340 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
5341 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
5342 and DW_AT_GNU_all_source_call_sites.
5343 (mem_loc_descriptor): Handle ENTRY_VALUE.
5344 (add_src_coords_attributes): Don't add enything if
5345 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
5346 (dwarf2out_abstract_function): Save and clear call_arg_location,
5347 call_site_count and tail_call_site_count around dwarf2out_decl call.
5348 (gen_call_site_die): New function.
5349 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
5350 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
5351 (dwarf2out_function_decl): Clear call_arg_locations,
5352 call_arg_loc_last, set call_site_count and tail_call_site_count
5353 to -1 and free block_map.
5354 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
5355 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
5356 followed by any real instructions.
5357 (dwarf2out_begin_function): Set call_site_count and
5358 tail_call_site_count to 0.
5359 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
5360 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
5361 attempt to force a DIE for it and worst case remove the attribute.
5362 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
5363 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
5365 * var-tracking.c: Include tm_p.h.
5366 (vt_stack_adjustments): For calls call note_register_arguments.
5367 (argument_reg_set): New variable.
5368 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
5369 ensure the VALUE is resolved.
5370 (call_arguments): New variable.
5371 (prepare_call_arguments): New function.
5372 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
5373 (struct expand_loc_callback_data): Add ignore_cur_loc field.
5374 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
5375 always use the best expression.
5376 (vt_expand_loc): Add ignore_cur_loc argument.
5377 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
5378 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
5379 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
5381 (vt_add_function_parameter): Use cselib_lookup_from_insn.
5382 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
5383 argument. Don't call cselib_preserve_only_values and
5385 (note_register_arguments): New function.
5386 (vt_initialize): Compute argument_reg_set. Call
5387 vt_add_function_parameters before processing basic blocks instead of
5388 afterwards. For calls call prepare_call_arguments before calling
5389 cselib_process_insn.
5390 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
5391 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
5392 (var-tracking.o): Depend on $(TM_P_H).
5393 * cfglayout.h (insn_scope): New prototype.
5394 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
5395 * cfglayout.c (insn_scope): No longer static.
5396 * insn-notes.def (CALL_ARG_LOCATION): New.
5397 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
5398 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
5399 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
5400 nothing for DECL_EXTERNAL BLOCK_VARS.
5402 2011-03-16 Alan Modra <amodra@gmail.com>
5405 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
5406 create invalid offset address for vsx splat insn.
5407 * config/rs6000/predicates.md (splat_input_operand): New.
5408 * config/rs6000/vsx.md (vsx_splat_*): Use it.
5410 2011-03-15 Xinliang David Li <davidxl@google.com>
5413 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
5414 (normalize_preds): New function.
5415 (is_use_properly_guarded): Normalize def predicates.
5417 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5420 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
5421 in the output template.
5423 2011-03-15 Richard Guenther <rguenther@suse.de>
5426 * tree-pretty-print.c (dump_function_declaration): Properly
5427 dump unprototyped and varargs function types.
5429 2011-03-15 Richard Guenther <rguenther@suse.de>
5431 PR tree-optimization/13954
5432 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
5435 2011-03-15 Richard Guenther <rguenther@suse.de>
5437 PR tree-optimization/48037
5438 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
5439 selects into BIT_FIELD_REFs.
5440 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
5443 2011-03-15 Jakub Jelinek <jakub@redhat.com>
5445 PR tree-optimization/48129
5446 * builtins.c (fold_builtin_snprintf): Convert to type of
5447 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
5448 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
5450 2011-03-15 Richard Guenther <rguenther@suse.de>
5452 PR tree-optimization/41490
5453 * tree-ssa-dce.c (propagate_necessity): Handle returns without
5454 value but with VUSE.
5455 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
5457 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
5458 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
5459 * tree-tailcall.c (find_tail_calls): Ignore returns.
5461 2011-03-15 Richard Guenther <rguenther@suse.de>
5464 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
5465 or variable-indexed array accesses when in gimple form.
5467 2011-03-15 Richard Guenther <rguenther@suse.de>
5469 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
5471 2011-03-15 Alan Modra <amodra@gmail.com>
5474 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
5475 presume symbol_refs without a symbol_ref_decl are suitably
5476 aligned, nor other trees we may see here. Handle anchor symbols.
5477 (legitimate_constant_pool_address_p): Comment. Add mode param.
5478 Check cmodel=medium addresses. Adjust all calls.
5479 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
5480 creating cmodel=medium optimized access to locals.
5481 * config/rs6000/constraints.md (R): Pass QImode to
5482 legitimate_constant_pool_address_p.
5483 * config/rs6000/predicates.md (input_operand): Pass mode to
5484 legitimate_constant_pool_address_p.
5485 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
5488 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5491 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
5492 64-bit constants being loaded into registers other than GPRs such
5493 as loading 0 into a VSX register.
5495 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5497 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
5499 2011-03-14 Jakub Jelinek <jakub@redhat.com>
5502 * builtins.c (fold_builtin_snprintf): New function.
5503 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
5504 (fold_builtin_4): Likewise.
5507 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
5508 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
5509 and C - X == X also strip nops from +/-/p+ operand.
5510 When optimizing -X == C, fold C to arg0's type.
5513 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
5514 emit it as add_AT_int instead of add_AT_unsigned.
5516 2011-03-14 Tom Tromey <tromey@redhat.com>
5518 * unwind-dw2.c: Include sys/sdt.h if it exists.
5519 (_Unwind_DebugHook): Use STAP_PROBE2.
5520 * config.in, configure: Rebuild.
5521 * configure.ac: Check for sys/sdt.h.
5523 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
5525 * config/i386/i386.md (ROUND_FLOOR): New constant.
5526 (ROUND_CEIL): Ditto.
5527 (ROUND_TRUNC): Ditto.
5528 (ROUND_MXCSR): Ditto.
5529 (ROUND_NO_EXC): Ditto.
5530 (rint<mode>2): Use new defines instead of numerical constants.
5531 (floor<mode>2): Ditto.
5532 (ceil<mode>2): Ditto.
5533 (btrunc<mode>2): Ditto.
5534 * config/i386/i386-builtin-types.def: Define ROUND function type
5536 * config/i386/i386.c (enum ix86_builtins): Add
5537 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
5538 (struct builtin_description): Add
5539 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
5540 (ix86_expand_sse_round): New static function.
5541 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
5543 (ix86_builtin_vectorized_function): Handle
5544 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
5546 2011-03-14 Tom Tromey <tromey@redhat.com>
5548 * c-parser.c (c_parser_asm_string_literal): Clear
5549 warn_overlength_strings.
5551 2011-03-14 Tom Tromey <tromey@redhat.com>
5553 * c-parser.c (disable_extension_diagnostics): Save
5554 warn_overlength_strings.
5555 (restore_extension_diagnostics): Restore warn_overlength_strings.
5557 2011-03-14 Jakub Jelinek <jakub@redhat.com>
5559 * BASE-VER: Change to 4.7.0.
5561 2011-03-14 Richard Guenther <rguenther@suse.de>
5564 * tree.c (build_vector_from_val): Adjust assert to requirements
5567 2011-03-14 Jakub Jelinek <jakub@redhat.com>
5570 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
5572 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
5574 * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
5575 terms of target_flags_explicit. Adjust copyright year.
5577 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
5578 * config/rs6000/t-freebsd: New file. Add override for
5581 2011-03-13 Chris Demetriou <cgd@google.com>
5583 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
5584 (-fno-diagnostics-show-option): this, to reflect current default.
5585 (-Werror=): Update text about -fno-diagnostics-show-option.
5587 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
5590 * config/rs6000/predicates.md (easy_vector_constant_add_self,
5591 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
5592 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
5593 mode is not V2DImode or V2DFmode.
5594 (vspltis_constant): Do not handle V2DImode and V2DFmode.
5595 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
5596 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
5598 (movdi_internal64): Likewise.
5600 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
5602 PR tree-optimization/47127
5603 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
5605 (set_cloog_options): Same.
5606 (scop_to_clast): Same.
5607 (print_clast_stmt): Do not call cloog_state_malloc and
5609 (print_generated_program): Same.
5611 * graphite-clast-to-gimple.h (cloog_state): Declared.
5612 (scop_to_clast): Adjust declaration.
5613 * graphite.c (cloog_state): Defined here.
5614 (graphite_initialize): Call cloog_state_malloc.
5615 (graphite_finalize): Call cloog_state_free.
5617 2011-03-11 Jason Merrill <jason@redhat.com>
5619 * attribs.c (lookup_attribute_spec): Take const_tree.
5622 2011-03-11 Joseph Myers <joseph@codesourcery.com>
5624 * config/sparc/sparc.c (sparc_option_override): Use
5625 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
5627 2011-03-11 Richard Guenther <rguenther@suse.de>
5629 PR tree-optimization/48067
5630 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
5631 multiplication result will be only used once on the target
5634 2011-03-11 Richard Guenther <rguenther@suse.de>
5636 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
5638 2011-03-11 Richard Guenther <rguenther@suse.de>
5641 * tree.c (find_decls_types_r): Do not walk types only reachable
5642 from IDENTIFIER_NODEs.
5644 2011-03-11 Jakub Jelinek <jakub@redhat.com>
5647 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
5648 all vnode->force_output nodes as needed.
5650 2011-03-11 Jason Merrill <jason@redhat.com>
5653 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
5654 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
5656 2011-03-11 Martin Jambor <mjambor@suse.cz>
5658 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
5661 2011-03-11 Jakub Jelinek <jakub@redhat.com>
5663 PR tree-optimization/48063
5664 * ipa-inline.c (cgraph_decide_inlining): Don't try to
5665 inline functions called once if !tree_can_inline_p (node->callers).
5667 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
5669 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
5671 * config/score/score3.c: Delete.
5672 * config/score/score3.h: Delete.
5673 * config/score/mul-div.S: Delete.
5674 * config/score/sfp-machine.h: Add new file.
5675 * config/score/constraints.md: Add new file.
5676 * config/score/t-score-softfp: Add new file.
5677 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
5678 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
5679 (score7_extra_constraint): Delete.
5680 (score7_option_override): Remove unused code.
5681 * config/score/score.c: Remove score3 and score5 define and code.
5682 * config/score/score.h: Remove score3 and score5 define and code.
5683 * config/score/score.md: Remove score3 template and unusual insn.
5684 * config/score/score.opt: Remove score3 and score5 options.
5686 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5688 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
5689 when _HPUX_SOURCE is defined.
5690 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
5692 2011-03-10 Jason Merrill <jason@redhat.com>
5695 * stor-layout.c (layout_type): Don't set structural equality
5696 on arrays of incomplete type.
5697 * tree.c (type_hash_eq): Handle comparing them properly.
5699 2011-03-10 Jakub Jelinek <jakub@redhat.com>
5702 * config/s390/s390.c (s390_delegitimize_address): Make sure the
5703 result mode matches original rtl mode.
5705 2011-03-10 Nick Clifton <nickc@redhat.com>
5707 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
5708 (andsi3, andsi3_flags): Fix timings for three operand alternative.
5710 2011-03-09 Jakub Jelinek <jakub@redhat.com>
5712 PR rtl-optimization/47866
5713 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
5714 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
5715 if target wasn't scalar.
5716 * function.c (assign_stack_temp_for_type): Assert that neither
5717 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
5718 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
5720 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
5722 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5724 * config/s390/s390-protos.h (s390_label_align): New prototype.
5725 * config/s390/s390.c (s390_label_align): New function.
5726 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
5728 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
5731 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
5732 V2DI/V2DF constants. Only all 0's or all 1's are easy.
5733 (output_vec_const_move): Ditto.
5735 2011-03-08 Anatoly Sokolov <aesok@post.ru>
5737 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
5738 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
5739 * config/mips/mips.c (mips_preferred_reload_class): Make static.
5740 Change 'rclass' argument and result type to reg_class_t.
5741 (TARGET_PREFERRED_RELOAD_CLASS): Define.
5743 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
5745 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5746 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
5747 (TARGET_MEMORY_MOVE_COST): Define.
5748 (avr_register_move_cost, avr_memory_move_cost): New Functions.
5750 2011-03-08 Jakub Jelinek <jakub@redhat.com>
5753 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
5756 PR tree-optimization/48022
5757 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
5760 2011-03-07 Jakub Jelinek <jakub@redhat.com>
5763 * var-tracking.c (find_use_val): Return NULL for
5764 cui->sets && cui->store_p BLKmode MEMs.
5766 2011-03-07 Anatoly Sokolov <aesok@post.ru>
5768 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
5770 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
5771 xstormy16_print_operand_address): Remove.
5772 * config/stormy16/stormy16.c (xstormy16_print_operand,
5773 xstormy16_print_operand_address): Make static.
5774 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5776 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
5779 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
5780 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
5783 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
5786 * cfgloopmanip.c (fix_bb_placements): Return immediately
5787 if FROM is BASE_LOOP's header.
5789 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
5791 * gimplify.c (gimplify_function_tree): Fix building calls
5792 to __builtin_return_address.
5794 2011-03-07 Alan Modra <amodra@gmail.com>
5796 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
5797 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
5798 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
5799 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
5801 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
5802 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
5803 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
5804 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
5805 * config/rs6000/rs6000.c
5806 (rs6000_elf_end_indicate_exec_stack): Rename to..
5807 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
5808 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
5809 (rs6000_file_start): ..here.
5810 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
5811 file scope variables.
5812 (call_ABI_of_interest): New function.
5813 (init_cumulative_args): Set above vars when function return value
5814 is a float, vector, or small struct.
5815 (rs6000_function_arg_advance_1): Likewise for function args.
5816 (rs6000_va_start): Set rs6000_passes_float if variable arg function
5817 references float args.
5819 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
5821 * doc/cfg.texi: Remove "See" before @ref.
5822 * doc/invoke.texi: Likewise.
5824 2011-03-05 Jason Merrill <jason@redhat.com>
5826 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
5828 2011-03-05 Anthony Green <green@moxielogic.com>
5830 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
5832 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
5834 PR rtl-optimization/47899
5835 * cfgloopmanip.c (fix_bb_placements): Fix first argument
5836 to flow_loop_nested_p when moving the loop upward.
5838 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
5841 * arm.md (movhi_insn_arch4): Accept any immediate constant.
5843 2011-03-05 Jakub Jelinek <jakub@redhat.com>
5845 PR tree-optimization/47967
5846 * ipa-cp.c (build_const_val): Return NULL instead of creating
5847 VIEW_CONVERT_EXPR for mismatching sizes.
5848 (ipcp_create_replace_map): Return NULL if build_const_val failed.
5849 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
5850 give up on versioning.
5852 2011-03-05 Alan Modra <amodra@gmail.com>
5855 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
5856 full cmodel medium/large lo_sum + high addresses.
5858 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5860 * config/s390/s390.c (s390_decompose_address): Reject non-literal
5861 pool references in UNSPEC_LTREL_OFFSET.
5863 2011-03-04 Jan Hubicka <jh@suse.cz>
5866 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
5867 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
5868 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
5870 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
5871 cgraph_add_thunk): Add node pointers.
5872 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
5873 associated to right node.
5874 (input_node): Update use of cgraph_same_body_alias
5875 and cgraph_add_thunk.
5877 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
5879 * config/i386/i386.opt (mprefer-avx128): New flag.
5880 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
5881 modes when the flag -mprefer-avx128 is on.
5883 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
5885 * dwarf2out.c (compare_loc_operands): Fix address handling.
5887 2011-03-04 Alan Modra <amodra@gmail.com>
5889 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
5891 2011-03-04 Richard Guenther <rguenther@suse.de>
5894 * expmed.c (extract_bit_field_1): Prefer vector modes that
5895 vec_extract patterns can handle.
5897 2011-03-04 Richard Guenther <rguenther@suse.de>
5900 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
5902 2011-03-04 Richard Henderson <rth@redhat.com>
5904 * explow.c (emit_stack_save): Remove 'after' parameter.
5905 (emit_stack_restore): Likewise.
5906 * expr.h: Update to match.
5907 * builtins.c, calls.c, stmt.c: Likewise.
5908 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
5909 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
5910 * function.c (expand_function_end): Insert the emit_stack_save
5911 sequence before parm_birth_insn instead of after.
5913 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
5915 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
5916 (ssse3_pmaddubsw128): Ditto.
5917 (ssse3_pmaddubsw): Ditto.
5919 2011-03-03 Steve Ellcey <sje@cup.hp.com>
5921 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
5923 2011-03-03 Jakub Jelinek <jakub@redhat.com>
5926 * gimplify.c (omp_add_variable): Only call omp_notice_variable
5927 on TYPE_SIZE_UNIT if it is a DECL.
5930 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
5931 first operand is not is_gimple_mem_ref_addr, try to fold it.
5932 If the operand still isn't is_gimple_mem_ref_addr, clear
5935 2011-03-03 Richard Guenther <rguenther@suse.de>
5938 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
5940 (refs_may_alias_p_1): For release branches return true if
5941 we are confused by our input.
5943 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5945 * config/s390/s390.c (s390_function_value): Rename to ...
5946 (s390_function_and_libcall_value): ... this.
5947 (s390_function_value): New function.
5948 (s390_libcall_value): New function.
5949 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
5950 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
5951 target macro definitions.
5952 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
5954 2011-03-02 Joseph Myers <joseph@codesourcery.com>
5956 * config/i386/freebsd64.h (CC1_SPEC): Define.
5957 * config/i386/linux64.h (CC1_SPEC): Define.
5958 * config/i386/x86-64.h (CC1_SPEC): Don't define.
5960 2011-03-02 Anatoly Sokolov <aesok@post.ru>
5962 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
5964 * config/stormy16/stormy16.c: Include reload.h.
5965 (xstormy16_memory_move_cost): New function.
5966 (TARGET_MEMORY_MOVE_COST): Define.
5968 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
5970 PR rtl-optimization/47925
5971 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
5972 with side effects. Remove the more-specific check for volatile asms.
5974 2011-03-02 Alan Modra <amodra@gmail.com>
5977 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
5978 toc relative addresses for valid offsets.
5980 2011-03-01 Richard Guenther <rguenther@suse.de>
5982 PR tree-optimization/47890
5983 * tree-vect-loop.c (get_initial_def_for_induction): Set
5984 related stmt properly.
5986 2011-03-01 Richard Guenther <rguenther@suse.de>
5989 * lto-streamer.c (lto_record_common_node): Also register
5992 2011-03-01 Richard Guenther <rguenther@suse.de>
5995 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
5996 Do not stream DECL_ABSTRACT_ORIGIN.
5997 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
5998 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
5999 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
6000 Do not stream DECL_ABSTRACT_ORIGIN.
6001 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
6002 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
6004 2011-02-28 Anatoly Sokolov <aesok@post.ru>
6006 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
6007 FUNCTION_VALUE_REGNO_P): Remove.
6008 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
6009 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
6010 Add 'outgoing' argument.
6011 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
6013 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6014 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6016 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
6019 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
6020 (lookup_filename): Likewise.
6021 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
6023 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
6024 Jakub Jelinek <jakub@redhat.com>
6027 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
6028 (assign_stack_local_1): Change last argument type to int.
6029 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
6030 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
6031 don't record padding space into frame_space_list nor use those areas.
6032 (assign_stack_local): Adjust caller.
6033 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
6034 of assign_stack_local, pass 0 as last argument.
6035 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
6038 2011-02-28 Jakub Jelinek <jakub@redhat.com>
6041 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
6042 Use target address_mode and pointer_mode hooks instead of hardcoded
6043 Pmode and ptr_mode. Handle some simple cases of extending if
6044 POINTERS_EXTEND_UNSIGNED < 0.
6045 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
6046 Call convert_debug_memory_address.
6047 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
6048 convert_debug_memory_address.
6051 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
6052 * configure: Regenerated.
6053 * config.in: Regenerated.
6054 * varasm.c (default_function_section): Return NULL
6055 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
6057 2011-02-28 Martin Jambor <mjambor@suse.cz>
6059 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
6060 the description to match the printed values.
6062 2011-02-28 Richard Guenther <rguenther@suse.de>
6064 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
6065 of the copied scope tree.
6067 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6069 * doc/extend.texi (Function Attributes): Avoid deeply (and
6070 wrongly) nested tables.
6072 2011-02-27 Jakub Jelinek <jakub@redhat.com>
6075 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
6076 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
6077 r isn't op0 nor op1.
6079 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
6081 * config/avr/avr.md: Remove magic comment for emacs.
6083 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
6086 * config/avr/avr.c (avr_option_override): Use error on bad options.
6087 (avr_help): New function.
6088 (TARGET_HELP): Define.
6090 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
6093 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
6094 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
6096 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
6098 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
6099 (ARM Options): Ditto.
6100 (i386 and x86-64 Options): Ditto.
6101 (RX Options): Ditto.
6102 (SPARC Options): Ditto.
6104 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
6106 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
6107 FreeBSD 6 and later. Generally use cpu generic.
6109 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
6111 * doc/cpp.texi: Update copyright years.
6113 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
6116 * config/lm32/lm32.md (ashrsi3): Added needed variable.
6118 2011-02-25 Jon Beniston <jon@beniston.com>
6121 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
6122 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
6123 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
6124 (lm32_block_move_inline): Add type cast to remove warning.
6125 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
6126 (gen_int_relational): Move declarations to start of function.
6128 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
6130 PR tree-optimization/45470
6131 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
6132 can throw internally only.
6133 * tree-vect-stmts.c (vectorizable_call): Likewise.
6135 2011-02-24 Anatoly Sokolov <aesok@post.ru>
6137 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
6138 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
6139 * config/stormy16/stormy16-protos.h
6140 (xstormy16_preferred_reload_class): Remove.
6141 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
6142 static. Change 'rclass' argument and return type to reg_class_t.
6143 (TARGET_PREFERRED_RELOAD_CLASS,
6144 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6146 2011-02-24 Richard Guenther <rguenther@suse.de>
6148 * lto-streamer-in.c (input_bb): Do not find referenced vars
6149 in debug statements.
6151 2011-02-23 Jason Merrill <jason@redhat.com>
6153 * common.opt (fabi-version): Document v5 and v6.
6155 2011-02-23 Richard Guenther <rguenther@suse.de>
6157 PR tree-optimization/47849
6158 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
6160 2011-02-23 Jie Zhang <jie@codesourcery.com>
6162 * opts-common.c (decode_cmdline_option): Print empty string
6163 argument as "" in decoded->orig_option_with_args_text.
6164 * gcc.c (execute): Print empty string argument as ""
6165 in the verbose output.
6166 (do_spec_1): Keep empty string argument.
6168 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
6170 * config.gcc: Declare score-* and crx-* obsolete.
6172 2011-02-23 Jie Zhang <jie@codesourcery.com>
6174 PR rtl-optimization/47763
6175 * web.c (web_main): Ignore naked clobber when replacing register.
6177 2011-02-22 Anatoly Sokolov <aesok@post.ru>
6179 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6182 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
6185 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
6187 2011-02-22 Mike Stump <mikestump@comcast.net>
6189 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
6191 * configure: Regenerate.
6193 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
6195 PR rtl-optimization/46002
6196 * ira-color.c (update_copy_costs): Change class intersection
6197 test to reg_class_contents[] test of 'hard_regno'.
6199 2011-02-21 Joseph Myers <joseph@codesourcery.com>
6201 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
6203 * config/hpux11.opt (mt): Likewise.
6204 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
6205 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
6206 * config/vax/elf.opt (mno-asm-pic): Likewise.
6207 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
6209 2011-02-21 Mike Stump <mikestump@comcast.net>
6212 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
6213 tree so we can get save the type.
6214 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
6215 for CFString instead of trying to use past the end of the builtins.
6216 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
6217 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
6218 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
6219 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
6220 Rename to darwin_builtin_cfstring.
6221 (darwin_init_cfstring_builtins): Return the built type.
6223 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
6226 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
6227 (_mm256_insert_epi64): Use _mm_insert_epi64.
6229 2011-02-21 Anatoly Sokolov <aesok@post.ru>
6231 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6232 * config/stormy16/stormy16-protos.h
6233 (xstormy16_mode_dependent_address_p): Remove.
6234 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
6235 Make static. Change return type to bool. Change argument type to
6236 const_rtx. Remove dead code.
6237 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6239 2011-02-21 Richard Guenther <rguenther@suse.de>
6242 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
6243 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
6244 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
6246 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
6247 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
6249 2011-02-20 Richard Guenther <rguenther@suse.de>
6252 * tree.c (free_lang_data_in_decl): Clean builtins from
6253 the TU decl BLOCK_VARS.
6255 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
6259 * haifa-sched.c (fix_tick_ready): Skip tick computation
6262 2011-02-19 Richard Guenther <rguenther@suse.de>
6265 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
6266 Remove lazy BLOCK_VARS streaming.
6267 (lto_input_ts_block_tree_pointers): Likewise.
6268 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
6270 2011-02-19 Joseph Myers <joseph@codesourcery.com>
6272 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
6274 2011-02-19 Joseph Myers <joseph@codesourcery.com>
6276 * config/i386/biarch32.h, config/i386/mach.h,
6277 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
6279 2011-02-19 Jakub Jelinek <jakub@redhat.com>
6282 * config/i386/i386.md (peephole2 for shift and plus): Use
6283 operands[1] original mode in the first insn.
6285 2011-02-18 Mike Stump <mikestump@comcast.net>
6287 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
6289 2011-02-18 Jan Hubicka <jh@suse.cz>
6292 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
6293 to zero when the function is not inlinable at all.
6295 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6297 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
6298 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
6299 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
6300 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
6301 * config/pa/t-pa64: Likewise.
6302 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6304 2011-02-18 Jakub Jelinek <jakub@redhat.com>
6307 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
6309 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6312 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
6314 2011-02-18 Anatoly Sokolov <aesok@post.ru>
6316 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
6317 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
6318 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
6319 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
6320 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
6321 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
6322 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
6323 m32r_load_postinc_p, m32r_store_preinc_predec_p,
6324 m32r_legitimate_address_p): New functions.
6325 * config/m32r/constraints.md (constraint "S"): Don't use
6326 STORE_PREINC_PREDEC_P.
6327 (constraint "U"): Don't use LOAD_POSTINC_P.
6329 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
6331 PR rtl-optimization/46178
6332 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
6333 compute ira_hard_regno_cover_class[].
6335 2011-02-18 Richard Guenther <rguenther@suse.de>
6338 * lto-streamer.h (lto_global_var_decls): Declare.
6339 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
6340 statics for global var processing.
6342 2011-02-18 Richard Guenther <rguenther@suse.de>
6344 PR tree-optimization/47737
6345 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
6346 edge dominance check.
6348 2011-02-18 Jakub Jelinek <jakub@redhat.com>
6351 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
6352 avoid invalid rtx sharing.
6354 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
6356 * doc/cpp.texi (Obsolete Features): Add background on the
6357 origin of assertions.
6359 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
6361 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
6363 * config/darwin.c (output_objc_section_asm_op): Added support for
6365 (is_objc_metadata): New.
6366 (darwin_objc2_section): New.
6367 (darwin_objc1_section): New.
6368 (machopic_select_section): Added support for ABI v1 and v2.
6369 (darwin_emit_objc_zeroed): New.
6370 (darwin_output_aligned_bss): Detect objc metadata and treat it
6372 (darwin_asm_output_aligned_decl_common): Same.
6373 (darwin_asm_output_aligned_decl_local): Same.
6374 * config/darwin-sections.def: Updated for ABI v1 and v2.
6375 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
6376 compiling Objective-C code for the NeXT runtime, default to using
6377 ABI version 0 for 32-bit, and version 2 for 64-bit.
6379 2011-02-17 Joseph Myers <joseph@codesourcery.com>
6381 * common.opt (optimize_fast): New Variable.
6382 * opts.c (default_options_optimization): Use opts->x_optimize_fast
6383 instead of local variable ofast.
6385 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
6387 * doc/invoke.texi (fobjc-abi-version): Documented.
6388 (fobjc-nilcheck): Documented.
6389 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
6392 2011-02-17 Joseph Myers <joseph@codesourcery.com>
6395 * common.opt (export-dynamic): New Driver option.
6396 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
6398 2011-02-17 Joseph Myers <joseph@codesourcery.com>
6400 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
6402 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
6403 Jan Hubicka <jh@suse.cz>
6407 * cfgexpand.c (account_used_vars_for_block): Remove.
6408 (estimated_stack_frame_size): Use referenced vars.
6409 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
6410 that were referenced in the original function. Test src_fn
6411 rather than cfun. Drop redundant get_var_ann.
6412 (setup_one_parameter): Drop redundant get_var_ann.
6413 (declare_return_variable): Likewise.
6414 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
6415 (copy_arguments_for_versioning): Drop redundant get_var_ann.
6416 * ipa-inline.c (compute_inline_parameters): Do not compute
6417 disregard_inline_limits here.
6418 (compute_inlinable_for_current, pass_inlinable): New.
6419 (pass_inline_parameters): Require PROP_referenced_vars.
6420 * cgraphunit.c (cgraph_process_new_functions): Don't run
6421 compute_inline_parameters explicitly unless function is in SSA form.
6422 (cgraph_analyze_function): Set .disregard_inline_limits.
6423 * tree-sra.c (convert_callers): Compute inliner parameters
6424 only for functions already in SSA form.
6426 2011-02-17 Joseph Myers <joseph@codesourcery.com>
6428 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
6429 -mlittle-endian-data.
6431 2011-02-17 Joseph Myers <joseph@codesourcery.com>
6433 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
6434 -mno-fpu, not -fpu and -no-fpu.
6435 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
6436 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
6438 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
6441 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
6442 input reload with PLUS RTX.
6444 2011-02-16 Joseph Myers <joseph@codesourcery.com>
6446 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
6447 of InverseVar(MDMX).
6449 2011-02-16 Joseph Myers <joseph@codesourcery.com>
6451 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
6454 2011-02-16 Joseph Myers <joseph@codesourcery.com>
6456 * config/mn10300/mn10300.opt (mno-crt0): New.
6458 2011-02-16 Joseph Myers <joseph@codesourcery.com>
6460 * config/m68k/uclinux.opt (static-libc): New Driver option.
6462 2011-02-16 Joseph Myers <joseph@codesourcery.com>
6464 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
6466 2011-02-16 Joseph Myers <joseph@codesourcery.com>
6468 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
6469 %{muser-extend-enabled}.
6471 2011-02-16 Richard Guenther <rguenther@suse.de>
6473 PR tree-optimization/47738
6474 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
6475 the TODO from tree_predictive_commoning.
6477 2011-02-15 Jeff Law <law@redhat.com>
6480 2011-01-25 Jeff Law <law@redhat.com>
6482 PR rtl-optimization/37273
6483 * ira-costs.c (scan_one_insn): Detect constants living in memory and
6484 handle them like argument loads from stack slots. Do not double
6485 count memory for memory constants and argument loads from stack slots.
6487 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
6490 * combine.c (cant_combine_insn_p): Revert the last change.
6492 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
6495 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
6496 mode for vector constants. Remove code that checks for TImode.
6498 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
6502 * cgraph.h (compute_inline_parameters): Return void.
6503 * ipa-inline.c (compute_inline_parameters): Adjust.
6505 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
6509 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
6511 * cfgexpand.c (estimated_stack_frame_size): Likewise.
6512 * ipa-inline.c (compute_inline_parameters): Adjust.
6514 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
6518 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
6519 Adjust all users. Pass FN to...
6520 * tree-flow-inline.h (first_referenced_var): ... this. Add
6522 * ipa-struct-reorg.c: Adjust.
6523 * tree-dfa.c: Adjust.
6524 * tree-into-ssa.c: Adjust.
6525 * tree-sra.c: Adjust.
6526 * tree-ssa-alias.c: Adjust.
6527 * tree-ssa-live.c: Adjust.
6528 * tree-ssa.c: Adjust.
6529 * tree-ssanames.c: Adjust.
6530 * tree-tailcall.c: Adjust.
6532 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
6536 * tree-flow.h (referenced_var_lookup): Add fn parameter.
6538 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
6539 * tree-flow-inline.h: Adjust.
6540 * gimple-pretty-print.c: Adjust.
6541 * tree-into-ssa.c: Adjust.
6542 * tree-ssa.c: Adjust.
6543 * cfgexpand.c: Adjust.
6545 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
6547 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
6548 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6549 (EXTRA_CONSTRAINT): Delete.
6550 * config/iq2000/constraints.md: New file.
6551 * config/iq2000/iq2000.md: Include it.
6552 (define_insn ""): Delete.
6553 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
6554 unsupported constraint letters from patterns.
6555 (call_value, call_value_internal1): Likewise.
6556 (call_value_multiple_internal1): Likewise.
6558 2011-02-15 Nick Clifton <nickc@redhat.com>
6560 * config/mn10300/mn10300.c: Include tm-constrs.h.
6561 (struct liw_data): New data structure describing an LIW candidate
6563 (extract_bundle): Use struct liw_data. Allow small integer
6564 operands for some instructions.
6565 (check_liw_constraints): Use struct liw_data. Remove swapped
6566 parameter. Add comments describing the checks. Fix bug when
6567 assigning the source of liw1 to the source of liw2.
6568 (liw_candidate): Delete. Code moved into extract_bundle.
6569 (mn10300_bundle_liw): Use struct liw_data. Check constraints
6571 * config/mn10300/predicates.md (liw_operand): New predicate.
6572 Allows registers and small integer constants.
6573 * config/mn10300/constraints.md (O): New constraint. Accetps
6574 integers in the range -8 to +7 inclusive.
6575 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
6576 for moving a small integer into a register. Give this alternative
6578 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
6579 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
6580 using the J,K,L and M constraints,
6581 (liw): Remove SI mode on second operands to allow for HI and QI
6583 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
6586 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
6589 * combine.c (cant_combine_insn_p): Check zero/sign extended
6592 2011-02-15 Richard Guenther <rguenther@suse.de>
6594 PR tree-optimization/47743
6595 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
6596 for a non-type-compatible VN lookup bail out.
6598 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
6600 * config/fr30/constraints.md: New file.
6601 * config/fr30/fr30.md: Include it.
6602 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
6603 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6604 (EXTRA_CONSTRAINT): Delete.
6606 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
6608 * config/frv/constraints.md: New file.
6609 * config/frv/predicates.md: Include it.
6610 * config/frv/frv.c (reg_class_from_letter): Delete.
6611 (frv_option_override): Don't initialize it.
6612 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
6613 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
6614 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
6615 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
6616 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
6617 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6618 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
6619 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
6620 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
6621 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
6622 (REG_CLASS_FROM_CONSTRAINT): Delete.
6624 2011-02-15 Jakub Jelinek <jakub@redhat.com>
6627 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
6628 if frame size is 0 in a leaf function.
6630 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6633 * config/alpha/host-osf.c: New file.
6634 * config/alpha/x-osf: New file.
6635 * config.host (alpha*-dec-osf*): Use it.
6637 2011-02-14 Anatoly Sokolov <aesok@post.ru>
6639 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6640 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
6641 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
6642 (rx_mode_dependent_address_p): ...this. Make static. Change argument
6644 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6646 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
6648 * config/stormy16/constraints.md: New file.
6649 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
6650 Use satisfies_constraint_Q and satisfies_constraint_R.
6651 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
6653 (xstormy16_legitiamte_address_p): Declare.
6654 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
6655 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6656 (EXTRA_CONSTRAINT): Delete.
6657 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
6659 (xstormy16_extra_constraint_p): Delete.
6661 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
6663 PR tree-optimization/46494
6664 * loop-unroll.c (split_edge_and_insert): Adjust comment.
6665 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
6666 (pass_rtl_loop_done): Add TODO_verify_flow.
6667 * fwprop.c (pass_rtl_fwprop): Likewise.
6668 * modulo-sched.c (pass_sms): Likewise.
6669 * tree-ssa-dom.c (pass_dominator): Likewise.
6670 * tree-ssa-loop-ch.c (pass_ch): Likewise.
6671 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
6672 (pass_tree_loop_done): Likewise.
6673 * tree-ssa-pre.c (execute_pre): Likewise.
6674 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
6675 * tree-ssa-sink.c (pass_sink_code): Likewise.
6676 * tree-vrp.c (pass_vrp): Likewise.
6678 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
6680 * config/v850/constraints.md: New file.
6681 * config/v850/v850.md: Include it.
6682 * config/v850/predicates.md (reg_or_0_operand): Use
6683 satisfies_constraint_G.
6684 (special_symbolref_operand): Use satisfies_constraint_K.
6685 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
6686 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
6687 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
6688 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
6689 (EXTRA_CONSTRAINT): Delete.
6690 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
6691 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
6692 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
6694 2011-02-14 Anatoly Sokolov <aesok@post.ru>
6697 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
6700 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
6702 * config/mcore/constraints.md: New file.
6703 * config/mcore/mcore.md: Include it.
6704 * config/mcore/mcore.c (reg_class_from_letter): Delete.
6705 * config/mcore/mcore.h (reg_class_from_letter): Delete.
6706 (REG_CLASS_FROM_LETTER): Delete.
6707 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
6708 insn_const_int_ok_for_constraint.
6709 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
6710 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
6711 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6712 (EXTRA_CONSTRAINT): Delete.
6714 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6717 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
6718 (IS_SIGHANDLER): Define.
6719 (sparc64_is_sighandler): New function, split off from
6720 sparc64_fallback_frame_state.
6721 (sparc_is_sighandler): New function, split off from
6722 sparc_fallback_frame_state.
6723 (sparc64_fallback_frame_state): Merge with ...
6724 (sparc_fallback_frame_state): ... this into ...
6725 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
6726 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
6727 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
6728 stack instead of hardcoded offsets.
6730 2011-02-14 Andriy Gapon <avg@freebsd.org>
6733 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
6735 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6737 * configure: Regenerate.
6739 2011-02-12 Joseph Myers <joseph@codesourcery.com>
6742 * gcc.c (asm_options): Correct spec matching --target-help.
6744 2011-02-12 Martin Jambor <mjambor@suse.cz>
6746 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
6747 to gimple call error.
6749 2011-02-12 Mike Stump <mikestump@comcast.net>
6751 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
6752 comments in backslash regions.
6754 2011-02-12 Mike Stump <mikestump@comcast.net>
6755 Jakub Jelinek <jakub@redhat.com>
6756 Iain Sandoe <iains@gcc.gnu.org>
6759 * dwarf2out.c (output_cfa_loc): When required, apply the
6760 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
6761 (output_loc_sequence): Likewise.
6762 (output_loc_operands_raw): Likewise.
6763 (output_loc_sequence_raw): Likewise.
6764 (output_cfa_loc): Likewise.
6765 (output_loc_list): Suppress register number adjustment when
6766 calling output_loc_sequence()
6767 (output_die): Likewise.
6769 2011-02-12 Anatoly Sokolov <aesok@post.ru>
6771 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
6773 * config/xtensa/xtensa.c (xtensa_register_move_cost,
6774 xtensa_memory_move_cost): New functions.
6775 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
6777 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
6780 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
6781 in the current directory.
6782 * configure: Rebuilt.
6784 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
6786 * config/darwin.c (darwin_override_options): Add a hunk missed
6787 from the commit of r168571. Trim comment line lengths and
6788 correct indents of the preceding block.
6790 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
6792 * gcc.c (driver_handle_option): Concatenate the argument to -F with
6795 2011-02-11 Joseph Myers <joseph@codesourcery.com>
6797 * common.opt (nostartfiles): New Driver option.
6799 2011-02-11 Xinliang David Li <davidxl@google.com>
6801 PR tree-optimization/47707
6802 * tree-chrec.c (convert_affine_scev): Keep type precision.
6804 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
6806 PR tree-optimization/47420
6807 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
6809 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
6811 PR rtl-optimization/47614
6812 * rtl.h (check_for_inc_dec): Declare.
6813 * dse.c (check_for_inc_dec): Externalize...
6814 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
6815 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
6817 2011-02-11 Joseph Myers <joseph@codesourcery.com>
6820 * gcc.c (main): Do not compile inputs if there were errors in
6822 * opts-common.c (read_cmdline_option): Check for wrong language
6823 after other error checks.
6825 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
6827 * cgraph.c: Fix comment typos.
6828 * cgraph.h: Likewise.
6829 * cgraphunit.c: Likewise.
6830 * ipa-cp.c: Likewise.
6831 * ipa-inline.c: Likewise.
6832 * ipa-prop.c: Likewise.
6833 * ipa-pure-const.c: Likewise.
6834 * ipa-ref.c: Likewise.
6835 * ipa-reference.c: Likewise.
6837 2011-02-11 Jakub Jelinek <jakub@redhat.com>
6840 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
6842 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6845 * doc/sourcebuild.texi (Require Support): Document
6846 dg-require-ascii-locale.
6848 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
6850 * doc/lto.texi (Write summary): Fix missing parentheses.
6852 2011-02-10 DJ Delorie <dj@redhat.com>
6854 * config/m32c/m32c.c (m32c_option_override): Disable
6855 -fcombine-stack-adjustments until flag value tracking and compare
6856 optimization can be rewritten.
6858 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
6860 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
6862 (PROCESSOR_DEFAULT64): Likewise.
6864 2011-02-10 Richard Henderson <rth@redhat.com>
6866 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
6867 change from 2011-02-03.
6868 * config/rx/rx.c (flags_from_code): Likewise.
6869 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
6870 is valid, n/pz otherwise.
6871 (rx_select_cc_mode): Return CCmode if Y is not zero.
6873 2011-02-10 Richard Guenther <rguenther@suse.de>
6875 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
6877 2011-02-10 Richard Guenther <rguenther@suse.de>
6879 PR tree-optimization/47677
6880 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
6882 2011-02-10 Jakub Jelinek <jakub@redhat.com>
6885 * combine.c (make_compound_operation): Only change shifts into
6886 multiplication for SCALAR_INT_MODE_P.
6888 2011-02-10 Jie Zhang <jie@codesourcery.com>
6892 2011-02-05 Jie Zhang <jie@codesourcery.com>
6894 * web.c (entry_register): Don't clobber the number of the
6895 first uninitialized reference in used[].
6897 2011-02-09 Richard Guenther <rguenther@suse.de>
6899 PR tree-optimization/47664
6900 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
6903 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
6907 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
6909 (PROCESSOR_DEFAULT64): Same.
6910 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
6912 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6914 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
6916 2011-02-09 Martin Jambor <mjambor@suse.cz>
6919 * tree-sra.c (struct access): New flags grp_scalar_read and
6920 grp_scalar_write. Changed description of assignment read and write
6922 (dump_access): Dump new flags, reorder all of them.
6923 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
6924 to detect multiple scalar reads.
6925 (analyze_access_subtree): Use the new scalar read write flags instead
6926 of the old flags. Adjusted comments.
6928 2011-02-08 DJ Delorie <dj@redhat.com>
6931 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
6934 2011-02-08 Joseph Myers <joseph@codesourcery.com>
6936 * config/m68k/uclinux.opt: New.
6937 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
6939 2011-02-08 Joseph Myers <joseph@codesourcery.com>
6941 * config/cris/elf.opt (sim): New Driver option.
6943 2011-02-08 Joseph Myers <joseph@codesourcery.com>
6945 * config/xtensa/elf.opt: New.
6946 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
6948 2011-02-08 Joseph Myers <joseph@codesourcery.com>
6950 * config/vax/elf.opt: New.
6951 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
6953 2011-02-08 Joseph Myers <joseph@codesourcery.com>
6955 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
6957 2011-02-08 Joseph Myers <joseph@codesourcery.com>
6959 * config/gnu-user.opt: New.
6960 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
6961 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
6962 *-*-uclinux*): Use gnu-user.opt.
6964 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
6966 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
6967 * config/i386/gnu.h (CPP_SPEC): Likewise.
6969 2011-02-08 Ian Lance Taylor <iant@google.com>
6971 * common.opt (fcx-limited-range): Add SetByCombined flag.
6972 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
6973 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
6974 (fassociative-math, freciprocal-math): Likewise.
6975 (funsafe-math-optimizations): Likewise.
6976 * opth-gen.awk: Handle SetByCombined.
6977 * optc-gen.awk: Likewise.
6978 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
6979 (set_unsafe_math_optimizations_flags): Likewise.
6980 * doc/options.texi (Option properties): Document SetByCombined.
6982 2011-02-08 Joseph Myers <joseph@codesourcery.com>
6984 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
6985 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
6986 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
6987 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
6988 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
6990 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
6992 PR tree-optimization/46834
6993 PR tree-optimization/46994
6994 PR tree-optimization/46995
6995 * graphite-sese-to-poly.c (used_outside_reduction): New.
6996 (detect_commutative_reduction): Call used_outside_reduction.
6997 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
6998 translate_scalar_reduction_to_array only when at least one
6999 loop-phi/close-phi tuple has been detected.
7001 2011-02-08 Richard Guenther <rguenther@suse.de>
7004 * tree-vect-generic.c (expand_vector_operations_1): Update
7006 (expand_vector_operations): ... not here. Cleanup EH info
7007 and the CFG if required.
7009 2011-02-08 Richard Guenther <rguenther@suse.de>
7011 PR tree-optimization/47641
7012 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
7013 require type compatibility.
7015 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7017 * gimple-low.c (lower_function_body): Don't remove the location of
7018 the return statement here.
7019 (lower_gimple_return): Do it here instead but only if the return
7020 statement is actually used twice.
7022 2011-02-08 Richard Guenther <rguenther@suse.de>
7024 PR tree-optimization/47632
7025 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
7026 unused up_to_stmt parameter, return whether cfg-cleanup is
7027 necessary, remove EH info properly.
7028 (forward_propagate_into_gimple_cond): Adjust caller.
7029 (forward_propagate_into_cond): Likewise.
7030 (forward_propagate_comparison): Likewise.
7031 (tree_ssa_forward_propagate_single_use_vars): Make
7032 forward_propagate_comparison case similar to the two others.
7034 2011-02-08 Nick Clifton <nickc@redhat.com>
7036 * config/mn10300/mn10300.opt (mliw): New command line option.
7037 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
7038 (liw_bundling): New automaton.
7039 (liw): New attribute.
7040 (liw_op): New attribute.
7041 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
7042 (movsi_internal): Add LIW attributes.
7046 (addsi3): Separate register and immediate alternatives.
7051 (lshrsi3): Likewise.
7052 (ashrsi3): Likewise.
7054 * config/mn10300/mn10300.c (liw_op_names): New
7055 (mn10300_print_operand): Handle 'W' operand descriptor.
7056 (extract_bundle): New function.
7057 (check_liw_constraints): New function.
7058 (liw_candidate): New function.
7059 (mn10300_bundle_liw): New function.
7060 (mn10300_reorg): New function.
7061 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7062 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
7063 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
7064 __LIW__ or __NO_LIW__.
7065 * doc/invoke.texi: Describe the -mliw command line option.
7067 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7069 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
7070 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7071 pthread_mutex_unlock): Remove.
7072 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
7073 * config/pa/t-pa64: Likewise.
7074 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
7075 shared libc if not linking against libpthread.
7076 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
7078 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
7081 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
7082 on 10.6 and later to ensure that we always use the unwinder from
7083 the system. Only add -no_compact_unwind when tarteting darwin
7086 2011-02-07 Steve Ellcey <sje@cup.hp.com>
7089 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
7090 (vec_interleave_lowv2sf): Ditto.
7091 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
7092 (vec_extract_oddv2sf): Ditto.
7094 2011-02-07 Mike Stump <mikestump@comcast.net>
7097 Add __ieee_divdc3 entry point.
7098 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
7100 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
7101 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
7102 * config/darwin.c (darwin_rename_builtins): Add.
7103 * config/darwin-protos.h (darwin_rename_builtins): Add.
7105 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
7108 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
7111 2011-02-07 Mike Stump <mikestump@comcast.net>
7113 * config/darwin.opt (mmacosx-version-min): Update default OS version.
7115 2011-02-07 Denis Chertykov <chertykov@gmail.com>
7118 * config/avr/libgcc.S (exit): Move .endfunc
7120 2011-02-07 Richard Guenther <rguenther@suse.de>
7122 PR tree-optimization/47615
7123 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
7124 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
7125 (run_scc_vn): Initialize it.
7126 (visit_reference_op_load): Use it.
7127 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
7129 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7131 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
7132 DImode trapping arithmetic libfuncs.
7134 2011-02-07 Richard Guenther <rguenther@suse.de>
7136 PR tree-optimization/47621
7137 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
7139 (execute_update_addresses_taken): ... here. Make it more
7140 conservative in what we accept.
7142 2011-02-06 Joseph Myers <joseph@codesourcery.com>
7144 * config/sparc/freebsd.h (ASM_SPEC): Define.
7145 * config/sparc/vxworks.h (ASM_SPEC): Define.
7147 2011-02-06 Joseph Myers <joseph@codesourcery.com>
7149 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
7151 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
7153 * doc/invoke.texi: Remove reference to compiler internals from
7156 * reg-notes.def: Remove REG_VALUE_PROFILE.
7157 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
7159 2011-02-05 Jakub Jelinek <jakub@redhat.com>
7162 * varasm.c (default_section_type_flags): If decl is NULL,
7163 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
7165 2011-02-05 Jie Zhang <jie@codesourcery.com>
7168 * web.c (entry_register): Don't clobber the number of the
7169 first uninitialized reference in used[].
7171 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
7173 PR tree-optimization/46194
7174 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
7175 (build_classic_dist_vector_1): Do not represent classic distance
7176 vectors when the access functions are variating in different loops.
7178 2011-02-04 Joseph Myers <joseph@codesourcery.com>
7180 * config/mips/iris6.opt: New.
7181 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
7183 2011-02-04 Richard Henderson <rth@redhat.com>
7184 Steve Ellcey <sje@cup.hp.com>
7187 * config/ia64/predicates.md (mux1_brcst_element): New.
7188 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
7189 * config/ia64/ia64.c (ia64_unpack_assemble): New.
7190 (ia64_unpack_sign): New.
7191 (ia64_expand_unpack): Rewrite using new routines.
7192 (ia64_expand_widen_sum): Ditto.
7193 (ia64_expand_dot_prod_v8qi): Ditto.
7194 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
7195 routines, add endian check.
7196 (pmpy2_even): Rename from pmpy2_r, add endian check.
7197 (pmpy2_odd): Rename from pmpy2_l, add endian check.
7198 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
7199 (vec_widen_smult_hi_v4hi): Ditto.
7200 (vec_widen_umult_lo_v4hi): Ditto.
7201 (vec_widen_umult_hi_v4hi): Ditto.
7202 (mulv2si3): Change endian checks.
7203 (sdot_prodv4hi): Rewrite with new calls.
7204 (udot_prodv4hi): New.
7205 (vec_pack_ssat_v4hi): Add endian check.
7206 (vec_pack_usat_v4hi): Ditto.
7207 (vec_pack_ssat_v2si): Ditto.
7208 (max1_even): Rename from max1_r, add endian check.
7209 (max1_odd): Rename from max1_l, add endian check.
7210 (*mux1_rev): Format change.
7212 (*mux1_shuf): Ditto.
7214 (*mux1_brcst_v8qi): Use new predicate.
7215 (vec_extract_evenv8qi): Remove endian check.
7216 (vec_extract_oddv8qi): Ditto.
7217 (vec_interleave_lowv4hi): Format change.
7218 (vec_interleave_highv4hi): Ditto.
7219 (mix2_even): Rename from mix2_r, add endian check.
7220 (mix2_odd): Rename from mux2_l, add endian check.
7221 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
7222 (vec_extract_evenodd_helper): Format change.
7223 (vec_extract_evenv4hi): Remove endian check.
7224 (vec_extract_oddv4hi): Remove endian check.
7225 (vec_interleave_lowv2si): Format change.
7226 (vec_interleave_highv2si): Format change.
7227 (vec_initv2si): Remove endian check.
7228 (vecinit_v2si): Add endian check.
7229 (reduc_splus_v2sf): Add endian check.
7230 (reduc_smax_v2sf): Ditto.
7231 (reduc_smin_v2sf): Ditto.
7232 (vec_initv2sf): Remove endian check.
7233 (fpack): Add endian check.
7234 (fswap): Add endian check.
7235 (vec_interleave_highv2sf): Add endian check.
7236 (vec_interleave_lowv2sf): Add endian check.
7237 (fmix_lr): Add endian check.
7238 (vec_setv2sf): Format change.
7239 (*vec_extractv2sf_0_be): Use shift to extract operand.
7240 (*vec_extractv2sf_1_be): New.
7241 (vec_pack_trunc_v4hi): Add endian check.
7242 (vec_pack_trunc_v2si): Format change.
7244 2011-02-04 Jakub Jelinek <jakub@redhat.com>
7247 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
7248 do bb, locus and block comparison and disallow loads if it is not set.
7249 (stmt_is_replaceable_p): New function.
7250 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
7252 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
7253 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
7255 * tree-flow.h (stmt_is_replaceable_p): New prototype.
7257 2011-02-04 Joseph Myers <joseph@codesourcery.com>
7259 * config/rs6000/xilinx.opt: New.
7260 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
7262 2011-02-04 Joseph Myers <joseph@codesourcery.com>
7264 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
7266 2011-02-03 Anatoly Sokolov <aesok@post.ru>
7268 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
7269 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7270 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
7271 secondary_reload_info, xtensa_secondary_reload): Remove.
7272 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
7273 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7274 (xtensa_preferred_reload_class): Make static. Change return and
7275 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
7276 Use CONST_DOUBLE_P predicate.
7277 (xtensa_preferred_output_reload_class): New function.
7278 (xtensa_secondary_reload): Make static.
7280 2011-02-03 Joseph Myers <joseph@codesourcery.com>
7282 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
7283 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
7284 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
7286 2011-02-03 Jakub Jelinek <jakub@redhat.com>
7289 * output.h (SECTION_RELRO): Define.
7290 (SECTION_MACH_DEP): Adjust.
7291 (get_variable_section): New prototype.
7292 * varpool.c (varpool_finalize_named_section_flags): New function.
7293 (varpool_assemble_pending_decls): Call it.
7294 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
7295 * cgraphunit.c (cgraph_output_in_order): Call
7296 varpool_finalize_named_section_flags.
7297 * varasm.c (get_section): Allow section flags conflicts between
7298 relro and read-only sections if the section hasn't been declared yet.
7299 Set SECTION_OVERRIDE after diagnosing section type conflict.
7300 (get_variable_section): No longer static.
7301 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
7302 readonly sections that need relocations.
7303 (decl_readonly_section_1): New function.
7304 (decl_readonly_section): Use it.
7307 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
7308 Steve Ellcey <sje@cup.hp.com>
7311 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
7312 if section attribute used.
7314 2011-02-03 Jakub Jelinek <jakub@redhat.com>
7316 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
7317 * config/darwin.c (SECTION_NO_ANCHOR): Define.
7318 (darwin_init_sections): Remove assertion.
7320 2011-02-03 Nick Clifton <nickc@redhat.com>
7322 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
7324 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
7325 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
7326 instead of "n" and "pz".
7327 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
7330 2011-02-03 Jakub Jelinek <jakub@redhat.com>
7333 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
7334 fma, expand FMA_EXPR as fma{,f,l} call.
7337 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
7338 copy them into a unsigned char variable and pass address of it to
7339 lto_output_data_stream.
7342 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
7343 around backend_init_target and lang_dependent_init_target calls.
7344 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
7345 (verify_cgraph_node): Don't call set_cfun here. Use
7346 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
7347 Set error_found for incorrectly represented calls to thunks.
7349 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
7352 PR rtl-optimization/43494
7353 * rtl.h (for_each_inc_dec_fn): New type.
7354 (for_each_inc_dec): Declare.
7355 * rtlanal.c (struct for_each_inc_dec_ops): New type.
7356 (for_each_inc_dec_find_inc_dec): New fn.
7357 (for_each_inc_dec_find_mem): New fn.
7358 (for_each_inc_dec): New fn.
7359 * dse.c (struct insn_size): Remove.
7360 (replace_inc_dec, replace_inc_dec_mem): Remove.
7361 (emit_inc_dec_insn_before): New fn.
7362 (check_for_inc_dec): Use it, along with for_each_inc_dec.
7363 (canon_address): Pass mem modes to cselib_lookup.
7364 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
7365 (cselib_lookup_from_insn): Likewise.
7366 (cselib_subst_to_values): Likewise.
7367 * cselib.c (find_slot_memmode): New var.
7368 (cselib_find_slot): New fn. Use it instead of
7369 htab_find_slot_with_hash everywhere.
7370 (entry_and_rtx_equal_p): Use find_slot_memmode.
7371 (autoinc_split): New fn.
7372 (rtx_equal_for_cselib_p): Rename and implement in terms of...
7373 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
7374 Deal with autoinc. Special-case recursion into MEMs.
7375 (cselib_hash_rtx): Likewise.
7376 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
7377 address and MEM modes.
7378 (cselib_subst_to_values): Add memmode, pass it on.
7380 (cselib_lookup): Add memmode argument, pass it on.
7381 (cselib_lookup_from_insn): Add memmode.
7382 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
7383 (struct cselib_record_autoinc_data): New.
7384 (cselib_record_autoinc_cb): New fn.
7385 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
7386 mode to cselib_lookup. Reset autoinced REGs here instead of...
7387 (cselib_process_insn): ... here.
7388 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
7390 (add_uses): Likewise, also to cselib_subst_to_values.
7391 (add_stores): Likewise.
7392 * sched-deps.c (add_insn_mem_dependence): Pass mode to
7393 cselib_subst_to_values.
7394 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
7395 * gcse.c (do_local_cprop): Adjusted.
7396 * postreload.c (reload_cse_simplify_set): Adjusted.
7397 (reload_cse_simplify_operands): Adjusted.
7398 * sel-sched-dump (debug_mem_addr_value): Pass mode.
7400 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
7402 PR tree-optimization/45122
7403 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
7404 unsafe assumptions when there's more than one loop exit.
7406 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
7409 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
7410 Document using vector double with the load/store builtins, and
7411 that the load/store builtins always use Altivec instructions.
7413 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
7414 to use altivec memory instructions, even on VSX.
7415 (vector_altivec_store_<mode>): Ditto.
7417 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
7420 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7421 V2DF, V2DI support to load/store overloaded builtins.
7423 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
7424 altivec load/store builtins for V2DF/V2DI types.
7426 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
7427 set avoid indexed addresses on power6 if -maltivec.
7428 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
7429 vector_altivec_load/vector_altivec_store builtins.
7430 (altivec_expand_st_builtin): Ditto.
7431 (altivec_expand_builtin): Add VSX memory builtins.
7432 (rs6000_init_builtins): Add V2DI types to internal types.
7433 (altivec_init_builtins): Add support for V2DF/V2DI altivec
7434 load/store builtins.
7435 (rs6000_address_for_altivec): Insure memory address is appropriate
7438 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
7439 vec_vsx_ld and vec_vsx_st.
7440 (vsx_store_<mode>): Ditto.
7442 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
7443 variables to hold long long types for VSX vector memory builtins.
7444 (RS6000_BTI_unsigned_long_long): Ditto.
7445 (long_long_integer_type_internal_node): Ditti.
7446 (long_long_unsigned_type_internal_node): Ditti.
7448 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
7449 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
7450 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
7452 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
7454 (vec_vsx_st): Ditto.
7456 2011-02-02 Joseph Myers <joseph@codesourcery.com>
7458 * config/pa/pa-hpux10.opt: New.
7459 * config/hpux11.opt (pthread): New Driver option.
7460 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
7461 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
7463 2011-02-02 Joseph Myers <joseph@codesourcery.com>
7465 * config/ia64/vms.opt: New.
7466 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
7468 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
7471 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
7472 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
7473 generator functions.
7474 (vsx_floatuns<VSi><mode>2): Ditto.
7475 (vsx_fix_trunc<mode><VSi>2): Ditto.
7476 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
7478 2011-02-02 Joseph Myers <joseph@codesourcery.com>
7480 * config/i386/djgpp.opt (posix): New Driver option.
7482 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
7484 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
7485 Move to the unsupported targets list.
7487 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
7489 PR rtl-optimization/47525
7490 * df-scan.c: Update copyright years.
7491 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
7492 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
7494 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7496 * config/i386/sysv4.h (TARGET_VERSION): Remove.
7497 (SUBTARGET_RETURN_IN_MEMORY): Remove.
7498 (ASM_OUTPUT_ASCII): Remove.
7499 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
7501 2011-02-02 Jeff Law <law@redhat.com>
7504 * reload.c (find_reloads_address): Handle reg+d address where both
7505 components are invalid by reloading the entire address.
7507 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
7508 Richard Guenther <rguenther@suse.de>
7510 PR tree-optimization/40979
7512 * passes.c (init_optimization_passes): After LIM call copy_prop
7513 and DCE to clean up.
7514 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
7516 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
7518 PR tree-optimization/47576
7519 PR tree-optimization/47555
7520 * doc/invoke.texi (scev-max-expr-complexity): Documented.
7521 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
7522 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
7523 * tree-scalar-evolution.c (follow_ssa_edge): Use
7524 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
7526 2011-02-02 Richard Guenther <rguenther@suse.de>
7528 PR tree-optimization/47566
7529 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
7531 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
7535 * tree-inline.c (declare_return_variable): Remove unused caller
7540 * tree-flow-inline.h (clear_is_used, is_used_p): New.
7541 * cfgexpand.c (account_used_vars_for_block): Use them.
7542 * tree-nrv.c (tree_nrv): Likewise.
7543 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
7544 (dump_scope_block): Likewise.
7545 (remove_unused_locals): Likewise.
7549 * tree-inline.c (declare_return_variable): Add result decl to
7550 local decls only once.
7551 * gimple-low.c (record_vars_into): Mark newly-created variables
7554 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
7560 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
7562 (no_real_insns_p, schedule_block, set_priorities): Drop special
7563 treatment of boundary debug insns.
7564 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
7565 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
7566 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
7567 (BOUNDARY_DEBUG_INSN_P): Likewise.
7568 (SCHEDULE_DEBUG_INSN_P): Likewise.
7569 * sched-rgn.c (init_ready_list): Drop special treatment of
7570 boundary debug insns.
7571 * final.c (rest_of_clean_state): Clear notes' BB.
7573 2011-02-01 Joseph Myers <joseph@codesourcery.com>
7575 * config/openbsd.opt (assert=): New Driver option.
7577 2011-02-01 Joseph Myers <joseph@codesourcery.com>
7579 * config/i386/nto.opt: New.
7580 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
7582 2011-02-01 Joseph Myers <joseph@codesourcery.com>
7584 * config/i386/netware.opt: New.
7585 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
7587 2011-02-01 Joseph Myers <joseph@codesourcery.com>
7589 * config/interix.opt (posix): New Driver option.
7591 2011-02-01 DJ Delorie <dj@redhat.com>
7593 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
7595 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
7598 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
7600 PR tree-optimization/47561
7601 * toplev.c (process_options): Print the Graphite flags. Add
7602 flag_loop_flatten to the list of options requiring Graphite.
7604 2011-02-01 Joseph Myers <joseph@codesourcery.com>
7606 * config/i386/cygming.opt (posix): New Driver option.
7608 2011-02-01 Joseph Myers <joseph@codesourcery.com>
7610 * config/arm/vxworks.opt: New.
7611 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
7613 2011-02-01 Joseph Myers <joseph@codesourcery.com>
7615 * config/alpha/elf.opt: New.
7616 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
7617 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
7619 2011-02-01 Richard Guenther <rguenther@suse.de>
7621 PR tree-optimization/47559
7622 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
7623 store-motion on references that can throw.
7625 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
7627 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
7628 * tree-pass.h (TDF_CSELIB): New macro.
7629 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
7630 cselib_lookup): Check for it rather than for TDF_DETAILS.
7632 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
7635 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
7638 * opts.c (finish_options): Don't add x_aux_base_name if it is
7641 2011-02-01 Richard Guenther <rguenther@suse.de>
7643 PR tree-optimization/47555
7645 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
7647 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
7649 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
7652 * config/lm32/t-lm32: Add multilib for all CPU options.
7654 2011-02-01 Richard Guenther <rguenther@suse.de>
7656 PR tree-optimization/47541
7657 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
7658 sure to have a field at offset zero.
7660 2011-01-31 Joseph Myers <joseph@codesourcery.com>
7662 * config/arc/arc.opt (EB, EL): New Driver options.
7664 2011-01-31 Joseph Myers <joseph@codesourcery.com>
7666 * config/alpha/osf5.opt: New.
7667 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
7669 2011-01-31 Joseph Myers <joseph@codesourcery.com>
7671 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
7673 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
7675 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
7677 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
7678 is an alias of -floop-interchange and that it requires the
7679 Graphite infrastructure.
7680 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
7681 flag_loop_interchange based on the value of flag_tree_loop_linear.
7683 2011-01-31 Jakub Jelinek <jakub@redhat.com>
7684 Richard Guenther <rguenther@suse.de>
7686 PR tree-optimization/47538
7687 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
7688 type instead of r1type, except for comparisons. For right
7689 shifts and comparisons punt if there are mismatches in
7690 sizetype vs. non-sizetype types.
7692 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7694 * doc/sourcebuild.texi (Effective-Target Keywords): Document
7697 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7699 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
7701 * configure: Regenerate.
7703 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7705 * configure.ac (gcc_cv_ld_static_option): Define.
7706 (gcc_cv_ld_dynamic_option): Define.
7707 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
7709 (HAVE_LD_STATIC_DYNAMIC): Update message.
7710 (LD_STATIC_OPTION): Define.
7711 (LD_DYNAMIC_OPTION): Define.
7712 * configure: Regenerate.
7713 * config.in: Regenerate.
7714 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
7715 HAVE_LD_STATIC_DYNAMIC]: Use them.
7717 2011-01-31 Nick Clifton <nickc@redhat.com>
7719 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
7720 registers inside interrupt handlers if the handler is not a leaf
7723 2011-01-31 Nick Clifton <nickc@redhat.com>
7725 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
7726 reg_renumber returning an INVALID_REGNUM.
7728 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
7731 * doc/install.texi: Document host options discarded when cross
7732 configuring target libraries.
7734 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
7737 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
7740 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
7742 (no_real_insns_p, schedule_block, set_priorities): Drop special
7743 treatment of boundary debug insns.
7744 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
7745 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
7746 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
7747 (BOUNDARY_DEBUG_INSN_P): Likewise.
7748 (SCHEDULE_DEBUG_INSN_P): Likewise.
7749 * sched-rgn.c (init_ready_list): Drop special treatment of
7750 boundary debug insns.
7751 * final.c (rest_of_clean-state): Clear notes' BB.
7753 2011-01-31 Alan Modra <amodra@gmail.com>
7755 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
7756 toc relative expressions as we do in print_operand_address.
7758 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
7760 * doc/extend.texi: Follow spelling conventions.
7761 * doc/invoke.texi: Fix a typo.
7763 2011-01-30 Joseph Myers <joseph@codesourcery.com>
7765 * config/hpux11.opt: New.
7766 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
7767 ia64*-*-hpux*): Use hpux11.opt.
7769 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
7771 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
7774 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
7776 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
7779 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
7781 * doc/install.texi (Binaries): Remove outdated reference for
7782 Motorola 68HC11/68HC12 downloads.
7784 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
7786 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
7789 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
7792 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
7795 2011-01-28 Ahmad Sharif <asharif@google.com>
7797 * value-prof.c (check_counter): Corrected error message.
7799 2011-01-29 Jie Zhang <jie@codesourcery.com>
7801 * config/arm/arm.c (arm_legitimize_reload_address): New.
7802 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
7803 arm_legitimize_reload_address.
7804 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
7806 2011-01-28 Ian Lance Taylor <iant@google.com>
7808 * godump.c (go_define): Ignore macros whose definitions include
7809 two adjacent operands.
7811 2011-01-28 Jakub Jelinek <jakub@redhat.com>
7814 * varasm.c (force_const_mem): Store copy of x in desc->constant
7815 instead of x itself.
7816 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
7817 itself into REG_EQUAL note.
7819 2011-01-28 Joseph Myers <joseph@codesourcery.com>
7821 * config/freebsd.opt (posix, rdynamic): New Driver options.
7823 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7825 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
7827 * configure: Regenerate.
7829 2011-01-27 Joseph Myers <joseph@codesourcery.com>
7831 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
7832 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
7834 2011-01-27 Anatoly Sokolov <aesok@post.ru>
7836 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
7837 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
7838 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7839 (s390_preferred_reload_class): Make static. Change return and
7840 'rclass' argument type to reg_class_t.
7842 2011-01-27 Jan Hubicka <jh@suse.cz>
7845 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
7846 (process_function_and_variable_attributes): Check defined weakrefs.
7848 2011-01-27 Martin Jambor <mjambor@suse.cz>
7850 PR tree-optimization/47228
7851 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
7852 build_ref_for_offset.
7854 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7856 * config/spu/spu-elf.h (ASM_SPEC): Remove.
7858 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
7860 PR rtl-optimization/46856
7861 * postreload.c (reload_combine_recognize_const_pattern): Do not
7862 separate cc0 setter and user on cc0 targets.
7864 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
7867 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
7868 passed a VOID_TYPE expression, immediately emit an error and
7869 return error_mark_node.
7871 2011-01-26 Jeff Law <law@redhat.com>
7873 PR rtl-optimization/47464
7874 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
7875 rather than may_trap_p as needed.
7877 2011-01-26 DJ Delorie <dj@redhat.com>
7879 PR rtl-optimization/46878
7880 * combine.c (insn_a_feeds_b): Check for the implicit cc0
7881 setter/user dependency as well.
7883 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
7885 PR rtl-optimization/44469
7886 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
7887 after removing trivially dead basic blocks.
7889 2011-01-26 Joseph Myers <joseph@codesourcery.com>
7891 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
7892 * config/frv/frv.h (LINK_SPEC): Likewise.
7893 * config/i386/netware.h (LINK_SPEC): Likewise.
7894 * config/m68k/linux.h (ASM_SPEC): Likewise.
7895 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
7896 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
7897 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
7898 * config/sparc/linux.h (ASM_SPEC): Likewise.
7899 * config/sparc/linux64.h (ASM_SPEC): Likewise.
7900 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
7902 2011-01-26 Joseph Myers <joseph@codesourcery.com>
7904 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
7905 * config/frv/frv.h (ASM_SPEC): Likewise.
7906 * config/m68k/linux.h (ASM_SPEC): Likewise.
7907 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
7908 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
7909 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
7910 * config/sparc/linux.h (ASM_SPEC): Likewise.
7911 * config/sparc/linux64.h (ASM_SPEC): Likewise.
7912 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
7914 2011-01-26 Joseph Myers <joseph@codesourcery.com>
7916 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
7917 * config/frv/frv.h (LINK_SPEC): Likewise.
7918 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
7920 2011-01-26 Joseph Myers <joseph@codesourcery.com>
7922 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
7923 * config/frv/frv.h (ASM_SPEC): Likewise.
7924 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
7925 * config/m68k/linux.h (ASM_SPEC): Likewise.
7926 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
7927 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
7928 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
7929 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
7930 * config/sparc/linux.h (ASM_SPEC): Likewise.
7931 * config/sparc/linux64.h (ASM_SPEC): Likewise.
7932 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
7933 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
7935 2011-01-26 Steve Ellcey <sje@cup.hp.com>
7938 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
7940 (vec_extract_evenodd_help): Ditto.
7941 (vec_extract_evenv4hi): Ditto.
7942 (vec_extract_oddv4hi): Ditto.
7943 (vec_interleave_lowv2si): Ditto.
7944 (vec_interleave_highv2si): Ditto.
7945 (vec_extract_evenv2si): Ditto.
7946 (vec_extract_oddv2si: Ditto.
7947 (vec_pack_trunc_v2si): Ditto.
7949 2011-01-22 Jan Hubicka <jh@suse.cz>
7952 * cgraph.h (cgraph_local_info): New field can_change_signature.
7953 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
7954 signature can change.
7955 (ipcp_estimate_growth): Call sequence simplify only if calle signature
7957 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
7958 (cgraph_function_versioning): We can not change signature of functions
7959 that don't allow that.
7960 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
7961 (lto_input_node): Likewise.
7962 * ipa-inline.c (compute_inline_parameters): Compute
7963 local.can_change_signature.
7964 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
7965 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
7966 functions that can not change signature.
7967 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
7968 init_cumulative_args): Do not use local calling conventions
7969 for functions that can not change signature.
7971 2011-01-22 Jan Hubicka <jh@suse.cz>
7973 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
7975 2011-01-26 Richard Guenther <rguenther@suse.de>
7977 PR tree-optimization/47190
7978 * cgraphunit.c (process_common_attributes): New function.
7979 (process_function_and_variable_attributes): Use it.
7981 2011-01-26 Richard Guenther <rguenther@suse.de>
7984 * cgraphbuild.c (record_eh_tables): Record reference to personality
7987 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
7990 * sel-sched.c (moveup_expr): Don't let debug insns prevent
7991 non-debug insns from moving up.
7993 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
7996 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
7997 t-dlldir{,-x} fragment for build and add it to tmake_file.
7998 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
7999 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
8000 * config/i386/t-dlldir: New file.
8001 (SHLIB_DLLDIR): Define.
8002 * config/i386/t-dlldir-x: New file.
8003 (SHLIB_DLLDIR): Define.
8004 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
8005 (SHLIB_INSTALL): Use it.
8007 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
8010 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
8011 lower bound of the allowed Thumb-2 coprocessor load/store
8012 index range to -256. Add explaining comment.
8014 2011-01-25 Ian Lance Taylor <iant@google.com>
8016 * godump.c (go_define): Improve lexing of macro expansion to only
8017 accept expressions which match Go spec.
8019 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
8022 * tree.c (handle_dll_attribute): Handle it.
8023 * doc/extend.texi (@item dllexport): Mention it.
8024 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
8026 2011-01-25 Ian Lance Taylor <iant@google.com>
8028 PR tree-optimization/26854
8029 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
8030 (decl_jump_unsafe): Move higher in file, with no other change.
8031 (bind): Set has_jump_unsafe_decl if appropriate.
8032 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
8033 (check_earlier_gotos): Likewise.
8034 (c_check_switch_jump_warnings): Likewise.
8036 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
8038 * doc/invoke.texi (Warning Options): Add missing hyphen.
8039 (-fprofile-dir): Minor grammatical fixes.
8040 (-fbranch-probabilities): Likewise.
8042 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
8046 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8048 (no_real_insns_p, schedule_block, set_priorities): Drop special
8049 treatment of boundary debug insns.
8050 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8051 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
8052 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8053 (BOUNDARY_DEBUG_INSN_P): Likewise.
8054 (SCHEDULE_DEBUG_INSN_P): Likewise.
8055 * sched-rgn.c (init_ready_list): Drop special treatment of
8056 boundary debug insns.
8057 * final.c (rest_of_clean-state): Clear notes' BB.
8059 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8061 * Makefile.in (LAMBDA_H): Removed.
8062 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
8063 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
8064 lambda-trans.o, and tree-loop-linear.o.
8065 (lto-symtab.o): Remove dependence on LAMBDA_H.
8066 (tree-loop-linear.o): Remove rule.
8067 (lambda-mat.o): Same.
8068 (lambda-trans.o): Same.
8069 (lambda-code.o): Same.
8070 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
8071 (tree-vect-slp.o): Same.
8072 * hwint.h (gcd): Moved here.
8073 (least_common_multiple): Same.
8074 * lambda-code.c: Removed.
8075 * lambda-mat.c: Removed.
8076 * lambda-trans.c: Removed.
8077 * lambda.h: Removed.
8078 * tree-loop-linear.c: Removed.
8079 * lto-symtab.c: Do not include lambda.h.
8080 * omega.c (gcd): Removed.
8081 * passes.c (init_optimization_passes): Remove pass_linear_transform.
8082 * tree-data-ref.c (print_lambda_vector): Moved here.
8083 (lambda_vector_copy): Same.
8084 (lambda_matrix_copy): Same.
8085 (lambda_matrix_id): Same.
8086 (lambda_vector_first_nz): Same.
8087 (lambda_matrix_row_add): Same.
8088 (lambda_matrix_row_exchange): Same.
8089 (lambda_vector_mult_const): Same.
8090 (lambda_vector_negate): Same.
8091 (lambda_matrix_row_negate): Same.
8092 (lambda_vector_equal): Same.
8093 (lambda_matrix_right_hermite): Same.
8094 * tree-data-ref.h: Do not include lambda.h.
8095 (lambda_vector): Moved here.
8096 (lambda_matrix): Same.
8097 (dependence_level): Same.
8098 (lambda_transform_legal_p): Removed declaration.
8099 (lambda_collect_parameters): Same.
8100 (lambda_compute_access_matrices): Same.
8101 (lambda_vector_gcd): Same.
8102 (lambda_vector_new): Same.
8103 (lambda_vector_clear): Same.
8104 (lambda_vector_lexico_pos): Same.
8105 (lambda_vector_zerop): Same.
8106 (lambda_matrix_new): Same.
8107 * tree-flow.h (least_common_multiple): Removed declaration.
8108 * tree-parloops.c (lambda_trans_matrix): Moved here.
8110 (LTM_ROWSIZE): Same.
8111 (LTM_COLSIZE): Same.
8112 (LTM_DENOMINATOR): Same.
8113 (lambda_trans_matrix_new): Same.
8114 (lambda_matrix_vector_mult): Same.
8115 (lambda_transform_legal_p): Same.
8116 * tree-pass.h (pass_linear_transform): Removed declaration.
8117 * tree-ssa-loop.c (tree_linear_transform): Removed.
8118 (gate_tree_linear_transform): Removed.
8119 (pass_linear_transform): Removed.
8120 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
8121 flag_loop_interchange.
8123 2011-01-25 Jakub Jelinek <jakub@redhat.com>
8125 PR tree-optimization/47265
8126 PR tree-optimization/47443
8127 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
8128 if name still has some uses.
8130 2011-01-25 Martin Jambor <mjambor@suse.cz>
8132 PR tree-optimization/47382
8133 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
8134 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
8136 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
8138 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
8139 sjlj_except_unwind_info.
8141 2011-01-25 Richard Guenther <rguenther@suse.de>
8143 PR tree-optimization/47426
8144 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
8145 visible functions results escape.
8147 2011-01-25 Jakub Jelinek <jakub@redhat.com>
8150 * config/arm/arm.c (any_sibcall_uses_r3): New function.
8151 (arm_get_frame_offsets): Use it.
8153 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8154 Jakub Jelinek <jakub@redhat.com>
8156 PR tree-optimization/47271
8157 * tree-if-conv.c (bb_postdominates_preds): New.
8158 (if_convertible_bb_p): Call bb_postdominates_preds.
8159 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
8160 (predicate_scalar_phi): Call bb_postdominates_preds.
8162 2011-01-25 Nick Clifton <nickc@redhat.com>
8164 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
8165 * config/rx/rx.c (rx_function_value): Likewise.
8166 (rx_promote_function_mode): Likewise.
8167 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
8168 in order to make it legitimate.
8169 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
8170 make sure that the first operand is the same as the result register.
8171 (addsi3_unspec): Delete.
8172 (subdi3): Do not accept immediate operands.
8173 (subdi3_internal): Likewise.
8175 2011-01-25 Jeff Law <law@redhat.com>
8177 PR rtl-optimization/37273
8178 * ira-costs.c (scan_one_insn): Detect constants living in memory and
8179 handle them like argument loads from stack slots. Do not double
8180 count memory for memory constants and argument loads from stack slots.
8182 2011-01-25 Jakub Jelinek <jakub@redhat.com>
8184 PR tree-optimization/47427
8185 PR tree-optimization/47428
8186 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
8187 coalesce if the new root var would be TREE_READONLY.
8189 2011-01-25 Richard Guenther <rguenther@suse.de>
8192 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
8193 correct type for TBAA.
8195 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8197 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
8198 (close_phi_written_to_memory): Call for_each_index with
8199 dr_indices_valid_in_loop.
8201 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8203 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
8204 when it is initialized.
8206 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8208 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
8209 call to graphite_find_data_references_in_stmt.
8210 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
8211 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
8212 call to graphite_find_data_references_in_stmt.
8213 (analyze_drs_in_stmts): Same.
8214 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
8215 in which the scalar analysis of indices is performed.
8216 (create_data_ref): Same. Update call to dr_analyze_indices.
8217 (find_data_references_in_stmt): Update call to create_data_ref.
8218 (graphite_find_data_references_in_stmt): Same.
8219 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
8221 (create_data_ref): Same.
8222 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
8223 call to create_data_ref.
8225 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8227 * graphite-sese-to-poly.c (build_poly_scop): Move
8228 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
8230 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8232 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
8233 VAR_DECL, PARM_DECL, and RESULT_DECL.
8235 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8237 * graphite-dependences.c (reduction_dr_1): Allow several reductions
8239 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
8240 that have already been marked as PBB_IS_REDUCTION.
8242 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8244 * graphite-scop-detection.c (same_close_phi_node): New.
8245 (remove_duplicate_close_phi): New.
8246 (make_close_phi_nodes_unique): New.
8247 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
8249 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8251 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
8252 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
8253 of both data references to be the same.
8255 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8257 * graphite-dependences.c (build_lexicographical_constraint): Remove
8259 (build_lexicographical_constraint): Adjust call to
8260 ppl_powerset_is_empty.
8261 (dependence_polyhedron): Same.
8262 (graphite_legal_transform_dr): Same.
8263 (graphite_carried_dependence_level_k): Same.
8264 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
8266 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
8268 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8270 * graphite-sese-to-poly.c
8271 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
8272 (close_phi_written_to_memory): New.
8273 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
8276 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8278 * doc/install.texi: Update the expected version number of PPL to 0.11.
8279 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
8280 #if PPL_VERSION_MINOR < 11.
8282 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8284 * graphite-dependences.c: Include graphite-cloog-util.h.
8285 (new_poly_ddr): Inlined into dependence_polyhedron.
8286 (free_poly_ddr): Moved close by new_poly_ddr.
8287 (dependence_polyhedron_1): Renamed dependence_polyhedron.
8288 Early return NULL when ppl_powerset_is_empty returns true.
8289 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
8290 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
8291 (graphite_legal_transform_dr): Call new_poly_ddr.
8292 (graphite_carried_dependence_level_k): Same.
8293 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
8294 (dot_transformed_deps_stmt_1): Removed.
8295 (dot_deps_stmt_1): Call dot_deps_stmt_2.
8296 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
8297 (dot_deps_1): Call dot_deps_2.
8298 * Makefile.in (graphite-dependences.o): Add missing dependence on
8299 graphite-cloog-util.h.
8301 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8303 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
8304 (build_lexicographical_constraint): Same.
8305 (dependence_polyhedron_1): Same.
8306 (graphite_legal_transform_dr): Same.
8307 (graphite_carried_dependence_level_k): Same.
8308 * graphite-ppl.c (ppl_powerset_is_empty): New.
8309 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
8310 * tree-data-ref.c (dump_data_reference): Print the basic block index.
8312 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8314 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
8315 the "a followed by b" relation and document it.
8317 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8319 * graphite-dependences.c (build_lexicographical_constraint): Stop the
8320 iteration when the bag of constraints is empty.
8322 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8324 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
8326 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8328 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
8329 nest and two loop depths as parameters.
8330 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
8331 lst_perfect_nestify.
8333 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8335 * graphite-dependences.c (print_pddr): Call
8336 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
8338 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8340 * graphite-ppl.c (debug_gmp_value): New.
8341 * graphite-ppl.h (debug_gmp_value): Declared.
8343 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
8345 * doc/install.texi: Document availability of cloog-0.16.
8347 2011-01-25 Vladimir Kargov <kargov@gmail.com>
8349 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
8350 invalid postdominance info.
8352 2011-01-24 Jan Hubicka <jh@suse.cz>
8355 * doc/extend.texi (weak pragma): Drop claim that it must
8356 appear before definition.
8357 * varasm.c (merge_weak, declare_weak): Only sanity check
8358 that DECL is not output at a time it is declared weak.
8360 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
8362 * machmode.def: Fixed comments.
8364 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
8366 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
8368 2011-01-24 Paul Koning <ni1d@arrl.net>
8370 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
8373 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
8376 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
8377 (block_info): Add scanned and prev.
8378 (move_or_delete_vzeroupper_2): Return if the basic block
8379 has been scanned and the upper 128bit state is unchanged
8381 (move_or_delete_vzeroupper_1): Return true if the exit
8383 (move_or_delete_vzeroupper): Visit basic blocks using the
8384 work-list based algorithm based on vt_find_locations in
8387 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
8389 2011-01-24 Nick Clifton <nickc@redhat.com>
8391 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
8392 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
8393 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
8394 then define __v850e1__.
8395 * doc/invoke.texi: Document -mv850es.
8397 2011-01-24 Richard Henderson <rth@redhat.com>
8399 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
8400 compound unordered comparisons.
8401 * config/rx/rx.c (rx_split_fp_compare): Remove.
8402 * config/rx/rx-protos.h: Update.
8403 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
8404 (cbranchsf4): Don't call rx_split_fp_compare.
8405 (*cbranchsf4): Use rx_split_cbranch.
8406 (*cmpsf): Don't accept "i" constraint.
8407 (*conditional_branch): Only valid after reload.
8408 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
8410 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
8413 * config/rs6000/altivec.md (vector constant splitters): Add
8414 support for creating vector single precision constants if -mvsx is
8415 used and we would create the constant using Altivec primitives.
8417 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
8418 Richard Sandiford <rdsandiford@googlemail.com>
8420 PR rtl-optimization/47166
8421 * reload1.c (emit_reload_insns): Disable the spill_reg_store
8422 mechanism for PRE_MODIFY and POST_MODIFY.
8423 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
8426 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
8428 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
8430 2011-01-22 Jan Hubicka <jh@suse.cz>
8433 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
8435 2011-01-22 Jan Hubicka <jh@suse.cz>
8437 PR tree-optimization/43884
8439 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
8440 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
8442 2011-01-22 Anatoly Sokolov <aesok@post.ru>
8444 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8445 * config/s390/s390.c (s390_register_move_cost,
8446 s390_memory_move_cost): New.
8447 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
8449 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8452 * except.c (sjlj_assign_call_site_values): Move setting the
8453 crtl->uses_eh_lsda flag to ...
8454 (sjlj_mark_call_sites): ... here.
8455 (sjlj_emit_function_enter): Support NULL dispatch label.
8456 (sjlj_build_landing_pads): In a function with no landing pads
8457 that still has must-not-throw regions, generate code to register
8458 a personality function with empty LSDA.
8460 2011-01-21 Richard Henderson <rth@redhat.com>
8462 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
8464 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
8466 * compare-elim.c: New file.
8467 * Makefile.in (OBJS-common): Add it.
8468 (compare-elim.o): New.
8469 * common.opt (fcompare-elim): New.
8470 * opts.c (default_options_table): Add OPT_fcompare_elim.
8471 * tree-pass.h (pass_compare_elim_after_reload): New.
8472 * passes.c (init_optimization_passes): Add it.
8473 * recog.h: Protect against re-inclusion.
8474 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
8475 * doc/invoke.texi (-fcompare-elim): Document it.
8476 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
8477 * doc/tm.texi: Rebuild.
8479 2011-01-22 Nick Clifton <nickc@redhat.com>
8481 * config/rx/rx.md (cstoresf4): Pass comparison operator to
8482 rx_split_fp_compare.
8484 2011-01-22 Nick Clifton <nickc@redhat.com>
8486 * config/rx/rx.md (UNSPEC_CONST): New.
8487 (deallocate_and_return): Wrap the amount popped off the stack in
8488 an UNSPEC_CONST in order to stop it being rejected by
8489 -mmax-constant-size.
8490 (pop_and_return): Add a "(return)" rtx.
8491 (call): Drop the immediate operand.
8492 (call_internal): Likewise.
8493 (call_value): Likewise.
8494 (call_value_internal): Likewise.
8495 (sibcall_internal): Likewise.
8496 (sibcall_value_internal): Likewise.
8497 (sibcall): Likewise. Generate an explicit call using
8499 (sibcall_value): Likewise.
8500 (mov<>): FAIL if a constant operand is not legitimate.
8501 (addsi3_unpsec): New pattern.
8503 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
8504 (ok_for_max_constant): New function.
8505 (gen_safe_add): New function.
8506 (rx_expand_prologue): Use gen_safe_add.
8507 (rx_expand_epilogue): Likewise.
8508 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
8511 2011-01-21 Jeff Law <law@redhat.com>
8513 PR tree-optimization/47053
8514 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
8515 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
8516 statements are deleted.
8517 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
8518 is nonempty, then purge dead edges and cleanup the CFG.
8520 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
8524 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
8526 * tree-dfa.c (create_var_ann): Mark variable as used.
8528 2011-01-21 Jakub Jelinek <jakub@redhat.com>
8531 * except.c (convert_to_eh_region_ranges): Emit queued no-region
8532 notes from other section in hot/cold partitioning even if
8533 last_action is -3. Increment call_site_base.
8535 PR rtl-optimization/47366
8536 * fwprop.c (forward_propagate_into): Return bool. If
8537 any changes are made, -fnon-call-exceptions is used and
8538 REG_EH_REGION note is present, call purge_dead_edges
8539 and return true if it purged anything.
8540 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
8541 any EH edges were purged.
8543 2011-01-21 Jeff Law <law@redhat.com>
8545 PR rtl-optimization/41619
8546 * caller-save.c (setup_save_areas): Break out code to determine
8547 which hard regs are live across calls by examining the reload chains
8548 so that it is always used.
8549 Eliminate code which checked REG_N_CALLS_CROSSED.
8551 2011-01-21 Jakub Jelinek <jakub@redhat.com>
8553 PR tree-optimization/47355
8554 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
8555 NOP has non-debug uses beyond PHIs in new_bb.
8557 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
8560 * cfgexpand.c (account_used_vars_for_block): Only account vars
8561 that are annotated as used.
8562 (estimated_stack_frame_size): Don't set TREE_USED.
8563 * tree-dfa.c (create_var_ann): Mark variable as used.
8565 2011-01-21 Richard Guenther <rguenther@suse.de>
8568 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
8570 2011-01-21 Richard Guenther <rguenther@suse.de>
8572 PR tree-optimization/47365
8573 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
8574 (vn_reference_lookup_pieces): Adjust.
8575 (vn_reference_lookup): Likewise.
8576 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
8577 (vn_reference_lookup_3): Only look through kills if in
8578 VN_WALKREWRITE mode.
8579 (vn_reference_lookup_pieces): Adjust.
8580 (vn_reference_lookup): Likewise.
8581 (visit_reference_op_load): Likewise.
8582 (visit_reference_op_store): Likewise.
8583 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
8584 (compute_avail): Likewise.
8585 (eliminate): Likewise.
8587 2011-01-21 Jakub Jelinek <jakub@redhat.com>
8589 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
8590 DECL_IGNORED_P non-reg vars if they are used.
8592 PR tree-optimization/47391
8593 * varpool.c (const_value_known_p): Return false if
8596 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
8599 * config/i386/i386.c (ix86_local_alignment): Handle
8600 case for va_list_type_node is nil.
8601 (ix86_canonical_va_list_type): Likewise.
8603 2011-01-21 Alan Modra <amodra@gmail.com>
8605 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
8606 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
8608 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8610 * config/arm/arm.md (define_attr type): Rename f_load
8611 and f_store to f_fpa_load and f_fpa_store. Update.
8612 (write_conflict): Deal with rename fallout.
8613 (*push_fp_multi): Likewise.
8614 * config/arm/fpa.md (f_load): Use f_fpa_load.
8615 (f_store): Use f_fpa_store.
8616 (*movsf_fpa): Likewise.
8617 (*movdf_fpa): Likewise.
8618 (*movxf_fpa): Likewise.
8619 (*thumb2_movsf_fpa): Likewise.
8620 (*thumb2_movdf_fpa): Likewise.
8621 (*thumb2_movxf_fpa): Likewise.
8622 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
8623 f_loadd and f_stored.
8624 (*thumb2_movdi_vfp): Likewise.
8625 (*thumb2_movsf_vfp): Fix attribute to f_loads.
8626 (*thumb2_movsi_vfp): Likewise.
8627 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
8628 Use f_loads instead of f_load.
8629 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
8631 2011-01-20 Anatoly Sokolov <aesok@post.ru>
8633 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8634 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
8635 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8636 (xtensa_mode_dependent_address_p): New function.
8637 (constantpool_address_p): Make static. Change return type to bool.
8638 Change argument type to const_rtx. Use CONST_INT_P predicate.
8640 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
8643 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
8645 2011-01-20 Jakub Jelinek <jakub@redhat.com>
8648 * cfgexpand.c (expand_debug_expr): Instead of generating
8649 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
8652 2011-01-20 Richard Guenther <rguenther@suse.de>
8655 * tree-inline.c (remap_gimple_op_r): Recurse manually for
8656 the pointer operand of MEM_REFs.
8658 2011-01-20 Jakub Jelinek <jakub@redhat.com>
8660 PR tree-optimization/46130
8661 * ipa-split.c (consider_split): If return_bb contains non-virtual
8662 PHIs other than for retval or if split_function would not adjust it,
8665 2011-01-20 Richard Guenther <rguenther@suse.de>
8667 PR tree-optimization/47167
8668 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
8669 Revert previous change, only avoid enumeral type changes.
8671 2011-01-19 Mike Stump <mikestump@comcast.net>
8673 * doc/tm.texi.in (BRANCH_COST): Englishify.
8674 * doc/tm.texi (BRANCH_COST): Likewise.
8676 2011-01-19 Dodji Seketeli <dodji@redhat.com>
8679 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
8680 (gen_scheduled_generic_parms_dies): New functions.
8681 (gen_struct_or_union_type_die): Schedule template parameters DIEs
8682 generation for the end of CU compilation.
8683 (dwarf2out_finish): Generate template parameters DIEs here.
8685 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
8688 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
8689 debug bind stmt on merge edges.
8691 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
8695 * function.c (instantiate_expr): Instantiate incoming rtl of
8696 implicit arguments, and recurse on VALUE_EXPRs.
8697 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
8698 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
8700 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
8702 * c-parser.c (c_parser_for_statement): Initialize
8703 collection_expression.
8705 2011-01-19 Joseph Myers <joseph@codesourcery.com>
8707 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
8709 2011-01-19 Joseph Myers <joseph@codesourcery.com>
8711 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
8712 (LINK_SHLIB_SPEC): Don't use %(link_path).
8713 (SUBTARGET_EXTRA_SPECS): Remove link_path.
8715 2011-01-19 Joseph Myers <joseph@codesourcery.com>
8717 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
8718 (NO_SHARED_LIB_SUPPORT): Remove.
8719 (LINK_SHLIB_SPEC): Remove one conditional definition.
8721 2011-01-19 Joseph Myers <joseph@codesourcery.com>
8723 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
8725 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
8726 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
8727 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
8728 %{call_shared} and conditionals on these options not being passed.
8729 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
8732 2011-01-19 Jakub Jelinek <jakub@redhat.com>
8734 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
8737 * ipa-split.c: Spelling fixes.
8739 2011-01-19 Richard Henderson <rth@redhat.com>
8741 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
8742 (*mulsi3): Likewise.
8744 * longlong.h [__mn10300__] (count_leading_zeros): New.
8745 [__mn10300__] (umul_ppmm, smul_ppmm): New.
8746 [__mn10300__] (add_ssaaaa, subddmmss): New.
8747 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
8748 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
8750 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8752 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
8754 2011-01-19 Richard Henderson <rth@redhat.com>
8756 * config/mn10300/mn10300.md (addsi3_flags): New.
8757 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
8758 (subsi3_flags, subc_internal, subdi3): New.
8759 (subdi3_internal, *subdi3_degenerate): New.
8760 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
8762 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
8763 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
8764 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
8765 * config/mn10300/mn10300-protos.h: Update.
8766 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
8767 (return_ret): Likewise. Rename from return_internal_regs.
8768 (return_internal): Remove.
8770 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
8771 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
8772 (mn10300_legitimate_constant_p): Likewise.
8773 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
8774 (mn10300_frame_size): New.
8775 (mn10300_expand_prologue): Use it.
8776 (mn10300_expand_epilogue): Likewise.
8777 (mn10300_initial_offset): Likewise.
8778 * config/mn10300/mn10300-protos.h: Update.
8779 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
8780 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
8781 (prologue, epilogue, return_internal): Tidy output code.
8782 (mn10300_store_multiple_operation, return): Likewise.
8783 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
8784 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
8785 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
8786 (load_pic, am33_load_pic): New.
8787 (mn10300_load_pic0, mn10300_load_pic1): New.
8789 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
8790 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
8791 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
8792 (cc_flags_for_mode, cc_flags_for_code): New.
8793 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
8794 overflow flag is not valid. Validate that the flags we need
8795 for the comparison are valid.
8796 (mn10300_output_cmp): Remove.
8797 (mn10300_output_add): New.
8798 (mn10300_select_cc_mode): Use cc_flags_for_code.
8799 (mn10300_split_cbranch): New.
8800 (mn10300_match_ccmode): New.
8801 (mn10300_split_and_operand_count): New.
8802 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
8804 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
8805 (addsi3): ... here. Use mn10300_output_add.
8806 (*addsi3_flags): New.
8807 (*am33_subsi3, *mn10300_subsi3): Merge...
8808 (subsi3): ... here. Use attribute isa.
8809 (*subsi3_flags): New.
8810 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
8812 (*am33_andsi3, *mn10300_andsi3): Merge...
8814 (*andsi3_flags): New.
8815 (andsi3 splitters): New.
8816 (*am33_iorsi3, *mn10300_iorsi3): Merge...
8818 (*iorsi3_flags): New.
8819 (*am33_xorsi3, *mn10300_xorsi3): Merge...
8821 (*xorsi3_flags): New.
8822 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
8823 (one_cmplsi2): ... here.
8824 (*one_cmplsi2_flags): New.
8825 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
8826 instead of "dax" in constraints. Use mn10300_split_cbranch.
8827 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
8828 use matching constraints to eliminate a self-comparison.
8829 (*integer_conditional_branch): Rename from integer_conditional_branch.
8830 Use int_mode_flags to match CC_REG.
8831 (*cbranchsi4_btst, *btstsi): New.
8832 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
8833 mn10300_split_cbranch.
8834 (*am33_cmpsf): Rename from am33_cmpsf.
8835 (*float_conditional_branch): Rename from float_conditional_branch.
8836 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
8837 (zero_extendqisi2): ... here.
8838 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
8839 (zero_extendhisi2): ... here.
8840 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
8841 (extendqisi2): ... here.
8842 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
8843 (extendhisi2): ... here.
8844 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
8845 (ashlsi3): ... here.
8846 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
8847 (lshrsi3): ... here.
8848 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
8849 (ashrsi3): ... here.
8850 (consecutive add peephole): Remove.
8851 * config/mn10300/predicates.md (label_ref_operand): New.
8852 (int_mode_flags): New.
8853 (CCZN_comparison_operator): New.
8855 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
8856 (throughput_42_latency_43): New reservation.
8857 (mulsidi3, umulsidi3): New expanders.
8858 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
8859 the MDR register to allocation; separately allocate the low and
8860 high parts of the DImode result.
8861 (umulsidi3_internal): Similarly.
8862 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
8863 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
8864 (udivsi3, umodsi3): Remove.
8865 (udivmodsi4, divmodsi4): New expanders.
8866 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
8867 (*divmodsi4): Simiarly.
8868 (ext_internal): New.
8870 * config/mn10300/constraints.md ("z"): New constraint.
8871 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
8872 (FIXED_REGISTERS): Don't fix MDR.
8873 (CALL_USED_REGSITERS): Reformat nicely.
8874 (REG_ALLOC_ORDER): Add MDR.
8875 (enum regclass): Add MDR_REGS.
8876 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
8877 (IRA_COVER_CLASSES): Add MDR_REGS.
8878 (REGNO_REG_CLASS): Handle MDR_REG.
8879 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
8880 (mn10300_register_move_cost): Likewise.
8881 * config/mn10300/mn10300.md (MDR_REG): New.
8882 (*movsi_internal): Handle moves to/from MDR_REGS.
8884 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
8886 (mn10300_secondary_reload): Tidy combination reload classes.
8887 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
8888 addresses for AM33. Allow symbolic offsets for reg+imm.
8889 (mn10300_regno_in_class_p): New.
8890 (mn10300_legitimize_reload_address): New.
8891 * config/mn10300/mn10300.h (enum reg_class): Remove
8892 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
8893 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
8895 (REG_CLASS_NAMES): Update to match.
8896 (REG_CLASS_CONTENTS): Likewise.
8897 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
8898 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
8899 (REGNO_IN_RANGE_P): Remove.
8900 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
8901 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
8902 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
8903 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
8904 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
8905 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
8906 (REGNO_GENERAL_P): New.
8907 (HAVE_POST_MODIFY_DISP): New.
8908 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
8909 (LEGITIMIZE_RELOAD_ADDRESS): New.
8910 * config/mn10300/mn10300-protos.h: Update.
8912 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
8913 DATA_REGS for AM33 stack-pointer destination.
8914 (mn10300_preferred_output_reload_class): Likewise.
8915 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
8916 into a form appropriate for ...
8917 (TARGET_SECONDARY_RELOAD): New.
8918 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
8919 * config/mn10300/mn10300-protos.h: Update.
8920 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
8921 reload_insi; use the "A" constraint for the scratch; handle AM33
8922 moves of sp to non-address registers.
8924 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
8925 (*movqi_internal): ... here.
8926 (*am33_movhi, *mn10300_movhi): Merge into...
8927 (*movhi_internal): ... here.
8928 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
8929 as the source/destination of moves from/to SP.
8930 (movsf): Only allow for AM33-2.
8931 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
8932 any integer constant constraint. Only allow for AM33-2. Tidy
8933 all of the alternative outputs.
8934 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
8935 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
8937 (udivsi3, umodsi3): New patterns for MN103 only.
8939 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
8941 * doc/tm.texi.in: Spell out that a lack of register class unions
8943 * doc/tm.texi: Regenerate.
8945 2011-01-19 Jakub Jelinek <jakub@redhat.com>
8947 PR rtl-optimization/47337
8948 * dce.c (check_argument_store): New function.
8949 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
8951 PR tree-optimization/47290
8952 * tree-eh.c (infinite_empty_loop_p): New function.
8953 (cleanup_empty_eh): Use it.
8955 2011-01-18 Steve Ellcey <sje@cup.hp.com>
8958 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
8959 (a64_expand_widen_sum): Ditto.
8960 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
8961 (vec_extract_evenodd_help): Ditto.
8962 (vec_extract_evenv4hi): Ditto.
8963 (vec_extract_oddv4hi): Ditto.
8964 (vec_extract_evenv2si): Ditto.
8965 (vec_extract_oddv2si): Ditto.
8966 (vec_extract_evenv2sf): Ditto.
8967 (vec_extract_oddv2sf): Ditto.
8968 (vec_pack_trunc_v4hi: Ditto.
8969 (vec_pack_trunc_v2si): Ditto.
8970 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
8971 (vec_interleave_highv8qi): Ditto.
8973 (vec_extract_oddv8qi): Ditto.
8974 (vec_interleave_lowv4hi): Ditto.
8975 (vec_interleave_highv4hi): Ditto.
8976 (vec_interleave_lowv2si): Ditto.
8977 (vec_interleave_highv2si): Ditto.
8979 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8981 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
8982 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
8983 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
8984 (pa_c_mode_for_suffix): New.
8985 (TARGET_EXPAND_BUILTIN): Define.
8986 (TARGET_C_MODE_FOR_SUFFIX): Define.
8987 (pa_builtins): Define.
8988 (pa_init_builtins): Register __float128 type and init new support
8990 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
8991 * config/pa/quadlib.c (_U_Qfcopysign): New.
8993 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
8996 * explow.c (allocate_dynamic_stack_space): Do not assume more than
8997 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
9000 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9002 PR tree-optimization/47179
9003 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
9004 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
9006 2011-01-18 Richard Guenther <rguenther@suse.de>
9008 PR rtl-optimization/47216
9009 * emit-rtl.c: Include tree-flow.h.
9010 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
9011 of replicating it with different semantics.
9012 * Makefile.in (emit-rtl.o): Adjust.
9014 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9016 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
9017 (cortex_a9_dp): Handle neon types correctly.
9019 2011-01-18 Jakub Jelinek <jakub@redhat.com>
9021 PR rtl-optimization/47299
9022 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
9023 subtarget. Use normal multiplication if both operands are constants.
9024 * expmed.c (expand_widening_mult): Don't try to optimize constant
9025 multiplication if op0 has VOIDmode. Convert op1 constant to mode
9028 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9030 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
9031 spacing after 'e.g.', typos, comma, hyphenation.
9033 2011-01-17 Richard Henderson <rth@redhat.com>
9035 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
9036 (rx_restricted_mem_operand): New.
9037 (rx_shift_operand): Use register_operand.
9038 (rx_source_operand, rx_compare_operand): Likewise.
9039 * config/rx/rx.md (addsi3_flags): New expander.
9040 (adddi3): Rewrite as expander.
9041 (adc_internal, *adc_flags, adddi3_internal): New patterns.
9042 (subsi3_flags): New expander.
9043 (subdi3): Rewrite as expander.
9044 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
9046 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
9047 (rx_init_builtins): Remove sat builtin.
9048 (rx_expand_builtin): Likewise.
9049 * config/rx/rx.md (ssaddsi3): New.
9050 (*sat): Rename from sat. Represent the CC_REG input.
9052 * config/rx/predicates.md (rshift_operator): New.
9053 * config/rx/rx.c (rx_expand_insv): Remove.
9054 * config/rx/rx-protos.h: Update.
9055 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
9056 operand to the canonical position.
9057 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
9058 (*bitclr, *bitclr_in_memory): Similarly.
9059 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
9060 (insv): Retain the zero_extract in the expansion.
9062 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
9063 (bswaphi2, bitinvert, revw): Likewise.
9065 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
9066 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
9067 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
9068 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
9069 (bitset, bitset_in_memory): Likewise.
9070 (bitinvert, bitinvert_in_memory): Likewise.
9071 (bitclr, bitclr_in_memory): Likewise.
9072 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
9073 (rx_strend, rx_cmpstrn): Likewise.
9074 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
9075 (bitop peep2 patterns): Remove.
9077 * config/rx/rx.c (rx_match_ccmode): New.
9078 * config/rx/rx-protos.h: Update.
9079 * config/rx/rx.md (abssi2): Clobber, don't set flags.
9080 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
9081 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
9082 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
9083 (fix_truncsfsi2, floatsisf2): Likewise.
9084 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
9085 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
9086 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
9087 (*subsi3_flags, *xorsi3_flags): New.
9089 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
9091 * config/rx/rx.c (rx_print_operand): Remove workaround for
9092 unsplit comparison operations.
9094 * config/rx/rx.md (movsicc): Split after reload.
9095 (*movsicc): Merge *movsieq and *movsine via match_operator.
9096 (*stcc): New pattern.
9098 * config/rx/rx.c (rx_float_compare_mode): Remove.
9099 * config/rx/rx.h (rx_float_compare_mode): Remove.
9100 * config/rx/rx.md (cstoresi4): Split after reload.
9101 (*sccc): New pattern.
9103 * config/rx/predicates.md (label_ref_operand): New.
9104 (rx_z_comparison_operator): New.
9105 (rx_zs_comparison_operator): New.
9106 (rx_fp_comparison_operator): New.
9107 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
9108 Validate that the flags are set properly for the comparison.
9109 (rx_gen_cond_branch_template): Remove.
9110 (rx_cc_modes_compatible): Remove.
9111 (mode_from_flags): New.
9112 (flags_from_code): Rename from flags_needed_for_conditional.
9113 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
9114 (rx_select_cc_mode): Likewise.
9115 (rx_split_fp_compare): New.
9116 (rx_split_cbranch): New.
9117 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
9118 (*cbranchsi4): Use match_operator and rx_split_cbranch.
9119 (*cbranchsf4): Similarly.
9120 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
9121 match_operator and rx_split_cbranch.
9122 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
9123 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
9124 (*cmpsi): Rename from cmpsi.
9125 (*tstsi): Rename from tstsi.
9126 (*cmpsf): Rename from cmpsf; use CC_Fmode.
9127 (*conditional_branch): Rename from conditional_branch.
9128 (*reveresed_conditional_branch): Remove.
9129 (b<code>): Remove expander.
9130 * config/rx/rx-protos.h: Update.
9132 * config/rx/rx.c (rx_compare_redundant): Remove.
9133 * config/rx/rx.md (cmpsi): Don't use it.
9134 * config/rx/rx-protos.h: Update.
9136 * config/rx/rx-modes.def (CC_F): New mode.
9137 * config/rx/rx.c (rx_select_cc_mode): New.
9138 * config/rx/rx.h (SELECT_CC_MODE): Use it.
9139 * config/rx/rx-protos.h: Update.
9141 2011-01-17 Richard Henderson <rth@redhat.com>
9143 * except.c (dump_eh_tree): Fix stray ; after for statement.
9145 2011-01-17 Richard Guenther <rguenther@suse.de>
9147 PR tree-optimization/47313
9148 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
9149 handling before copying the body. Properly deal with
9150 by-reference result in SSA form.
9152 2011-01-17 Ian Lance Taylor <iant@google.com>
9155 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
9156 (struct_value_alias_set): Don't define.
9157 (sparc_option_override): Don't set sparc_sr_alias_set and
9158 struct_value_alias_set.
9159 (save_or_restore_regs): Use gen_frame_mem rather than calling
9161 (sparc_struct_value_rtx): Likewise.
9163 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
9166 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
9167 (_mm_maskstore_pd): Likewise.
9168 (_mm_maskload_ps): Likewise.
9169 (_mm_maskstore_ps): Likewise.
9170 (_mm256_maskload_pd): Change mask to __m256i.
9171 (_mm256_maskstore_pd): Likewise.
9172 (_mm256_maskload_ps): Likewise.
9173 (_mm256_maskstore_ps): Likewise.
9175 * config/i386/i386-builtin-types.def: Updated.
9176 (ix86_expand_special_args_builtin): Likewise.
9178 * config/i386/i386.c (bdesc_special_args): Update
9179 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
9180 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
9181 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
9182 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
9184 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
9185 Use <avxpermvecmode> on mask register.
9186 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
9188 2011-01-17 Olivier Hainque <hainque@adacore.com>
9189 Michael Haubenwallner <michael.haubenwallner@salomon.at>
9190 Eric Botcazou <ebotcazou@adacore.com>
9193 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
9194 if <= USHRT_MAX in 32-bit mode.
9196 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9198 * doc/install.texi (Configuration, Specific): Wrap long
9199 lines in examples. Allow line wrapping in long options
9200 and URLs where beneficial for PDF output.
9202 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
9204 * config/mips/mips.c (mips_classify_symbol): Don't return
9205 SYMBOL_PC_RELATIVE for nonlocal labels.
9207 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
9209 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
9211 2011-01-15 Jan Hubicka <jh@suse.cz>
9213 PR tree-optimization/47276
9214 * ipa.c (function_and_variable_visibility): Do not try to mark alias
9215 declarations as needed.
9217 2011-01-15 Martin Jambor <mjambor@suse.cz>
9219 * common.opt (fdevirtualize): New flag.
9220 * doc/invoke.texi (Option Summary): Document it.
9221 * opts.c (default_options_table): Add devirtualize flag.
9222 * ipa-prop.c (detect_type_change): Return immediately if
9223 devirtualize flag is not set.
9224 (detect_type_change_ssa): Likewise.
9225 (compute_known_type_jump_func): Likewise.
9226 (ipa_analyze_virtual_call_uses): Likewise.
9228 2011-01-14 Martin Jambor <mjambor@suse.cz>
9230 PR tree-optimization/45934
9231 PR tree-optimization/46302
9232 * ipa-prop.c (type_change_info): New type.
9233 (stmt_may_be_vtbl_ptr_store): New function.
9234 (check_stmt_for_type_change): Likewise.
9235 (detect_type_change): Likewise.
9236 (detect_type_change_ssa): Likewise.
9237 (compute_complex_assign_jump_func): Check for dynamic type change.
9238 (compute_complex_ancestor_jump_func): Likewise.
9239 (compute_known_type_jump_func): Likewise.
9240 (compute_scalar_jump_functions): Likewise.
9241 (ipa_analyze_virtual_call_uses): Likewise.
9242 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
9244 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9246 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
9247 * config/i386/i386.opt (msse5): New Alias.
9249 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9251 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
9252 * config/sparc/linux64.h (CC1_SPEC): Likewise.
9253 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9254 * config/sparc/sparc.h (CC1_SPEC): Likewise.
9256 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9258 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
9260 * config/sparc/linux64.h (CC1_SPEC): Likewise.
9261 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9262 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
9263 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
9265 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
9267 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9269 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
9271 2011-01-14 Mike Stump <mikestump@comcast.net>
9273 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
9274 * config/fr30/fr30.md: Likweise
9275 (movsi_push): Likewise.
9276 (movsi_pop): Likewise.
9277 (enter_func): Likewise.
9278 * config/moxie/moxie.md (movsi_push): Likewise.
9279 (movsi_pop): Likewise.
9281 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9283 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
9284 %{no_archive} %{exact_version}.
9285 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
9286 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
9287 %{no_archive} %{exact_version}.
9288 * config/mips/openbsd.h (LINK_SPEC): Likewise.
9289 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
9290 * config/mips/vxworks.h: Likewise.
9292 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9294 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
9296 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9298 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
9299 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
9301 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9303 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
9306 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9308 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
9310 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
9311 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
9313 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
9314 Don't handle -shlib.
9316 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9318 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
9319 (CC1_SPEC): Don't handle -profile.
9321 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9323 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
9324 * config/mips/mips.h (CC1_SPEC): Likewise.
9326 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9328 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
9329 * config/mips/mips.h (CC1_SPEC): Likewise.
9331 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9333 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
9334 * config/m32r/linux.h (LINK_SPEC): Likewise.
9335 * config/mips/linux.h (LINK_SPEC): Likewise.
9336 * config/mips/linux64.h (LINK_SPEC): Likewise.
9337 * config/sparc/linux.h (LINK_SPEC): Likewise.
9338 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
9339 LINK_SPEC): Likewise.
9340 * config/xtensa/linux.h (LINK_SPEC): Likewise.
9342 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9344 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
9346 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
9348 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9350 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
9351 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
9353 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9355 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
9357 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9359 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
9360 supports -Bstatic/-Bdynamic.
9361 * configure: Regenerate.
9363 2011-01-14 Jan Hubicka <jh@suse.cz>
9364 Jack Howarth <howarth@bromo.med.uc.edu>
9367 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
9368 when checking debug_info_level. Test write_symbols instead of
9369 debug_hooks->var_location when setting flag_var_tracking_uninit.
9371 2011-01-14 Richard Guenther <rguenther@suse.de>
9373 PR tree-optimization/47179
9374 * target.def (ref_may_alias_errno): New target hook.
9375 * targhooks.h (default_ref_may_alias_errno): Declare.
9376 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
9377 (default_ref_may_alias_errno): New function.
9378 * target.h (struct ao_ref_s): Declare.
9379 * tree-ssa-alias.c: Include target.h.
9380 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
9381 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
9382 (targhooks.o): Likewise.
9383 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
9384 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
9386 2011-01-14 Richard Guenther <rguenther@suse.de>
9388 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
9390 2011-01-14 Richard Guenther <rguenther@suse.de>
9392 PR tree-optimization/47280
9393 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
9395 (tree_ssa_forward_propagate_single_use_vars): Deal with
9396 CFG changes from associate_plusminus.
9398 2011-01-14 Richard Guenther <rguenther@suse.de>
9402 2011-01-11 Richard Guenther <rguenther@suse.de>
9404 PR tree-optimization/46076
9405 * tree-ssa.c (useless_type_conversion_p): Conversions from
9406 unprototyped to empty argument list function types are useless.
9408 2011-01-14 Richard Guenther <rguenther@suse.de>
9410 PR tree-optimization/47286
9411 * tree-ssa-structalias.c (new_var_info): Register variables are global.
9413 2011-01-14 Martin Jambor <mjambor@suse.cz>
9416 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
9418 2011-01-13 Anatoly Sokolov <aesok@post.ru>
9420 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
9421 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9422 * config/xtensa/xtensa.c (xtensa_libcall_value,
9423 xtensa_function_value_regno_p): New functions.
9424 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9426 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
9429 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
9431 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
9432 New function prototype.
9433 * config/i386/winnt.c (i386_pe_assemble_visibility):
9434 Warn only if attribute was specified by user.
9436 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
9439 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
9441 (floatunsdidf2_fcfidu): Ditto.
9443 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9445 * config/s390/s390.c (print_operand_address): Replace 'error' with
9446 'output_operand_lossage'.
9447 (print_operand): Likewise.
9449 2011-01-13 Jeff Law <law@redhat.com>
9451 PR rtl-optimization/39077
9452 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
9453 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
9454 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
9455 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
9456 * gcse.c (prune_insertions_deletions): New function.
9457 (compute_pre_data): Use it.
9459 2011-01-13 Dodji Seketeli <dodji@redhat.com>
9462 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
9464 (prune_unused_types_mark): Use it.
9466 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
9468 PR rtl-optimization/45352
9469 * sel-sched.c: Update copyright years.
9470 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
9471 in the advancing loop when we have issued issue_rate insns.
9473 2011-01-12 Richard Henderson <rth@redhat.com>
9475 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
9476 (TARGET_MD_ASM_CLOBBERS): New.
9478 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
9479 (TARGET_DELEGITIMIZE_ADDRESS): New.
9481 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
9482 (clzsi2, *bsch): New patterns.
9484 * config/mn10300/mn10300.md (INT): New mode iterator.
9485 (*mov<INT>_clr): New pattern, and peep2 to generate it.
9487 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
9488 flag_split_wide_types.
9490 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
9491 (mn10300_trampoline_init): Rewrite without a template, an immediate
9492 load and a direct branch.
9493 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
9495 2011-01-12 Anatoly Sokolov <aesok@post.ru>
9497 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9498 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
9499 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
9500 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9502 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
9505 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
9508 2011-01-12 Jan Hubicka <jh@suse.cz>
9511 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
9512 (PLUGIN_COND_CLOSE): New macro.
9513 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
9515 2011-01-12 Richard Guenther <rguenther@suse.de>
9518 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
9519 register variables in a MEM_REF.
9521 2011-01-12 Joseph Myers <joseph@codesourcery.com>
9523 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
9524 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
9525 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
9526 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
9527 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
9528 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
9529 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
9530 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
9531 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
9532 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
9533 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
9534 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
9535 * config/gnu-user.h: New. Copied from linux.h.
9536 (LINUX_TARGET_STARTFILE_SPEC): Rename to
9537 GNU_USER_TARGET_STARTFILE_SPEC.
9538 (LINUX_TARGET_ENDFILE_SPEC): Rename to
9539 GNU_USER_TARGET_ENDFILE_SPEC.
9540 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
9541 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
9542 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
9543 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
9544 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
9545 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
9546 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
9547 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
9548 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
9549 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
9550 * config/arm/linux-eabi.h (CC1_SPEC): Use
9551 GNU_USER_TARGET_CC1_SPEC.
9552 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
9553 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
9554 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
9555 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
9556 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
9557 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
9558 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
9559 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
9561 2011-01-12 Richard Guenther <rguenther@suse.de>
9564 * doc/invoke.texi (ffast-math): Document it is turned on
9567 2011-01-12 Jan Hubicka <jh@suse.cz>
9569 PR tree-optimization/47233
9570 * opts.c (common_handle_option): Disable ipa-reference with profile
9573 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
9575 * c-parser.c (c_parser_objc_at_property_declaration): Improved
9578 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
9580 * c-parser.c (c_lex_one_token): Updated and reindented some
9581 comments. No changes in code.
9583 2011-01-11 Ian Lance Taylor <iant@google.com>
9585 * godump.c (go_output_var): Don't output the variable if there is
9586 already a type with the same name.
9588 2011-01-11 Ian Lance Taylor <iant@google.com>
9590 * godump.c (go_format_type): Don't generate float80.
9592 2011-01-11 Richard Henderson <rth@redhat.com>
9594 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
9595 declaration. Rewrite for both speed and size.
9596 (mn10300_address_cost_1): Remove.
9597 (mn10300_register_move_cost): New.
9598 (mn10300_memory_move_cost): New.
9599 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
9600 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
9601 extensions, shifts, BSWAP, CLZ.
9602 (mn10300_wide_const_load_uses_clr): Remove.
9603 (TARGET_REGISTER_MOVE_COST): New.
9604 (TARGET_MEMORY_MOVE_COST): New.
9605 * config/mn10300/mn10300-protos.h: Update.
9606 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
9608 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
9609 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
9610 * config/mn10300/mn10300-protos.h: Update.
9611 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
9612 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
9613 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
9614 (*test_int_bitfield, *test_byte_bitfield): Remove.
9615 (*bit_test, *subreg_bit_test): Remove.
9616 * config/mn10300/predicates.md (const_8bit_operand): Remove.
9618 * config/mn10300/constraints.md ("c"): Rename from "A".
9619 ("A", "D"): New constraint letters.
9620 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
9621 (fmssf4, fnmasf4, fnmssf4): Likewise.
9623 * config/mn10300/mn10300.md (isa): New attribute.
9624 (enabled): New attribute.
9626 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
9627 (abssf2, negsf2): Define only for hardware fp.
9628 (sqrtsf2): Reformat.
9629 (addsf3, subsf3, mulsf3): Merge expander and insn.
9631 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
9632 (DEBUGGER_AUTO_OFFSET): Remove.
9633 (DEBUGGER_ARG_OFFSET): Remove.
9635 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
9636 Emit register stores with the same offsets as the hardware.
9637 (mn10300_store_multiple_operation): Don't check that the register
9638 save offsets are monotonic.
9639 * config/mn10300/mn10300-protos.h: Update.
9641 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
9643 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
9644 in terms of the value on the stack, not the MDR register.
9646 2011-01-11 Jan Hubicka <jh@suse.cz>
9650 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
9651 (symbol_alias_set_destroy, symbol_alias_set_contains,
9652 propagate_aliases_backward): Declare.
9653 * lto-streamer-out.c (struct sets): New sturcture.
9654 (trivally_defined_alias): New function.
9655 (output_alias_pair_p): Rewrite.
9656 (output_unreferenced_globals): Fix output of alias pairs.
9657 (produce_symtab): Likewise.
9658 * ipa.c (function_and_variable_visibility): Set weak alias destination
9660 * varasm.c (symbol_alias_set_t): Remove.
9661 (symbol_alias_set_destroy): Export.
9662 (propagate_aliases_forward, propagate_aliases_backward): New functions
9664 (compute_visible_aliases): ... this one; remove.
9665 (trivially_visible_alias): New
9666 (trivially_defined_alias): New.
9667 (remove_unreachable_alias_pairs): Rewrite.
9668 (finish_aliases_1): Reorganize code checking if alias is defined.
9669 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
9672 2011-01-11 Richard Guenther <rguenther@suse.de>
9674 PR tree-optimization/46076
9675 * tree-ssa.c (useless_type_conversion_p): Conversions from
9676 unprototyped to empty argument list function types are useless.
9678 2011-01-11 Richard Guenther <rguenther@suse.de>
9681 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
9682 volatile MEMs as MEM_READONLY_P.
9684 2011-01-11 Richard Guenther <rguenther@suse.de>
9686 PR tree-optimization/47239
9687 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
9689 2011-01-11 Jeff Law <law@redhat.com>
9691 PR tree-optimization/47086
9692 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
9693 IVs from statements that might throw.
9695 2011-01-10 Jan Hubicka <jh@suse.cz>
9698 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
9700 2011-01-10 Jan Hubicka <jh@suse.cz>
9703 * profile.c (read_profile_edge_counts): Ignore profile inconistency
9704 when correcting profile.
9706 2011-01-10 Jan Hubicka <jh@suse.cz>
9709 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
9711 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
9712 Restore DECL_FINI_PRIORITY.
9714 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9716 * doc/gimple.texi: Fix quoting of multi-word return values in
9717 @deftypefn statements. Ensure presence of return value. Wrap
9718 overlong @deftypefn lines.
9719 (is_gimple_operand, is_gimple_min_invariant_address): Remove
9720 descriptions of removed functions.
9721 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
9722 of multi-word return value in @deftypefn statement.
9724 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9726 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
9727 (Conditional Expressions, Logical Operators)
9728 (Statement and operand traversals): Do not indent smallexample
9729 code. Fix duplicate function argument in example.
9731 2011-01-10 Jeff Law <law@redhat.com>
9733 PR tree-optimization/47141
9734 * ipa-split.c (split_function): Handle case where we are
9735 returning a value and the return block has a virtual operand phi.
9737 2011-01-10 Jan Hubicka <jh@suse.cz>
9739 PR tree-optimization/47234
9740 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
9741 (pass_feedback_split_functions): Declare.
9742 * passes.c (init_optimization_passes): Add ipa-split as subpass of
9744 * ipa-split.c (gate_split_functions): Update comments; disable
9745 split-functions for profile_arc_flag and branch_probabilities.
9746 (gate_feedback_split_functions): New function.
9747 (execute_feedback_split_functions): New function.
9748 (pass_feedback_split_functions): New global var.
9750 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
9753 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
9754 calling gimple_call_set_cannot_inline.
9756 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
9758 * config/darwin-sections.def: Remove unused section.
9760 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
9763 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
9765 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
9768 * c-parser.c (c_parser_declaration_or_fndef): Improved
9771 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
9773 * config/i386/winnt.c (i386_pe_start_function): Make sure
9774 to switch back to function's section.
9776 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
9780 * plugin.c: Move include of dlfcn.h from here...
9781 * system.h: ... to here.
9783 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9785 * doc/cpp.texi (C++ Named Operators): Fix markup for header
9787 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
9788 two extra empty pages in PDF output.
9790 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
9793 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
9794 for error recovery purposes behave as if it was not specified so
9795 that the default type is usd.
9797 2011-01-07 Jan Hubicka <jh@suse.cz>
9799 PR tree-optmization/46469
9800 * ipa.c (function_and_variable_visibility): Clear needed flags on
9801 nodes with external decls; handle weakrefs merging correctly.
9803 2011-01-07 Joseph Myers <joseph@codesourcery.com>
9805 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
9808 2011-01-07 Jan Hubicka <jh@suse.cz>
9810 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
9811 and no longer claim that gold is required for linker plugin.
9812 * configure: Regenerate.
9813 * gcc.c (PLUGIN_COND): New macro.
9814 (LINK_COMMAND_SPEC): Use it.
9815 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
9816 * config.in (HAVE_LTO_PLUGIN): New.
9817 * configure.ac (--with-lto-plugin): New parameter; autodetect
9820 2011-01-07 Jan Hubicka <jh@suse.cz>
9822 PR tree-optimization/46367
9823 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
9824 when we can update original.
9825 (cgraph_mark_inline_edge): Sanity check.
9826 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
9828 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9830 * config/spu/spu.h (ASM_COMMENT_START): Define.
9832 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
9836 (SWITCH_KEEP_FOR_GCC): Likewise.
9837 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
9838 (do_spec_1): Handle "%>".
9840 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
9842 2011-01-07 Jakub Jelinek <jakub@redhat.com>
9845 * config/i386/i386.c (ix86_delegitimize_address): If
9846 simplify_gen_subreg fails, return orig_x.
9849 * value-prof.c (gimple_stringop_fixed_value): Handle
9850 lhs of the call properly.
9852 2011-01-07 Jan Hubicka <jh@suse.cz>
9855 * lto-opt.c (lto_reissue_options): Set flag_shlib.
9857 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
9859 * target.def (function_switched_text_sections): New hook.
9860 * doc/tm.texi: Regenerated.
9861 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
9862 * final.c (default_function_switched_text_sections): New.
9863 (final_scan_insn): Call function_switched_text_sections when a
9864 mid-function section change occurs.
9865 * output.h (default_function_switched_text_sections): Declare.
9866 * config/darwin-protos.h (darwin_function_switched_text_sections):
9868 * config/darwin.c (darwin_function_switched_text_sections): New.
9869 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
9871 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
9873 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
9874 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
9875 the secondary code fragment when outputting for DWARF == 2.
9877 2011-01-07 Anatoly Sokolov <aesok@post.ru>
9879 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9880 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
9882 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
9883 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9885 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
9888 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
9889 when it is not empty.
9891 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
9894 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
9895 (case ${target}): Add btver1.
9896 * config/i386/driver-i386.c (host_detect_local_cpu): Let
9897 -march=native recognize btver1 processors.
9898 * config/i386/i386-c.c (ix86_target_macros_internal): Add
9899 btver1 def_and_undef
9900 * config/i386/i386.c (struct processor_costs btver1_cost): New
9902 (m_BTVER1): New definition.
9903 (m_AMD_MULTIPLE): Includes m_BTVER1.
9904 (initial_ix86_tune_features): Add btver1 tune.
9905 (processor_target_table): Add btver1 entry.
9906 (static const char *const cpu_names): Add btver1 entry.
9907 (software_prefetching_beneficial_p): Add btver1.
9908 (ix86_option_override_internal): Add btver1 instruction sets.
9909 (ix86_issue_rate): Add btver1.
9910 (ix86_adjust_cost): Add btver1.
9911 * config/i386/i386.h (TARGET_BTVER1): New definition.
9912 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
9913 (enum processor_type): Add PROCESSOR_BTVER1.
9914 * config/i386/i386.md (define_attr "cpu"): Add btver1.
9916 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9919 * config/i386/i386.c (legitimize_tls_address)
9920 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
9921 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
9922 (tls_initial_exec_64_sun): New pattern.
9924 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
9926 * doc/invoke.texi (Overall Options): Improve wording and markup
9927 of the description of -wrapper.
9929 2011-01-06 Joseph Myers <joseph@codesourcery.com>
9931 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
9932 rdynamic, threads): New Driver options.
9934 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9937 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
9938 if coming from .tdata.
9939 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
9941 2011-01-06 Jan Hubicka <jh@suse.cz>
9944 * collect2.c (main): Do not enable LTOmode when plugin is active.
9946 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9949 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
9950 --version output if supported.
9951 * configure: Regenerate.
9953 2011-01-06 Joseph Myers <joseph@codesourcery.com>
9955 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
9958 2011-01-06 Jakub Jelinek <jakub@redhat.com>
9961 * c-convert.c (convert): When converting a complex expression
9962 other than COMPLEX_EXPR to a different complex type, ensure
9963 c_save_expr is called instead of save_expr, unless in_late_binary_op.
9964 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
9965 when converting COMPLEX_TYPE.
9967 2011-01-06 Ira Rosen <irar@il.ibm.com>
9969 PR tree-optimization/47139
9970 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
9971 only the last reduction value is used outside the loop. Update
9974 2011-01-05 Joseph Myers <joseph@codesourcery.com>
9976 * config/rtems.opt: New.
9977 * config.gcc (*-*-rtems*): Use rtems.opt.
9979 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
9981 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
9982 processors do not support 3DNow instructions.
9984 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9986 * config/spu/spu.c (spu_option_override): Set parameter
9987 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
9989 2011-01-05 Jan Hubicka <jh@suse.cz>
9991 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
9992 at the command line.
9994 2011-01-05 Martin Jambor <mjambor@suse.cz>
9997 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
9998 deltas on streamed outgoing edges.
9999 (output_node_opt_summary): Output info for outgoing edges only when
10000 the node is in new parameter set.
10001 (output_cgraph_opt_summary): New parameter set, passed to the two
10002 aforementioned functions. Update its forward declaration and its
10005 2011-01-05 Tom Tromey <tromey@redhat.com>
10007 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
10008 operator to c_finish_omp_atomic.
10009 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
10010 (build_unary_op): Update.
10011 (build_modify_expr): Update.
10012 (build_asm_expr): Update.
10014 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10016 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
10017 newly inserted insns.
10018 (pad_bb): Likewise.
10019 (spu_emit_branch_hint): Likewise.
10020 (insert_hbrp_for_ilb_runout): Likewise.
10021 (spu_machine_dependent_reorg): Call df_finish_pass after
10022 schedule_insns returns.
10024 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10026 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
10028 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
10030 PR tree-optimization/47005
10031 * tree-sra.c (struct access): Add 'non_addressable' bit.
10032 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
10033 (decide_one_param_reduction): Return 0 if the parameter is passed by
10034 reference and one of the accesses in the group is non_addressable.
10036 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
10038 PR tree-optimization/47056
10039 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
10040 (mark_load): Likewise. Handle FUNCTION_DECL specially.
10041 (mark_store): Likewise. Pass STMT to ipa_record_reference.
10043 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
10045 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
10046 initializer. Skip view conversions from aggregate types.
10048 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
10051 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
10053 2011-01-04 Philipp Thomas <pth@suse.de>
10055 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
10058 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10060 * function.c (thread_prologue_and_epilogue_insns): Do not crash
10061 on empty epilogue sequences.
10063 2011-01-04 Joseph Myers <joseph@codesourcery.com>
10065 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
10066 non-static): New Driver options.
10068 2011-01-04 Jie Zhang <jie@codesourcery.com>
10071 * gcc.c (default_compilers[]): Set combinable field to 0
10072 for all assembly languages.
10074 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
10076 * config/mips/loongson3a.md: New file.
10077 * config/mips/mips.md: Include loongson3a.md.
10078 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
10081 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
10083 PR middle-end/47017
10084 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
10085 instead of convert_memory_address_addr_space on the base expression.
10087 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10089 * config/spu/spu.c (spu_option_override): Update error text
10090 for bad -march= / -mtune= values.
10092 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10094 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
10095 if branch-hint optimization will be performed.
10097 2011-01-03 Jakub Jelinek <jakub@redhat.com>
10099 PR tree-optimization/47148
10100 * ipa-split.c (split_function): Convert arguments to
10101 DECL_ARG_TYPE if possible.
10103 PR tree-optimization/47155
10104 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
10105 when computing uns.
10107 PR rtl-optimization/47157
10108 * combine.c (try_combine): If undobuf.other_insn becomes
10109 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
10110 and set *new_direct_jump_p too.
10112 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
10114 PR tree-optimization/47021
10115 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
10117 2011-01-03 Jakub Jelinek <jakub@redhat.com>
10119 * gcc.c (process_command): Update copyright notice dates.
10120 * gcov.c (print_version): Likewise.
10121 * gcov-dump.c (print_version): Likewise.
10122 * mips-tfile.c (main): Likewise.
10123 * mips-tdump.c (main): Likewise.
10125 2011-01-03 Martin Jambor <mjambor@suse.cz>
10127 PR tree-optimization/46801
10128 * tree-sra.c (type_internals_preclude_sra_p): Check whether
10129 aggregate fields start at byte boundary instead of the bit-field flag.
10131 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
10134 * gcc.c (main): Revert revision 168407.
10136 2011-01-03 Martin Jambor <mjambor@suse.cz>
10138 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
10140 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10142 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
10143 vector optab to expand vector/scalar shift, update gimple to vector.
10145 2011-01-03 Martin Jambor <mjambor@suse.cz>
10147 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
10150 2011-01-03 Martin Jambor <mjambor@suse.cz>
10152 PR tree-optimization/46984
10153 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
10155 (cgraph_create_indirect_edge): Fixed line length.
10156 (cgraph_indirect_call_info): Declare.
10157 (cgraph_make_edge_direct) Update declaration.
10158 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
10159 (cgraph_create_indirect_edge): Use it.
10160 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
10162 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
10163 the new thunk_delta representation.
10164 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
10166 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
10167 (ipa_read_indirect_edge_info): Likewise.
10168 * lto-cgraph.c (output_edge_opt_summary): New function.
10169 (output_node_opt_summary): Call it on all outgoing edges.
10170 (input_edge_opt_summary): New function.
10171 (input_node_opt_summary): Call it on all outgoing edges.
10173 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
10176 * gcc.c (main): Don't check have_o when settting combine_inputs.
10178 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
10180 * regrename.c: Add general comment describing the pass.
10181 (struct du_head): Remove 'length' field.
10182 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
10183 (regrename_optimize): Do not sort chains. Rework comments, add others.
10184 Force renaming to the preferred class (if any) in the first pass and do
10185 not consider registers that belong to it in the second pass.
10186 (create_new_chain): Do not set 'length' field.
10187 (scan_rtx_reg): Likewise.
10189 2011-01-02 Jakub Jelinek <jakub@redhat.com>
10191 PR tree-optimization/47140
10192 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
10193 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
10194 to bit_value_binop.
10196 PR rtl-optimization/47028
10197 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
10198 parm_birth_insn instead of at the beginning of first bb.
10200 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
10202 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
10203 Remove the word "see" before "@pxref".
10204 * doc/rtl.texi: Remove the word "see" before "@pxref".
10206 2011-01-01 Jan Hubicka <jh@suse.cz>
10208 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
10211 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
10214 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
10217 Copyright (C) 2011 Free Software Foundation, Inc.
10219 Copying and distribution of this file, with or without modification,
10220 are permitted in any medium without royalty provided the copyright
10221 notice and this notice are preserved.