1 2011-04-14 Anatoly Sokolov <aesok@post.ru>
2 Eric Weddington <eric.weddington@atmel.com>
3 Georg-Johann Lay <avr@gjlay.de>
5 * config/avr/avr.c: ("insn-codes.h", "optabs.h", "langhooks.h"):
7 (avr_init_builtins, avr_expand_builtin,
8 avr_expand_delay_cycles, avr_expand_unop_builtin,
9 avr_expand_binop_builtin ): New functions.
10 (avr_builtin_id): New enum
11 (struct avr_builtin_description): New struct
12 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
13 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
15 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
16 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
17 UNSPECV_DELAY_CYCLES): new enumeration values
18 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
19 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
20 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
21 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
22 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
23 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
26 * config/avr/avr-c.c: fix line endings
27 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
28 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
29 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
30 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
31 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
33 * doc/extend.texi (AVR Built-in Functions): New node
34 (Target Builtins): Add documentation of AVR
37 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
40 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
41 alone. Error if non-const data has attribute progmem.
43 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
45 * tree.h (struct tree_constructor): Include tree_typed instead of
47 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
48 TS_TYPED instead of TS_COMMON.
50 2011-04-12 Uros Bizjak <ubizjak@gmail.com>
52 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
53 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
54 (sse2_psadbw): Merge with *avx_psadbw.
55 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
56 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
57 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
58 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
59 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
60 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
61 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
62 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
63 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
64 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
65 (ssse3_palignrti): Merge with *avx_palignrti.
67 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
69 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
70 * tree-ssanames.c (fini_ssanames): VEC_free it.
71 (make_ssa_name_fn): Update for VECness of free_ssanames.
72 (release_ssa_name, release_dead_ssa_names): Likewise.
73 * tree.h (struct tree_ssa_name): Include tree_typed instead of
75 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
76 TS_TYPED instead of TS_COMMON.
78 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
80 * postreload-gcse.c (gcse_after_reload_main): Add calls to
81 statistics_counter_event.
82 * tree-ssa-copyrename.c (stats): Define.
83 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
84 statistics_counter_event.
85 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
86 (bswap_stats, widen_mul_stats): Define.
87 (insert_reciprocals): Increment rdivs_inserted.
88 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
89 rfuncs_inserted. Add calls to statistics_counter_event.
90 (execute_cse_sincos_1): Increment inserted.
91 (execute_cse_sincos): Zeroize sincos_stats. Add call to
92 statistics_counter_event.
93 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
94 of bswap_stats. Add calls to statistics_counter_event.
95 (convert_mult_to_widen): Increment widen_mults_inserted.
96 (convert_plusminus_to_widen): Increment maccs_inserted.
97 (convert_mult_to_fma): Increment fmas_inserted.
98 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
99 calls to statistics_counter_event.
101 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
103 PR rtl-optimization/48455
104 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
105 `temp_costs->mem_cost'.
107 2011-04-13 Jan Hubicka <jh@suse.cz>
109 * ipa-inline.h: New file.
110 * ipa-inline-analysis.c: New file. Broken out of ...
111 * ipa-inline.c: ... this file; update toplevel comment;
113 (inline_summary): Move to ipa-inline.h
114 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
115 ipa-inline-analysis.c.
116 (cgraph_estimate_time_after_inlining): Rename to estiamte_time_after_inlining;
117 move to ipa-inline-analysis.c
118 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
119 to estimate_edge_growth.
120 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
121 rename to estimate_size_after_inlining.
122 (cgraph_mark_inline_edge): Update for new naming convention.
123 (cgraph_check_inline_limits): Likewise.
124 (cgraph_edge_badness): Likewise.
125 (cgraph_decide_recursive_inlining): Likewise.
126 (cgraph_decide_inlining_of_small_functions): Likewise.
127 (cgraph_decide_inlining_incrementally): Likewise.
128 (cgraph_estimate_growth): Rename to estimate_growth; move to ipa-inline-analysis.c.
129 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
130 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
131 (compute_inline_parameters): Likewise.
132 (compute_inline_parameters_for_current): Likewise.
133 (pass_inline_parameters): Likewise.
134 (inline_indirect_intraprocedural_analysis): Likewise.
135 (analyze_function): Rename to inline_analyze_function; likewise.
136 (add_new_function): Move to ipa-inline-analysis.c.
137 (inline_generate_summary): Likewise.
138 (inline_read_summary): Likewise.
139 (inline_write_summary): Likewise.
140 * Makefile.in (ipa-inline-analysis.c): New file.
142 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
144 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
145 * configure: Regenerate.
147 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
149 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
150 instead of tree_common.
151 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
153 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
154 TS_TYPED rather than TS_COMMON.
155 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
157 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
160 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
161 r20 around calls of __tablejump_elpm__
163 2011-04-13 Jakub Jelinek <jakub@redhat.com>
166 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
168 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
170 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
172 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
173 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
174 (cfi_vec): New typedef.
175 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
176 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
177 (cie_cfi_vec): New static variable.
178 (cie_cfi_head): Delete.
179 (add_cfi): Accept a cfi_vec * as first argument. All callers and
180 declaration changed. Use vector rather than list operations.
181 (new_cfi): Don't initialize the dw_cfi_next field.
182 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
183 rather than list operations.
184 (lookup_cfa): Use vector rather than list operations.
185 (output_cfis): New argument upto. Accept a cfi_vec rather than
186 a dw_cfi_ref list head as argument. All callers changed.
187 Iterate over the vector using upto as a maximum index.
188 (output_all_cfis): New static function.
189 (output_fde): Use vector rather than list operations. Use the
190 new upto argument for output_cfis rather than manipulating a
192 (dwarf2out_begin_prologue): Change initializations to match
194 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
195 from the vector length rather than searching for the end of a list.
197 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
199 2011-04-13 Nick Clifton <nickc@redhat.com>
201 * config/rx/rx.md (movmemsi): Do not use this pattern when
202 volatile pointers are involved.
204 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
206 * config/i386/sse.md (pinsrbits): Remove.
207 (sse2_packsswb): Merge with *avx_packsswb.
208 (sse2_packssdw): Merge with *avx_packssdw.
209 (sse2_packuswb): Merge with *avx_packuswb.
210 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
211 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
212 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
213 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
214 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
215 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
216 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
217 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
218 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
219 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
220 (sse2_loadld): Merge with *avx_loadld.
221 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
222 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
223 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
224 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
225 (vec_concatv2di): Merge with *vec_concatv2di_avx.
227 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
229 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
231 * print-tree.c (print_node): Likewise.
232 * tree-inline.c (copy_tree_r): Likewise.
233 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
234 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
235 instead of TS_COMMON.
236 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
237 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
238 (copy_node_stat): Zero TREE_CHAIN only if necessary.
239 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
240 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
242 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
244 (TREE_CHAIN): Check for a TS_COMMON structure.
245 (TREE_TYPE): Check for a TS_TYPED structure.
247 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
249 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
250 cgraph_get_create_node instead of cgraph_node.
252 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
254 * c-parser.c (c_parser_initelt): Updated call to
255 objc_build_message_expr.
256 (c_parser_postfix_expression): Likewise.
258 2011-04-12 Kai Tietz <ktietz@redhat.com>
260 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
261 MASK_MS_BITFIELD_LAYOUT bit.
263 2011-04-12 Jakub Jelinek <jakub@redhat.com>
265 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
266 assert it is always true.
267 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
270 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
272 * c-parser.c (c_lex_one_token): Rewritten conditional used when
273 compiling Objective-C to be more efficient.
275 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
277 * opts-common.c (decode_cmdline_options_to_array): Remove variable
280 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
282 * recog.h, genoutput.c, optabs.c: Revert last patch.
284 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
287 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
289 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
291 * recog.h (insn_operand_data): Add an "allows_mem" field.
292 * genoutput.c (output_operand_data): Initialize it.
293 * optabs.c (maybe_legitimize_operand_same_code): New function.
294 (maybe_legitimize_operand): Use it when matching the original
297 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
299 * genpreds.c (process_define_predicate): Move most processing
300 to gensupport.c. Continue to validate the expression.
301 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
302 (process_define_predicate): Move processing to gensupport.c.
303 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
304 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
305 (compute_predicate_codes): Moved from genrecog.c. Add lineno
307 (valid_predicate_name_p): New function, split out from old
308 genpreds.c:process_define_predicate.
309 (process_define_predicate): New function, combining code from
310 old genpreds.c and genrecog.c functions.
311 (process_rtx): Call it for DEFINE_PREDICATE and
312 DEFINE_SPECIAL_PREDICATE.
314 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
316 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
317 size of a '%A' memory reference.
318 (T_DREG, T_QREG): New neon_builtin_type_bits.
319 (arm_init_neon_builtins): Assert that the load and store operands
320 are neon_struct_operands.
321 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
322 (NEON_ARG_MEMORY): New builtin_arg.
323 (neon_dereference_pointer): New function.
324 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
325 Handle NEON_ARG_MEMORY.
326 (arm_expand_neon_builtin): Update after above interface changes.
327 Use NEON_ARG_MEMORY for loads and stores.
328 * config/arm/predicates.md (neon_struct_operand): New predicate.
329 * config/arm/iterators.md (V_two_elem): Tweak formatting.
330 (V_three_elem): Use BLKmode for accesses that have no associated mode.
331 (V_four_elem): Tweak formatting.
332 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
333 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
334 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
335 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
336 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
337 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
338 (neon_vst4<mode>): Replace pointer operand with a memory operand.
339 Use %A in the output template.
340 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
341 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
342 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
343 the width of the memory access. Remove post-increment.
344 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
346 2011-04-12 Nick Clifton <nickc@redhat.com>
348 * config/v850/v850.c (expand_prologue): Do not use the CALLT
349 instruction for interrupt handlers if the target is the basic V850
351 (expand_epilogue): Likewise.
353 2011-04-12 Jakub Jelinek <jakub@redhat.com>
355 PR rtl-optimization/48549
356 * combine.c (propagate_for_debug): Also stop after BB_END of
357 this_basic_block. Process LAST and just stop processing after it.
358 (combine_instructions): If last_combined_insn has been deleted,
359 set last_combined_insn to its PREV_INSN.
361 2011-04-12 Richard Guenther <rguenther@suse.de>
363 PR tree-optimization/46076
364 * gimple.h (struct gimple_statement_call): Add fntype field.
365 (gimple_call_fntype): Adjust.
366 (gimple_call_set_fntype): New function.
367 * gimple.c (gimple_build_call_1): Set the call function type.
368 * gimplify.c (gimplify_call_expr): Preserve the function
369 type the frontend used for the call.
370 (gimplify_modify_expr): Likewise.
371 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
373 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
375 * tree-ssa.c (useless_type_conversion_p): Function pointer
376 conversions are useless.
378 2011-04-12 Martin Jambor <mjambor@suse.cz>
380 * cgraph.h (cgraph_node): Remove function declaration.
381 (cgraph_create_node): Declare.
382 (cgraph_get_create_node): Likewise.
383 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
385 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
386 the decl does not already exist. Call cgraph_get_create_node instead
388 (cgraph_get_create_node): New function.
389 (cgraph_same_body_alias): Update comment.
390 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
391 assert it does not return NULL.
392 (cgraph_update_edges_for_call_stmt): Likewise.
393 (cgraph_clone_edge): Likewise.
394 (cgraph_create_virtual_clone): Likewise.
395 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
396 instead of cgraph_node.
397 (cgraph_add_new_function): Call cgraph_create_node or
398 cgraph_get_create_node instead of cgraph_node.
399 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
400 instead of cgraph_node.
401 (record_eh_tables): Likewise.
402 (mark_address): Likewise.
403 (mark_load): Likewise.
404 (build_cgraph_edges): Call cgraph_get_create_node instead
406 (rebuild_cgraph_edges): Likewise.
407 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
408 instead of cgraph_node.
409 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
411 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
412 cgraph_create_node instead of cgraph_node.
413 * c-decl.c (finish_function): Call cgraph_get_create_node instead
415 * lto-cgraph.c (input_node): Likewise.
416 * lto-streamer-in.c (input_function): Likewise.
417 * varasm.c (mark_decl_referenced): Likewise.
418 (assemble_alias): Likewise.
420 2011-04-12 Martin Jambor <mjambor@suse.cz>
422 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
423 instead of cgraph_node and assert it does not return NULL.
424 * lto-streamer-in.c (lto_read_body): Likewise.
425 * omp-low.c (new_omp_context): Likewise.
426 (create_task_copyfn): Likewise.
427 * tree-emutls.c (lower_emutls_function_body): Likewise.
428 * matrix-reorg.c (transform_allocation_sites): Likewise.
430 2011-04-12 Jakub Jelinek <jakub@redhat.com>
433 * c-typeck.c (build_asm_expr): Error out on attempts to use
434 void type outputs or inputs for constraints that allow reg or
437 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
438 Richard Earnshaw <rearnsha@arm.com>
441 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
442 to use sign-magnitude offsets. Reject unsupported unaligned
443 cases. Add detailed description in comments.
444 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
445 condition from TARGET_32BIT to TARGET_ARM.
447 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
449 * tree.h (struct typed_tree): New.
450 (struct tree_common): Include it instead of tree_base.
451 (TREE_TYPE): Update for new location of type field.
452 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
453 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
454 (union tree_node): Add typed field.
455 * treestruct.def (TS_TYPED): New.
456 * lto-streamer.c (check_handled_ts_structures): Handle it.
457 * tree.c (MARK_TS_TYPED): New macro.
458 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
460 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
462 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
463 (force_nonfallthru): Do not alter the loop nest if no basic block
466 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
468 * config/i386/sse.md (VI): New mode iterator.
470 (AVX256MODEI): Ditto.
472 (avxvecpsmode): Ditto.
473 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
474 (sse2_andnot<mode>3): New expander.
475 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
476 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
477 (<any_logic:code><mode>3): Use VI mode iterator.
478 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
479 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
480 (*andnottf3): Handle AVX three-operand constraints.
481 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
483 2011-04-11 Joseph Myers <joseph@codesourcery.com>
484 Robert Millan <rmh@gnu.org>
486 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
487 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
488 GNU_USER_DYNAMIC_LINKER64): Define.
489 (REG_NAME): Don't undefine.
490 (MD_UNWIND_SUPPORT): Undefine.
491 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
492 (REG_NAME): Don't undefine.
493 (MD_UNWIND_SUPPORT): Undefine.
494 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
496 2011-04-11 Joseph Myers <joseph@codesourcery.com>
498 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
499 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
501 2011-04-11 Xinliang David Li <davidxl@google.com>
503 * value-profile.c (check_ic_target): New function.
504 (gimple_ic_transform): Sanity check indirect call target.
505 * gimple-low.c (gimple_check_call_args): Interface change.
506 (gimple_check_call_matching_types): New function.
507 * tree-inline.c (tree_can_inline_p): Call new function.
509 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
511 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
512 tree-pretty-print.h & realmpfr.h.
514 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
517 * ira.c (setup_pressure_classes): Fix typo in loop condition.
518 (setup_allocno_and_important_classes): Ditto.
520 2011-04-11 Joseph Myers <joseph@codesourcery.com>
522 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
523 GNU_USER_DYNAMIC_LINKER.
524 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
525 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
526 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
527 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
528 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
529 GNU_USER_TARGET_OS_CPP_BUILTINS.
530 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
531 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
532 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
533 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
534 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
535 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
536 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
537 GNU_USER_TARGET_OS_CPP_BUILTINS.
538 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
539 GNU_USER_DYNAMIC_LINKER.
540 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
541 GNU_USER_TARGET_OS_CPP_BUILTINS.
542 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
543 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
544 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
545 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
546 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
547 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
548 GNU_USER_DYNAMIC_LINKER64): Remove.
549 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
550 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
551 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
552 GNU_USER_DYNAMIC_LINKER.
553 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
554 GNU_USER_TARGET_OS_CPP_BUILTINS.
555 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
556 GNU_USER_TARGET_OS_CPP_BUILTINS.
557 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
558 to GNU_USER_TARGET_OS_CPP_BUILTINS.
559 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
560 GNU_USER_TARGET_OS_CPP_BUILTINS.
561 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
562 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
563 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
564 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
565 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
566 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
567 GNU_USER_DYNAMIC_LINKER.
568 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
569 GNU_USER_TARGET_OS_CPP_BUILTINS.
570 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
571 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
572 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
573 GNU_USER_DYNAMIC_LINKER.
574 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
575 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
576 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
577 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
578 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
579 GNU_USER_DYNAMIC_LINKER.
580 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
581 GNU_USER_DYNAMIC_LINKERN32.
582 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
583 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
584 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
585 GNU_USER_DYNAMIC_LINKER32.
586 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
587 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
588 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
589 GNU_USER_DYNAMIC_LINKER.
590 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
591 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
592 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
593 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
594 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
595 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
596 GNU_USER_DYNAMIC_LINKER32.
597 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
598 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
599 GNU_USER_DYNAMIC_LINKER.
600 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
601 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
602 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
603 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
604 GNU_USER_DYNAMIC_LINKER64.
605 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
606 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
607 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
608 GNU_USER_DYNAMIC_LINKER.
609 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
610 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
611 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
612 GNU_USER_DYNAMIC_LINKER.
613 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
614 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
615 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
616 GNU_USER_DYNAMIC_LINKER32.
617 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
618 GNU_USER_DYNAMIC_LINKER64.
619 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
620 GNU_USER_DYNAMIC_LINKER64.
621 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
622 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
623 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
624 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
625 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
627 2011-04-11 Joseph Myers <joseph@codesourcery.com>
629 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
630 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
631 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
632 GNU_USER_DYNAMIC_LINKER.
633 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
634 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
635 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
636 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
637 GNU_USER_DYNAMIC_LINKER64.
638 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
639 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
640 GNU_USER_LINK_EMULATION.
641 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
642 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
643 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
644 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
645 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
646 CPP_SPEC, CC1_SPEC): Remove.
647 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
648 (GNU_USER_DYNAMIC_LINKER): Define.
649 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
650 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
651 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
652 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
653 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
654 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
655 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
656 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
657 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
658 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
659 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
660 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
661 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
662 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
663 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
664 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
665 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
666 GNU_USER_DYNAMIC_LINKER.
667 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
668 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
669 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
670 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
671 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
672 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
673 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
674 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
675 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
676 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
678 2011-04-11 Kai Tietz <ktietz@redhat.com>
682 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
683 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
685 (ix86_is_msabi_thiscall): Removed.
686 (ix86_is_type_thiscall): Likewise.
687 (ix86_get_callcvt): New function.
688 (ix86_comp_type_attributes): Simplify check.
689 (ix86_function_regparm): Use ix86_get_callcvt for calling
690 convention attribute checks.
691 (ix86_return_pops_args): Likewise.
692 (ix86_static_chain): Likewise.
693 (x86_this_parameter): Likewise.
694 (x86_output_mi_thunk): Likewise.
695 (ix86_function_type_abi): Optimize check for types without attributes.
696 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
697 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
698 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
700 (IX86_BASE_CALLCVT): Helper macro.
701 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
702 Use ix86_get_callcvt for calling convention attribute checks and avoid
703 symbol-decoration for stdcall in TARGET_RTD case.
704 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
706 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
709 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
711 * config/i386/sse.md (VI_128): New mode iterator.
712 (VI12_128): Rename from SSEMODE12.
713 (VI14_128): Rename from SSEMODE14.
714 (VI124_128): New mode iterator.
715 (VI24_128): Rename from SSEMODE248.
716 (VI248_128): Rename from SSEMODE248.
717 (SSEMODE124C8): Remove.
718 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
719 (*sse2_<plusminus_insn><mode>3): Merge with
720 *avx_<plusminus_insn><mode>3.
721 (*mulv8hi3): Merge with *avx_mulv8hi3.
722 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
723 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
724 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
725 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
726 (ashr<mode>3): Merge with *avx_ashr<mode>3.
727 (lshr<mode>3): Merge with *avx_lshr<mode>3.
728 (ashl<mode>3): Merge with *avx_ashl<mode>3.
729 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
730 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
731 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
732 (*<smaxmin:code>v8hi3): Ditto.
733 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
734 (*<smaxmin:code>v16qi3): Ditto.
735 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
736 (*sse2_eq<mode>3): Ditto.
737 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
738 (*sse2_gt<mode>3): Ditto.
739 (vcondv2di): Split out of vcond<mode>.
740 (vconduv2di): Split out of vcondu<mode>.
742 2011-04-11 Richard Guenther <rguenther@suse.de>
744 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
745 before calling tree_low_cst.
747 2011-04-11 Richard Guenther <rguenther@suse.de>
749 * stor-layout.c (layout_type): Compute all array index size operations
750 in the original type.
751 (initialize_sizetypes): Add comment.
752 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
754 2011-04-11 Joseph Myers <joseph@codesourcery.com>
756 * common.opt (Tbss=, Tdata=, Ttext=): New options.
758 2011-04-11 Martin Jambor <mjambor@suse.cz>
760 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
761 of cgraph_node, handle NULL return value.
762 (cgraph_global_info): Likewise.
763 (cgraph_rtl_info): Likewise.
764 * tree-inline.c (estimate_num_insns): Likewise.
765 * gimplify.c (unshare_body): Likewise.
766 (unvisit_body): Likewise.
767 (gimplify_body): Likewise.
768 * predict.c (optimize_function_for_size_p): Likewise.
769 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
770 (call_may_clobber_ref_p_1): Likewise.
771 * varasm.c (function_section_1): Likewise.
772 (assemble_start_function): Likewise.
774 2011-04-11 Martin Jambor <mjambor@suse.cz>
776 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
778 * final.c (rest_of_clean_state): Likewise.
779 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
780 * passes.c (pass_init_dump_file): Likewise.
781 (execute_all_ipa_transforms): Likewise.
782 (function_called_by_processed_nodes_p): Likewise.
783 * predict.c (maybe_hot_frequency_p): Likewise.
784 (probably_never_executed_bb_p): Likewise.
785 (compute_function_frequency): Likewise.
786 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
787 (unnest_nesting_tree_1): Likewise.
788 (lower_nested_functions): Likewise.
789 * tree-optimize.c (execute_fixup_cfg): Likewise.
790 (tree_rest_of_compilation): Likewise.
791 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
792 * tree-sra.c (ipa_early_sra): Likewise.
793 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
794 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
795 * ipa.c (record_cdtor_fn): Likewise.
796 * ipa-inline.c (cgraph_early_inlining): Likewise.
797 (compute_inline_parameters_for_current): Likewise.
798 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
799 * ipa-pure-const.c (local_pure_const): Likewise.
800 * ipa-split.c (split_function): Likewise.
801 (execute_split_functions): Likewise.
802 * cgraphbuild.c (build_cgraph_edges): Likewise.
803 (rebuild_cgraph_edges): Likewise.
804 (cgraph_rebuild_references): Likewise.
805 (remove_cgraph_callee_edges): Likewise.
806 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
807 (verify_cgraph_node): Likewise.
808 (cgraph_analyze_functions): Likewise.
809 (cgraph_preserve_function_body_p): Likewise.
810 (save_inline_function_body): Likewise.
811 (save_inline_function_body): Likewise.
812 * tree-inline.c (copy_bb): Likewise.
813 (optimize_inline_calls): Likewise.
815 2011-04-11 Martin Jambor <mjambor@suse.cz>
817 PR tree-optimization/48195
818 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
819 ipa_check_create_edge_args.
820 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
821 ipa_check_create_edge_args.
822 * ipa-inline.c (inline_generate_summary): Do not call
823 ipa_check_create_node_params and ipa_check_create_edge_args.
824 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
825 ipa_check_create_edge_args.
827 2011-04-09 Anatoly Sokolov <aesok@post.ru>
829 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
831 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
832 * function.c (record_hard_reg_sets): Likewise.
833 * ira.c (compute_regs_asm_clobbered): Likewise.
834 * sched-deps.c (sched_analyze_1): Likewise.
835 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
837 2011-04-09 Xinliang David Li <davidxl@google.com>
839 PR tree-optimization/PR48484
840 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
841 has_valid_pred lazily
843 2011-04-09 Duncan Sands <baldrick@free.fr>
845 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
847 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
849 * combine.c (combine_validate_cost): Adjust comments. Set registered
850 cost of I0 to zero at the end, if any.
852 2011-04-08 Xinliang David Li <davidxl@google.com>
854 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
855 to insane profile data.
857 2011-04-08 Xinliang David Li <davidxl@google.com>
859 * final.c (dump_basic_block_info): New function.
860 (final): Dump basic block.
861 (final_scan_insn): Remove old dump.
863 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
866 * config.gcc (i386-*-freebsd): Disable unwind table generation for
869 2011-04-08 Michael Matz <matz@suse.de>
872 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
874 (rebuild_jump_labels): Call rebuild_jump_labels_1.
875 * rtl.h (rebuild_jump_labels_chain): Declare.
876 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
877 insns inserted on edges.
879 2011-04-08 Joseph Myers <joseph@codesourcery.com>
881 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
882 * config/arm/arm-arches.def: New.
883 * config/arm/arm-opts.h: New.
884 * config/arm/genopt.sh: New.
885 * config/arm/arm-tables.opt: New (generated).
886 * config/arm/arm.c (arm_handle_option, arm_target_help,
887 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
888 (all_architectures): Get most table contents from arm-arches.def.
889 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
890 arm_selected_tune here.
891 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
892 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
893 (march=, mcpu=, mtune=): Use Enum and Var.
894 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
895 (arm.o): Update dependencies.
897 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
899 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
901 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
902 (write_typed_alloc_defns): Likewise.
903 (main): Calls write_typed_alloc_defns with output_header.
905 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
908 * ira-color.c (setup_profitable_hard_regs): Add comments.
909 Don't take prohibited hard regs into account.
910 (setup_conflict_profitable_regs): Rename to
911 get_conflict_profitable_regs.
912 (check_hard_reg_p): Check prohibited hard regs.
914 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
916 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
917 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
918 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
920 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
923 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
924 move from floating point to shift amount register .
925 (emit_move_sequence): Remove secondary reload support for floating
926 point to shift amount amount register copies.
927 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
928 amount register copies.
929 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
930 register, return false if mode isn't a scalar integer mode.
931 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
933 2011-04-08 Richard Guenther <rguenther@suse.de>
935 * gimple.c (gimple_call_flags): Remove kludge.
937 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
939 * sel-sched.c (sel_region_init): Move call to
940 sel_setup_region_sched_flags after setup_current_loop_nest.
942 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
944 PR rtl-optimization/48272
945 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
946 init_insn_reg_pressure_info. Adjust a caller.
947 * sched-int.h (init_insn_reg_pressure_info): Declare.
948 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
949 when sched-pressure is enabled.
951 2011-04-08 Richard Guenther <rguenther@suse.de>
953 * gimple.c (gimple_set_modified): Do not queue calls to
954 MODIFIED_NORETURN_CALLS here ...
955 * tree-ssa-operands.c (update_stmt_operands): ... but here.
957 2011-04-08 Richard Guenther <rguenther@suse.de>
960 * toplev.c (lang_dependent_init): Do not open asm_out_file
961 in WPA mode, nor perform debug machinery initialization.
962 (finalize): Do not unlink asm_out_file in WPA mode.
964 2011-04-08 Richard Guenther <rguenther@suse.de>
966 * gimple.h (gimple_call_fntype): New function.
967 (gimple_call_return_type): Use it.
968 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
969 * gimple-low.c (gimple_check_call_args): Likewise.
970 * gimple.c (gimple_call_flags): Likewise.
971 (gimple_call_arg_flags): Likewise.
972 (gimple_call_return_flags): Likewise.
973 * tree-cfg.c (verify_gimple_call): Likewise.
974 (do_warn_unused_result): Likewise.
975 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
976 * value-prof.c (gimple_ic_transform): Fix fndecl check.
978 2011-04-08 Dmitry Melnik <dm@ispras.ru>
980 PR rtl-optimization/48235
981 * sel-sched.c (code_motion_process_successors): Recompute the last
982 insn in basic block if control flow changed.
983 (code_motion_path_driver): Ditto. Recompute the first insn as well.
984 Update condition for ilist_remove.
986 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
988 PR rtl-optimization/48302
989 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
990 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
991 it to record added preheader blocks.
992 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
993 on to sel_add_loop_preheaders.
994 (sel_region_init): Move call to setup_current_loop_nest after
997 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
1000 * cfgloop.h (loop_has_exit_edges): New helper.
1001 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
1003 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
1004 that have no exit edges.
1006 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
1008 PR rtl-optimization/48442
1009 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
1010 all callers. Adjust assert.
1012 2011-04-08 Jakub Jelinek <jakub@redhat.com>
1014 PR tree-optimization/48377
1015 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
1016 is_packed to true even for types with smaller TYPE_ALIGN than
1019 2011-04-08 Richard Guenther <rguenther@suse.de>
1022 * doc/tm.texi: Re-generate.
1024 2011-04-08 Wei Guozhi <carrot@google.com>
1027 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
1028 * config/arm/arm.c (arm_attr_length_push_multi): New function.
1029 * config/arm/arm.md (*push_multi): Change the length computation to
1032 2011-04-08 Anatoly Sokolov <aesok@post.ru>
1034 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
1035 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
1036 * doc/tm.texi: Regenerate.
1037 * system.h (ASM_OUTPUT_BSS): Poison.
1038 * varasm.c (asm_output_bss): Remove function.
1039 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
1041 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
1042 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
1043 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
1044 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1046 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1048 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1050 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
1052 2011-04-07 Joseph Myers <joseph@codesourcery.com>
1054 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
1057 2011-04-07 Joseph Myers <joseph@codesourcery.com>
1059 * config/m68k/m68k.c (m68k_handle_option): Don't handle
1060 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
1061 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
1063 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
1064 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
1065 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
1066 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
1067 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
1068 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
1069 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
1070 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
1071 options. Don't map other m68k options manually. Don't handle
1072 old-style options as canonical.
1073 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
1074 * doc/install.texi (m68k-*-*): Document binutils version requirement.
1076 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
1078 * basic-block.h (force_nonfallthru): Move to...
1079 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
1080 (force_nonfallthru): ...here.
1081 * cfghooks.c (force_nonfallthru): New function.
1082 * cfgrtl.c (force_nonfallthru): Rename into...
1083 (rtl_force_nonfallthru): ...this.
1084 (commit_one_edge_insertion): Do not set AUX field.
1085 (commit_edge_insertions): Do not discover new basic blocks.
1086 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
1087 (cfg_layout_rtl_cfg_hooks): Likewise.
1088 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
1089 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
1090 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
1092 2011-04-07 Anatoly Sokolov <aesok@post.ru>
1094 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
1097 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
1099 * config/i386/sse.md: Update copyright year.
1100 (avxcvtvecmode): Remove.
1101 (sse_movhlps): Merge with *avx_movhlps.
1102 (sse_movlhps): Merge with *avx_movlhps.
1103 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
1104 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
1105 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
1106 (sse_loadhps): Merge with *avx_loadhps.
1107 (sse_storelps): Merge with *avx_storelps.
1108 (sse_loadlps): Merge with *avx_loadlps.
1109 (sse_movss): Merge with *avx_movss.
1110 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
1111 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
1112 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
1113 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
1114 (vec_set<mode>_0): Ditto.
1115 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
1116 (sse4_1_insertps): Merge with *avx_insertps.
1117 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
1118 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
1119 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
1120 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
1121 (sse2_storehpd): Merge with *avx_storehpd.
1122 (sse2_loadhpd): Merge with *avx_loadhpd.
1123 (sse2_loadlpd): Merge with *avx_loadlpd.
1124 (sse2_movsd): Merge with *avx_movsd.
1125 (*vec_concatv2df): Merge with *vec_concatv2df.
1127 2011-04-07 Jakub Jelinek <jakub@redhat.com>
1130 * combine.c (combine_instructions): Add last_combined_insn,
1131 update it if insn is after it, pass it to all try_combine calls.
1132 (try_combine): Add last_combined_insn parameter, pass it instead of
1133 i3 to propagate_for_debug.
1135 2011-04-07 Nick Clifton <nickc@redhat.com>
1137 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
1138 to handle MDR <-> data register transfers.
1139 (movhi_internal): Likewise.
1141 2011-04-07 Alan Modra <amodra@gmail.com>
1143 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
1144 previous stack info.
1146 2011-04-07 Tom de Vries <tom@codesourcery.com>
1149 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
1150 flow_find_cross_jump. Swap variables to implement backward replacement.
1151 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
1153 2011-04-07 Tom de Vries <tom@codesourcery.com>
1156 * cfgcleanup.c (walk_to_nondebug_insn): New function.
1157 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
1159 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
1160 src1 or src2. Redirect edges to the last basic block. Update
1161 frequency and count on multiple basic blocks in case of fallthru.
1163 2011-04-07 Tom de Vries <tom@codesourcery.com>
1166 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
1168 (old_insns_match_p): Change return type. Replace return false/true
1169 with return dir_none/dir_both. Use can_replace_by.
1170 (flow_find_cross_jump): Add dir_p parameter. Init replacement
1171 direction from dir_p. Register replacement direction in dir, last_dir
1172 and afterlast_dir. Handle new return type of old_insns_match_p using
1173 merge_dir. Return replacement direction in dir_p.
1174 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
1175 return type of old_insns_match_p.
1176 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
1177 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
1178 flow_find_cross_jump.
1179 * basic-block.h (enum replace_direction): New type.
1180 (flow_find_cross_jump): Add parameter to declaration.
1182 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
1184 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
1185 (AVXMODEDCVTPS2DQ): Ditto.
1186 (VEC_FLOAT_MODE): Ditto.
1187 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
1188 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
1189 (<any_logic:code><mode>3): Use VF mode iterator.
1190 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
1191 Use VF mode iterator.
1192 (copysign<mode>3): Use VF mode iterator.
1193 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
1194 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
1195 (*<any_logic:code><MODEF:mode>3): Merge with
1196 *avx_<any_logic:code><MODEF:mode>3.
1197 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
1198 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
1199 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
1200 (avx_cvtdq2ps<avxmodesuffix>): Remove.
1201 (sse2_cvtdq2ps): Use %v modifier.
1202 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
1203 (avx_cvtps2dq<avxmodesuffix>): Remove.
1204 (sse2_cvtps2dq): Use %v modifier.
1205 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
1206 (avx_cvttps2dq<avxmodesuffix>): Remove.
1207 (sse2_cvttps2dq): Use %v modifier.
1208 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
1209 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
1210 (sse2_cvtsd2siq): Fix insn template.
1211 (sse2_cvtsd2siq_2): Ditto.
1212 (sse2_cvttsd2siq): Ditto.
1213 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
1214 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
1216 2011-04-06 Joseph Myers <joseph@codesourcery.com>
1218 * gcov-io.c: Use GCC Runtime Library Exception.
1220 2011-04-06 Jakub Jelinek <jakub@redhat.com>
1223 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
1224 as base_reg whatever register reg has been eliminated to, instead
1225 of hardcoding STACK_POINTER_REGNUM.
1227 2011-04-06 Joseph Myers <joseph@codesourcery.com>
1229 * doc/tm.texi.in: Document C target hooks as separate from general
1231 * doc/tm.texi: Regenerate.
1232 * genhooks.c (struct hook_desc): Add docname field.
1233 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
1235 (hook_array): Include c-target.def.
1236 (emit_documentation): Use docname field in output.
1237 (emit_init_macros): Take docname argument. Only emit definitions
1238 for hooks matching docname.
1239 (main): Expect additional arguments in all cases. Pass argument
1240 to emit_init_macros.
1241 * target.def: Move initial macro definitions and comments to
1242 target-hooks-macros.h.
1243 (gcc_targetcm): Move to c-family/c-target.def.
1244 * target.h (targetcm): Move declaration to c-family/c-target.h.
1245 * targhooks.c (default_handle_c_option): Move to
1247 * targhooks.h (default_handle_c_option): Move declaration to
1248 c-family/c-common.h.
1249 * target-hooks-macros.h: New file.
1250 * config.gcc (target_has_targetcm): Define and use to add to
1251 c_target_objs and cxx_target_objs.
1252 * config/default-c.c: New file.
1253 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
1254 of target.h and target-def.h.
1255 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
1256 (darwin_objc_construct_string, darwin_cfstring_ref_p,
1257 darwin_check_cfstring_format_arg): Make static.
1258 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
1259 TARGET_STRING_OBJECT_REF_TYPE_P,
1260 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
1261 * config/darwin-protos.h (darwin_objc_construct_string,
1262 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
1264 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
1265 TARGET_STRING_OBJECT_REF_TYPE_P,
1266 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
1267 * config/t-darwin (darwin-c.o): Update dependencies.
1268 * system.h (TARGET_HAS_TARGETCM): Poison.
1269 * Makefile.in (TARGET_H): Update.
1270 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
1271 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
1272 (default-c.o): New target.
1273 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
1274 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
1275 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
1277 (build/genhooks.o): Update dependencies.
1279 2011-04-06 Richard Guenther <rguenther@suse.de>
1281 * ipa-inline.c (enum inlining_mode): Remove.
1282 (cgraph_flatten): Use some other token.
1283 (cgraph_edge_early_inlinable_p): New function, split out from ...
1284 (cgraph_perform_always_inlining): New function, split out from ...
1285 (cgraph_decide_inlining_incrementally): ... here.
1286 (cgraph_mark_inline_edge): Adjust.
1287 (cgraph_early_inlining): Re-structure.
1288 (pass_early_inline): Require SSA form.
1290 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
1291 Julian Brown <julian@codesourcery.com>
1292 Mark Shinwell <shinwell@codesourcery.com>
1294 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
1295 LO_REGS only for Thumb-1.
1296 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
1297 be used in short instructions when optimising for size on Thumb-2.
1299 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
1301 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
1302 associated with user returns to be preserved.
1304 2011-04-06 Tristan Gingold <gingold@adacore.com>
1306 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
1307 symbol_queue_size, DBXOUT_DECR_NESTING,
1308 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
1309 if XCOFF_DEBUGGING_INFO.
1311 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
1313 * config/i386/i386.md (attribute isa): New.
1314 (attribute enabled): New.
1315 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
1316 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
1317 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
1318 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
1319 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
1320 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1321 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
1322 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
1324 * config/i386/sse.md (VF): New mode iterator.
1328 (SSEMODEF4): Remove.
1329 (attribute sse): Handle V8SF and V4DF modes.
1330 (<absneg:code><mode>2): Use VF mode iterator.
1331 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
1333 (<plusminus_insn><mode>3): Use VF mode iterator.
1334 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
1335 Use VF mode iterator.
1336 (<sse>_vm<plusminus_insn><mode>3): Merge with
1337 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
1338 (mul<mode>3): Use VF mode iterator.
1339 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
1340 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
1342 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
1343 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
1344 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
1345 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
1347 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
1348 Use VF1 mode iterator.
1349 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
1350 (sqrt<VF2:mode>2): New expander.
1351 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
1352 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
1353 and sqrtv2df2. Use VF mode iterator.
1354 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
1356 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
1357 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
1358 Use VF1 mode iterator.
1359 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
1360 (<smaxmin:code><mode>3): Use VF mode iterator.
1361 (*<smaxmin:code><mode>3_finite): Merge with
1362 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
1363 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1364 (<sse>_vm<smaxmin:code><mode>2): Merge with
1365 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
1366 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
1368 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
1370 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
1371 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
1372 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
1373 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
1374 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
1376 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
1377 Use VF_128 mode iterator.
1378 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
1380 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
1381 VF_128 mode iterator.
1382 (vcond<mode>): Use VF mode iterator.
1383 * config/i386/predicates.md (sse_comparison_operator): Merge with
1384 avx_comparison_float_operator. Do not declare as special_predicate.
1385 * config/i386/i386.c (struct builtin_description): Update for renamed
1387 (ix86_expand_args_builtin): Ditto.
1388 (ix86_expand_sse_compare_mask): Ditto.
1390 2011-04-06 Richard Guenther <rguenther@suse.de>
1392 * tree-inline.c (estimate_num_insns): For calls simply account
1393 for all passed arguments and a used return value.
1395 2011-04-06 Richard Guenther <rguenther@suse.de>
1397 PR tree-optimization/47663
1398 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
1399 call_stmt_time fields.
1400 (cgraph_edge_inlinable_p): Declare.
1401 (cgraph_edge_recursive_p): New inline function.
1402 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
1403 (cgraph_clone_edge): Copy it.
1404 * ipa-inline.c (cgraph_estimate_edge_time): New function.
1405 Account for call stmt time.
1406 (cgraph_estimate_time_after_inlining): Take edge argument.
1407 (cgraph_estimate_edge_growth): Account call stmt size.
1408 (cgraph_estimate_size_after_inlining): Take edge argument.
1409 (cgraph_mark_inline_edge): Adjust.
1410 (cgraph_check_inline_limits): Likewise.
1411 (cgraph_recursive_inlining_p): Remove.
1412 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
1413 (cgraph_decide_recursive_inlining): Take edge argument and
1415 (cgraph_decide_inlining_of_small_functions): Do not avoid
1416 diags for recursive inlining here.
1417 (cgraph_flatten): Adjust.
1418 (cgraph_decide_inlining_incrementally): Likewise.
1419 (estimate_function_body_sizes): Remove call cost handling.
1420 (compute_inline_parameters): Initialize caller edge call costs.
1421 (cgraph_estimate_edge_growth): New function.
1422 (cgraph_estimate_growth): Use it.
1423 (cgraph_edge_badness): Likewise.
1424 (cgraph_check_inline_limits): Take an edge argument.
1425 (cgraph_decide_inlining_of_small_functions): Adjust.
1426 (cgraph_decide_inlining): Likewise.
1427 * tree-inline.c (estimate_num_insns): Only account for call
1428 return value if it is used.
1429 (expand_call_inline): Avoid diagnostics on recursive inline
1431 * lto-cgraph.c (lto_output_edge): Output edge call costs.
1432 (input_edge): Input edge call costs.
1434 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1436 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
1438 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
1440 * doc/invoke.texi (Spec Files): Fix typo.
1442 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
1444 * profile.c (branch_prob): Move declaration of local variable. Remove
1445 obsolete ??? comment. Expand the location explicitly instead of using
1446 the LOCATION_FILE and LOCATION_LINE macros.
1448 2011-04-06 Wei Guozhi <carrot@google.com>
1451 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
1452 (arm_cond_branch): Likewise.
1453 (arm_cond_branch_reversed): Likewise.
1454 (arm_jump): Likewise.
1455 (push_multi): Likewise.
1456 * config/arm/constraints.md (Py): New constraint.
1458 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
1461 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
1463 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
1464 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
1465 #ifdef DBX_DEBUGGING_INFO.
1467 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
1470 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
1471 if old and new states differ.
1473 2011-04-05 Joseph Myers <joseph@codesourcery.com>
1475 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
1476 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
1477 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
1478 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
1479 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
1481 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
1482 ColdFire options to -mcpu= options.
1484 2011-04-05 Jeff Law <law@redhat.com>
1486 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
1487 check if BB is a successor of LOOP->header and return
1488 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
1490 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
1492 * cprop.c (struct reg_use): Remove.
1493 (reg_use_table): Make an array of RTX.
1494 (find_used_regs, constprop_register, local_cprop_pass,
1495 bypass_block): Simplify users of reg_use_table.
1496 (cprop_insn): Likewise. Iterate if copy propagation succeeded
1497 on one of the uses found by find_used_regs.
1499 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
1502 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
1505 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
1507 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
1509 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
1511 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
1514 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
1516 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
1518 * combine.c: Include obstack.h.
1519 (struct insn_link): Define.
1520 (uid_log_links): Adjust type.
1521 (FOR_EACH_LOG_LINK): New macro.
1522 (insn_link_obstack): Declare.
1523 (alloc_insn_link): Define.
1524 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
1525 type of link variables.
1526 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
1527 (try_combine, record_promoted_values, distribute_notes): Likewise.
1528 (distribute_links): Likewise. Tweak prototype.
1529 (clear_log_links): Delete.
1530 (adjust_for_new_dest): Call alloc_insn_link.
1531 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
1533 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
1535 * gcse.c (modify_mem_list): Convert to an array of VECs.
1536 (canon_modify_mem_list, compute_transp): Tweak formatting.
1537 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
1538 (load_killed_in_block_p): Likewise.
1539 (record_last_mem_set_info): Likewise.
1540 (clear_modify_mem_tables): Likewise.
1542 2011-04-05 Tom de Vries <tom@codesourcery.com>
1545 * function.c (emit_use_return_register_into_block): Only define if
1548 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
1550 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
1552 2011-04-05 Joseph Myers <joseph@codesourcery.com>
1554 * config/rx/rx-opts.h: New.
1555 * config/rx/rx.c (rx_cpu_type): Remove.
1556 (rx_handle_option): Don't assert that global structures are in
1557 use. Access variables via opts pointer. Defer most handling of
1558 OPT_mint_register_. Use error_at.
1559 (rx_option_override): Handle deferred OPT_mint_register_ here.
1560 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
1561 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
1562 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
1563 (rx_cpu_types): New Enum and EnumValue entries.
1564 (mint-register=): Use Defer and use Var accordingly.
1566 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
1568 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
1569 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
1570 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
1572 (debug_free_queue, debug_nesting, symbol_queue_index):
1574 * dbxout.c: ...to here. Make static.
1576 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
1578 * gcse.c (modify_pair): Define. Define a VEC of it.
1579 (canon_modify_mem_list): Convert to an array of VECs.
1580 (free_insn_expr_list_list): Delete.
1581 (clear_modify_mem_tables): Call VEC_free instead.
1582 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
1583 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
1584 (canon_list_insert, compute_transp): Likewise.
1586 2011-04-05 Tom de Vries <tom@codesourcery.com>
1589 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
1592 2011-04-05 Tom de Vries <tom@codesourcery.com>
1595 * function.c (emit_use_return_register_into_block): New function.
1596 (thread_prologue_and_epilogue_insns): Use
1597 emit_use_return_register_into_block.
1599 2011-04-05 Tom de Vries <tom@codesourcery.com>
1602 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
1605 2011-04-05 Tom de Vries <tom@codesourcery.com>
1607 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
1609 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
1611 * config/arm/arm.md (define_constants for unspec): Replace with
1613 (define_constants for unspecv): Replace with define_c_enum.
1614 * config/arm/neon.md (define_constants for unspec): Replace with
1617 2011-04-04 Richard Henderson <rth@redhat.com>
1620 * dwarf2out.c (output_line_info): Always emit line info from
1621 at least one section.
1622 (dwarf2out_init): Create text_section_line_info here ...
1623 (set_cur_line_info_table): ... not here.
1625 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
1628 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
1631 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
1633 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
1635 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
1636 (expr_equiv_p): Remove.
1637 (insert_set_in_table): Look at <dest, src> pair instead of expr.
1638 (hash_scan_set): Update call to insert_set_in_table.
1639 (dump_hash_table): Dump <dest, src> pair.
1640 (lookup_set): Simplify. Lookup <dest, src> pair.
1641 (compute_transp): Remove, fold heavily simplified code into...
1642 (compute_local_properties): ...here. Expect COMP and TRANSP
1644 (find_avail_set): Take set directly from struct expr.
1645 (find_bypass-set): Likewise.
1646 (bypass_block): Likewise.
1647 (cprop_insn): Likewise. Remove redundant INSN_P test.
1649 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
1650 checks on form of COND from find_implicit_sets to here.
1651 (find_implicit_sets): Cleanup control flow. Split critical edges
1652 if it exposes implicit sets. Allocate/resize implicit_sets as
1654 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
1655 changed something. Run df_analyze after find_implicit_sets if any
1656 edges were split. Do not allocate implicit_sets here.
1658 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
1659 (gcse_obstack): Renamed to cprop_obstack.
1660 (GNEW, GNEWVEC, GNEWVAR): Remove.
1662 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
1663 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
1664 (gcse_alloc): Likewise, and rename to cprop_alloc.
1665 (alloc_gcse_men, free_gcse_mem): Remove.
1666 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
1667 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
1668 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
1670 * cprop.c (oprs_not_set_p): Remove.
1671 (mark_set, mark_clobber): Remove.
1672 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
1673 (reg_not_set_p): New function.
1674 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
1675 (cprop_insn): Likewise.
1676 (cprop_jump): Use FOR_EACH_EDGE.
1678 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
1681 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
1682 (rank_for_schedule): Use scheduled_insns vector instead of
1683 last_scheduled_insn.
1684 (ok_for_early_queue_removal): Likewise.
1685 (queue_to_ready): Search forward in nonscheduled_insns_begin if
1687 (choose_ready): Likewise.
1688 (commit_schedule): Use VEC_iterate.
1689 (schedule_block): Initialize nonscheduled_insns_begin. If we have
1690 a dbg_cnt, use it and ensure the first insn is in the ready list.
1691 (haifa_sched_init): Allocate scheduled_insns.
1692 (sched_extend_ready_list): Don't allocate it; reserve space.
1693 (haifa_sched_finish): Free it.
1695 2011-04-04 Joseph Myers <joseph@codesourcery.com>
1697 * optc-gen.awk: Always remove type from Variable entry before
1698 recording in var_seen.
1700 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
1702 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
1703 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
1704 call to tidy_fallthru_edges.
1706 2011-04-04 Joseph Myers <joseph@codesourcery.com>
1708 * doc/options.texi (ToLower): Document.
1709 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
1710 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
1711 * opts.h (cl_option): Add cl_tolower field.
1712 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
1713 arguments with lowercase strings.
1714 * config/rx/rx.opt (mcpu=): Add ToLower.
1715 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
1718 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
1720 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
1722 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
1724 * config/vax/vax.c: Include reload.h.
1726 2011-04-04 Anatoly Sokolov <aesok@post.ru>
1728 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
1729 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
1730 (sparc_preferred_reload_class): New function.
1732 2011-04-04 Jakub Jelinek <jakub@redhat.com>
1735 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
1736 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
1738 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
1740 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
1741 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
1743 2011-04-03 Anatoly Sokolov <aesok@post.ru>
1745 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
1746 (ASM_OUTPUT_ALIGNED_BSS): Define.
1748 2011-04-03 Michael Matz <matz@suse.de>
1750 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
1751 and next_slot members.
1752 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
1753 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
1754 (lto_streamer_cache_append): Declare.
1755 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
1756 unsigned index, remove offset parameter, ensure that we append
1757 or update existing entries.
1758 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
1759 parameter, update next_slot for append.
1760 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
1762 (lto_streamer_cache_insert_at): Likewise.
1763 (lto_streamer_cache_append): New function.
1764 (lto_streamer_cache_lookup): Use unsigned index.
1765 (lto_streamer_cache_get): Likewise.
1766 (lto_record_common_node): Don't test tree_node_can_be_shared.
1767 (preload_common_node): Adjust call to lto_streamer_cache_insert.
1768 (lto_streamer_cache_delete): Don't free offsets member.
1769 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
1770 (lto_output_string_with_length): Use lto_output_data_stream.
1771 (lto_output_tree_header): Remove ix parameter, don't write it.
1772 (lto_output_builtin_tree): Likewise.
1773 (lto_write_tree): Adjust callers to above, don't track and write
1774 offset, write unsigned index.
1775 (output_unreferenced_globals): Don't emit all global vars.
1776 (write_global_references): Use unsigned indices.
1777 (lto_output_decl_state_refs): Likewise.
1778 (write_symbol): Likewise.
1779 * lto-streamer-in.c (lto_input_chain): Move earlier.
1780 (input_function): Use unsigned index.
1781 (input_alias_pairs): Don't read and then ignore all global vars.
1782 (lto_materialize_tree): Remove ix_p parameter, don't read index,
1783 don't pass it back, use lto_streamer_cache_append.
1784 (lto_register_var_decl_in_symtab): Use unsigned index.
1785 (lto_register_function_decl_in_symtab): Likewise.
1786 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
1788 (lto_get_builtin_tree): Don't read index, use
1789 lto_streamer_cache_append.
1790 (lto_read_tree): Adjust call to lto_materialize_tree.
1792 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
1793 don't use function calls in arguments to MIN.
1795 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
1798 * gimple.c (gimple_type_leader_entry): Mark deletable.
1800 2011-04-03 Alan Modra <amodra@gmail.com>
1802 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
1804 2011-04-03 Michael Matz <matz@suse.de>
1806 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
1808 * tree.h (tree_decl_non_common.vindex): Adjust comment.
1810 2011-04-03 Michael Matz <matz@suse.de>
1812 * cgraphbuild.c (record_reference): Canonicalize constructor values.
1813 * gimple-fold.c (canonicalize_constructor_val): Accept being called
1814 without function context.
1815 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
1816 current_function_decl and cfun.
1818 2011-04-03 Michael Matz <matz@suse.de>
1820 * tree.c (decl_init_priority_insert): Don't create entry for
1822 (decl_fini_priority_insert): Ditto.
1823 (fields_compatible_p, find_compatible_field): Remove.
1824 * tree.h (fields_compatible_p, find_compatible_field): Remove.
1825 * gimple.c (gimple_compare_field_offset): Adjust block comment.
1827 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
1829 * combine.c (try_combine): Remove useless local variable.
1831 2011-04-03 Richard Guenther <rguenther@suse.de>
1832 Ira Rosen <ira.rosen@linaro.org>
1834 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
1835 non-variable offsets and compare the remaining bases of the two
1836 accesses instead of looking for exact same data-ref.
1838 2011-04-02 Kai Tietz <ktietz@redhat.com>
1841 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
1843 * i386.c (ix86_is_msabi_thiscall): New helper function.
1844 (ix86_is_type_thiscall): New helper function.
1845 (ix86_comp_type_attributes): Handle thiscall for method-functions
1847 (init_cumulative_args): Likewise.
1848 (find_drap_reg): Likewise.
1849 (ix86_static_chain): Likewise.
1850 (x86_this_parameter): Likewise.
1851 (x86_output_mi_thunk): Likewise.
1853 2011-04-01 Olivier Hainque <hainque@adacore.com>
1854 Nicolas Setton <setton@adacore.com>
1855 Eric Botcazou <ebotcazou@adacore.com>
1857 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
1858 (add_gnat_descriptive_type_attribute): New function.
1859 (gen_array_type_die): Call it.
1860 (gen_enumeration_type_die): Likewise.
1861 (gen_struct_or_union_type_die): Likewise.
1862 (modified_type_die): Likewise.
1863 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
1864 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
1865 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
1867 2011-04-01 Jakub Jelinek <jakub@redhat.com>
1870 * dwarf2out.c (resolve_addr): Don't call force_decl_die
1871 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
1874 2011-03-17 Richard Guenther <rguenther@suse.de>
1877 * lto-cgraph.c (input_overwrite_node): Clear the abstract
1878 origin for decls in other ltrans units.
1879 (input_varpool_node): Likewise.
1881 2011-04-01 Jakub Jelinek <jakub@redhat.com>
1884 * expr.c (expand_assignment): Handle all possibilities
1885 if TO_RTX is CONCAT.
1886 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
1887 (store_split_bit_field): If SUBREG_REG (op0) or
1888 op0 itself has smaller mode than word, return it
1889 for offset 0 and const0_rtx for out-of-bounds stores.
1890 If word is const0_rtx, skip it.
1892 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
1894 * config/h8300/h8300.c (print_operand_address): Rename to...
1895 (h8300_print_operand_address): ...this. Make static. Adjust comments.
1896 Call h8300_print_operand and h8300_print_operand_address instead of
1897 print_operand and print_operand_address. Declare.
1898 (print_operand): Renake to...
1899 (h8300_print_operand): ...this. Make static. Adjust comments.
1900 Call h8300_print_operand instead of print_operand. Declare.
1901 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
1902 (h8300_register_move_cost): Likewise.
1903 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
1904 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
1905 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
1906 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
1907 * config/h8300/h8300-protos.h (print_operand): Delete.
1908 (print_operand_address): Delete.
1910 2011-04-01 Richard Henderson <rth@redhat.com>
1913 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
1914 in strict mode before dwarf4. Re-order tests to early out
1915 before switching sections.
1917 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
1919 * config/h8300/constraints.md: New file.
1920 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
1921 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
1922 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
1923 * config/h8300/predicates.md (bit_operand): Likewise.
1924 (incdec_operand): Use satisfies_constraint_M and
1925 satisfies_constraint_O. Don't use C code block.
1926 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
1927 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
1928 (compute_mov_length): Use satisfies_constraint_G.
1929 (fix_bit_operand): Use satisfies_constraint_U.
1930 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
1931 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
1932 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
1933 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
1934 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
1935 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
1936 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1937 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
1938 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
1939 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
1940 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
1941 (EXTRA_MEMORY_CONSTRAINT): Delete.
1943 2011-04-01 Andrew Pinski <pinskia@gmail.com>
1944 Michael Meissner <meissner@linux.vnet.ibm.com>
1947 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
1948 operands, as per the specifications.
1950 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
1951 (vec_extract_evenv4sf): Ditto.
1952 (vec_extract_evenv8hi): Ditto.
1953 (vec_extract_evenv16qi): Ditto.
1954 (vec_extract_oddv4si): Ditto.
1956 2011-03-31 Mark Wielaard <mjw@redhat.com>
1958 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
1959 high_pc attribute if the CU has no associated code. Only output
1960 DW_AT_entry_pc for CU if not generating strict dwarf and
1963 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
1965 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
1966 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
1968 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
1969 * final.c (final_start_function): Call the new function rather
1970 than using a NULL argument for dwarf2out_frame_debug.
1972 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
1973 that contains the prologue.
1975 * haifa-sched.c (queue_insn): New arg REASON. All callers
1976 changed. Print it in debugging output.
1978 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
1980 * sched-ebb.c (begin_schedule_ready): Remove second argument.
1981 Split most of the code into...
1982 (begin_move_insn): ... here. New function.
1983 (ebb_sched_info): Add a pointer to it.
1984 * haifa-sched.c (scheduled_insns): New static variable.
1985 (sched_extend_ready_list): Allocate it.
1986 (schedule_block): Use it to record the order of scheduled insns.
1987 Perform RTL changes to move insns only after all scheduling
1988 decisions have been made.
1989 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
1990 begin_move_insn field.
1991 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
1992 * sched-int.h (struct haifa_sched_info): Remove second argument
1993 from begin_schedule_ready hook. Add new member begin_move_insn.
1994 * sched-rgn.c (begin_schedule_ready): Remove second argument.
1995 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
1997 * haifa-sched.c (prune_ready_list): New function, broken out of
1999 (schedule_block): Use it.
2001 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2003 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
2005 2011-04-01 Kai Tietz <ktietz@redhat.com>
2007 * config.gcc (*-*-mingw*): Allow as option the
2008 posix threading model.
2009 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
2010 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
2012 (CPP_SPEC): Add pthread/no-pthread handling.
2013 (LIB_SPEC): Likewise.
2014 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
2015 (LIB_SPEC): Likewise.
2016 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
2017 flag to pass -pthread option for shared libgcc build.
2018 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
2019 for shared libgcc build.
2020 * config/i386/t-mingw-pthread: New file.
2021 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
2022 New define to enable use of library pthread by default.
2023 * config/i386/mingw.opt (pthread): New driver option.
2024 (no-pthread): New driver option.
2025 * config/i386/cygming.opt: Make sure trailing empty line is retained.
2026 * config/i386/mingw-w64.opt: Likewise.
2028 2011-04-01 Gary Funck <gary@intrepid.com>
2030 * c-decl.c (grokdeclarator): Fix formatting.
2032 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
2034 * expr.c (emit_block_move_via_movmem): Use n_generator_args
2035 instead of n_operands.
2036 (set_storage_via_setmem): Likewise.
2037 * optabs.c (maybe_gen_insn): Likewise.
2038 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
2039 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
2040 (mips_expand_builtin_direct): Likewise.
2041 * config/spu/spu.c (expand_builtin_args): Likewise.
2043 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
2045 * recog.h (insn_data_d): Add n_generator_args.
2046 * genoutput.c (data): Likewise.
2047 (output_insn_data): Print it.
2048 (max_opno, num_dups): Delete.
2049 (scan_operands): Just fill in "d->operand[...]".
2050 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
2052 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
2054 * gensupport.h (pattern_stats): New structure.
2055 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
2056 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
2057 (max_operand_1, max_operand_vec): Delete.
2058 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
2060 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
2062 * emit-rtl.c (emit_pattern_after_setloc): New function.
2063 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
2064 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
2065 (emit_pattern_after): New function.
2066 (emit_insn_after, emit_jump_insn_after): Call it.
2067 (emit_call_insn_after, emit_debug_insn_after): Likewise.
2068 (emit_pattern_before_setloc): New function.
2069 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
2070 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
2072 (emit_pattern_before): New function.
2073 (emit_insn_before, emit_jump_insn_before): Call it.
2074 (emit_call_insn_before, emit_debug_insn_before): Likewise.
2076 2011-03-31 Richard Henderson <rth@redhat.com>
2078 * dwarf2out.c (dw_separate_line_info_ref): Remove.
2079 (dw_separate_line_info_entry): Remove.
2080 (enum dw_line_info_opcode): New.
2081 (dw_line_info_entry): Use it.
2082 (dw_line_info_table, dw_line_info_table_p): New.
2083 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
2084 (line_info_table, line_info_label_num): Remove.
2085 (line_info_table_in_use): Remove.
2086 (separate_line_info_table): Remove.
2087 (separate_line_info_table_allocated): Remove.
2088 (separate_line_info_table_in_use): Remove.
2089 (LINE_INFO_TABLE_INCREMENT): Remove.
2090 (line_info_label_num): New.
2091 (cur_line_info_table): New.
2092 (text_section_line_info, cold_text_section_line_info): New.
2093 (separate_line_info): New.
2094 (SEPARATE_LINE_CODE_LABEL): Remove.
2095 (print_dwarf_line_table): Remove.
2096 (debug_dwarf): Don't dump it.
2097 (output_one_line_info_table): New.
2098 (output_line_info): Use it.
2099 (new_line_info_table): New.
2100 (set_cur_line_info_table): New.
2101 (dwarf2out_switch_text_section): Use it.
2102 (dwarf2out_begin_function): Likewise.
2103 (push_dw_line_info_entry): New.
2104 (dwarf2out_source_line): Rewrite for new line info tables.
2105 (dwarf2out_init): Remove dead initailizations.
2107 2011-03-31 Joseph Myers <joseph@codesourcery.com>
2109 * opts.h (cl_option): Add comments to fields. Add bit-fields for
2111 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
2112 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
2113 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
2114 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
2115 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
2116 * opt-functions.awk (flag_init, switch_bit_fields): New.
2117 (switch_flags): Don't handle flags moved to bit-fields. Don't
2118 generate CL_MISSING_OK or CL_SAVE.
2119 * optc-gen.awk: Update to generate bit-field output as well as
2121 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
2122 bit-field instead of CL_REJECT_DRIVER flag.
2123 * opts-common.c (generate_canonical_option,
2124 decode_cmdline_option): Use bit-fields instead of CL_* flags.
2125 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
2126 instead of CL_REJECT_NEGATIVE flag.
2127 * toplev.c (print_switch_values): Use cl_report bit-field instead
2130 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
2132 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
2133 a zero minimum index only if it is redundant.
2135 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
2137 PR rtl-optimization/48381
2138 * ira-color.c (assign_hard_reg): Use hard reg set intersection
2139 instead of ira_class_hard_reg_index for calculating conflicting
2142 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
2144 * cprop.c: Clean up hash table building.
2145 (reg_avail_info): Remove.
2146 (oprs_available_p): Remove.
2147 (record_last_reg_set_info): Remove.
2148 (record_last_set_info): Remove.
2149 (reg_available_p): New function.
2150 (gcse_constant_p): Do not treat unfolded conditions as constants.
2151 (make_set_regs_unavailable): New function.
2152 (hash_scan_set): Simplify with new reg_available_p.
2153 (compute_hash_table_work): Traverse insns stream only once.
2154 Do not compute reg_avail_info. Traverse insns in reverse order.
2155 Record implicit sets after recording explicit sets from the block.
2157 2011-03-31 Michael Matz <matz@suse.de>
2159 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
2161 2011-03-31 Anatoly Sokolov <aesok@post.ru>
2163 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
2164 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
2165 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
2166 (h8300_mode_dependent_address_p): New function.
2167 (h8300_get_index): Make static.
2169 2011-03-31 Jeff Law <law@redhat.com>
2171 * reload1.c (elimination_effects): Fix typo in recent change.
2173 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
2174 typo potentially leading to null pointer dereference.
2176 * caller-save.c (new_saved_hard_reg): Eliminate return value.
2177 (setup_save_areas): Corresponding changes to avoid useless
2180 * jump.c (reversed_comparison_code_parts): Avoid successive return
2181 statements when REVERSE_CONDITION is defined.
2183 * expr.c (expand_assignment): Avoid useless assignments.
2184 (expand_expr_real_1): Likewise.
2185 (expand_expr_real_2): Avoid useless statements.
2187 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
2189 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
2191 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
2194 * stmt.c (expand_expr_stmt): Avoid useless assignment.
2196 2011-03-31 Joseph Myers <joseph@codesourcery.com>
2199 * doc/tm.texi.in (TARGET_VERSION): Remove.
2200 * doc/tm.texi: Regenerate.
2201 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
2202 * collect2.c (main): Don't use TARGET_VERSION.
2203 * mips-tdump.c (main): Don't use TARGET_VERSION.
2204 * mips-tfile.c (main): Don't use TARGET_VERSION.
2205 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
2206 * config/rs6000/vxworksae.h: Remove.
2207 * config/alpha/alpha.h (TARGET_VERSION): Remove.
2208 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
2209 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
2210 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
2211 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
2212 * config/arm/arm.h (TARGET_VERSION): Remove.
2213 * config/arm/coff.h (TARGET_VERSION): Remove.
2214 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
2215 * config/arm/elf.h (TARGET_VERSION): Remove.
2216 * config/arm/freebsd.h (TARGET_VERSION): Remove.
2217 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
2218 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
2219 * config/arm/pe.h (TARGET_VERSION): Remove.
2220 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
2221 * config/arm/semi.h (TARGET_VERSION): Remove.
2222 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
2223 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
2224 * config/arm/vxworks.h (TARGET_VERSION): Remove.
2225 * config/avr/avr.h (TARGET_VERSION): Remove.
2226 * config/bfin/bfin.h (TARGET_VERSION): Remove.
2227 * config/fr30/fr30.h (TARGET_VERSION): Remove.
2228 * config/frv/frv.h (TARGET_VERSION): Remove.
2229 * config/h8300/h8300.h (TARGET_VERSION): Remove.
2230 * config/i386/cygwin.h (TARGET_VERSION): Remove.
2231 * config/i386/darwin.h (TARGET_VERSION): Remove.
2232 * config/i386/darwin64.h (TARGET_VERSION): Remove.
2233 * config/i386/djgpp.h (TARGET_VERSION): Remove.
2234 * config/i386/freebsd.h (TARGET_VERSION): Remove.
2235 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
2236 * config/i386/gnu.h (TARGET_VERSION): Remove.
2237 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
2238 * config/i386/i386elf.h (TARGET_VERSION): Remove.
2239 * config/i386/linux.h (TARGET_VERSION): Remove.
2240 * config/i386/linux64.h (TARGET_VERSION): Remove.
2241 * config/i386/lynx.h (TARGET_VERSION): Remove.
2242 * config/i386/mingw32.h (TARGET_VERSION): Remove.
2243 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
2244 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
2245 * config/i386/netware.h (TARGET_VERSION): Remove.
2246 * config/i386/nto.h (TARGET_VERSION): Remove.
2247 * config/i386/openbsd.h (TARGET_VERSION): Remove.
2248 * config/i386/vxworks.h (TARGET_VERSION): Remove.
2249 * config/ia64/elf.h (TARGET_VERSION): Remove.
2250 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
2251 * config/ia64/hpux.h (TARGET_VERSION): Remove.
2252 * config/ia64/linux.h (TARGET_VERSION): Remove.
2253 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
2254 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
2255 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
2256 * config/lm32/lm32.h (TARGET_VERSION): Remove.
2257 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
2258 * config/m32c/m32c.h (TARGET_VERSION): Remove.
2259 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
2260 * config/m32r/m32r.h (TARGET_VERSION): Remove.
2261 * config/m68k/linux.h (TARGET_VERSION): Remove.
2262 * config/m68k/m68k.h (TARGET_VERSION): Remove.
2263 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
2264 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
2265 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
2266 * config/mep/mep.h (TARGET_VERSION): Remove.
2267 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
2268 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
2269 * config/mips/iris6.h (MACHINE_TYPE): Remove.
2270 * config/mips/linux.h (TARGET_VERSION): Remove.
2271 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
2272 * config/mips/vxworks.h (TARGET_VERSION): Remove.
2273 * config/mmix/mmix.h (TARGET_VERSION): Remove.
2274 * config/mn10300/linux.h (TARGET_VERSION): Remove.
2275 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
2276 * config/pa/pa.h (TARGET_VERSION): Remove.
2277 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
2278 * config/picochip/picochip.h (TARGET_VERSION): Remove.
2279 * config/rs6000/aix.h (TARGET_VERSION): Remove.
2280 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
2281 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
2282 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
2283 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
2284 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
2285 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
2286 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
2287 * config/rs6000/linux.h (TARGET_VERSION): Remove.
2288 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
2289 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
2290 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
2291 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
2292 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
2293 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
2294 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
2295 * config/s390/linux.h (TARGET_VERSION): Remove.
2296 * config/s390/s390.h (TARGET_VERSION): Remove.
2297 * config/s390/tpf.h (TARGET_VERSION): Remove.
2298 * config/score/score.h (TARGET_VERSION): Remove.
2299 * config/sh/linux.h (TARGET_VERSION): Remove.
2300 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
2301 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
2302 * config/sh/sh.h (TARGET_VERSION): Remove.
2303 * config/sh/sh64.h (TARGET_VERSION): Remove.
2304 * config/sh/superh.h (TARGET_VERSION): Remove.
2305 * config/sh/vxworks.h (TARGET_VERSION): Remove.
2306 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
2307 * config/sparc/linux.h (TARGET_VERSION): Remove.
2308 * config/sparc/linux64.h (TARGET_VERSION): Remove.
2309 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
2310 TARGET_NAME32, TARGET_NAME): Remove.
2311 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
2312 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
2313 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
2314 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
2315 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
2316 * config/spu/spu.h (TARGET_VERSION): Remove.
2317 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
2318 * config/v850/v850.h (TARGET_VERSION): Remove.
2319 * config/vax/linux.h (TARGET_VERSION): Remove.
2320 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
2321 * config/xtensa/elf.h (TARGET_VERSION): Remove.
2322 * config/xtensa/linux.h (TARGET_VERSION): Remove.
2324 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
2327 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
2328 frame-related from frame-unrelated adjustments to the stack pointer.
2330 2011-03-31 Jakub Jelinek <jakub@redhat.com>
2332 * common.opt (fdebug-types-section): Move earlier.
2333 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
2335 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
2337 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
2340 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
2342 * tree.h (CASE_CHAIN): Define.
2343 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
2344 (gimple_redirect_edge_and_branch): Likewise.
2346 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
2349 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
2352 2011-03-30 Jeff Law <law@redhat.com>
2354 * PR bootstrap/48371
2355 * reload1.c (reload): Fix botch in last change.
2357 * reload.h (struct reload): Fix typo introduced in last change.
2359 2011-03-30 Joseph Myers <joseph@codesourcery.com>
2361 * config/arm/arm.opt (mhard-float, msoft-float): Mark
2362 Undocumented. Remove help text.
2363 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
2366 2011-03-30 Joseph Myers <joseph@codesourcery.com>
2368 * doc/options.texi (NegativeAlias): Document.
2369 (Alias): Mention NegativeAlias.
2370 * opt-functions.awk: Handle NegativeAlias.
2371 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
2372 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
2373 * opts.h (CL_NEGATIVE_ALIAS): Define.
2374 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
2375 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
2377 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
2379 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
2380 mno-spe and mno-isel instead of mspe=no and -misel=no.
2382 2011-03-29 Mark Wielaard <mjw@redhat.com>
2384 * common.opt (fdebug-types-section): New flag.
2385 * doc/invoke.texi: Document new -fno-debug-types-section flag.
2386 * dwarf2out.c (use_debug_types): New define.
2387 (struct die_struct): Mark die_id with GTY desc use_debug_types.
2388 (print_die): Guard output of type unit signatures using
2390 (build_abbrev_table): Replace assert of dwarf_version >= 4
2391 with assert on use_debug_types.
2392 (size_of_die): Likewise.
2393 (unmark_dies): Likewise.
2394 (value_format): Decide AT_ref_external form on use_debug_types.
2395 (output_die): Replace dwarf_version version check guard with
2396 use_debug_types where appropriate.
2397 (modified_type_die): Likewise.
2398 (gen_reference_type_die): Likewise.
2399 (dwarf2out_start_source_file): Likewise.
2400 (dwarf2out_end_source_file): Likewise.
2401 (prune_unused_types_walk_attribs): Likewise.
2402 (dwarf2out_finish): Likewise.
2404 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
2406 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
2408 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
2410 PR rtl-optimization/48332
2411 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
2412 mode of input operand N and modeN to its actual mode.
2414 2011-03-30 Jeff Law <law@redhat.com>
2416 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
2417 define accessor macro.
2418 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
2419 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
2420 (reg_equiv_init): Likewise.
2421 (reg_equivs_size): New variable.
2422 (reg_equiv_init_size): Remove.
2423 (allocate_initial_values): Move prototype to here from....
2424 * integrate.h (allocate_initial_values): Remove prototype.
2425 * integrate.c: Include reload.h.
2426 (allocate_initial_values): Corresponding changes.
2427 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
2428 (fix_reg_equiv_init, no_equiv): Corresponding changes.
2429 (update_equiv_regs): Corresponding changes.
2430 (ira): Corresponding changes.
2431 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
2432 (push_secondary_reload): Corresponding changes.
2433 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
2434 (make_memloc, find_reloads_address): Corresponding changes.
2435 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
2436 (find_reloads_address_1): Corresponding changes.
2437 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
2438 (refers_to_regno_for_reload_p): Corresponding changes.
2439 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
2440 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
2441 * reload1.c: Include ggc.h.
2442 (grow_reg_equivs): New function.
2443 (replace_pseudos_in, reload): Corresponding changes.
2444 (calculate_needs_all_insns, alter_regs): Corresponding changes.
2445 (eliminate_regs_1, elimination_effects): Corresponding changes.
2446 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
2447 (delete_output_reload): Likewise.
2448 * caller-save.c (mark_referenced_regs): Corresponding changes.
2449 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
2450 * frv/predicates.md (frv_load_operand): Corresponding changes.
2451 * microblaze/microblaze.c (double_memory_operand): Corresponding
2453 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
2454 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
2455 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
2456 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
2457 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
2459 * pa/pa.c (emit_move_sequence): Corresponding changes.
2460 * vax/vax.c (nonindexed_address_p): Corresponding changes.
2462 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
2465 * config/arm/arm.c (coproc_secondary_reload_class): Handle
2466 structure modes. Don't check neon_vector_mem_operand for
2467 vector or structure modes.
2469 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
2470 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2473 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
2474 operand 1 and reshuffle the operands to match.
2475 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
2477 2011-03-30 Christian Schüler <cschueler@gmx.de>
2480 * config/c.opt (F): Added 'Driver' to -F option.
2483 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
2485 * config/darwin.opt: Added '-arch' option.
2487 2011-03-30 Nick Clifton <nickc@redhat.com>
2489 * config/rx/rx.md: Add peepholes and patterns to combine
2490 extending loads and simple arithmetic instructions.
2491 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
2492 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
2493 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
2494 modes to use pre-decrement and post-increment addressing.
2495 (rx_is_restricted_memory_address): Add range checking of REG+INT
2497 (rx_print_operand): Add support for %Q. Fix handling of %Q.
2498 (rx_memory_move_cost): Adjust cost of stores.
2499 (rx_adjust_insn_length): New function.
2501 2011-03-30 Jakub Jelinek <jakub@redhat.com>
2504 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
2505 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
2506 matching arg00/arg01 types.
2508 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
2510 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
2511 last_location to UNKNOWN_LOCATION.
2513 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
2516 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
2519 2011-03-30 Joseph Myers <joseph@codesourcery.com>
2520 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2523 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
2525 (sparc_cpu): Likewise.
2526 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
2529 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
2533 PR rtl-optimization/48345
2534 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
2535 hard regs for given mode from profitable regs when doing secondary
2538 2011-03-29 Jeff Law <law@redhat.com>
2541 * tree-ssa-threadupdate.c (struct redirection_data): Remove
2542 do_not_duplicate field.
2543 (lookup_redirection_data): Corresponding changes.
2544 (create_duplicates): Always create a template block.
2545 (redirect_edges): Remove code which reused the original block
2546 when it was going to become unreachable code.
2547 (thread_block): Don't set do_not_duplicate field.
2549 2011-03-29 Joseph Myers <joseph@codesourcery.com>
2551 * lto-opts.c (register_user_option_p, lto_register_user_option):
2552 Make type argument unsigned.
2553 * lto-streamer.h (lto_register_user_option): Make type argument
2555 * opth-gen.awk: Make CL_* macros unsigned.
2556 * opts-common.c (find_opt): Make lang_mask argument unsigned.
2557 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
2558 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
2559 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
2560 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
2561 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
2562 (find_opt): Make lang_mask argument unsigned.
2564 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
2566 PR rtl-optimization/48331
2567 PR rtl-optimization/48334
2568 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
2569 for any used algorithm.
2571 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
2573 * ira-conflicts.c (build_object_conflicts): Add unused attribute
2576 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
2578 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
2579 (alpha_option_override): Don't set alpha_sr_alias_set.
2580 (emit_frame_store_1): Use gen_frame_mem rather than calling
2582 (alpha_expand_epilogue): Ditto.
2584 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
2586 PR tree-optimization/48290
2587 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
2588 vectorization, check that relevant phis in the basic block after
2589 the inner loop are really inner loop's exit phis.
2591 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
2594 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
2595 (cached_dw_loc_list_def): New structure.
2596 (cached_dw_loc_list): New typedef.
2597 (cached_dw_loc_list_table): New variable.
2598 (cached_dw_loc_list_table_hash): New function.
2599 (cached_dw_loc_list_table_eq): Likewise.
2600 (add_location_or_const_value_attribute): Take a bool cache_p.
2601 Cache the list when the parameter is true.
2602 (gen_formal_parameter_die): Update caller.
2603 (gen_variable_die): Likewise.
2604 (dwarf2out_finish): Likewise.
2605 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
2606 while generating debug info for the decl.
2607 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
2608 (dwarf2out_init): Initialize cached_dw_loc_list_table.
2609 (resolve_addr): Cache the result of resolving a chain of
2612 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
2614 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
2615 conflict object hard regset nodes have intersecting hard reg sets.
2617 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
2618 after regstat_init_n_sets_and_refs.
2620 * ira.c: Add more comments at the top.
2621 (setup_stack_reg_pressure_class, setup_pressure_classes):
2622 Add comments how we compute the register pressure classes.
2623 (setup_allocno_and_important_classes): Add more comments.
2624 (setup_class_translate_array, reorder_important_classes)
2625 (setup_reg_class_relations): Add comments.
2627 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
2630 * ira-color.c: Add 2011 to the Copyright line.
2631 (assign_hard_reg): Add more comments.
2632 (improve_allocation): Ditto.
2634 * ira-costs.c: Add 2011 to the Copyright line.
2635 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
2637 (setup_regno_cost_classes_by_mode): Ditto.
2639 Initial patches from ira-improv branch:
2641 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
2643 * ira-build.c: (ira_create_object): Remove initialization of
2644 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
2645 (ira_create_allocno): Remove initialization of
2646 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
2647 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
2648 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
2649 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
2650 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
2651 Initialize ALLOCNO_ADD_DATA.
2652 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
2653 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
2655 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
2656 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
2658 * ira.c (ira_reallocate): Remove.
2659 (setup_pressure_classes): Call
2660 ira_init_register_move_cost_if_necessary. Use
2661 ira_register_move_cost instead of ira_get_register_move_cost.
2662 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
2663 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
2665 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
2666 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
2667 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
2668 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
2669 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
2670 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
2672 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
2673 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
2674 (struct allocno_color_data): New.
2675 (allocno_color_data_t): New typedef.
2676 (allocno_color_data): New definition.
2677 (ALLOCNO_COLOR_DATA): New macro.
2678 (struct object_color_data): New.
2679 (object_color_data_t): New typedef.
2680 (object_color_data): New definition.
2681 (OBJECT_COLOR_DATA): New macro.
2682 (update_copy_costs, calculate_allocno_spill_cost): Call
2683 ira_init_register_move_cost_if_necessary. Use
2684 ira_register_move_cost instead of ira_get_register_move_cost.
2685 (move_spill_restore, update_curr_costs): Ditto.
2686 (allocno_spill_priority): Make it inline.
2687 (color_pass): Allocate and free allocno_color_dat and object_color_data.
2688 (struct coalesce_data, coalesce_data_t): New.
2689 (allocno_coalesce_data): New definition.
2690 (ALLOCNO_COALESCE_DATA): New macro.
2691 (merge_allocnos, coalesced_allocno_conflict_p): Use
2692 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
2693 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
2694 (coalesce_allocnos): Ditto.
2695 (setup_coalesced_allocno_costs_and_nums): Ditto.
2696 (collect_spilled_coalesced_allocnos): Ditto.
2697 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
2698 (setup_slot_coalesced_allocno_live_ranges): Ditto.
2699 (coalesce_spill_slots): Ditto.
2700 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
2701 free allocno_coalesce_data.
2703 * ira-conflicts.c: Fix formatting.
2704 (process_regs_for_copy): Call
2705 ira_init_register_move_cost_if_necessary. Use
2706 ira_register_move_cost instead of ira_get_register_move_cost.
2707 (build_object_conflicts): Optimize.
2709 * ira-costs.c (record_reg_classes): Optimize. Call
2710 ira_init_register_move_cost_if_necessary. Use
2711 ira_register_move_cost, ira_may_move_in_cost, and
2712 ira_may_move_out_cost instead of ira_get_register_move_cost and
2713 ira_get_may_move_cost.
2714 (record_address_regs): Ditto.
2715 (scan_one_insn): Optimize.
2716 (find_costs_and_classes): Optimize.
2717 (process_bb_node_for_hard_reg_moves): Call
2718 ira_init_register_move_cost_if_necessary. Use
2719 ira_register_move_cost instead of ira_get_register_move_cost.
2721 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
2722 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
2723 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
2724 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
2726 (ira_initiate_emit_data, ira_finish_emit_data)
2727 (create_new_allocno): New functions.
2728 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
2729 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
2730 Use ira_register_move_cost instead of ira_get_register_move_cost.
2732 * ira-int.h: Fix some comments.
2733 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
2734 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
2735 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
2736 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
2738 (struct ira_allocno): Make mode and aclass a bitfield. Move other
2739 bitfield after mode. Make hard_regno a short int. Make
2740 hard_regno short. Remove first_coalesced_allocno and
2741 next_coalesced_allocno. Move mem_optimized_dest_p,
2742 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
2743 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
2744 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
2745 temp, colorable_p. Add new member add_data.
2746 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
2747 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
2748 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
2749 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
2750 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
2751 (ALLOCNO_ADD_DATA): New macro.
2752 (ira_emit_data_t): New typedef.
2753 (struct ira_emit_data): New. Move mem_optimized_dest_p,
2754 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
2755 from struct ira_allocno.
2756 (ALLOCNO_EMIT_DATA): New macro.
2757 (ira_allocno_emit_data, allocno_emit_reg): New.
2758 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
2759 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
2760 (OBJECT_ADD_DATA): New macro.
2761 (ira_reallocate): Remove.
2762 (ira_initiate_emit_data, ira_finish_emit_data): New.
2763 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
2764 (ira_init_register_move_cost_if_necessary): New.
2765 (ira_object_conflict_iter_next): Merge into
2766 ira_object_conflict_iter_cond.
2767 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
2769 * ira-live.c: (process_single_reg_class_operands): Call
2770 ira_init_register_move_cost_if_necessary. Use
2771 ira_register_move_cost instead of ira_get_register_move_cost.
2773 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
2775 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
2777 * ira-costs.c: Fix formatting.
2778 (cost_classes, cost_classes_num): Remove.
2779 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
2780 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
2781 (cost_classes_del, cost_classes_htab): New.
2782 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
2783 (initiate_regno_cost_classes, setup_cost_classes): New.
2784 (setup_regno_cost_classes_by_aclass): New.
2785 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
2786 (record_reg_classes): Use regno_cost_classes instead of
2787 cost_classes. Move checking opposite operand up.
2788 (record_address_regs): Use regno_cost_classes
2789 instead of cost_classes.
2790 (scan_one_insn): Ditto. Use always general register.
2791 (print_allocno_costs): Use regno_cost_classes instead of
2793 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
2794 (find_costs_and_classes): Set up cost classes for each registers.
2795 Use also their mode for this. Use regno_cost_classes instead of
2797 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
2799 (free_ira_costs, ira_init_costs): Don't use cost_classes.
2800 (ira_costs, ira_set_pseudo_classes): Call
2801 initiate_regno_cost_classes and finish_regno_cost_classes.
2803 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
2805 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
2807 * target.def (ira_cover_classes): Remove.
2809 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
2811 * doc/tm.texi.in: Ditto.
2813 * ira-conflicts.c: Remove mentioning cover classes from the file.
2814 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
2815 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
2817 * targhooks.c (default_ira_cover_classes): Remove.
2819 * targhooks.h (default_ira_cover_classes): Ditto.
2821 * haifa-sched.c: Remove mentioning cover classes from the file.
2822 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
2823 ira_pressure_classes and ira_pressure_classes_num instead of
2824 ira_reg_class_cover_size and ira_reg_class_cover. Use
2825 sched_regno_pressure_class instead of sched_regno_cover_class.
2826 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
2827 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
2829 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
2830 classes from the file.
2831 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
2832 (struct object_hard_regs, struct object_hard_regs_node): New.
2833 (struct ira_object): New members profitable_hard_regs,
2834 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
2835 (struct ira_allocno): Rename cover_class to aclass. Rename
2836 cover_class_cost and updated_cover_class_cost to class_cost and
2837 updated_class_cost. Remove splay_removed_p and
2838 left_conflict_size. Add new members colorable_p.
2839 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
2840 (ALLOCNO_COLORABLE_P): New macro.
2841 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
2842 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
2843 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
2844 (OBJECT_...): Rename parameter C to O.
2845 (OBJECT_PROFITABLE_HARD_REGS): New macro.
2846 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
2847 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
2848 (struct target_ira_int): New members x_ira_max_memory_move_cost,
2849 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
2850 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
2851 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
2852 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
2853 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
2854 x_ira_reg_class_subunion.
2855 (ira_max_memory_move_cost, ira_max_register_move_cost)
2856 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
2857 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
2858 (ira_important_class_nums, ira_reg_class_superunion): New macros.
2859 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
2860 (ira_reg_class_union): Rename to ira_reg_class_subunion.
2861 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
2862 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
2863 (ira_tune_allocno_costs_and_cover_classes): Rename to
2864 ira_tune_allocno_costs.
2865 (ira_debug_hard_regs_forest): New.
2866 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
2867 (ira_object_conflict_iter_next): Fix comments.
2868 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
2869 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
2870 cover_class to aclass.
2871 (ira_allocate_and_accumulate_costs): Ditto.
2872 (ira_allocate_and_set_or_copy_costs): Ditto.
2874 * opts.c (decode_options): Remove ira_cover_class check.
2876 * ira-color.c: Remove mentioning cover classes from the file. Use
2877 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
2878 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
2879 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
2880 (splay-tree.h): Remove include.
2881 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
2882 before copy_freq_compare_func.
2883 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
2884 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
2886 (hard_regs_roots, hard_regs_node_vec): Ditto.
2887 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
2888 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
2889 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
2890 (create_new_object_hard_regs_node): Ditto.
2891 (add_new_object_hard_regs_node_to_forest): Ditto.
2892 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
2893 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
2895 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
2896 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
2897 (remove_unused_object_hard_regs_nodes): Ditto.
2898 (enumerate_object_hard_regs_nodes): Ditto.
2899 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
2900 (object_hard_regs_subnode_t): Ditto.
2901 (struct object_hard_regs_subnode): Ditto.
2902 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
2903 (setup_object_hard_regs_subnode_index): Ditto.
2904 (get_object_hard_regs_subnodes_num): Ditto.
2905 (form_object_hard_regs_nodes_forest): Ditto.
2906 (finish_object_hard_regs_nodes_tree): Ditto.
2907 (finish_object_hard_regs_nodes_forest): Ditto.
2908 (allocnos_have_intersected_live_ranges_p): Rename to
2909 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
2910 (pseudos_have_intersected_live_ranges_p): Rename to
2911 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
2912 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
2913 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
2914 (update_copy_costs): Remove assert. Skip cost update if the hard
2915 reg does not belong the class.
2916 (assign_hard_reg): Process only profitable hard regs.
2917 (uncolorable_allocnos_num): Make it scalar.
2918 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
2919 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
2920 and ira_reg_class_max_nregs.
2921 (bucket_allocno_compare_func): Check frequency first.
2922 (sort_bucket): Add compare function as a parameter.
2923 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
2924 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
2925 (push_allocno_to_stack): Rewrite for checking new allocno
2927 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
2928 (push_only_colorable): Pass new parameter to sort_bucket.
2929 (push_allocno_to_spill): Remove.
2930 (allocno_spill_priority_compare): Make it inline and rewrite.
2931 (splay_tree_allocate, splay_tree_free): Remove.
2932 (allocno_spill_sort_compare): New function.
2933 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
2934 build and use splay tree. Choose first allocno in uncolorable
2935 allocno bucket to spill. Remove setting spill cost.
2936 (all_conflicting_hard_regs): Remove.
2937 (setup_allocno_available_regs_num): Check only profitable hard
2938 regs. Print info about hard regs nodes.
2939 (setup_allocno_left_conflicts_size): Remove.
2940 (put_allocno_into_bucket): Don't call
2941 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
2942 (improve_allocation): New.
2943 (color_allocnos): Call setup_profitable_hard_regs,
2944 form_object_hard_regs_nodes_forest, improve_allocation,
2945 finish_object_hard_regs_nodes_forest. Setup spill cost.
2946 (print_loop_title): Use pressure classes.
2947 (color_allocnso): Ditto.
2948 (do_coloring): Remove allocation and freeing splay_tree_node_pool
2949 and allocnos_for_spilling.
2950 (ira_sort_regnos_for_alter_reg): Don't setup members
2951 {first,next}_coalesced_allocno.
2952 (color): Remove allocating and freeing removed_splay_allocno_vec.
2953 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
2954 prohibited_class_mode_regs.
2956 * ira-lives.c: Remove mentioning cover classes from the file. Fix
2958 (update_allocno_pressure_excess_length): Use pressure classes.
2959 (inc_register_pressure, dec_register_pressure): Check for pressure
2961 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
2962 pressure class. Use ira_reg_class_nregs instead of
2963 ira_reg_class_max_nregs.
2964 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
2965 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
2966 (single_reg_class): Use ira_reg_class_nregs instead of
2967 ira_reg_class_max_nregs.
2968 (process_bb_node_lives): Use pressure classes.
2970 * ira-emit.c: Remove mentioning cover classes from the file. Use
2971 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
2972 (change_loop): Use pressure classes.
2973 (modify_move_list): Call ira_set_allocno_class instead of
2974 ira_set_allocno_cover_class.
2976 * ira-build.c: Remove mentioning cover classes from the file. Use
2977 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
2978 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
2979 ALLOCNO_UPDATED_CLASS_COST instead of
2980 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
2981 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
2982 (ira_create_allocno): Remove initialization of
2983 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
2984 ALLOCNO_COLORABLE_P.
2985 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
2986 Update conflict regs for the objects.
2987 (create_cap_allocno): Remove assert. Don't propagate
2988 ALLOCNO_AVAILABLE_REGS_NUM.
2989 (ira_free_allocno_costs): New function.
2990 (finish_allocno): Change a part of code into call of
2991 ira_free_allocno_costs.
2992 (low_pressure_loop_node_p): Use pressure classes.
2993 (object_range_compare_func): Don't compare classes.
2994 (setup_min_max_conflict_allocno_ids): Ditto.
2996 * loop-invariant.c: Remove mentioning cover classes from the file.
2997 Use ira_pressure_classes and ira_pressure_classes_num instead of
2998 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
2999 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
3000 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3001 Use reg_allocno_class instead of reg_cover_class.
3002 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
3003 STACK_REG_COVER_CLASS.
3004 (get_regno_cover_class): Rename to get_regno_pressure_class.
3005 (move_loop_invariants): Initialize and finalize regstat.
3007 * ira.c: Remove mentioning cover classes from the file. Add
3008 comments about coloring without cover classes. Use ALLOCNO_CLASS
3009 instead of ALLOCNO_COVER_CLASS. Fix formatting.
3010 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
3011 setup_class_subset_and_memory_move_costs.
3012 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
3013 (setup_cover_and_important_classes): Rename to
3014 setup_allocno_and_important_classes.
3015 (setup_class_translate_array): New.
3016 (setup_class_translate): Call it for allocno and pressure classes.
3017 (cover_class_order): Rename to allocno_class_order.
3018 (comp_reg_classes_func): Use ira_allocno_class_translate instead
3019 of ira_class_translate.
3020 (reorder_important_classes): Set up ira_important_class_nums.
3021 (setup_reg_class_relations): Set up ira_reg_class_superunion.
3022 (print_class_cover): Rename to print_classes. Add parameter.
3023 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3024 Print pressure classes too.
3025 (find_reg_class_closure): Rename to find_reg_classes. Don't call
3026 setup_reg_subclasses.
3027 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
3028 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
3029 (setup_prohibited_class_mode_regs): Use
3030 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
3031 (clarify_prohibited_class_mode_regs): New function.
3032 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
3033 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
3034 (ira_init_once): Initialize them.
3035 (free_register_move_costs): Process them.
3036 (ira_init): Move calls of find_reg_classes and
3037 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
3038 Call clarify_prohibited_class_mode_regs.
3039 (ira_no_alloc_reg): Remove.
3040 (too_high_register_pressure_p): Use pressure classes.
3042 * sched-deps.c: Remove mentioning cover classes from the file.
3043 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
3044 ira_pressure_classes and ira_pressure_classes_num instead of
3045 ira_reg_class_cover_size and ira_reg_class_cover.
3046 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
3047 sched_regno_pressure_class instead of sched_regno_cover_class.
3048 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
3049 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3051 * ira.h: Add 2010 to Copyright.
3052 (ira_no_alloc_reg): Remove external.
3053 (struct target_ira): Rename x_ira_hard_regno_cover_class,
3054 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
3055 x_ira_class_translate to x_ira_hard_regno_allocno_class,
3056 x_ira_allocno_classes_num, x_ira_allocno_classes, and
3057 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
3058 x_ira_pressure_classes, x_ira_pressure_class_translate, and
3059 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
3060 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
3061 x_ira_no_alloc_regs.
3062 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
3063 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
3064 ira_allocno_classes_num and ira_allocno_classes.
3065 (ira_class_translate): Rename to ira_allocno_class_translate.
3066 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
3067 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
3068 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
3069 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
3070 (ira_no_alloc_regs): New.
3072 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
3073 classes from the file. Use ALLOCNO_CLASS instead of
3074 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
3075 ALLOCNO_COVER_CLASS_COST.
3076 (regno_cover_class): Rename to regno_aclass.
3077 (record_reg_classes): Use ira_reg_class_subunion instead of
3078 ira_reg_class_union.
3079 (record_address_regs): Check overflow.
3080 (scan_one_insn): Ditto.
3081 (print_allocno_costs): Print total mem cost fore regional allocation.
3082 (print_pseudo_costs): Use REG_N_REFS.
3083 (find_costs_and_classes): Use classes intersected with them on the
3084 1st pass. Check overflow. Use ira_reg_class_subunion instead of
3085 ira_reg_class_union. Use ira_allocno_class_translate and
3086 regno_aclass instead of ira_class_translate and regno_cover_class.
3087 Modify code for finding regno_aclass. Setup preferred classes for
3089 (setup_allocno_cover_class_and_costs): Rename to
3090 setup_allocno_class_and_costs. Use regno_aclass instead of
3091 regno_cover_class. Use ira_set_allocno_class instead of
3092 ira_set_allocno_cover_class.
3093 (init_costs, finish_costs): Use regno_aclass instead of
3095 (ira_costs): Use setup_allocno_class_and_costs instead of
3096 setup_allocno_cover_class_and_costs.
3097 (ira_tune_allocno_costs_and_cover_classes): Rename to
3098 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
3099 by processing objects. Use ira_reg_class_max_nregs instead of
3100 ira_reg_class_nregs.
3102 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
3104 * sched-int.h: Remove mentioning cover classes from the file.
3105 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
3107 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
3108 classes from the file.
3109 (struct reg_pref): Rename coverclass into allocnoclass.
3110 (reg_cover_class): Rename to reg_allocno_class.
3112 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
3114 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
3116 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
3118 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
3120 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
3122 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
3124 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
3126 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
3128 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
3130 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
3132 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
3133 (i386_ira_cover_classes): Ditto.
3135 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
3137 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
3139 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
3141 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
3143 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
3145 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
3147 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
3148 (mips_ira_cover_classes): Ditto.
3150 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
3152 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
3154 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
3156 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
3158 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
3160 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
3161 (IRA_COVER_CLASSES_VSX): Ditto.
3163 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
3164 (rs6000_ira_cover_classes): Ditto.
3166 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
3168 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
3170 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
3172 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
3174 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
3176 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
3178 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
3180 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
3182 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
3184 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
3186 2011-03-29 Jakub Jelinek <jakub@redhat.com>
3189 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
3190 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
3191 dw_fde_unlikely_section_end_label, cold_in_std_section,
3192 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
3193 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
3195 (output_fde): Use dw_fde_second_{begin,end} if second is
3196 true, otherwise dw_fde_{begin,end}.
3197 (output_call_frame_info): Test dw_fde_second_begin != NULL
3198 instead of dw_fde_switched_sections.
3199 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
3200 fields, initialize new fields. Initialize in_std_section
3201 unconditionally from the first partition.
3202 (dwarf2out_end_epilogue): Don't override dw_fde_end when
3203 dw_fde_second_begin is non-NULL.
3204 (dwarf2out_switch_text_section): Stop initializing removed
3205 dw_fde_struct fields, initialize new fields, initialize
3206 also dw_fde_end here. Set dw_fde_switch_cfi even when
3207 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
3208 (struct var_loc_list_def): Add last_before_switch field.
3209 (arange_table, arange_table_allocated, arange_table_in_use,
3210 ARANGE_TABLE_INCREMENT, add_arange): Removed.
3211 (size_of_aranges): Count !in_std_section and !second_in_std_section
3212 hunks in fdes, instead of looking at arange_table_in_use.
3213 (output_aranges): Add aranges_length argument, don't call
3214 size_of_aranges here. Instead of using aranges_table*
3215 emit ranges for fdes when !in_std_section resp.
3216 !second_in_std_section.
3217 (dw_loc_list): Break ranges crossing section switch.
3218 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
3219 use dw_fde_second_end instead of dw_fde_end as end of last range.
3220 (gen_subprogram_die): Don't call add_arange. Use
3221 dw_fde_{begin,end} for first partition and if switched
3222 section dw_fde_second_{begin,end} for the second.
3223 (var_location_switch_text_section_1,
3224 var_location_switch_text_section): New functions.
3225 (dwarf2out_begin_function): Initialize cold_text_section even
3226 when function_section () isn't text_section.
3227 (prune_unused_types): Don't walk arange_table.
3228 (dwarf2out_finish): Don't needlessly test
3229 flag_reorder_blocks_and_partition when testing cold_text_section_used.
3230 If info_section_emitted, call size_of_aranges and if it indicates
3231 non-empty .debug_aranges, call output_aranges with the computed
3232 size. Stop using removed dw_fde_struct fields, use
3233 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
3237 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
3238 create ENTRY_VALUE if incoming or address of incoming's MEM
3240 * dwarf2out.c (mem_loc_descriptor): Don't emit
3241 DW_OP_GNU_entry_value of DW_OP_fbreg.
3242 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
3243 on ENTRY_VALUE is able to find the canonical parameter VALUE.
3244 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
3245 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
3247 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
3248 is a REG_P or MEM_P with REG_P address, compute hash directly
3249 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
3250 (preserve_only_constants): Don't clear VALUES forwaring
3251 ENTRY_VALUE to some other VALUE.
3253 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
3255 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
3258 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
3260 * cfgexpand.c (expand_gimple_cond): Always set the source location and
3261 block before expanding the statement.
3262 (expand_gimple_stmt_1): Likewise. Set them here...
3263 (expand_gimple_stmt): ...and not here. Tidy.
3264 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
3267 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
3269 * Makefile.in: New rule for cprop.o.
3270 * gcse.c: Move constant/copy propagation to cprop.c.
3271 (compute_local_properties): Only handle expression tables.
3272 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
3273 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
3274 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
3275 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
3276 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
3277 compute_cprop_data, find_used_regs, try_replace_reg,
3278 find_avail_set, cprop_jump, constprop_register, cprop_insn,
3279 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
3280 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
3281 find_bypass_set, reg_killed_on_edge, bypass_block,
3282 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
3283 execute_rtl_cprop, pass_rtl_cprop): Move to...
3284 * cprop.c: ...here. New file, constant/copy propagation for RTL
3285 moved from gcse.c to here with minor cleanups in duplicated code.
3287 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
3289 * config/i386/i386.c (flag_opts): Fix a typo in
3290 -mavx256-split-unaligned-store.
3292 2011-03-28 Anatoly Sokolov <aesok@post.ru>
3294 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
3295 LIBCALL_VALUE): Remove macros.
3296 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3297 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3298 (h8300_function_value, h8300_libcall_value,
3299 h8300_function_value_regno_p): New functions.
3301 2011-03-28 Anatoly Sokolov <aesok@post.ru>
3303 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
3305 2011-03-28 Jeff Law <law@redhat.com>
3307 * tree-ssa-threadupdate.c (redirect_edges): Call
3308 create_edge_and_update_destination_phis as needed.
3309 (create_edge_and_update_destination_phis): Accept new BB argument.
3310 All callers updated.
3311 (thread_block): Do not update the profile when threading around
3312 intermediate blocks.
3313 (thread_single_edge): Likewise.
3314 (determine_bb_domination_status): If BB is not a successor of the
3315 loop header, return NONDOMINATING.
3316 (register_jump_thread): Note when we register a jump thread around
3317 an intermediate block.
3318 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
3319 (thread_across_edge): Use it.
3321 2011-03-28 Tristan Gingold <gingold@adacore.com>
3323 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
3324 when for_return is 2.
3326 2011-03-28 Jeff Law <law@redhat.com>
3328 * var-tracking.c (canonicalize_values_mark): Delete unused
3330 (canonicalize_values_star, set_variable_part): Likewise.
3331 (clobber_variable_part, delete_variable_part): Likewise.
3333 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
3335 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
3337 2011-03-28 Martin Jambor <mjambor@suse.cz>
3339 * tree-inline.c (expand_call_inline): Do not check that destination
3341 (optimize_inline_calls): Assert that destination node is analyzed.
3342 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
3343 not call tree_lowering_passes.
3344 * cgraph.h (cgraph_analyze_function): Declare.
3345 * cgraphunit.c (cgraph_analyze_function): Make public.
3347 2011-03-28 Joseph Myers <joseph@codesourcery.com>
3349 * config/sparc/sparc-opts.h: New.
3350 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
3351 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
3352 (sparc_option_override): Store processor_type enumeration rather
3353 than string in cpu_default. Remove name and enumeration from
3354 cpu_table. Directly default -mcpu then default -mtune from -mcpu
3355 without using sparc_select. Use target_flags_explicit instead of
3357 * config/sparc/sparc.h (enum processor_type): Move to
3359 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
3360 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
3361 HeaderInclude entry.
3362 (mcpu=, mtune=): Use Var and Enum.
3363 (sparc_processor_type): New Enum and EnumValue entries.
3365 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3366 Iain Sandoe <iains@gcc.gnu.org>
3369 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
3371 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
3373 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
3374 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
3375 Insert new statements at it in lieu of STMT.
3376 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
3377 * tree-vect-stmts.c (vectorizable_store): Likewise.
3378 (vectorizable_load): Likewise.
3380 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
3382 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
3387 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
3389 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
3390 unaligned 256bit load/store.
3391 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
3392 (*avx_movdqu<avxmodesuffix>): Likewise.
3394 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3397 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
3398 * config/pa/pa.md (iordi3): Use new predicate in expander.
3401 2011-03-27 Anatoly Sokolov <aesok@post.ru>
3403 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
3404 FUNCTION_VALUE_REGNO_P): Remove macros.
3405 * config/mips/mips-protos.h (mips_function_value): Remove.
3406 * config/mips/mips.c (mips_function_value): Rename to...
3407 (mips_function_value_1): ... this. Make static. Handle receiving
3408 the function type in 'fn_decl_or_type' argument.
3409 (mips_function_value, mips_libcall_value,
3410 mips_function_value_regno_p): New function.
3411 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3412 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3414 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
3416 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
3417 and -mavx256-split-unaligned-store.
3418 (ix86_option_override_internal): Split 32-byte AVX unaligned
3419 load/store by default.
3420 (ix86_avx256_split_vector_move_misalign): New.
3421 (ix86_expand_vector_move_misalign): Use it.
3423 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
3424 -mavx256-split-unaligned-store.
3426 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
3427 256bit load/store. Generate unaligned store on misaligned memory
3429 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
3431 (*avx_movdqu<avxmodesuffix>): Likewise.
3433 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
3434 -mavx256-split-unaligned-store.
3436 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
3439 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
3442 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
3444 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
3445 opno arguments with an expand_operand. Use create_input_operand.
3446 (mips_prepare_builtin_target): Delete.
3447 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
3449 (mips_expand_builtin_direct): Use create_output_operand and
3450 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
3451 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
3452 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
3454 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
3456 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
3458 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
3460 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
3462 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
3463 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
3464 basic blocks and call commit_edge_insertions directly.
3465 (fixup_abnormal_edges): Move from here to...
3466 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
3467 on the edges and return whether some have actually been inserted.
3468 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
3471 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
3473 PR rtl-optimization/48144
3474 * sel-sched-ir.c (merge_history_vect): Factor out from ...
3475 (merge_expr_data): ... here.
3476 (av_set_intersect): Rename to av_set_code_motion_filter.
3477 Update all callers. Call merge_history_vect when an expression
3478 is found in both sets.
3479 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
3481 2011-03-26 Alan Modra <amodra@gmail.com>
3483 * config/rs6000/predicates.md (word_offset_memref_op): Handle
3484 cmodel medium addresses.
3485 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
3486 64-bit gpr loads and stores.
3487 (rs6000_secondary_reload_ppc64): New function.
3488 * config/rs6000/rs6000-protos.h: Declare it.
3489 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
3491 2011-03-26 Alan Modra <amodra@gmail.com>
3494 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
3495 GNU Go in traceback table.
3497 2011-03-25 Richard Henderson <rth@redhat.com>
3499 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
3500 if there are exactly 6 operands.
3501 (set_storage_via_setmem): Similarly.
3503 2011-03-25 Kai Tietz <ktietz@redhat.com>
3505 * collect2.c (write_c_file_stat): Handle backslash
3506 as right-hand directory separator.
3507 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
3508 checking just for slash.
3509 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
3510 instead of checking for trailing slash.
3511 * gcc.c (record_temp_file): Use filename_cmp instead
3513 (do_spec_1): Likewise.
3514 (replace_outfile_spec_function): Likewise.
3515 (is_directory): Use filename_ncmp instead of strncmp.
3516 (print_multilib_info): Likewise.
3517 * gcov.c (find_source): Use filename_cmp instead
3519 (make_gcov_file_name): Fix order of slash/backslash
3521 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
3522 (add_standard_paths): Likewise.
3523 * mips-tfile.c (saber_stop): Handle backslash.
3524 * prefix.c (update_path): Use filename_ncmp instead of
3526 * profile.c (output_location): Use filename_cmp instead
3528 * read-md.c (handle_toplevel_file): Handle backslash.
3529 * tlink.c (frob_extension): Likewise.
3530 * tree-cfg.c (same_line_p): Use filename_cmp instead of
3532 * tree-dump.c (dequeue_and_dump): Handle backslash.
3533 * tree.c (get_file_function_name): Likewise.
3534 * gengtype.c (read_input_list): Likewise.
3535 (get_file_realbasename): Likewise.
3536 (get_output_file_with_visibility): Use filename_cmp
3539 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
3541 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
3544 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
3546 * fold-const.c (expr_location_or): New function.
3547 (fold_truth_not_expr): Call it.
3549 2011-03-25 Jeff Law <law@redhat.com>
3551 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
3553 * c-family/c-common.c (def_fn_type): Likewise.
3554 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
3555 * emit-rtl.c (gen_rtvec): Likewise.
3556 * lto/lto-lang.c (def_fn_type): Likewise.
3558 2011-03-25 Richard Guenther <rguenther@suse.de>
3560 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
3561 also generate copies.
3562 (fini_copy_prop): Handle constant values properly.
3564 2011-03-25 Jakub Jelinek <jakub@redhat.com>
3566 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
3567 mode size instead of bitsize with DWARF2_ADDR_SIZE.
3568 (hash_loc_operands, compare_loc_operands): Handle
3569 DW_OP_GNU_entry_value.
3571 2011-03-25 Kai Tietz <ktietz@redhat.com>
3573 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
3574 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
3575 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
3576 comment and use macro TARGET_64BIT_MS_ABI instead.
3577 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
3578 and change default behavior for 32-bit MS_ABI.
3579 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
3580 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
3582 (ix86_cfun_abi): Likewise.
3583 (ix86_maybe_switch_abi): Adjust comment.
3584 (init_cumulative_args): Check for bit-ness in MS_ABI case.
3585 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
3586 instead of checking for SYSV_ABI.
3587 (ix86_nsaved_sseregs): Likewise.
3588 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
3590 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
3591 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
3592 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
3593 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
3594 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
3596 2011-03-25 Richard Guenther <rguenther@suse.de>
3598 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
3599 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
3600 (verify_gimple): Remove.
3601 * tree-cfg.c (verify_gimple_call): Merge verification
3603 (verify_gimple_phi): Merge verification from verify_stmts.
3604 (verify_gimple_label): New function.
3605 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
3606 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
3607 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
3608 (verify_stmts): Rename to verify_gimple_in_cfg.
3609 (verify_gimple_in_cfg): New function.
3610 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
3611 * tree-ssa.c (verify_ssa): Likewise.
3612 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
3614 2011-03-25 Richard Guenther <rguenther@suse.de>
3616 * passes.c (init_optimization_passes): Add FRE pass after
3619 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
3620 Andrew Stubbs <ams@codesourcery.com>
3622 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
3624 (arm_movdi_vfp_cortexa8): New pattern.
3625 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
3626 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
3627 instructions when tuning for Cortex-A8. Set attribute "arch".
3628 * config/arm/arm.md: Move include arm-tune.md up a bit.
3629 (define_attr "arch"): Add "onlya8" and "nota8" values.
3630 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
3632 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
3636 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
3638 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
3639 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
3640 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
3641 * passes.c (init_optimization_passes): Move
3642 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
3644 2011-03-25 Kai Tietz <ktietz@redhat.com>
3646 * c-typeck.c (comptypes_internal): Replace target
3647 hook call of comp_type_attributes by version in tree.c file.
3648 * gimple.c (gimple_types_compatible_p_1): Likewise.
3649 * tree-ssa.c (useless_type_conversion_p): Likewise.
3650 * tree.c (build_type_attribute_qual_variant): Likewise.
3651 (attribute_value_equal): New static helper function.
3652 (comp_type_attributes): New function.
3653 (merge_attributes): Use attribute_value_equal for comparison.
3654 (attribute_list_contained): Likewise.
3655 * tree.h (comp_type_attributes): New prototype.
3657 2011-03-25 Richard Guenther <rguenther@suse.de>
3659 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
3660 of complex types at -O0.
3661 (verify_gimple_assign_binary): Likewise.
3662 (verify_gimple_assign_ternary): Likewise.
3664 2011-03-24 Mark Wielaard <mjw@redhat.com>
3666 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
3667 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
3669 2011-03-24 Mark Wielaard <mjw@redhat.com>
3672 * dwarf2out.c (output_abbrev_section): Only write table when
3673 abbrev_die_table_in_use > 1.
3675 2011-02-24 Richard Henderson <rth@redhat.com>
3677 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
3678 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
3679 (alpha_expand_unaligned_load_words): Use extql.
3680 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
3681 (emit_insxl): Handle all modes for consistency.
3683 2011-02-24 Richard Henderson <rth@redhat.com>
3685 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
3686 (alpha_expand_unaligned_load): Likewise.
3687 (alpha_expand_unaligned_store): Likewise.
3688 (alpha_expand_unaligned_load_words): Likewise.
3689 (alpha_expand_unaligned_store_words): Likewise.
3690 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
3691 (alpha_split_lock_test_and_set_12): Likewise.
3692 (print_operand, alpha_fold_builtin_extxx): Likewise.
3693 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
3694 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
3695 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
3696 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
3697 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
3698 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
3699 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
3700 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
3701 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
3702 (extwl, extll, extql): Similarly.
3703 (inswh, inslh, insqh): Similarly.
3704 (mskbl, mskwl, mskll, mskql): Similarly.
3705 (mskwh, msklh, mskqh): Similarly.
3707 2011-02-24 Richard Henderson <rth@redhat.com>
3709 * config/alpha/alpha.md (attribute isa): Add er, ner.
3710 (attribute enabled): Handle them.
3711 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
3713 2011-02-24 Richard Henderson <rth@redhat.com>
3715 * config/alpha/alpha.md (attribute isa): Add vms.
3716 (attribute enabled): Handle it.
3717 (*movsf): Merge *movsf_{nofix,fix,nofp}.
3718 (*movdf): Merge *movdf_{nofix,fix,nofp}.
3719 (*movtf): Rename from *movtf_internal for consistency.
3720 (*movsi): Merge with *movsi_nt_vms.
3721 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
3722 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
3723 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
3724 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
3726 2011-02-24 Richard Henderson <rth@redhat.com>
3728 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
3729 (extendqisi2, extendhisi2): Likewise.
3730 (extendqidi2): Simplify BWX/non-BWX expansions.
3731 (extendhidi2): Similarly.
3733 2011-02-24 Richard Henderson <rth@redhat.com>
3735 * config/alpha/alpha.md (attribute isa): New.
3736 (attribute enabled): New.
3737 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
3738 (zero_extendqisi2, zero_extendqidi2): Similarly.
3739 (zero_extendhisi2, zero_extendhidi2): Similarly.
3740 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
3742 2011-02-24 Richard Henderson <rth@redhat.com>
3744 * config/alpha/predicates.md (input_operand): Revert last change;
3745 update comment to mention 32-bit VMS rather than Windows.
3747 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
3749 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
3750 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
3751 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
3752 * passes.c (init_optimization_passes): Move
3753 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
3755 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
3757 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
3759 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
3761 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
3764 2011-03-24 Jakub Jelinek <jakub@redhat.com>
3767 * simplify-rtx.c (simplify_const_unary_operation): Call
3768 real_convert when changing mode class with FLOAT_EXTEND.
3770 2011-03-24 Nick Clifton <nickc@redhat.com>
3772 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
3773 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
3774 * config/rx/rx.c (rx_option_override): Set align_jumps,
3775 align_loops and align_labels if not set by the user.
3776 (rx_align_for_label): New function.
3777 (rx_max_skip_for_label): New function.
3778 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
3779 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
3780 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
3781 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
3782 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
3784 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
3786 PR rtl-optimization/48263
3787 * optabs.c (expand_binop_directly): Reinstate convert_modes code
3788 and original commutative_p handling. Use maybe_gen_insn.
3790 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3792 * reload.c (find_reloads_subreg_address): Add address_reloaded
3793 parameter and return true there if the full address has been
3795 (find_reloads_toplev): Pass address_reloaded flag.
3796 (find_reloads_address_1): Don't use address_reloaded parameter.
3798 2011-03-24 Jeff Law <law@redhat.com>
3800 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
3801 unused variable "ann".
3802 (remove_unused_locals): Likewise.
3804 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
3807 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
3810 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3812 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
3813 for invalid symbolic addresses.
3814 (s390_secondary_reload): Don't use s390_check_symref_alignment for
3817 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
3819 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
3820 the argument in calls to fold_truth_not_expr.
3822 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
3824 * tree.c (record_node_allocation_statistics): New function.
3825 (make_node_stat, copy_node_stat, build_string): Call it.
3826 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
3827 (build1_stat, build_omp_clause): Likewise.
3829 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
3831 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
3834 2011-03-24 Richard Guenther <rguenther@suse.de>
3836 PR tree-optimization/48271
3837 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
3838 blocks that still exist.
3840 2011-03-24 Richard Guenther <rguenther@suse.de>
3842 PR tree-optimization/48270
3843 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
3844 not free datarefs before ddrs.
3846 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
3848 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
3849 from the address built for a reference with variable offset.
3851 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
3854 * config/i386/i386.md (*movdf_internal_rex64): Do not split
3855 alternatives that can be handled with movq or movabsq insn.
3856 (*movdf_internal): Disable for !TARGET_64BIT.
3857 (*movdf_internal_nointeger): Ditto.
3858 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
3860 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
3862 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
3863 (FUNCTION_ARG_ADVANCE): Likewise.
3864 * tm.texi.in: Change references to them to hook references.
3865 * tm.texi: Regenerate.
3866 * targhooks.c (default_function_arg): Eliminate check for target macro.
3867 (default_function_incoming_arg): Likewise.
3868 (default_function_arg_advance): Likewise.
3869 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
3870 (function_arg_advance): Likewise.
3871 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
3873 2011-03-24 Richard Guenther <rguenther@suse.de>
3876 * tree-object-size.c (addr_object_size): Do not double-account
3877 for MEM_REF offsets.
3879 2011-03-24 Diego Novillo <dnovillo@google.com>
3881 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
3882 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
3883 (lto_input_data_block): Move from lto-opts.c. Make extern.
3885 (lto_input_string): Rename from input_string. Make extern.
3887 * lto-streamer-out.c (lto_output_string_with_length): Rename from
3888 output_string_with_length.
3889 Output 0 to indicate a non-NULL string. Update all callers to
3891 (lto_output_string): Rename from output_string. Make extern.
3893 (lto_output_decl_state_streams): Make extern.
3894 (lto_output_decl_state_refs): Make extern.
3895 * lto-streamer.h (lto_input_string): Declare.
3896 (lto_input_data_block): Declare.
3897 (lto_output_string): Declare.
3898 (lto_output_string_with_length): Declare.
3899 (lto_output_decl_state_streams): Declare.
3900 (lto_output_decl_state_refs): Declare.
3902 2011-03-24 Richard Guenther <rguenther@suse.de>
3904 PR tree-optimization/46562
3905 * tree.c (build_invariant_address): New function.
3906 * tree.h (build_invariant_address): Declare.
3907 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
3908 a renamed function moved ...
3909 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
3910 Take valueization callback parameter.
3911 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
3912 * gimple-fold.h: New file.
3913 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
3914 (ccp_fold, fold_const_aggregate_ref,
3915 fold_ctor_reference, fold_nonarray_ctor_reference,
3916 fold_array_ctor_reference, fold_string_cst_ctor_reference,
3917 get_base_constructor): Move ...
3918 * gimple-fold.c: ... here.
3919 (gimple_fold_stmt_to_constant_1): New function
3920 split out from ccp_fold. Take a valueization callback parameter.
3921 Valueize all operands.
3922 (gimple_fold_stmt_to_constant): New wrapper function.
3923 (fold_const_aggregate_ref_1): New function split out from
3924 fold_const_aggregate_ref. Take a valueization callback parameter.
3925 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
3926 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
3927 invariant POINTER_PLUS_EXPRs to invariant form.
3928 (vn_valueize): New function.
3929 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
3930 * tree-vrp.c (vrp_valueize): New function.
3931 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
3932 to fold statements to constants.
3933 * tree-ssa-pre.c (eliminate): Properly guard propagation of
3934 function declarations.
3935 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
3936 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
3938 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
3940 * config/h8300/predicates.md (jump_address_operand): Fix register
3943 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
3945 * doc/invoke.texi (max-stores-to-sink): Document.
3946 * params.h (MAX_STORES_TO_SINK): Define.
3947 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
3948 if either vectorization or if-conversion is disabled.
3949 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
3950 tree-vect-data-refs.c vect_equal_offsets.
3951 (dr_equal_offsets_p): New function.
3952 (find_data_references_in_bb): Remove static.
3953 * tree-data-ref.h (find_data_references_in_bb): Declare.
3954 (dr_equal_offsets_p): Likewise.
3955 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
3956 (vect_drs_dependent_in_basic_block): Update calls to
3958 (vect_check_interleaving): Likewise.
3959 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
3960 (cond_if_else_store_replacement): Rename to...
3961 (cond_if_else_store_replacement_1): ... this. Change arguments and
3963 (cond_if_else_store_replacement): New function.
3964 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
3965 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
3967 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
3970 * config/arm/arm.md (casesi): Use the gen_int_mode() function
3971 to subtract lower bound instead of GEN_INT().
3973 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
3978 * doc/extend.texi (Alignment): Move section to match order in TOC.
3979 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
3980 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
3982 2011-03-23 Jeff Law <law@redhat.com>
3984 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
3985 before removing the edge.
3987 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
3988 it may have been freed by redirect_branch_edge or
3989 redirect_edge_succ_nodup.
3991 2011-03-23 Richard Guenther <rguenther@suse.de>
3993 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
3994 (check_va_list_escapes): Likewise.
3995 (check_all_va_list_escapes): Likewise.
3997 2011-03-23 Richard Guenther <rguenther@suse.de>
3999 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
4000 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
4001 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
4002 (alias.o): Likewise.
4003 (ipa-type-escape.o): Remove.
4004 (ipa-struct-reorg.o): Likewise.
4005 (GTFILES): Remove ipa-struct-reorg.c.
4006 * alias.c: Do not include ipa-type-escape.h.
4007 * tree-ssa-alias.c: Likewise.
4008 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
4009 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
4010 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
4011 and ipa-type-escape passes.
4012 * tree-pass.h (pass_ipa_type_escape): Remove.
4013 (pass_ipa_struct_reorg): Likewise.
4014 * ipa-struct-reorg.h: Remove.
4015 * ipa-struct-reorg.c: Likewise.
4016 * ipa-type-escape.h: Likewise.
4017 * ipa-type-escape.c: Likewise.
4018 * doc/invoke.texi (-fipa-struct-reorg): Remove.
4019 (--param struct-reorg-cold-struct-ratio): Likewise.
4020 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
4021 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
4022 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
4024 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4026 * config/s390/2084.md: Enable all insn reservations also for z9_ec
4027 cpu attribute value.
4028 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
4029 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
4030 * config/s390/s390.c (processor_flags_table): New constant array.
4031 (s390_handle_arch_option): Remove.
4032 (s390_handle_option): Remove s390_handle_arch_option invocations
4033 and OPT_mwarn_framesize_ handling.
4034 (s390_option_override): Remove s390_handle_arch_option invocation.
4035 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
4037 * config/s390/s390.md (cpu attribute): Add z9_ec value.
4038 * config/s390/s390.opt (s390_tune, s390_arch)
4039 (march=): Replace s390_arch_option enum and values with
4040 processor_type. Set variable name to s390_arch. Set
4041 initialization value.
4042 (mtune=): Replace s390_arch_option with processor_type. Set
4043 variable name to s390_tune. Set initialization value.
4045 2011-03-23 Julian Brown <julian@codesourcery.com>
4047 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
4048 accesses which are not naturally aligned.
4050 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
4053 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
4055 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
4057 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
4058 parameter from "int" to "enum insn_code".
4059 (expand_operand_type): New enum.
4060 (expand_operand): New structure.
4061 (create_expand_operand): New function.
4062 (create_fixed_operand, create_output_operand): Likewise
4063 (create_input_operand, create_convert_operand_to): Likewise.
4064 (create_convert_operand_from, create_address_operand): Likewise.
4065 (create_integer_operand): Likewise.
4066 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
4067 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
4068 (expand_insn, expand_jump_insn): Likewise.
4069 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
4070 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
4071 (expand_movstr, expand_builtin___clear_cache): Likewise.
4072 (expand_builtin_lock_release): Likewise.
4073 * explow.c (allocate_dynamic_stack_space): Likewise.
4074 (probe_stack_range): Likewise. Allow check_stack to FAIL,
4075 and use the default handling in that case.
4076 * expmed.c (check_predicate_volatile_ok): Delete.
4077 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
4078 (emit_cstore): Likewise.
4079 * expr.c (emit_block_move_via_movmem): Likewise.
4080 (set_storage_via_setmem, expand_assignment): Likewise.
4081 (emit_storent_insn, try_casesi): Likewise.
4082 (emit_single_push_insn): Likewise. Allow the expansion to fail.
4083 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
4084 (expand_vec_shift_expr, expand_binop_directly): Likewise.
4085 (expand_twoval_unop, expand_twoval_binop): Likewise.
4086 (expand_unop_direct, emit_indirect_jump): Likewise.
4087 (emit_conditional_move, vector_compare_rtx): Likewise.
4088 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
4089 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
4090 (expand_sync_lock_test_and_set): Likewise.
4091 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
4092 (emit_unop_insn): Likewise.
4093 (expand_copysign_absneg): Change icode to an insn_code.
4094 (create_convert_operand_from_type): New function.
4095 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
4096 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
4097 (expand_insn, expand_jump_insn): Likewise.
4098 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
4099 than const_int_operand for operand 2.
4101 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4103 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
4106 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
4108 * emit-rtl.c (emit_pattern_before_noloc): New function.
4109 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
4110 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
4111 (emit_pattern_after_noloc): New function.
4112 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
4113 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
4115 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
4117 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
4118 (__ffsDI2): Likewise.
4120 2011-03-22 Richard Henderson <rth@redhat.com>
4122 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
4123 of !TARGET_ABI_OPEN_VMS.
4124 (alpha_trampoline_init, alpha_start_function): Likewise.
4125 (alpha_expand_epilogue, alpha_file_start): Likewise.
4126 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
4127 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
4128 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
4129 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
4130 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
4132 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4134 * config/s390/s390-opts.h: New.
4135 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
4136 s390_arch_flags, s390_warn_framesize, s390_stack_size,
4137 s390_stack_guard): Remove.
4138 (s390_handle_arch_option): Return void. Take enum
4139 s390_arch_option value instead of string and searching array.
4140 (s390_handle_option): Don't assert that global structures are in
4141 use. Access variables via opts pointer. Use error_at. Don't use
4142 sscanf for -mstack-guard= or -mstack-size=. Update call to
4143 s390_handle_arch_option.
4144 (s390_option_override): Update call to s390_handle_arch_option.
4145 (s390_emit_prologue): Use %d format for s390_stack_size in
4146 diagnostic. Use %wd for HOST_WIDE_INT.
4147 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
4148 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
4149 * config/s390/s390.opt (config/s390/s390-opts.h): New
4150 HeaderInclude entry.
4151 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
4152 s390_arch_flags, s390_warn_framesize): New Variable entries.
4153 (s390_arch_option): New Enum and EnumValue entries.
4154 (march=): Use Enum instead of Var.
4155 (mstack-guard=, mstack-size=): Use UInteger and Var.
4158 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4160 * config/score/score.c (score_handle_option): Don't assert that
4161 global structures are in use. Access target_flags via opts
4162 pointer. Use value of -march= option to determine target_flags
4164 * config/score/score.opt (march=): Use Enum.
4165 (score_arch): New Enum and EnumValue entries.
4167 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4169 * config/mep/mep.c (option_mtiny_specified): Remove.
4170 (mep_option_override): Move register handling for -mivc2 from
4171 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
4172 instead of option_mtiny_specified.
4173 (mep_handle_option): Access target_flags via opts pointer. Don't
4174 assert that global structures are in use. Defer part of -mivc2
4175 handling and move it to mep_option_override.
4176 * config/mep/mep.opt (IVC2): New Mask entry.
4177 (mivc2): Use Var and Defer instead of Mask.
4179 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4181 * config/v850/v850-opts.h: New.
4182 * config/v850/v850.c (small_memory): Replace with
4183 small_memory_physical_max array. Make that array static const.
4184 (v850_handle_memory_option): Take integer value of argument. Take
4185 gcc_options pointer, option text and location. Return void.
4186 Update for changes to small memory structures.
4187 (v850_handle_option): Access target_flags via opts pointer. Don't
4188 assert that global structures are in use. Update calls to
4189 v850_handle_memory_option.
4190 (v850_encode_data_area): Update references to small memory settings.
4191 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4192 (enum small_memory_type): Move to v850-opts.h.
4193 * config/v850/v850.opt (config/v850/v850-opts.h): New
4194 HeaderInclude entry.
4195 (small_memory_max): New Variable entry.
4196 (msda): Replace by pair of options msda= and msda-. Use UInteger.
4197 (mtda, mzda): Likewise.
4199 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4201 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
4202 pointer. Don't assert that global structures are in use.
4204 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4206 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
4207 via opts pointer. Don't assert that global structures are in use.
4209 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4211 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
4212 (munix=93): Use Var.
4213 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
4214 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
4215 * config/pa/pa-opts.h: New.
4216 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
4217 (pa_handle_option): Don't assert that global structures are in
4218 use. Access target_flags via opts pointer. Don't handle
4219 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
4221 (pa_option_override): Handle deferred OPT_mfixed_range_.
4223 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4225 * config/mn10300/mn10300-opts.h: New.
4226 * config/mn10300/mn10300.c (mn10300_processor,
4227 mn10300_tune_string): Remove.
4228 (mn10300_handle_option): Don't assert that global structures are
4229 in use. Access mn10300_processor via opts pointer. Don't handle
4231 * config/mn10300/mn10300.h (enum processor_type): Move to
4233 (mn10300_processor): Remove.
4234 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
4235 HeaderInclude entry.
4236 (mn10300_processor): New Variable entry.
4239 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4241 * config/microblaze/microblaze.c: Don't include opts.h.
4242 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
4243 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
4244 (mno-clearbss): Use Var and Warn.
4246 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4248 * config/m32r/m32r-opts.h: New.
4249 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
4250 (m32r_handle_option): Don't assert that global structures are in
4251 use. Access target_flags and m32r_cache_flush_func via opts
4252 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
4253 OPT_mno_flush_trap here.
4254 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
4255 include of m32r-opts.h.
4256 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
4257 HeaderInclude entry.
4258 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
4259 (mmodel=): Use Enum and Var.
4260 (m32r_model): New Enum and EnumValue entries.
4261 (mno-flush-trap): Use Var.
4262 (msdata=): Use Enum and Var.
4263 (m32r_sdata): New Enum and EnumValue entries.
4265 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4267 * config/m32c/m32c.c: Don't include opts.h.
4268 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
4269 m32c_handle_option): Remove.
4270 (m32c_option_override): Check global_options_set.x_target_memregs
4271 instead of target_memregs_set.
4272 * config/m32c/m32c.h (target_memregs): Remove.
4273 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
4276 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4278 * config/iq2000/iq2000-opts.h: New.
4279 * config/iq2000/iq2000.c: Don't include opts.h.
4280 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
4281 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
4282 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
4283 HeaderInclude entry.
4284 (iq2000_tune): New Variable entry.
4285 (march=): Add comment. Use Enum.
4286 (iq2000_arch): New Enum and EnumValue entries.
4287 (mcpu=): Use Enum and Var.
4288 (iq2000_tune): New Enum and EnumValue entries.
4290 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4292 * config/ia64/ia64-opts.h: New.
4293 * config/ia64/ia64.c (ia64_tune): Remove.
4294 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
4296 (ia64_option_override): Handle deferred OPT_mfixed_range_.
4297 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
4298 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
4299 HeaderInclude entry.
4300 (ia64_tune): New Variable entry.
4301 (mfixed-range=): Use Defer and Var.
4302 (mtune=): Use Enum and Var.
4303 (ia64_tune): New Enum and EnumValue entries.
4305 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4307 * config/frv/frv-opts.h: New.
4308 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
4310 (frv_cpu_type): Remove.
4311 * config/frv/frv.c: Don't include opts.h.
4312 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
4313 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
4314 (frv_cpu_type): New Variable entry.
4315 (frv_cpu): New Enum and EnumValue entries.
4317 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4319 * config/cris/cris.c (cris_handle_option): Access target_flags via
4320 opts pointer. Don't assert that global structures are in use.
4321 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
4322 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
4324 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4326 * config/bfin/bfin-opts.h: New.
4327 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
4328 bfin_si_revision, bfin_workarounds): Remove.
4329 (bfin_cpus): Make static const.
4330 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
4331 not bfin_lib_id_given.
4332 (bfin_handle_option): Don't set bfin_lib_id_given. Access
4333 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
4334 pointer. Use error_at. Don't assert that global structures are in use.
4335 * config/bfin/bfin.h: Include bfin-opts.h.
4336 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
4337 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
4338 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
4339 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
4342 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4344 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
4345 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
4346 or -msoft-float here.
4347 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
4348 -msoft-float and -mhard-float.
4349 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
4350 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
4352 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
4354 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
4355 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
4357 (LIBGCC_SPEC): Don't handle -msoft-float.
4358 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
4360 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
4362 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
4363 -mfloat-abi=*, not -msoft-float and -mhard-float.
4364 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
4366 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
4367 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
4368 mhard-float and msoft-float.
4369 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
4370 mfloat-abi=soft in comments, not mhard-float and msoft-float.
4371 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
4372 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
4374 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
4375 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
4377 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
4379 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
4382 2011-03-22 Richard Henderson <rth@redhat.com>
4384 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
4385 TARGET_ABI_WINDOWS_NT.
4386 (alpha_output_function_end_prologue): Likewise.
4387 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
4388 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4389 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
4390 (trap, *movsi_nt_vms): Likewise.
4391 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
4392 (*tablejump_osf_nt_internal): Remove.
4393 * config/alpha/predicates.md (input_operand): Only test Pmode.
4395 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4397 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
4398 via opts pointer. Use error_at. Don't assert that global
4399 structures are in use.
4401 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4403 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
4404 (ix86_handle_option): Access ix86_isa_flags and
4405 ix86_isa_flags_explicit via opts pointer. Don't assert that
4406 global structures are in use.
4407 (ix86_function_specific_save, ix86_function_specific_restore):
4408 Update ix86_isa_flags_explicit field name.
4409 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
4410 (ix86_isa_flags_explicit): Rename TargetSave entry to
4411 x_ix86_isa_flags_explicit.
4413 2011-03-22 Richard Henderson <rth@redhat.com>
4415 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
4416 (alpha_option_override, direct_return): Likewise.
4417 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
4418 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
4419 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
4420 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
4421 (alpha_expand_epilogue, alpha_end_function): Likewise.
4422 (alpha_init_libfuncs): Likewise.
4423 (struct machine_function): Remove unicosmk members.
4424 (print_operand) ['t']: Remove.
4425 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
4426 unicosmk_output_module_name, unicosmk_output_common,
4427 current_section_align, unicosmk_output_text_section_asm_op,
4428 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
4429 unicosmk_section_type_flags, unicosmk_unique_section,
4430 unicosmk_asm_named_section, unicosmk_insert_attributes,
4431 unicosmk_output_align, unicosmk_defer_case_vector,
4432 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
4433 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
4434 unicosmk_output_ssib, unicosmk_add_call_info_word,
4435 unicosmk_extern_head, unicosmk_output_default_externs,
4436 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
4437 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
4438 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
4439 * config/alpha/alpha-protos.h: Update.
4440 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
4441 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
4442 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
4443 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
4444 (*mulsi_se, mulvsi3): Likewise.
4445 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
4446 (*divmodsi_internal, call, call_value, realign): Likewise.
4447 (moddi3, umoddi3): Likewise; remove duplicate expander.
4448 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
4449 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
4450 (*movdi_nofix): Remove r/U alternative.
4451 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
4452 * config/alpha/constraints.md ("U"): Remove.
4453 * config/alpha/predicates.md (call_operand"): Don't test
4454 TARGET_ABI_UNICOSMK.
4456 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4458 * target.def (handle_option): Take gcc_options and
4459 cl_decoded_option pointers and location_t.
4460 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
4461 * doc/tm.texi: Regenerate.
4462 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
4463 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
4464 * lto-opts.c (lto_reissue_options): Generate option structure for
4465 targetm.handle_option call.
4466 * opts.c (target_handle_option): Update call to
4467 targetm.handle_option. Remove assertions about values now passed
4469 * targhooks.c (default_target_handle_option): New.
4470 * targhooks.h (default_target_handle_option): Declare.
4471 * config/alpha/alpha.c: Include opts.h.
4472 (alpha_handle_option): Update to new hook interface.
4473 * config/arm/arm.c: Include opts.h.
4474 (arm_handle_option): Update to new hook interface.
4475 * config/arm/t-arm (arm.o): Update dependencies.
4476 * config/bfin/bfin.c: Include opts.h.
4477 (bfin_handle_option): Update to new hook interface.
4478 * config/cris/cris.c: Include opts.h.
4479 (cris_handle_option): Update to new hook interface.
4480 * config/frv/frv.c: Include opts.h.
4481 (frv_handle_option): Update to new hook interface.
4482 * config/i386/i386.c: Include opts.h.
4483 (ix86_handle_option): Update to new hook interface.
4484 (ix86_valid_target_attribute_inner_p): Generate option structure
4485 for call to ix86_handle_option.
4486 * config/i386/t-i386 (i386.o): Update dependencies.
4487 * config/ia64/ia64.c: Include opts.h.
4488 (ia64_handle_option): Update to new hook interface.
4489 * config/ia64/t-ia64 (ia64.o): Update dependencies.
4490 * config/iq2000/iq2000.c: Include opts.h.
4491 (iq2000_handle_option): Update to new hook interface.
4492 * config/m32c/m32c.c: Include opts.h.
4493 (m32c_handle_option): Update to new hook interface.
4494 * config/m32r/m32r.c: Include opts.h.
4495 (m32r_handle_option): Update to new hook interface.
4496 * config/m68k/m68k.c: Include opts.h.
4497 (m68k_handle_option): Update to new hook interface.
4498 * config/mep/mep.c: Include opts.h.
4499 (mep_handle_option): Update to new hook interface.
4500 * config/microblaze/microblaze.c: Include opts.h.
4501 (microblaze_handle_option): Update to new hook interface.
4502 * config/mips/mips.c: Include opts.h.
4503 (mips_handle_option): Update to new hook interface.
4504 * config/mn10300/mn10300.c: Include opts.h.
4505 (mn10300_handle_option): Update to new hook interface.
4506 * config/pa/pa.c: Include opts.h.
4507 (pa_handle_option): Update to new hook interface.
4508 * config/pdp11/pdp11.c: Include opts.h.
4509 (pdp11_handle_option): Update to new hook interface.
4510 * config/rs6000/rs6000.c: Include opts.h.
4511 (rs6000_handle_option): Update to new hook interface.
4512 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
4513 * config/rx/rx.c: Include opts.h.
4514 (rx_handle_option): Update to new hook interface.
4515 * config/s390/s390.c: Include opts.h.
4516 (s390_handle_option): Update to new hook interface.
4517 * config/score/score.c: Include opts.h.
4518 (score_handle_option): Update to new hook interface.
4519 * config/sh/sh.c: Include opts.h.
4520 (sh_handle_option): Update to new hook interface.
4521 * config/sparc/sparc.c: Include opts.h.
4522 (sparc_handle_option): Update to new hook interface.
4523 * config/v850/v850.c: Include opts.h.
4524 (v850_handle_option): Update to new hook interface.
4526 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4528 * gcc.c (driver_unknown_option_callback): Only permit and save
4529 unknown -Wno- options.
4530 (driver_wrong_lang_callback): Save options directly instead of via
4531 driver_unknown_option_callback.
4533 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
4535 * combine.c (simplify_set): Try harder to find the best CC mode when
4536 simplifying a nested COMPARE on the RHS.
4538 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4540 * config/alpha/gnu.h: Remove.
4541 * config/arc: Remove directory.
4542 * config/arm/netbsd.h: Remove.
4543 * config/arm/t-pe: Remove.
4544 * config/crx: Remove directory.
4545 * config/i386/netbsd.h: Remove.
4546 * config/m68hc11: Remove directory.
4547 * config/m68k/uclinux-oldabi.h: Remove.
4548 * config/mcore/mcore-pe.h: Remove.
4549 * config/mcore/t-mcore-pe: Remove.
4550 * config/netbsd-aout.h: Remove.
4551 * config/rs6000/gnu.h: Remove.
4552 * config/sh/sh-symbian.h: Remove.
4553 * config/sh/symbian-base.c: Remove.
4554 * config/sh/symbian-c.c: Remove.
4555 * config/sh/symbian-cxx.c: Remove.
4556 * config/sh/symbian-post.h: Remove.
4557 * config/sh/symbian-pre.h: Remove.
4558 * config/sh/t-symbian: Remove.
4559 * config/svr3.h: Remove.
4560 * config/vax/netbsd.h: Remove.
4561 * config.build: Don't handle i[34567]86-*-pe.
4562 * config.gcc: Remove handling of deprecations for most deprecated
4564 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
4565 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
4566 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
4567 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
4568 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
4569 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
4571 * config.host: Don't handle i[34567]86-*-pe.
4572 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
4573 (ASM_SPEC32): Don't handle -mcall-gnu.
4574 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
4576 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
4577 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
4578 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
4579 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
4580 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
4581 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
4582 conditional on SYMBIAN.
4583 * configure.ac: Don't handle powerpc*-*-gnu*.
4584 * configure: Regenerate.
4585 * doc/extend.texi (interrupt attribute): Don't mention CRX.
4586 * doc/install-old.texi (m6811, m6812): Don't mention.
4587 * doc/install.texi (arc-*-elf*): Don't document multilib option.
4588 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
4589 (m68k-uclinuxoldabi): Don't mention.
4590 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
4592 (-mcall-gnu): Remove.
4593 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
4594 families): Remove constraint documentation.
4596 2011-03-22 Marius Strobl <marius@FreeBSD.org>
4598 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
4599 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
4600 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
4602 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
4604 * config/avr/avr-protos.h (expand_epilogue): Change prototype
4605 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
4606 * config/avr/avr.c (init_cumulative_args)
4607 (avr_function_arg_advance): Use it.
4608 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
4610 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
4611 (avr_function_ok_for_sibcall): ...this new function.
4612 (avr_lookup_function_attribute1): New static Function.
4613 (avr_naked_function_p, interrupt_function_p)
4614 (signal_function_p, avr_OS_task_function_p)
4615 (avr_OS_main_function_p): Use it.
4616 * config/avr/avr.md ("sibcall", "sibcall_value")
4617 ("sibcall_epilogue"): New expander.
4618 ("*call_insn", "*call_value_insn"): New insn.
4619 ("call_insn", "call_value_insn"): Remove
4620 ("call", "call_value", "epilogue"): Change expander to handle
4623 2011-03-21 Nick Clifton <nickc@redhat.com>
4625 * doc/invoke.texi (Overall Options): Move closing brace to end of
4627 (Optimization Options): Add missing @gol.
4628 (Directory Options): Likewise.
4629 (i386 and x86-64 Options): Likewise.
4630 (RS6000 and PowerPC Options): Likewise.
4631 (i386 and x86-64 Windows Options): Likewise.
4632 (V850 Options): Add text missing from descriptions.
4634 2011-03-22 Richard Henderson <rth@redhat.com>
4636 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
4637 (avr_incoming_return_addr_rtx): New.
4638 (emit_push_byte): New.
4639 (expand_prologue): Use it. Remove incorrect dwarf annotation for
4640 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
4641 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
4642 (emit_pop_byte): New.
4643 (expand_epilogue): Use it. Pop frame pointer by bytes.
4644 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
4645 (INCOMING_RETURN_ADDR_RTX): New.
4646 (INCOMING_FRAME_SP_OFFSET): New.
4647 (ARG_POINTER_CFA_OFFSET): New.
4648 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
4649 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
4652 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
4654 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
4656 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
4657 (FUNCTION_ARG_ADVANCE): Likewise.
4658 * tm.texi.in: Change references to them to hook references.
4659 * tm.texi: Regenerate.
4660 * targhooks.c (default_function_arg): Eliminate check for target
4662 (default_function_incoming_arg): Likewise.
4663 (default_function_arg_advance): Likewise.
4664 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
4665 (function_arg_advance): Likewise.
4666 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
4668 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
4670 * tree.c (build_call_1): New function.
4671 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
4673 2011-03-22 Richard Guenther <rguenther@suse.de>
4675 PR tree-optimization/48228
4676 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
4677 for single-arg PHIs.
4679 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
4681 PR rtl-optimization/48143
4682 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
4683 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
4684 sse2_cvtps2pd): Likewise.
4686 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4688 * recog.c (canonicalize_change_group): Use validate_unshare_change.
4690 2011-03-22 Richard Guenther <rguenther@suse.de>
4692 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
4693 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
4694 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
4695 and REALIGN_LOAD_EXPR.
4696 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
4697 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
4698 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
4699 DOT_PROD_EXPR case ...
4700 (expand_expr_real_2): ... here.
4701 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
4702 and REALIGN_LOAD_EXPR.
4703 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
4704 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
4705 (vect_create_epilog_for_reduction): Likewise.
4706 (vectorizable_reduction): Likewise.
4707 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
4708 * tree-vect-stmts.c (vectorizable_load): Likewise.
4710 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
4712 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
4714 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4716 * config/s390/s390.c (s390_delegitimize_address): Fix offset
4717 handling for PLTOFF/GOTOFF.
4719 2011-03-22 Nick Clifton <nickc@redhat.com>
4721 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
4722 trailing backslash from the end of the macro definition.
4724 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4726 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
4729 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
4731 * expr.h (prepare_operand): Move to...
4732 * optabs.h (prepare_operand): ...here and change the insn code
4733 parameter from "int" to "enum insn_code".
4734 (insn_operand_matches): Declare.
4735 * expr.c (init_expr_target): Use insn_operand_matches.
4736 (compress_float_constant): Likewise.
4737 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
4738 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
4739 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
4740 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
4742 (gen_cond_trap): Likewise.
4743 (prepare_operand): Likewise. Change icode to an insn_code.
4744 (insn_operand_matches): New function.
4745 * reload.c (find_reloads_address_1): Use insn_operand_matches.
4746 * reload1.c (gen_reload): Likewise.
4747 * targhooks.c (default_secondary_reload): Likewise.
4749 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
4751 * config/alpha/alpha.md (unspec): New define_c_enum.
4754 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
4757 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
4758 between a call and its CALL_ARG_LOCATION note.
4760 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
4762 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
4764 2011-03-21 Jakub Jelinek <jakub@redhat.com>
4768 * c-common.c (shorten_compare): If primopN is first sign-extended
4769 to opN and then zero-extended to result type, set primopN to opN.
4771 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
4773 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
4774 for barrier handlers.
4776 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4778 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
4779 UNSPEC constants to be in the unspec enumeration, and redefine
4780 all UNSPECV constants to be in the unspecv enumeration, so that
4781 dumps print which unspec/unspec_volatile this is.
4782 * config/rs6000/vector.md (UNSPEC_*): Ditto.
4783 * config/rs6000/paired.md (UNSPEC_*): Ditto.
4784 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
4785 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
4786 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
4788 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
4789 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
4790 UNSPECV_LWSYNC, since these are used as unspec_volatile.
4791 * config/rs6000/sync.md (isync, lwsync): Ditto.
4793 2011-03-21 Richard Guenther <rguenther@suse.de>
4795 * params.def (lto-min-partition): Fix typo.
4797 2011-03-21 Richard Guenther <rguenther@suse.de>
4800 * c-decl.c (grokdeclarator): Drop to the main variant only
4801 for array types. Drop flag_gen_aux_info check.
4803 2011-03-21 Richard Guenther <rguenther@suse.de>
4805 PR translation/47911
4806 * params.def (lto-partitions): Fix typo.
4807 (lto-min-partition): Fix wording.
4809 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
4811 * config/rs6000/t-freebsd: Remove duplication from file.
4813 2011-03-21 Richard Guenther <rguenther@suse.de>
4816 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
4818 2011-03-21 Richard Guenther <rguenther@suse.de>
4821 * params.def (lto-partitions): Require at least 1 partition.
4823 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4825 * gthr-solaris.h: Remove.
4826 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
4827 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
4828 (LIB_SPEC): Likewise.
4829 * config/sol2.opt (threads): Remove.
4830 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
4831 (sparc*-*-solaris2*): Likewise.
4832 * configure.ac (enable_threads): Enable solaris support.
4833 * configure: Regenerate.
4834 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
4835 * doc/install.texi (Configuration, --enable-threads=lib): Remove
4838 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4840 * config.gcc: Obsolete *-*-solaris2.8*.
4841 * doc/install.texi (Specific, *-*-solaris2*): Document it.
4843 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4846 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
4847 reference. Solaris 8 perl works.
4849 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4852 * doc/install.texi (Prerequisites): Move jar etc. up.
4853 Explain support library version requirements.
4855 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4858 * doc/install.texi (Prerequisites): Move Perl to build
4859 requirements. Always necessary on Solaris 2 with Sun ld.
4861 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4863 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
4865 (Specific, i?86-*-solaris2.[89]): Likewise.
4866 (Specific, i?86-*-solaris2.10): Likewise.
4867 (Specific, mips-sgi-irix6): Likewise.
4868 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
4869 Update for binutils 2.21.
4871 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4873 * configure.ac (gcc_cv_lto_plugin): Fix typo.
4874 Allow -fuse-linker-plugin for non-default plugin linker.
4875 * configure: Regenerate.
4877 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
4880 * gengtype.c (files_rules): Added rule for cp/parser.h.
4882 2011-03-21 Jakub Jelinek <jakub@redhat.com>
4885 * config/s390/s390.c (s390_delegitimize_address): Don't call
4886 lowpart_subreg if orig_x has BLKmode.
4888 2011-03-21 Kai Tietz <ktietz@redhat.com>
4891 * doc/plugins.texi: Adjust documentation for plugin register_callback.
4892 * tree.h (attribute_spec): Add new member affects_type_identity.
4893 * attribs.c (empty_attribute_table): Adjust attribute_spec
4895 * config/alpha/alpha.c: Likewise.
4896 * config/arc/arc.c: Likewise.
4897 * config/arm/arm.c: Likewise.
4898 * config/avr/avr.c: Likewise.
4899 * config/bfin/bfin.c: Likewise.
4900 * config/crx/crx.c: Likewise.
4901 * config/darwin.h: Likewise.
4902 * config/h8300/h8300.c: Likewise.
4903 * config/i386/cygming.h: Likewise.
4904 * config/i386/i386.c: Likewise.
4905 * config/ia64/ia64.c: Likewise.
4906 * config/m32c/m32c.c: Likewise.
4907 * config/m32r/m32r.c: Likewise.
4908 * config/m68hc11/m68hc11.c: Likewise.
4909 * config/m68k/m68k.c: Likewise.
4910 * config/mcore/mcore.c: Likewise.
4911 * config/mep/mep.c: Likewise.
4912 * config/microblaze/microblaze.c: Likewise.
4913 * config/mips/mips.c: Likewise.
4914 * config/rs6000/rs6000.c: Likewise.
4915 * config/rx/rx.c: Likewise.
4916 * config/sh/sh.c: Likewise.
4917 * config/sol2.h: Likewise.
4918 * config/sparc/sparc.c: Likewise.
4919 * config/spu/spu.c: Likewise.
4920 * config/stormy16/stormy16.c: Likewise.
4921 * config/v850/v850.c: Likewise.
4923 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
4925 * simplify-rtx.c (simplify_binary_operation_1): Handle
4926 (xor (and A B) C) case when B and C are both constants.
4928 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
4930 * tree-dfa.c (add_referenced_var): Fix typo in comment.
4932 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
4935 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
4937 2011-03-20 Jakub Jelinek <jakub@redhat.com>
4939 PR rtl-optimization/48156
4940 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
4941 assume df and df_lr are not NULL.
4943 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4946 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
4947 between a call and its CALL_ARG_LOCATION note.
4949 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
4952 * config/sh/sh.c (find_barrier): Don't emit a constant pool
4953 between a call and its corresponding CALL_ARG_LOCATION note.
4955 2011-03-19 Anatoly Sokolov <aesok@post.ru>
4957 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
4958 instead of loop. Use HARD_REGISTER_NUM_P predicate.
4959 * haifa-sched.c (setup_ref_regs): Ditto.
4960 * caller-save.c (add_used_regs_1): Ditto.
4961 * dse.c (look_for_hardregs): Ditto.
4962 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
4963 * sched-rgn.c (check_live_1): Ditto.
4965 2011-03-18 Joseph Myers <joseph@codesourcery.com>
4967 * c-decl.c (diagnose_mismatched_decls): Give an error for
4968 redefining a typedef with variably modified type.
4970 2011-03-18 Joseph Myers <joseph@codesourcery.com>
4972 * c-decl.c (grokfield): Don't allow typedefs for structures or
4973 unions with no tag by default.
4974 * doc/extend.texi (Unnamed Fields): Update.
4976 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
4978 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
4979 Rewrite using indirect functions.
4980 (lwp_slwpcb): Ditto.
4981 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
4982 (avx_vinsertf128<mode>): Ditto.
4984 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4986 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
4989 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4991 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
4992 splitting between a call and its corresponding CALL_ARG_LOCATION note.
4994 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
4996 PR rtl-optimization/48170
4997 * gcse.c (hoist_code): Remove bogus asserts.
4999 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
5001 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
5002 computation for prologue/epilogue.
5004 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5006 * Makefile.in (check-consistency): Remove.
5008 2011-03-18 Jakub Jelinek <jakub@redhat.com>
5011 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
5012 arange_table_in_use is 0, but either text_section_used or
5013 cold_text_section_used is true. Don't call it if
5014 !info_section_emitted.
5016 2011-03-18 Anatoly Sokolov <aesok@post.ru>
5018 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
5019 FUNCTION_VALUE_REGNO_P): Remove.
5020 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
5022 * config/avr/avr.c (avr_ret_register): Make static inline.
5023 (avr_function_value_regno_p): New function.
5024 (avr_libcall_value): Make static. Add 'func' argument.
5025 (avr_function_value): Make static. Rename 'func' argument to
5026 'fn_decl_or_type', forward it to avr_libcall_value. Call
5027 avr_ret_register function instead of RET_REGISTER macro.
5028 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
5030 2011-03-18 Jason Merrill <jason@redhat.com>
5033 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
5035 2011-03-18 Richard Guenther <rguenther@suse.de>
5037 * doc/install.texi (--enable-gold): Remove.
5038 (--with-plugin-ld): Document.
5039 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
5041 2011-03-18 Andrew Pinski <pinskia@gmail.com>
5044 * expr.c (optimize_bitfield_assignment_op): Revamp to work
5045 again after expansion changes.
5047 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
5049 * combine.c (try_combine): Do simplification only call of
5050 subst() on i2 even when i1 is present. Update comments.
5052 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
5054 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
5055 and UNSPEC_PCREL_SYMOFF.
5057 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5059 * config/s390/s390.md: Use define_c_enum for the unspec constant
5062 2011-03-18 Richard Henderson <rth@redhat.com>
5063 Jakub Jelinek <jakub@redhat.com>
5066 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
5067 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
5069 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
5072 * combine.c (cant_combine_insn_p): Don't check zero/sign
5073 extended hard registers.
5075 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
5078 * combine.c (cant_combine_insn_p): Check zero/sign extended
5081 2011-03-17 Anatoly Sokolov <aesok@post.ru>
5083 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
5084 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
5085 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
5086 Change return type to bool.
5087 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5089 2011-03-17 Jakub Jelinek <jakub@redhat.com>
5092 * var-tracking.c (prepare_call_arguments): If CALL target
5093 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
5094 pc instead of looking it up using cselib_lookup and use
5095 Pmode for it if x has VOIDmode.
5096 * dwarf2out.c (gen_subprogram_die): If also both first and
5097 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
5100 * function.c (assign_parms): For data.passed_pointer parms
5101 use MEM of data.entry_parm instead of data.entry_parm itself
5102 as DECL_INCOMING_RTL.
5103 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
5104 also when passed and declared mode is the same, DECL_RTL
5105 is a MEM with pseudo as address and DECL_INCOMING_RTL is
5108 2011-03-16 Jeff Law <law@redhat.com>
5110 PR rtl-optimization/37273
5111 * ira-costs.c (scan_one_insn): Detect constants living in memory and
5112 handle them like argument loads from stack slots. Do not double
5113 count memory for memory constants and argument loads from stack slots.
5115 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
5118 * var-tracking.c (prepare_call_arguments): Check SUBREG.
5120 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
5123 * config/i386/i386.opt: Add Save to -mavx and -mfma.
5125 2011-03-17 Jakub Jelinek <jakub@redhat.com>
5128 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
5130 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
5131 Clear call_arg_locations and call_arg_loc_last always.
5134 * var-tracking.c (prepare_call_arguments): If argument needs to be
5135 passed by reference, adjust argtype and mode.
5137 2011-03-17 Richard Guenther <rguenther@suse.de>
5140 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
5141 a value make sure to fold the statement.
5143 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
5146 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
5147 return condition with !cfun->calls_alloca.
5149 2011-03-17 Richard Guenther <rguenther@suse.de>
5152 * lto-cgraph.c (input_overwrite_node): Clear the abstract
5153 origin for decls in other ltrans units.
5154 (input_varpool_node): Likewise.
5156 2011-03-17 Richard Guenther <rguenther@suse.de>
5159 * tree-object-size.c (compute_object_offset): Properly return
5160 the offset operand of MEM_REFs as sizetype.
5162 2011-03-17 Jakub Jelinek <jakub@redhat.com>
5164 PR rtl-optimization/48141
5165 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
5166 * dse.c: Include params.h.
5167 (active_local_stores_len): New variable.
5168 (add_wild_read, dse_step1): Clear it when setting active_local_stores
5170 (record_store, check_mem_read_rtx): Decrease it when removing
5172 (scan_insn): Likewise. Increase it when adding to chain, if it
5173 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
5174 set active_local_stores to NULL before the addition.
5175 * Makefile.in (dse.o): Depend on $(PARAMS_H).
5177 PR rtl-optimization/48141
5178 * dse.c (record_store): If no positions are needed in an insn
5179 that cannot be deleted, at least unchain it from active_local_stores.
5181 2011-03-16 Dodji Seketeli <dodji@redhat.com>
5184 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
5185 (lookup_type_die_strip_naming_typedef): ... here.
5186 (get_context_die): Use it.
5187 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
5188 the anonymous struct named by the naming typedef.
5190 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
5193 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
5194 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
5196 2011-03-16 Jeff Law <law@redhat.com>
5198 * tree-vrp.c (identify_jump_threads): Slightly simplify type
5199 check for operands of conditional. Allow type to be a pointer.
5201 2011-03-16 Richard Guenther <rguenther@suse.de>
5203 PR tree-optimization/48149
5204 * fold-const.c (fold_binary_loc): Fold
5205 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
5207 2011-03-16 Richard Guenther <rguenther@suse.de>
5209 PR tree-optimization/26134
5210 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
5211 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
5212 (non_rewritable_mem_ref_base): Handle complex type component
5213 accesses, constrain offsets for vector and complex extracts
5216 2011-03-16 Richard Guenther <rguenther@suse.de>
5218 PR tree-optimization/48146
5219 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
5220 operands avoiding the need for renaming.
5222 2011-03-16 Richard Guenther <rguenther@suse.de>
5224 * gimple-fold.c (maybe_fold_reference): Open-code relevant
5225 constant folding. Move MEM_REF canonicalization first.
5226 Rely on fold_const_aggregate_ref for initializer folding.
5227 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
5229 2011-03-16 Jakub Jelinek <jakub@redhat.com>
5232 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
5233 arg0/arg1 or their arguments are always fold converted to matching
5236 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
5239 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5242 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
5243 Handle in-tree gold.
5244 (ld_vers): Extract binutils version for gold.
5245 (gcc_cv_ld_hidden): Handle gold here.
5246 (gcc_cv_lto_plugin): Determine level of linker plugin support.
5247 * configure: Regenerate.
5248 * config.in: Regenerate.
5249 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
5250 -fuse-linker-plugin otherwise.
5251 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
5252 (LINK_COMMAND_SPEC): Use it.
5253 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
5255 2011-03-16 Jakub Jelinek <jakub@redhat.com>
5257 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
5258 * calls.c: Remove debug.h include.
5259 (emit_call_1): Don't call virtual_call_token debug hook.
5260 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
5261 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
5262 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
5263 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
5264 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
5265 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
5266 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
5267 dwarf2out_virtual_call): Remove.
5268 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
5269 copy_call_info and virtual_call hooks.
5270 (dwarf2out_init): Don't initialize vcall_insn_table,
5271 debug_dcall_section and debug_vcall_section.
5272 (prune_unused_types): Don't mark nodes from dcall_table.
5273 (dwarf2out_finish): Don't output dcall or vcall tables.
5274 * final.c (final_scan_insn): Don't call direct_call or
5275 virtual_call debug hooks.
5276 * debug.h (struct gcc_debug_hooks): Remove direct_call,
5277 virtual_call_token, copy_call_info and virtual_call hooks.
5278 (debug_nothing_uid): Remove prototype.
5279 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
5280 copy_call_info and virtual_call hooks.
5281 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5282 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
5283 * debug.c (do_nothing_debug_hooks): Likewise.
5284 (debug_nothing_uid): Remove.
5285 * doc/invoke.texi (-fenable-icf-debug): Remove.
5286 * common.opt (-fenable-icf-debug): Likewise.
5288 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
5289 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
5290 call's MEM. Handle functions returning aggregate through a hidden
5291 first pointer. For virtual calls add clobbered pc to call arguments
5293 * dwarf2out.c (gen_subprogram_die): Emit
5294 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
5298 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
5299 * rtl.h (ENTRY_VALUE_EXP): Define.
5300 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
5301 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
5302 * print-rtl.c (print_rtx): Likewise.
5303 * gengtype.c (adjust_field_rtx_def): Likewise.
5304 * var-tracking.c (vt_add_function_parameter): Adjust
5305 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
5306 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
5307 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
5308 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
5309 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
5311 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
5312 Call var_location debug hook even on CALL_INSNs.
5313 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
5314 * rtl.def (ENTRY_VALUE): New.
5315 * dwarf2out.c: Include cfglayout.h.
5316 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
5317 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
5318 (struct call_arg_loc_node): New type.
5319 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
5320 tail_call_site_count): New variables.
5321 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
5322 DW_TAG_GNU_call_site_parameter.
5323 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
5324 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
5325 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
5326 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
5327 and DW_AT_GNU_all_source_call_sites.
5328 (mem_loc_descriptor): Handle ENTRY_VALUE.
5329 (add_src_coords_attributes): Don't add enything if
5330 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
5331 (dwarf2out_abstract_function): Save and clear call_arg_location,
5332 call_site_count and tail_call_site_count around dwarf2out_decl call.
5333 (gen_call_site_die): New function.
5334 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
5335 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
5336 (dwarf2out_function_decl): Clear call_arg_locations,
5337 call_arg_loc_last, set call_site_count and tail_call_site_count
5338 to -1 and free block_map.
5339 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
5340 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
5341 followed by any real instructions.
5342 (dwarf2out_begin_function): Set call_site_count and
5343 tail_call_site_count to 0.
5344 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
5345 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
5346 attempt to force a DIE for it and worst case remove the attribute.
5347 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
5348 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
5350 * var-tracking.c: Include tm_p.h.
5351 (vt_stack_adjustments): For calls call note_register_arguments.
5352 (argument_reg_set): New variable.
5353 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
5354 ensure the VALUE is resolved.
5355 (call_arguments): New variable.
5356 (prepare_call_arguments): New function.
5357 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
5358 (struct expand_loc_callback_data): Add ignore_cur_loc field.
5359 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
5360 always use the best expression.
5361 (vt_expand_loc): Add ignore_cur_loc argument.
5362 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
5363 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
5364 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
5366 (vt_add_function_parameter): Use cselib_lookup_from_insn.
5367 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
5368 argument. Don't call cselib_preserve_only_values and
5370 (note_register_arguments): New function.
5371 (vt_initialize): Compute argument_reg_set. Call
5372 vt_add_function_parameters before processing basic blocks instead of
5373 afterwards. For calls call prepare_call_arguments before calling
5374 cselib_process_insn.
5375 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
5376 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
5377 (var-tracking.o): Depend on $(TM_P_H).
5378 * cfglayout.h (insn_scope): New prototype.
5379 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
5380 * cfglayout.c (insn_scope): No longer static.
5381 * insn-notes.def (CALL_ARG_LOCATION): New.
5382 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
5383 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
5384 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
5385 nothing for DECL_EXTERNAL BLOCK_VARS.
5387 2011-03-16 Alan Modra <amodra@gmail.com>
5390 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
5391 create invalid offset address for vsx splat insn.
5392 * config/rs6000/predicates.md (splat_input_operand): New.
5393 * config/rs6000/vsx.md (vsx_splat_*): Use it.
5395 2011-03-15 Xinliang David Li <davidxl@google.com>
5398 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
5399 (normalize_preds): New function.
5400 (is_use_properly_guarded): Normalize def predicates.
5402 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5405 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
5406 in the output template.
5408 2011-03-15 Richard Guenther <rguenther@suse.de>
5411 * tree-pretty-print.c (dump_function_declaration): Properly
5412 dump unprototyped and varargs function types.
5414 2011-03-15 Richard Guenther <rguenther@suse.de>
5416 PR tree-optimization/13954
5417 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
5420 2011-03-15 Richard Guenther <rguenther@suse.de>
5422 PR tree-optimization/48037
5423 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
5424 selects into BIT_FIELD_REFs.
5425 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
5428 2011-03-15 Jakub Jelinek <jakub@redhat.com>
5430 PR tree-optimization/48129
5431 * builtins.c (fold_builtin_snprintf): Convert to type of
5432 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
5433 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
5435 2011-03-15 Richard Guenther <rguenther@suse.de>
5437 PR tree-optimization/41490
5438 * tree-ssa-dce.c (propagate_necessity): Handle returns without
5439 value but with VUSE.
5440 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
5442 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
5443 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
5444 * tree-tailcall.c (find_tail_calls): Ignore returns.
5446 2011-03-15 Richard Guenther <rguenther@suse.de>
5449 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
5450 or variable-indexed array accesses when in gimple form.
5452 2011-03-15 Richard Guenther <rguenther@suse.de>
5454 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
5456 2011-03-15 Alan Modra <amodra@gmail.com>
5459 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
5460 presume symbol_refs without a symbol_ref_decl are suitably
5461 aligned, nor other trees we may see here. Handle anchor symbols.
5462 (legitimate_constant_pool_address_p): Comment. Add mode param.
5463 Check cmodel=medium addresses. Adjust all calls.
5464 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
5465 creating cmodel=medium optimized access to locals.
5466 * config/rs6000/constraints.md (R): Pass QImode to
5467 legitimate_constant_pool_address_p.
5468 * config/rs6000/predicates.md (input_operand): Pass mode to
5469 legitimate_constant_pool_address_p.
5470 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
5473 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5476 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
5477 64-bit constants being loaded into registers other than GPRs such
5478 as loading 0 into a VSX register.
5480 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5482 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
5484 2011-03-14 Jakub Jelinek <jakub@redhat.com>
5487 * builtins.c (fold_builtin_snprintf): New function.
5488 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
5489 (fold_builtin_4): Likewise.
5492 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
5493 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
5494 and C - X == X also strip nops from +/-/p+ operand.
5495 When optimizing -X == C, fold C to arg0's type.
5498 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
5499 emit it as add_AT_int instead of add_AT_unsigned.
5501 2011-03-14 Tom Tromey <tromey@redhat.com>
5503 * unwind-dw2.c: Include sys/sdt.h if it exists.
5504 (_Unwind_DebugHook): Use STAP_PROBE2.
5505 * config.in, configure: Rebuild.
5506 * configure.ac: Check for sys/sdt.h.
5508 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
5510 * config/i386/i386.md (ROUND_FLOOR): New constant.
5511 (ROUND_CEIL): Ditto.
5512 (ROUND_TRUNC): Ditto.
5513 (ROUND_MXCSR): Ditto.
5514 (ROUND_NO_EXC): Ditto.
5515 (rint<mode>2): Use new defines instead of numerical constants.
5516 (floor<mode>2): Ditto.
5517 (ceil<mode>2): Ditto.
5518 (btrunc<mode>2): Ditto.
5519 * config/i386/i386-builtin-types.def: Define ROUND function type
5521 * config/i386/i386.c (enum ix86_builtins): Add
5522 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
5523 (struct builtin_description): Add
5524 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
5525 (ix86_expand_sse_round): New static function.
5526 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
5528 (ix86_builtin_vectorized_function): Handle
5529 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
5531 2011-03-14 Tom Tromey <tromey@redhat.com>
5533 * c-parser.c (c_parser_asm_string_literal): Clear
5534 warn_overlength_strings.
5536 2011-03-14 Tom Tromey <tromey@redhat.com>
5538 * c-parser.c (disable_extension_diagnostics): Save
5539 warn_overlength_strings.
5540 (restore_extension_diagnostics): Restore warn_overlength_strings.
5542 2011-03-14 Jakub Jelinek <jakub@redhat.com>
5544 * BASE-VER: Change to 4.7.0.
5546 2011-03-14 Richard Guenther <rguenther@suse.de>
5549 * tree.c (build_vector_from_val): Adjust assert to requirements
5552 2011-03-14 Jakub Jelinek <jakub@redhat.com>
5555 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
5557 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
5559 * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
5560 terms of target_flags_explicit. Adjust copyright year.
5562 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
5563 * config/rs6000/t-freebsd: New file. Add override for
5566 2011-03-13 Chris Demetriou <cgd@google.com>
5568 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
5569 (-fno-diagnostics-show-option): this, to reflect current default.
5570 (-Werror=): Update text about -fno-diagnostics-show-option.
5572 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
5575 * config/rs6000/predicates.md (easy_vector_constant_add_self,
5576 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
5577 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
5578 mode is not V2DImode or V2DFmode.
5579 (vspltis_constant): Do not handle V2DImode and V2DFmode.
5580 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
5581 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
5583 (movdi_internal64): Likewise.
5585 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
5587 PR tree-optimization/47127
5588 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
5590 (set_cloog_options): Same.
5591 (scop_to_clast): Same.
5592 (print_clast_stmt): Do not call cloog_state_malloc and
5594 (print_generated_program): Same.
5596 * graphite-clast-to-gimple.h (cloog_state): Declared.
5597 (scop_to_clast): Adjust declaration.
5598 * graphite.c (cloog_state): Defined here.
5599 (graphite_initialize): Call cloog_state_malloc.
5600 (graphite_finalize): Call cloog_state_free.
5602 2011-03-11 Jason Merrill <jason@redhat.com>
5604 * attribs.c (lookup_attribute_spec): Take const_tree.
5607 2011-03-11 Joseph Myers <joseph@codesourcery.com>
5609 * config/sparc/sparc.c (sparc_option_override): Use
5610 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
5612 2011-03-11 Richard Guenther <rguenther@suse.de>
5614 PR tree-optimization/48067
5615 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
5616 multiplication result will be only used once on the target
5619 2011-03-11 Richard Guenther <rguenther@suse.de>
5621 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
5623 2011-03-11 Richard Guenther <rguenther@suse.de>
5626 * tree.c (find_decls_types_r): Do not walk types only reachable
5627 from IDENTIFIER_NODEs.
5629 2011-03-11 Jakub Jelinek <jakub@redhat.com>
5632 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
5633 all vnode->force_output nodes as needed.
5635 2011-03-11 Jason Merrill <jason@redhat.com>
5638 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
5639 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
5641 2011-03-11 Martin Jambor <mjambor@suse.cz>
5643 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
5646 2011-03-11 Jakub Jelinek <jakub@redhat.com>
5648 PR tree-optimization/48063
5649 * ipa-inline.c (cgraph_decide_inlining): Don't try to
5650 inline functions called once if !tree_can_inline_p (node->callers).
5652 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
5654 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
5656 * config/score/score3.c: Delete.
5657 * config/score/score3.h: Delete.
5658 * config/score/mul-div.S: Delete.
5659 * config/score/sfp-machine.h: Add new file.
5660 * config/score/constraints.md: Add new file.
5661 * config/score/t-score-softfp: Add new file.
5662 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
5663 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
5664 (score7_extra_constraint): Delete.
5665 (score7_option_override): Remove unused code.
5666 * config/score/score.c: Remove score3 and score5 define and code.
5667 * config/score/score.h: Remove score3 and score5 define and code.
5668 * config/score/score.md: Remove score3 template and unusual insn.
5669 * config/score/score.opt: Remove score3 and score5 options.
5671 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5673 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
5674 when _HPUX_SOURCE is defined.
5675 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
5677 2011-03-10 Jason Merrill <jason@redhat.com>
5680 * stor-layout.c (layout_type): Don't set structural equality
5681 on arrays of incomplete type.
5682 * tree.c (type_hash_eq): Handle comparing them properly.
5684 2011-03-10 Jakub Jelinek <jakub@redhat.com>
5687 * config/s390/s390.c (s390_delegitimize_address): Make sure the
5688 result mode matches original rtl mode.
5690 2011-03-10 Nick Clifton <nickc@redhat.com>
5692 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
5693 (andsi3, andsi3_flags): Fix timings for three operand alternative.
5695 2011-03-09 Jakub Jelinek <jakub@redhat.com>
5697 PR rtl-optimization/47866
5698 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
5699 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
5700 if target wasn't scalar.
5701 * function.c (assign_stack_temp_for_type): Assert that neither
5702 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
5703 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
5705 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
5707 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5709 * config/s390/s390-protos.h (s390_label_align): New prototype.
5710 * config/s390/s390.c (s390_label_align): New function.
5711 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
5713 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
5716 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
5717 V2DI/V2DF constants. Only all 0's or all 1's are easy.
5718 (output_vec_const_move): Ditto.
5720 2011-03-08 Anatoly Sokolov <aesok@post.ru>
5722 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
5723 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
5724 * config/mips/mips.c (mips_preferred_reload_class): Make static.
5725 Change 'rclass' argument and result type to reg_class_t.
5726 (TARGET_PREFERRED_RELOAD_CLASS): Define.
5728 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
5730 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5731 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
5732 (TARGET_MEMORY_MOVE_COST): Define.
5733 (avr_register_move_cost, avr_memory_move_cost): New Functions.
5735 2011-03-08 Jakub Jelinek <jakub@redhat.com>
5738 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
5741 PR tree-optimization/48022
5742 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
5745 2011-03-07 Jakub Jelinek <jakub@redhat.com>
5748 * var-tracking.c (find_use_val): Return NULL for
5749 cui->sets && cui->store_p BLKmode MEMs.
5751 2011-03-07 Anatoly Sokolov <aesok@post.ru>
5753 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
5755 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
5756 xstormy16_print_operand_address): Remove.
5757 * config/stormy16/stormy16.c (xstormy16_print_operand,
5758 xstormy16_print_operand_address): Make static.
5759 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5761 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
5764 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
5765 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
5768 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
5771 * cfgloopmanip.c (fix_bb_placements): Return immediately
5772 if FROM is BASE_LOOP's header.
5774 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
5776 * gimplify.c (gimplify_function_tree): Fix building calls
5777 to __builtin_return_address.
5779 2011-03-07 Alan Modra <amodra@gmail.com>
5781 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
5782 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
5783 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
5784 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
5786 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
5787 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
5788 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
5789 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
5790 * config/rs6000/rs6000.c
5791 (rs6000_elf_end_indicate_exec_stack): Rename to..
5792 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
5793 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
5794 (rs6000_file_start): ..here.
5795 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
5796 file scope variables.
5797 (call_ABI_of_interest): New function.
5798 (init_cumulative_args): Set above vars when function return value
5799 is a float, vector, or small struct.
5800 (rs6000_function_arg_advance_1): Likewise for function args.
5801 (rs6000_va_start): Set rs6000_passes_float if variable arg function
5802 references float args.
5804 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
5806 * doc/cfg.texi: Remove "See" before @ref.
5807 * doc/invoke.texi: Likewise.
5809 2011-03-05 Jason Merrill <jason@redhat.com>
5811 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
5813 2011-03-05 Anthony Green <green@moxielogic.com>
5815 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
5817 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
5819 PR rtl-optimization/47899
5820 * cfgloopmanip.c (fix_bb_placements): Fix first argument
5821 to flow_loop_nested_p when moving the loop upward.
5823 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
5826 * arm.md (movhi_insn_arch4): Accept any immediate constant.
5828 2011-03-05 Jakub Jelinek <jakub@redhat.com>
5830 PR tree-optimization/47967
5831 * ipa-cp.c (build_const_val): Return NULL instead of creating
5832 VIEW_CONVERT_EXPR for mismatching sizes.
5833 (ipcp_create_replace_map): Return NULL if build_const_val failed.
5834 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
5835 give up on versioning.
5837 2011-03-05 Alan Modra <amodra@gmail.com>
5840 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
5841 full cmodel medium/large lo_sum + high addresses.
5843 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5845 * config/s390/s390.c (s390_decompose_address): Reject non-literal
5846 pool references in UNSPEC_LTREL_OFFSET.
5848 2011-03-04 Jan Hubicka <jh@suse.cz>
5851 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
5852 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
5853 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
5855 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
5856 cgraph_add_thunk): Add node pointers.
5857 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
5858 associated to right node.
5859 (input_node): Update use of cgraph_same_body_alias
5860 and cgraph_add_thunk.
5862 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
5864 * config/i386/i386.opt (mprefer-avx128): New flag.
5865 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
5866 modes when the flag -mprefer-avx128 is on.
5868 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
5870 * dwarf2out.c (compare_loc_operands): Fix address handling.
5872 2011-03-04 Alan Modra <amodra@gmail.com>
5874 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
5876 2011-03-04 Richard Guenther <rguenther@suse.de>
5879 * expmed.c (extract_bit_field_1): Prefer vector modes that
5880 vec_extract patterns can handle.
5882 2011-03-04 Richard Guenther <rguenther@suse.de>
5885 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
5887 2011-03-04 Richard Henderson <rth@redhat.com>
5889 * explow.c (emit_stack_save): Remove 'after' parameter.
5890 (emit_stack_restore): Likewise.
5891 * expr.h: Update to match.
5892 * builtins.c, calls.c, stmt.c: Likewise.
5893 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
5894 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
5895 * function.c (expand_function_end): Insert the emit_stack_save
5896 sequence before parm_birth_insn instead of after.
5898 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
5900 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
5901 (ssse3_pmaddubsw128): Ditto.
5902 (ssse3_pmaddubsw): Ditto.
5904 2011-03-03 Steve Ellcey <sje@cup.hp.com>
5906 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
5908 2011-03-03 Jakub Jelinek <jakub@redhat.com>
5911 * gimplify.c (omp_add_variable): Only call omp_notice_variable
5912 on TYPE_SIZE_UNIT if it is a DECL.
5915 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
5916 first operand is not is_gimple_mem_ref_addr, try to fold it.
5917 If the operand still isn't is_gimple_mem_ref_addr, clear
5920 2011-03-03 Richard Guenther <rguenther@suse.de>
5923 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
5925 (refs_may_alias_p_1): For release branches return true if
5926 we are confused by our input.
5928 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5930 * config/s390/s390.c (s390_function_value): Rename to ...
5931 (s390_function_and_libcall_value): ... this.
5932 (s390_function_value): New function.
5933 (s390_libcall_value): New function.
5934 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
5935 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
5936 target macro definitions.
5937 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
5939 2011-03-02 Joseph Myers <joseph@codesourcery.com>
5941 * config/i386/freebsd64.h (CC1_SPEC): Define.
5942 * config/i386/linux64.h (CC1_SPEC): Define.
5943 * config/i386/x86-64.h (CC1_SPEC): Don't define.
5945 2011-03-02 Anatoly Sokolov <aesok@post.ru>
5947 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
5949 * config/stormy16/stormy16.c: Include reload.h.
5950 (xstormy16_memory_move_cost): New function.
5951 (TARGET_MEMORY_MOVE_COST): Define.
5953 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
5955 PR rtl-optimization/47925
5956 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
5957 with side effects. Remove the more-specific check for volatile asms.
5959 2011-03-02 Alan Modra <amodra@gmail.com>
5962 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
5963 toc relative addresses for valid offsets.
5965 2011-03-01 Richard Guenther <rguenther@suse.de>
5967 PR tree-optimization/47890
5968 * tree-vect-loop.c (get_initial_def_for_induction): Set
5969 related stmt properly.
5971 2011-03-01 Richard Guenther <rguenther@suse.de>
5974 * lto-streamer.c (lto_record_common_node): Also register
5977 2011-03-01 Richard Guenther <rguenther@suse.de>
5980 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
5981 Do not stream DECL_ABSTRACT_ORIGIN.
5982 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
5983 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
5984 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
5985 Do not stream DECL_ABSTRACT_ORIGIN.
5986 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
5987 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
5989 2011-02-28 Anatoly Sokolov <aesok@post.ru>
5991 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
5992 FUNCTION_VALUE_REGNO_P): Remove.
5993 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
5994 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
5995 Add 'outgoing' argument.
5996 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
5998 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5999 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6001 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
6004 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
6005 (lookup_filename): Likewise.
6006 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
6008 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
6009 Jakub Jelinek <jakub@redhat.com>
6012 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
6013 (assign_stack_local_1): Change last argument type to int.
6014 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
6015 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
6016 don't record padding space into frame_space_list nor use those areas.
6017 (assign_stack_local): Adjust caller.
6018 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
6019 of assign_stack_local, pass 0 as last argument.
6020 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
6023 2011-02-28 Jakub Jelinek <jakub@redhat.com>
6026 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
6027 Use target address_mode and pointer_mode hooks instead of hardcoded
6028 Pmode and ptr_mode. Handle some simple cases of extending if
6029 POINTERS_EXTEND_UNSIGNED < 0.
6030 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
6031 Call convert_debug_memory_address.
6032 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
6033 convert_debug_memory_address.
6036 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
6037 * configure: Regenerated.
6038 * config.in: Regenerated.
6039 * varasm.c (default_function_section): Return NULL
6040 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
6042 2011-02-28 Martin Jambor <mjambor@suse.cz>
6044 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
6045 the description to match the printed values.
6047 2011-02-28 Richard Guenther <rguenther@suse.de>
6049 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
6050 of the copied scope tree.
6052 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6054 * doc/extend.texi (Function Attributes): Avoid deeply (and
6055 wrongly) nested tables.
6057 2011-02-27 Jakub Jelinek <jakub@redhat.com>
6060 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
6061 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
6062 r isn't op0 nor op1.
6064 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
6066 * config/avr/avr.md: Remove magic comment for emacs.
6068 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
6071 * config/avr/avr.c (avr_option_override): Use error on bad options.
6072 (avr_help): New function.
6073 (TARGET_HELP): Define.
6075 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
6078 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
6079 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
6081 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
6083 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
6084 (ARM Options): Ditto.
6085 (i386 and x86-64 Options): Ditto.
6086 (RX Options): Ditto.
6087 (SPARC Options): Ditto.
6089 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
6091 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
6092 FreeBSD 6 and later. Generally use cpu generic.
6094 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
6096 * doc/cpp.texi: Update copyright years.
6098 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
6101 * config/lm32/lm32.md (ashrsi3): Added needed variable.
6103 2011-02-25 Jon Beniston <jon@beniston.com>
6106 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
6107 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
6108 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
6109 (lm32_block_move_inline): Add type cast to remove warning.
6110 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
6111 (gen_int_relational): Move declarations to start of function.
6113 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
6115 PR tree-optimization/45470
6116 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
6117 can throw internally only.
6118 * tree-vect-stmts.c (vectorizable_call): Likewise.
6120 2011-02-24 Anatoly Sokolov <aesok@post.ru>
6122 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
6123 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
6124 * config/stormy16/stormy16-protos.h
6125 (xstormy16_preferred_reload_class): Remove.
6126 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
6127 static. Change 'rclass' argument and return type to reg_class_t.
6128 (TARGET_PREFERRED_RELOAD_CLASS,
6129 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6131 2011-02-24 Richard Guenther <rguenther@suse.de>
6133 * lto-streamer-in.c (input_bb): Do not find referenced vars
6134 in debug statements.
6136 2011-02-23 Jason Merrill <jason@redhat.com>
6138 * common.opt (fabi-version): Document v5 and v6.
6140 2011-02-23 Richard Guenther <rguenther@suse.de>
6142 PR tree-optimization/47849
6143 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
6145 2011-02-23 Jie Zhang <jie@codesourcery.com>
6147 * opts-common.c (decode_cmdline_option): Print empty string
6148 argument as "" in decoded->orig_option_with_args_text.
6149 * gcc.c (execute): Print empty string argument as ""
6150 in the verbose output.
6151 (do_spec_1): Keep empty string argument.
6153 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
6155 * config.gcc: Declare score-* and crx-* obsolete.
6157 2011-02-23 Jie Zhang <jie@codesourcery.com>
6159 PR rtl-optimization/47763
6160 * web.c (web_main): Ignore naked clobber when replacing register.
6162 2011-02-22 Anatoly Sokolov <aesok@post.ru>
6164 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6167 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
6170 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
6172 2011-02-22 Mike Stump <mikestump@comcast.net>
6174 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
6176 * configure: Regenerate.
6178 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
6180 PR rtl-optimization/46002
6181 * ira-color.c (update_copy_costs): Change class intersection
6182 test to reg_class_contents[] test of 'hard_regno'.
6184 2011-02-21 Joseph Myers <joseph@codesourcery.com>
6186 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
6188 * config/hpux11.opt (mt): Likewise.
6189 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
6190 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
6191 * config/vax/elf.opt (mno-asm-pic): Likewise.
6192 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
6194 2011-02-21 Mike Stump <mikestump@comcast.net>
6197 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
6198 tree so we can get save the type.
6199 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
6200 for CFString instead of trying to use past the end of the builtins.
6201 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
6202 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
6203 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
6204 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
6205 Rename to darwin_builtin_cfstring.
6206 (darwin_init_cfstring_builtins): Return the built type.
6208 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
6211 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
6212 (_mm256_insert_epi64): Use _mm_insert_epi64.
6214 2011-02-21 Anatoly Sokolov <aesok@post.ru>
6216 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6217 * config/stormy16/stormy16-protos.h
6218 (xstormy16_mode_dependent_address_p): Remove.
6219 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
6220 Make static. Change return type to bool. Change argument type to
6221 const_rtx. Remove dead code.
6222 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6224 2011-02-21 Richard Guenther <rguenther@suse.de>
6227 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
6228 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
6229 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
6231 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
6232 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
6234 2011-02-20 Richard Guenther <rguenther@suse.de>
6237 * tree.c (free_lang_data_in_decl): Clean builtins from
6238 the TU decl BLOCK_VARS.
6240 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
6244 * haifa-sched.c (fix_tick_ready): Skip tick computation
6247 2011-02-19 Richard Guenther <rguenther@suse.de>
6250 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
6251 Remove lazy BLOCK_VARS streaming.
6252 (lto_input_ts_block_tree_pointers): Likewise.
6253 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
6255 2011-02-19 Joseph Myers <joseph@codesourcery.com>
6257 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
6259 2011-02-19 Joseph Myers <joseph@codesourcery.com>
6261 * config/i386/biarch32.h, config/i386/mach.h,
6262 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
6264 2011-02-19 Jakub Jelinek <jakub@redhat.com>
6267 * config/i386/i386.md (peephole2 for shift and plus): Use
6268 operands[1] original mode in the first insn.
6270 2011-02-18 Mike Stump <mikestump@comcast.net>
6272 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
6274 2011-02-18 Jan Hubicka <jh@suse.cz>
6277 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
6278 to zero when the function is not inlinable at all.
6280 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6282 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
6283 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
6284 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
6285 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
6286 * config/pa/t-pa64: Likewise.
6287 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6289 2011-02-18 Jakub Jelinek <jakub@redhat.com>
6292 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
6294 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6297 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
6299 2011-02-18 Anatoly Sokolov <aesok@post.ru>
6301 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
6302 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
6303 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
6304 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
6305 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
6306 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
6307 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
6308 m32r_load_postinc_p, m32r_store_preinc_predec_p,
6309 m32r_legitimate_address_p): New functions.
6310 * config/m32r/constraints.md (constraint "S"): Don't use
6311 STORE_PREINC_PREDEC_P.
6312 (constraint "U"): Don't use LOAD_POSTINC_P.
6314 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
6316 PR rtl-optimization/46178
6317 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
6318 compute ira_hard_regno_cover_class[].
6320 2011-02-18 Richard Guenther <rguenther@suse.de>
6323 * lto-streamer.h (lto_global_var_decls): Declare.
6324 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
6325 statics for global var processing.
6327 2011-02-18 Richard Guenther <rguenther@suse.de>
6329 PR tree-optimization/47737
6330 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
6331 edge dominance check.
6333 2011-02-18 Jakub Jelinek <jakub@redhat.com>
6336 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
6337 avoid invalid rtx sharing.
6339 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
6341 * doc/cpp.texi (Obsolete Features): Add background on the
6342 origin of assertions.
6344 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
6346 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
6348 * config/darwin.c (output_objc_section_asm_op): Added support for
6350 (is_objc_metadata): New.
6351 (darwin_objc2_section): New.
6352 (darwin_objc1_section): New.
6353 (machopic_select_section): Added support for ABI v1 and v2.
6354 (darwin_emit_objc_zeroed): New.
6355 (darwin_output_aligned_bss): Detect objc metadata and treat it
6357 (darwin_asm_output_aligned_decl_common): Same.
6358 (darwin_asm_output_aligned_decl_local): Same.
6359 * config/darwin-sections.def: Updated for ABI v1 and v2.
6360 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
6361 compiling Objective-C code for the NeXT runtime, default to using
6362 ABI version 0 for 32-bit, and version 2 for 64-bit.
6364 2011-02-17 Joseph Myers <joseph@codesourcery.com>
6366 * common.opt (optimize_fast): New Variable.
6367 * opts.c (default_options_optimization): Use opts->x_optimize_fast
6368 instead of local variable ofast.
6370 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
6372 * doc/invoke.texi (fobjc-abi-version): Documented.
6373 (fobjc-nilcheck): Documented.
6374 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
6377 2011-02-17 Joseph Myers <joseph@codesourcery.com>
6380 * common.opt (export-dynamic): New Driver option.
6381 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
6383 2011-02-17 Joseph Myers <joseph@codesourcery.com>
6385 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
6387 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
6388 Jan Hubicka <jh@suse.cz>
6392 * cfgexpand.c (account_used_vars_for_block): Remove.
6393 (estimated_stack_frame_size): Use referenced vars.
6394 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
6395 that were referenced in the original function. Test src_fn
6396 rather than cfun. Drop redundant get_var_ann.
6397 (setup_one_parameter): Drop redundant get_var_ann.
6398 (declare_return_variable): Likewise.
6399 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
6400 (copy_arguments_for_versioning): Drop redundant get_var_ann.
6401 * ipa-inline.c (compute_inline_parameters): Do not compute
6402 disregard_inline_limits here.
6403 (compute_inlinable_for_current, pass_inlinable): New.
6404 (pass_inline_parameters): Require PROP_referenced_vars.
6405 * cgraphunit.c (cgraph_process_new_functions): Don't run
6406 compute_inline_parameters explicitly unless function is in SSA form.
6407 (cgraph_analyze_function): Set .disregard_inline_limits.
6408 * tree-sra.c (convert_callers): Compute inliner parameters
6409 only for functions already in SSA form.
6411 2011-02-17 Joseph Myers <joseph@codesourcery.com>
6413 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
6414 -mlittle-endian-data.
6416 2011-02-17 Joseph Myers <joseph@codesourcery.com>
6418 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
6419 -mno-fpu, not -fpu and -no-fpu.
6420 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
6421 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
6423 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
6426 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
6427 input reload with PLUS RTX.
6429 2011-02-16 Joseph Myers <joseph@codesourcery.com>
6431 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
6432 of InverseVar(MDMX).
6434 2011-02-16 Joseph Myers <joseph@codesourcery.com>
6436 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
6439 2011-02-16 Joseph Myers <joseph@codesourcery.com>
6441 * config/mn10300/mn10300.opt (mno-crt0): New.
6443 2011-02-16 Joseph Myers <joseph@codesourcery.com>
6445 * config/m68k/uclinux.opt (static-libc): New Driver option.
6447 2011-02-16 Joseph Myers <joseph@codesourcery.com>
6449 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
6451 2011-02-16 Joseph Myers <joseph@codesourcery.com>
6453 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
6454 %{muser-extend-enabled}.
6456 2011-02-16 Richard Guenther <rguenther@suse.de>
6458 PR tree-optimization/47738
6459 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
6460 the TODO from tree_predictive_commoning.
6462 2011-02-15 Jeff Law <law@redhat.com>
6465 2011-01-25 Jeff Law <law@redhat.com>
6467 PR rtl-optimization/37273
6468 * ira-costs.c (scan_one_insn): Detect constants living in memory and
6469 handle them like argument loads from stack slots. Do not double
6470 count memory for memory constants and argument loads from stack slots.
6472 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
6475 * combine.c (cant_combine_insn_p): Revert the last change.
6477 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
6480 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
6481 mode for vector constants. Remove code that checks for TImode.
6483 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
6487 * cgraph.h (compute_inline_parameters): Return void.
6488 * ipa-inline.c (compute_inline_parameters): Adjust.
6490 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
6494 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
6496 * cfgexpand.c (estimated_stack_frame_size): Likewise.
6497 * ipa-inline.c (compute_inline_parameters): Adjust.
6499 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
6503 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
6504 Adjust all users. Pass FN to...
6505 * tree-flow-inline.h (first_referenced_var): ... this. Add
6507 * ipa-struct-reorg.c: Adjust.
6508 * tree-dfa.c: Adjust.
6509 * tree-into-ssa.c: Adjust.
6510 * tree-sra.c: Adjust.
6511 * tree-ssa-alias.c: Adjust.
6512 * tree-ssa-live.c: Adjust.
6513 * tree-ssa.c: Adjust.
6514 * tree-ssanames.c: Adjust.
6515 * tree-tailcall.c: Adjust.
6517 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
6521 * tree-flow.h (referenced_var_lookup): Add fn parameter.
6523 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
6524 * tree-flow-inline.h: Adjust.
6525 * gimple-pretty-print.c: Adjust.
6526 * tree-into-ssa.c: Adjust.
6527 * tree-ssa.c: Adjust.
6528 * cfgexpand.c: Adjust.
6530 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
6532 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
6533 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6534 (EXTRA_CONSTRAINT): Delete.
6535 * config/iq2000/constraints.md: New file.
6536 * config/iq2000/iq2000.md: Include it.
6537 (define_insn ""): Delete.
6538 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
6539 unsupported constraint letters from patterns.
6540 (call_value, call_value_internal1): Likewise.
6541 (call_value_multiple_internal1): Likewise.
6543 2011-02-15 Nick Clifton <nickc@redhat.com>
6545 * config/mn10300/mn10300.c: Include tm-constrs.h.
6546 (struct liw_data): New data structure describing an LIW candidate
6548 (extract_bundle): Use struct liw_data. Allow small integer
6549 operands for some instructions.
6550 (check_liw_constraints): Use struct liw_data. Remove swapped
6551 parameter. Add comments describing the checks. Fix bug when
6552 assigning the source of liw1 to the source of liw2.
6553 (liw_candidate): Delete. Code moved into extract_bundle.
6554 (mn10300_bundle_liw): Use struct liw_data. Check constraints
6556 * config/mn10300/predicates.md (liw_operand): New predicate.
6557 Allows registers and small integer constants.
6558 * config/mn10300/constraints.md (O): New constraint. Accetps
6559 integers in the range -8 to +7 inclusive.
6560 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
6561 for moving a small integer into a register. Give this alternative
6563 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
6564 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
6565 using the J,K,L and M constraints,
6566 (liw): Remove SI mode on second operands to allow for HI and QI
6568 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
6571 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
6574 * combine.c (cant_combine_insn_p): Check zero/sign extended
6577 2011-02-15 Richard Guenther <rguenther@suse.de>
6579 PR tree-optimization/47743
6580 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
6581 for a non-type-compatible VN lookup bail out.
6583 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
6585 * config/fr30/constraints.md: New file.
6586 * config/fr30/fr30.md: Include it.
6587 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
6588 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6589 (EXTRA_CONSTRAINT): Delete.
6591 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
6593 * config/frv/constraints.md: New file.
6594 * config/frv/predicates.md: Include it.
6595 * config/frv/frv.c (reg_class_from_letter): Delete.
6596 (frv_option_override): Don't initialize it.
6597 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
6598 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
6599 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
6600 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
6601 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
6602 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6603 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
6604 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
6605 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
6606 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
6607 (REG_CLASS_FROM_CONSTRAINT): Delete.
6609 2011-02-15 Jakub Jelinek <jakub@redhat.com>
6612 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
6613 if frame size is 0 in a leaf function.
6615 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6618 * config/alpha/host-osf.c: New file.
6619 * config/alpha/x-osf: New file.
6620 * config.host (alpha*-dec-osf*): Use it.
6622 2011-02-14 Anatoly Sokolov <aesok@post.ru>
6624 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6625 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
6626 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
6627 (rx_mode_dependent_address_p): ...this. Make static. Change argument
6629 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6631 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
6633 * config/stormy16/constraints.md: New file.
6634 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
6635 Use satisfies_constraint_Q and satisfies_constraint_R.
6636 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
6638 (xstormy16_legitiamte_address_p): Declare.
6639 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
6640 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6641 (EXTRA_CONSTRAINT): Delete.
6642 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
6644 (xstormy16_extra_constraint_p): Delete.
6646 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
6648 PR tree-optimization/46494
6649 * loop-unroll.c (split_edge_and_insert): Adjust comment.
6650 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
6651 (pass_rtl_loop_done): Add TODO_verify_flow.
6652 * fwprop.c (pass_rtl_fwprop): Likewise.
6653 * modulo-sched.c (pass_sms): Likewise.
6654 * tree-ssa-dom.c (pass_dominator): Likewise.
6655 * tree-ssa-loop-ch.c (pass_ch): Likewise.
6656 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
6657 (pass_tree_loop_done): Likewise.
6658 * tree-ssa-pre.c (execute_pre): Likewise.
6659 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
6660 * tree-ssa-sink.c (pass_sink_code): Likewise.
6661 * tree-vrp.c (pass_vrp): Likewise.
6663 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
6665 * config/v850/constraints.md: New file.
6666 * config/v850/v850.md: Include it.
6667 * config/v850/predicates.md (reg_or_0_operand): Use
6668 satisfies_constraint_G.
6669 (special_symbolref_operand): Use satisfies_constraint_K.
6670 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
6671 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
6672 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
6673 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
6674 (EXTRA_CONSTRAINT): Delete.
6675 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
6676 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
6677 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
6679 2011-02-14 Anatoly Sokolov <aesok@post.ru>
6682 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
6685 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
6687 * config/mcore/constraints.md: New file.
6688 * config/mcore/mcore.md: Include it.
6689 * config/mcore/mcore.c (reg_class_from_letter): Delete.
6690 * config/mcore/mcore.h (reg_class_from_letter): Delete.
6691 (REG_CLASS_FROM_LETTER): Delete.
6692 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
6693 insn_const_int_ok_for_constraint.
6694 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
6695 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
6696 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6697 (EXTRA_CONSTRAINT): Delete.
6699 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6702 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
6703 (IS_SIGHANDLER): Define.
6704 (sparc64_is_sighandler): New function, split off from
6705 sparc64_fallback_frame_state.
6706 (sparc_is_sighandler): New function, split off from
6707 sparc_fallback_frame_state.
6708 (sparc64_fallback_frame_state): Merge with ...
6709 (sparc_fallback_frame_state): ... this into ...
6710 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
6711 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
6712 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
6713 stack instead of hardcoded offsets.
6715 2011-02-14 Andriy Gapon <avg@freebsd.org>
6718 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
6720 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6722 * configure: Regenerate.
6724 2011-02-12 Joseph Myers <joseph@codesourcery.com>
6727 * gcc.c (asm_options): Correct spec matching --target-help.
6729 2011-02-12 Martin Jambor <mjambor@suse.cz>
6731 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
6732 to gimple call error.
6734 2011-02-12 Mike Stump <mikestump@comcast.net>
6736 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
6737 comments in backslash regions.
6739 2011-02-12 Mike Stump <mikestump@comcast.net>
6740 Jakub Jelinek <jakub@redhat.com>
6741 Iain Sandoe <iains@gcc.gnu.org>
6744 * dwarf2out.c (output_cfa_loc): When required, apply the
6745 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
6746 (output_loc_sequence): Likewise.
6747 (output_loc_operands_raw): Likewise.
6748 (output_loc_sequence_raw): Likewise.
6749 (output_cfa_loc): Likewise.
6750 (output_loc_list): Suppress register number adjustment when
6751 calling output_loc_sequence()
6752 (output_die): Likewise.
6754 2011-02-12 Anatoly Sokolov <aesok@post.ru>
6756 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
6758 * config/xtensa/xtensa.c (xtensa_register_move_cost,
6759 xtensa_memory_move_cost): New functions.
6760 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
6762 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
6765 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
6766 in the current directory.
6767 * configure: Rebuilt.
6769 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
6771 * config/darwin.c (darwin_override_options): Add a hunk missed
6772 from the commit of r168571. Trim comment line lengths and
6773 correct indents of the preceding block.
6775 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
6777 * gcc.c (driver_handle_option): Concatenate the argument to -F with
6780 2011-02-11 Joseph Myers <joseph@codesourcery.com>
6782 * common.opt (nostartfiles): New Driver option.
6784 2011-02-11 Xinliang David Li <davidxl@google.com>
6786 PR tree-optimization/47707
6787 * tree-chrec.c (convert_affine_scev): Keep type precision.
6789 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
6791 PR tree-optimization/47420
6792 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
6794 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
6796 PR rtl-optimization/47614
6797 * rtl.h (check_for_inc_dec): Declare.
6798 * dse.c (check_for_inc_dec): Externalize...
6799 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
6800 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
6802 2011-02-11 Joseph Myers <joseph@codesourcery.com>
6805 * gcc.c (main): Do not compile inputs if there were errors in
6807 * opts-common.c (read_cmdline_option): Check for wrong language
6808 after other error checks.
6810 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
6812 * cgraph.c: Fix comment typos.
6813 * cgraph.h: Likewise.
6814 * cgraphunit.c: Likewise.
6815 * ipa-cp.c: Likewise.
6816 * ipa-inline.c: Likewise.
6817 * ipa-prop.c: Likewise.
6818 * ipa-pure-const.c: Likewise.
6819 * ipa-ref.c: Likewise.
6820 * ipa-reference.c: Likewise.
6822 2011-02-11 Jakub Jelinek <jakub@redhat.com>
6825 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
6827 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6830 * doc/sourcebuild.texi (Require Support): Document
6831 dg-require-ascii-locale.
6833 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
6835 * doc/lto.texi (Write summary): Fix missing parentheses.
6837 2011-02-10 DJ Delorie <dj@redhat.com>
6839 * config/m32c/m32c.c (m32c_option_override): Disable
6840 -fcombine-stack-adjustments until flag value tracking and compare
6841 optimization can be rewritten.
6843 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
6845 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
6847 (PROCESSOR_DEFAULT64): Likewise.
6849 2011-02-10 Richard Henderson <rth@redhat.com>
6851 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
6852 change from 2011-02-03.
6853 * config/rx/rx.c (flags_from_code): Likewise.
6854 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
6855 is valid, n/pz otherwise.
6856 (rx_select_cc_mode): Return CCmode if Y is not zero.
6858 2011-02-10 Richard Guenther <rguenther@suse.de>
6860 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
6862 2011-02-10 Richard Guenther <rguenther@suse.de>
6864 PR tree-optimization/47677
6865 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
6867 2011-02-10 Jakub Jelinek <jakub@redhat.com>
6870 * combine.c (make_compound_operation): Only change shifts into
6871 multiplication for SCALAR_INT_MODE_P.
6873 2011-02-10 Jie Zhang <jie@codesourcery.com>
6877 2011-02-05 Jie Zhang <jie@codesourcery.com>
6879 * web.c (entry_register): Don't clobber the number of the
6880 first uninitialized reference in used[].
6882 2011-02-09 Richard Guenther <rguenther@suse.de>
6884 PR tree-optimization/47664
6885 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
6888 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
6892 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
6894 (PROCESSOR_DEFAULT64): Same.
6895 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
6897 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6899 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
6901 2011-02-09 Martin Jambor <mjambor@suse.cz>
6904 * tree-sra.c (struct access): New flags grp_scalar_read and
6905 grp_scalar_write. Changed description of assignment read and write
6907 (dump_access): Dump new flags, reorder all of them.
6908 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
6909 to detect multiple scalar reads.
6910 (analyze_access_subtree): Use the new scalar read write flags instead
6911 of the old flags. Adjusted comments.
6913 2011-02-08 DJ Delorie <dj@redhat.com>
6916 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
6919 2011-02-08 Joseph Myers <joseph@codesourcery.com>
6921 * config/m68k/uclinux.opt: New.
6922 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
6924 2011-02-08 Joseph Myers <joseph@codesourcery.com>
6926 * config/cris/elf.opt (sim): New Driver option.
6928 2011-02-08 Joseph Myers <joseph@codesourcery.com>
6930 * config/xtensa/elf.opt: New.
6931 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
6933 2011-02-08 Joseph Myers <joseph@codesourcery.com>
6935 * config/vax/elf.opt: New.
6936 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
6938 2011-02-08 Joseph Myers <joseph@codesourcery.com>
6940 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
6942 2011-02-08 Joseph Myers <joseph@codesourcery.com>
6944 * config/gnu-user.opt: New.
6945 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
6946 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
6947 *-*-uclinux*): Use gnu-user.opt.
6949 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
6951 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
6952 * config/i386/gnu.h (CPP_SPEC): Likewise.
6954 2011-02-08 Ian Lance Taylor <iant@google.com>
6956 * common.opt (fcx-limited-range): Add SetByCombined flag.
6957 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
6958 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
6959 (fassociative-math, freciprocal-math): Likewise.
6960 (funsafe-math-optimizations): Likewise.
6961 * opth-gen.awk: Handle SetByCombined.
6962 * optc-gen.awk: Likewise.
6963 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
6964 (set_unsafe_math_optimizations_flags): Likewise.
6965 * doc/options.texi (Option properties): Document SetByCombined.
6967 2011-02-08 Joseph Myers <joseph@codesourcery.com>
6969 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
6970 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
6971 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
6972 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
6973 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
6975 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
6977 PR tree-optimization/46834
6978 PR tree-optimization/46994
6979 PR tree-optimization/46995
6980 * graphite-sese-to-poly.c (used_outside_reduction): New.
6981 (detect_commutative_reduction): Call used_outside_reduction.
6982 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
6983 translate_scalar_reduction_to_array only when at least one
6984 loop-phi/close-phi tuple has been detected.
6986 2011-02-08 Richard Guenther <rguenther@suse.de>
6989 * tree-vect-generic.c (expand_vector_operations_1): Update
6991 (expand_vector_operations): ... not here. Cleanup EH info
6992 and the CFG if required.
6994 2011-02-08 Richard Guenther <rguenther@suse.de>
6996 PR tree-optimization/47641
6997 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
6998 require type compatibility.
7000 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7002 * gimple-low.c (lower_function_body): Don't remove the location of
7003 the return statement here.
7004 (lower_gimple_return): Do it here instead but only if the return
7005 statement is actually used twice.
7007 2011-02-08 Richard Guenther <rguenther@suse.de>
7009 PR tree-optimization/47632
7010 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
7011 unused up_to_stmt parameter, return whether cfg-cleanup is
7012 necessary, remove EH info properly.
7013 (forward_propagate_into_gimple_cond): Adjust caller.
7014 (forward_propagate_into_cond): Likewise.
7015 (forward_propagate_comparison): Likewise.
7016 (tree_ssa_forward_propagate_single_use_vars): Make
7017 forward_propagate_comparison case similar to the two others.
7019 2011-02-08 Nick Clifton <nickc@redhat.com>
7021 * config/mn10300/mn10300.opt (mliw): New command line option.
7022 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
7023 (liw_bundling): New automaton.
7024 (liw): New attribute.
7025 (liw_op): New attribute.
7026 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
7027 (movsi_internal): Add LIW attributes.
7031 (addsi3): Separate register and immediate alternatives.
7036 (lshrsi3): Likewise.
7037 (ashrsi3): Likewise.
7039 * config/mn10300/mn10300.c (liw_op_names): New
7040 (mn10300_print_operand): Handle 'W' operand descriptor.
7041 (extract_bundle): New function.
7042 (check_liw_constraints): New function.
7043 (liw_candidate): New function.
7044 (mn10300_bundle_liw): New function.
7045 (mn10300_reorg): New function.
7046 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7047 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
7048 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
7049 __LIW__ or __NO_LIW__.
7050 * doc/invoke.texi: Describe the -mliw command line option.
7052 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7054 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
7055 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7056 pthread_mutex_unlock): Remove.
7057 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
7058 * config/pa/t-pa64: Likewise.
7059 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
7060 shared libc if not linking against libpthread.
7061 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
7063 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
7066 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
7067 on 10.6 and later to ensure that we always use the unwinder from
7068 the system. Only add -no_compact_unwind when tarteting darwin
7071 2011-02-07 Steve Ellcey <sje@cup.hp.com>
7074 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
7075 (vec_interleave_lowv2sf): Ditto.
7076 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
7077 (vec_extract_oddv2sf): Ditto.
7079 2011-02-07 Mike Stump <mikestump@comcast.net>
7082 Add __ieee_divdc3 entry point.
7083 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
7085 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
7086 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
7087 * config/darwin.c (darwin_rename_builtins): Add.
7088 * config/darwin-protos.h (darwin_rename_builtins): Add.
7090 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
7093 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
7096 2011-02-07 Mike Stump <mikestump@comcast.net>
7098 * config/darwin.opt (mmacosx-version-min): Update default OS version.
7100 2011-02-07 Denis Chertykov <chertykov@gmail.com>
7103 * config/avr/libgcc.S (exit): Move .endfunc
7105 2011-02-07 Richard Guenther <rguenther@suse.de>
7107 PR tree-optimization/47615
7108 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
7109 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
7110 (run_scc_vn): Initialize it.
7111 (visit_reference_op_load): Use it.
7112 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
7114 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7116 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
7117 DImode trapping arithmetic libfuncs.
7119 2011-02-07 Richard Guenther <rguenther@suse.de>
7121 PR tree-optimization/47621
7122 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
7124 (execute_update_addresses_taken): ... here. Make it more
7125 conservative in what we accept.
7127 2011-02-06 Joseph Myers <joseph@codesourcery.com>
7129 * config/sparc/freebsd.h (ASM_SPEC): Define.
7130 * config/sparc/vxworks.h (ASM_SPEC): Define.
7132 2011-02-06 Joseph Myers <joseph@codesourcery.com>
7134 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
7136 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
7138 * doc/invoke.texi: Remove reference to compiler internals from
7141 * reg-notes.def: Remove REG_VALUE_PROFILE.
7142 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
7144 2011-02-05 Jakub Jelinek <jakub@redhat.com>
7147 * varasm.c (default_section_type_flags): If decl is NULL,
7148 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
7150 2011-02-05 Jie Zhang <jie@codesourcery.com>
7153 * web.c (entry_register): Don't clobber the number of the
7154 first uninitialized reference in used[].
7156 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
7158 PR tree-optimization/46194
7159 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
7160 (build_classic_dist_vector_1): Do not represent classic distance
7161 vectors when the access functions are variating in different loops.
7163 2011-02-04 Joseph Myers <joseph@codesourcery.com>
7165 * config/mips/iris6.opt: New.
7166 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
7168 2011-02-04 Richard Henderson <rth@redhat.com>
7169 Steve Ellcey <sje@cup.hp.com>
7172 * config/ia64/predicates.md (mux1_brcst_element): New.
7173 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
7174 * config/ia64/ia64.c (ia64_unpack_assemble): New.
7175 (ia64_unpack_sign): New.
7176 (ia64_expand_unpack): Rewrite using new routines.
7177 (ia64_expand_widen_sum): Ditto.
7178 (ia64_expand_dot_prod_v8qi): Ditto.
7179 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
7180 routines, add endian check.
7181 (pmpy2_even): Rename from pmpy2_r, add endian check.
7182 (pmpy2_odd): Rename from pmpy2_l, add endian check.
7183 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
7184 (vec_widen_smult_hi_v4hi): Ditto.
7185 (vec_widen_umult_lo_v4hi): Ditto.
7186 (vec_widen_umult_hi_v4hi): Ditto.
7187 (mulv2si3): Change endian checks.
7188 (sdot_prodv4hi): Rewrite with new calls.
7189 (udot_prodv4hi): New.
7190 (vec_pack_ssat_v4hi): Add endian check.
7191 (vec_pack_usat_v4hi): Ditto.
7192 (vec_pack_ssat_v2si): Ditto.
7193 (max1_even): Rename from max1_r, add endian check.
7194 (max1_odd): Rename from max1_l, add endian check.
7195 (*mux1_rev): Format change.
7197 (*mux1_shuf): Ditto.
7199 (*mux1_brcst_v8qi): Use new predicate.
7200 (vec_extract_evenv8qi): Remove endian check.
7201 (vec_extract_oddv8qi): Ditto.
7202 (vec_interleave_lowv4hi): Format change.
7203 (vec_interleave_highv4hi): Ditto.
7204 (mix2_even): Rename from mix2_r, add endian check.
7205 (mix2_odd): Rename from mux2_l, add endian check.
7206 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
7207 (vec_extract_evenodd_helper): Format change.
7208 (vec_extract_evenv4hi): Remove endian check.
7209 (vec_extract_oddv4hi): Remove endian check.
7210 (vec_interleave_lowv2si): Format change.
7211 (vec_interleave_highv2si): Format change.
7212 (vec_initv2si): Remove endian check.
7213 (vecinit_v2si): Add endian check.
7214 (reduc_splus_v2sf): Add endian check.
7215 (reduc_smax_v2sf): Ditto.
7216 (reduc_smin_v2sf): Ditto.
7217 (vec_initv2sf): Remove endian check.
7218 (fpack): Add endian check.
7219 (fswap): Add endian check.
7220 (vec_interleave_highv2sf): Add endian check.
7221 (vec_interleave_lowv2sf): Add endian check.
7222 (fmix_lr): Add endian check.
7223 (vec_setv2sf): Format change.
7224 (*vec_extractv2sf_0_be): Use shift to extract operand.
7225 (*vec_extractv2sf_1_be): New.
7226 (vec_pack_trunc_v4hi): Add endian check.
7227 (vec_pack_trunc_v2si): Format change.
7229 2011-02-04 Jakub Jelinek <jakub@redhat.com>
7232 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
7233 do bb, locus and block comparison and disallow loads if it is not set.
7234 (stmt_is_replaceable_p): New function.
7235 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
7237 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
7238 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
7240 * tree-flow.h (stmt_is_replaceable_p): New prototype.
7242 2011-02-04 Joseph Myers <joseph@codesourcery.com>
7244 * config/rs6000/xilinx.opt: New.
7245 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
7247 2011-02-04 Joseph Myers <joseph@codesourcery.com>
7249 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
7251 2011-02-03 Anatoly Sokolov <aesok@post.ru>
7253 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
7254 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7255 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
7256 secondary_reload_info, xtensa_secondary_reload): Remove.
7257 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
7258 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7259 (xtensa_preferred_reload_class): Make static. Change return and
7260 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
7261 Use CONST_DOUBLE_P predicate.
7262 (xtensa_preferred_output_reload_class): New function.
7263 (xtensa_secondary_reload): Make static.
7265 2011-02-03 Joseph Myers <joseph@codesourcery.com>
7267 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
7268 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
7269 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
7271 2011-02-03 Jakub Jelinek <jakub@redhat.com>
7274 * output.h (SECTION_RELRO): Define.
7275 (SECTION_MACH_DEP): Adjust.
7276 (get_variable_section): New prototype.
7277 * varpool.c (varpool_finalize_named_section_flags): New function.
7278 (varpool_assemble_pending_decls): Call it.
7279 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
7280 * cgraphunit.c (cgraph_output_in_order): Call
7281 varpool_finalize_named_section_flags.
7282 * varasm.c (get_section): Allow section flags conflicts between
7283 relro and read-only sections if the section hasn't been declared yet.
7284 Set SECTION_OVERRIDE after diagnosing section type conflict.
7285 (get_variable_section): No longer static.
7286 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
7287 readonly sections that need relocations.
7288 (decl_readonly_section_1): New function.
7289 (decl_readonly_section): Use it.
7292 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
7293 Steve Ellcey <sje@cup.hp.com>
7296 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
7297 if section attribute used.
7299 2011-02-03 Jakub Jelinek <jakub@redhat.com>
7301 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
7302 * config/darwin.c (SECTION_NO_ANCHOR): Define.
7303 (darwin_init_sections): Remove assertion.
7305 2011-02-03 Nick Clifton <nickc@redhat.com>
7307 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
7309 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
7310 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
7311 instead of "n" and "pz".
7312 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
7315 2011-02-03 Jakub Jelinek <jakub@redhat.com>
7318 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
7319 fma, expand FMA_EXPR as fma{,f,l} call.
7322 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
7323 copy them into a unsigned char variable and pass address of it to
7324 lto_output_data_stream.
7327 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
7328 around backend_init_target and lang_dependent_init_target calls.
7329 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
7330 (verify_cgraph_node): Don't call set_cfun here. Use
7331 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
7332 Set error_found for incorrectly represented calls to thunks.
7334 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
7337 PR rtl-optimization/43494
7338 * rtl.h (for_each_inc_dec_fn): New type.
7339 (for_each_inc_dec): Declare.
7340 * rtlanal.c (struct for_each_inc_dec_ops): New type.
7341 (for_each_inc_dec_find_inc_dec): New fn.
7342 (for_each_inc_dec_find_mem): New fn.
7343 (for_each_inc_dec): New fn.
7344 * dse.c (struct insn_size): Remove.
7345 (replace_inc_dec, replace_inc_dec_mem): Remove.
7346 (emit_inc_dec_insn_before): New fn.
7347 (check_for_inc_dec): Use it, along with for_each_inc_dec.
7348 (canon_address): Pass mem modes to cselib_lookup.
7349 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
7350 (cselib_lookup_from_insn): Likewise.
7351 (cselib_subst_to_values): Likewise.
7352 * cselib.c (find_slot_memmode): New var.
7353 (cselib_find_slot): New fn. Use it instead of
7354 htab_find_slot_with_hash everywhere.
7355 (entry_and_rtx_equal_p): Use find_slot_memmode.
7356 (autoinc_split): New fn.
7357 (rtx_equal_for_cselib_p): Rename and implement in terms of...
7358 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
7359 Deal with autoinc. Special-case recursion into MEMs.
7360 (cselib_hash_rtx): Likewise.
7361 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
7362 address and MEM modes.
7363 (cselib_subst_to_values): Add memmode, pass it on.
7365 (cselib_lookup): Add memmode argument, pass it on.
7366 (cselib_lookup_from_insn): Add memmode.
7367 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
7368 (struct cselib_record_autoinc_data): New.
7369 (cselib_record_autoinc_cb): New fn.
7370 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
7371 mode to cselib_lookup. Reset autoinced REGs here instead of...
7372 (cselib_process_insn): ... here.
7373 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
7375 (add_uses): Likewise, also to cselib_subst_to_values.
7376 (add_stores): Likewise.
7377 * sched-deps.c (add_insn_mem_dependence): Pass mode to
7378 cselib_subst_to_values.
7379 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
7380 * gcse.c (do_local_cprop): Adjusted.
7381 * postreload.c (reload_cse_simplify_set): Adjusted.
7382 (reload_cse_simplify_operands): Adjusted.
7383 * sel-sched-dump (debug_mem_addr_value): Pass mode.
7385 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
7387 PR tree-optimization/45122
7388 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
7389 unsafe assumptions when there's more than one loop exit.
7391 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
7394 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
7395 Document using vector double with the load/store builtins, and
7396 that the load/store builtins always use Altivec instructions.
7398 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
7399 to use altivec memory instructions, even on VSX.
7400 (vector_altivec_store_<mode>): Ditto.
7402 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
7405 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7406 V2DF, V2DI support to load/store overloaded builtins.
7408 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
7409 altivec load/store builtins for V2DF/V2DI types.
7411 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
7412 set avoid indexed addresses on power6 if -maltivec.
7413 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
7414 vector_altivec_load/vector_altivec_store builtins.
7415 (altivec_expand_st_builtin): Ditto.
7416 (altivec_expand_builtin): Add VSX memory builtins.
7417 (rs6000_init_builtins): Add V2DI types to internal types.
7418 (altivec_init_builtins): Add support for V2DF/V2DI altivec
7419 load/store builtins.
7420 (rs6000_address_for_altivec): Insure memory address is appropriate
7423 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
7424 vec_vsx_ld and vec_vsx_st.
7425 (vsx_store_<mode>): Ditto.
7427 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
7428 variables to hold long long types for VSX vector memory builtins.
7429 (RS6000_BTI_unsigned_long_long): Ditto.
7430 (long_long_integer_type_internal_node): Ditti.
7431 (long_long_unsigned_type_internal_node): Ditti.
7433 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
7434 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
7435 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
7437 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
7439 (vec_vsx_st): Ditto.
7441 2011-02-02 Joseph Myers <joseph@codesourcery.com>
7443 * config/pa/pa-hpux10.opt: New.
7444 * config/hpux11.opt (pthread): New Driver option.
7445 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
7446 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
7448 2011-02-02 Joseph Myers <joseph@codesourcery.com>
7450 * config/ia64/vms.opt: New.
7451 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
7453 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
7456 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
7457 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
7458 generator functions.
7459 (vsx_floatuns<VSi><mode>2): Ditto.
7460 (vsx_fix_trunc<mode><VSi>2): Ditto.
7461 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
7463 2011-02-02 Joseph Myers <joseph@codesourcery.com>
7465 * config/i386/djgpp.opt (posix): New Driver option.
7467 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
7469 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
7470 Move to the unsupported targets list.
7472 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
7474 PR rtl-optimization/47525
7475 * df-scan.c: Update copyright years.
7476 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
7477 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
7479 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7481 * config/i386/sysv4.h (TARGET_VERSION): Remove.
7482 (SUBTARGET_RETURN_IN_MEMORY): Remove.
7483 (ASM_OUTPUT_ASCII): Remove.
7484 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
7486 2011-02-02 Jeff Law <law@redhat.com>
7489 * reload.c (find_reloads_address): Handle reg+d address where both
7490 components are invalid by reloading the entire address.
7492 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
7493 Richard Guenther <rguenther@suse.de>
7495 PR tree-optimization/40979
7497 * passes.c (init_optimization_passes): After LIM call copy_prop
7498 and DCE to clean up.
7499 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
7501 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
7503 PR tree-optimization/47576
7504 PR tree-optimization/47555
7505 * doc/invoke.texi (scev-max-expr-complexity): Documented.
7506 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
7507 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
7508 * tree-scalar-evolution.c (follow_ssa_edge): Use
7509 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
7511 2011-02-02 Richard Guenther <rguenther@suse.de>
7513 PR tree-optimization/47566
7514 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
7516 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
7520 * tree-inline.c (declare_return_variable): Remove unused caller
7525 * tree-flow-inline.h (clear_is_used, is_used_p): New.
7526 * cfgexpand.c (account_used_vars_for_block): Use them.
7527 * tree-nrv.c (tree_nrv): Likewise.
7528 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
7529 (dump_scope_block): Likewise.
7530 (remove_unused_locals): Likewise.
7534 * tree-inline.c (declare_return_variable): Add result decl to
7535 local decls only once.
7536 * gimple-low.c (record_vars_into): Mark newly-created variables
7539 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
7545 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
7547 (no_real_insns_p, schedule_block, set_priorities): Drop special
7548 treatment of boundary debug insns.
7549 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
7550 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
7551 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
7552 (BOUNDARY_DEBUG_INSN_P): Likewise.
7553 (SCHEDULE_DEBUG_INSN_P): Likewise.
7554 * sched-rgn.c (init_ready_list): Drop special treatment of
7555 boundary debug insns.
7556 * final.c (rest_of_clean_state): Clear notes' BB.
7558 2011-02-01 Joseph Myers <joseph@codesourcery.com>
7560 * config/openbsd.opt (assert=): New Driver option.
7562 2011-02-01 Joseph Myers <joseph@codesourcery.com>
7564 * config/i386/nto.opt: New.
7565 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
7567 2011-02-01 Joseph Myers <joseph@codesourcery.com>
7569 * config/i386/netware.opt: New.
7570 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
7572 2011-02-01 Joseph Myers <joseph@codesourcery.com>
7574 * config/interix.opt (posix): New Driver option.
7576 2011-02-01 DJ Delorie <dj@redhat.com>
7578 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
7580 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
7583 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
7585 PR tree-optimization/47561
7586 * toplev.c (process_options): Print the Graphite flags. Add
7587 flag_loop_flatten to the list of options requiring Graphite.
7589 2011-02-01 Joseph Myers <joseph@codesourcery.com>
7591 * config/i386/cygming.opt (posix): New Driver option.
7593 2011-02-01 Joseph Myers <joseph@codesourcery.com>
7595 * config/arm/vxworks.opt: New.
7596 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
7598 2011-02-01 Joseph Myers <joseph@codesourcery.com>
7600 * config/alpha/elf.opt: New.
7601 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
7602 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
7604 2011-02-01 Richard Guenther <rguenther@suse.de>
7606 PR tree-optimization/47559
7607 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
7608 store-motion on references that can throw.
7610 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
7612 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
7613 * tree-pass.h (TDF_CSELIB): New macro.
7614 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
7615 cselib_lookup): Check for it rather than for TDF_DETAILS.
7617 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
7620 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
7623 * opts.c (finish_options): Don't add x_aux_base_name if it is
7626 2011-02-01 Richard Guenther <rguenther@suse.de>
7628 PR tree-optimization/47555
7630 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
7632 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
7634 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
7637 * config/lm32/t-lm32: Add multilib for all CPU options.
7639 2011-02-01 Richard Guenther <rguenther@suse.de>
7641 PR tree-optimization/47541
7642 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
7643 sure to have a field at offset zero.
7645 2011-01-31 Joseph Myers <joseph@codesourcery.com>
7647 * config/arc/arc.opt (EB, EL): New Driver options.
7649 2011-01-31 Joseph Myers <joseph@codesourcery.com>
7651 * config/alpha/osf5.opt: New.
7652 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
7654 2011-01-31 Joseph Myers <joseph@codesourcery.com>
7656 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
7658 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
7660 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
7662 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
7663 is an alias of -floop-interchange and that it requires the
7664 Graphite infrastructure.
7665 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
7666 flag_loop_interchange based on the value of flag_tree_loop_linear.
7668 2011-01-31 Jakub Jelinek <jakub@redhat.com>
7669 Richard Guenther <rguenther@suse.de>
7671 PR tree-optimization/47538
7672 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
7673 type instead of r1type, except for comparisons. For right
7674 shifts and comparisons punt if there are mismatches in
7675 sizetype vs. non-sizetype types.
7677 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7679 * doc/sourcebuild.texi (Effective-Target Keywords): Document
7682 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7684 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
7686 * configure: Regenerate.
7688 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7690 * configure.ac (gcc_cv_ld_static_option): Define.
7691 (gcc_cv_ld_dynamic_option): Define.
7692 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
7694 (HAVE_LD_STATIC_DYNAMIC): Update message.
7695 (LD_STATIC_OPTION): Define.
7696 (LD_DYNAMIC_OPTION): Define.
7697 * configure: Regenerate.
7698 * config.in: Regenerate.
7699 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
7700 HAVE_LD_STATIC_DYNAMIC]: Use them.
7702 2011-01-31 Nick Clifton <nickc@redhat.com>
7704 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
7705 registers inside interrupt handlers if the handler is not a leaf
7708 2011-01-31 Nick Clifton <nickc@redhat.com>
7710 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
7711 reg_renumber returning an INVALID_REGNUM.
7713 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
7716 * doc/install.texi: Document host options discarded when cross
7717 configuring target libraries.
7719 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
7722 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
7725 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
7727 (no_real_insns_p, schedule_block, set_priorities): Drop special
7728 treatment of boundary debug insns.
7729 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
7730 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
7731 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
7732 (BOUNDARY_DEBUG_INSN_P): Likewise.
7733 (SCHEDULE_DEBUG_INSN_P): Likewise.
7734 * sched-rgn.c (init_ready_list): Drop special treatment of
7735 boundary debug insns.
7736 * final.c (rest_of_clean-state): Clear notes' BB.
7738 2011-01-31 Alan Modra <amodra@gmail.com>
7740 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
7741 toc relative expressions as we do in print_operand_address.
7743 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
7745 * doc/extend.texi: Follow spelling conventions.
7746 * doc/invoke.texi: Fix a typo.
7748 2011-01-30 Joseph Myers <joseph@codesourcery.com>
7750 * config/hpux11.opt: New.
7751 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
7752 ia64*-*-hpux*): Use hpux11.opt.
7754 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
7756 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
7759 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
7761 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
7764 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
7766 * doc/install.texi (Binaries): Remove outdated reference for
7767 Motorola 68HC11/68HC12 downloads.
7769 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
7771 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
7774 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
7777 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
7780 2011-01-28 Ahmad Sharif <asharif@google.com>
7782 * value-prof.c (check_counter): Corrected error message.
7784 2011-01-29 Jie Zhang <jie@codesourcery.com>
7786 * config/arm/arm.c (arm_legitimize_reload_address): New.
7787 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
7788 arm_legitimize_reload_address.
7789 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
7791 2011-01-28 Ian Lance Taylor <iant@google.com>
7793 * godump.c (go_define): Ignore macros whose definitions include
7794 two adjacent operands.
7796 2011-01-28 Jakub Jelinek <jakub@redhat.com>
7799 * varasm.c (force_const_mem): Store copy of x in desc->constant
7800 instead of x itself.
7801 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
7802 itself into REG_EQUAL note.
7804 2011-01-28 Joseph Myers <joseph@codesourcery.com>
7806 * config/freebsd.opt (posix, rdynamic): New Driver options.
7808 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7810 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
7812 * configure: Regenerate.
7814 2011-01-27 Joseph Myers <joseph@codesourcery.com>
7816 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
7817 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
7819 2011-01-27 Anatoly Sokolov <aesok@post.ru>
7821 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
7822 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
7823 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7824 (s390_preferred_reload_class): Make static. Change return and
7825 'rclass' argument type to reg_class_t.
7827 2011-01-27 Jan Hubicka <jh@suse.cz>
7830 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
7831 (process_function_and_variable_attributes): Check defined weakrefs.
7833 2011-01-27 Martin Jambor <mjambor@suse.cz>
7835 PR tree-optimization/47228
7836 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
7837 build_ref_for_offset.
7839 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7841 * config/spu/spu-elf.h (ASM_SPEC): Remove.
7843 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
7845 PR rtl-optimization/46856
7846 * postreload.c (reload_combine_recognize_const_pattern): Do not
7847 separate cc0 setter and user on cc0 targets.
7849 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
7852 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
7853 passed a VOID_TYPE expression, immediately emit an error and
7854 return error_mark_node.
7856 2011-01-26 Jeff Law <law@redhat.com>
7858 PR rtl-optimization/47464
7859 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
7860 rather than may_trap_p as needed.
7862 2011-01-26 DJ Delorie <dj@redhat.com>
7864 PR rtl-optimization/46878
7865 * combine.c (insn_a_feeds_b): Check for the implicit cc0
7866 setter/user dependency as well.
7868 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
7870 PR rtl-optimization/44469
7871 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
7872 after removing trivially dead basic blocks.
7874 2011-01-26 Joseph Myers <joseph@codesourcery.com>
7876 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
7877 * config/frv/frv.h (LINK_SPEC): Likewise.
7878 * config/i386/netware.h (LINK_SPEC): Likewise.
7879 * config/m68k/linux.h (ASM_SPEC): Likewise.
7880 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
7881 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
7882 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
7883 * config/sparc/linux.h (ASM_SPEC): Likewise.
7884 * config/sparc/linux64.h (ASM_SPEC): Likewise.
7885 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
7887 2011-01-26 Joseph Myers <joseph@codesourcery.com>
7889 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
7890 * config/frv/frv.h (ASM_SPEC): Likewise.
7891 * config/m68k/linux.h (ASM_SPEC): Likewise.
7892 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
7893 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
7894 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
7895 * config/sparc/linux.h (ASM_SPEC): Likewise.
7896 * config/sparc/linux64.h (ASM_SPEC): Likewise.
7897 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
7899 2011-01-26 Joseph Myers <joseph@codesourcery.com>
7901 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
7902 * config/frv/frv.h (LINK_SPEC): Likewise.
7903 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
7905 2011-01-26 Joseph Myers <joseph@codesourcery.com>
7907 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
7908 * config/frv/frv.h (ASM_SPEC): Likewise.
7909 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
7910 * config/m68k/linux.h (ASM_SPEC): Likewise.
7911 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
7912 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
7913 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
7914 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
7915 * config/sparc/linux.h (ASM_SPEC): Likewise.
7916 * config/sparc/linux64.h (ASM_SPEC): Likewise.
7917 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
7918 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
7920 2011-01-26 Steve Ellcey <sje@cup.hp.com>
7923 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
7925 (vec_extract_evenodd_help): Ditto.
7926 (vec_extract_evenv4hi): Ditto.
7927 (vec_extract_oddv4hi): Ditto.
7928 (vec_interleave_lowv2si): Ditto.
7929 (vec_interleave_highv2si): Ditto.
7930 (vec_extract_evenv2si): Ditto.
7931 (vec_extract_oddv2si: Ditto.
7932 (vec_pack_trunc_v2si): Ditto.
7934 2011-01-22 Jan Hubicka <jh@suse.cz>
7937 * cgraph.h (cgraph_local_info): New field can_change_signature.
7938 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
7939 signature can change.
7940 (ipcp_estimate_growth): Call sequence simplify only if calle signature
7942 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
7943 (cgraph_function_versioning): We can not change signature of functions
7944 that don't allow that.
7945 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
7946 (lto_input_node): Likewise.
7947 * ipa-inline.c (compute_inline_parameters): Compute
7948 local.can_change_signature.
7949 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
7950 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
7951 functions that can not change signature.
7952 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
7953 init_cumulative_args): Do not use local calling conventions
7954 for functions that can not change signature.
7956 2011-01-22 Jan Hubicka <jh@suse.cz>
7958 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
7960 2011-01-26 Richard Guenther <rguenther@suse.de>
7962 PR tree-optimization/47190
7963 * cgraphunit.c (process_common_attributes): New function.
7964 (process_function_and_variable_attributes): Use it.
7966 2011-01-26 Richard Guenther <rguenther@suse.de>
7969 * cgraphbuild.c (record_eh_tables): Record reference to personality
7972 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
7975 * sel-sched.c (moveup_expr): Don't let debug insns prevent
7976 non-debug insns from moving up.
7978 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
7981 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
7982 t-dlldir{,-x} fragment for build and add it to tmake_file.
7983 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
7984 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
7985 * config/i386/t-dlldir: New file.
7986 (SHLIB_DLLDIR): Define.
7987 * config/i386/t-dlldir-x: New file.
7988 (SHLIB_DLLDIR): Define.
7989 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
7990 (SHLIB_INSTALL): Use it.
7992 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
7995 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
7996 lower bound of the allowed Thumb-2 coprocessor load/store
7997 index range to -256. Add explaining comment.
7999 2011-01-25 Ian Lance Taylor <iant@google.com>
8001 * godump.c (go_define): Improve lexing of macro expansion to only
8002 accept expressions which match Go spec.
8004 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
8007 * tree.c (handle_dll_attribute): Handle it.
8008 * doc/extend.texi (@item dllexport): Mention it.
8009 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
8011 2011-01-25 Ian Lance Taylor <iant@google.com>
8013 PR tree-optimization/26854
8014 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
8015 (decl_jump_unsafe): Move higher in file, with no other change.
8016 (bind): Set has_jump_unsafe_decl if appropriate.
8017 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
8018 (check_earlier_gotos): Likewise.
8019 (c_check_switch_jump_warnings): Likewise.
8021 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
8023 * doc/invoke.texi (Warning Options): Add missing hyphen.
8024 (-fprofile-dir): Minor grammatical fixes.
8025 (-fbranch-probabilities): Likewise.
8027 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
8031 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8033 (no_real_insns_p, schedule_block, set_priorities): Drop special
8034 treatment of boundary debug insns.
8035 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8036 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
8037 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8038 (BOUNDARY_DEBUG_INSN_P): Likewise.
8039 (SCHEDULE_DEBUG_INSN_P): Likewise.
8040 * sched-rgn.c (init_ready_list): Drop special treatment of
8041 boundary debug insns.
8042 * final.c (rest_of_clean-state): Clear notes' BB.
8044 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8046 * Makefile.in (LAMBDA_H): Removed.
8047 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
8048 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
8049 lambda-trans.o, and tree-loop-linear.o.
8050 (lto-symtab.o): Remove dependence on LAMBDA_H.
8051 (tree-loop-linear.o): Remove rule.
8052 (lambda-mat.o): Same.
8053 (lambda-trans.o): Same.
8054 (lambda-code.o): Same.
8055 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
8056 (tree-vect-slp.o): Same.
8057 * hwint.h (gcd): Moved here.
8058 (least_common_multiple): Same.
8059 * lambda-code.c: Removed.
8060 * lambda-mat.c: Removed.
8061 * lambda-trans.c: Removed.
8062 * lambda.h: Removed.
8063 * tree-loop-linear.c: Removed.
8064 * lto-symtab.c: Do not include lambda.h.
8065 * omega.c (gcd): Removed.
8066 * passes.c (init_optimization_passes): Remove pass_linear_transform.
8067 * tree-data-ref.c (print_lambda_vector): Moved here.
8068 (lambda_vector_copy): Same.
8069 (lambda_matrix_copy): Same.
8070 (lambda_matrix_id): Same.
8071 (lambda_vector_first_nz): Same.
8072 (lambda_matrix_row_add): Same.
8073 (lambda_matrix_row_exchange): Same.
8074 (lambda_vector_mult_const): Same.
8075 (lambda_vector_negate): Same.
8076 (lambda_matrix_row_negate): Same.
8077 (lambda_vector_equal): Same.
8078 (lambda_matrix_right_hermite): Same.
8079 * tree-data-ref.h: Do not include lambda.h.
8080 (lambda_vector): Moved here.
8081 (lambda_matrix): Same.
8082 (dependence_level): Same.
8083 (lambda_transform_legal_p): Removed declaration.
8084 (lambda_collect_parameters): Same.
8085 (lambda_compute_access_matrices): Same.
8086 (lambda_vector_gcd): Same.
8087 (lambda_vector_new): Same.
8088 (lambda_vector_clear): Same.
8089 (lambda_vector_lexico_pos): Same.
8090 (lambda_vector_zerop): Same.
8091 (lambda_matrix_new): Same.
8092 * tree-flow.h (least_common_multiple): Removed declaration.
8093 * tree-parloops.c (lambda_trans_matrix): Moved here.
8095 (LTM_ROWSIZE): Same.
8096 (LTM_COLSIZE): Same.
8097 (LTM_DENOMINATOR): Same.
8098 (lambda_trans_matrix_new): Same.
8099 (lambda_matrix_vector_mult): Same.
8100 (lambda_transform_legal_p): Same.
8101 * tree-pass.h (pass_linear_transform): Removed declaration.
8102 * tree-ssa-loop.c (tree_linear_transform): Removed.
8103 (gate_tree_linear_transform): Removed.
8104 (pass_linear_transform): Removed.
8105 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
8106 flag_loop_interchange.
8108 2011-01-25 Jakub Jelinek <jakub@redhat.com>
8110 PR tree-optimization/47265
8111 PR tree-optimization/47443
8112 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
8113 if name still has some uses.
8115 2011-01-25 Martin Jambor <mjambor@suse.cz>
8117 PR tree-optimization/47382
8118 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
8119 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
8121 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
8123 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
8124 sjlj_except_unwind_info.
8126 2011-01-25 Richard Guenther <rguenther@suse.de>
8128 PR tree-optimization/47426
8129 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
8130 visible functions results escape.
8132 2011-01-25 Jakub Jelinek <jakub@redhat.com>
8135 * config/arm/arm.c (any_sibcall_uses_r3): New function.
8136 (arm_get_frame_offsets): Use it.
8138 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8139 Jakub Jelinek <jakub@redhat.com>
8141 PR tree-optimization/47271
8142 * tree-if-conv.c (bb_postdominates_preds): New.
8143 (if_convertible_bb_p): Call bb_postdominates_preds.
8144 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
8145 (predicate_scalar_phi): Call bb_postdominates_preds.
8147 2011-01-25 Nick Clifton <nickc@redhat.com>
8149 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
8150 * config/rx/rx.c (rx_function_value): Likewise.
8151 (rx_promote_function_mode): Likewise.
8152 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
8153 in order to make it legitimate.
8154 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
8155 make sure that the first operand is the same as the result register.
8156 (addsi3_unspec): Delete.
8157 (subdi3): Do not accept immediate operands.
8158 (subdi3_internal): Likewise.
8160 2011-01-25 Jeff Law <law@redhat.com>
8162 PR rtl-optimization/37273
8163 * ira-costs.c (scan_one_insn): Detect constants living in memory and
8164 handle them like argument loads from stack slots. Do not double
8165 count memory for memory constants and argument loads from stack slots.
8167 2011-01-25 Jakub Jelinek <jakub@redhat.com>
8169 PR tree-optimization/47427
8170 PR tree-optimization/47428
8171 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
8172 coalesce if the new root var would be TREE_READONLY.
8174 2011-01-25 Richard Guenther <rguenther@suse.de>
8177 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
8178 correct type for TBAA.
8180 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8182 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
8183 (close_phi_written_to_memory): Call for_each_index with
8184 dr_indices_valid_in_loop.
8186 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8188 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
8189 when it is initialized.
8191 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8193 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
8194 call to graphite_find_data_references_in_stmt.
8195 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
8196 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
8197 call to graphite_find_data_references_in_stmt.
8198 (analyze_drs_in_stmts): Same.
8199 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
8200 in which the scalar analysis of indices is performed.
8201 (create_data_ref): Same. Update call to dr_analyze_indices.
8202 (find_data_references_in_stmt): Update call to create_data_ref.
8203 (graphite_find_data_references_in_stmt): Same.
8204 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
8206 (create_data_ref): Same.
8207 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
8208 call to create_data_ref.
8210 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8212 * graphite-sese-to-poly.c (build_poly_scop): Move
8213 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
8215 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8217 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
8218 VAR_DECL, PARM_DECL, and RESULT_DECL.
8220 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8222 * graphite-dependences.c (reduction_dr_1): Allow several reductions
8224 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
8225 that have already been marked as PBB_IS_REDUCTION.
8227 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8229 * graphite-scop-detection.c (same_close_phi_node): New.
8230 (remove_duplicate_close_phi): New.
8231 (make_close_phi_nodes_unique): New.
8232 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
8234 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8236 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
8237 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
8238 of both data references to be the same.
8240 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8242 * graphite-dependences.c (build_lexicographical_constraint): Remove
8244 (build_lexicographical_constraint): Adjust call to
8245 ppl_powerset_is_empty.
8246 (dependence_polyhedron): Same.
8247 (graphite_legal_transform_dr): Same.
8248 (graphite_carried_dependence_level_k): Same.
8249 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
8251 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
8253 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8255 * graphite-sese-to-poly.c
8256 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
8257 (close_phi_written_to_memory): New.
8258 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
8261 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8263 * doc/install.texi: Update the expected version number of PPL to 0.11.
8264 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
8265 #if PPL_VERSION_MINOR < 11.
8267 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8269 * graphite-dependences.c: Include graphite-cloog-util.h.
8270 (new_poly_ddr): Inlined into dependence_polyhedron.
8271 (free_poly_ddr): Moved close by new_poly_ddr.
8272 (dependence_polyhedron_1): Renamed dependence_polyhedron.
8273 Early return NULL when ppl_powerset_is_empty returns true.
8274 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
8275 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
8276 (graphite_legal_transform_dr): Call new_poly_ddr.
8277 (graphite_carried_dependence_level_k): Same.
8278 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
8279 (dot_transformed_deps_stmt_1): Removed.
8280 (dot_deps_stmt_1): Call dot_deps_stmt_2.
8281 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
8282 (dot_deps_1): Call dot_deps_2.
8283 * Makefile.in (graphite-dependences.o): Add missing dependence on
8284 graphite-cloog-util.h.
8286 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8288 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
8289 (build_lexicographical_constraint): Same.
8290 (dependence_polyhedron_1): Same.
8291 (graphite_legal_transform_dr): Same.
8292 (graphite_carried_dependence_level_k): Same.
8293 * graphite-ppl.c (ppl_powerset_is_empty): New.
8294 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
8295 * tree-data-ref.c (dump_data_reference): Print the basic block index.
8297 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8299 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
8300 the "a followed by b" relation and document it.
8302 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8304 * graphite-dependences.c (build_lexicographical_constraint): Stop the
8305 iteration when the bag of constraints is empty.
8307 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8309 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
8311 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8313 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
8314 nest and two loop depths as parameters.
8315 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
8316 lst_perfect_nestify.
8318 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8320 * graphite-dependences.c (print_pddr): Call
8321 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
8323 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8325 * graphite-ppl.c (debug_gmp_value): New.
8326 * graphite-ppl.h (debug_gmp_value): Declared.
8328 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
8330 * doc/install.texi: Document availability of cloog-0.16.
8332 2011-01-25 Vladimir Kargov <kargov@gmail.com>
8334 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
8335 invalid postdominance info.
8337 2011-01-24 Jan Hubicka <jh@suse.cz>
8340 * doc/extend.texi (weak pragma): Drop claim that it must
8341 appear before definition.
8342 * varasm.c (merge_weak, declare_weak): Only sanity check
8343 that DECL is not output at a time it is declared weak.
8345 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
8347 * machmode.def: Fixed comments.
8349 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
8351 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
8353 2011-01-24 Paul Koning <ni1d@arrl.net>
8355 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
8358 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
8361 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
8362 (block_info): Add scanned and prev.
8363 (move_or_delete_vzeroupper_2): Return if the basic block
8364 has been scanned and the upper 128bit state is unchanged
8366 (move_or_delete_vzeroupper_1): Return true if the exit
8368 (move_or_delete_vzeroupper): Visit basic blocks using the
8369 work-list based algorithm based on vt_find_locations in
8372 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
8374 2011-01-24 Nick Clifton <nickc@redhat.com>
8376 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
8377 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
8378 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
8379 then define __v850e1__.
8380 * doc/invoke.texi: Document -mv850es.
8382 2011-01-24 Richard Henderson <rth@redhat.com>
8384 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
8385 compound unordered comparisons.
8386 * config/rx/rx.c (rx_split_fp_compare): Remove.
8387 * config/rx/rx-protos.h: Update.
8388 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
8389 (cbranchsf4): Don't call rx_split_fp_compare.
8390 (*cbranchsf4): Use rx_split_cbranch.
8391 (*cmpsf): Don't accept "i" constraint.
8392 (*conditional_branch): Only valid after reload.
8393 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
8395 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
8398 * config/rs6000/altivec.md (vector constant splitters): Add
8399 support for creating vector single precision constants if -mvsx is
8400 used and we would create the constant using Altivec primitives.
8402 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
8403 Richard Sandiford <rdsandiford@googlemail.com>
8405 PR rtl-optimization/47166
8406 * reload1.c (emit_reload_insns): Disable the spill_reg_store
8407 mechanism for PRE_MODIFY and POST_MODIFY.
8408 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
8411 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
8413 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
8415 2011-01-22 Jan Hubicka <jh@suse.cz>
8418 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
8420 2011-01-22 Jan Hubicka <jh@suse.cz>
8422 PR tree-optimization/43884
8424 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
8425 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
8427 2011-01-22 Anatoly Sokolov <aesok@post.ru>
8429 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8430 * config/s390/s390.c (s390_register_move_cost,
8431 s390_memory_move_cost): New.
8432 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
8434 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8437 * except.c (sjlj_assign_call_site_values): Move setting the
8438 crtl->uses_eh_lsda flag to ...
8439 (sjlj_mark_call_sites): ... here.
8440 (sjlj_emit_function_enter): Support NULL dispatch label.
8441 (sjlj_build_landing_pads): In a function with no landing pads
8442 that still has must-not-throw regions, generate code to register
8443 a personality function with empty LSDA.
8445 2011-01-21 Richard Henderson <rth@redhat.com>
8447 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
8449 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
8451 * compare-elim.c: New file.
8452 * Makefile.in (OBJS-common): Add it.
8453 (compare-elim.o): New.
8454 * common.opt (fcompare-elim): New.
8455 * opts.c (default_options_table): Add OPT_fcompare_elim.
8456 * tree-pass.h (pass_compare_elim_after_reload): New.
8457 * passes.c (init_optimization_passes): Add it.
8458 * recog.h: Protect against re-inclusion.
8459 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
8460 * doc/invoke.texi (-fcompare-elim): Document it.
8461 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
8462 * doc/tm.texi: Rebuild.
8464 2011-01-22 Nick Clifton <nickc@redhat.com>
8466 * config/rx/rx.md (cstoresf4): Pass comparison operator to
8467 rx_split_fp_compare.
8469 2011-01-22 Nick Clifton <nickc@redhat.com>
8471 * config/rx/rx.md (UNSPEC_CONST): New.
8472 (deallocate_and_return): Wrap the amount popped off the stack in
8473 an UNSPEC_CONST in order to stop it being rejected by
8474 -mmax-constant-size.
8475 (pop_and_return): Add a "(return)" rtx.
8476 (call): Drop the immediate operand.
8477 (call_internal): Likewise.
8478 (call_value): Likewise.
8479 (call_value_internal): Likewise.
8480 (sibcall_internal): Likewise.
8481 (sibcall_value_internal): Likewise.
8482 (sibcall): Likewise. Generate an explicit call using
8484 (sibcall_value): Likewise.
8485 (mov<>): FAIL if a constant operand is not legitimate.
8486 (addsi3_unpsec): New pattern.
8488 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
8489 (ok_for_max_constant): New function.
8490 (gen_safe_add): New function.
8491 (rx_expand_prologue): Use gen_safe_add.
8492 (rx_expand_epilogue): Likewise.
8493 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
8496 2011-01-21 Jeff Law <law@redhat.com>
8498 PR tree-optimization/47053
8499 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
8500 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
8501 statements are deleted.
8502 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
8503 is nonempty, then purge dead edges and cleanup the CFG.
8505 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
8509 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
8511 * tree-dfa.c (create_var_ann): Mark variable as used.
8513 2011-01-21 Jakub Jelinek <jakub@redhat.com>
8516 * except.c (convert_to_eh_region_ranges): Emit queued no-region
8517 notes from other section in hot/cold partitioning even if
8518 last_action is -3. Increment call_site_base.
8520 PR rtl-optimization/47366
8521 * fwprop.c (forward_propagate_into): Return bool. If
8522 any changes are made, -fnon-call-exceptions is used and
8523 REG_EH_REGION note is present, call purge_dead_edges
8524 and return true if it purged anything.
8525 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
8526 any EH edges were purged.
8528 2011-01-21 Jeff Law <law@redhat.com>
8530 PR rtl-optimization/41619
8531 * caller-save.c (setup_save_areas): Break out code to determine
8532 which hard regs are live across calls by examining the reload chains
8533 so that it is always used.
8534 Eliminate code which checked REG_N_CALLS_CROSSED.
8536 2011-01-21 Jakub Jelinek <jakub@redhat.com>
8538 PR tree-optimization/47355
8539 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
8540 NOP has non-debug uses beyond PHIs in new_bb.
8542 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
8545 * cfgexpand.c (account_used_vars_for_block): Only account vars
8546 that are annotated as used.
8547 (estimated_stack_frame_size): Don't set TREE_USED.
8548 * tree-dfa.c (create_var_ann): Mark variable as used.
8550 2011-01-21 Richard Guenther <rguenther@suse.de>
8553 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
8555 2011-01-21 Richard Guenther <rguenther@suse.de>
8557 PR tree-optimization/47365
8558 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
8559 (vn_reference_lookup_pieces): Adjust.
8560 (vn_reference_lookup): Likewise.
8561 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
8562 (vn_reference_lookup_3): Only look through kills if in
8563 VN_WALKREWRITE mode.
8564 (vn_reference_lookup_pieces): Adjust.
8565 (vn_reference_lookup): Likewise.
8566 (visit_reference_op_load): Likewise.
8567 (visit_reference_op_store): Likewise.
8568 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
8569 (compute_avail): Likewise.
8570 (eliminate): Likewise.
8572 2011-01-21 Jakub Jelinek <jakub@redhat.com>
8574 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
8575 DECL_IGNORED_P non-reg vars if they are used.
8577 PR tree-optimization/47391
8578 * varpool.c (const_value_known_p): Return false if
8581 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
8584 * config/i386/i386.c (ix86_local_alignment): Handle
8585 case for va_list_type_node is nil.
8586 (ix86_canonical_va_list_type): Likewise.
8588 2011-01-21 Alan Modra <amodra@gmail.com>
8590 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
8591 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
8593 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8595 * config/arm/arm.md (define_attr type): Rename f_load
8596 and f_store to f_fpa_load and f_fpa_store. Update.
8597 (write_conflict): Deal with rename fallout.
8598 (*push_fp_multi): Likewise.
8599 * config/arm/fpa.md (f_load): Use f_fpa_load.
8600 (f_store): Use f_fpa_store.
8601 (*movsf_fpa): Likewise.
8602 (*movdf_fpa): Likewise.
8603 (*movxf_fpa): Likewise.
8604 (*thumb2_movsf_fpa): Likewise.
8605 (*thumb2_movdf_fpa): Likewise.
8606 (*thumb2_movxf_fpa): Likewise.
8607 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
8608 f_loadd and f_stored.
8609 (*thumb2_movdi_vfp): Likewise.
8610 (*thumb2_movsf_vfp): Fix attribute to f_loads.
8611 (*thumb2_movsi_vfp): Likewise.
8612 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
8613 Use f_loads instead of f_load.
8614 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
8616 2011-01-20 Anatoly Sokolov <aesok@post.ru>
8618 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8619 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
8620 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8621 (xtensa_mode_dependent_address_p): New function.
8622 (constantpool_address_p): Make static. Change return type to bool.
8623 Change argument type to const_rtx. Use CONST_INT_P predicate.
8625 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
8628 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
8630 2011-01-20 Jakub Jelinek <jakub@redhat.com>
8633 * cfgexpand.c (expand_debug_expr): Instead of generating
8634 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
8637 2011-01-20 Richard Guenther <rguenther@suse.de>
8640 * tree-inline.c (remap_gimple_op_r): Recurse manually for
8641 the pointer operand of MEM_REFs.
8643 2011-01-20 Jakub Jelinek <jakub@redhat.com>
8645 PR tree-optimization/46130
8646 * ipa-split.c (consider_split): If return_bb contains non-virtual
8647 PHIs other than for retval or if split_function would not adjust it,
8650 2011-01-20 Richard Guenther <rguenther@suse.de>
8652 PR tree-optimization/47167
8653 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
8654 Revert previous change, only avoid enumeral type changes.
8656 2011-01-19 Mike Stump <mikestump@comcast.net>
8658 * doc/tm.texi.in (BRANCH_COST): Englishify.
8659 * doc/tm.texi (BRANCH_COST): Likewise.
8661 2011-01-19 Dodji Seketeli <dodji@redhat.com>
8664 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
8665 (gen_scheduled_generic_parms_dies): New functions.
8666 (gen_struct_or_union_type_die): Schedule template parameters DIEs
8667 generation for the end of CU compilation.
8668 (dwarf2out_finish): Generate template parameters DIEs here.
8670 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
8673 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
8674 debug bind stmt on merge edges.
8676 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
8680 * function.c (instantiate_expr): Instantiate incoming rtl of
8681 implicit arguments, and recurse on VALUE_EXPRs.
8682 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
8683 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
8685 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
8687 * c-parser.c (c_parser_for_statement): Initialize
8688 collection_expression.
8690 2011-01-19 Joseph Myers <joseph@codesourcery.com>
8692 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
8694 2011-01-19 Joseph Myers <joseph@codesourcery.com>
8696 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
8697 (LINK_SHLIB_SPEC): Don't use %(link_path).
8698 (SUBTARGET_EXTRA_SPECS): Remove link_path.
8700 2011-01-19 Joseph Myers <joseph@codesourcery.com>
8702 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
8703 (NO_SHARED_LIB_SUPPORT): Remove.
8704 (LINK_SHLIB_SPEC): Remove one conditional definition.
8706 2011-01-19 Joseph Myers <joseph@codesourcery.com>
8708 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
8710 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
8711 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
8712 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
8713 %{call_shared} and conditionals on these options not being passed.
8714 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
8717 2011-01-19 Jakub Jelinek <jakub@redhat.com>
8719 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
8722 * ipa-split.c: Spelling fixes.
8724 2011-01-19 Richard Henderson <rth@redhat.com>
8726 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
8727 (*mulsi3): Likewise.
8729 * longlong.h [__mn10300__] (count_leading_zeros): New.
8730 [__mn10300__] (umul_ppmm, smul_ppmm): New.
8731 [__mn10300__] (add_ssaaaa, subddmmss): New.
8732 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
8733 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
8735 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8737 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
8739 2011-01-19 Richard Henderson <rth@redhat.com>
8741 * config/mn10300/mn10300.md (addsi3_flags): New.
8742 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
8743 (subsi3_flags, subc_internal, subdi3): New.
8744 (subdi3_internal, *subdi3_degenerate): New.
8745 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
8747 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
8748 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
8749 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
8750 * config/mn10300/mn10300-protos.h: Update.
8751 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
8752 (return_ret): Likewise. Rename from return_internal_regs.
8753 (return_internal): Remove.
8755 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
8756 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
8757 (mn10300_legitimate_constant_p): Likewise.
8758 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
8759 (mn10300_frame_size): New.
8760 (mn10300_expand_prologue): Use it.
8761 (mn10300_expand_epilogue): Likewise.
8762 (mn10300_initial_offset): Likewise.
8763 * config/mn10300/mn10300-protos.h: Update.
8764 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
8765 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
8766 (prologue, epilogue, return_internal): Tidy output code.
8767 (mn10300_store_multiple_operation, return): Likewise.
8768 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
8769 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
8770 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
8771 (load_pic, am33_load_pic): New.
8772 (mn10300_load_pic0, mn10300_load_pic1): New.
8774 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
8775 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
8776 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
8777 (cc_flags_for_mode, cc_flags_for_code): New.
8778 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
8779 overflow flag is not valid. Validate that the flags we need
8780 for the comparison are valid.
8781 (mn10300_output_cmp): Remove.
8782 (mn10300_output_add): New.
8783 (mn10300_select_cc_mode): Use cc_flags_for_code.
8784 (mn10300_split_cbranch): New.
8785 (mn10300_match_ccmode): New.
8786 (mn10300_split_and_operand_count): New.
8787 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
8789 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
8790 (addsi3): ... here. Use mn10300_output_add.
8791 (*addsi3_flags): New.
8792 (*am33_subsi3, *mn10300_subsi3): Merge...
8793 (subsi3): ... here. Use attribute isa.
8794 (*subsi3_flags): New.
8795 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
8797 (*am33_andsi3, *mn10300_andsi3): Merge...
8799 (*andsi3_flags): New.
8800 (andsi3 splitters): New.
8801 (*am33_iorsi3, *mn10300_iorsi3): Merge...
8803 (*iorsi3_flags): New.
8804 (*am33_xorsi3, *mn10300_xorsi3): Merge...
8806 (*xorsi3_flags): New.
8807 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
8808 (one_cmplsi2): ... here.
8809 (*one_cmplsi2_flags): New.
8810 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
8811 instead of "dax" in constraints. Use mn10300_split_cbranch.
8812 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
8813 use matching constraints to eliminate a self-comparison.
8814 (*integer_conditional_branch): Rename from integer_conditional_branch.
8815 Use int_mode_flags to match CC_REG.
8816 (*cbranchsi4_btst, *btstsi): New.
8817 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
8818 mn10300_split_cbranch.
8819 (*am33_cmpsf): Rename from am33_cmpsf.
8820 (*float_conditional_branch): Rename from float_conditional_branch.
8821 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
8822 (zero_extendqisi2): ... here.
8823 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
8824 (zero_extendhisi2): ... here.
8825 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
8826 (extendqisi2): ... here.
8827 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
8828 (extendhisi2): ... here.
8829 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
8830 (ashlsi3): ... here.
8831 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
8832 (lshrsi3): ... here.
8833 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
8834 (ashrsi3): ... here.
8835 (consecutive add peephole): Remove.
8836 * config/mn10300/predicates.md (label_ref_operand): New.
8837 (int_mode_flags): New.
8838 (CCZN_comparison_operator): New.
8840 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
8841 (throughput_42_latency_43): New reservation.
8842 (mulsidi3, umulsidi3): New expanders.
8843 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
8844 the MDR register to allocation; separately allocate the low and
8845 high parts of the DImode result.
8846 (umulsidi3_internal): Similarly.
8847 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
8848 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
8849 (udivsi3, umodsi3): Remove.
8850 (udivmodsi4, divmodsi4): New expanders.
8851 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
8852 (*divmodsi4): Simiarly.
8853 (ext_internal): New.
8855 * config/mn10300/constraints.md ("z"): New constraint.
8856 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
8857 (FIXED_REGISTERS): Don't fix MDR.
8858 (CALL_USED_REGSITERS): Reformat nicely.
8859 (REG_ALLOC_ORDER): Add MDR.
8860 (enum regclass): Add MDR_REGS.
8861 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
8862 (IRA_COVER_CLASSES): Add MDR_REGS.
8863 (REGNO_REG_CLASS): Handle MDR_REG.
8864 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
8865 (mn10300_register_move_cost): Likewise.
8866 * config/mn10300/mn10300.md (MDR_REG): New.
8867 (*movsi_internal): Handle moves to/from MDR_REGS.
8869 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
8871 (mn10300_secondary_reload): Tidy combination reload classes.
8872 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
8873 addresses for AM33. Allow symbolic offsets for reg+imm.
8874 (mn10300_regno_in_class_p): New.
8875 (mn10300_legitimize_reload_address): New.
8876 * config/mn10300/mn10300.h (enum reg_class): Remove
8877 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
8878 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
8880 (REG_CLASS_NAMES): Update to match.
8881 (REG_CLASS_CONTENTS): Likewise.
8882 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
8883 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
8884 (REGNO_IN_RANGE_P): Remove.
8885 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
8886 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
8887 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
8888 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
8889 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
8890 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
8891 (REGNO_GENERAL_P): New.
8892 (HAVE_POST_MODIFY_DISP): New.
8893 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
8894 (LEGITIMIZE_RELOAD_ADDRESS): New.
8895 * config/mn10300/mn10300-protos.h: Update.
8897 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
8898 DATA_REGS for AM33 stack-pointer destination.
8899 (mn10300_preferred_output_reload_class): Likewise.
8900 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
8901 into a form appropriate for ...
8902 (TARGET_SECONDARY_RELOAD): New.
8903 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
8904 * config/mn10300/mn10300-protos.h: Update.
8905 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
8906 reload_insi; use the "A" constraint for the scratch; handle AM33
8907 moves of sp to non-address registers.
8909 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
8910 (*movqi_internal): ... here.
8911 (*am33_movhi, *mn10300_movhi): Merge into...
8912 (*movhi_internal): ... here.
8913 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
8914 as the source/destination of moves from/to SP.
8915 (movsf): Only allow for AM33-2.
8916 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
8917 any integer constant constraint. Only allow for AM33-2. Tidy
8918 all of the alternative outputs.
8919 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
8920 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
8922 (udivsi3, umodsi3): New patterns for MN103 only.
8924 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
8926 * doc/tm.texi.in: Spell out that a lack of register class unions
8928 * doc/tm.texi: Regenerate.
8930 2011-01-19 Jakub Jelinek <jakub@redhat.com>
8932 PR rtl-optimization/47337
8933 * dce.c (check_argument_store): New function.
8934 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
8936 PR tree-optimization/47290
8937 * tree-eh.c (infinite_empty_loop_p): New function.
8938 (cleanup_empty_eh): Use it.
8940 2011-01-18 Steve Ellcey <sje@cup.hp.com>
8943 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
8944 (a64_expand_widen_sum): Ditto.
8945 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
8946 (vec_extract_evenodd_help): Ditto.
8947 (vec_extract_evenv4hi): Ditto.
8948 (vec_extract_oddv4hi): Ditto.
8949 (vec_extract_evenv2si): Ditto.
8950 (vec_extract_oddv2si): Ditto.
8951 (vec_extract_evenv2sf): Ditto.
8952 (vec_extract_oddv2sf): Ditto.
8953 (vec_pack_trunc_v4hi: Ditto.
8954 (vec_pack_trunc_v2si): Ditto.
8955 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
8956 (vec_interleave_highv8qi): Ditto.
8958 (vec_extract_oddv8qi): Ditto.
8959 (vec_interleave_lowv4hi): Ditto.
8960 (vec_interleave_highv4hi): Ditto.
8961 (vec_interleave_lowv2si): Ditto.
8962 (vec_interleave_highv2si): Ditto.
8964 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8966 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
8967 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
8968 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
8969 (pa_c_mode_for_suffix): New.
8970 (TARGET_EXPAND_BUILTIN): Define.
8971 (TARGET_C_MODE_FOR_SUFFIX): Define.
8972 (pa_builtins): Define.
8973 (pa_init_builtins): Register __float128 type and init new support
8975 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
8976 * config/pa/quadlib.c (_U_Qfcopysign): New.
8978 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
8981 * explow.c (allocate_dynamic_stack_space): Do not assume more than
8982 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
8985 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8987 PR tree-optimization/47179
8988 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
8989 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
8991 2011-01-18 Richard Guenther <rguenther@suse.de>
8993 PR rtl-optimization/47216
8994 * emit-rtl.c: Include tree-flow.h.
8995 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
8996 of replicating it with different semantics.
8997 * Makefile.in (emit-rtl.o): Adjust.
8999 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9001 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
9002 (cortex_a9_dp): Handle neon types correctly.
9004 2011-01-18 Jakub Jelinek <jakub@redhat.com>
9006 PR rtl-optimization/47299
9007 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
9008 subtarget. Use normal multiplication if both operands are constants.
9009 * expmed.c (expand_widening_mult): Don't try to optimize constant
9010 multiplication if op0 has VOIDmode. Convert op1 constant to mode
9013 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9015 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
9016 spacing after 'e.g.', typos, comma, hyphenation.
9018 2011-01-17 Richard Henderson <rth@redhat.com>
9020 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
9021 (rx_restricted_mem_operand): New.
9022 (rx_shift_operand): Use register_operand.
9023 (rx_source_operand, rx_compare_operand): Likewise.
9024 * config/rx/rx.md (addsi3_flags): New expander.
9025 (adddi3): Rewrite as expander.
9026 (adc_internal, *adc_flags, adddi3_internal): New patterns.
9027 (subsi3_flags): New expander.
9028 (subdi3): Rewrite as expander.
9029 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
9031 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
9032 (rx_init_builtins): Remove sat builtin.
9033 (rx_expand_builtin): Likewise.
9034 * config/rx/rx.md (ssaddsi3): New.
9035 (*sat): Rename from sat. Represent the CC_REG input.
9037 * config/rx/predicates.md (rshift_operator): New.
9038 * config/rx/rx.c (rx_expand_insv): Remove.
9039 * config/rx/rx-protos.h: Update.
9040 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
9041 operand to the canonical position.
9042 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
9043 (*bitclr, *bitclr_in_memory): Similarly.
9044 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
9045 (insv): Retain the zero_extract in the expansion.
9047 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
9048 (bswaphi2, bitinvert, revw): Likewise.
9050 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
9051 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
9052 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
9053 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
9054 (bitset, bitset_in_memory): Likewise.
9055 (bitinvert, bitinvert_in_memory): Likewise.
9056 (bitclr, bitclr_in_memory): Likewise.
9057 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
9058 (rx_strend, rx_cmpstrn): Likewise.
9059 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
9060 (bitop peep2 patterns): Remove.
9062 * config/rx/rx.c (rx_match_ccmode): New.
9063 * config/rx/rx-protos.h: Update.
9064 * config/rx/rx.md (abssi2): Clobber, don't set flags.
9065 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
9066 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
9067 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
9068 (fix_truncsfsi2, floatsisf2): Likewise.
9069 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
9070 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
9071 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
9072 (*subsi3_flags, *xorsi3_flags): New.
9074 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
9076 * config/rx/rx.c (rx_print_operand): Remove workaround for
9077 unsplit comparison operations.
9079 * config/rx/rx.md (movsicc): Split after reload.
9080 (*movsicc): Merge *movsieq and *movsine via match_operator.
9081 (*stcc): New pattern.
9083 * config/rx/rx.c (rx_float_compare_mode): Remove.
9084 * config/rx/rx.h (rx_float_compare_mode): Remove.
9085 * config/rx/rx.md (cstoresi4): Split after reload.
9086 (*sccc): New pattern.
9088 * config/rx/predicates.md (label_ref_operand): New.
9089 (rx_z_comparison_operator): New.
9090 (rx_zs_comparison_operator): New.
9091 (rx_fp_comparison_operator): New.
9092 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
9093 Validate that the flags are set properly for the comparison.
9094 (rx_gen_cond_branch_template): Remove.
9095 (rx_cc_modes_compatible): Remove.
9096 (mode_from_flags): New.
9097 (flags_from_code): Rename from flags_needed_for_conditional.
9098 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
9099 (rx_select_cc_mode): Likewise.
9100 (rx_split_fp_compare): New.
9101 (rx_split_cbranch): New.
9102 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
9103 (*cbranchsi4): Use match_operator and rx_split_cbranch.
9104 (*cbranchsf4): Similarly.
9105 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
9106 match_operator and rx_split_cbranch.
9107 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
9108 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
9109 (*cmpsi): Rename from cmpsi.
9110 (*tstsi): Rename from tstsi.
9111 (*cmpsf): Rename from cmpsf; use CC_Fmode.
9112 (*conditional_branch): Rename from conditional_branch.
9113 (*reveresed_conditional_branch): Remove.
9114 (b<code>): Remove expander.
9115 * config/rx/rx-protos.h: Update.
9117 * config/rx/rx.c (rx_compare_redundant): Remove.
9118 * config/rx/rx.md (cmpsi): Don't use it.
9119 * config/rx/rx-protos.h: Update.
9121 * config/rx/rx-modes.def (CC_F): New mode.
9122 * config/rx/rx.c (rx_select_cc_mode): New.
9123 * config/rx/rx.h (SELECT_CC_MODE): Use it.
9124 * config/rx/rx-protos.h: Update.
9126 2011-01-17 Richard Henderson <rth@redhat.com>
9128 * except.c (dump_eh_tree): Fix stray ; after for statement.
9130 2011-01-17 Richard Guenther <rguenther@suse.de>
9132 PR tree-optimization/47313
9133 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
9134 handling before copying the body. Properly deal with
9135 by-reference result in SSA form.
9137 2011-01-17 Ian Lance Taylor <iant@google.com>
9140 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
9141 (struct_value_alias_set): Don't define.
9142 (sparc_option_override): Don't set sparc_sr_alias_set and
9143 struct_value_alias_set.
9144 (save_or_restore_regs): Use gen_frame_mem rather than calling
9146 (sparc_struct_value_rtx): Likewise.
9148 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
9151 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
9152 (_mm_maskstore_pd): Likewise.
9153 (_mm_maskload_ps): Likewise.
9154 (_mm_maskstore_ps): Likewise.
9155 (_mm256_maskload_pd): Change mask to __m256i.
9156 (_mm256_maskstore_pd): Likewise.
9157 (_mm256_maskload_ps): Likewise.
9158 (_mm256_maskstore_ps): Likewise.
9160 * config/i386/i386-builtin-types.def: Updated.
9161 (ix86_expand_special_args_builtin): Likewise.
9163 * config/i386/i386.c (bdesc_special_args): Update
9164 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
9165 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
9166 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
9167 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
9169 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
9170 Use <avxpermvecmode> on mask register.
9171 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
9173 2011-01-17 Olivier Hainque <hainque@adacore.com>
9174 Michael Haubenwallner <michael.haubenwallner@salomon.at>
9175 Eric Botcazou <ebotcazou@adacore.com>
9178 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
9179 if <= USHRT_MAX in 32-bit mode.
9181 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9183 * doc/install.texi (Configuration, Specific): Wrap long
9184 lines in examples. Allow line wrapping in long options
9185 and URLs where beneficial for PDF output.
9187 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
9189 * config/mips/mips.c (mips_classify_symbol): Don't return
9190 SYMBOL_PC_RELATIVE for nonlocal labels.
9192 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
9194 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
9196 2011-01-15 Jan Hubicka <jh@suse.cz>
9198 PR tree-optimization/47276
9199 * ipa.c (function_and_variable_visibility): Do not try to mark alias
9200 declarations as needed.
9202 2011-01-15 Martin Jambor <mjambor@suse.cz>
9204 * common.opt (fdevirtualize): New flag.
9205 * doc/invoke.texi (Option Summary): Document it.
9206 * opts.c (default_options_table): Add devirtualize flag.
9207 * ipa-prop.c (detect_type_change): Return immediately if
9208 devirtualize flag is not set.
9209 (detect_type_change_ssa): Likewise.
9210 (compute_known_type_jump_func): Likewise.
9211 (ipa_analyze_virtual_call_uses): Likewise.
9213 2011-01-14 Martin Jambor <mjambor@suse.cz>
9215 PR tree-optimization/45934
9216 PR tree-optimization/46302
9217 * ipa-prop.c (type_change_info): New type.
9218 (stmt_may_be_vtbl_ptr_store): New function.
9219 (check_stmt_for_type_change): Likewise.
9220 (detect_type_change): Likewise.
9221 (detect_type_change_ssa): Likewise.
9222 (compute_complex_assign_jump_func): Check for dynamic type change.
9223 (compute_complex_ancestor_jump_func): Likewise.
9224 (compute_known_type_jump_func): Likewise.
9225 (compute_scalar_jump_functions): Likewise.
9226 (ipa_analyze_virtual_call_uses): Likewise.
9227 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
9229 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9231 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
9232 * config/i386/i386.opt (msse5): New Alias.
9234 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9236 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
9237 * config/sparc/linux64.h (CC1_SPEC): Likewise.
9238 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9239 * config/sparc/sparc.h (CC1_SPEC): Likewise.
9241 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9243 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
9245 * config/sparc/linux64.h (CC1_SPEC): Likewise.
9246 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9247 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
9248 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
9250 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
9252 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9254 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
9256 2011-01-14 Mike Stump <mikestump@comcast.net>
9258 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
9259 * config/fr30/fr30.md: Likweise
9260 (movsi_push): Likewise.
9261 (movsi_pop): Likewise.
9262 (enter_func): Likewise.
9263 * config/moxie/moxie.md (movsi_push): Likewise.
9264 (movsi_pop): Likewise.
9266 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9268 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
9269 %{no_archive} %{exact_version}.
9270 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
9271 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
9272 %{no_archive} %{exact_version}.
9273 * config/mips/openbsd.h (LINK_SPEC): Likewise.
9274 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
9275 * config/mips/vxworks.h: Likewise.
9277 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9279 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
9281 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9283 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
9284 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
9286 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9288 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
9291 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9293 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
9295 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
9296 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
9298 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
9299 Don't handle -shlib.
9301 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9303 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
9304 (CC1_SPEC): Don't handle -profile.
9306 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9308 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
9309 * config/mips/mips.h (CC1_SPEC): Likewise.
9311 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9313 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
9314 * config/mips/mips.h (CC1_SPEC): Likewise.
9316 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9318 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
9319 * config/m32r/linux.h (LINK_SPEC): Likewise.
9320 * config/mips/linux.h (LINK_SPEC): Likewise.
9321 * config/mips/linux64.h (LINK_SPEC): Likewise.
9322 * config/sparc/linux.h (LINK_SPEC): Likewise.
9323 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
9324 LINK_SPEC): Likewise.
9325 * config/xtensa/linux.h (LINK_SPEC): Likewise.
9327 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9329 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
9331 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
9333 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9335 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
9336 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
9338 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9340 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
9342 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9344 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
9345 supports -Bstatic/-Bdynamic.
9346 * configure: Regenerate.
9348 2011-01-14 Jan Hubicka <jh@suse.cz>
9349 Jack Howarth <howarth@bromo.med.uc.edu>
9352 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
9353 when checking debug_info_level. Test write_symbols instead of
9354 debug_hooks->var_location when setting flag_var_tracking_uninit.
9356 2011-01-14 Richard Guenther <rguenther@suse.de>
9358 PR tree-optimization/47179
9359 * target.def (ref_may_alias_errno): New target hook.
9360 * targhooks.h (default_ref_may_alias_errno): Declare.
9361 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
9362 (default_ref_may_alias_errno): New function.
9363 * target.h (struct ao_ref_s): Declare.
9364 * tree-ssa-alias.c: Include target.h.
9365 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
9366 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
9367 (targhooks.o): Likewise.
9368 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
9369 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
9371 2011-01-14 Richard Guenther <rguenther@suse.de>
9373 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
9375 2011-01-14 Richard Guenther <rguenther@suse.de>
9377 PR tree-optimization/47280
9378 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
9380 (tree_ssa_forward_propagate_single_use_vars): Deal with
9381 CFG changes from associate_plusminus.
9383 2011-01-14 Richard Guenther <rguenther@suse.de>
9387 2011-01-11 Richard Guenther <rguenther@suse.de>
9389 PR tree-optimization/46076
9390 * tree-ssa.c (useless_type_conversion_p): Conversions from
9391 unprototyped to empty argument list function types are useless.
9393 2011-01-14 Richard Guenther <rguenther@suse.de>
9395 PR tree-optimization/47286
9396 * tree-ssa-structalias.c (new_var_info): Register variables are global.
9398 2011-01-14 Martin Jambor <mjambor@suse.cz>
9401 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
9403 2011-01-13 Anatoly Sokolov <aesok@post.ru>
9405 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
9406 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9407 * config/xtensa/xtensa.c (xtensa_libcall_value,
9408 xtensa_function_value_regno_p): New functions.
9409 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9411 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
9414 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
9416 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
9417 New function prototype.
9418 * config/i386/winnt.c (i386_pe_assemble_visibility):
9419 Warn only if attribute was specified by user.
9421 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
9424 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
9426 (floatunsdidf2_fcfidu): Ditto.
9428 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9430 * config/s390/s390.c (print_operand_address): Replace 'error' with
9431 'output_operand_lossage'.
9432 (print_operand): Likewise.
9434 2011-01-13 Jeff Law <law@redhat.com>
9436 PR rtl-optimization/39077
9437 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
9438 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
9439 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
9440 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
9441 * gcse.c (prune_insertions_deletions): New function.
9442 (compute_pre_data): Use it.
9444 2011-01-13 Dodji Seketeli <dodji@redhat.com>
9447 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
9449 (prune_unused_types_mark): Use it.
9451 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
9453 PR rtl-optimization/45352
9454 * sel-sched.c: Update copyright years.
9455 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
9456 in the advancing loop when we have issued issue_rate insns.
9458 2011-01-12 Richard Henderson <rth@redhat.com>
9460 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
9461 (TARGET_MD_ASM_CLOBBERS): New.
9463 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
9464 (TARGET_DELEGITIMIZE_ADDRESS): New.
9466 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
9467 (clzsi2, *bsch): New patterns.
9469 * config/mn10300/mn10300.md (INT): New mode iterator.
9470 (*mov<INT>_clr): New pattern, and peep2 to generate it.
9472 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
9473 flag_split_wide_types.
9475 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
9476 (mn10300_trampoline_init): Rewrite without a template, an immediate
9477 load and a direct branch.
9478 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
9480 2011-01-12 Anatoly Sokolov <aesok@post.ru>
9482 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9483 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
9484 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
9485 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9487 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
9490 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
9493 2011-01-12 Jan Hubicka <jh@suse.cz>
9496 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
9497 (PLUGIN_COND_CLOSE): New macro.
9498 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
9500 2011-01-12 Richard Guenther <rguenther@suse.de>
9503 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
9504 register variables in a MEM_REF.
9506 2011-01-12 Joseph Myers <joseph@codesourcery.com>
9508 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
9509 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
9510 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
9511 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
9512 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
9513 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
9514 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
9515 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
9516 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
9517 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
9518 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
9519 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
9520 * config/gnu-user.h: New. Copied from linux.h.
9521 (LINUX_TARGET_STARTFILE_SPEC): Rename to
9522 GNU_USER_TARGET_STARTFILE_SPEC.
9523 (LINUX_TARGET_ENDFILE_SPEC): Rename to
9524 GNU_USER_TARGET_ENDFILE_SPEC.
9525 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
9526 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
9527 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
9528 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
9529 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
9530 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
9531 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
9532 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
9533 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
9534 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
9535 * config/arm/linux-eabi.h (CC1_SPEC): Use
9536 GNU_USER_TARGET_CC1_SPEC.
9537 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
9538 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
9539 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
9540 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
9541 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
9542 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
9543 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
9544 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
9546 2011-01-12 Richard Guenther <rguenther@suse.de>
9549 * doc/invoke.texi (ffast-math): Document it is turned on
9552 2011-01-12 Jan Hubicka <jh@suse.cz>
9554 PR tree-optimization/47233
9555 * opts.c (common_handle_option): Disable ipa-reference with profile
9558 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
9560 * c-parser.c (c_parser_objc_at_property_declaration): Improved
9563 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
9565 * c-parser.c (c_lex_one_token): Updated and reindented some
9566 comments. No changes in code.
9568 2011-01-11 Ian Lance Taylor <iant@google.com>
9570 * godump.c (go_output_var): Don't output the variable if there is
9571 already a type with the same name.
9573 2011-01-11 Ian Lance Taylor <iant@google.com>
9575 * godump.c (go_format_type): Don't generate float80.
9577 2011-01-11 Richard Henderson <rth@redhat.com>
9579 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
9580 declaration. Rewrite for both speed and size.
9581 (mn10300_address_cost_1): Remove.
9582 (mn10300_register_move_cost): New.
9583 (mn10300_memory_move_cost): New.
9584 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
9585 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
9586 extensions, shifts, BSWAP, CLZ.
9587 (mn10300_wide_const_load_uses_clr): Remove.
9588 (TARGET_REGISTER_MOVE_COST): New.
9589 (TARGET_MEMORY_MOVE_COST): New.
9590 * config/mn10300/mn10300-protos.h: Update.
9591 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
9593 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
9594 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
9595 * config/mn10300/mn10300-protos.h: Update.
9596 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
9597 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
9598 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
9599 (*test_int_bitfield, *test_byte_bitfield): Remove.
9600 (*bit_test, *subreg_bit_test): Remove.
9601 * config/mn10300/predicates.md (const_8bit_operand): Remove.
9603 * config/mn10300/constraints.md ("c"): Rename from "A".
9604 ("A", "D"): New constraint letters.
9605 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
9606 (fmssf4, fnmasf4, fnmssf4): Likewise.
9608 * config/mn10300/mn10300.md (isa): New attribute.
9609 (enabled): New attribute.
9611 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
9612 (abssf2, negsf2): Define only for hardware fp.
9613 (sqrtsf2): Reformat.
9614 (addsf3, subsf3, mulsf3): Merge expander and insn.
9616 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
9617 (DEBUGGER_AUTO_OFFSET): Remove.
9618 (DEBUGGER_ARG_OFFSET): Remove.
9620 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
9621 Emit register stores with the same offsets as the hardware.
9622 (mn10300_store_multiple_operation): Don't check that the register
9623 save offsets are monotonic.
9624 * config/mn10300/mn10300-protos.h: Update.
9626 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
9628 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
9629 in terms of the value on the stack, not the MDR register.
9631 2011-01-11 Jan Hubicka <jh@suse.cz>
9635 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
9636 (symbol_alias_set_destroy, symbol_alias_set_contains,
9637 propagate_aliases_backward): Declare.
9638 * lto-streamer-out.c (struct sets): New sturcture.
9639 (trivally_defined_alias): New function.
9640 (output_alias_pair_p): Rewrite.
9641 (output_unreferenced_globals): Fix output of alias pairs.
9642 (produce_symtab): Likewise.
9643 * ipa.c (function_and_variable_visibility): Set weak alias destination
9645 * varasm.c (symbol_alias_set_t): Remove.
9646 (symbol_alias_set_destroy): Export.
9647 (propagate_aliases_forward, propagate_aliases_backward): New functions
9649 (compute_visible_aliases): ... this one; remove.
9650 (trivially_visible_alias): New
9651 (trivially_defined_alias): New.
9652 (remove_unreachable_alias_pairs): Rewrite.
9653 (finish_aliases_1): Reorganize code checking if alias is defined.
9654 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
9657 2011-01-11 Richard Guenther <rguenther@suse.de>
9659 PR tree-optimization/46076
9660 * tree-ssa.c (useless_type_conversion_p): Conversions from
9661 unprototyped to empty argument list function types are useless.
9663 2011-01-11 Richard Guenther <rguenther@suse.de>
9666 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
9667 volatile MEMs as MEM_READONLY_P.
9669 2011-01-11 Richard Guenther <rguenther@suse.de>
9671 PR tree-optimization/47239
9672 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
9674 2011-01-11 Jeff Law <law@redhat.com>
9676 PR tree-optimization/47086
9677 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
9678 IVs from statements that might throw.
9680 2011-01-10 Jan Hubicka <jh@suse.cz>
9683 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
9685 2011-01-10 Jan Hubicka <jh@suse.cz>
9688 * profile.c (read_profile_edge_counts): Ignore profile inconistency
9689 when correcting profile.
9691 2011-01-10 Jan Hubicka <jh@suse.cz>
9694 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
9696 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
9697 Restore DECL_FINI_PRIORITY.
9699 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9701 * doc/gimple.texi: Fix quoting of multi-word return values in
9702 @deftypefn statements. Ensure presence of return value. Wrap
9703 overlong @deftypefn lines.
9704 (is_gimple_operand, is_gimple_min_invariant_address): Remove
9705 descriptions of removed functions.
9706 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
9707 of multi-word return value in @deftypefn statement.
9709 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9711 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
9712 (Conditional Expressions, Logical Operators)
9713 (Statement and operand traversals): Do not indent smallexample
9714 code. Fix duplicate function argument in example.
9716 2011-01-10 Jeff Law <law@redhat.com>
9718 PR tree-optimization/47141
9719 * ipa-split.c (split_function): Handle case where we are
9720 returning a value and the return block has a virtual operand phi.
9722 2011-01-10 Jan Hubicka <jh@suse.cz>
9724 PR tree-optimization/47234
9725 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
9726 (pass_feedback_split_functions): Declare.
9727 * passes.c (init_optimization_passes): Add ipa-split as subpass of
9729 * ipa-split.c (gate_split_functions): Update comments; disable
9730 split-functions for profile_arc_flag and branch_probabilities.
9731 (gate_feedback_split_functions): New function.
9732 (execute_feedback_split_functions): New function.
9733 (pass_feedback_split_functions): New global var.
9735 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
9738 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
9739 calling gimple_call_set_cannot_inline.
9741 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
9743 * config/darwin-sections.def: Remove unused section.
9745 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
9748 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
9750 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
9753 * c-parser.c (c_parser_declaration_or_fndef): Improved
9756 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
9758 * config/i386/winnt.c (i386_pe_start_function): Make sure
9759 to switch back to function's section.
9761 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
9765 * plugin.c: Move include of dlfcn.h from here...
9766 * system.h: ... to here.
9768 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9770 * doc/cpp.texi (C++ Named Operators): Fix markup for header
9772 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
9773 two extra empty pages in PDF output.
9775 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
9778 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
9779 for error recovery purposes behave as if it was not specified so
9780 that the default type is usd.
9782 2011-01-07 Jan Hubicka <jh@suse.cz>
9784 PR tree-optmization/46469
9785 * ipa.c (function_and_variable_visibility): Clear needed flags on
9786 nodes with external decls; handle weakrefs merging correctly.
9788 2011-01-07 Joseph Myers <joseph@codesourcery.com>
9790 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
9793 2011-01-07 Jan Hubicka <jh@suse.cz>
9795 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
9796 and no longer claim that gold is required for linker plugin.
9797 * configure: Regenerate.
9798 * gcc.c (PLUGIN_COND): New macro.
9799 (LINK_COMMAND_SPEC): Use it.
9800 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
9801 * config.in (HAVE_LTO_PLUGIN): New.
9802 * configure.ac (--with-lto-plugin): New parameter; autodetect
9805 2011-01-07 Jan Hubicka <jh@suse.cz>
9807 PR tree-optimization/46367
9808 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
9809 when we can update original.
9810 (cgraph_mark_inline_edge): Sanity check.
9811 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
9813 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9815 * config/spu/spu.h (ASM_COMMENT_START): Define.
9817 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
9821 (SWITCH_KEEP_FOR_GCC): Likewise.
9822 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
9823 (do_spec_1): Handle "%>".
9825 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
9827 2011-01-07 Jakub Jelinek <jakub@redhat.com>
9830 * config/i386/i386.c (ix86_delegitimize_address): If
9831 simplify_gen_subreg fails, return orig_x.
9834 * value-prof.c (gimple_stringop_fixed_value): Handle
9835 lhs of the call properly.
9837 2011-01-07 Jan Hubicka <jh@suse.cz>
9840 * lto-opt.c (lto_reissue_options): Set flag_shlib.
9842 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
9844 * target.def (function_switched_text_sections): New hook.
9845 * doc/tm.texi: Regenerated.
9846 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
9847 * final.c (default_function_switched_text_sections): New.
9848 (final_scan_insn): Call function_switched_text_sections when a
9849 mid-function section change occurs.
9850 * output.h (default_function_switched_text_sections): Declare.
9851 * config/darwin-protos.h (darwin_function_switched_text_sections):
9853 * config/darwin.c (darwin_function_switched_text_sections): New.
9854 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
9856 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
9858 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
9859 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
9860 the secondary code fragment when outputting for DWARF == 2.
9862 2011-01-07 Anatoly Sokolov <aesok@post.ru>
9864 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9865 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
9867 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
9868 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9870 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
9873 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
9874 when it is not empty.
9876 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
9879 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
9880 (case ${target}): Add btver1.
9881 * config/i386/driver-i386.c (host_detect_local_cpu): Let
9882 -march=native recognize btver1 processors.
9883 * config/i386/i386-c.c (ix86_target_macros_internal): Add
9884 btver1 def_and_undef
9885 * config/i386/i386.c (struct processor_costs btver1_cost): New
9887 (m_BTVER1): New definition.
9888 (m_AMD_MULTIPLE): Includes m_BTVER1.
9889 (initial_ix86_tune_features): Add btver1 tune.
9890 (processor_target_table): Add btver1 entry.
9891 (static const char *const cpu_names): Add btver1 entry.
9892 (software_prefetching_beneficial_p): Add btver1.
9893 (ix86_option_override_internal): Add btver1 instruction sets.
9894 (ix86_issue_rate): Add btver1.
9895 (ix86_adjust_cost): Add btver1.
9896 * config/i386/i386.h (TARGET_BTVER1): New definition.
9897 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
9898 (enum processor_type): Add PROCESSOR_BTVER1.
9899 * config/i386/i386.md (define_attr "cpu"): Add btver1.
9901 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9904 * config/i386/i386.c (legitimize_tls_address)
9905 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
9906 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
9907 (tls_initial_exec_64_sun): New pattern.
9909 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
9911 * doc/invoke.texi (Overall Options): Improve wording and markup
9912 of the description of -wrapper.
9914 2011-01-06 Joseph Myers <joseph@codesourcery.com>
9916 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
9917 rdynamic, threads): New Driver options.
9919 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9922 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
9923 if coming from .tdata.
9924 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
9926 2011-01-06 Jan Hubicka <jh@suse.cz>
9929 * collect2.c (main): Do not enable LTOmode when plugin is active.
9931 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9934 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
9935 --version output if supported.
9936 * configure: Regenerate.
9938 2011-01-06 Joseph Myers <joseph@codesourcery.com>
9940 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
9943 2011-01-06 Jakub Jelinek <jakub@redhat.com>
9946 * c-convert.c (convert): When converting a complex expression
9947 other than COMPLEX_EXPR to a different complex type, ensure
9948 c_save_expr is called instead of save_expr, unless in_late_binary_op.
9949 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
9950 when converting COMPLEX_TYPE.
9952 2011-01-06 Ira Rosen <irar@il.ibm.com>
9954 PR tree-optimization/47139
9955 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
9956 only the last reduction value is used outside the loop. Update
9959 2011-01-05 Joseph Myers <joseph@codesourcery.com>
9961 * config/rtems.opt: New.
9962 * config.gcc (*-*-rtems*): Use rtems.opt.
9964 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
9966 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
9967 processors do not support 3DNow instructions.
9969 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9971 * config/spu/spu.c (spu_option_override): Set parameter
9972 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
9974 2011-01-05 Jan Hubicka <jh@suse.cz>
9976 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
9977 at the command line.
9979 2011-01-05 Martin Jambor <mjambor@suse.cz>
9982 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
9983 deltas on streamed outgoing edges.
9984 (output_node_opt_summary): Output info for outgoing edges only when
9985 the node is in new parameter set.
9986 (output_cgraph_opt_summary): New parameter set, passed to the two
9987 aforementioned functions. Update its forward declaration and its
9990 2011-01-05 Tom Tromey <tromey@redhat.com>
9992 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
9993 operator to c_finish_omp_atomic.
9994 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
9995 (build_unary_op): Update.
9996 (build_modify_expr): Update.
9997 (build_asm_expr): Update.
9999 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10001 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
10002 newly inserted insns.
10003 (pad_bb): Likewise.
10004 (spu_emit_branch_hint): Likewise.
10005 (insert_hbrp_for_ilb_runout): Likewise.
10006 (spu_machine_dependent_reorg): Call df_finish_pass after
10007 schedule_insns returns.
10009 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10011 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
10013 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
10015 PR tree-optimization/47005
10016 * tree-sra.c (struct access): Add 'non_addressable' bit.
10017 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
10018 (decide_one_param_reduction): Return 0 if the parameter is passed by
10019 reference and one of the accesses in the group is non_addressable.
10021 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
10023 PR tree-optimization/47056
10024 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
10025 (mark_load): Likewise. Handle FUNCTION_DECL specially.
10026 (mark_store): Likewise. Pass STMT to ipa_record_reference.
10028 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
10030 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
10031 initializer. Skip view conversions from aggregate types.
10033 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
10036 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
10038 2011-01-04 Philipp Thomas <pth@suse.de>
10040 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
10043 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10045 * function.c (thread_prologue_and_epilogue_insns): Do not crash
10046 on empty epilogue sequences.
10048 2011-01-04 Joseph Myers <joseph@codesourcery.com>
10050 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
10051 non-static): New Driver options.
10053 2011-01-04 Jie Zhang <jie@codesourcery.com>
10056 * gcc.c (default_compilers[]): Set combinable field to 0
10057 for all assembly languages.
10059 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
10061 * config/mips/loongson3a.md: New file.
10062 * config/mips/mips.md: Include loongson3a.md.
10063 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
10066 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
10068 PR middle-end/47017
10069 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
10070 instead of convert_memory_address_addr_space on the base expression.
10072 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10074 * config/spu/spu.c (spu_option_override): Update error text
10075 for bad -march= / -mtune= values.
10077 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10079 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
10080 if branch-hint optimization will be performed.
10082 2011-01-03 Jakub Jelinek <jakub@redhat.com>
10084 PR tree-optimization/47148
10085 * ipa-split.c (split_function): Convert arguments to
10086 DECL_ARG_TYPE if possible.
10088 PR tree-optimization/47155
10089 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
10090 when computing uns.
10092 PR rtl-optimization/47157
10093 * combine.c (try_combine): If undobuf.other_insn becomes
10094 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
10095 and set *new_direct_jump_p too.
10097 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
10099 PR tree-optimization/47021
10100 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
10102 2011-01-03 Jakub Jelinek <jakub@redhat.com>
10104 * gcc.c (process_command): Update copyright notice dates.
10105 * gcov.c (print_version): Likewise.
10106 * gcov-dump.c (print_version): Likewise.
10107 * mips-tfile.c (main): Likewise.
10108 * mips-tdump.c (main): Likewise.
10110 2011-01-03 Martin Jambor <mjambor@suse.cz>
10112 PR tree-optimization/46801
10113 * tree-sra.c (type_internals_preclude_sra_p): Check whether
10114 aggregate fields start at byte boundary instead of the bit-field flag.
10116 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
10119 * gcc.c (main): Revert revision 168407.
10121 2011-01-03 Martin Jambor <mjambor@suse.cz>
10123 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
10125 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10127 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
10128 vector optab to expand vector/scalar shift, update gimple to vector.
10130 2011-01-03 Martin Jambor <mjambor@suse.cz>
10132 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
10135 2011-01-03 Martin Jambor <mjambor@suse.cz>
10137 PR tree-optimization/46984
10138 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
10140 (cgraph_create_indirect_edge): Fixed line length.
10141 (cgraph_indirect_call_info): Declare.
10142 (cgraph_make_edge_direct) Update declaration.
10143 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
10144 (cgraph_create_indirect_edge): Use it.
10145 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
10147 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
10148 the new thunk_delta representation.
10149 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
10151 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
10152 (ipa_read_indirect_edge_info): Likewise.
10153 * lto-cgraph.c (output_edge_opt_summary): New function.
10154 (output_node_opt_summary): Call it on all outgoing edges.
10155 (input_edge_opt_summary): New function.
10156 (input_node_opt_summary): Call it on all outgoing edges.
10158 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
10161 * gcc.c (main): Don't check have_o when settting combine_inputs.
10163 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
10165 * regrename.c: Add general comment describing the pass.
10166 (struct du_head): Remove 'length' field.
10167 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
10168 (regrename_optimize): Do not sort chains. Rework comments, add others.
10169 Force renaming to the preferred class (if any) in the first pass and do
10170 not consider registers that belong to it in the second pass.
10171 (create_new_chain): Do not set 'length' field.
10172 (scan_rtx_reg): Likewise.
10174 2011-01-02 Jakub Jelinek <jakub@redhat.com>
10176 PR tree-optimization/47140
10177 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
10178 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
10179 to bit_value_binop.
10181 PR rtl-optimization/47028
10182 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
10183 parm_birth_insn instead of at the beginning of first bb.
10185 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
10187 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
10188 Remove the word "see" before "@pxref".
10189 * doc/rtl.texi: Remove the word "see" before "@pxref".
10191 2011-01-01 Jan Hubicka <jh@suse.cz>
10193 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
10196 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
10199 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
10202 Copyright (C) 2011 Free Software Foundation, Inc.
10204 Copying and distribution of this file, with or without modification,
10205 are permitted in any medium without royalty provided the copyright
10206 notice and this notice are preserved.