1 2011-04-17 Michael Matz <matz@suse.de>
3 PR tree-optimization/48622
5 * ipa-inline-analysis.c (inline_read_summary): Read size/time
6 in same order as they're written.
8 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
10 * config/i386/sse.md (sseunpackmode): New mode attribute.
12 (vec_pack_trunc_<mode>): Macroize expander from
13 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
14 (vec_unpacks_lo_<mode>): Macroize expander from
15 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
16 (vec_unpacks_hi_<mode>): Macroize expander from
17 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
18 (vec_unpacku_lo_<mode>): Macroize expander from
19 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
20 (vec_unpacku_hi_<mode>): Macroize expander from
21 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
22 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
23 ix86_expand_sse4_unpack.
24 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
26 2011-04-16 Jan Hubicka <jh@suse.cz>
28 * cgraphbuild.c: Include ipa-inline.h.
29 (reset_inline_failed): Use initialize_inline_failed.
30 * cgraph.c: Include ipa-inline.h.
31 (cgraph_create_node_1): Do not initialize estimated_growth.
32 (initialize_inline_failed): More to ipa-inline-analysis.c
33 (dump_cgraph_node): Do not dump inline flags.
34 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
35 and disregard_inline_limits flags.
36 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
37 time, size, estimated_growth.
38 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
40 * cgraphunit.c (cgraph_decide_is_function_needed): Use
41 DECL_DISREGARD_INLINE_LIMITS.
42 (cgraph_analyze_function): Do not initialize
43 node->local.disregard_inline_limits.
44 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
45 inlinable, versionable and disregard_inline_limits.
46 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
47 cgraph_check_inline_limits, cgraph_default_inline_p,
48 cgraph_edge_badness, update_caller_keys, update_callee_keys,
49 add_new_edges_to_heap): Update.
50 (cgraph_decide_inlining_of_small_function): Update; set
51 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
52 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
53 cgraph_decide_inlining_incrementally): Update.
54 * ipa-inline.h (inline_summary): Add inlinable, versionable,
55 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
56 time, size and estimated_growth parameters.
57 (estimate_edge_growth): Update.
58 (initialize_inline_failed): Declare.
59 * ipa-split.c: Include ipa-inline.h
60 (execute_split_functions): Update.
61 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
62 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
63 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
64 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
65 estimated_growth to INT_MIN.
66 (inline_node_duplication_hook): Likewise.
67 (dump_inline_summary): Dump new fields.
68 (compute_inline_parameters): Update.
69 (estimate_edge_time, estimate_time_after_inlining,
70 estimate_size_after_inlining, estimate_growth, inline_read_summary,
71 inline_write_summary):
72 (initialize_inline_failed): Move here from cgraph.c.
73 * tree-sra.c: Include ipa-inline.h.
74 (ipa_sra_preliminary_function_checks): Update.
75 * Makefile.in: (cgraph.o, cgraphbuild.o): Add dependency on
78 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
80 * config/i386/sse.md (V16): New mode iterator.
82 (AVXMODEQI, AVXMODEDI): Remove.
83 (sse2, sse3): New mode attribute.
84 (mov<mode>): Use V16 mode iterator.
85 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
86 (push<mode>1): Use V16 mode iterator.
87 (movmisalign<mode>): Ditto.
88 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
89 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
90 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
91 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
92 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
93 avx_movdqu<avxmodesuffix>.
94 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
95 *avx_movdqu<avxmodesuffix>.
96 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
97 avx_lddqu<avxmodesuffix>.
98 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
99 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
100 avx_movnt<AVXMODEDI:mode>.
101 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
102 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
104 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
107 * haifa-sched.c (prune_ready_list, schedule_block): Use
108 sched_pressure_p rather than flag_sched_pressure.
110 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
112 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
113 cgraph_get_node instead of cgraph_get_create_node.
115 2011-04-15 Jakub Jelinek <jakub@redhat.com>
117 * cfgexpand.c (expand_debug_expr): Use
118 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
120 2011-04-15 Michael Matz <matz@suse.de>
122 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
123 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
124 * function.c (gimplify_parameters): Ditto.
125 * gimplify.c (gimplify_vla_decl): Ditto.
127 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
128 (gimple_call_set_alloca_for_var): New inline function.
129 (gimple_call_alloca_for_var_p): Ditto.
130 * gimple.c (gimple_build_call_from_tree): Remember
131 CALL_ALLOCA_FOR_VAR_P state.
132 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
134 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
135 calls if they were for VLA objects.
137 2011-04-15 Martin Jambor <mjambor@suse.cz>
139 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
142 2011-04-15 Martin Jambor <mjambor@suse.cz>
145 * tree-emutls.c (lower_emutls_function_body): Call
146 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
149 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
151 * c-decl.c (detect_field_duplicates): Call
152 objc_detect_field_duplicates instead of objc_get_interface_ivars.
154 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
156 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
157 * gimple.c (gimple_asm_clobbers_memory_p): Define.
158 * ipa-pure-const.c (check_stmt): Call it.
159 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
161 2011-04-15 Richard Guenther <rguenther@suse.de>
163 PR tree-optimization/48290
164 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
165 Properly decide inhibiting propagation based on the valueized
166 operand. Do loop-closed SSA form preserving here ...
167 (init_copy_prop): ... not here.
169 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
172 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
173 (*ieee_smax<mode>3): Likewise.
175 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
177 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
178 Replace match_operand with match_dup for the third operand in
181 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
183 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
184 to track processing of conditionals. Update all callers.
185 (try_combine, simplify_if_then_else): Update.
187 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
189 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
192 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
194 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
195 instead of match_operand for operand 3.
197 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
199 * recog.h (insn_operand_data): Add an "allows_mem" field.
200 * genoutput.c (output_operand_data): Initialize it.
201 * optabs.c (maybe_legitimize_operand_same_code): New function.
202 (maybe_legitimize_operand): Use it when matching the original
205 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
207 * gimplify.c: Fix issues in comments throughout.
208 (voidify_wrapper_expr): Fix long line.
209 (build_stack_save_restore): Likewise.
210 (gimplify_loop_expr): Likewise.
211 (gimplify_compound_lval): Likewise.
212 (gimplify_init_ctor_eval): Likewise.
213 (gimplify_modify_expr_rhs): Likewise.
214 (omp_notice_threadprivate_variable): Likewise.
216 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
218 * cfgexpand.c (expand_call_stmt): Convert the function type to the
219 original one if this is not a builtin function.
221 2011-04-14 Jakub Jelinek <jakub@redhat.com>
224 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
225 offset it as needed based on top 2 bits in operands[3], change
226 MEM mode to SFmode and mask those 2 bits away from operands[3].
228 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
230 * c-parser.c (c_parser_objc_protocol_definition): Updated for
231 change from objc_declare_protocols() to objc_declare_protocol().
233 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
235 * config/i386/sse.md (sse4_1): New mode attribute.
236 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
237 avx_blend<ssemodesuffix><avxmodesuffix> and
238 sse4_1_blend<ssemodesuffix> using VF mode iterator.
239 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
240 avx_blendv<ssemodesuffix><avxmodesuffix> and
241 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
242 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
243 avx_dp<ssemodesuffix><avxmodesuffix> and
244 sse4_1_dp<ssemodesuffix> using VF mode iterator.
245 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
246 (sse4_1_packusdw): Merge with *avx_packusdw.
247 (sse4_1_pblendvb): Merge with *avx_pblendvb.
248 (sse4_1_pblendw): Merge with *avx_pblendw.
249 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
250 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
251 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
253 (sse4_1_round<ssescalarmodesuffix>): Merge with
254 *avx_round<ssescalarmodesuffix>.
255 (aesenc): Merge with *avx_aesenc.
256 (aesenclast): Merge with *avx_aesenclast.
257 (aesdec): Merge with *avx_aesdec.
258 (aesdeclast): Merge with *avx_aesdeclast.
259 (pclmulqdq): Merge with *pclmulqdq.
260 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
262 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
264 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
267 * cfgexpand.c (get_decl_align_unit): Renamed to ...
268 (align_local_variable): This. Update DECL_ALIGN.
269 (add_stack_var): Updated.
270 (expand_one_stack_var): Likewise.
272 2011-04-14 Richard Guenther <rguenther@suse.de>
274 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
276 (dse_initialize_block_local_data, dse_leave_block,
277 record_voperand_set, get_stmt_uid): Likewise.
278 (dse_possible_dead_store_p): Allow any kind of killing stmt.
279 (dse_optimize_stmt): Remove voperand set handling code.
280 Simplify and improve to handle any kind of killing stmt.
281 (dse_record_phi): Remove.
282 (dse_enter_block): Simplify.
283 (tree_ssa_dse): Likewise.
284 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
286 2011-04-14 Jan Hubicka <jh@suse.cz>
288 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
289 * cgraph.h (struct inline_summary): Move to ipa-inline.h
290 (cgraph_local_info): Remove inline_summary.
291 * ipa-cp.c: Include ipa-inline.h.
292 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
293 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
295 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
296 (input_overwrite_node): Do not set inline summary.
297 (input_node): Do not stream inline summary.
298 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
299 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
300 growth; we do not have inline parameters computed for that anyway.
301 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
302 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
303 (inline_summary_t): New type and VECtor.
304 (debug_inline_summary, dump_inline_summaries): Declare.
305 (inline_summary): Use VOCtor.
306 (estimate_edge_growth): Kill hack computing call stmt size directly.
307 * lto-section-in.c (lto_section_name): Add inline section.
308 * ipa-inline-analysis.c: Include lto-streamer.h
309 (node_removal_hook_holder, node_duplication_hook_holder): New holders
310 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
311 (inline_summary_vec): Define.
312 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
313 dump_inline_summaries): New functions.
314 (estimate_function_body_sizes): Properly compute size/time of outgoing
316 (compute_inline_parameters): Alloc inline_summary; do not compute
317 size/time of incomming calls.
318 (estimate_edge_time): Avoid missing time summary hack.
319 (inline_read_summary): Read inline summary info.
320 (inline_write_summary): Write inline summary info.
321 (inline_free_summary): Free all hooks and inline summary vector.
322 * lto-streamer.h: Add LTO_section_inline_summary section.
323 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
324 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
326 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
328 * tree-vectorizer.h (vect_strided_store_supported): Add a
329 HOST_WIDE_INT argument.
330 (vect_strided_load_supported): Likewise.
331 (vect_permute_store_chain): Return void.
332 (vect_transform_strided_load): Likewise.
333 (vect_permute_load_chain): Delete.
334 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
335 count argument. Check that the count is a power of two.
336 (vect_strided_load_supported): Likewise.
337 (vect_permute_store_chain): Return void. Update after above changes.
338 Assert that the access is supported.
339 (vect_permute_load_chain): Likewise.
340 (vect_transform_strided_load): Return void.
341 * tree-vect-stmts.c (vectorizable_store): Update calls after
342 above interface changes.
343 (vectorizable_load): Likewise.
344 (vect_analyze_stmt): Don't check for strided powers of two here.
346 2011-04-14 Richard Guenther <rguenther@suse.de>
348 PR tree-optimization/48590
349 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
350 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
351 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
353 * tree-ssa-dce.c (propagate_necessity): Handle
354 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
356 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
358 * c-parser.c (c_parser_objc_class_declaration): Updated call to
361 2011-04-14 Richard Guenther <rguenther@suse.de>
363 * tree.h (get_object_alignment_1): Declare.
364 * builtins.c (get_object_alignment_1): Split out worker from ...
365 (get_object_alignment): ... here.
366 * fold-const.c (get_pointer_modulus_and_residue): Use
367 get_object_alignment_1.
369 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
371 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
373 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
374 parameter. Generalise code to handle arrays as well as vectors.
375 (vect_setup_realignment): Update accordingly.
376 * tree-vect-stmts.c (vectorizable_store): Likewise.
377 (vectorizable_load): Likewise.
379 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
381 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
382 within the per-copy loop.
384 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
386 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
389 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
391 * doc/options.texi (Negative): Explicitly mention that the
392 Negative chain must be circular.
394 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
396 * function.h (block_chainon): Declare.
397 * function.c (block_chainon): Define.
399 2011-04-14 Anatoly Sokolov <aesok@post.ru>
400 Eric Weddington <eric.weddington@atmel.com>
401 Georg-Johann Lay <avr@gjlay.de>
403 * config/avr/avr.c: ("insn-codes.h", "optabs.h", "langhooks.h"):
405 (avr_init_builtins, avr_expand_builtin,
406 avr_expand_delay_cycles, avr_expand_unop_builtin,
407 avr_expand_binop_builtin ): New functions.
408 (avr_builtin_id): New enum
409 (struct avr_builtin_description): New struct
410 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
411 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
413 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
414 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
415 UNSPECV_DELAY_CYCLES): new enumeration values
416 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
417 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
418 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
419 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
420 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
421 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
424 * config/avr/avr-c.c: fix line endings
425 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
426 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
427 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
428 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
429 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
431 * doc/extend.texi (AVR Built-in Functions): New node
432 (Target Builtins): Add documentation of AVR
435 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
438 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
439 alone. Error if non-const data has attribute progmem.
441 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
443 * tree.h (struct tree_constructor): Include tree_typed instead of
445 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
446 TS_TYPED instead of TS_COMMON.
448 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
450 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
451 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
452 (sse2_psadbw): Merge with *avx_psadbw.
453 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
454 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
455 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
456 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
457 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
458 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
459 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
460 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
461 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
462 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
463 (ssse3_palignrti): Merge with *avx_palignrti.
465 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
467 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
468 * tree-ssanames.c (fini_ssanames): VEC_free it.
469 (make_ssa_name_fn): Update for VECness of free_ssanames.
470 (release_ssa_name, release_dead_ssa_names): Likewise.
471 * tree.h (struct tree_ssa_name): Include tree_typed instead of
473 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
474 TS_TYPED instead of TS_COMMON.
476 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
478 * postreload-gcse.c (gcse_after_reload_main): Add calls to
479 statistics_counter_event.
480 * tree-ssa-copyrename.c (stats): Define.
481 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
482 statistics_counter_event.
483 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
484 (bswap_stats, widen_mul_stats): Define.
485 (insert_reciprocals): Increment rdivs_inserted.
486 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
487 rfuncs_inserted. Add calls to statistics_counter_event.
488 (execute_cse_sincos_1): Increment inserted.
489 (execute_cse_sincos): Zeroize sincos_stats. Add call to
490 statistics_counter_event.
491 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
492 of bswap_stats. Add calls to statistics_counter_event.
493 (convert_mult_to_widen): Increment widen_mults_inserted.
494 (convert_plusminus_to_widen): Increment maccs_inserted.
495 (convert_mult_to_fma): Increment fmas_inserted.
496 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
497 calls to statistics_counter_event.
499 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
501 PR rtl-optimization/48455
502 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
503 `temp_costs->mem_cost'.
505 2011-04-13 Jan Hubicka <jh@suse.cz>
507 * ipa-inline.h: New file.
508 * ipa-inline-analysis.c: New file. Broken out of ...
509 * ipa-inline.c: ... this file; update toplevel comment;
511 (inline_summary): Move to ipa-inline.h
512 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
513 ipa-inline-analysis.c.
514 (cgraph_estimate_time_after_inlining): Rename to estiamte_time_after_inlining;
515 move to ipa-inline-analysis.c
516 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
517 to estimate_edge_growth.
518 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
519 rename to estimate_size_after_inlining.
520 (cgraph_mark_inline_edge): Update for new naming convention.
521 (cgraph_check_inline_limits): Likewise.
522 (cgraph_edge_badness): Likewise.
523 (cgraph_decide_recursive_inlining): Likewise.
524 (cgraph_decide_inlining_of_small_functions): Likewise.
525 (cgraph_decide_inlining_incrementally): Likewise.
526 (cgraph_estimate_growth): Rename to estimate_growth; move to ipa-inline-analysis.c.
527 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
528 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
529 (compute_inline_parameters): Likewise.
530 (compute_inline_parameters_for_current): Likewise.
531 (pass_inline_parameters): Likewise.
532 (inline_indirect_intraprocedural_analysis): Likewise.
533 (analyze_function): Rename to inline_analyze_function; likewise.
534 (add_new_function): Move to ipa-inline-analysis.c.
535 (inline_generate_summary): Likewise.
536 (inline_read_summary): Likewise.
537 (inline_write_summary): Likewise.
538 * Makefile.in (ipa-inline-analysis.c): New file.
540 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
542 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
543 * configure: Regenerate.
545 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
547 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
548 instead of tree_common.
549 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
551 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
552 TS_TYPED rather than TS_COMMON.
553 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
555 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
558 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
559 r20 around calls of __tablejump_elpm__
561 2011-04-13 Jakub Jelinek <jakub@redhat.com>
564 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
566 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
568 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
570 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
571 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
572 (cfi_vec): New typedef.
573 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
574 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
575 (cie_cfi_vec): New static variable.
576 (cie_cfi_head): Delete.
577 (add_cfi): Accept a cfi_vec * as first argument. All callers and
578 declaration changed. Use vector rather than list operations.
579 (new_cfi): Don't initialize the dw_cfi_next field.
580 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
581 rather than list operations.
582 (lookup_cfa): Use vector rather than list operations.
583 (output_cfis): New argument upto. Accept a cfi_vec rather than
584 a dw_cfi_ref list head as argument. All callers changed.
585 Iterate over the vector using upto as a maximum index.
586 (output_all_cfis): New static function.
587 (output_fde): Use vector rather than list operations. Use the
588 new upto argument for output_cfis rather than manipulating a
590 (dwarf2out_begin_prologue): Change initializations to match
592 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
593 from the vector length rather than searching for the end of a list.
595 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
597 2011-04-13 Nick Clifton <nickc@redhat.com>
599 * config/rx/rx.md (movmemsi): Do not use this pattern when
600 volatile pointers are involved.
602 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
604 * config/i386/sse.md (pinsrbits): Remove.
605 (sse2_packsswb): Merge with *avx_packsswb.
606 (sse2_packssdw): Merge with *avx_packssdw.
607 (sse2_packuswb): Merge with *avx_packuswb.
608 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
609 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
610 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
611 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
612 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
613 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
614 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
615 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
616 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
617 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
618 (sse2_loadld): Merge with *avx_loadld.
619 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
620 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
621 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
622 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
623 (vec_concatv2di): Merge with *vec_concatv2di_avx.
625 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
627 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
629 * print-tree.c (print_node): Likewise.
630 * tree-inline.c (copy_tree_r): Likewise.
631 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
632 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
633 instead of TS_COMMON.
634 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
635 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
636 (copy_node_stat): Zero TREE_CHAIN only if necessary.
637 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
638 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
640 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
642 (TREE_CHAIN): Check for a TS_COMMON structure.
643 (TREE_TYPE): Check for a TS_TYPED structure.
645 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
647 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
648 cgraph_get_create_node instead of cgraph_node.
650 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
652 * c-parser.c (c_parser_initelt): Updated call to
653 objc_build_message_expr.
654 (c_parser_postfix_expression): Likewise.
656 2011-04-12 Kai Tietz <ktietz@redhat.com>
658 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
659 MASK_MS_BITFIELD_LAYOUT bit.
661 2011-04-12 Jakub Jelinek <jakub@redhat.com>
663 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
664 assert it is always true.
665 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
668 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
670 * c-parser.c (c_lex_one_token): Rewritten conditional used when
671 compiling Objective-C to be more efficient.
673 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
675 * opts-common.c (decode_cmdline_options_to_array): Remove variable
678 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
680 * recog.h, genoutput.c, optabs.c: Revert last patch.
682 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
685 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
687 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
689 * recog.h (insn_operand_data): Add an "allows_mem" field.
690 * genoutput.c (output_operand_data): Initialize it.
691 * optabs.c (maybe_legitimize_operand_same_code): New function.
692 (maybe_legitimize_operand): Use it when matching the original
695 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
697 * genpreds.c (process_define_predicate): Move most processing
698 to gensupport.c. Continue to validate the expression.
699 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
700 (process_define_predicate): Move processing to gensupport.c.
701 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
702 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
703 (compute_predicate_codes): Moved from genrecog.c. Add lineno
705 (valid_predicate_name_p): New function, split out from old
706 genpreds.c:process_define_predicate.
707 (process_define_predicate): New function, combining code from
708 old genpreds.c and genrecog.c functions.
709 (process_rtx): Call it for DEFINE_PREDICATE and
710 DEFINE_SPECIAL_PREDICATE.
712 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
714 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
715 size of a '%A' memory reference.
716 (T_DREG, T_QREG): New neon_builtin_type_bits.
717 (arm_init_neon_builtins): Assert that the load and store operands
718 are neon_struct_operands.
719 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
720 (NEON_ARG_MEMORY): New builtin_arg.
721 (neon_dereference_pointer): New function.
722 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
723 Handle NEON_ARG_MEMORY.
724 (arm_expand_neon_builtin): Update after above interface changes.
725 Use NEON_ARG_MEMORY for loads and stores.
726 * config/arm/predicates.md (neon_struct_operand): New predicate.
727 * config/arm/iterators.md (V_two_elem): Tweak formatting.
728 (V_three_elem): Use BLKmode for accesses that have no associated mode.
729 (V_four_elem): Tweak formatting.
730 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
731 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
732 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
733 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
734 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
735 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
736 (neon_vst4<mode>): Replace pointer operand with a memory operand.
737 Use %A in the output template.
738 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
739 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
740 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
741 the width of the memory access. Remove post-increment.
742 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
744 2011-04-12 Nick Clifton <nickc@redhat.com>
746 * config/v850/v850.c (expand_prologue): Do not use the CALLT
747 instruction for interrupt handlers if the target is the basic V850
749 (expand_epilogue): Likewise.
751 2011-04-12 Jakub Jelinek <jakub@redhat.com>
753 PR rtl-optimization/48549
754 * combine.c (propagate_for_debug): Also stop after BB_END of
755 this_basic_block. Process LAST and just stop processing after it.
756 (combine_instructions): If last_combined_insn has been deleted,
757 set last_combined_insn to its PREV_INSN.
759 2011-04-12 Richard Guenther <rguenther@suse.de>
761 PR tree-optimization/46076
762 * gimple.h (struct gimple_statement_call): Add fntype field.
763 (gimple_call_fntype): Adjust.
764 (gimple_call_set_fntype): New function.
765 * gimple.c (gimple_build_call_1): Set the call function type.
766 * gimplify.c (gimplify_call_expr): Preserve the function
767 type the frontend used for the call.
768 (gimplify_modify_expr): Likewise.
769 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
771 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
773 * tree-ssa.c (useless_type_conversion_p): Function pointer
774 conversions are useless.
776 2011-04-12 Martin Jambor <mjambor@suse.cz>
778 * cgraph.h (cgraph_node): Remove function declaration.
779 (cgraph_create_node): Declare.
780 (cgraph_get_create_node): Likewise.
781 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
783 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
784 the decl does not already exist. Call cgraph_get_create_node instead
786 (cgraph_get_create_node): New function.
787 (cgraph_same_body_alias): Update comment.
788 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
789 assert it does not return NULL.
790 (cgraph_update_edges_for_call_stmt): Likewise.
791 (cgraph_clone_edge): Likewise.
792 (cgraph_create_virtual_clone): Likewise.
793 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
794 instead of cgraph_node.
795 (cgraph_add_new_function): Call cgraph_create_node or
796 cgraph_get_create_node instead of cgraph_node.
797 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
798 instead of cgraph_node.
799 (record_eh_tables): Likewise.
800 (mark_address): Likewise.
801 (mark_load): Likewise.
802 (build_cgraph_edges): Call cgraph_get_create_node instead
804 (rebuild_cgraph_edges): Likewise.
805 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
806 instead of cgraph_node.
807 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
809 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
810 cgraph_create_node instead of cgraph_node.
811 * c-decl.c (finish_function): Call cgraph_get_create_node instead
813 * lto-cgraph.c (input_node): Likewise.
814 * lto-streamer-in.c (input_function): Likewise.
815 * varasm.c (mark_decl_referenced): Likewise.
816 (assemble_alias): Likewise.
818 2011-04-12 Martin Jambor <mjambor@suse.cz>
820 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
821 instead of cgraph_node and assert it does not return NULL.
822 * lto-streamer-in.c (lto_read_body): Likewise.
823 * omp-low.c (new_omp_context): Likewise.
824 (create_task_copyfn): Likewise.
825 * tree-emutls.c (lower_emutls_function_body): Likewise.
826 * matrix-reorg.c (transform_allocation_sites): Likewise.
828 2011-04-12 Jakub Jelinek <jakub@redhat.com>
831 * c-typeck.c (build_asm_expr): Error out on attempts to use
832 void type outputs or inputs for constraints that allow reg or
835 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
836 Richard Earnshaw <rearnsha@arm.com>
839 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
840 to use sign-magnitude offsets. Reject unsupported unaligned
841 cases. Add detailed description in comments.
842 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
843 condition from TARGET_32BIT to TARGET_ARM.
845 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
847 * tree.h (struct typed_tree): New.
848 (struct tree_common): Include it instead of tree_base.
849 (TREE_TYPE): Update for new location of type field.
850 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
851 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
852 (union tree_node): Add typed field.
853 * treestruct.def (TS_TYPED): New.
854 * lto-streamer.c (check_handled_ts_structures): Handle it.
855 * tree.c (MARK_TS_TYPED): New macro.
856 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
858 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
860 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
861 (force_nonfallthru): Do not alter the loop nest if no basic block
864 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
866 * config/i386/sse.md (VI): New mode iterator.
868 (AVX256MODEI): Ditto.
870 (avxvecpsmode): Ditto.
871 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
872 (sse2_andnot<mode>3): New expander.
873 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
874 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
875 (<any_logic:code><mode>3): Use VI mode iterator.
876 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
877 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
878 (*andnottf3): Handle AVX three-operand constraints.
879 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
881 2011-04-11 Joseph Myers <joseph@codesourcery.com>
882 Robert Millan <rmh@gnu.org>
884 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
885 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
886 GNU_USER_DYNAMIC_LINKER64): Define.
887 (REG_NAME): Don't undefine.
888 (MD_UNWIND_SUPPORT): Undefine.
889 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
890 (REG_NAME): Don't undefine.
891 (MD_UNWIND_SUPPORT): Undefine.
892 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
894 2011-04-11 Joseph Myers <joseph@codesourcery.com>
896 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
897 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
899 2011-04-11 Xinliang David Li <davidxl@google.com>
901 * value-profile.c (check_ic_target): New function.
902 (gimple_ic_transform): Sanity check indirect call target.
903 * gimple-low.c (gimple_check_call_args): Interface change.
904 (gimple_check_call_matching_types): New function.
905 * tree-inline.c (tree_can_inline_p): Call new function.
907 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
909 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
910 tree-pretty-print.h & realmpfr.h.
912 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
915 * ira.c (setup_pressure_classes): Fix typo in loop condition.
916 (setup_allocno_and_important_classes): Ditto.
918 2011-04-11 Joseph Myers <joseph@codesourcery.com>
920 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
921 GNU_USER_DYNAMIC_LINKER.
922 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
923 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
924 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
925 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
926 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
927 GNU_USER_TARGET_OS_CPP_BUILTINS.
928 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
929 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
930 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
931 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
932 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
933 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
934 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
935 GNU_USER_TARGET_OS_CPP_BUILTINS.
936 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
937 GNU_USER_DYNAMIC_LINKER.
938 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
939 GNU_USER_TARGET_OS_CPP_BUILTINS.
940 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
941 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
942 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
943 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
944 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
945 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
946 GNU_USER_DYNAMIC_LINKER64): Remove.
947 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
948 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
949 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
950 GNU_USER_DYNAMIC_LINKER.
951 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
952 GNU_USER_TARGET_OS_CPP_BUILTINS.
953 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
954 GNU_USER_TARGET_OS_CPP_BUILTINS.
955 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
956 to GNU_USER_TARGET_OS_CPP_BUILTINS.
957 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
958 GNU_USER_TARGET_OS_CPP_BUILTINS.
959 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
960 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
961 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
962 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
963 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
964 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
965 GNU_USER_DYNAMIC_LINKER.
966 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
967 GNU_USER_TARGET_OS_CPP_BUILTINS.
968 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
969 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
970 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
971 GNU_USER_DYNAMIC_LINKER.
972 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
973 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
974 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
975 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
976 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
977 GNU_USER_DYNAMIC_LINKER.
978 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
979 GNU_USER_DYNAMIC_LINKERN32.
980 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
981 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
982 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
983 GNU_USER_DYNAMIC_LINKER32.
984 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
985 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
986 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
987 GNU_USER_DYNAMIC_LINKER.
988 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
989 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
990 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
991 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
992 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
993 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
994 GNU_USER_DYNAMIC_LINKER32.
995 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
996 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
997 GNU_USER_DYNAMIC_LINKER.
998 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
999 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1000 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1001 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
1002 GNU_USER_DYNAMIC_LINKER64.
1003 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
1004 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1005 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1006 GNU_USER_DYNAMIC_LINKER.
1007 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
1008 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1009 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1010 GNU_USER_DYNAMIC_LINKER.
1011 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
1012 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1013 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1014 GNU_USER_DYNAMIC_LINKER32.
1015 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1016 GNU_USER_DYNAMIC_LINKER64.
1017 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1018 GNU_USER_DYNAMIC_LINKER64.
1019 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
1020 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1021 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
1022 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1023 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1025 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1027 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
1028 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
1029 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
1030 GNU_USER_DYNAMIC_LINKER.
1031 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1032 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
1033 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
1034 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
1035 GNU_USER_DYNAMIC_LINKER64.
1036 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1037 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
1038 GNU_USER_LINK_EMULATION.
1039 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
1040 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
1041 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
1042 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
1043 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
1044 CPP_SPEC, CC1_SPEC): Remove.
1045 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
1046 (GNU_USER_DYNAMIC_LINKER): Define.
1047 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
1048 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
1049 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
1050 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
1051 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
1052 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
1053 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1054 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
1055 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
1056 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
1057 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
1058 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
1059 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
1060 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
1061 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
1062 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1063 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1064 GNU_USER_DYNAMIC_LINKER.
1065 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1066 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
1067 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1068 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
1069 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1070 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
1071 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
1072 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
1073 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
1074 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
1076 2011-04-11 Kai Tietz <ktietz@redhat.com>
1080 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
1081 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
1083 (ix86_is_msabi_thiscall): Removed.
1084 (ix86_is_type_thiscall): Likewise.
1085 (ix86_get_callcvt): New function.
1086 (ix86_comp_type_attributes): Simplify check.
1087 (ix86_function_regparm): Use ix86_get_callcvt for calling
1088 convention attribute checks.
1089 (ix86_return_pops_args): Likewise.
1090 (ix86_static_chain): Likewise.
1091 (x86_this_parameter): Likewise.
1092 (x86_output_mi_thunk): Likewise.
1093 (ix86_function_type_abi): Optimize check for types without attributes.
1094 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
1095 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
1096 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
1098 (IX86_BASE_CALLCVT): Helper macro.
1099 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1100 Use ix86_get_callcvt for calling convention attribute checks and avoid
1101 symbol-decoration for stdcall in TARGET_RTD case.
1102 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
1104 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
1107 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
1109 * config/i386/sse.md (VI_128): New mode iterator.
1110 (VI12_128): Rename from SSEMODE12.
1111 (VI14_128): Rename from SSEMODE14.
1112 (VI124_128): New mode iterator.
1113 (VI24_128): Rename from SSEMODE248.
1114 (VI248_128): Rename from SSEMODE248.
1115 (SSEMODE124C8): Remove.
1116 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
1117 (*sse2_<plusminus_insn><mode>3): Merge with
1118 *avx_<plusminus_insn><mode>3.
1119 (*mulv8hi3): Merge with *avx_mulv8hi3.
1120 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
1121 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
1122 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
1123 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
1124 (ashr<mode>3): Merge with *avx_ashr<mode>3.
1125 (lshr<mode>3): Merge with *avx_lshr<mode>3.
1126 (ashl<mode>3): Merge with *avx_ashl<mode>3.
1127 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
1128 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
1129 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1130 (*<smaxmin:code>v8hi3): Ditto.
1131 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
1132 (*<smaxmin:code>v16qi3): Ditto.
1133 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
1134 (*sse2_eq<mode>3): Ditto.
1135 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
1136 (*sse2_gt<mode>3): Ditto.
1137 (vcondv2di): Split out of vcond<mode>.
1138 (vconduv2di): Split out of vcondu<mode>.
1140 2011-04-11 Richard Guenther <rguenther@suse.de>
1142 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
1143 before calling tree_low_cst.
1145 2011-04-11 Richard Guenther <rguenther@suse.de>
1147 * stor-layout.c (layout_type): Compute all array index size operations
1148 in the original type.
1149 (initialize_sizetypes): Add comment.
1150 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
1152 2011-04-11 Joseph Myers <joseph@codesourcery.com>
1154 * common.opt (Tbss=, Tdata=, Ttext=): New options.
1156 2011-04-11 Martin Jambor <mjambor@suse.cz>
1158 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
1159 of cgraph_node, handle NULL return value.
1160 (cgraph_global_info): Likewise.
1161 (cgraph_rtl_info): Likewise.
1162 * tree-inline.c (estimate_num_insns): Likewise.
1163 * gimplify.c (unshare_body): Likewise.
1164 (unvisit_body): Likewise.
1165 (gimplify_body): Likewise.
1166 * predict.c (optimize_function_for_size_p): Likewise.
1167 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
1168 (call_may_clobber_ref_p_1): Likewise.
1169 * varasm.c (function_section_1): Likewise.
1170 (assemble_start_function): Likewise.
1172 2011-04-11 Martin Jambor <mjambor@suse.cz>
1174 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
1176 * final.c (rest_of_clean_state): Likewise.
1177 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
1178 * passes.c (pass_init_dump_file): Likewise.
1179 (execute_all_ipa_transforms): Likewise.
1180 (function_called_by_processed_nodes_p): Likewise.
1181 * predict.c (maybe_hot_frequency_p): Likewise.
1182 (probably_never_executed_bb_p): Likewise.
1183 (compute_function_frequency): Likewise.
1184 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
1185 (unnest_nesting_tree_1): Likewise.
1186 (lower_nested_functions): Likewise.
1187 * tree-optimize.c (execute_fixup_cfg): Likewise.
1188 (tree_rest_of_compilation): Likewise.
1189 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
1190 * tree-sra.c (ipa_early_sra): Likewise.
1191 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
1192 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
1193 * ipa.c (record_cdtor_fn): Likewise.
1194 * ipa-inline.c (cgraph_early_inlining): Likewise.
1195 (compute_inline_parameters_for_current): Likewise.
1196 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1197 * ipa-pure-const.c (local_pure_const): Likewise.
1198 * ipa-split.c (split_function): Likewise.
1199 (execute_split_functions): Likewise.
1200 * cgraphbuild.c (build_cgraph_edges): Likewise.
1201 (rebuild_cgraph_edges): Likewise.
1202 (cgraph_rebuild_references): Likewise.
1203 (remove_cgraph_callee_edges): Likewise.
1204 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
1205 (verify_cgraph_node): Likewise.
1206 (cgraph_analyze_functions): Likewise.
1207 (cgraph_preserve_function_body_p): Likewise.
1208 (save_inline_function_body): Likewise.
1209 (save_inline_function_body): Likewise.
1210 * tree-inline.c (copy_bb): Likewise.
1211 (optimize_inline_calls): Likewise.
1213 2011-04-11 Martin Jambor <mjambor@suse.cz>
1215 PR tree-optimization/48195
1216 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
1217 ipa_check_create_edge_args.
1218 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
1219 ipa_check_create_edge_args.
1220 * ipa-inline.c (inline_generate_summary): Do not call
1221 ipa_check_create_node_params and ipa_check_create_edge_args.
1222 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
1223 ipa_check_create_edge_args.
1225 2011-04-09 Anatoly Sokolov <aesok@post.ru>
1227 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
1229 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
1230 * function.c (record_hard_reg_sets): Likewise.
1231 * ira.c (compute_regs_asm_clobbered): Likewise.
1232 * sched-deps.c (sched_analyze_1): Likewise.
1233 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
1235 2011-04-09 Xinliang David Li <davidxl@google.com>
1237 PR tree-optimization/PR48484
1238 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
1239 has_valid_pred lazily
1241 2011-04-09 Duncan Sands <baldrick@free.fr>
1243 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
1245 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
1247 * combine.c (combine_validate_cost): Adjust comments. Set registered
1248 cost of I0 to zero at the end, if any.
1250 2011-04-08 Xinliang David Li <davidxl@google.com>
1252 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
1253 to insane profile data.
1255 2011-04-08 Xinliang David Li <davidxl@google.com>
1257 * final.c (dump_basic_block_info): New function.
1258 (final): Dump basic block.
1259 (final_scan_insn): Remove old dump.
1261 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
1264 * config.gcc (i386-*-freebsd): Disable unwind table generation for
1267 2011-04-08 Michael Matz <matz@suse.de>
1270 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
1272 (rebuild_jump_labels): Call rebuild_jump_labels_1.
1273 * rtl.h (rebuild_jump_labels_chain): Declare.
1274 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
1275 insns inserted on edges.
1277 2011-04-08 Joseph Myers <joseph@codesourcery.com>
1279 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
1280 * config/arm/arm-arches.def: New.
1281 * config/arm/arm-opts.h: New.
1282 * config/arm/genopt.sh: New.
1283 * config/arm/arm-tables.opt: New (generated).
1284 * config/arm/arm.c (arm_handle_option, arm_target_help,
1285 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
1286 (all_architectures): Get most table contents from arm-arches.def.
1287 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
1288 arm_selected_tune here.
1289 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
1290 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
1291 (march=, mcpu=, mtune=): Use Enum and Var.
1292 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
1293 (arm.o): Update dependencies.
1295 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
1297 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
1299 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
1300 (write_typed_alloc_defns): Likewise.
1301 (main): Calls write_typed_alloc_defns with output_header.
1303 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
1306 * ira-color.c (setup_profitable_hard_regs): Add comments.
1307 Don't take prohibited hard regs into account.
1308 (setup_conflict_profitable_regs): Rename to
1309 get_conflict_profitable_regs.
1310 (check_hard_reg_p): Check prohibited hard regs.
1312 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1314 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
1315 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
1316 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
1318 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1321 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
1322 move from floating point to shift amount register .
1323 (emit_move_sequence): Remove secondary reload support for floating
1324 point to shift amount amount register copies.
1325 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
1326 amount register copies.
1327 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
1328 register, return false if mode isn't a scalar integer mode.
1329 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
1331 2011-04-08 Richard Guenther <rguenther@suse.de>
1333 * gimple.c (gimple_call_flags): Remove kludge.
1335 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
1337 * sel-sched.c (sel_region_init): Move call to
1338 sel_setup_region_sched_flags after setup_current_loop_nest.
1340 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
1342 PR rtl-optimization/48272
1343 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
1344 init_insn_reg_pressure_info. Adjust a caller.
1345 * sched-int.h (init_insn_reg_pressure_info): Declare.
1346 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
1347 when sched-pressure is enabled.
1349 2011-04-08 Richard Guenther <rguenther@suse.de>
1351 * gimple.c (gimple_set_modified): Do not queue calls to
1352 MODIFIED_NORETURN_CALLS here ...
1353 * tree-ssa-operands.c (update_stmt_operands): ... but here.
1355 2011-04-08 Richard Guenther <rguenther@suse.de>
1358 * toplev.c (lang_dependent_init): Do not open asm_out_file
1359 in WPA mode, nor perform debug machinery initialization.
1360 (finalize): Do not unlink asm_out_file in WPA mode.
1362 2011-04-08 Richard Guenther <rguenther@suse.de>
1364 * gimple.h (gimple_call_fntype): New function.
1365 (gimple_call_return_type): Use it.
1366 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
1367 * gimple-low.c (gimple_check_call_args): Likewise.
1368 * gimple.c (gimple_call_flags): Likewise.
1369 (gimple_call_arg_flags): Likewise.
1370 (gimple_call_return_flags): Likewise.
1371 * tree-cfg.c (verify_gimple_call): Likewise.
1372 (do_warn_unused_result): Likewise.
1373 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
1374 * value-prof.c (gimple_ic_transform): Fix fndecl check.
1376 2011-04-08 Dmitry Melnik <dm@ispras.ru>
1378 PR rtl-optimization/48235
1379 * sel-sched.c (code_motion_process_successors): Recompute the last
1380 insn in basic block if control flow changed.
1381 (code_motion_path_driver): Ditto. Recompute the first insn as well.
1382 Update condition for ilist_remove.
1384 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
1386 PR rtl-optimization/48302
1387 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
1388 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
1389 it to record added preheader blocks.
1390 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
1391 on to sel_add_loop_preheaders.
1392 (sel_region_init): Move call to setup_current_loop_nest after
1395 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
1398 * cfgloop.h (loop_has_exit_edges): New helper.
1399 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
1401 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
1402 that have no exit edges.
1404 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
1406 PR rtl-optimization/48442
1407 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
1408 all callers. Adjust assert.
1410 2011-04-08 Jakub Jelinek <jakub@redhat.com>
1412 PR tree-optimization/48377
1413 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
1414 is_packed to true even for types with smaller TYPE_ALIGN than
1417 2011-04-08 Richard Guenther <rguenther@suse.de>
1420 * doc/tm.texi: Re-generate.
1422 2011-04-08 Wei Guozhi <carrot@google.com>
1425 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
1426 * config/arm/arm.c (arm_attr_length_push_multi): New function.
1427 * config/arm/arm.md (*push_multi): Change the length computation to
1430 2011-04-08 Anatoly Sokolov <aesok@post.ru>
1432 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
1433 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
1434 * doc/tm.texi: Regenerate.
1435 * system.h (ASM_OUTPUT_BSS): Poison.
1436 * varasm.c (asm_output_bss): Remove function.
1437 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
1439 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
1440 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
1441 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
1442 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1444 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1446 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1448 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
1450 2011-04-07 Joseph Myers <joseph@codesourcery.com>
1452 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
1455 2011-04-07 Joseph Myers <joseph@codesourcery.com>
1457 * config/m68k/m68k.c (m68k_handle_option): Don't handle
1458 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
1459 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
1461 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
1462 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
1463 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
1464 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
1465 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
1466 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
1467 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
1468 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
1469 options. Don't map other m68k options manually. Don't handle
1470 old-style options as canonical.
1471 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
1472 * doc/install.texi (m68k-*-*): Document binutils version requirement.
1474 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
1476 * basic-block.h (force_nonfallthru): Move to...
1477 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
1478 (force_nonfallthru): ...here.
1479 * cfghooks.c (force_nonfallthru): New function.
1480 * cfgrtl.c (force_nonfallthru): Rename into...
1481 (rtl_force_nonfallthru): ...this.
1482 (commit_one_edge_insertion): Do not set AUX field.
1483 (commit_edge_insertions): Do not discover new basic blocks.
1484 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
1485 (cfg_layout_rtl_cfg_hooks): Likewise.
1486 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
1487 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
1488 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
1490 2011-04-07 Anatoly Sokolov <aesok@post.ru>
1492 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
1495 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
1497 * config/i386/sse.md: Update copyright year.
1498 (avxcvtvecmode): Remove.
1499 (sse_movhlps): Merge with *avx_movhlps.
1500 (sse_movlhps): Merge with *avx_movlhps.
1501 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
1502 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
1503 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
1504 (sse_loadhps): Merge with *avx_loadhps.
1505 (sse_storelps): Merge with *avx_storelps.
1506 (sse_loadlps): Merge with *avx_loadlps.
1507 (sse_movss): Merge with *avx_movss.
1508 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
1509 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
1510 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
1511 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
1512 (vec_set<mode>_0): Ditto.
1513 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
1514 (sse4_1_insertps): Merge with *avx_insertps.
1515 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
1516 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
1517 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
1518 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
1519 (sse2_storehpd): Merge with *avx_storehpd.
1520 (sse2_loadhpd): Merge with *avx_loadhpd.
1521 (sse2_loadlpd): Merge with *avx_loadlpd.
1522 (sse2_movsd): Merge with *avx_movsd.
1523 (*vec_concatv2df): Merge with *vec_concatv2df.
1525 2011-04-07 Jakub Jelinek <jakub@redhat.com>
1528 * combine.c (combine_instructions): Add last_combined_insn,
1529 update it if insn is after it, pass it to all try_combine calls.
1530 (try_combine): Add last_combined_insn parameter, pass it instead of
1531 i3 to propagate_for_debug.
1533 2011-04-07 Nick Clifton <nickc@redhat.com>
1535 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
1536 to handle MDR <-> data register transfers.
1537 (movhi_internal): Likewise.
1539 2011-04-07 Alan Modra <amodra@gmail.com>
1541 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
1542 previous stack info.
1544 2011-04-07 Tom de Vries <tom@codesourcery.com>
1547 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
1548 flow_find_cross_jump. Swap variables to implement backward replacement.
1549 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
1551 2011-04-07 Tom de Vries <tom@codesourcery.com>
1554 * cfgcleanup.c (walk_to_nondebug_insn): New function.
1555 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
1557 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
1558 src1 or src2. Redirect edges to the last basic block. Update
1559 frequency and count on multiple basic blocks in case of fallthru.
1561 2011-04-07 Tom de Vries <tom@codesourcery.com>
1564 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
1566 (old_insns_match_p): Change return type. Replace return false/true
1567 with return dir_none/dir_both. Use can_replace_by.
1568 (flow_find_cross_jump): Add dir_p parameter. Init replacement
1569 direction from dir_p. Register replacement direction in dir, last_dir
1570 and afterlast_dir. Handle new return type of old_insns_match_p using
1571 merge_dir. Return replacement direction in dir_p.
1572 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
1573 return type of old_insns_match_p.
1574 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
1575 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
1576 flow_find_cross_jump.
1577 * basic-block.h (enum replace_direction): New type.
1578 (flow_find_cross_jump): Add parameter to declaration.
1580 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
1582 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
1583 (AVXMODEDCVTPS2DQ): Ditto.
1584 (VEC_FLOAT_MODE): Ditto.
1585 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
1586 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
1587 (<any_logic:code><mode>3): Use VF mode iterator.
1588 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
1589 Use VF mode iterator.
1590 (copysign<mode>3): Use VF mode iterator.
1591 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
1592 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
1593 (*<any_logic:code><MODEF:mode>3): Merge with
1594 *avx_<any_logic:code><MODEF:mode>3.
1595 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
1596 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
1597 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
1598 (avx_cvtdq2ps<avxmodesuffix>): Remove.
1599 (sse2_cvtdq2ps): Use %v modifier.
1600 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
1601 (avx_cvtps2dq<avxmodesuffix>): Remove.
1602 (sse2_cvtps2dq): Use %v modifier.
1603 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
1604 (avx_cvttps2dq<avxmodesuffix>): Remove.
1605 (sse2_cvttps2dq): Use %v modifier.
1606 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
1607 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
1608 (sse2_cvtsd2siq): Fix insn template.
1609 (sse2_cvtsd2siq_2): Ditto.
1610 (sse2_cvttsd2siq): Ditto.
1611 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
1612 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
1614 2011-04-06 Joseph Myers <joseph@codesourcery.com>
1616 * gcov-io.c: Use GCC Runtime Library Exception.
1618 2011-04-06 Jakub Jelinek <jakub@redhat.com>
1621 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
1622 as base_reg whatever register reg has been eliminated to, instead
1623 of hardcoding STACK_POINTER_REGNUM.
1625 2011-04-06 Joseph Myers <joseph@codesourcery.com>
1627 * doc/tm.texi.in: Document C target hooks as separate from general
1629 * doc/tm.texi: Regenerate.
1630 * genhooks.c (struct hook_desc): Add docname field.
1631 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
1633 (hook_array): Include c-target.def.
1634 (emit_documentation): Use docname field in output.
1635 (emit_init_macros): Take docname argument. Only emit definitions
1636 for hooks matching docname.
1637 (main): Expect additional arguments in all cases. Pass argument
1638 to emit_init_macros.
1639 * target.def: Move initial macro definitions and comments to
1640 target-hooks-macros.h.
1641 (gcc_targetcm): Move to c-family/c-target.def.
1642 * target.h (targetcm): Move declaration to c-family/c-target.h.
1643 * targhooks.c (default_handle_c_option): Move to
1645 * targhooks.h (default_handle_c_option): Move declaration to
1646 c-family/c-common.h.
1647 * target-hooks-macros.h: New file.
1648 * config.gcc (target_has_targetcm): Define and use to add to
1649 c_target_objs and cxx_target_objs.
1650 * config/default-c.c: New file.
1651 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
1652 of target.h and target-def.h.
1653 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
1654 (darwin_objc_construct_string, darwin_cfstring_ref_p,
1655 darwin_check_cfstring_format_arg): Make static.
1656 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
1657 TARGET_STRING_OBJECT_REF_TYPE_P,
1658 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
1659 * config/darwin-protos.h (darwin_objc_construct_string,
1660 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
1662 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
1663 TARGET_STRING_OBJECT_REF_TYPE_P,
1664 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
1665 * config/t-darwin (darwin-c.o): Update dependencies.
1666 * system.h (TARGET_HAS_TARGETCM): Poison.
1667 * Makefile.in (TARGET_H): Update.
1668 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
1669 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
1670 (default-c.o): New target.
1671 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
1672 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
1673 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
1675 (build/genhooks.o): Update dependencies.
1677 2011-04-06 Richard Guenther <rguenther@suse.de>
1679 * ipa-inline.c (enum inlining_mode): Remove.
1680 (cgraph_flatten): Use some other token.
1681 (cgraph_edge_early_inlinable_p): New function, split out from ...
1682 (cgraph_perform_always_inlining): New function, split out from ...
1683 (cgraph_decide_inlining_incrementally): ... here.
1684 (cgraph_mark_inline_edge): Adjust.
1685 (cgraph_early_inlining): Re-structure.
1686 (pass_early_inline): Require SSA form.
1688 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
1689 Julian Brown <julian@codesourcery.com>
1690 Mark Shinwell <shinwell@codesourcery.com>
1692 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
1693 LO_REGS only for Thumb-1.
1694 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
1695 be used in short instructions when optimising for size on Thumb-2.
1697 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
1699 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
1700 associated with user returns to be preserved.
1702 2011-04-06 Tristan Gingold <gingold@adacore.com>
1704 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
1705 symbol_queue_size, DBXOUT_DECR_NESTING,
1706 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
1707 if XCOFF_DEBUGGING_INFO.
1709 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
1711 * config/i386/i386.md (attribute isa): New.
1712 (attribute enabled): New.
1713 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
1714 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
1715 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
1716 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
1717 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
1718 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1719 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
1720 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
1722 * config/i386/sse.md (VF): New mode iterator.
1726 (SSEMODEF4): Remove.
1727 (attribute sse): Handle V8SF and V4DF modes.
1728 (<absneg:code><mode>2): Use VF mode iterator.
1729 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
1731 (<plusminus_insn><mode>3): Use VF mode iterator.
1732 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
1733 Use VF mode iterator.
1734 (<sse>_vm<plusminus_insn><mode>3): Merge with
1735 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
1736 (mul<mode>3): Use VF mode iterator.
1737 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
1738 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
1740 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
1741 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
1742 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
1743 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
1745 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
1746 Use VF1 mode iterator.
1747 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
1748 (sqrt<VF2:mode>2): New expander.
1749 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
1750 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
1751 and sqrtv2df2. Use VF mode iterator.
1752 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
1754 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
1755 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
1756 Use VF1 mode iterator.
1757 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
1758 (<smaxmin:code><mode>3): Use VF mode iterator.
1759 (*<smaxmin:code><mode>3_finite): Merge with
1760 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
1761 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1762 (<sse>_vm<smaxmin:code><mode>2): Merge with
1763 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
1764 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
1766 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
1768 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
1769 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
1770 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
1771 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
1772 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
1774 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
1775 Use VF_128 mode iterator.
1776 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
1778 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
1779 VF_128 mode iterator.
1780 (vcond<mode>): Use VF mode iterator.
1781 * config/i386/predicates.md (sse_comparison_operator): Merge with
1782 avx_comparison_float_operator. Do not declare as special_predicate.
1783 * config/i386/i386.c (struct builtin_description): Update for renamed
1785 (ix86_expand_args_builtin): Ditto.
1786 (ix86_expand_sse_compare_mask): Ditto.
1788 2011-04-06 Richard Guenther <rguenther@suse.de>
1790 * tree-inline.c (estimate_num_insns): For calls simply account
1791 for all passed arguments and a used return value.
1793 2011-04-06 Richard Guenther <rguenther@suse.de>
1795 PR tree-optimization/47663
1796 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
1797 call_stmt_time fields.
1798 (cgraph_edge_inlinable_p): Declare.
1799 (cgraph_edge_recursive_p): New inline function.
1800 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
1801 (cgraph_clone_edge): Copy it.
1802 * ipa-inline.c (cgraph_estimate_edge_time): New function.
1803 Account for call stmt time.
1804 (cgraph_estimate_time_after_inlining): Take edge argument.
1805 (cgraph_estimate_edge_growth): Account call stmt size.
1806 (cgraph_estimate_size_after_inlining): Take edge argument.
1807 (cgraph_mark_inline_edge): Adjust.
1808 (cgraph_check_inline_limits): Likewise.
1809 (cgraph_recursive_inlining_p): Remove.
1810 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
1811 (cgraph_decide_recursive_inlining): Take edge argument and
1813 (cgraph_decide_inlining_of_small_functions): Do not avoid
1814 diags for recursive inlining here.
1815 (cgraph_flatten): Adjust.
1816 (cgraph_decide_inlining_incrementally): Likewise.
1817 (estimate_function_body_sizes): Remove call cost handling.
1818 (compute_inline_parameters): Initialize caller edge call costs.
1819 (cgraph_estimate_edge_growth): New function.
1820 (cgraph_estimate_growth): Use it.
1821 (cgraph_edge_badness): Likewise.
1822 (cgraph_check_inline_limits): Take an edge argument.
1823 (cgraph_decide_inlining_of_small_functions): Adjust.
1824 (cgraph_decide_inlining): Likewise.
1825 * tree-inline.c (estimate_num_insns): Only account for call
1826 return value if it is used.
1827 (expand_call_inline): Avoid diagnostics on recursive inline
1829 * lto-cgraph.c (lto_output_edge): Output edge call costs.
1830 (input_edge): Input edge call costs.
1832 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1834 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
1836 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
1838 * doc/invoke.texi (Spec Files): Fix typo.
1840 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
1842 * profile.c (branch_prob): Move declaration of local variable. Remove
1843 obsolete ??? comment. Expand the location explicitly instead of using
1844 the LOCATION_FILE and LOCATION_LINE macros.
1846 2011-04-06 Wei Guozhi <carrot@google.com>
1849 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
1850 (arm_cond_branch): Likewise.
1851 (arm_cond_branch_reversed): Likewise.
1852 (arm_jump): Likewise.
1853 (push_multi): Likewise.
1854 * config/arm/constraints.md (Py): New constraint.
1856 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
1859 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
1861 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
1862 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
1863 #ifdef DBX_DEBUGGING_INFO.
1865 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
1868 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
1869 if old and new states differ.
1871 2011-04-05 Joseph Myers <joseph@codesourcery.com>
1873 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
1874 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
1875 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
1876 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
1877 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
1879 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
1880 ColdFire options to -mcpu= options.
1882 2011-04-05 Jeff Law <law@redhat.com>
1884 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
1885 check if BB is a successor of LOOP->header and return
1886 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
1888 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
1890 * cprop.c (struct reg_use): Remove.
1891 (reg_use_table): Make an array of RTX.
1892 (find_used_regs, constprop_register, local_cprop_pass,
1893 bypass_block): Simplify users of reg_use_table.
1894 (cprop_insn): Likewise. Iterate if copy propagation succeeded
1895 on one of the uses found by find_used_regs.
1897 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
1900 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
1903 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
1905 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
1907 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
1909 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
1912 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
1914 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
1916 * combine.c: Include obstack.h.
1917 (struct insn_link): Define.
1918 (uid_log_links): Adjust type.
1919 (FOR_EACH_LOG_LINK): New macro.
1920 (insn_link_obstack): Declare.
1921 (alloc_insn_link): Define.
1922 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
1923 type of link variables.
1924 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
1925 (try_combine, record_promoted_values, distribute_notes): Likewise.
1926 (distribute_links): Likewise. Tweak prototype.
1927 (clear_log_links): Delete.
1928 (adjust_for_new_dest): Call alloc_insn_link.
1929 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
1931 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
1933 * gcse.c (modify_mem_list): Convert to an array of VECs.
1934 (canon_modify_mem_list, compute_transp): Tweak formatting.
1935 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
1936 (load_killed_in_block_p): Likewise.
1937 (record_last_mem_set_info): Likewise.
1938 (clear_modify_mem_tables): Likewise.
1940 2011-04-05 Tom de Vries <tom@codesourcery.com>
1943 * function.c (emit_use_return_register_into_block): Only define if
1946 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
1948 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
1950 2011-04-05 Joseph Myers <joseph@codesourcery.com>
1952 * config/rx/rx-opts.h: New.
1953 * config/rx/rx.c (rx_cpu_type): Remove.
1954 (rx_handle_option): Don't assert that global structures are in
1955 use. Access variables via opts pointer. Defer most handling of
1956 OPT_mint_register_. Use error_at.
1957 (rx_option_override): Handle deferred OPT_mint_register_ here.
1958 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
1959 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
1960 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
1961 (rx_cpu_types): New Enum and EnumValue entries.
1962 (mint-register=): Use Defer and use Var accordingly.
1964 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
1966 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
1967 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
1968 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
1970 (debug_free_queue, debug_nesting, symbol_queue_index):
1972 * dbxout.c: ...to here. Make static.
1974 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
1976 * gcse.c (modify_pair): Define. Define a VEC of it.
1977 (canon_modify_mem_list): Convert to an array of VECs.
1978 (free_insn_expr_list_list): Delete.
1979 (clear_modify_mem_tables): Call VEC_free instead.
1980 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
1981 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
1982 (canon_list_insert, compute_transp): Likewise.
1984 2011-04-05 Tom de Vries <tom@codesourcery.com>
1987 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
1990 2011-04-05 Tom de Vries <tom@codesourcery.com>
1993 * function.c (emit_use_return_register_into_block): New function.
1994 (thread_prologue_and_epilogue_insns): Use
1995 emit_use_return_register_into_block.
1997 2011-04-05 Tom de Vries <tom@codesourcery.com>
2000 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
2003 2011-04-05 Tom de Vries <tom@codesourcery.com>
2005 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
2007 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
2009 * config/arm/arm.md (define_constants for unspec): Replace with
2011 (define_constants for unspecv): Replace with define_c_enum.
2012 * config/arm/neon.md (define_constants for unspec): Replace with
2015 2011-04-04 Richard Henderson <rth@redhat.com>
2018 * dwarf2out.c (output_line_info): Always emit line info from
2019 at least one section.
2020 (dwarf2out_init): Create text_section_line_info here ...
2021 (set_cur_line_info_table): ... not here.
2023 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
2026 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
2029 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
2031 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
2033 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
2034 (expr_equiv_p): Remove.
2035 (insert_set_in_table): Look at <dest, src> pair instead of expr.
2036 (hash_scan_set): Update call to insert_set_in_table.
2037 (dump_hash_table): Dump <dest, src> pair.
2038 (lookup_set): Simplify. Lookup <dest, src> pair.
2039 (compute_transp): Remove, fold heavily simplified code into...
2040 (compute_local_properties): ...here. Expect COMP and TRANSP
2042 (find_avail_set): Take set directly from struct expr.
2043 (find_bypass-set): Likewise.
2044 (bypass_block): Likewise.
2045 (cprop_insn): Likewise. Remove redundant INSN_P test.
2047 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
2048 checks on form of COND from find_implicit_sets to here.
2049 (find_implicit_sets): Cleanup control flow. Split critical edges
2050 if it exposes implicit sets. Allocate/resize implicit_sets as
2052 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
2053 changed something. Run df_analyze after find_implicit_sets if any
2054 edges were split. Do not allocate implicit_sets here.
2056 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
2057 (gcse_obstack): Renamed to cprop_obstack.
2058 (GNEW, GNEWVEC, GNEWVAR): Remove.
2060 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
2061 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
2062 (gcse_alloc): Likewise, and rename to cprop_alloc.
2063 (alloc_gcse_men, free_gcse_mem): Remove.
2064 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
2065 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
2066 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
2068 * cprop.c (oprs_not_set_p): Remove.
2069 (mark_set, mark_clobber): Remove.
2070 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
2071 (reg_not_set_p): New function.
2072 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
2073 (cprop_insn): Likewise.
2074 (cprop_jump): Use FOR_EACH_EDGE.
2076 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
2079 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
2080 (rank_for_schedule): Use scheduled_insns vector instead of
2081 last_scheduled_insn.
2082 (ok_for_early_queue_removal): Likewise.
2083 (queue_to_ready): Search forward in nonscheduled_insns_begin if
2085 (choose_ready): Likewise.
2086 (commit_schedule): Use VEC_iterate.
2087 (schedule_block): Initialize nonscheduled_insns_begin. If we have
2088 a dbg_cnt, use it and ensure the first insn is in the ready list.
2089 (haifa_sched_init): Allocate scheduled_insns.
2090 (sched_extend_ready_list): Don't allocate it; reserve space.
2091 (haifa_sched_finish): Free it.
2093 2011-04-04 Joseph Myers <joseph@codesourcery.com>
2095 * optc-gen.awk: Always remove type from Variable entry before
2096 recording in var_seen.
2098 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
2100 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
2101 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
2102 call to tidy_fallthru_edges.
2104 2011-04-04 Joseph Myers <joseph@codesourcery.com>
2106 * doc/options.texi (ToLower): Document.
2107 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
2108 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
2109 * opts.h (cl_option): Add cl_tolower field.
2110 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
2111 arguments with lowercase strings.
2112 * config/rx/rx.opt (mcpu=): Add ToLower.
2113 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
2116 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
2118 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
2120 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
2122 * config/vax/vax.c: Include reload.h.
2124 2011-04-04 Anatoly Sokolov <aesok@post.ru>
2126 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
2127 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
2128 (sparc_preferred_reload_class): New function.
2130 2011-04-04 Jakub Jelinek <jakub@redhat.com>
2133 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
2134 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
2136 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
2138 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
2139 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
2141 2011-04-03 Anatoly Sokolov <aesok@post.ru>
2143 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
2144 (ASM_OUTPUT_ALIGNED_BSS): Define.
2146 2011-04-03 Michael Matz <matz@suse.de>
2148 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
2149 and next_slot members.
2150 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
2151 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
2152 (lto_streamer_cache_append): Declare.
2153 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
2154 unsigned index, remove offset parameter, ensure that we append
2155 or update existing entries.
2156 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
2157 parameter, update next_slot for append.
2158 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
2160 (lto_streamer_cache_insert_at): Likewise.
2161 (lto_streamer_cache_append): New function.
2162 (lto_streamer_cache_lookup): Use unsigned index.
2163 (lto_streamer_cache_get): Likewise.
2164 (lto_record_common_node): Don't test tree_node_can_be_shared.
2165 (preload_common_node): Adjust call to lto_streamer_cache_insert.
2166 (lto_streamer_cache_delete): Don't free offsets member.
2167 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
2168 (lto_output_string_with_length): Use lto_output_data_stream.
2169 (lto_output_tree_header): Remove ix parameter, don't write it.
2170 (lto_output_builtin_tree): Likewise.
2171 (lto_write_tree): Adjust callers to above, don't track and write
2172 offset, write unsigned index.
2173 (output_unreferenced_globals): Don't emit all global vars.
2174 (write_global_references): Use unsigned indices.
2175 (lto_output_decl_state_refs): Likewise.
2176 (write_symbol): Likewise.
2177 * lto-streamer-in.c (lto_input_chain): Move earlier.
2178 (input_function): Use unsigned index.
2179 (input_alias_pairs): Don't read and then ignore all global vars.
2180 (lto_materialize_tree): Remove ix_p parameter, don't read index,
2181 don't pass it back, use lto_streamer_cache_append.
2182 (lto_register_var_decl_in_symtab): Use unsigned index.
2183 (lto_register_function_decl_in_symtab): Likewise.
2184 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
2186 (lto_get_builtin_tree): Don't read index, use
2187 lto_streamer_cache_append.
2188 (lto_read_tree): Adjust call to lto_materialize_tree.
2190 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
2191 don't use function calls in arguments to MIN.
2193 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
2196 * gimple.c (gimple_type_leader_entry): Mark deletable.
2198 2011-04-03 Alan Modra <amodra@gmail.com>
2200 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
2202 2011-04-03 Michael Matz <matz@suse.de>
2204 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
2206 * tree.h (tree_decl_non_common.vindex): Adjust comment.
2208 2011-04-03 Michael Matz <matz@suse.de>
2210 * cgraphbuild.c (record_reference): Canonicalize constructor values.
2211 * gimple-fold.c (canonicalize_constructor_val): Accept being called
2212 without function context.
2213 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
2214 current_function_decl and cfun.
2216 2011-04-03 Michael Matz <matz@suse.de>
2218 * tree.c (decl_init_priority_insert): Don't create entry for
2220 (decl_fini_priority_insert): Ditto.
2221 (fields_compatible_p, find_compatible_field): Remove.
2222 * tree.h (fields_compatible_p, find_compatible_field): Remove.
2223 * gimple.c (gimple_compare_field_offset): Adjust block comment.
2225 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
2227 * combine.c (try_combine): Remove useless local variable.
2229 2011-04-03 Richard Guenther <rguenther@suse.de>
2230 Ira Rosen <ira.rosen@linaro.org>
2232 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
2233 non-variable offsets and compare the remaining bases of the two
2234 accesses instead of looking for exact same data-ref.
2236 2011-04-02 Kai Tietz <ktietz@redhat.com>
2239 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
2241 * i386.c (ix86_is_msabi_thiscall): New helper function.
2242 (ix86_is_type_thiscall): New helper function.
2243 (ix86_comp_type_attributes): Handle thiscall for method-functions
2245 (init_cumulative_args): Likewise.
2246 (find_drap_reg): Likewise.
2247 (ix86_static_chain): Likewise.
2248 (x86_this_parameter): Likewise.
2249 (x86_output_mi_thunk): Likewise.
2251 2011-04-01 Olivier Hainque <hainque@adacore.com>
2252 Nicolas Setton <setton@adacore.com>
2253 Eric Botcazou <ebotcazou@adacore.com>
2255 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
2256 (add_gnat_descriptive_type_attribute): New function.
2257 (gen_array_type_die): Call it.
2258 (gen_enumeration_type_die): Likewise.
2259 (gen_struct_or_union_type_die): Likewise.
2260 (modified_type_die): Likewise.
2261 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
2262 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
2263 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
2265 2011-04-01 Jakub Jelinek <jakub@redhat.com>
2268 * dwarf2out.c (resolve_addr): Don't call force_decl_die
2269 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
2272 2011-03-17 Richard Guenther <rguenther@suse.de>
2275 * lto-cgraph.c (input_overwrite_node): Clear the abstract
2276 origin for decls in other ltrans units.
2277 (input_varpool_node): Likewise.
2279 2011-04-01 Jakub Jelinek <jakub@redhat.com>
2282 * expr.c (expand_assignment): Handle all possibilities
2283 if TO_RTX is CONCAT.
2284 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
2285 (store_split_bit_field): If SUBREG_REG (op0) or
2286 op0 itself has smaller mode than word, return it
2287 for offset 0 and const0_rtx for out-of-bounds stores.
2288 If word is const0_rtx, skip it.
2290 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
2292 * config/h8300/h8300.c (print_operand_address): Rename to...
2293 (h8300_print_operand_address): ...this. Make static. Adjust comments.
2294 Call h8300_print_operand and h8300_print_operand_address instead of
2295 print_operand and print_operand_address. Declare.
2296 (print_operand): Renake to...
2297 (h8300_print_operand): ...this. Make static. Adjust comments.
2298 Call h8300_print_operand instead of print_operand. Declare.
2299 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
2300 (h8300_register_move_cost): Likewise.
2301 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
2302 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
2303 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
2304 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
2305 * config/h8300/h8300-protos.h (print_operand): Delete.
2306 (print_operand_address): Delete.
2308 2011-04-01 Richard Henderson <rth@redhat.com>
2311 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
2312 in strict mode before dwarf4. Re-order tests to early out
2313 before switching sections.
2315 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
2317 * config/h8300/constraints.md: New file.
2318 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
2319 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
2320 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
2321 * config/h8300/predicates.md (bit_operand): Likewise.
2322 (incdec_operand): Use satisfies_constraint_M and
2323 satisfies_constraint_O. Don't use C code block.
2324 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
2325 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
2326 (compute_mov_length): Use satisfies_constraint_G.
2327 (fix_bit_operand): Use satisfies_constraint_U.
2328 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
2329 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
2330 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
2331 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
2332 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
2333 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
2334 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
2335 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
2336 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
2337 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
2338 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
2339 (EXTRA_MEMORY_CONSTRAINT): Delete.
2341 2011-04-01 Andrew Pinski <pinskia@gmail.com>
2342 Michael Meissner <meissner@linux.vnet.ibm.com>
2345 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
2346 operands, as per the specifications.
2348 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
2349 (vec_extract_evenv4sf): Ditto.
2350 (vec_extract_evenv8hi): Ditto.
2351 (vec_extract_evenv16qi): Ditto.
2352 (vec_extract_oddv4si): Ditto.
2354 2011-03-31 Mark Wielaard <mjw@redhat.com>
2356 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
2357 high_pc attribute if the CU has no associated code. Only output
2358 DW_AT_entry_pc for CU if not generating strict dwarf and
2361 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
2363 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
2364 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
2366 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
2367 * final.c (final_start_function): Call the new function rather
2368 than using a NULL argument for dwarf2out_frame_debug.
2370 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
2371 that contains the prologue.
2373 * haifa-sched.c (queue_insn): New arg REASON. All callers
2374 changed. Print it in debugging output.
2376 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
2378 * sched-ebb.c (begin_schedule_ready): Remove second argument.
2379 Split most of the code into...
2380 (begin_move_insn): ... here. New function.
2381 (ebb_sched_info): Add a pointer to it.
2382 * haifa-sched.c (scheduled_insns): New static variable.
2383 (sched_extend_ready_list): Allocate it.
2384 (schedule_block): Use it to record the order of scheduled insns.
2385 Perform RTL changes to move insns only after all scheduling
2386 decisions have been made.
2387 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
2388 begin_move_insn field.
2389 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
2390 * sched-int.h (struct haifa_sched_info): Remove second argument
2391 from begin_schedule_ready hook. Add new member begin_move_insn.
2392 * sched-rgn.c (begin_schedule_ready): Remove second argument.
2393 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
2395 * haifa-sched.c (prune_ready_list): New function, broken out of
2397 (schedule_block): Use it.
2399 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2401 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
2403 2011-04-01 Kai Tietz <ktietz@redhat.com>
2405 * config.gcc (*-*-mingw*): Allow as option the
2406 posix threading model.
2407 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
2408 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
2410 (CPP_SPEC): Add pthread/no-pthread handling.
2411 (LIB_SPEC): Likewise.
2412 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
2413 (LIB_SPEC): Likewise.
2414 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
2415 flag to pass -pthread option for shared libgcc build.
2416 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
2417 for shared libgcc build.
2418 * config/i386/t-mingw-pthread: New file.
2419 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
2420 New define to enable use of library pthread by default.
2421 * config/i386/mingw.opt (pthread): New driver option.
2422 (no-pthread): New driver option.
2423 * config/i386/cygming.opt: Make sure trailing empty line is retained.
2424 * config/i386/mingw-w64.opt: Likewise.
2426 2011-04-01 Gary Funck <gary@intrepid.com>
2428 * c-decl.c (grokdeclarator): Fix formatting.
2430 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
2432 * expr.c (emit_block_move_via_movmem): Use n_generator_args
2433 instead of n_operands.
2434 (set_storage_via_setmem): Likewise.
2435 * optabs.c (maybe_gen_insn): Likewise.
2436 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
2437 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
2438 (mips_expand_builtin_direct): Likewise.
2439 * config/spu/spu.c (expand_builtin_args): Likewise.
2441 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
2443 * recog.h (insn_data_d): Add n_generator_args.
2444 * genoutput.c (data): Likewise.
2445 (output_insn_data): Print it.
2446 (max_opno, num_dups): Delete.
2447 (scan_operands): Just fill in "d->operand[...]".
2448 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
2450 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
2452 * gensupport.h (pattern_stats): New structure.
2453 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
2454 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
2455 (max_operand_1, max_operand_vec): Delete.
2456 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
2458 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
2460 * emit-rtl.c (emit_pattern_after_setloc): New function.
2461 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
2462 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
2463 (emit_pattern_after): New function.
2464 (emit_insn_after, emit_jump_insn_after): Call it.
2465 (emit_call_insn_after, emit_debug_insn_after): Likewise.
2466 (emit_pattern_before_setloc): New function.
2467 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
2468 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
2470 (emit_pattern_before): New function.
2471 (emit_insn_before, emit_jump_insn_before): Call it.
2472 (emit_call_insn_before, emit_debug_insn_before): Likewise.
2474 2011-03-31 Richard Henderson <rth@redhat.com>
2476 * dwarf2out.c (dw_separate_line_info_ref): Remove.
2477 (dw_separate_line_info_entry): Remove.
2478 (enum dw_line_info_opcode): New.
2479 (dw_line_info_entry): Use it.
2480 (dw_line_info_table, dw_line_info_table_p): New.
2481 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
2482 (line_info_table, line_info_label_num): Remove.
2483 (line_info_table_in_use): Remove.
2484 (separate_line_info_table): Remove.
2485 (separate_line_info_table_allocated): Remove.
2486 (separate_line_info_table_in_use): Remove.
2487 (LINE_INFO_TABLE_INCREMENT): Remove.
2488 (line_info_label_num): New.
2489 (cur_line_info_table): New.
2490 (text_section_line_info, cold_text_section_line_info): New.
2491 (separate_line_info): New.
2492 (SEPARATE_LINE_CODE_LABEL): Remove.
2493 (print_dwarf_line_table): Remove.
2494 (debug_dwarf): Don't dump it.
2495 (output_one_line_info_table): New.
2496 (output_line_info): Use it.
2497 (new_line_info_table): New.
2498 (set_cur_line_info_table): New.
2499 (dwarf2out_switch_text_section): Use it.
2500 (dwarf2out_begin_function): Likewise.
2501 (push_dw_line_info_entry): New.
2502 (dwarf2out_source_line): Rewrite for new line info tables.
2503 (dwarf2out_init): Remove dead initailizations.
2505 2011-03-31 Joseph Myers <joseph@codesourcery.com>
2507 * opts.h (cl_option): Add comments to fields. Add bit-fields for
2509 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
2510 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
2511 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
2512 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
2513 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
2514 * opt-functions.awk (flag_init, switch_bit_fields): New.
2515 (switch_flags): Don't handle flags moved to bit-fields. Don't
2516 generate CL_MISSING_OK or CL_SAVE.
2517 * optc-gen.awk: Update to generate bit-field output as well as
2519 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
2520 bit-field instead of CL_REJECT_DRIVER flag.
2521 * opts-common.c (generate_canonical_option,
2522 decode_cmdline_option): Use bit-fields instead of CL_* flags.
2523 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
2524 instead of CL_REJECT_NEGATIVE flag.
2525 * toplev.c (print_switch_values): Use cl_report bit-field instead
2528 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
2530 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
2531 a zero minimum index only if it is redundant.
2533 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
2535 PR rtl-optimization/48381
2536 * ira-color.c (assign_hard_reg): Use hard reg set intersection
2537 instead of ira_class_hard_reg_index for calculating conflicting
2540 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
2542 * cprop.c: Clean up hash table building.
2543 (reg_avail_info): Remove.
2544 (oprs_available_p): Remove.
2545 (record_last_reg_set_info): Remove.
2546 (record_last_set_info): Remove.
2547 (reg_available_p): New function.
2548 (gcse_constant_p): Do not treat unfolded conditions as constants.
2549 (make_set_regs_unavailable): New function.
2550 (hash_scan_set): Simplify with new reg_available_p.
2551 (compute_hash_table_work): Traverse insns stream only once.
2552 Do not compute reg_avail_info. Traverse insns in reverse order.
2553 Record implicit sets after recording explicit sets from the block.
2555 2011-03-31 Michael Matz <matz@suse.de>
2557 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
2559 2011-03-31 Anatoly Sokolov <aesok@post.ru>
2561 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
2562 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
2563 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
2564 (h8300_mode_dependent_address_p): New function.
2565 (h8300_get_index): Make static.
2567 2011-03-31 Jeff Law <law@redhat.com>
2569 * reload1.c (elimination_effects): Fix typo in recent change.
2571 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
2572 typo potentially leading to null pointer dereference.
2574 * caller-save.c (new_saved_hard_reg): Eliminate return value.
2575 (setup_save_areas): Corresponding changes to avoid useless
2578 * jump.c (reversed_comparison_code_parts): Avoid successive return
2579 statements when REVERSE_CONDITION is defined.
2581 * expr.c (expand_assignment): Avoid useless assignments.
2582 (expand_expr_real_1): Likewise.
2583 (expand_expr_real_2): Avoid useless statements.
2585 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
2587 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
2589 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
2592 * stmt.c (expand_expr_stmt): Avoid useless assignment.
2594 2011-03-31 Joseph Myers <joseph@codesourcery.com>
2597 * doc/tm.texi.in (TARGET_VERSION): Remove.
2598 * doc/tm.texi: Regenerate.
2599 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
2600 * collect2.c (main): Don't use TARGET_VERSION.
2601 * mips-tdump.c (main): Don't use TARGET_VERSION.
2602 * mips-tfile.c (main): Don't use TARGET_VERSION.
2603 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
2604 * config/rs6000/vxworksae.h: Remove.
2605 * config/alpha/alpha.h (TARGET_VERSION): Remove.
2606 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
2607 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
2608 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
2609 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
2610 * config/arm/arm.h (TARGET_VERSION): Remove.
2611 * config/arm/coff.h (TARGET_VERSION): Remove.
2612 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
2613 * config/arm/elf.h (TARGET_VERSION): Remove.
2614 * config/arm/freebsd.h (TARGET_VERSION): Remove.
2615 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
2616 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
2617 * config/arm/pe.h (TARGET_VERSION): Remove.
2618 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
2619 * config/arm/semi.h (TARGET_VERSION): Remove.
2620 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
2621 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
2622 * config/arm/vxworks.h (TARGET_VERSION): Remove.
2623 * config/avr/avr.h (TARGET_VERSION): Remove.
2624 * config/bfin/bfin.h (TARGET_VERSION): Remove.
2625 * config/fr30/fr30.h (TARGET_VERSION): Remove.
2626 * config/frv/frv.h (TARGET_VERSION): Remove.
2627 * config/h8300/h8300.h (TARGET_VERSION): Remove.
2628 * config/i386/cygwin.h (TARGET_VERSION): Remove.
2629 * config/i386/darwin.h (TARGET_VERSION): Remove.
2630 * config/i386/darwin64.h (TARGET_VERSION): Remove.
2631 * config/i386/djgpp.h (TARGET_VERSION): Remove.
2632 * config/i386/freebsd.h (TARGET_VERSION): Remove.
2633 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
2634 * config/i386/gnu.h (TARGET_VERSION): Remove.
2635 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
2636 * config/i386/i386elf.h (TARGET_VERSION): Remove.
2637 * config/i386/linux.h (TARGET_VERSION): Remove.
2638 * config/i386/linux64.h (TARGET_VERSION): Remove.
2639 * config/i386/lynx.h (TARGET_VERSION): Remove.
2640 * config/i386/mingw32.h (TARGET_VERSION): Remove.
2641 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
2642 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
2643 * config/i386/netware.h (TARGET_VERSION): Remove.
2644 * config/i386/nto.h (TARGET_VERSION): Remove.
2645 * config/i386/openbsd.h (TARGET_VERSION): Remove.
2646 * config/i386/vxworks.h (TARGET_VERSION): Remove.
2647 * config/ia64/elf.h (TARGET_VERSION): Remove.
2648 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
2649 * config/ia64/hpux.h (TARGET_VERSION): Remove.
2650 * config/ia64/linux.h (TARGET_VERSION): Remove.
2651 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
2652 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
2653 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
2654 * config/lm32/lm32.h (TARGET_VERSION): Remove.
2655 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
2656 * config/m32c/m32c.h (TARGET_VERSION): Remove.
2657 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
2658 * config/m32r/m32r.h (TARGET_VERSION): Remove.
2659 * config/m68k/linux.h (TARGET_VERSION): Remove.
2660 * config/m68k/m68k.h (TARGET_VERSION): Remove.
2661 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
2662 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
2663 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
2664 * config/mep/mep.h (TARGET_VERSION): Remove.
2665 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
2666 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
2667 * config/mips/iris6.h (MACHINE_TYPE): Remove.
2668 * config/mips/linux.h (TARGET_VERSION): Remove.
2669 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
2670 * config/mips/vxworks.h (TARGET_VERSION): Remove.
2671 * config/mmix/mmix.h (TARGET_VERSION): Remove.
2672 * config/mn10300/linux.h (TARGET_VERSION): Remove.
2673 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
2674 * config/pa/pa.h (TARGET_VERSION): Remove.
2675 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
2676 * config/picochip/picochip.h (TARGET_VERSION): Remove.
2677 * config/rs6000/aix.h (TARGET_VERSION): Remove.
2678 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
2679 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
2680 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
2681 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
2682 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
2683 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
2684 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
2685 * config/rs6000/linux.h (TARGET_VERSION): Remove.
2686 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
2687 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
2688 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
2689 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
2690 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
2691 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
2692 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
2693 * config/s390/linux.h (TARGET_VERSION): Remove.
2694 * config/s390/s390.h (TARGET_VERSION): Remove.
2695 * config/s390/tpf.h (TARGET_VERSION): Remove.
2696 * config/score/score.h (TARGET_VERSION): Remove.
2697 * config/sh/linux.h (TARGET_VERSION): Remove.
2698 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
2699 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
2700 * config/sh/sh.h (TARGET_VERSION): Remove.
2701 * config/sh/sh64.h (TARGET_VERSION): Remove.
2702 * config/sh/superh.h (TARGET_VERSION): Remove.
2703 * config/sh/vxworks.h (TARGET_VERSION): Remove.
2704 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
2705 * config/sparc/linux.h (TARGET_VERSION): Remove.
2706 * config/sparc/linux64.h (TARGET_VERSION): Remove.
2707 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
2708 TARGET_NAME32, TARGET_NAME): Remove.
2709 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
2710 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
2711 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
2712 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
2713 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
2714 * config/spu/spu.h (TARGET_VERSION): Remove.
2715 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
2716 * config/v850/v850.h (TARGET_VERSION): Remove.
2717 * config/vax/linux.h (TARGET_VERSION): Remove.
2718 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
2719 * config/xtensa/elf.h (TARGET_VERSION): Remove.
2720 * config/xtensa/linux.h (TARGET_VERSION): Remove.
2722 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
2725 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
2726 frame-related from frame-unrelated adjustments to the stack pointer.
2728 2011-03-31 Jakub Jelinek <jakub@redhat.com>
2730 * common.opt (fdebug-types-section): Move earlier.
2731 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
2733 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
2735 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
2738 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
2740 * tree.h (CASE_CHAIN): Define.
2741 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
2742 (gimple_redirect_edge_and_branch): Likewise.
2744 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
2747 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
2750 2011-03-30 Jeff Law <law@redhat.com>
2752 * PR bootstrap/48371
2753 * reload1.c (reload): Fix botch in last change.
2755 * reload.h (struct reload): Fix typo introduced in last change.
2757 2011-03-30 Joseph Myers <joseph@codesourcery.com>
2759 * config/arm/arm.opt (mhard-float, msoft-float): Mark
2760 Undocumented. Remove help text.
2761 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
2764 2011-03-30 Joseph Myers <joseph@codesourcery.com>
2766 * doc/options.texi (NegativeAlias): Document.
2767 (Alias): Mention NegativeAlias.
2768 * opt-functions.awk: Handle NegativeAlias.
2769 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
2770 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
2771 * opts.h (CL_NEGATIVE_ALIAS): Define.
2772 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
2773 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
2775 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
2777 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
2778 mno-spe and mno-isel instead of mspe=no and -misel=no.
2780 2011-03-29 Mark Wielaard <mjw@redhat.com>
2782 * common.opt (fdebug-types-section): New flag.
2783 * doc/invoke.texi: Document new -fno-debug-types-section flag.
2784 * dwarf2out.c (use_debug_types): New define.
2785 (struct die_struct): Mark die_id with GTY desc use_debug_types.
2786 (print_die): Guard output of type unit signatures using
2788 (build_abbrev_table): Replace assert of dwarf_version >= 4
2789 with assert on use_debug_types.
2790 (size_of_die): Likewise.
2791 (unmark_dies): Likewise.
2792 (value_format): Decide AT_ref_external form on use_debug_types.
2793 (output_die): Replace dwarf_version version check guard with
2794 use_debug_types where appropriate.
2795 (modified_type_die): Likewise.
2796 (gen_reference_type_die): Likewise.
2797 (dwarf2out_start_source_file): Likewise.
2798 (dwarf2out_end_source_file): Likewise.
2799 (prune_unused_types_walk_attribs): Likewise.
2800 (dwarf2out_finish): Likewise.
2802 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
2804 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
2806 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
2808 PR rtl-optimization/48332
2809 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
2810 mode of input operand N and modeN to its actual mode.
2812 2011-03-30 Jeff Law <law@redhat.com>
2814 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
2815 define accessor macro.
2816 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
2817 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
2818 (reg_equiv_init): Likewise.
2819 (reg_equivs_size): New variable.
2820 (reg_equiv_init_size): Remove.
2821 (allocate_initial_values): Move prototype to here from....
2822 * integrate.h (allocate_initial_values): Remove prototype.
2823 * integrate.c: Include reload.h.
2824 (allocate_initial_values): Corresponding changes.
2825 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
2826 (fix_reg_equiv_init, no_equiv): Corresponding changes.
2827 (update_equiv_regs): Corresponding changes.
2828 (ira): Corresponding changes.
2829 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
2830 (push_secondary_reload): Corresponding changes.
2831 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
2832 (make_memloc, find_reloads_address): Corresponding changes.
2833 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
2834 (find_reloads_address_1): Corresponding changes.
2835 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
2836 (refers_to_regno_for_reload_p): Corresponding changes.
2837 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
2838 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
2839 * reload1.c: Include ggc.h.
2840 (grow_reg_equivs): New function.
2841 (replace_pseudos_in, reload): Corresponding changes.
2842 (calculate_needs_all_insns, alter_regs): Corresponding changes.
2843 (eliminate_regs_1, elimination_effects): Corresponding changes.
2844 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
2845 (delete_output_reload): Likewise.
2846 * caller-save.c (mark_referenced_regs): Corresponding changes.
2847 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
2848 * frv/predicates.md (frv_load_operand): Corresponding changes.
2849 * microblaze/microblaze.c (double_memory_operand): Corresponding
2851 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
2852 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
2853 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
2854 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
2855 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
2857 * pa/pa.c (emit_move_sequence): Corresponding changes.
2858 * vax/vax.c (nonindexed_address_p): Corresponding changes.
2860 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
2863 * config/arm/arm.c (coproc_secondary_reload_class): Handle
2864 structure modes. Don't check neon_vector_mem_operand for
2865 vector or structure modes.
2867 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
2868 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2871 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
2872 operand 1 and reshuffle the operands to match.
2873 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
2875 2011-03-30 Christian Schüler <cschueler@gmx.de>
2878 * config/c.opt (F): Added 'Driver' to -F option.
2881 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
2883 * config/darwin.opt: Added '-arch' option.
2885 2011-03-30 Nick Clifton <nickc@redhat.com>
2887 * config/rx/rx.md: Add peepholes and patterns to combine
2888 extending loads and simple arithmetic instructions.
2889 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
2890 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
2891 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
2892 modes to use pre-decrement and post-increment addressing.
2893 (rx_is_restricted_memory_address): Add range checking of REG+INT
2895 (rx_print_operand): Add support for %Q. Fix handling of %Q.
2896 (rx_memory_move_cost): Adjust cost of stores.
2897 (rx_adjust_insn_length): New function.
2899 2011-03-30 Jakub Jelinek <jakub@redhat.com>
2902 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
2903 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
2904 matching arg00/arg01 types.
2906 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
2908 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
2909 last_location to UNKNOWN_LOCATION.
2911 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
2914 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
2917 2011-03-30 Joseph Myers <joseph@codesourcery.com>
2918 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2921 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
2923 (sparc_cpu): Likewise.
2924 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
2927 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
2931 PR rtl-optimization/48345
2932 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
2933 hard regs for given mode from profitable regs when doing secondary
2936 2011-03-29 Jeff Law <law@redhat.com>
2939 * tree-ssa-threadupdate.c (struct redirection_data): Remove
2940 do_not_duplicate field.
2941 (lookup_redirection_data): Corresponding changes.
2942 (create_duplicates): Always create a template block.
2943 (redirect_edges): Remove code which reused the original block
2944 when it was going to become unreachable code.
2945 (thread_block): Don't set do_not_duplicate field.
2947 2011-03-29 Joseph Myers <joseph@codesourcery.com>
2949 * lto-opts.c (register_user_option_p, lto_register_user_option):
2950 Make type argument unsigned.
2951 * lto-streamer.h (lto_register_user_option): Make type argument
2953 * opth-gen.awk: Make CL_* macros unsigned.
2954 * opts-common.c (find_opt): Make lang_mask argument unsigned.
2955 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
2956 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
2957 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
2958 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
2959 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
2960 (find_opt): Make lang_mask argument unsigned.
2962 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
2964 PR rtl-optimization/48331
2965 PR rtl-optimization/48334
2966 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
2967 for any used algorithm.
2969 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
2971 * ira-conflicts.c (build_object_conflicts): Add unused attribute
2974 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
2976 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
2977 (alpha_option_override): Don't set alpha_sr_alias_set.
2978 (emit_frame_store_1): Use gen_frame_mem rather than calling
2980 (alpha_expand_epilogue): Ditto.
2982 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
2984 PR tree-optimization/48290
2985 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
2986 vectorization, check that relevant phis in the basic block after
2987 the inner loop are really inner loop's exit phis.
2989 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
2992 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
2993 (cached_dw_loc_list_def): New structure.
2994 (cached_dw_loc_list): New typedef.
2995 (cached_dw_loc_list_table): New variable.
2996 (cached_dw_loc_list_table_hash): New function.
2997 (cached_dw_loc_list_table_eq): Likewise.
2998 (add_location_or_const_value_attribute): Take a bool cache_p.
2999 Cache the list when the parameter is true.
3000 (gen_formal_parameter_die): Update caller.
3001 (gen_variable_die): Likewise.
3002 (dwarf2out_finish): Likewise.
3003 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
3004 while generating debug info for the decl.
3005 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
3006 (dwarf2out_init): Initialize cached_dw_loc_list_table.
3007 (resolve_addr): Cache the result of resolving a chain of
3010 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
3012 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
3013 conflict object hard regset nodes have intersecting hard reg sets.
3015 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
3016 after regstat_init_n_sets_and_refs.
3018 * ira.c: Add more comments at the top.
3019 (setup_stack_reg_pressure_class, setup_pressure_classes):
3020 Add comments how we compute the register pressure classes.
3021 (setup_allocno_and_important_classes): Add more comments.
3022 (setup_class_translate_array, reorder_important_classes)
3023 (setup_reg_class_relations): Add comments.
3025 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
3028 * ira-color.c: Add 2011 to the Copyright line.
3029 (assign_hard_reg): Add more comments.
3030 (improve_allocation): Ditto.
3032 * ira-costs.c: Add 2011 to the Copyright line.
3033 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
3035 (setup_regno_cost_classes_by_mode): Ditto.
3037 Initial patches from ira-improv branch:
3039 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
3041 * ira-build.c: (ira_create_object): Remove initialization of
3042 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
3043 (ira_create_allocno): Remove initialization of
3044 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
3045 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
3046 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3047 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
3048 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
3049 Initialize ALLOCNO_ADD_DATA.
3050 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
3051 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
3053 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
3054 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
3056 * ira.c (ira_reallocate): Remove.
3057 (setup_pressure_classes): Call
3058 ira_init_register_move_cost_if_necessary. Use
3059 ira_register_move_cost instead of ira_get_register_move_cost.
3060 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
3061 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
3063 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
3064 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3065 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
3066 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
3067 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
3068 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
3070 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
3071 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3072 (struct allocno_color_data): New.
3073 (allocno_color_data_t): New typedef.
3074 (allocno_color_data): New definition.
3075 (ALLOCNO_COLOR_DATA): New macro.
3076 (struct object_color_data): New.
3077 (object_color_data_t): New typedef.
3078 (object_color_data): New definition.
3079 (OBJECT_COLOR_DATA): New macro.
3080 (update_copy_costs, calculate_allocno_spill_cost): Call
3081 ira_init_register_move_cost_if_necessary. Use
3082 ira_register_move_cost instead of ira_get_register_move_cost.
3083 (move_spill_restore, update_curr_costs): Ditto.
3084 (allocno_spill_priority): Make it inline.
3085 (color_pass): Allocate and free allocno_color_dat and object_color_data.
3086 (struct coalesce_data, coalesce_data_t): New.
3087 (allocno_coalesce_data): New definition.
3088 (ALLOCNO_COALESCE_DATA): New macro.
3089 (merge_allocnos, coalesced_allocno_conflict_p): Use
3090 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
3091 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
3092 (coalesce_allocnos): Ditto.
3093 (setup_coalesced_allocno_costs_and_nums): Ditto.
3094 (collect_spilled_coalesced_allocnos): Ditto.
3095 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
3096 (setup_slot_coalesced_allocno_live_ranges): Ditto.
3097 (coalesce_spill_slots): Ditto.
3098 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
3099 free allocno_coalesce_data.
3101 * ira-conflicts.c: Fix formatting.
3102 (process_regs_for_copy): Call
3103 ira_init_register_move_cost_if_necessary. Use
3104 ira_register_move_cost instead of ira_get_register_move_cost.
3105 (build_object_conflicts): Optimize.
3107 * ira-costs.c (record_reg_classes): Optimize. Call
3108 ira_init_register_move_cost_if_necessary. Use
3109 ira_register_move_cost, ira_may_move_in_cost, and
3110 ira_may_move_out_cost instead of ira_get_register_move_cost and
3111 ira_get_may_move_cost.
3112 (record_address_regs): Ditto.
3113 (scan_one_insn): Optimize.
3114 (find_costs_and_classes): Optimize.
3115 (process_bb_node_for_hard_reg_moves): Call
3116 ira_init_register_move_cost_if_necessary. Use
3117 ira_register_move_cost instead of ira_get_register_move_cost.
3119 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
3120 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
3121 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
3122 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
3124 (ira_initiate_emit_data, ira_finish_emit_data)
3125 (create_new_allocno): New functions.
3126 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
3127 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
3128 Use ira_register_move_cost instead of ira_get_register_move_cost.
3130 * ira-int.h: Fix some comments.
3131 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
3132 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3133 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
3134 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
3136 (struct ira_allocno): Make mode and aclass a bitfield. Move other
3137 bitfield after mode. Make hard_regno a short int. Make
3138 hard_regno short. Remove first_coalesced_allocno and
3139 next_coalesced_allocno. Move mem_optimized_dest_p,
3140 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
3141 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
3142 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
3143 temp, colorable_p. Add new member add_data.
3144 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
3145 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
3146 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
3147 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
3148 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
3149 (ALLOCNO_ADD_DATA): New macro.
3150 (ira_emit_data_t): New typedef.
3151 (struct ira_emit_data): New. Move mem_optimized_dest_p,
3152 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
3153 from struct ira_allocno.
3154 (ALLOCNO_EMIT_DATA): New macro.
3155 (ira_allocno_emit_data, allocno_emit_reg): New.
3156 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
3157 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
3158 (OBJECT_ADD_DATA): New macro.
3159 (ira_reallocate): Remove.
3160 (ira_initiate_emit_data, ira_finish_emit_data): New.
3161 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
3162 (ira_init_register_move_cost_if_necessary): New.
3163 (ira_object_conflict_iter_next): Merge into
3164 ira_object_conflict_iter_cond.
3165 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
3167 * ira-live.c: (process_single_reg_class_operands): Call
3168 ira_init_register_move_cost_if_necessary. Use
3169 ira_register_move_cost instead of ira_get_register_move_cost.
3171 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
3173 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
3175 * ira-costs.c: Fix formatting.
3176 (cost_classes, cost_classes_num): Remove.
3177 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
3178 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
3179 (cost_classes_del, cost_classes_htab): New.
3180 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
3181 (initiate_regno_cost_classes, setup_cost_classes): New.
3182 (setup_regno_cost_classes_by_aclass): New.
3183 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
3184 (record_reg_classes): Use regno_cost_classes instead of
3185 cost_classes. Move checking opposite operand up.
3186 (record_address_regs): Use regno_cost_classes
3187 instead of cost_classes.
3188 (scan_one_insn): Ditto. Use always general register.
3189 (print_allocno_costs): Use regno_cost_classes instead of
3191 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
3192 (find_costs_and_classes): Set up cost classes for each registers.
3193 Use also their mode for this. Use regno_cost_classes instead of
3195 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
3197 (free_ira_costs, ira_init_costs): Don't use cost_classes.
3198 (ira_costs, ira_set_pseudo_classes): Call
3199 initiate_regno_cost_classes and finish_regno_cost_classes.
3201 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
3203 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
3205 * target.def (ira_cover_classes): Remove.
3207 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
3209 * doc/tm.texi.in: Ditto.
3211 * ira-conflicts.c: Remove mentioning cover classes from the file.
3212 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
3213 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
3215 * targhooks.c (default_ira_cover_classes): Remove.
3217 * targhooks.h (default_ira_cover_classes): Ditto.
3219 * haifa-sched.c: Remove mentioning cover classes from the file.
3220 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
3221 ira_pressure_classes and ira_pressure_classes_num instead of
3222 ira_reg_class_cover_size and ira_reg_class_cover. Use
3223 sched_regno_pressure_class instead of sched_regno_cover_class.
3224 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
3225 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3227 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
3228 classes from the file.
3229 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
3230 (struct object_hard_regs, struct object_hard_regs_node): New.
3231 (struct ira_object): New members profitable_hard_regs,
3232 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
3233 (struct ira_allocno): Rename cover_class to aclass. Rename
3234 cover_class_cost and updated_cover_class_cost to class_cost and
3235 updated_class_cost. Remove splay_removed_p and
3236 left_conflict_size. Add new members colorable_p.
3237 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
3238 (ALLOCNO_COLORABLE_P): New macro.
3239 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
3240 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
3241 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
3242 (OBJECT_...): Rename parameter C to O.
3243 (OBJECT_PROFITABLE_HARD_REGS): New macro.
3244 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
3245 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
3246 (struct target_ira_int): New members x_ira_max_memory_move_cost,
3247 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
3248 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
3249 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
3250 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
3251 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
3252 x_ira_reg_class_subunion.
3253 (ira_max_memory_move_cost, ira_max_register_move_cost)
3254 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
3255 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
3256 (ira_important_class_nums, ira_reg_class_superunion): New macros.
3257 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
3258 (ira_reg_class_union): Rename to ira_reg_class_subunion.
3259 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3260 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
3261 (ira_tune_allocno_costs_and_cover_classes): Rename to
3262 ira_tune_allocno_costs.
3263 (ira_debug_hard_regs_forest): New.
3264 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
3265 (ira_object_conflict_iter_next): Fix comments.
3266 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
3267 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
3268 cover_class to aclass.
3269 (ira_allocate_and_accumulate_costs): Ditto.
3270 (ira_allocate_and_set_or_copy_costs): Ditto.
3272 * opts.c (decode_options): Remove ira_cover_class check.
3274 * ira-color.c: Remove mentioning cover classes from the file. Use
3275 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
3276 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
3277 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
3278 (splay-tree.h): Remove include.
3279 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
3280 before copy_freq_compare_func.
3281 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
3282 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
3284 (hard_regs_roots, hard_regs_node_vec): Ditto.
3285 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
3286 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
3287 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
3288 (create_new_object_hard_regs_node): Ditto.
3289 (add_new_object_hard_regs_node_to_forest): Ditto.
3290 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
3291 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
3293 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
3294 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
3295 (remove_unused_object_hard_regs_nodes): Ditto.
3296 (enumerate_object_hard_regs_nodes): Ditto.
3297 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
3298 (object_hard_regs_subnode_t): Ditto.
3299 (struct object_hard_regs_subnode): Ditto.
3300 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
3301 (setup_object_hard_regs_subnode_index): Ditto.
3302 (get_object_hard_regs_subnodes_num): Ditto.
3303 (form_object_hard_regs_nodes_forest): Ditto.
3304 (finish_object_hard_regs_nodes_tree): Ditto.
3305 (finish_object_hard_regs_nodes_forest): Ditto.
3306 (allocnos_have_intersected_live_ranges_p): Rename to
3307 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
3308 (pseudos_have_intersected_live_ranges_p): Rename to
3309 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
3310 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
3311 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
3312 (update_copy_costs): Remove assert. Skip cost update if the hard
3313 reg does not belong the class.
3314 (assign_hard_reg): Process only profitable hard regs.
3315 (uncolorable_allocnos_num): Make it scalar.
3316 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
3317 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
3318 and ira_reg_class_max_nregs.
3319 (bucket_allocno_compare_func): Check frequency first.
3320 (sort_bucket): Add compare function as a parameter.
3321 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
3322 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
3323 (push_allocno_to_stack): Rewrite for checking new allocno
3325 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
3326 (push_only_colorable): Pass new parameter to sort_bucket.
3327 (push_allocno_to_spill): Remove.
3328 (allocno_spill_priority_compare): Make it inline and rewrite.
3329 (splay_tree_allocate, splay_tree_free): Remove.
3330 (allocno_spill_sort_compare): New function.
3331 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
3332 build and use splay tree. Choose first allocno in uncolorable
3333 allocno bucket to spill. Remove setting spill cost.
3334 (all_conflicting_hard_regs): Remove.
3335 (setup_allocno_available_regs_num): Check only profitable hard
3336 regs. Print info about hard regs nodes.
3337 (setup_allocno_left_conflicts_size): Remove.
3338 (put_allocno_into_bucket): Don't call
3339 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
3340 (improve_allocation): New.
3341 (color_allocnos): Call setup_profitable_hard_regs,
3342 form_object_hard_regs_nodes_forest, improve_allocation,
3343 finish_object_hard_regs_nodes_forest. Setup spill cost.
3344 (print_loop_title): Use pressure classes.
3345 (color_allocnso): Ditto.
3346 (do_coloring): Remove allocation and freeing splay_tree_node_pool
3347 and allocnos_for_spilling.
3348 (ira_sort_regnos_for_alter_reg): Don't setup members
3349 {first,next}_coalesced_allocno.
3350 (color): Remove allocating and freeing removed_splay_allocno_vec.
3351 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
3352 prohibited_class_mode_regs.
3354 * ira-lives.c: Remove mentioning cover classes from the file. Fix
3356 (update_allocno_pressure_excess_length): Use pressure classes.
3357 (inc_register_pressure, dec_register_pressure): Check for pressure
3359 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
3360 pressure class. Use ira_reg_class_nregs instead of
3361 ira_reg_class_max_nregs.
3362 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
3363 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
3364 (single_reg_class): Use ira_reg_class_nregs instead of
3365 ira_reg_class_max_nregs.
3366 (process_bb_node_lives): Use pressure classes.
3368 * ira-emit.c: Remove mentioning cover classes from the file. Use
3369 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
3370 (change_loop): Use pressure classes.
3371 (modify_move_list): Call ira_set_allocno_class instead of
3372 ira_set_allocno_cover_class.
3374 * ira-build.c: Remove mentioning cover classes from the file. Use
3375 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
3376 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
3377 ALLOCNO_UPDATED_CLASS_COST instead of
3378 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
3379 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
3380 (ira_create_allocno): Remove initialization of
3381 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
3382 ALLOCNO_COLORABLE_P.
3383 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
3384 Update conflict regs for the objects.
3385 (create_cap_allocno): Remove assert. Don't propagate
3386 ALLOCNO_AVAILABLE_REGS_NUM.
3387 (ira_free_allocno_costs): New function.
3388 (finish_allocno): Change a part of code into call of
3389 ira_free_allocno_costs.
3390 (low_pressure_loop_node_p): Use pressure classes.
3391 (object_range_compare_func): Don't compare classes.
3392 (setup_min_max_conflict_allocno_ids): Ditto.
3394 * loop-invariant.c: Remove mentioning cover classes from the file.
3395 Use ira_pressure_classes and ira_pressure_classes_num instead of
3396 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
3397 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
3398 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3399 Use reg_allocno_class instead of reg_cover_class.
3400 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
3401 STACK_REG_COVER_CLASS.
3402 (get_regno_cover_class): Rename to get_regno_pressure_class.
3403 (move_loop_invariants): Initialize and finalize regstat.
3405 * ira.c: Remove mentioning cover classes from the file. Add
3406 comments about coloring without cover classes. Use ALLOCNO_CLASS
3407 instead of ALLOCNO_COVER_CLASS. Fix formatting.
3408 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
3409 setup_class_subset_and_memory_move_costs.
3410 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
3411 (setup_cover_and_important_classes): Rename to
3412 setup_allocno_and_important_classes.
3413 (setup_class_translate_array): New.
3414 (setup_class_translate): Call it for allocno and pressure classes.
3415 (cover_class_order): Rename to allocno_class_order.
3416 (comp_reg_classes_func): Use ira_allocno_class_translate instead
3417 of ira_class_translate.
3418 (reorder_important_classes): Set up ira_important_class_nums.
3419 (setup_reg_class_relations): Set up ira_reg_class_superunion.
3420 (print_class_cover): Rename to print_classes. Add parameter.
3421 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3422 Print pressure classes too.
3423 (find_reg_class_closure): Rename to find_reg_classes. Don't call
3424 setup_reg_subclasses.
3425 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
3426 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
3427 (setup_prohibited_class_mode_regs): Use
3428 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
3429 (clarify_prohibited_class_mode_regs): New function.
3430 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
3431 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
3432 (ira_init_once): Initialize them.
3433 (free_register_move_costs): Process them.
3434 (ira_init): Move calls of find_reg_classes and
3435 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
3436 Call clarify_prohibited_class_mode_regs.
3437 (ira_no_alloc_reg): Remove.
3438 (too_high_register_pressure_p): Use pressure classes.
3440 * sched-deps.c: Remove mentioning cover classes from the file.
3441 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
3442 ira_pressure_classes and ira_pressure_classes_num instead of
3443 ira_reg_class_cover_size and ira_reg_class_cover.
3444 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
3445 sched_regno_pressure_class instead of sched_regno_cover_class.
3446 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
3447 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3449 * ira.h: Add 2010 to Copyright.
3450 (ira_no_alloc_reg): Remove external.
3451 (struct target_ira): Rename x_ira_hard_regno_cover_class,
3452 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
3453 x_ira_class_translate to x_ira_hard_regno_allocno_class,
3454 x_ira_allocno_classes_num, x_ira_allocno_classes, and
3455 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
3456 x_ira_pressure_classes, x_ira_pressure_class_translate, and
3457 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
3458 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
3459 x_ira_no_alloc_regs.
3460 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
3461 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
3462 ira_allocno_classes_num and ira_allocno_classes.
3463 (ira_class_translate): Rename to ira_allocno_class_translate.
3464 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
3465 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
3466 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
3467 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
3468 (ira_no_alloc_regs): New.
3470 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
3471 classes from the file. Use ALLOCNO_CLASS instead of
3472 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
3473 ALLOCNO_COVER_CLASS_COST.
3474 (regno_cover_class): Rename to regno_aclass.
3475 (record_reg_classes): Use ira_reg_class_subunion instead of
3476 ira_reg_class_union.
3477 (record_address_regs): Check overflow.
3478 (scan_one_insn): Ditto.
3479 (print_allocno_costs): Print total mem cost fore regional allocation.
3480 (print_pseudo_costs): Use REG_N_REFS.
3481 (find_costs_and_classes): Use classes intersected with them on the
3482 1st pass. Check overflow. Use ira_reg_class_subunion instead of
3483 ira_reg_class_union. Use ira_allocno_class_translate and
3484 regno_aclass instead of ira_class_translate and regno_cover_class.
3485 Modify code for finding regno_aclass. Setup preferred classes for
3487 (setup_allocno_cover_class_and_costs): Rename to
3488 setup_allocno_class_and_costs. Use regno_aclass instead of
3489 regno_cover_class. Use ira_set_allocno_class instead of
3490 ira_set_allocno_cover_class.
3491 (init_costs, finish_costs): Use regno_aclass instead of
3493 (ira_costs): Use setup_allocno_class_and_costs instead of
3494 setup_allocno_cover_class_and_costs.
3495 (ira_tune_allocno_costs_and_cover_classes): Rename to
3496 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
3497 by processing objects. Use ira_reg_class_max_nregs instead of
3498 ira_reg_class_nregs.
3500 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
3502 * sched-int.h: Remove mentioning cover classes from the file.
3503 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
3505 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
3506 classes from the file.
3507 (struct reg_pref): Rename coverclass into allocnoclass.
3508 (reg_cover_class): Rename to reg_allocno_class.
3510 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
3512 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
3514 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
3516 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
3518 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
3520 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
3522 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
3524 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
3526 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
3528 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
3530 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
3531 (i386_ira_cover_classes): Ditto.
3533 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
3535 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
3537 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
3539 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
3541 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
3543 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
3545 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
3546 (mips_ira_cover_classes): Ditto.
3548 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
3550 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
3552 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
3554 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
3556 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
3558 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
3559 (IRA_COVER_CLASSES_VSX): Ditto.
3561 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
3562 (rs6000_ira_cover_classes): Ditto.
3564 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
3566 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
3568 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
3570 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
3572 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
3574 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
3576 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
3578 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
3580 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
3582 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
3584 2011-03-29 Jakub Jelinek <jakub@redhat.com>
3587 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
3588 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
3589 dw_fde_unlikely_section_end_label, cold_in_std_section,
3590 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
3591 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
3593 (output_fde): Use dw_fde_second_{begin,end} if second is
3594 true, otherwise dw_fde_{begin,end}.
3595 (output_call_frame_info): Test dw_fde_second_begin != NULL
3596 instead of dw_fde_switched_sections.
3597 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
3598 fields, initialize new fields. Initialize in_std_section
3599 unconditionally from the first partition.
3600 (dwarf2out_end_epilogue): Don't override dw_fde_end when
3601 dw_fde_second_begin is non-NULL.
3602 (dwarf2out_switch_text_section): Stop initializing removed
3603 dw_fde_struct fields, initialize new fields, initialize
3604 also dw_fde_end here. Set dw_fde_switch_cfi even when
3605 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
3606 (struct var_loc_list_def): Add last_before_switch field.
3607 (arange_table, arange_table_allocated, arange_table_in_use,
3608 ARANGE_TABLE_INCREMENT, add_arange): Removed.
3609 (size_of_aranges): Count !in_std_section and !second_in_std_section
3610 hunks in fdes, instead of looking at arange_table_in_use.
3611 (output_aranges): Add aranges_length argument, don't call
3612 size_of_aranges here. Instead of using aranges_table*
3613 emit ranges for fdes when !in_std_section resp.
3614 !second_in_std_section.
3615 (dw_loc_list): Break ranges crossing section switch.
3616 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
3617 use dw_fde_second_end instead of dw_fde_end as end of last range.
3618 (gen_subprogram_die): Don't call add_arange. Use
3619 dw_fde_{begin,end} for first partition and if switched
3620 section dw_fde_second_{begin,end} for the second.
3621 (var_location_switch_text_section_1,
3622 var_location_switch_text_section): New functions.
3623 (dwarf2out_begin_function): Initialize cold_text_section even
3624 when function_section () isn't text_section.
3625 (prune_unused_types): Don't walk arange_table.
3626 (dwarf2out_finish): Don't needlessly test
3627 flag_reorder_blocks_and_partition when testing cold_text_section_used.
3628 If info_section_emitted, call size_of_aranges and if it indicates
3629 non-empty .debug_aranges, call output_aranges with the computed
3630 size. Stop using removed dw_fde_struct fields, use
3631 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
3635 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
3636 create ENTRY_VALUE if incoming or address of incoming's MEM
3638 * dwarf2out.c (mem_loc_descriptor): Don't emit
3639 DW_OP_GNU_entry_value of DW_OP_fbreg.
3640 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
3641 on ENTRY_VALUE is able to find the canonical parameter VALUE.
3642 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
3643 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
3645 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
3646 is a REG_P or MEM_P with REG_P address, compute hash directly
3647 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
3648 (preserve_only_constants): Don't clear VALUES forwaring
3649 ENTRY_VALUE to some other VALUE.
3651 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
3653 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
3656 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
3658 * cfgexpand.c (expand_gimple_cond): Always set the source location and
3659 block before expanding the statement.
3660 (expand_gimple_stmt_1): Likewise. Set them here...
3661 (expand_gimple_stmt): ...and not here. Tidy.
3662 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
3665 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
3667 * Makefile.in: New rule for cprop.o.
3668 * gcse.c: Move constant/copy propagation to cprop.c.
3669 (compute_local_properties): Only handle expression tables.
3670 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
3671 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
3672 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
3673 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
3674 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
3675 compute_cprop_data, find_used_regs, try_replace_reg,
3676 find_avail_set, cprop_jump, constprop_register, cprop_insn,
3677 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
3678 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
3679 find_bypass_set, reg_killed_on_edge, bypass_block,
3680 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
3681 execute_rtl_cprop, pass_rtl_cprop): Move to...
3682 * cprop.c: ...here. New file, constant/copy propagation for RTL
3683 moved from gcse.c to here with minor cleanups in duplicated code.
3685 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
3687 * config/i386/i386.c (flag_opts): Fix a typo in
3688 -mavx256-split-unaligned-store.
3690 2011-03-28 Anatoly Sokolov <aesok@post.ru>
3692 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
3693 LIBCALL_VALUE): Remove macros.
3694 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3695 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3696 (h8300_function_value, h8300_libcall_value,
3697 h8300_function_value_regno_p): New functions.
3699 2011-03-28 Anatoly Sokolov <aesok@post.ru>
3701 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
3703 2011-03-28 Jeff Law <law@redhat.com>
3705 * tree-ssa-threadupdate.c (redirect_edges): Call
3706 create_edge_and_update_destination_phis as needed.
3707 (create_edge_and_update_destination_phis): Accept new BB argument.
3708 All callers updated.
3709 (thread_block): Do not update the profile when threading around
3710 intermediate blocks.
3711 (thread_single_edge): Likewise.
3712 (determine_bb_domination_status): If BB is not a successor of the
3713 loop header, return NONDOMINATING.
3714 (register_jump_thread): Note when we register a jump thread around
3715 an intermediate block.
3716 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
3717 (thread_across_edge): Use it.
3719 2011-03-28 Tristan Gingold <gingold@adacore.com>
3721 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
3722 when for_return is 2.
3724 2011-03-28 Jeff Law <law@redhat.com>
3726 * var-tracking.c (canonicalize_values_mark): Delete unused
3728 (canonicalize_values_star, set_variable_part): Likewise.
3729 (clobber_variable_part, delete_variable_part): Likewise.
3731 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
3733 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
3735 2011-03-28 Martin Jambor <mjambor@suse.cz>
3737 * tree-inline.c (expand_call_inline): Do not check that destination
3739 (optimize_inline_calls): Assert that destination node is analyzed.
3740 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
3741 not call tree_lowering_passes.
3742 * cgraph.h (cgraph_analyze_function): Declare.
3743 * cgraphunit.c (cgraph_analyze_function): Make public.
3745 2011-03-28 Joseph Myers <joseph@codesourcery.com>
3747 * config/sparc/sparc-opts.h: New.
3748 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
3749 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
3750 (sparc_option_override): Store processor_type enumeration rather
3751 than string in cpu_default. Remove name and enumeration from
3752 cpu_table. Directly default -mcpu then default -mtune from -mcpu
3753 without using sparc_select. Use target_flags_explicit instead of
3755 * config/sparc/sparc.h (enum processor_type): Move to
3757 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
3758 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
3759 HeaderInclude entry.
3760 (mcpu=, mtune=): Use Var and Enum.
3761 (sparc_processor_type): New Enum and EnumValue entries.
3763 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3764 Iain Sandoe <iains@gcc.gnu.org>
3767 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
3769 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
3771 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
3772 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
3773 Insert new statements at it in lieu of STMT.
3774 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
3775 * tree-vect-stmts.c (vectorizable_store): Likewise.
3776 (vectorizable_load): Likewise.
3778 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
3780 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
3785 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
3787 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
3788 unaligned 256bit load/store.
3789 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
3790 (*avx_movdqu<avxmodesuffix>): Likewise.
3792 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3795 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
3796 * config/pa/pa.md (iordi3): Use new predicate in expander.
3799 2011-03-27 Anatoly Sokolov <aesok@post.ru>
3801 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
3802 FUNCTION_VALUE_REGNO_P): Remove macros.
3803 * config/mips/mips-protos.h (mips_function_value): Remove.
3804 * config/mips/mips.c (mips_function_value): Rename to...
3805 (mips_function_value_1): ... this. Make static. Handle receiving
3806 the function type in 'fn_decl_or_type' argument.
3807 (mips_function_value, mips_libcall_value,
3808 mips_function_value_regno_p): New function.
3809 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3810 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3812 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
3814 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
3815 and -mavx256-split-unaligned-store.
3816 (ix86_option_override_internal): Split 32-byte AVX unaligned
3817 load/store by default.
3818 (ix86_avx256_split_vector_move_misalign): New.
3819 (ix86_expand_vector_move_misalign): Use it.
3821 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
3822 -mavx256-split-unaligned-store.
3824 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
3825 256bit load/store. Generate unaligned store on misaligned memory
3827 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
3829 (*avx_movdqu<avxmodesuffix>): Likewise.
3831 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
3832 -mavx256-split-unaligned-store.
3834 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
3837 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
3840 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
3842 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
3843 opno arguments with an expand_operand. Use create_input_operand.
3844 (mips_prepare_builtin_target): Delete.
3845 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
3847 (mips_expand_builtin_direct): Use create_output_operand and
3848 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
3849 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
3850 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
3852 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
3854 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
3856 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
3858 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
3860 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
3861 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
3862 basic blocks and call commit_edge_insertions directly.
3863 (fixup_abnormal_edges): Move from here to...
3864 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
3865 on the edges and return whether some have actually been inserted.
3866 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
3869 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
3871 PR rtl-optimization/48144
3872 * sel-sched-ir.c (merge_history_vect): Factor out from ...
3873 (merge_expr_data): ... here.
3874 (av_set_intersect): Rename to av_set_code_motion_filter.
3875 Update all callers. Call merge_history_vect when an expression
3876 is found in both sets.
3877 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
3879 2011-03-26 Alan Modra <amodra@gmail.com>
3881 * config/rs6000/predicates.md (word_offset_memref_op): Handle
3882 cmodel medium addresses.
3883 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
3884 64-bit gpr loads and stores.
3885 (rs6000_secondary_reload_ppc64): New function.
3886 * config/rs6000/rs6000-protos.h: Declare it.
3887 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
3889 2011-03-26 Alan Modra <amodra@gmail.com>
3892 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
3893 GNU Go in traceback table.
3895 2011-03-25 Richard Henderson <rth@redhat.com>
3897 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
3898 if there are exactly 6 operands.
3899 (set_storage_via_setmem): Similarly.
3901 2011-03-25 Kai Tietz <ktietz@redhat.com>
3903 * collect2.c (write_c_file_stat): Handle backslash
3904 as right-hand directory separator.
3905 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
3906 checking just for slash.
3907 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
3908 instead of checking for trailing slash.
3909 * gcc.c (record_temp_file): Use filename_cmp instead
3911 (do_spec_1): Likewise.
3912 (replace_outfile_spec_function): Likewise.
3913 (is_directory): Use filename_ncmp instead of strncmp.
3914 (print_multilib_info): Likewise.
3915 * gcov.c (find_source): Use filename_cmp instead
3917 (make_gcov_file_name): Fix order of slash/backslash
3919 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
3920 (add_standard_paths): Likewise.
3921 * mips-tfile.c (saber_stop): Handle backslash.
3922 * prefix.c (update_path): Use filename_ncmp instead of
3924 * profile.c (output_location): Use filename_cmp instead
3926 * read-md.c (handle_toplevel_file): Handle backslash.
3927 * tlink.c (frob_extension): Likewise.
3928 * tree-cfg.c (same_line_p): Use filename_cmp instead of
3930 * tree-dump.c (dequeue_and_dump): Handle backslash.
3931 * tree.c (get_file_function_name): Likewise.
3932 * gengtype.c (read_input_list): Likewise.
3933 (get_file_realbasename): Likewise.
3934 (get_output_file_with_visibility): Use filename_cmp
3937 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
3939 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
3942 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
3944 * fold-const.c (expr_location_or): New function.
3945 (fold_truth_not_expr): Call it.
3947 2011-03-25 Jeff Law <law@redhat.com>
3949 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
3951 * c-family/c-common.c (def_fn_type): Likewise.
3952 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
3953 * emit-rtl.c (gen_rtvec): Likewise.
3954 * lto/lto-lang.c (def_fn_type): Likewise.
3956 2011-03-25 Richard Guenther <rguenther@suse.de>
3958 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
3959 also generate copies.
3960 (fini_copy_prop): Handle constant values properly.
3962 2011-03-25 Jakub Jelinek <jakub@redhat.com>
3964 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
3965 mode size instead of bitsize with DWARF2_ADDR_SIZE.
3966 (hash_loc_operands, compare_loc_operands): Handle
3967 DW_OP_GNU_entry_value.
3969 2011-03-25 Kai Tietz <ktietz@redhat.com>
3971 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
3972 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
3973 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
3974 comment and use macro TARGET_64BIT_MS_ABI instead.
3975 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
3976 and change default behavior for 32-bit MS_ABI.
3977 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
3978 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
3980 (ix86_cfun_abi): Likewise.
3981 (ix86_maybe_switch_abi): Adjust comment.
3982 (init_cumulative_args): Check for bit-ness in MS_ABI case.
3983 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
3984 instead of checking for SYSV_ABI.
3985 (ix86_nsaved_sseregs): Likewise.
3986 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
3988 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
3989 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
3990 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
3991 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
3992 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
3994 2011-03-25 Richard Guenther <rguenther@suse.de>
3996 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
3997 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
3998 (verify_gimple): Remove.
3999 * tree-cfg.c (verify_gimple_call): Merge verification
4001 (verify_gimple_phi): Merge verification from verify_stmts.
4002 (verify_gimple_label): New function.
4003 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
4004 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4005 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
4006 (verify_stmts): Rename to verify_gimple_in_cfg.
4007 (verify_gimple_in_cfg): New function.
4008 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
4009 * tree-ssa.c (verify_ssa): Likewise.
4010 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
4012 2011-03-25 Richard Guenther <rguenther@suse.de>
4014 * passes.c (init_optimization_passes): Add FRE pass after
4017 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
4018 Andrew Stubbs <ams@codesourcery.com>
4020 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
4022 (arm_movdi_vfp_cortexa8): New pattern.
4023 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
4024 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
4025 instructions when tuning for Cortex-A8. Set attribute "arch".
4026 * config/arm/arm.md: Move include arm-tune.md up a bit.
4027 (define_attr "arch"): Add "onlya8" and "nota8" values.
4028 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
4030 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
4034 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4036 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4037 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
4038 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4039 * passes.c (init_optimization_passes): Move
4040 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4042 2011-03-25 Kai Tietz <ktietz@redhat.com>
4044 * c-typeck.c (comptypes_internal): Replace target
4045 hook call of comp_type_attributes by version in tree.c file.
4046 * gimple.c (gimple_types_compatible_p_1): Likewise.
4047 * tree-ssa.c (useless_type_conversion_p): Likewise.
4048 * tree.c (build_type_attribute_qual_variant): Likewise.
4049 (attribute_value_equal): New static helper function.
4050 (comp_type_attributes): New function.
4051 (merge_attributes): Use attribute_value_equal for comparison.
4052 (attribute_list_contained): Likewise.
4053 * tree.h (comp_type_attributes): New prototype.
4055 2011-03-25 Richard Guenther <rguenther@suse.de>
4057 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
4058 of complex types at -O0.
4059 (verify_gimple_assign_binary): Likewise.
4060 (verify_gimple_assign_ternary): Likewise.
4062 2011-03-24 Mark Wielaard <mjw@redhat.com>
4064 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
4065 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4067 2011-03-24 Mark Wielaard <mjw@redhat.com>
4070 * dwarf2out.c (output_abbrev_section): Only write table when
4071 abbrev_die_table_in_use > 1.
4073 2011-02-24 Richard Henderson <rth@redhat.com>
4075 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
4076 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
4077 (alpha_expand_unaligned_load_words): Use extql.
4078 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
4079 (emit_insxl): Handle all modes for consistency.
4081 2011-02-24 Richard Henderson <rth@redhat.com>
4083 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
4084 (alpha_expand_unaligned_load): Likewise.
4085 (alpha_expand_unaligned_store): Likewise.
4086 (alpha_expand_unaligned_load_words): Likewise.
4087 (alpha_expand_unaligned_store_words): Likewise.
4088 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
4089 (alpha_split_lock_test_and_set_12): Likewise.
4090 (print_operand, alpha_fold_builtin_extxx): Likewise.
4091 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
4092 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
4093 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
4094 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
4095 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
4096 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
4097 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
4098 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
4099 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
4100 (extwl, extll, extql): Similarly.
4101 (inswh, inslh, insqh): Similarly.
4102 (mskbl, mskwl, mskll, mskql): Similarly.
4103 (mskwh, msklh, mskqh): Similarly.
4105 2011-02-24 Richard Henderson <rth@redhat.com>
4107 * config/alpha/alpha.md (attribute isa): Add er, ner.
4108 (attribute enabled): Handle them.
4109 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
4111 2011-02-24 Richard Henderson <rth@redhat.com>
4113 * config/alpha/alpha.md (attribute isa): Add vms.
4114 (attribute enabled): Handle it.
4115 (*movsf): Merge *movsf_{nofix,fix,nofp}.
4116 (*movdf): Merge *movdf_{nofix,fix,nofp}.
4117 (*movtf): Rename from *movtf_internal for consistency.
4118 (*movsi): Merge with *movsi_nt_vms.
4119 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
4120 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
4121 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
4122 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
4124 2011-02-24 Richard Henderson <rth@redhat.com>
4126 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
4127 (extendqisi2, extendhisi2): Likewise.
4128 (extendqidi2): Simplify BWX/non-BWX expansions.
4129 (extendhidi2): Similarly.
4131 2011-02-24 Richard Henderson <rth@redhat.com>
4133 * config/alpha/alpha.md (attribute isa): New.
4134 (attribute enabled): New.
4135 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
4136 (zero_extendqisi2, zero_extendqidi2): Similarly.
4137 (zero_extendhisi2, zero_extendhidi2): Similarly.
4138 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
4140 2011-02-24 Richard Henderson <rth@redhat.com>
4142 * config/alpha/predicates.md (input_operand): Revert last change;
4143 update comment to mention 32-bit VMS rather than Windows.
4145 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4147 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4148 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
4149 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4150 * passes.c (init_optimization_passes): Move
4151 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4153 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
4155 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
4157 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
4159 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
4162 2011-03-24 Jakub Jelinek <jakub@redhat.com>
4165 * simplify-rtx.c (simplify_const_unary_operation): Call
4166 real_convert when changing mode class with FLOAT_EXTEND.
4168 2011-03-24 Nick Clifton <nickc@redhat.com>
4170 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
4171 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
4172 * config/rx/rx.c (rx_option_override): Set align_jumps,
4173 align_loops and align_labels if not set by the user.
4174 (rx_align_for_label): New function.
4175 (rx_max_skip_for_label): New function.
4176 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
4177 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
4178 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
4179 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
4180 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
4182 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
4184 PR rtl-optimization/48263
4185 * optabs.c (expand_binop_directly): Reinstate convert_modes code
4186 and original commutative_p handling. Use maybe_gen_insn.
4188 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4190 * reload.c (find_reloads_subreg_address): Add address_reloaded
4191 parameter and return true there if the full address has been
4193 (find_reloads_toplev): Pass address_reloaded flag.
4194 (find_reloads_address_1): Don't use address_reloaded parameter.
4196 2011-03-24 Jeff Law <law@redhat.com>
4198 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
4199 unused variable "ann".
4200 (remove_unused_locals): Likewise.
4202 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
4205 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
4208 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4210 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
4211 for invalid symbolic addresses.
4212 (s390_secondary_reload): Don't use s390_check_symref_alignment for
4215 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
4217 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
4218 the argument in calls to fold_truth_not_expr.
4220 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4222 * tree.c (record_node_allocation_statistics): New function.
4223 (make_node_stat, copy_node_stat, build_string): Call it.
4224 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
4225 (build1_stat, build_omp_clause): Likewise.
4227 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
4229 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
4232 2011-03-24 Richard Guenther <rguenther@suse.de>
4234 PR tree-optimization/48271
4235 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
4236 blocks that still exist.
4238 2011-03-24 Richard Guenther <rguenther@suse.de>
4240 PR tree-optimization/48270
4241 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
4242 not free datarefs before ddrs.
4244 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
4246 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
4247 from the address built for a reference with variable offset.
4249 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
4252 * config/i386/i386.md (*movdf_internal_rex64): Do not split
4253 alternatives that can be handled with movq or movabsq insn.
4254 (*movdf_internal): Disable for !TARGET_64BIT.
4255 (*movdf_internal_nointeger): Ditto.
4256 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
4258 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4260 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
4261 (FUNCTION_ARG_ADVANCE): Likewise.
4262 * tm.texi.in: Change references to them to hook references.
4263 * tm.texi: Regenerate.
4264 * targhooks.c (default_function_arg): Eliminate check for target macro.
4265 (default_function_incoming_arg): Likewise.
4266 (default_function_arg_advance): Likewise.
4267 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
4268 (function_arg_advance): Likewise.
4269 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
4271 2011-03-24 Richard Guenther <rguenther@suse.de>
4274 * tree-object-size.c (addr_object_size): Do not double-account
4275 for MEM_REF offsets.
4277 2011-03-24 Diego Novillo <dnovillo@google.com>
4279 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
4280 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
4281 (lto_input_data_block): Move from lto-opts.c. Make extern.
4283 (lto_input_string): Rename from input_string. Make extern.
4285 * lto-streamer-out.c (lto_output_string_with_length): Rename from
4286 output_string_with_length.
4287 Output 0 to indicate a non-NULL string. Update all callers to
4289 (lto_output_string): Rename from output_string. Make extern.
4291 (lto_output_decl_state_streams): Make extern.
4292 (lto_output_decl_state_refs): Make extern.
4293 * lto-streamer.h (lto_input_string): Declare.
4294 (lto_input_data_block): Declare.
4295 (lto_output_string): Declare.
4296 (lto_output_string_with_length): Declare.
4297 (lto_output_decl_state_streams): Declare.
4298 (lto_output_decl_state_refs): Declare.
4300 2011-03-24 Richard Guenther <rguenther@suse.de>
4302 PR tree-optimization/46562
4303 * tree.c (build_invariant_address): New function.
4304 * tree.h (build_invariant_address): Declare.
4305 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
4306 a renamed function moved ...
4307 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
4308 Take valueization callback parameter.
4309 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
4310 * gimple-fold.h: New file.
4311 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
4312 (ccp_fold, fold_const_aggregate_ref,
4313 fold_ctor_reference, fold_nonarray_ctor_reference,
4314 fold_array_ctor_reference, fold_string_cst_ctor_reference,
4315 get_base_constructor): Move ...
4316 * gimple-fold.c: ... here.
4317 (gimple_fold_stmt_to_constant_1): New function
4318 split out from ccp_fold. Take a valueization callback parameter.
4319 Valueize all operands.
4320 (gimple_fold_stmt_to_constant): New wrapper function.
4321 (fold_const_aggregate_ref_1): New function split out from
4322 fold_const_aggregate_ref. Take a valueization callback parameter.
4323 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
4324 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
4325 invariant POINTER_PLUS_EXPRs to invariant form.
4326 (vn_valueize): New function.
4327 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
4328 * tree-vrp.c (vrp_valueize): New function.
4329 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
4330 to fold statements to constants.
4331 * tree-ssa-pre.c (eliminate): Properly guard propagation of
4332 function declarations.
4333 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
4334 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
4336 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
4338 * config/h8300/predicates.md (jump_address_operand): Fix register
4341 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
4343 * doc/invoke.texi (max-stores-to-sink): Document.
4344 * params.h (MAX_STORES_TO_SINK): Define.
4345 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
4346 if either vectorization or if-conversion is disabled.
4347 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
4348 tree-vect-data-refs.c vect_equal_offsets.
4349 (dr_equal_offsets_p): New function.
4350 (find_data_references_in_bb): Remove static.
4351 * tree-data-ref.h (find_data_references_in_bb): Declare.
4352 (dr_equal_offsets_p): Likewise.
4353 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
4354 (vect_drs_dependent_in_basic_block): Update calls to
4356 (vect_check_interleaving): Likewise.
4357 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
4358 (cond_if_else_store_replacement): Rename to...
4359 (cond_if_else_store_replacement_1): ... this. Change arguments and
4361 (cond_if_else_store_replacement): New function.
4362 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
4363 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
4365 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
4368 * config/arm/arm.md (casesi): Use the gen_int_mode() function
4369 to subtract lower bound instead of GEN_INT().
4371 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
4376 * doc/extend.texi (Alignment): Move section to match order in TOC.
4377 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
4378 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
4380 2011-03-23 Jeff Law <law@redhat.com>
4382 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
4383 before removing the edge.
4385 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
4386 it may have been freed by redirect_branch_edge or
4387 redirect_edge_succ_nodup.
4389 2011-03-23 Richard Guenther <rguenther@suse.de>
4391 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
4392 (check_va_list_escapes): Likewise.
4393 (check_all_va_list_escapes): Likewise.
4395 2011-03-23 Richard Guenther <rguenther@suse.de>
4397 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
4398 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
4399 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
4400 (alias.o): Likewise.
4401 (ipa-type-escape.o): Remove.
4402 (ipa-struct-reorg.o): Likewise.
4403 (GTFILES): Remove ipa-struct-reorg.c.
4404 * alias.c: Do not include ipa-type-escape.h.
4405 * tree-ssa-alias.c: Likewise.
4406 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
4407 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
4408 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
4409 and ipa-type-escape passes.
4410 * tree-pass.h (pass_ipa_type_escape): Remove.
4411 (pass_ipa_struct_reorg): Likewise.
4412 * ipa-struct-reorg.h: Remove.
4413 * ipa-struct-reorg.c: Likewise.
4414 * ipa-type-escape.h: Likewise.
4415 * ipa-type-escape.c: Likewise.
4416 * doc/invoke.texi (-fipa-struct-reorg): Remove.
4417 (--param struct-reorg-cold-struct-ratio): Likewise.
4418 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
4419 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
4420 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
4422 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4424 * config/s390/2084.md: Enable all insn reservations also for z9_ec
4425 cpu attribute value.
4426 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
4427 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
4428 * config/s390/s390.c (processor_flags_table): New constant array.
4429 (s390_handle_arch_option): Remove.
4430 (s390_handle_option): Remove s390_handle_arch_option invocations
4431 and OPT_mwarn_framesize_ handling.
4432 (s390_option_override): Remove s390_handle_arch_option invocation.
4433 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
4435 * config/s390/s390.md (cpu attribute): Add z9_ec value.
4436 * config/s390/s390.opt (s390_tune, s390_arch)
4437 (march=): Replace s390_arch_option enum and values with
4438 processor_type. Set variable name to s390_arch. Set
4439 initialization value.
4440 (mtune=): Replace s390_arch_option with processor_type. Set
4441 variable name to s390_tune. Set initialization value.
4443 2011-03-23 Julian Brown <julian@codesourcery.com>
4445 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
4446 accesses which are not naturally aligned.
4448 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
4451 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
4453 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
4455 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
4456 parameter from "int" to "enum insn_code".
4457 (expand_operand_type): New enum.
4458 (expand_operand): New structure.
4459 (create_expand_operand): New function.
4460 (create_fixed_operand, create_output_operand): Likewise
4461 (create_input_operand, create_convert_operand_to): Likewise.
4462 (create_convert_operand_from, create_address_operand): Likewise.
4463 (create_integer_operand): Likewise.
4464 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
4465 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
4466 (expand_insn, expand_jump_insn): Likewise.
4467 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
4468 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
4469 (expand_movstr, expand_builtin___clear_cache): Likewise.
4470 (expand_builtin_lock_release): Likewise.
4471 * explow.c (allocate_dynamic_stack_space): Likewise.
4472 (probe_stack_range): Likewise. Allow check_stack to FAIL,
4473 and use the default handling in that case.
4474 * expmed.c (check_predicate_volatile_ok): Delete.
4475 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
4476 (emit_cstore): Likewise.
4477 * expr.c (emit_block_move_via_movmem): Likewise.
4478 (set_storage_via_setmem, expand_assignment): Likewise.
4479 (emit_storent_insn, try_casesi): Likewise.
4480 (emit_single_push_insn): Likewise. Allow the expansion to fail.
4481 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
4482 (expand_vec_shift_expr, expand_binop_directly): Likewise.
4483 (expand_twoval_unop, expand_twoval_binop): Likewise.
4484 (expand_unop_direct, emit_indirect_jump): Likewise.
4485 (emit_conditional_move, vector_compare_rtx): Likewise.
4486 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
4487 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
4488 (expand_sync_lock_test_and_set): Likewise.
4489 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
4490 (emit_unop_insn): Likewise.
4491 (expand_copysign_absneg): Change icode to an insn_code.
4492 (create_convert_operand_from_type): New function.
4493 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
4494 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
4495 (expand_insn, expand_jump_insn): Likewise.
4496 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
4497 than const_int_operand for operand 2.
4499 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4501 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
4504 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
4506 * emit-rtl.c (emit_pattern_before_noloc): New function.
4507 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
4508 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
4509 (emit_pattern_after_noloc): New function.
4510 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
4511 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
4513 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
4515 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
4516 (__ffsDI2): Likewise.
4518 2011-03-22 Richard Henderson <rth@redhat.com>
4520 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
4521 of !TARGET_ABI_OPEN_VMS.
4522 (alpha_trampoline_init, alpha_start_function): Likewise.
4523 (alpha_expand_epilogue, alpha_file_start): Likewise.
4524 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
4525 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
4526 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
4527 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
4528 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
4530 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4532 * config/s390/s390-opts.h: New.
4533 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
4534 s390_arch_flags, s390_warn_framesize, s390_stack_size,
4535 s390_stack_guard): Remove.
4536 (s390_handle_arch_option): Return void. Take enum
4537 s390_arch_option value instead of string and searching array.
4538 (s390_handle_option): Don't assert that global structures are in
4539 use. Access variables via opts pointer. Use error_at. Don't use
4540 sscanf for -mstack-guard= or -mstack-size=. Update call to
4541 s390_handle_arch_option.
4542 (s390_option_override): Update call to s390_handle_arch_option.
4543 (s390_emit_prologue): Use %d format for s390_stack_size in
4544 diagnostic. Use %wd for HOST_WIDE_INT.
4545 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
4546 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
4547 * config/s390/s390.opt (config/s390/s390-opts.h): New
4548 HeaderInclude entry.
4549 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
4550 s390_arch_flags, s390_warn_framesize): New Variable entries.
4551 (s390_arch_option): New Enum and EnumValue entries.
4552 (march=): Use Enum instead of Var.
4553 (mstack-guard=, mstack-size=): Use UInteger and Var.
4556 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4558 * config/score/score.c (score_handle_option): Don't assert that
4559 global structures are in use. Access target_flags via opts
4560 pointer. Use value of -march= option to determine target_flags
4562 * config/score/score.opt (march=): Use Enum.
4563 (score_arch): New Enum and EnumValue entries.
4565 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4567 * config/mep/mep.c (option_mtiny_specified): Remove.
4568 (mep_option_override): Move register handling for -mivc2 from
4569 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
4570 instead of option_mtiny_specified.
4571 (mep_handle_option): Access target_flags via opts pointer. Don't
4572 assert that global structures are in use. Defer part of -mivc2
4573 handling and move it to mep_option_override.
4574 * config/mep/mep.opt (IVC2): New Mask entry.
4575 (mivc2): Use Var and Defer instead of Mask.
4577 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4579 * config/v850/v850-opts.h: New.
4580 * config/v850/v850.c (small_memory): Replace with
4581 small_memory_physical_max array. Make that array static const.
4582 (v850_handle_memory_option): Take integer value of argument. Take
4583 gcc_options pointer, option text and location. Return void.
4584 Update for changes to small memory structures.
4585 (v850_handle_option): Access target_flags via opts pointer. Don't
4586 assert that global structures are in use. Update calls to
4587 v850_handle_memory_option.
4588 (v850_encode_data_area): Update references to small memory settings.
4589 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4590 (enum small_memory_type): Move to v850-opts.h.
4591 * config/v850/v850.opt (config/v850/v850-opts.h): New
4592 HeaderInclude entry.
4593 (small_memory_max): New Variable entry.
4594 (msda): Replace by pair of options msda= and msda-. Use UInteger.
4595 (mtda, mzda): Likewise.
4597 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4599 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
4600 pointer. Don't assert that global structures are in use.
4602 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4604 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
4605 via opts pointer. Don't assert that global structures are in use.
4607 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4609 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
4610 (munix=93): Use Var.
4611 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
4612 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
4613 * config/pa/pa-opts.h: New.
4614 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
4615 (pa_handle_option): Don't assert that global structures are in
4616 use. Access target_flags via opts pointer. Don't handle
4617 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
4619 (pa_option_override): Handle deferred OPT_mfixed_range_.
4621 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4623 * config/mn10300/mn10300-opts.h: New.
4624 * config/mn10300/mn10300.c (mn10300_processor,
4625 mn10300_tune_string): Remove.
4626 (mn10300_handle_option): Don't assert that global structures are
4627 in use. Access mn10300_processor via opts pointer. Don't handle
4629 * config/mn10300/mn10300.h (enum processor_type): Move to
4631 (mn10300_processor): Remove.
4632 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
4633 HeaderInclude entry.
4634 (mn10300_processor): New Variable entry.
4637 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4639 * config/microblaze/microblaze.c: Don't include opts.h.
4640 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
4641 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
4642 (mno-clearbss): Use Var and Warn.
4644 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4646 * config/m32r/m32r-opts.h: New.
4647 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
4648 (m32r_handle_option): Don't assert that global structures are in
4649 use. Access target_flags and m32r_cache_flush_func via opts
4650 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
4651 OPT_mno_flush_trap here.
4652 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
4653 include of m32r-opts.h.
4654 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
4655 HeaderInclude entry.
4656 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
4657 (mmodel=): Use Enum and Var.
4658 (m32r_model): New Enum and EnumValue entries.
4659 (mno-flush-trap): Use Var.
4660 (msdata=): Use Enum and Var.
4661 (m32r_sdata): New Enum and EnumValue entries.
4663 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4665 * config/m32c/m32c.c: Don't include opts.h.
4666 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
4667 m32c_handle_option): Remove.
4668 (m32c_option_override): Check global_options_set.x_target_memregs
4669 instead of target_memregs_set.
4670 * config/m32c/m32c.h (target_memregs): Remove.
4671 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
4674 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4676 * config/iq2000/iq2000-opts.h: New.
4677 * config/iq2000/iq2000.c: Don't include opts.h.
4678 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
4679 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
4680 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
4681 HeaderInclude entry.
4682 (iq2000_tune): New Variable entry.
4683 (march=): Add comment. Use Enum.
4684 (iq2000_arch): New Enum and EnumValue entries.
4685 (mcpu=): Use Enum and Var.
4686 (iq2000_tune): New Enum and EnumValue entries.
4688 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4690 * config/ia64/ia64-opts.h: New.
4691 * config/ia64/ia64.c (ia64_tune): Remove.
4692 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
4694 (ia64_option_override): Handle deferred OPT_mfixed_range_.
4695 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
4696 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
4697 HeaderInclude entry.
4698 (ia64_tune): New Variable entry.
4699 (mfixed-range=): Use Defer and Var.
4700 (mtune=): Use Enum and Var.
4701 (ia64_tune): New Enum and EnumValue entries.
4703 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4705 * config/frv/frv-opts.h: New.
4706 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
4708 (frv_cpu_type): Remove.
4709 * config/frv/frv.c: Don't include opts.h.
4710 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
4711 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
4712 (frv_cpu_type): New Variable entry.
4713 (frv_cpu): New Enum and EnumValue entries.
4715 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4717 * config/cris/cris.c (cris_handle_option): Access target_flags via
4718 opts pointer. Don't assert that global structures are in use.
4719 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
4720 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
4722 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4724 * config/bfin/bfin-opts.h: New.
4725 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
4726 bfin_si_revision, bfin_workarounds): Remove.
4727 (bfin_cpus): Make static const.
4728 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
4729 not bfin_lib_id_given.
4730 (bfin_handle_option): Don't set bfin_lib_id_given. Access
4731 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
4732 pointer. Use error_at. Don't assert that global structures are in use.
4733 * config/bfin/bfin.h: Include bfin-opts.h.
4734 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
4735 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
4736 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
4737 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
4740 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4742 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
4743 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
4744 or -msoft-float here.
4745 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
4746 -msoft-float and -mhard-float.
4747 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
4748 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
4750 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
4752 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
4753 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
4755 (LIBGCC_SPEC): Don't handle -msoft-float.
4756 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
4758 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
4760 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
4761 -mfloat-abi=*, not -msoft-float and -mhard-float.
4762 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
4764 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
4765 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
4766 mhard-float and msoft-float.
4767 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
4768 mfloat-abi=soft in comments, not mhard-float and msoft-float.
4769 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
4770 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
4772 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
4773 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
4775 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
4777 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
4780 2011-03-22 Richard Henderson <rth@redhat.com>
4782 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
4783 TARGET_ABI_WINDOWS_NT.
4784 (alpha_output_function_end_prologue): Likewise.
4785 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
4786 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4787 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
4788 (trap, *movsi_nt_vms): Likewise.
4789 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
4790 (*tablejump_osf_nt_internal): Remove.
4791 * config/alpha/predicates.md (input_operand): Only test Pmode.
4793 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4795 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
4796 via opts pointer. Use error_at. Don't assert that global
4797 structures are in use.
4799 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4801 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
4802 (ix86_handle_option): Access ix86_isa_flags and
4803 ix86_isa_flags_explicit via opts pointer. Don't assert that
4804 global structures are in use.
4805 (ix86_function_specific_save, ix86_function_specific_restore):
4806 Update ix86_isa_flags_explicit field name.
4807 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
4808 (ix86_isa_flags_explicit): Rename TargetSave entry to
4809 x_ix86_isa_flags_explicit.
4811 2011-03-22 Richard Henderson <rth@redhat.com>
4813 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
4814 (alpha_option_override, direct_return): Likewise.
4815 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
4816 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
4817 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
4818 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
4819 (alpha_expand_epilogue, alpha_end_function): Likewise.
4820 (alpha_init_libfuncs): Likewise.
4821 (struct machine_function): Remove unicosmk members.
4822 (print_operand) ['t']: Remove.
4823 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
4824 unicosmk_output_module_name, unicosmk_output_common,
4825 current_section_align, unicosmk_output_text_section_asm_op,
4826 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
4827 unicosmk_section_type_flags, unicosmk_unique_section,
4828 unicosmk_asm_named_section, unicosmk_insert_attributes,
4829 unicosmk_output_align, unicosmk_defer_case_vector,
4830 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
4831 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
4832 unicosmk_output_ssib, unicosmk_add_call_info_word,
4833 unicosmk_extern_head, unicosmk_output_default_externs,
4834 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
4835 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
4836 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
4837 * config/alpha/alpha-protos.h: Update.
4838 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
4839 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
4840 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
4841 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
4842 (*mulsi_se, mulvsi3): Likewise.
4843 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
4844 (*divmodsi_internal, call, call_value, realign): Likewise.
4845 (moddi3, umoddi3): Likewise; remove duplicate expander.
4846 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
4847 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
4848 (*movdi_nofix): Remove r/U alternative.
4849 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
4850 * config/alpha/constraints.md ("U"): Remove.
4851 * config/alpha/predicates.md (call_operand"): Don't test
4852 TARGET_ABI_UNICOSMK.
4854 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4856 * target.def (handle_option): Take gcc_options and
4857 cl_decoded_option pointers and location_t.
4858 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
4859 * doc/tm.texi: Regenerate.
4860 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
4861 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
4862 * lto-opts.c (lto_reissue_options): Generate option structure for
4863 targetm.handle_option call.
4864 * opts.c (target_handle_option): Update call to
4865 targetm.handle_option. Remove assertions about values now passed
4867 * targhooks.c (default_target_handle_option): New.
4868 * targhooks.h (default_target_handle_option): Declare.
4869 * config/alpha/alpha.c: Include opts.h.
4870 (alpha_handle_option): Update to new hook interface.
4871 * config/arm/arm.c: Include opts.h.
4872 (arm_handle_option): Update to new hook interface.
4873 * config/arm/t-arm (arm.o): Update dependencies.
4874 * config/bfin/bfin.c: Include opts.h.
4875 (bfin_handle_option): Update to new hook interface.
4876 * config/cris/cris.c: Include opts.h.
4877 (cris_handle_option): Update to new hook interface.
4878 * config/frv/frv.c: Include opts.h.
4879 (frv_handle_option): Update to new hook interface.
4880 * config/i386/i386.c: Include opts.h.
4881 (ix86_handle_option): Update to new hook interface.
4882 (ix86_valid_target_attribute_inner_p): Generate option structure
4883 for call to ix86_handle_option.
4884 * config/i386/t-i386 (i386.o): Update dependencies.
4885 * config/ia64/ia64.c: Include opts.h.
4886 (ia64_handle_option): Update to new hook interface.
4887 * config/ia64/t-ia64 (ia64.o): Update dependencies.
4888 * config/iq2000/iq2000.c: Include opts.h.
4889 (iq2000_handle_option): Update to new hook interface.
4890 * config/m32c/m32c.c: Include opts.h.
4891 (m32c_handle_option): Update to new hook interface.
4892 * config/m32r/m32r.c: Include opts.h.
4893 (m32r_handle_option): Update to new hook interface.
4894 * config/m68k/m68k.c: Include opts.h.
4895 (m68k_handle_option): Update to new hook interface.
4896 * config/mep/mep.c: Include opts.h.
4897 (mep_handle_option): Update to new hook interface.
4898 * config/microblaze/microblaze.c: Include opts.h.
4899 (microblaze_handle_option): Update to new hook interface.
4900 * config/mips/mips.c: Include opts.h.
4901 (mips_handle_option): Update to new hook interface.
4902 * config/mn10300/mn10300.c: Include opts.h.
4903 (mn10300_handle_option): Update to new hook interface.
4904 * config/pa/pa.c: Include opts.h.
4905 (pa_handle_option): Update to new hook interface.
4906 * config/pdp11/pdp11.c: Include opts.h.
4907 (pdp11_handle_option): Update to new hook interface.
4908 * config/rs6000/rs6000.c: Include opts.h.
4909 (rs6000_handle_option): Update to new hook interface.
4910 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
4911 * config/rx/rx.c: Include opts.h.
4912 (rx_handle_option): Update to new hook interface.
4913 * config/s390/s390.c: Include opts.h.
4914 (s390_handle_option): Update to new hook interface.
4915 * config/score/score.c: Include opts.h.
4916 (score_handle_option): Update to new hook interface.
4917 * config/sh/sh.c: Include opts.h.
4918 (sh_handle_option): Update to new hook interface.
4919 * config/sparc/sparc.c: Include opts.h.
4920 (sparc_handle_option): Update to new hook interface.
4921 * config/v850/v850.c: Include opts.h.
4922 (v850_handle_option): Update to new hook interface.
4924 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4926 * gcc.c (driver_unknown_option_callback): Only permit and save
4927 unknown -Wno- options.
4928 (driver_wrong_lang_callback): Save options directly instead of via
4929 driver_unknown_option_callback.
4931 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
4933 * combine.c (simplify_set): Try harder to find the best CC mode when
4934 simplifying a nested COMPARE on the RHS.
4936 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4938 * config/alpha/gnu.h: Remove.
4939 * config/arc: Remove directory.
4940 * config/arm/netbsd.h: Remove.
4941 * config/arm/t-pe: Remove.
4942 * config/crx: Remove directory.
4943 * config/i386/netbsd.h: Remove.
4944 * config/m68hc11: Remove directory.
4945 * config/m68k/uclinux-oldabi.h: Remove.
4946 * config/mcore/mcore-pe.h: Remove.
4947 * config/mcore/t-mcore-pe: Remove.
4948 * config/netbsd-aout.h: Remove.
4949 * config/rs6000/gnu.h: Remove.
4950 * config/sh/sh-symbian.h: Remove.
4951 * config/sh/symbian-base.c: Remove.
4952 * config/sh/symbian-c.c: Remove.
4953 * config/sh/symbian-cxx.c: Remove.
4954 * config/sh/symbian-post.h: Remove.
4955 * config/sh/symbian-pre.h: Remove.
4956 * config/sh/t-symbian: Remove.
4957 * config/svr3.h: Remove.
4958 * config/vax/netbsd.h: Remove.
4959 * config.build: Don't handle i[34567]86-*-pe.
4960 * config.gcc: Remove handling of deprecations for most deprecated
4962 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
4963 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
4964 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
4965 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
4966 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
4967 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
4969 * config.host: Don't handle i[34567]86-*-pe.
4970 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
4971 (ASM_SPEC32): Don't handle -mcall-gnu.
4972 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
4974 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
4975 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
4976 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
4977 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
4978 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
4979 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
4980 conditional on SYMBIAN.
4981 * configure.ac: Don't handle powerpc*-*-gnu*.
4982 * configure: Regenerate.
4983 * doc/extend.texi (interrupt attribute): Don't mention CRX.
4984 * doc/install-old.texi (m6811, m6812): Don't mention.
4985 * doc/install.texi (arc-*-elf*): Don't document multilib option.
4986 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
4987 (m68k-uclinuxoldabi): Don't mention.
4988 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
4990 (-mcall-gnu): Remove.
4991 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
4992 families): Remove constraint documentation.
4994 2011-03-22 Marius Strobl <marius@FreeBSD.org>
4996 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
4997 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
4998 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
5000 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
5002 * config/avr/avr-protos.h (expand_epilogue): Change prototype
5003 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
5004 * config/avr/avr.c (init_cumulative_args)
5005 (avr_function_arg_advance): Use it.
5006 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
5008 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
5009 (avr_function_ok_for_sibcall): ...this new function.
5010 (avr_lookup_function_attribute1): New static Function.
5011 (avr_naked_function_p, interrupt_function_p)
5012 (signal_function_p, avr_OS_task_function_p)
5013 (avr_OS_main_function_p): Use it.
5014 * config/avr/avr.md ("sibcall", "sibcall_value")
5015 ("sibcall_epilogue"): New expander.
5016 ("*call_insn", "*call_value_insn"): New insn.
5017 ("call_insn", "call_value_insn"): Remove
5018 ("call", "call_value", "epilogue"): Change expander to handle
5021 2011-03-21 Nick Clifton <nickc@redhat.com>
5023 * doc/invoke.texi (Overall Options): Move closing brace to end of
5025 (Optimization Options): Add missing @gol.
5026 (Directory Options): Likewise.
5027 (i386 and x86-64 Options): Likewise.
5028 (RS6000 and PowerPC Options): Likewise.
5029 (i386 and x86-64 Windows Options): Likewise.
5030 (V850 Options): Add text missing from descriptions.
5032 2011-03-22 Richard Henderson <rth@redhat.com>
5034 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
5035 (avr_incoming_return_addr_rtx): New.
5036 (emit_push_byte): New.
5037 (expand_prologue): Use it. Remove incorrect dwarf annotation for
5038 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
5039 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
5040 (emit_pop_byte): New.
5041 (expand_epilogue): Use it. Pop frame pointer by bytes.
5042 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
5043 (INCOMING_RETURN_ADDR_RTX): New.
5044 (INCOMING_FRAME_SP_OFFSET): New.
5045 (ARG_POINTER_CFA_OFFSET): New.
5046 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
5047 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
5050 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
5052 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5054 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5055 (FUNCTION_ARG_ADVANCE): Likewise.
5056 * tm.texi.in: Change references to them to hook references.
5057 * tm.texi: Regenerate.
5058 * targhooks.c (default_function_arg): Eliminate check for target
5060 (default_function_incoming_arg): Likewise.
5061 (default_function_arg_advance): Likewise.
5062 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5063 (function_arg_advance): Likewise.
5064 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5066 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5068 * tree.c (build_call_1): New function.
5069 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
5071 2011-03-22 Richard Guenther <rguenther@suse.de>
5073 PR tree-optimization/48228
5074 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
5075 for single-arg PHIs.
5077 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
5079 PR rtl-optimization/48143
5080 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
5081 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
5082 sse2_cvtps2pd): Likewise.
5084 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5086 * recog.c (canonicalize_change_group): Use validate_unshare_change.
5088 2011-03-22 Richard Guenther <rguenther@suse.de>
5090 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
5091 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
5092 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
5093 and REALIGN_LOAD_EXPR.
5094 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
5095 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
5096 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
5097 DOT_PROD_EXPR case ...
5098 (expand_expr_real_2): ... here.
5099 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
5100 and REALIGN_LOAD_EXPR.
5101 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
5102 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
5103 (vect_create_epilog_for_reduction): Likewise.
5104 (vectorizable_reduction): Likewise.
5105 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
5106 * tree-vect-stmts.c (vectorizable_load): Likewise.
5108 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5110 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
5112 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5114 * config/s390/s390.c (s390_delegitimize_address): Fix offset
5115 handling for PLTOFF/GOTOFF.
5117 2011-03-22 Nick Clifton <nickc@redhat.com>
5119 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
5120 trailing backslash from the end of the macro definition.
5122 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5124 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
5127 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
5129 * expr.h (prepare_operand): Move to...
5130 * optabs.h (prepare_operand): ...here and change the insn code
5131 parameter from "int" to "enum insn_code".
5132 (insn_operand_matches): Declare.
5133 * expr.c (init_expr_target): Use insn_operand_matches.
5134 (compress_float_constant): Likewise.
5135 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
5136 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
5137 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
5138 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
5140 (gen_cond_trap): Likewise.
5141 (prepare_operand): Likewise. Change icode to an insn_code.
5142 (insn_operand_matches): New function.
5143 * reload.c (find_reloads_address_1): Use insn_operand_matches.
5144 * reload1.c (gen_reload): Likewise.
5145 * targhooks.c (default_secondary_reload): Likewise.
5147 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
5149 * config/alpha/alpha.md (unspec): New define_c_enum.
5152 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
5155 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
5156 between a call and its CALL_ARG_LOCATION note.
5158 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
5160 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
5162 2011-03-21 Jakub Jelinek <jakub@redhat.com>
5166 * c-common.c (shorten_compare): If primopN is first sign-extended
5167 to opN and then zero-extended to result type, set primopN to opN.
5169 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
5171 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
5172 for barrier handlers.
5174 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
5176 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
5177 UNSPEC constants to be in the unspec enumeration, and redefine
5178 all UNSPECV constants to be in the unspecv enumeration, so that
5179 dumps print which unspec/unspec_volatile this is.
5180 * config/rs6000/vector.md (UNSPEC_*): Ditto.
5181 * config/rs6000/paired.md (UNSPEC_*): Ditto.
5182 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
5183 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
5184 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
5186 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
5187 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
5188 UNSPECV_LWSYNC, since these are used as unspec_volatile.
5189 * config/rs6000/sync.md (isync, lwsync): Ditto.
5191 2011-03-21 Richard Guenther <rguenther@suse.de>
5193 * params.def (lto-min-partition): Fix typo.
5195 2011-03-21 Richard Guenther <rguenther@suse.de>
5198 * c-decl.c (grokdeclarator): Drop to the main variant only
5199 for array types. Drop flag_gen_aux_info check.
5201 2011-03-21 Richard Guenther <rguenther@suse.de>
5203 PR translation/47911
5204 * params.def (lto-partitions): Fix typo.
5205 (lto-min-partition): Fix wording.
5207 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
5209 * config/rs6000/t-freebsd: Remove duplication from file.
5211 2011-03-21 Richard Guenther <rguenther@suse.de>
5214 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
5216 2011-03-21 Richard Guenther <rguenther@suse.de>
5219 * params.def (lto-partitions): Require at least 1 partition.
5221 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5223 * gthr-solaris.h: Remove.
5224 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
5225 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
5226 (LIB_SPEC): Likewise.
5227 * config/sol2.opt (threads): Remove.
5228 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
5229 (sparc*-*-solaris2*): Likewise.
5230 * configure.ac (enable_threads): Enable solaris support.
5231 * configure: Regenerate.
5232 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
5233 * doc/install.texi (Configuration, --enable-threads=lib): Remove
5236 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5238 * config.gcc: Obsolete *-*-solaris2.8*.
5239 * doc/install.texi (Specific, *-*-solaris2*): Document it.
5241 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5244 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
5245 reference. Solaris 8 perl works.
5247 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5250 * doc/install.texi (Prerequisites): Move jar etc. up.
5251 Explain support library version requirements.
5253 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5256 * doc/install.texi (Prerequisites): Move Perl to build
5257 requirements. Always necessary on Solaris 2 with Sun ld.
5259 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5261 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
5263 (Specific, i?86-*-solaris2.[89]): Likewise.
5264 (Specific, i?86-*-solaris2.10): Likewise.
5265 (Specific, mips-sgi-irix6): Likewise.
5266 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
5267 Update for binutils 2.21.
5269 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5271 * configure.ac (gcc_cv_lto_plugin): Fix typo.
5272 Allow -fuse-linker-plugin for non-default plugin linker.
5273 * configure: Regenerate.
5275 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
5278 * gengtype.c (files_rules): Added rule for cp/parser.h.
5280 2011-03-21 Jakub Jelinek <jakub@redhat.com>
5283 * config/s390/s390.c (s390_delegitimize_address): Don't call
5284 lowpart_subreg if orig_x has BLKmode.
5286 2011-03-21 Kai Tietz <ktietz@redhat.com>
5289 * doc/plugins.texi: Adjust documentation for plugin register_callback.
5290 * tree.h (attribute_spec): Add new member affects_type_identity.
5291 * attribs.c (empty_attribute_table): Adjust attribute_spec
5293 * config/alpha/alpha.c: Likewise.
5294 * config/arc/arc.c: Likewise.
5295 * config/arm/arm.c: Likewise.
5296 * config/avr/avr.c: Likewise.
5297 * config/bfin/bfin.c: Likewise.
5298 * config/crx/crx.c: Likewise.
5299 * config/darwin.h: Likewise.
5300 * config/h8300/h8300.c: Likewise.
5301 * config/i386/cygming.h: Likewise.
5302 * config/i386/i386.c: Likewise.
5303 * config/ia64/ia64.c: Likewise.
5304 * config/m32c/m32c.c: Likewise.
5305 * config/m32r/m32r.c: Likewise.
5306 * config/m68hc11/m68hc11.c: Likewise.
5307 * config/m68k/m68k.c: Likewise.
5308 * config/mcore/mcore.c: Likewise.
5309 * config/mep/mep.c: Likewise.
5310 * config/microblaze/microblaze.c: Likewise.
5311 * config/mips/mips.c: Likewise.
5312 * config/rs6000/rs6000.c: Likewise.
5313 * config/rx/rx.c: Likewise.
5314 * config/sh/sh.c: Likewise.
5315 * config/sol2.h: Likewise.
5316 * config/sparc/sparc.c: Likewise.
5317 * config/spu/spu.c: Likewise.
5318 * config/stormy16/stormy16.c: Likewise.
5319 * config/v850/v850.c: Likewise.
5321 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
5323 * simplify-rtx.c (simplify_binary_operation_1): Handle
5324 (xor (and A B) C) case when B and C are both constants.
5326 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
5328 * tree-dfa.c (add_referenced_var): Fix typo in comment.
5330 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
5333 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
5335 2011-03-20 Jakub Jelinek <jakub@redhat.com>
5337 PR rtl-optimization/48156
5338 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
5339 assume df and df_lr are not NULL.
5341 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5344 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
5345 between a call and its CALL_ARG_LOCATION note.
5347 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
5350 * config/sh/sh.c (find_barrier): Don't emit a constant pool
5351 between a call and its corresponding CALL_ARG_LOCATION note.
5353 2011-03-19 Anatoly Sokolov <aesok@post.ru>
5355 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
5356 instead of loop. Use HARD_REGISTER_NUM_P predicate.
5357 * haifa-sched.c (setup_ref_regs): Ditto.
5358 * caller-save.c (add_used_regs_1): Ditto.
5359 * dse.c (look_for_hardregs): Ditto.
5360 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
5361 * sched-rgn.c (check_live_1): Ditto.
5363 2011-03-18 Joseph Myers <joseph@codesourcery.com>
5365 * c-decl.c (diagnose_mismatched_decls): Give an error for
5366 redefining a typedef with variably modified type.
5368 2011-03-18 Joseph Myers <joseph@codesourcery.com>
5370 * c-decl.c (grokfield): Don't allow typedefs for structures or
5371 unions with no tag by default.
5372 * doc/extend.texi (Unnamed Fields): Update.
5374 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
5376 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
5377 Rewrite using indirect functions.
5378 (lwp_slwpcb): Ditto.
5379 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
5380 (avx_vinsertf128<mode>): Ditto.
5382 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5384 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
5387 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5389 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
5390 splitting between a call and its corresponding CALL_ARG_LOCATION note.
5392 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
5394 PR rtl-optimization/48170
5395 * gcse.c (hoist_code): Remove bogus asserts.
5397 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
5399 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
5400 computation for prologue/epilogue.
5402 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5404 * Makefile.in (check-consistency): Remove.
5406 2011-03-18 Jakub Jelinek <jakub@redhat.com>
5409 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
5410 arange_table_in_use is 0, but either text_section_used or
5411 cold_text_section_used is true. Don't call it if
5412 !info_section_emitted.
5414 2011-03-18 Anatoly Sokolov <aesok@post.ru>
5416 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
5417 FUNCTION_VALUE_REGNO_P): Remove.
5418 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
5420 * config/avr/avr.c (avr_ret_register): Make static inline.
5421 (avr_function_value_regno_p): New function.
5422 (avr_libcall_value): Make static. Add 'func' argument.
5423 (avr_function_value): Make static. Rename 'func' argument to
5424 'fn_decl_or_type', forward it to avr_libcall_value. Call
5425 avr_ret_register function instead of RET_REGISTER macro.
5426 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
5428 2011-03-18 Jason Merrill <jason@redhat.com>
5431 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
5433 2011-03-18 Richard Guenther <rguenther@suse.de>
5435 * doc/install.texi (--enable-gold): Remove.
5436 (--with-plugin-ld): Document.
5437 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
5439 2011-03-18 Andrew Pinski <pinskia@gmail.com>
5442 * expr.c (optimize_bitfield_assignment_op): Revamp to work
5443 again after expansion changes.
5445 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
5447 * combine.c (try_combine): Do simplification only call of
5448 subst() on i2 even when i1 is present. Update comments.
5450 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
5452 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
5453 and UNSPEC_PCREL_SYMOFF.
5455 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5457 * config/s390/s390.md: Use define_c_enum for the unspec constant
5460 2011-03-18 Richard Henderson <rth@redhat.com>
5461 Jakub Jelinek <jakub@redhat.com>
5464 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
5465 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
5467 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
5470 * combine.c (cant_combine_insn_p): Don't check zero/sign
5471 extended hard registers.
5473 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
5476 * combine.c (cant_combine_insn_p): Check zero/sign extended
5479 2011-03-17 Anatoly Sokolov <aesok@post.ru>
5481 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
5482 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
5483 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
5484 Change return type to bool.
5485 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5487 2011-03-17 Jakub Jelinek <jakub@redhat.com>
5490 * var-tracking.c (prepare_call_arguments): If CALL target
5491 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
5492 pc instead of looking it up using cselib_lookup and use
5493 Pmode for it if x has VOIDmode.
5494 * dwarf2out.c (gen_subprogram_die): If also both first and
5495 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
5498 * function.c (assign_parms): For data.passed_pointer parms
5499 use MEM of data.entry_parm instead of data.entry_parm itself
5500 as DECL_INCOMING_RTL.
5501 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
5502 also when passed and declared mode is the same, DECL_RTL
5503 is a MEM with pseudo as address and DECL_INCOMING_RTL is
5506 2011-03-16 Jeff Law <law@redhat.com>
5508 PR rtl-optimization/37273
5509 * ira-costs.c (scan_one_insn): Detect constants living in memory and
5510 handle them like argument loads from stack slots. Do not double
5511 count memory for memory constants and argument loads from stack slots.
5513 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
5516 * var-tracking.c (prepare_call_arguments): Check SUBREG.
5518 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
5521 * config/i386/i386.opt: Add Save to -mavx and -mfma.
5523 2011-03-17 Jakub Jelinek <jakub@redhat.com>
5526 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
5528 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
5529 Clear call_arg_locations and call_arg_loc_last always.
5532 * var-tracking.c (prepare_call_arguments): If argument needs to be
5533 passed by reference, adjust argtype and mode.
5535 2011-03-17 Richard Guenther <rguenther@suse.de>
5538 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
5539 a value make sure to fold the statement.
5541 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
5544 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
5545 return condition with !cfun->calls_alloca.
5547 2011-03-17 Richard Guenther <rguenther@suse.de>
5550 * lto-cgraph.c (input_overwrite_node): Clear the abstract
5551 origin for decls in other ltrans units.
5552 (input_varpool_node): Likewise.
5554 2011-03-17 Richard Guenther <rguenther@suse.de>
5557 * tree-object-size.c (compute_object_offset): Properly return
5558 the offset operand of MEM_REFs as sizetype.
5560 2011-03-17 Jakub Jelinek <jakub@redhat.com>
5562 PR rtl-optimization/48141
5563 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
5564 * dse.c: Include params.h.
5565 (active_local_stores_len): New variable.
5566 (add_wild_read, dse_step1): Clear it when setting active_local_stores
5568 (record_store, check_mem_read_rtx): Decrease it when removing
5570 (scan_insn): Likewise. Increase it when adding to chain, if it
5571 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
5572 set active_local_stores to NULL before the addition.
5573 * Makefile.in (dse.o): Depend on $(PARAMS_H).
5575 PR rtl-optimization/48141
5576 * dse.c (record_store): If no positions are needed in an insn
5577 that cannot be deleted, at least unchain it from active_local_stores.
5579 2011-03-16 Dodji Seketeli <dodji@redhat.com>
5582 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
5583 (lookup_type_die_strip_naming_typedef): ... here.
5584 (get_context_die): Use it.
5585 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
5586 the anonymous struct named by the naming typedef.
5588 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
5591 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
5592 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
5594 2011-03-16 Jeff Law <law@redhat.com>
5596 * tree-vrp.c (identify_jump_threads): Slightly simplify type
5597 check for operands of conditional. Allow type to be a pointer.
5599 2011-03-16 Richard Guenther <rguenther@suse.de>
5601 PR tree-optimization/48149
5602 * fold-const.c (fold_binary_loc): Fold
5603 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
5605 2011-03-16 Richard Guenther <rguenther@suse.de>
5607 PR tree-optimization/26134
5608 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
5609 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
5610 (non_rewritable_mem_ref_base): Handle complex type component
5611 accesses, constrain offsets for vector and complex extracts
5614 2011-03-16 Richard Guenther <rguenther@suse.de>
5616 PR tree-optimization/48146
5617 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
5618 operands avoiding the need for renaming.
5620 2011-03-16 Richard Guenther <rguenther@suse.de>
5622 * gimple-fold.c (maybe_fold_reference): Open-code relevant
5623 constant folding. Move MEM_REF canonicalization first.
5624 Rely on fold_const_aggregate_ref for initializer folding.
5625 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
5627 2011-03-16 Jakub Jelinek <jakub@redhat.com>
5630 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
5631 arg0/arg1 or their arguments are always fold converted to matching
5634 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
5637 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5640 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
5641 Handle in-tree gold.
5642 (ld_vers): Extract binutils version for gold.
5643 (gcc_cv_ld_hidden): Handle gold here.
5644 (gcc_cv_lto_plugin): Determine level of linker plugin support.
5645 * configure: Regenerate.
5646 * config.in: Regenerate.
5647 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
5648 -fuse-linker-plugin otherwise.
5649 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
5650 (LINK_COMMAND_SPEC): Use it.
5651 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
5653 2011-03-16 Jakub Jelinek <jakub@redhat.com>
5655 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
5656 * calls.c: Remove debug.h include.
5657 (emit_call_1): Don't call virtual_call_token debug hook.
5658 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
5659 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
5660 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
5661 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
5662 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
5663 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
5664 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
5665 dwarf2out_virtual_call): Remove.
5666 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
5667 copy_call_info and virtual_call hooks.
5668 (dwarf2out_init): Don't initialize vcall_insn_table,
5669 debug_dcall_section and debug_vcall_section.
5670 (prune_unused_types): Don't mark nodes from dcall_table.
5671 (dwarf2out_finish): Don't output dcall or vcall tables.
5672 * final.c (final_scan_insn): Don't call direct_call or
5673 virtual_call debug hooks.
5674 * debug.h (struct gcc_debug_hooks): Remove direct_call,
5675 virtual_call_token, copy_call_info and virtual_call hooks.
5676 (debug_nothing_uid): Remove prototype.
5677 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
5678 copy_call_info and virtual_call hooks.
5679 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5680 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
5681 * debug.c (do_nothing_debug_hooks): Likewise.
5682 (debug_nothing_uid): Remove.
5683 * doc/invoke.texi (-fenable-icf-debug): Remove.
5684 * common.opt (-fenable-icf-debug): Likewise.
5686 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
5687 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
5688 call's MEM. Handle functions returning aggregate through a hidden
5689 first pointer. For virtual calls add clobbered pc to call arguments
5691 * dwarf2out.c (gen_subprogram_die): Emit
5692 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
5696 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
5697 * rtl.h (ENTRY_VALUE_EXP): Define.
5698 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
5699 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
5700 * print-rtl.c (print_rtx): Likewise.
5701 * gengtype.c (adjust_field_rtx_def): Likewise.
5702 * var-tracking.c (vt_add_function_parameter): Adjust
5703 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
5704 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
5705 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
5706 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
5707 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
5709 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
5710 Call var_location debug hook even on CALL_INSNs.
5711 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
5712 * rtl.def (ENTRY_VALUE): New.
5713 * dwarf2out.c: Include cfglayout.h.
5714 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
5715 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
5716 (struct call_arg_loc_node): New type.
5717 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
5718 tail_call_site_count): New variables.
5719 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
5720 DW_TAG_GNU_call_site_parameter.
5721 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
5722 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
5723 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
5724 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
5725 and DW_AT_GNU_all_source_call_sites.
5726 (mem_loc_descriptor): Handle ENTRY_VALUE.
5727 (add_src_coords_attributes): Don't add enything if
5728 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
5729 (dwarf2out_abstract_function): Save and clear call_arg_location,
5730 call_site_count and tail_call_site_count around dwarf2out_decl call.
5731 (gen_call_site_die): New function.
5732 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
5733 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
5734 (dwarf2out_function_decl): Clear call_arg_locations,
5735 call_arg_loc_last, set call_site_count and tail_call_site_count
5736 to -1 and free block_map.
5737 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
5738 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
5739 followed by any real instructions.
5740 (dwarf2out_begin_function): Set call_site_count and
5741 tail_call_site_count to 0.
5742 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
5743 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
5744 attempt to force a DIE for it and worst case remove the attribute.
5745 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
5746 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
5748 * var-tracking.c: Include tm_p.h.
5749 (vt_stack_adjustments): For calls call note_register_arguments.
5750 (argument_reg_set): New variable.
5751 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
5752 ensure the VALUE is resolved.
5753 (call_arguments): New variable.
5754 (prepare_call_arguments): New function.
5755 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
5756 (struct expand_loc_callback_data): Add ignore_cur_loc field.
5757 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
5758 always use the best expression.
5759 (vt_expand_loc): Add ignore_cur_loc argument.
5760 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
5761 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
5762 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
5764 (vt_add_function_parameter): Use cselib_lookup_from_insn.
5765 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
5766 argument. Don't call cselib_preserve_only_values and
5768 (note_register_arguments): New function.
5769 (vt_initialize): Compute argument_reg_set. Call
5770 vt_add_function_parameters before processing basic blocks instead of
5771 afterwards. For calls call prepare_call_arguments before calling
5772 cselib_process_insn.
5773 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
5774 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
5775 (var-tracking.o): Depend on $(TM_P_H).
5776 * cfglayout.h (insn_scope): New prototype.
5777 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
5778 * cfglayout.c (insn_scope): No longer static.
5779 * insn-notes.def (CALL_ARG_LOCATION): New.
5780 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
5781 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
5782 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
5783 nothing for DECL_EXTERNAL BLOCK_VARS.
5785 2011-03-16 Alan Modra <amodra@gmail.com>
5788 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
5789 create invalid offset address for vsx splat insn.
5790 * config/rs6000/predicates.md (splat_input_operand): New.
5791 * config/rs6000/vsx.md (vsx_splat_*): Use it.
5793 2011-03-15 Xinliang David Li <davidxl@google.com>
5796 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
5797 (normalize_preds): New function.
5798 (is_use_properly_guarded): Normalize def predicates.
5800 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5803 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
5804 in the output template.
5806 2011-03-15 Richard Guenther <rguenther@suse.de>
5809 * tree-pretty-print.c (dump_function_declaration): Properly
5810 dump unprototyped and varargs function types.
5812 2011-03-15 Richard Guenther <rguenther@suse.de>
5814 PR tree-optimization/13954
5815 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
5818 2011-03-15 Richard Guenther <rguenther@suse.de>
5820 PR tree-optimization/48037
5821 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
5822 selects into BIT_FIELD_REFs.
5823 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
5826 2011-03-15 Jakub Jelinek <jakub@redhat.com>
5828 PR tree-optimization/48129
5829 * builtins.c (fold_builtin_snprintf): Convert to type of
5830 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
5831 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
5833 2011-03-15 Richard Guenther <rguenther@suse.de>
5835 PR tree-optimization/41490
5836 * tree-ssa-dce.c (propagate_necessity): Handle returns without
5837 value but with VUSE.
5838 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
5840 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
5841 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
5842 * tree-tailcall.c (find_tail_calls): Ignore returns.
5844 2011-03-15 Richard Guenther <rguenther@suse.de>
5847 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
5848 or variable-indexed array accesses when in gimple form.
5850 2011-03-15 Richard Guenther <rguenther@suse.de>
5852 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
5854 2011-03-15 Alan Modra <amodra@gmail.com>
5857 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
5858 presume symbol_refs without a symbol_ref_decl are suitably
5859 aligned, nor other trees we may see here. Handle anchor symbols.
5860 (legitimate_constant_pool_address_p): Comment. Add mode param.
5861 Check cmodel=medium addresses. Adjust all calls.
5862 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
5863 creating cmodel=medium optimized access to locals.
5864 * config/rs6000/constraints.md (R): Pass QImode to
5865 legitimate_constant_pool_address_p.
5866 * config/rs6000/predicates.md (input_operand): Pass mode to
5867 legitimate_constant_pool_address_p.
5868 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
5871 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5874 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
5875 64-bit constants being loaded into registers other than GPRs such
5876 as loading 0 into a VSX register.
5878 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5880 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
5882 2011-03-14 Jakub Jelinek <jakub@redhat.com>
5885 * builtins.c (fold_builtin_snprintf): New function.
5886 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
5887 (fold_builtin_4): Likewise.
5890 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
5891 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
5892 and C - X == X also strip nops from +/-/p+ operand.
5893 When optimizing -X == C, fold C to arg0's type.
5896 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
5897 emit it as add_AT_int instead of add_AT_unsigned.
5899 2011-03-14 Tom Tromey <tromey@redhat.com>
5901 * unwind-dw2.c: Include sys/sdt.h if it exists.
5902 (_Unwind_DebugHook): Use STAP_PROBE2.
5903 * config.in, configure: Rebuild.
5904 * configure.ac: Check for sys/sdt.h.
5906 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
5908 * config/i386/i386.md (ROUND_FLOOR): New constant.
5909 (ROUND_CEIL): Ditto.
5910 (ROUND_TRUNC): Ditto.
5911 (ROUND_MXCSR): Ditto.
5912 (ROUND_NO_EXC): Ditto.
5913 (rint<mode>2): Use new defines instead of numerical constants.
5914 (floor<mode>2): Ditto.
5915 (ceil<mode>2): Ditto.
5916 (btrunc<mode>2): Ditto.
5917 * config/i386/i386-builtin-types.def: Define ROUND function type
5919 * config/i386/i386.c (enum ix86_builtins): Add
5920 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
5921 (struct builtin_description): Add
5922 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
5923 (ix86_expand_sse_round): New static function.
5924 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
5926 (ix86_builtin_vectorized_function): Handle
5927 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
5929 2011-03-14 Tom Tromey <tromey@redhat.com>
5931 * c-parser.c (c_parser_asm_string_literal): Clear
5932 warn_overlength_strings.
5934 2011-03-14 Tom Tromey <tromey@redhat.com>
5936 * c-parser.c (disable_extension_diagnostics): Save
5937 warn_overlength_strings.
5938 (restore_extension_diagnostics): Restore warn_overlength_strings.
5940 2011-03-14 Jakub Jelinek <jakub@redhat.com>
5942 * BASE-VER: Change to 4.7.0.
5944 2011-03-14 Richard Guenther <rguenther@suse.de>
5947 * tree.c (build_vector_from_val): Adjust assert to requirements
5950 2011-03-14 Jakub Jelinek <jakub@redhat.com>
5953 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
5955 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
5957 * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
5958 terms of target_flags_explicit. Adjust copyright year.
5960 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
5961 * config/rs6000/t-freebsd: New file. Add override for
5964 2011-03-13 Chris Demetriou <cgd@google.com>
5966 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
5967 (-fno-diagnostics-show-option): this, to reflect current default.
5968 (-Werror=): Update text about -fno-diagnostics-show-option.
5970 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
5973 * config/rs6000/predicates.md (easy_vector_constant_add_self,
5974 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
5975 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
5976 mode is not V2DImode or V2DFmode.
5977 (vspltis_constant): Do not handle V2DImode and V2DFmode.
5978 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
5979 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
5981 (movdi_internal64): Likewise.
5983 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
5985 PR tree-optimization/47127
5986 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
5988 (set_cloog_options): Same.
5989 (scop_to_clast): Same.
5990 (print_clast_stmt): Do not call cloog_state_malloc and
5992 (print_generated_program): Same.
5994 * graphite-clast-to-gimple.h (cloog_state): Declared.
5995 (scop_to_clast): Adjust declaration.
5996 * graphite.c (cloog_state): Defined here.
5997 (graphite_initialize): Call cloog_state_malloc.
5998 (graphite_finalize): Call cloog_state_free.
6000 2011-03-11 Jason Merrill <jason@redhat.com>
6002 * attribs.c (lookup_attribute_spec): Take const_tree.
6005 2011-03-11 Joseph Myers <joseph@codesourcery.com>
6007 * config/sparc/sparc.c (sparc_option_override): Use
6008 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
6010 2011-03-11 Richard Guenther <rguenther@suse.de>
6012 PR tree-optimization/48067
6013 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
6014 multiplication result will be only used once on the target
6017 2011-03-11 Richard Guenther <rguenther@suse.de>
6019 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
6021 2011-03-11 Richard Guenther <rguenther@suse.de>
6024 * tree.c (find_decls_types_r): Do not walk types only reachable
6025 from IDENTIFIER_NODEs.
6027 2011-03-11 Jakub Jelinek <jakub@redhat.com>
6030 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
6031 all vnode->force_output nodes as needed.
6033 2011-03-11 Jason Merrill <jason@redhat.com>
6036 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
6037 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
6039 2011-03-11 Martin Jambor <mjambor@suse.cz>
6041 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
6044 2011-03-11 Jakub Jelinek <jakub@redhat.com>
6046 PR tree-optimization/48063
6047 * ipa-inline.c (cgraph_decide_inlining): Don't try to
6048 inline functions called once if !tree_can_inline_p (node->callers).
6050 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
6052 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
6054 * config/score/score3.c: Delete.
6055 * config/score/score3.h: Delete.
6056 * config/score/mul-div.S: Delete.
6057 * config/score/sfp-machine.h: Add new file.
6058 * config/score/constraints.md: Add new file.
6059 * config/score/t-score-softfp: Add new file.
6060 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
6061 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
6062 (score7_extra_constraint): Delete.
6063 (score7_option_override): Remove unused code.
6064 * config/score/score.c: Remove score3 and score5 define and code.
6065 * config/score/score.h: Remove score3 and score5 define and code.
6066 * config/score/score.md: Remove score3 template and unusual insn.
6067 * config/score/score.opt: Remove score3 and score5 options.
6069 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6071 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
6072 when _HPUX_SOURCE is defined.
6073 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
6075 2011-03-10 Jason Merrill <jason@redhat.com>
6078 * stor-layout.c (layout_type): Don't set structural equality
6079 on arrays of incomplete type.
6080 * tree.c (type_hash_eq): Handle comparing them properly.
6082 2011-03-10 Jakub Jelinek <jakub@redhat.com>
6085 * config/s390/s390.c (s390_delegitimize_address): Make sure the
6086 result mode matches original rtl mode.
6088 2011-03-10 Nick Clifton <nickc@redhat.com>
6090 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
6091 (andsi3, andsi3_flags): Fix timings for three operand alternative.
6093 2011-03-09 Jakub Jelinek <jakub@redhat.com>
6095 PR rtl-optimization/47866
6096 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
6097 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
6098 if target wasn't scalar.
6099 * function.c (assign_stack_temp_for_type): Assert that neither
6100 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
6101 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
6103 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
6105 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6107 * config/s390/s390-protos.h (s390_label_align): New prototype.
6108 * config/s390/s390.c (s390_label_align): New function.
6109 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
6111 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
6114 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
6115 V2DI/V2DF constants. Only all 0's or all 1's are easy.
6116 (output_vec_const_move): Ditto.
6118 2011-03-08 Anatoly Sokolov <aesok@post.ru>
6120 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
6121 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
6122 * config/mips/mips.c (mips_preferred_reload_class): Make static.
6123 Change 'rclass' argument and result type to reg_class_t.
6124 (TARGET_PREFERRED_RELOAD_CLASS): Define.
6126 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
6128 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6129 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
6130 (TARGET_MEMORY_MOVE_COST): Define.
6131 (avr_register_move_cost, avr_memory_move_cost): New Functions.
6133 2011-03-08 Jakub Jelinek <jakub@redhat.com>
6136 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
6139 PR tree-optimization/48022
6140 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
6143 2011-03-07 Jakub Jelinek <jakub@redhat.com>
6146 * var-tracking.c (find_use_val): Return NULL for
6147 cui->sets && cui->store_p BLKmode MEMs.
6149 2011-03-07 Anatoly Sokolov <aesok@post.ru>
6151 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
6153 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
6154 xstormy16_print_operand_address): Remove.
6155 * config/stormy16/stormy16.c (xstormy16_print_operand,
6156 xstormy16_print_operand_address): Make static.
6157 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6159 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
6162 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
6163 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
6166 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
6169 * cfgloopmanip.c (fix_bb_placements): Return immediately
6170 if FROM is BASE_LOOP's header.
6172 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
6174 * gimplify.c (gimplify_function_tree): Fix building calls
6175 to __builtin_return_address.
6177 2011-03-07 Alan Modra <amodra@gmail.com>
6179 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
6180 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
6181 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
6182 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
6184 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
6185 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
6186 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
6187 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
6188 * config/rs6000/rs6000.c
6189 (rs6000_elf_end_indicate_exec_stack): Rename to..
6190 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
6191 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
6192 (rs6000_file_start): ..here.
6193 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
6194 file scope variables.
6195 (call_ABI_of_interest): New function.
6196 (init_cumulative_args): Set above vars when function return value
6197 is a float, vector, or small struct.
6198 (rs6000_function_arg_advance_1): Likewise for function args.
6199 (rs6000_va_start): Set rs6000_passes_float if variable arg function
6200 references float args.
6202 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
6204 * doc/cfg.texi: Remove "See" before @ref.
6205 * doc/invoke.texi: Likewise.
6207 2011-03-05 Jason Merrill <jason@redhat.com>
6209 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
6211 2011-03-05 Anthony Green <green@moxielogic.com>
6213 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
6215 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
6217 PR rtl-optimization/47899
6218 * cfgloopmanip.c (fix_bb_placements): Fix first argument
6219 to flow_loop_nested_p when moving the loop upward.
6221 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
6224 * arm.md (movhi_insn_arch4): Accept any immediate constant.
6226 2011-03-05 Jakub Jelinek <jakub@redhat.com>
6228 PR tree-optimization/47967
6229 * ipa-cp.c (build_const_val): Return NULL instead of creating
6230 VIEW_CONVERT_EXPR for mismatching sizes.
6231 (ipcp_create_replace_map): Return NULL if build_const_val failed.
6232 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
6233 give up on versioning.
6235 2011-03-05 Alan Modra <amodra@gmail.com>
6238 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6239 full cmodel medium/large lo_sum + high addresses.
6241 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6243 * config/s390/s390.c (s390_decompose_address): Reject non-literal
6244 pool references in UNSPEC_LTREL_OFFSET.
6246 2011-03-04 Jan Hubicka <jh@suse.cz>
6249 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
6250 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
6251 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
6253 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
6254 cgraph_add_thunk): Add node pointers.
6255 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
6256 associated to right node.
6257 (input_node): Update use of cgraph_same_body_alias
6258 and cgraph_add_thunk.
6260 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
6262 * config/i386/i386.opt (mprefer-avx128): New flag.
6263 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
6264 modes when the flag -mprefer-avx128 is on.
6266 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
6268 * dwarf2out.c (compare_loc_operands): Fix address handling.
6270 2011-03-04 Alan Modra <amodra@gmail.com>
6272 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
6274 2011-03-04 Richard Guenther <rguenther@suse.de>
6277 * expmed.c (extract_bit_field_1): Prefer vector modes that
6278 vec_extract patterns can handle.
6280 2011-03-04 Richard Guenther <rguenther@suse.de>
6283 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
6285 2011-03-04 Richard Henderson <rth@redhat.com>
6287 * explow.c (emit_stack_save): Remove 'after' parameter.
6288 (emit_stack_restore): Likewise.
6289 * expr.h: Update to match.
6290 * builtins.c, calls.c, stmt.c: Likewise.
6291 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
6292 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
6293 * function.c (expand_function_end): Insert the emit_stack_save
6294 sequence before parm_birth_insn instead of after.
6296 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
6298 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
6299 (ssse3_pmaddubsw128): Ditto.
6300 (ssse3_pmaddubsw): Ditto.
6302 2011-03-03 Steve Ellcey <sje@cup.hp.com>
6304 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
6306 2011-03-03 Jakub Jelinek <jakub@redhat.com>
6309 * gimplify.c (omp_add_variable): Only call omp_notice_variable
6310 on TYPE_SIZE_UNIT if it is a DECL.
6313 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
6314 first operand is not is_gimple_mem_ref_addr, try to fold it.
6315 If the operand still isn't is_gimple_mem_ref_addr, clear
6318 2011-03-03 Richard Guenther <rguenther@suse.de>
6321 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
6323 (refs_may_alias_p_1): For release branches return true if
6324 we are confused by our input.
6326 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6328 * config/s390/s390.c (s390_function_value): Rename to ...
6329 (s390_function_and_libcall_value): ... this.
6330 (s390_function_value): New function.
6331 (s390_libcall_value): New function.
6332 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
6333 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
6334 target macro definitions.
6335 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
6337 2011-03-02 Joseph Myers <joseph@codesourcery.com>
6339 * config/i386/freebsd64.h (CC1_SPEC): Define.
6340 * config/i386/linux64.h (CC1_SPEC): Define.
6341 * config/i386/x86-64.h (CC1_SPEC): Don't define.
6343 2011-03-02 Anatoly Sokolov <aesok@post.ru>
6345 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
6347 * config/stormy16/stormy16.c: Include reload.h.
6348 (xstormy16_memory_move_cost): New function.
6349 (TARGET_MEMORY_MOVE_COST): Define.
6351 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
6353 PR rtl-optimization/47925
6354 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
6355 with side effects. Remove the more-specific check for volatile asms.
6357 2011-03-02 Alan Modra <amodra@gmail.com>
6360 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
6361 toc relative addresses for valid offsets.
6363 2011-03-01 Richard Guenther <rguenther@suse.de>
6365 PR tree-optimization/47890
6366 * tree-vect-loop.c (get_initial_def_for_induction): Set
6367 related stmt properly.
6369 2011-03-01 Richard Guenther <rguenther@suse.de>
6372 * lto-streamer.c (lto_record_common_node): Also register
6375 2011-03-01 Richard Guenther <rguenther@suse.de>
6378 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
6379 Do not stream DECL_ABSTRACT_ORIGIN.
6380 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
6381 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
6382 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
6383 Do not stream DECL_ABSTRACT_ORIGIN.
6384 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
6385 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
6387 2011-02-28 Anatoly Sokolov <aesok@post.ru>
6389 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
6390 FUNCTION_VALUE_REGNO_P): Remove.
6391 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
6392 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
6393 Add 'outgoing' argument.
6394 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
6396 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6397 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6399 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
6402 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
6403 (lookup_filename): Likewise.
6404 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
6406 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
6407 Jakub Jelinek <jakub@redhat.com>
6410 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
6411 (assign_stack_local_1): Change last argument type to int.
6412 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
6413 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
6414 don't record padding space into frame_space_list nor use those areas.
6415 (assign_stack_local): Adjust caller.
6416 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
6417 of assign_stack_local, pass 0 as last argument.
6418 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
6421 2011-02-28 Jakub Jelinek <jakub@redhat.com>
6424 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
6425 Use target address_mode and pointer_mode hooks instead of hardcoded
6426 Pmode and ptr_mode. Handle some simple cases of extending if
6427 POINTERS_EXTEND_UNSIGNED < 0.
6428 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
6429 Call convert_debug_memory_address.
6430 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
6431 convert_debug_memory_address.
6434 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
6435 * configure: Regenerated.
6436 * config.in: Regenerated.
6437 * varasm.c (default_function_section): Return NULL
6438 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
6440 2011-02-28 Martin Jambor <mjambor@suse.cz>
6442 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
6443 the description to match the printed values.
6445 2011-02-28 Richard Guenther <rguenther@suse.de>
6447 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
6448 of the copied scope tree.
6450 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6452 * doc/extend.texi (Function Attributes): Avoid deeply (and
6453 wrongly) nested tables.
6455 2011-02-27 Jakub Jelinek <jakub@redhat.com>
6458 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
6459 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
6460 r isn't op0 nor op1.
6462 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
6464 * config/avr/avr.md: Remove magic comment for emacs.
6466 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
6469 * config/avr/avr.c (avr_option_override): Use error on bad options.
6470 (avr_help): New function.
6471 (TARGET_HELP): Define.
6473 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
6476 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
6477 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
6479 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
6481 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
6482 (ARM Options): Ditto.
6483 (i386 and x86-64 Options): Ditto.
6484 (RX Options): Ditto.
6485 (SPARC Options): Ditto.
6487 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
6489 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
6490 FreeBSD 6 and later. Generally use cpu generic.
6492 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
6494 * doc/cpp.texi: Update copyright years.
6496 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
6499 * config/lm32/lm32.md (ashrsi3): Added needed variable.
6501 2011-02-25 Jon Beniston <jon@beniston.com>
6504 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
6505 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
6506 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
6507 (lm32_block_move_inline): Add type cast to remove warning.
6508 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
6509 (gen_int_relational): Move declarations to start of function.
6511 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
6513 PR tree-optimization/45470
6514 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
6515 can throw internally only.
6516 * tree-vect-stmts.c (vectorizable_call): Likewise.
6518 2011-02-24 Anatoly Sokolov <aesok@post.ru>
6520 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
6521 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
6522 * config/stormy16/stormy16-protos.h
6523 (xstormy16_preferred_reload_class): Remove.
6524 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
6525 static. Change 'rclass' argument and return type to reg_class_t.
6526 (TARGET_PREFERRED_RELOAD_CLASS,
6527 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6529 2011-02-24 Richard Guenther <rguenther@suse.de>
6531 * lto-streamer-in.c (input_bb): Do not find referenced vars
6532 in debug statements.
6534 2011-02-23 Jason Merrill <jason@redhat.com>
6536 * common.opt (fabi-version): Document v5 and v6.
6538 2011-02-23 Richard Guenther <rguenther@suse.de>
6540 PR tree-optimization/47849
6541 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
6543 2011-02-23 Jie Zhang <jie@codesourcery.com>
6545 * opts-common.c (decode_cmdline_option): Print empty string
6546 argument as "" in decoded->orig_option_with_args_text.
6547 * gcc.c (execute): Print empty string argument as ""
6548 in the verbose output.
6549 (do_spec_1): Keep empty string argument.
6551 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
6553 * config.gcc: Declare score-* and crx-* obsolete.
6555 2011-02-23 Jie Zhang <jie@codesourcery.com>
6557 PR rtl-optimization/47763
6558 * web.c (web_main): Ignore naked clobber when replacing register.
6560 2011-02-22 Anatoly Sokolov <aesok@post.ru>
6562 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6565 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
6568 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
6570 2011-02-22 Mike Stump <mikestump@comcast.net>
6572 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
6574 * configure: Regenerate.
6576 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
6578 PR rtl-optimization/46002
6579 * ira-color.c (update_copy_costs): Change class intersection
6580 test to reg_class_contents[] test of 'hard_regno'.
6582 2011-02-21 Joseph Myers <joseph@codesourcery.com>
6584 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
6586 * config/hpux11.opt (mt): Likewise.
6587 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
6588 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
6589 * config/vax/elf.opt (mno-asm-pic): Likewise.
6590 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
6592 2011-02-21 Mike Stump <mikestump@comcast.net>
6595 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
6596 tree so we can get save the type.
6597 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
6598 for CFString instead of trying to use past the end of the builtins.
6599 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
6600 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
6601 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
6602 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
6603 Rename to darwin_builtin_cfstring.
6604 (darwin_init_cfstring_builtins): Return the built type.
6606 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
6609 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
6610 (_mm256_insert_epi64): Use _mm_insert_epi64.
6612 2011-02-21 Anatoly Sokolov <aesok@post.ru>
6614 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6615 * config/stormy16/stormy16-protos.h
6616 (xstormy16_mode_dependent_address_p): Remove.
6617 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
6618 Make static. Change return type to bool. Change argument type to
6619 const_rtx. Remove dead code.
6620 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6622 2011-02-21 Richard Guenther <rguenther@suse.de>
6625 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
6626 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
6627 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
6629 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
6630 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
6632 2011-02-20 Richard Guenther <rguenther@suse.de>
6635 * tree.c (free_lang_data_in_decl): Clean builtins from
6636 the TU decl BLOCK_VARS.
6638 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
6642 * haifa-sched.c (fix_tick_ready): Skip tick computation
6645 2011-02-19 Richard Guenther <rguenther@suse.de>
6648 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
6649 Remove lazy BLOCK_VARS streaming.
6650 (lto_input_ts_block_tree_pointers): Likewise.
6651 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
6653 2011-02-19 Joseph Myers <joseph@codesourcery.com>
6655 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
6657 2011-02-19 Joseph Myers <joseph@codesourcery.com>
6659 * config/i386/biarch32.h, config/i386/mach.h,
6660 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
6662 2011-02-19 Jakub Jelinek <jakub@redhat.com>
6665 * config/i386/i386.md (peephole2 for shift and plus): Use
6666 operands[1] original mode in the first insn.
6668 2011-02-18 Mike Stump <mikestump@comcast.net>
6670 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
6672 2011-02-18 Jan Hubicka <jh@suse.cz>
6675 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
6676 to zero when the function is not inlinable at all.
6678 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6680 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
6681 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
6682 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
6683 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
6684 * config/pa/t-pa64: Likewise.
6685 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6687 2011-02-18 Jakub Jelinek <jakub@redhat.com>
6690 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
6692 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6695 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
6697 2011-02-18 Anatoly Sokolov <aesok@post.ru>
6699 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
6700 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
6701 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
6702 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
6703 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
6704 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
6705 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
6706 m32r_load_postinc_p, m32r_store_preinc_predec_p,
6707 m32r_legitimate_address_p): New functions.
6708 * config/m32r/constraints.md (constraint "S"): Don't use
6709 STORE_PREINC_PREDEC_P.
6710 (constraint "U"): Don't use LOAD_POSTINC_P.
6712 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
6714 PR rtl-optimization/46178
6715 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
6716 compute ira_hard_regno_cover_class[].
6718 2011-02-18 Richard Guenther <rguenther@suse.de>
6721 * lto-streamer.h (lto_global_var_decls): Declare.
6722 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
6723 statics for global var processing.
6725 2011-02-18 Richard Guenther <rguenther@suse.de>
6727 PR tree-optimization/47737
6728 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
6729 edge dominance check.
6731 2011-02-18 Jakub Jelinek <jakub@redhat.com>
6734 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
6735 avoid invalid rtx sharing.
6737 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
6739 * doc/cpp.texi (Obsolete Features): Add background on the
6740 origin of assertions.
6742 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
6744 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
6746 * config/darwin.c (output_objc_section_asm_op): Added support for
6748 (is_objc_metadata): New.
6749 (darwin_objc2_section): New.
6750 (darwin_objc1_section): New.
6751 (machopic_select_section): Added support for ABI v1 and v2.
6752 (darwin_emit_objc_zeroed): New.
6753 (darwin_output_aligned_bss): Detect objc metadata and treat it
6755 (darwin_asm_output_aligned_decl_common): Same.
6756 (darwin_asm_output_aligned_decl_local): Same.
6757 * config/darwin-sections.def: Updated for ABI v1 and v2.
6758 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
6759 compiling Objective-C code for the NeXT runtime, default to using
6760 ABI version 0 for 32-bit, and version 2 for 64-bit.
6762 2011-02-17 Joseph Myers <joseph@codesourcery.com>
6764 * common.opt (optimize_fast): New Variable.
6765 * opts.c (default_options_optimization): Use opts->x_optimize_fast
6766 instead of local variable ofast.
6768 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
6770 * doc/invoke.texi (fobjc-abi-version): Documented.
6771 (fobjc-nilcheck): Documented.
6772 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
6775 2011-02-17 Joseph Myers <joseph@codesourcery.com>
6778 * common.opt (export-dynamic): New Driver option.
6779 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
6781 2011-02-17 Joseph Myers <joseph@codesourcery.com>
6783 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
6785 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
6786 Jan Hubicka <jh@suse.cz>
6790 * cfgexpand.c (account_used_vars_for_block): Remove.
6791 (estimated_stack_frame_size): Use referenced vars.
6792 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
6793 that were referenced in the original function. Test src_fn
6794 rather than cfun. Drop redundant get_var_ann.
6795 (setup_one_parameter): Drop redundant get_var_ann.
6796 (declare_return_variable): Likewise.
6797 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
6798 (copy_arguments_for_versioning): Drop redundant get_var_ann.
6799 * ipa-inline.c (compute_inline_parameters): Do not compute
6800 disregard_inline_limits here.
6801 (compute_inlinable_for_current, pass_inlinable): New.
6802 (pass_inline_parameters): Require PROP_referenced_vars.
6803 * cgraphunit.c (cgraph_process_new_functions): Don't run
6804 compute_inline_parameters explicitly unless function is in SSA form.
6805 (cgraph_analyze_function): Set .disregard_inline_limits.
6806 * tree-sra.c (convert_callers): Compute inliner parameters
6807 only for functions already in SSA form.
6809 2011-02-17 Joseph Myers <joseph@codesourcery.com>
6811 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
6812 -mlittle-endian-data.
6814 2011-02-17 Joseph Myers <joseph@codesourcery.com>
6816 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
6817 -mno-fpu, not -fpu and -no-fpu.
6818 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
6819 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
6821 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
6824 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
6825 input reload with PLUS RTX.
6827 2011-02-16 Joseph Myers <joseph@codesourcery.com>
6829 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
6830 of InverseVar(MDMX).
6832 2011-02-16 Joseph Myers <joseph@codesourcery.com>
6834 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
6837 2011-02-16 Joseph Myers <joseph@codesourcery.com>
6839 * config/mn10300/mn10300.opt (mno-crt0): New.
6841 2011-02-16 Joseph Myers <joseph@codesourcery.com>
6843 * config/m68k/uclinux.opt (static-libc): New Driver option.
6845 2011-02-16 Joseph Myers <joseph@codesourcery.com>
6847 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
6849 2011-02-16 Joseph Myers <joseph@codesourcery.com>
6851 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
6852 %{muser-extend-enabled}.
6854 2011-02-16 Richard Guenther <rguenther@suse.de>
6856 PR tree-optimization/47738
6857 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
6858 the TODO from tree_predictive_commoning.
6860 2011-02-15 Jeff Law <law@redhat.com>
6863 2011-01-25 Jeff Law <law@redhat.com>
6865 PR rtl-optimization/37273
6866 * ira-costs.c (scan_one_insn): Detect constants living in memory and
6867 handle them like argument loads from stack slots. Do not double
6868 count memory for memory constants and argument loads from stack slots.
6870 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
6873 * combine.c (cant_combine_insn_p): Revert the last change.
6875 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
6878 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
6879 mode for vector constants. Remove code that checks for TImode.
6881 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
6885 * cgraph.h (compute_inline_parameters): Return void.
6886 * ipa-inline.c (compute_inline_parameters): Adjust.
6888 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
6892 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
6894 * cfgexpand.c (estimated_stack_frame_size): Likewise.
6895 * ipa-inline.c (compute_inline_parameters): Adjust.
6897 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
6901 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
6902 Adjust all users. Pass FN to...
6903 * tree-flow-inline.h (first_referenced_var): ... this. Add
6905 * ipa-struct-reorg.c: Adjust.
6906 * tree-dfa.c: Adjust.
6907 * tree-into-ssa.c: Adjust.
6908 * tree-sra.c: Adjust.
6909 * tree-ssa-alias.c: Adjust.
6910 * tree-ssa-live.c: Adjust.
6911 * tree-ssa.c: Adjust.
6912 * tree-ssanames.c: Adjust.
6913 * tree-tailcall.c: Adjust.
6915 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
6919 * tree-flow.h (referenced_var_lookup): Add fn parameter.
6921 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
6922 * tree-flow-inline.h: Adjust.
6923 * gimple-pretty-print.c: Adjust.
6924 * tree-into-ssa.c: Adjust.
6925 * tree-ssa.c: Adjust.
6926 * cfgexpand.c: Adjust.
6928 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
6930 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
6931 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6932 (EXTRA_CONSTRAINT): Delete.
6933 * config/iq2000/constraints.md: New file.
6934 * config/iq2000/iq2000.md: Include it.
6935 (define_insn ""): Delete.
6936 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
6937 unsupported constraint letters from patterns.
6938 (call_value, call_value_internal1): Likewise.
6939 (call_value_multiple_internal1): Likewise.
6941 2011-02-15 Nick Clifton <nickc@redhat.com>
6943 * config/mn10300/mn10300.c: Include tm-constrs.h.
6944 (struct liw_data): New data structure describing an LIW candidate
6946 (extract_bundle): Use struct liw_data. Allow small integer
6947 operands for some instructions.
6948 (check_liw_constraints): Use struct liw_data. Remove swapped
6949 parameter. Add comments describing the checks. Fix bug when
6950 assigning the source of liw1 to the source of liw2.
6951 (liw_candidate): Delete. Code moved into extract_bundle.
6952 (mn10300_bundle_liw): Use struct liw_data. Check constraints
6954 * config/mn10300/predicates.md (liw_operand): New predicate.
6955 Allows registers and small integer constants.
6956 * config/mn10300/constraints.md (O): New constraint. Accetps
6957 integers in the range -8 to +7 inclusive.
6958 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
6959 for moving a small integer into a register. Give this alternative
6961 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
6962 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
6963 using the J,K,L and M constraints,
6964 (liw): Remove SI mode on second operands to allow for HI and QI
6966 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
6969 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
6972 * combine.c (cant_combine_insn_p): Check zero/sign extended
6975 2011-02-15 Richard Guenther <rguenther@suse.de>
6977 PR tree-optimization/47743
6978 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
6979 for a non-type-compatible VN lookup bail out.
6981 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
6983 * config/fr30/constraints.md: New file.
6984 * config/fr30/fr30.md: Include it.
6985 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
6986 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6987 (EXTRA_CONSTRAINT): Delete.
6989 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
6991 * config/frv/constraints.md: New file.
6992 * config/frv/predicates.md: Include it.
6993 * config/frv/frv.c (reg_class_from_letter): Delete.
6994 (frv_option_override): Don't initialize it.
6995 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
6996 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
6997 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
6998 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
6999 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
7000 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7001 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
7002 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
7003 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
7004 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
7005 (REG_CLASS_FROM_CONSTRAINT): Delete.
7007 2011-02-15 Jakub Jelinek <jakub@redhat.com>
7010 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
7011 if frame size is 0 in a leaf function.
7013 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7016 * config/alpha/host-osf.c: New file.
7017 * config/alpha/x-osf: New file.
7018 * config.host (alpha*-dec-osf*): Use it.
7020 2011-02-14 Anatoly Sokolov <aesok@post.ru>
7022 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7023 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
7024 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
7025 (rx_mode_dependent_address_p): ...this. Make static. Change argument
7027 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7029 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
7031 * config/stormy16/constraints.md: New file.
7032 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
7033 Use satisfies_constraint_Q and satisfies_constraint_R.
7034 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
7036 (xstormy16_legitiamte_address_p): Declare.
7037 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
7038 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7039 (EXTRA_CONSTRAINT): Delete.
7040 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
7042 (xstormy16_extra_constraint_p): Delete.
7044 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
7046 PR tree-optimization/46494
7047 * loop-unroll.c (split_edge_and_insert): Adjust comment.
7048 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
7049 (pass_rtl_loop_done): Add TODO_verify_flow.
7050 * fwprop.c (pass_rtl_fwprop): Likewise.
7051 * modulo-sched.c (pass_sms): Likewise.
7052 * tree-ssa-dom.c (pass_dominator): Likewise.
7053 * tree-ssa-loop-ch.c (pass_ch): Likewise.
7054 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
7055 (pass_tree_loop_done): Likewise.
7056 * tree-ssa-pre.c (execute_pre): Likewise.
7057 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
7058 * tree-ssa-sink.c (pass_sink_code): Likewise.
7059 * tree-vrp.c (pass_vrp): Likewise.
7061 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
7063 * config/v850/constraints.md: New file.
7064 * config/v850/v850.md: Include it.
7065 * config/v850/predicates.md (reg_or_0_operand): Use
7066 satisfies_constraint_G.
7067 (special_symbolref_operand): Use satisfies_constraint_K.
7068 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
7069 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
7070 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
7071 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7072 (EXTRA_CONSTRAINT): Delete.
7073 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
7074 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
7075 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
7077 2011-02-14 Anatoly Sokolov <aesok@post.ru>
7080 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
7083 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
7085 * config/mcore/constraints.md: New file.
7086 * config/mcore/mcore.md: Include it.
7087 * config/mcore/mcore.c (reg_class_from_letter): Delete.
7088 * config/mcore/mcore.h (reg_class_from_letter): Delete.
7089 (REG_CLASS_FROM_LETTER): Delete.
7090 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
7091 insn_const_int_ok_for_constraint.
7092 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
7093 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
7094 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7095 (EXTRA_CONSTRAINT): Delete.
7097 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7100 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
7101 (IS_SIGHANDLER): Define.
7102 (sparc64_is_sighandler): New function, split off from
7103 sparc64_fallback_frame_state.
7104 (sparc_is_sighandler): New function, split off from
7105 sparc_fallback_frame_state.
7106 (sparc64_fallback_frame_state): Merge with ...
7107 (sparc_fallback_frame_state): ... this into ...
7108 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
7109 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
7110 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
7111 stack instead of hardcoded offsets.
7113 2011-02-14 Andriy Gapon <avg@freebsd.org>
7116 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
7118 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7120 * configure: Regenerate.
7122 2011-02-12 Joseph Myers <joseph@codesourcery.com>
7125 * gcc.c (asm_options): Correct spec matching --target-help.
7127 2011-02-12 Martin Jambor <mjambor@suse.cz>
7129 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
7130 to gimple call error.
7132 2011-02-12 Mike Stump <mikestump@comcast.net>
7134 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
7135 comments in backslash regions.
7137 2011-02-12 Mike Stump <mikestump@comcast.net>
7138 Jakub Jelinek <jakub@redhat.com>
7139 Iain Sandoe <iains@gcc.gnu.org>
7142 * dwarf2out.c (output_cfa_loc): When required, apply the
7143 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
7144 (output_loc_sequence): Likewise.
7145 (output_loc_operands_raw): Likewise.
7146 (output_loc_sequence_raw): Likewise.
7147 (output_cfa_loc): Likewise.
7148 (output_loc_list): Suppress register number adjustment when
7149 calling output_loc_sequence()
7150 (output_die): Likewise.
7152 2011-02-12 Anatoly Sokolov <aesok@post.ru>
7154 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7156 * config/xtensa/xtensa.c (xtensa_register_move_cost,
7157 xtensa_memory_move_cost): New functions.
7158 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
7160 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
7163 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
7164 in the current directory.
7165 * configure: Rebuilt.
7167 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
7169 * config/darwin.c (darwin_override_options): Add a hunk missed
7170 from the commit of r168571. Trim comment line lengths and
7171 correct indents of the preceding block.
7173 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
7175 * gcc.c (driver_handle_option): Concatenate the argument to -F with
7178 2011-02-11 Joseph Myers <joseph@codesourcery.com>
7180 * common.opt (nostartfiles): New Driver option.
7182 2011-02-11 Xinliang David Li <davidxl@google.com>
7184 PR tree-optimization/47707
7185 * tree-chrec.c (convert_affine_scev): Keep type precision.
7187 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
7189 PR tree-optimization/47420
7190 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
7192 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
7194 PR rtl-optimization/47614
7195 * rtl.h (check_for_inc_dec): Declare.
7196 * dse.c (check_for_inc_dec): Externalize...
7197 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
7198 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
7200 2011-02-11 Joseph Myers <joseph@codesourcery.com>
7203 * gcc.c (main): Do not compile inputs if there were errors in
7205 * opts-common.c (read_cmdline_option): Check for wrong language
7206 after other error checks.
7208 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
7210 * cgraph.c: Fix comment typos.
7211 * cgraph.h: Likewise.
7212 * cgraphunit.c: Likewise.
7213 * ipa-cp.c: Likewise.
7214 * ipa-inline.c: Likewise.
7215 * ipa-prop.c: Likewise.
7216 * ipa-pure-const.c: Likewise.
7217 * ipa-ref.c: Likewise.
7218 * ipa-reference.c: Likewise.
7220 2011-02-11 Jakub Jelinek <jakub@redhat.com>
7223 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
7225 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7228 * doc/sourcebuild.texi (Require Support): Document
7229 dg-require-ascii-locale.
7231 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
7233 * doc/lto.texi (Write summary): Fix missing parentheses.
7235 2011-02-10 DJ Delorie <dj@redhat.com>
7237 * config/m32c/m32c.c (m32c_option_override): Disable
7238 -fcombine-stack-adjustments until flag value tracking and compare
7239 optimization can be rewritten.
7241 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
7243 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
7245 (PROCESSOR_DEFAULT64): Likewise.
7247 2011-02-10 Richard Henderson <rth@redhat.com>
7249 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
7250 change from 2011-02-03.
7251 * config/rx/rx.c (flags_from_code): Likewise.
7252 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
7253 is valid, n/pz otherwise.
7254 (rx_select_cc_mode): Return CCmode if Y is not zero.
7256 2011-02-10 Richard Guenther <rguenther@suse.de>
7258 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
7260 2011-02-10 Richard Guenther <rguenther@suse.de>
7262 PR tree-optimization/47677
7263 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
7265 2011-02-10 Jakub Jelinek <jakub@redhat.com>
7268 * combine.c (make_compound_operation): Only change shifts into
7269 multiplication for SCALAR_INT_MODE_P.
7271 2011-02-10 Jie Zhang <jie@codesourcery.com>
7275 2011-02-05 Jie Zhang <jie@codesourcery.com>
7277 * web.c (entry_register): Don't clobber the number of the
7278 first uninitialized reference in used[].
7280 2011-02-09 Richard Guenther <rguenther@suse.de>
7282 PR tree-optimization/47664
7283 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
7286 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
7290 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
7292 (PROCESSOR_DEFAULT64): Same.
7293 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
7295 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7297 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
7299 2011-02-09 Martin Jambor <mjambor@suse.cz>
7302 * tree-sra.c (struct access): New flags grp_scalar_read and
7303 grp_scalar_write. Changed description of assignment read and write
7305 (dump_access): Dump new flags, reorder all of them.
7306 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
7307 to detect multiple scalar reads.
7308 (analyze_access_subtree): Use the new scalar read write flags instead
7309 of the old flags. Adjusted comments.
7311 2011-02-08 DJ Delorie <dj@redhat.com>
7314 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
7317 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7319 * config/m68k/uclinux.opt: New.
7320 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
7322 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7324 * config/cris/elf.opt (sim): New Driver option.
7326 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7328 * config/xtensa/elf.opt: New.
7329 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
7331 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7333 * config/vax/elf.opt: New.
7334 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
7336 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7338 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
7340 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7342 * config/gnu-user.opt: New.
7343 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
7344 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
7345 *-*-uclinux*): Use gnu-user.opt.
7347 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
7349 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
7350 * config/i386/gnu.h (CPP_SPEC): Likewise.
7352 2011-02-08 Ian Lance Taylor <iant@google.com>
7354 * common.opt (fcx-limited-range): Add SetByCombined flag.
7355 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
7356 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
7357 (fassociative-math, freciprocal-math): Likewise.
7358 (funsafe-math-optimizations): Likewise.
7359 * opth-gen.awk: Handle SetByCombined.
7360 * optc-gen.awk: Likewise.
7361 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
7362 (set_unsafe_math_optimizations_flags): Likewise.
7363 * doc/options.texi (Option properties): Document SetByCombined.
7365 2011-02-08 Joseph Myers <joseph@codesourcery.com>
7367 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
7368 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
7369 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
7370 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
7371 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
7373 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
7375 PR tree-optimization/46834
7376 PR tree-optimization/46994
7377 PR tree-optimization/46995
7378 * graphite-sese-to-poly.c (used_outside_reduction): New.
7379 (detect_commutative_reduction): Call used_outside_reduction.
7380 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
7381 translate_scalar_reduction_to_array only when at least one
7382 loop-phi/close-phi tuple has been detected.
7384 2011-02-08 Richard Guenther <rguenther@suse.de>
7387 * tree-vect-generic.c (expand_vector_operations_1): Update
7389 (expand_vector_operations): ... not here. Cleanup EH info
7390 and the CFG if required.
7392 2011-02-08 Richard Guenther <rguenther@suse.de>
7394 PR tree-optimization/47641
7395 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
7396 require type compatibility.
7398 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7400 * gimple-low.c (lower_function_body): Don't remove the location of
7401 the return statement here.
7402 (lower_gimple_return): Do it here instead but only if the return
7403 statement is actually used twice.
7405 2011-02-08 Richard Guenther <rguenther@suse.de>
7407 PR tree-optimization/47632
7408 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
7409 unused up_to_stmt parameter, return whether cfg-cleanup is
7410 necessary, remove EH info properly.
7411 (forward_propagate_into_gimple_cond): Adjust caller.
7412 (forward_propagate_into_cond): Likewise.
7413 (forward_propagate_comparison): Likewise.
7414 (tree_ssa_forward_propagate_single_use_vars): Make
7415 forward_propagate_comparison case similar to the two others.
7417 2011-02-08 Nick Clifton <nickc@redhat.com>
7419 * config/mn10300/mn10300.opt (mliw): New command line option.
7420 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
7421 (liw_bundling): New automaton.
7422 (liw): New attribute.
7423 (liw_op): New attribute.
7424 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
7425 (movsi_internal): Add LIW attributes.
7429 (addsi3): Separate register and immediate alternatives.
7434 (lshrsi3): Likewise.
7435 (ashrsi3): Likewise.
7437 * config/mn10300/mn10300.c (liw_op_names): New
7438 (mn10300_print_operand): Handle 'W' operand descriptor.
7439 (extract_bundle): New function.
7440 (check_liw_constraints): New function.
7441 (liw_candidate): New function.
7442 (mn10300_bundle_liw): New function.
7443 (mn10300_reorg): New function.
7444 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7445 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
7446 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
7447 __LIW__ or __NO_LIW__.
7448 * doc/invoke.texi: Describe the -mliw command line option.
7450 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7452 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
7453 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7454 pthread_mutex_unlock): Remove.
7455 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
7456 * config/pa/t-pa64: Likewise.
7457 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
7458 shared libc if not linking against libpthread.
7459 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
7461 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
7464 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
7465 on 10.6 and later to ensure that we always use the unwinder from
7466 the system. Only add -no_compact_unwind when tarteting darwin
7469 2011-02-07 Steve Ellcey <sje@cup.hp.com>
7472 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
7473 (vec_interleave_lowv2sf): Ditto.
7474 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
7475 (vec_extract_oddv2sf): Ditto.
7477 2011-02-07 Mike Stump <mikestump@comcast.net>
7480 Add __ieee_divdc3 entry point.
7481 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
7483 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
7484 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
7485 * config/darwin.c (darwin_rename_builtins): Add.
7486 * config/darwin-protos.h (darwin_rename_builtins): Add.
7488 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
7491 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
7494 2011-02-07 Mike Stump <mikestump@comcast.net>
7496 * config/darwin.opt (mmacosx-version-min): Update default OS version.
7498 2011-02-07 Denis Chertykov <chertykov@gmail.com>
7501 * config/avr/libgcc.S (exit): Move .endfunc
7503 2011-02-07 Richard Guenther <rguenther@suse.de>
7505 PR tree-optimization/47615
7506 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
7507 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
7508 (run_scc_vn): Initialize it.
7509 (visit_reference_op_load): Use it.
7510 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
7512 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7514 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
7515 DImode trapping arithmetic libfuncs.
7517 2011-02-07 Richard Guenther <rguenther@suse.de>
7519 PR tree-optimization/47621
7520 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
7522 (execute_update_addresses_taken): ... here. Make it more
7523 conservative in what we accept.
7525 2011-02-06 Joseph Myers <joseph@codesourcery.com>
7527 * config/sparc/freebsd.h (ASM_SPEC): Define.
7528 * config/sparc/vxworks.h (ASM_SPEC): Define.
7530 2011-02-06 Joseph Myers <joseph@codesourcery.com>
7532 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
7534 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
7536 * doc/invoke.texi: Remove reference to compiler internals from
7539 * reg-notes.def: Remove REG_VALUE_PROFILE.
7540 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
7542 2011-02-05 Jakub Jelinek <jakub@redhat.com>
7545 * varasm.c (default_section_type_flags): If decl is NULL,
7546 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
7548 2011-02-05 Jie Zhang <jie@codesourcery.com>
7551 * web.c (entry_register): Don't clobber the number of the
7552 first uninitialized reference in used[].
7554 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
7556 PR tree-optimization/46194
7557 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
7558 (build_classic_dist_vector_1): Do not represent classic distance
7559 vectors when the access functions are variating in different loops.
7561 2011-02-04 Joseph Myers <joseph@codesourcery.com>
7563 * config/mips/iris6.opt: New.
7564 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
7566 2011-02-04 Richard Henderson <rth@redhat.com>
7567 Steve Ellcey <sje@cup.hp.com>
7570 * config/ia64/predicates.md (mux1_brcst_element): New.
7571 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
7572 * config/ia64/ia64.c (ia64_unpack_assemble): New.
7573 (ia64_unpack_sign): New.
7574 (ia64_expand_unpack): Rewrite using new routines.
7575 (ia64_expand_widen_sum): Ditto.
7576 (ia64_expand_dot_prod_v8qi): Ditto.
7577 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
7578 routines, add endian check.
7579 (pmpy2_even): Rename from pmpy2_r, add endian check.
7580 (pmpy2_odd): Rename from pmpy2_l, add endian check.
7581 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
7582 (vec_widen_smult_hi_v4hi): Ditto.
7583 (vec_widen_umult_lo_v4hi): Ditto.
7584 (vec_widen_umult_hi_v4hi): Ditto.
7585 (mulv2si3): Change endian checks.
7586 (sdot_prodv4hi): Rewrite with new calls.
7587 (udot_prodv4hi): New.
7588 (vec_pack_ssat_v4hi): Add endian check.
7589 (vec_pack_usat_v4hi): Ditto.
7590 (vec_pack_ssat_v2si): Ditto.
7591 (max1_even): Rename from max1_r, add endian check.
7592 (max1_odd): Rename from max1_l, add endian check.
7593 (*mux1_rev): Format change.
7595 (*mux1_shuf): Ditto.
7597 (*mux1_brcst_v8qi): Use new predicate.
7598 (vec_extract_evenv8qi): Remove endian check.
7599 (vec_extract_oddv8qi): Ditto.
7600 (vec_interleave_lowv4hi): Format change.
7601 (vec_interleave_highv4hi): Ditto.
7602 (mix2_even): Rename from mix2_r, add endian check.
7603 (mix2_odd): Rename from mux2_l, add endian check.
7604 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
7605 (vec_extract_evenodd_helper): Format change.
7606 (vec_extract_evenv4hi): Remove endian check.
7607 (vec_extract_oddv4hi): Remove endian check.
7608 (vec_interleave_lowv2si): Format change.
7609 (vec_interleave_highv2si): Format change.
7610 (vec_initv2si): Remove endian check.
7611 (vecinit_v2si): Add endian check.
7612 (reduc_splus_v2sf): Add endian check.
7613 (reduc_smax_v2sf): Ditto.
7614 (reduc_smin_v2sf): Ditto.
7615 (vec_initv2sf): Remove endian check.
7616 (fpack): Add endian check.
7617 (fswap): Add endian check.
7618 (vec_interleave_highv2sf): Add endian check.
7619 (vec_interleave_lowv2sf): Add endian check.
7620 (fmix_lr): Add endian check.
7621 (vec_setv2sf): Format change.
7622 (*vec_extractv2sf_0_be): Use shift to extract operand.
7623 (*vec_extractv2sf_1_be): New.
7624 (vec_pack_trunc_v4hi): Add endian check.
7625 (vec_pack_trunc_v2si): Format change.
7627 2011-02-04 Jakub Jelinek <jakub@redhat.com>
7630 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
7631 do bb, locus and block comparison and disallow loads if it is not set.
7632 (stmt_is_replaceable_p): New function.
7633 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
7635 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
7636 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
7638 * tree-flow.h (stmt_is_replaceable_p): New prototype.
7640 2011-02-04 Joseph Myers <joseph@codesourcery.com>
7642 * config/rs6000/xilinx.opt: New.
7643 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
7645 2011-02-04 Joseph Myers <joseph@codesourcery.com>
7647 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
7649 2011-02-03 Anatoly Sokolov <aesok@post.ru>
7651 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
7652 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7653 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
7654 secondary_reload_info, xtensa_secondary_reload): Remove.
7655 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
7656 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7657 (xtensa_preferred_reload_class): Make static. Change return and
7658 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
7659 Use CONST_DOUBLE_P predicate.
7660 (xtensa_preferred_output_reload_class): New function.
7661 (xtensa_secondary_reload): Make static.
7663 2011-02-03 Joseph Myers <joseph@codesourcery.com>
7665 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
7666 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
7667 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
7669 2011-02-03 Jakub Jelinek <jakub@redhat.com>
7672 * output.h (SECTION_RELRO): Define.
7673 (SECTION_MACH_DEP): Adjust.
7674 (get_variable_section): New prototype.
7675 * varpool.c (varpool_finalize_named_section_flags): New function.
7676 (varpool_assemble_pending_decls): Call it.
7677 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
7678 * cgraphunit.c (cgraph_output_in_order): Call
7679 varpool_finalize_named_section_flags.
7680 * varasm.c (get_section): Allow section flags conflicts between
7681 relro and read-only sections if the section hasn't been declared yet.
7682 Set SECTION_OVERRIDE after diagnosing section type conflict.
7683 (get_variable_section): No longer static.
7684 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
7685 readonly sections that need relocations.
7686 (decl_readonly_section_1): New function.
7687 (decl_readonly_section): Use it.
7690 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
7691 Steve Ellcey <sje@cup.hp.com>
7694 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
7695 if section attribute used.
7697 2011-02-03 Jakub Jelinek <jakub@redhat.com>
7699 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
7700 * config/darwin.c (SECTION_NO_ANCHOR): Define.
7701 (darwin_init_sections): Remove assertion.
7703 2011-02-03 Nick Clifton <nickc@redhat.com>
7705 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
7707 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
7708 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
7709 instead of "n" and "pz".
7710 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
7713 2011-02-03 Jakub Jelinek <jakub@redhat.com>
7716 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
7717 fma, expand FMA_EXPR as fma{,f,l} call.
7720 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
7721 copy them into a unsigned char variable and pass address of it to
7722 lto_output_data_stream.
7725 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
7726 around backend_init_target and lang_dependent_init_target calls.
7727 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
7728 (verify_cgraph_node): Don't call set_cfun here. Use
7729 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
7730 Set error_found for incorrectly represented calls to thunks.
7732 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
7735 PR rtl-optimization/43494
7736 * rtl.h (for_each_inc_dec_fn): New type.
7737 (for_each_inc_dec): Declare.
7738 * rtlanal.c (struct for_each_inc_dec_ops): New type.
7739 (for_each_inc_dec_find_inc_dec): New fn.
7740 (for_each_inc_dec_find_mem): New fn.
7741 (for_each_inc_dec): New fn.
7742 * dse.c (struct insn_size): Remove.
7743 (replace_inc_dec, replace_inc_dec_mem): Remove.
7744 (emit_inc_dec_insn_before): New fn.
7745 (check_for_inc_dec): Use it, along with for_each_inc_dec.
7746 (canon_address): Pass mem modes to cselib_lookup.
7747 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
7748 (cselib_lookup_from_insn): Likewise.
7749 (cselib_subst_to_values): Likewise.
7750 * cselib.c (find_slot_memmode): New var.
7751 (cselib_find_slot): New fn. Use it instead of
7752 htab_find_slot_with_hash everywhere.
7753 (entry_and_rtx_equal_p): Use find_slot_memmode.
7754 (autoinc_split): New fn.
7755 (rtx_equal_for_cselib_p): Rename and implement in terms of...
7756 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
7757 Deal with autoinc. Special-case recursion into MEMs.
7758 (cselib_hash_rtx): Likewise.
7759 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
7760 address and MEM modes.
7761 (cselib_subst_to_values): Add memmode, pass it on.
7763 (cselib_lookup): Add memmode argument, pass it on.
7764 (cselib_lookup_from_insn): Add memmode.
7765 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
7766 (struct cselib_record_autoinc_data): New.
7767 (cselib_record_autoinc_cb): New fn.
7768 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
7769 mode to cselib_lookup. Reset autoinced REGs here instead of...
7770 (cselib_process_insn): ... here.
7771 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
7773 (add_uses): Likewise, also to cselib_subst_to_values.
7774 (add_stores): Likewise.
7775 * sched-deps.c (add_insn_mem_dependence): Pass mode to
7776 cselib_subst_to_values.
7777 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
7778 * gcse.c (do_local_cprop): Adjusted.
7779 * postreload.c (reload_cse_simplify_set): Adjusted.
7780 (reload_cse_simplify_operands): Adjusted.
7781 * sel-sched-dump (debug_mem_addr_value): Pass mode.
7783 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
7785 PR tree-optimization/45122
7786 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
7787 unsafe assumptions when there's more than one loop exit.
7789 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
7792 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
7793 Document using vector double with the load/store builtins, and
7794 that the load/store builtins always use Altivec instructions.
7796 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
7797 to use altivec memory instructions, even on VSX.
7798 (vector_altivec_store_<mode>): Ditto.
7800 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
7803 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7804 V2DF, V2DI support to load/store overloaded builtins.
7806 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
7807 altivec load/store builtins for V2DF/V2DI types.
7809 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
7810 set avoid indexed addresses on power6 if -maltivec.
7811 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
7812 vector_altivec_load/vector_altivec_store builtins.
7813 (altivec_expand_st_builtin): Ditto.
7814 (altivec_expand_builtin): Add VSX memory builtins.
7815 (rs6000_init_builtins): Add V2DI types to internal types.
7816 (altivec_init_builtins): Add support for V2DF/V2DI altivec
7817 load/store builtins.
7818 (rs6000_address_for_altivec): Insure memory address is appropriate
7821 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
7822 vec_vsx_ld and vec_vsx_st.
7823 (vsx_store_<mode>): Ditto.
7825 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
7826 variables to hold long long types for VSX vector memory builtins.
7827 (RS6000_BTI_unsigned_long_long): Ditto.
7828 (long_long_integer_type_internal_node): Ditti.
7829 (long_long_unsigned_type_internal_node): Ditti.
7831 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
7832 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
7833 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
7835 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
7837 (vec_vsx_st): Ditto.
7839 2011-02-02 Joseph Myers <joseph@codesourcery.com>
7841 * config/pa/pa-hpux10.opt: New.
7842 * config/hpux11.opt (pthread): New Driver option.
7843 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
7844 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
7846 2011-02-02 Joseph Myers <joseph@codesourcery.com>
7848 * config/ia64/vms.opt: New.
7849 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
7851 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
7854 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
7855 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
7856 generator functions.
7857 (vsx_floatuns<VSi><mode>2): Ditto.
7858 (vsx_fix_trunc<mode><VSi>2): Ditto.
7859 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
7861 2011-02-02 Joseph Myers <joseph@codesourcery.com>
7863 * config/i386/djgpp.opt (posix): New Driver option.
7865 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
7867 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
7868 Move to the unsupported targets list.
7870 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
7872 PR rtl-optimization/47525
7873 * df-scan.c: Update copyright years.
7874 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
7875 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
7877 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7879 * config/i386/sysv4.h (TARGET_VERSION): Remove.
7880 (SUBTARGET_RETURN_IN_MEMORY): Remove.
7881 (ASM_OUTPUT_ASCII): Remove.
7882 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
7884 2011-02-02 Jeff Law <law@redhat.com>
7887 * reload.c (find_reloads_address): Handle reg+d address where both
7888 components are invalid by reloading the entire address.
7890 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
7891 Richard Guenther <rguenther@suse.de>
7893 PR tree-optimization/40979
7895 * passes.c (init_optimization_passes): After LIM call copy_prop
7896 and DCE to clean up.
7897 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
7899 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
7901 PR tree-optimization/47576
7902 PR tree-optimization/47555
7903 * doc/invoke.texi (scev-max-expr-complexity): Documented.
7904 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
7905 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
7906 * tree-scalar-evolution.c (follow_ssa_edge): Use
7907 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
7909 2011-02-02 Richard Guenther <rguenther@suse.de>
7911 PR tree-optimization/47566
7912 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
7914 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
7918 * tree-inline.c (declare_return_variable): Remove unused caller
7923 * tree-flow-inline.h (clear_is_used, is_used_p): New.
7924 * cfgexpand.c (account_used_vars_for_block): Use them.
7925 * tree-nrv.c (tree_nrv): Likewise.
7926 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
7927 (dump_scope_block): Likewise.
7928 (remove_unused_locals): Likewise.
7932 * tree-inline.c (declare_return_variable): Add result decl to
7933 local decls only once.
7934 * gimple-low.c (record_vars_into): Mark newly-created variables
7937 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
7943 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
7945 (no_real_insns_p, schedule_block, set_priorities): Drop special
7946 treatment of boundary debug insns.
7947 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
7948 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
7949 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
7950 (BOUNDARY_DEBUG_INSN_P): Likewise.
7951 (SCHEDULE_DEBUG_INSN_P): Likewise.
7952 * sched-rgn.c (init_ready_list): Drop special treatment of
7953 boundary debug insns.
7954 * final.c (rest_of_clean_state): Clear notes' BB.
7956 2011-02-01 Joseph Myers <joseph@codesourcery.com>
7958 * config/openbsd.opt (assert=): New Driver option.
7960 2011-02-01 Joseph Myers <joseph@codesourcery.com>
7962 * config/i386/nto.opt: New.
7963 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
7965 2011-02-01 Joseph Myers <joseph@codesourcery.com>
7967 * config/i386/netware.opt: New.
7968 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
7970 2011-02-01 Joseph Myers <joseph@codesourcery.com>
7972 * config/interix.opt (posix): New Driver option.
7974 2011-02-01 DJ Delorie <dj@redhat.com>
7976 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
7978 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
7981 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
7983 PR tree-optimization/47561
7984 * toplev.c (process_options): Print the Graphite flags. Add
7985 flag_loop_flatten to the list of options requiring Graphite.
7987 2011-02-01 Joseph Myers <joseph@codesourcery.com>
7989 * config/i386/cygming.opt (posix): New Driver option.
7991 2011-02-01 Joseph Myers <joseph@codesourcery.com>
7993 * config/arm/vxworks.opt: New.
7994 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
7996 2011-02-01 Joseph Myers <joseph@codesourcery.com>
7998 * config/alpha/elf.opt: New.
7999 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
8000 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
8002 2011-02-01 Richard Guenther <rguenther@suse.de>
8004 PR tree-optimization/47559
8005 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
8006 store-motion on references that can throw.
8008 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
8010 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
8011 * tree-pass.h (TDF_CSELIB): New macro.
8012 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
8013 cselib_lookup): Check for it rather than for TDF_DETAILS.
8015 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
8018 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
8021 * opts.c (finish_options): Don't add x_aux_base_name if it is
8024 2011-02-01 Richard Guenther <rguenther@suse.de>
8026 PR tree-optimization/47555
8028 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
8030 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8032 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
8035 * config/lm32/t-lm32: Add multilib for all CPU options.
8037 2011-02-01 Richard Guenther <rguenther@suse.de>
8039 PR tree-optimization/47541
8040 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
8041 sure to have a field at offset zero.
8043 2011-01-31 Joseph Myers <joseph@codesourcery.com>
8045 * config/arc/arc.opt (EB, EL): New Driver options.
8047 2011-01-31 Joseph Myers <joseph@codesourcery.com>
8049 * config/alpha/osf5.opt: New.
8050 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
8052 2011-01-31 Joseph Myers <joseph@codesourcery.com>
8054 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
8056 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
8058 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
8060 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
8061 is an alias of -floop-interchange and that it requires the
8062 Graphite infrastructure.
8063 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
8064 flag_loop_interchange based on the value of flag_tree_loop_linear.
8066 2011-01-31 Jakub Jelinek <jakub@redhat.com>
8067 Richard Guenther <rguenther@suse.de>
8069 PR tree-optimization/47538
8070 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
8071 type instead of r1type, except for comparisons. For right
8072 shifts and comparisons punt if there are mismatches in
8073 sizetype vs. non-sizetype types.
8075 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8077 * doc/sourcebuild.texi (Effective-Target Keywords): Document
8080 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8082 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
8084 * configure: Regenerate.
8086 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8088 * configure.ac (gcc_cv_ld_static_option): Define.
8089 (gcc_cv_ld_dynamic_option): Define.
8090 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
8092 (HAVE_LD_STATIC_DYNAMIC): Update message.
8093 (LD_STATIC_OPTION): Define.
8094 (LD_DYNAMIC_OPTION): Define.
8095 * configure: Regenerate.
8096 * config.in: Regenerate.
8097 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
8098 HAVE_LD_STATIC_DYNAMIC]: Use them.
8100 2011-01-31 Nick Clifton <nickc@redhat.com>
8102 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
8103 registers inside interrupt handlers if the handler is not a leaf
8106 2011-01-31 Nick Clifton <nickc@redhat.com>
8108 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
8109 reg_renumber returning an INVALID_REGNUM.
8111 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
8114 * doc/install.texi: Document host options discarded when cross
8115 configuring target libraries.
8117 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
8120 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
8123 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8125 (no_real_insns_p, schedule_block, set_priorities): Drop special
8126 treatment of boundary debug insns.
8127 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8128 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
8129 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8130 (BOUNDARY_DEBUG_INSN_P): Likewise.
8131 (SCHEDULE_DEBUG_INSN_P): Likewise.
8132 * sched-rgn.c (init_ready_list): Drop special treatment of
8133 boundary debug insns.
8134 * final.c (rest_of_clean-state): Clear notes' BB.
8136 2011-01-31 Alan Modra <amodra@gmail.com>
8138 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
8139 toc relative expressions as we do in print_operand_address.
8141 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
8143 * doc/extend.texi: Follow spelling conventions.
8144 * doc/invoke.texi: Fix a typo.
8146 2011-01-30 Joseph Myers <joseph@codesourcery.com>
8148 * config/hpux11.opt: New.
8149 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
8150 ia64*-*-hpux*): Use hpux11.opt.
8152 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
8154 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
8157 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
8159 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
8162 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
8164 * doc/install.texi (Binaries): Remove outdated reference for
8165 Motorola 68HC11/68HC12 downloads.
8167 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
8169 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
8172 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
8175 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
8178 2011-01-28 Ahmad Sharif <asharif@google.com>
8180 * value-prof.c (check_counter): Corrected error message.
8182 2011-01-29 Jie Zhang <jie@codesourcery.com>
8184 * config/arm/arm.c (arm_legitimize_reload_address): New.
8185 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
8186 arm_legitimize_reload_address.
8187 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
8189 2011-01-28 Ian Lance Taylor <iant@google.com>
8191 * godump.c (go_define): Ignore macros whose definitions include
8192 two adjacent operands.
8194 2011-01-28 Jakub Jelinek <jakub@redhat.com>
8197 * varasm.c (force_const_mem): Store copy of x in desc->constant
8198 instead of x itself.
8199 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
8200 itself into REG_EQUAL note.
8202 2011-01-28 Joseph Myers <joseph@codesourcery.com>
8204 * config/freebsd.opt (posix, rdynamic): New Driver options.
8206 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8208 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
8210 * configure: Regenerate.
8212 2011-01-27 Joseph Myers <joseph@codesourcery.com>
8214 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
8215 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
8217 2011-01-27 Anatoly Sokolov <aesok@post.ru>
8219 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
8220 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
8221 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8222 (s390_preferred_reload_class): Make static. Change return and
8223 'rclass' argument type to reg_class_t.
8225 2011-01-27 Jan Hubicka <jh@suse.cz>
8228 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
8229 (process_function_and_variable_attributes): Check defined weakrefs.
8231 2011-01-27 Martin Jambor <mjambor@suse.cz>
8233 PR tree-optimization/47228
8234 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
8235 build_ref_for_offset.
8237 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8239 * config/spu/spu-elf.h (ASM_SPEC): Remove.
8241 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
8243 PR rtl-optimization/46856
8244 * postreload.c (reload_combine_recognize_const_pattern): Do not
8245 separate cc0 setter and user on cc0 targets.
8247 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
8250 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
8251 passed a VOID_TYPE expression, immediately emit an error and
8252 return error_mark_node.
8254 2011-01-26 Jeff Law <law@redhat.com>
8256 PR rtl-optimization/47464
8257 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
8258 rather than may_trap_p as needed.
8260 2011-01-26 DJ Delorie <dj@redhat.com>
8262 PR rtl-optimization/46878
8263 * combine.c (insn_a_feeds_b): Check for the implicit cc0
8264 setter/user dependency as well.
8266 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
8268 PR rtl-optimization/44469
8269 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
8270 after removing trivially dead basic blocks.
8272 2011-01-26 Joseph Myers <joseph@codesourcery.com>
8274 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
8275 * config/frv/frv.h (LINK_SPEC): Likewise.
8276 * config/i386/netware.h (LINK_SPEC): Likewise.
8277 * config/m68k/linux.h (ASM_SPEC): Likewise.
8278 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
8279 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8280 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8281 * config/sparc/linux.h (ASM_SPEC): Likewise.
8282 * config/sparc/linux64.h (ASM_SPEC): Likewise.
8283 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8285 2011-01-26 Joseph Myers <joseph@codesourcery.com>
8287 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
8288 * config/frv/frv.h (ASM_SPEC): Likewise.
8289 * config/m68k/linux.h (ASM_SPEC): Likewise.
8290 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
8291 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
8292 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8293 * config/sparc/linux.h (ASM_SPEC): Likewise.
8294 * config/sparc/linux64.h (ASM_SPEC): Likewise.
8295 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8297 2011-01-26 Joseph Myers <joseph@codesourcery.com>
8299 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
8300 * config/frv/frv.h (LINK_SPEC): Likewise.
8301 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8303 2011-01-26 Joseph Myers <joseph@codesourcery.com>
8305 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
8306 * config/frv/frv.h (ASM_SPEC): Likewise.
8307 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
8308 * config/m68k/linux.h (ASM_SPEC): Likewise.
8309 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
8310 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
8311 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8312 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
8313 * config/sparc/linux.h (ASM_SPEC): Likewise.
8314 * config/sparc/linux64.h (ASM_SPEC): Likewise.
8315 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8316 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
8318 2011-01-26 Steve Ellcey <sje@cup.hp.com>
8321 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
8323 (vec_extract_evenodd_help): Ditto.
8324 (vec_extract_evenv4hi): Ditto.
8325 (vec_extract_oddv4hi): Ditto.
8326 (vec_interleave_lowv2si): Ditto.
8327 (vec_interleave_highv2si): Ditto.
8328 (vec_extract_evenv2si): Ditto.
8329 (vec_extract_oddv2si: Ditto.
8330 (vec_pack_trunc_v2si): Ditto.
8332 2011-01-22 Jan Hubicka <jh@suse.cz>
8335 * cgraph.h (cgraph_local_info): New field can_change_signature.
8336 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
8337 signature can change.
8338 (ipcp_estimate_growth): Call sequence simplify only if calle signature
8340 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
8341 (cgraph_function_versioning): We can not change signature of functions
8342 that don't allow that.
8343 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
8344 (lto_input_node): Likewise.
8345 * ipa-inline.c (compute_inline_parameters): Compute
8346 local.can_change_signature.
8347 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
8348 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
8349 functions that can not change signature.
8350 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
8351 init_cumulative_args): Do not use local calling conventions
8352 for functions that can not change signature.
8354 2011-01-22 Jan Hubicka <jh@suse.cz>
8356 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
8358 2011-01-26 Richard Guenther <rguenther@suse.de>
8360 PR tree-optimization/47190
8361 * cgraphunit.c (process_common_attributes): New function.
8362 (process_function_and_variable_attributes): Use it.
8364 2011-01-26 Richard Guenther <rguenther@suse.de>
8367 * cgraphbuild.c (record_eh_tables): Record reference to personality
8370 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
8373 * sel-sched.c (moveup_expr): Don't let debug insns prevent
8374 non-debug insns from moving up.
8376 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
8379 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
8380 t-dlldir{,-x} fragment for build and add it to tmake_file.
8381 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
8382 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
8383 * config/i386/t-dlldir: New file.
8384 (SHLIB_DLLDIR): Define.
8385 * config/i386/t-dlldir-x: New file.
8386 (SHLIB_DLLDIR): Define.
8387 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
8388 (SHLIB_INSTALL): Use it.
8390 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
8393 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
8394 lower bound of the allowed Thumb-2 coprocessor load/store
8395 index range to -256. Add explaining comment.
8397 2011-01-25 Ian Lance Taylor <iant@google.com>
8399 * godump.c (go_define): Improve lexing of macro expansion to only
8400 accept expressions which match Go spec.
8402 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
8405 * tree.c (handle_dll_attribute): Handle it.
8406 * doc/extend.texi (@item dllexport): Mention it.
8407 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
8409 2011-01-25 Ian Lance Taylor <iant@google.com>
8411 PR tree-optimization/26854
8412 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
8413 (decl_jump_unsafe): Move higher in file, with no other change.
8414 (bind): Set has_jump_unsafe_decl if appropriate.
8415 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
8416 (check_earlier_gotos): Likewise.
8417 (c_check_switch_jump_warnings): Likewise.
8419 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
8421 * doc/invoke.texi (Warning Options): Add missing hyphen.
8422 (-fprofile-dir): Minor grammatical fixes.
8423 (-fbranch-probabilities): Likewise.
8425 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
8429 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8431 (no_real_insns_p, schedule_block, set_priorities): Drop special
8432 treatment of boundary debug insns.
8433 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8434 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
8435 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8436 (BOUNDARY_DEBUG_INSN_P): Likewise.
8437 (SCHEDULE_DEBUG_INSN_P): Likewise.
8438 * sched-rgn.c (init_ready_list): Drop special treatment of
8439 boundary debug insns.
8440 * final.c (rest_of_clean-state): Clear notes' BB.
8442 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8444 * Makefile.in (LAMBDA_H): Removed.
8445 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
8446 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
8447 lambda-trans.o, and tree-loop-linear.o.
8448 (lto-symtab.o): Remove dependence on LAMBDA_H.
8449 (tree-loop-linear.o): Remove rule.
8450 (lambda-mat.o): Same.
8451 (lambda-trans.o): Same.
8452 (lambda-code.o): Same.
8453 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
8454 (tree-vect-slp.o): Same.
8455 * hwint.h (gcd): Moved here.
8456 (least_common_multiple): Same.
8457 * lambda-code.c: Removed.
8458 * lambda-mat.c: Removed.
8459 * lambda-trans.c: Removed.
8460 * lambda.h: Removed.
8461 * tree-loop-linear.c: Removed.
8462 * lto-symtab.c: Do not include lambda.h.
8463 * omega.c (gcd): Removed.
8464 * passes.c (init_optimization_passes): Remove pass_linear_transform.
8465 * tree-data-ref.c (print_lambda_vector): Moved here.
8466 (lambda_vector_copy): Same.
8467 (lambda_matrix_copy): Same.
8468 (lambda_matrix_id): Same.
8469 (lambda_vector_first_nz): Same.
8470 (lambda_matrix_row_add): Same.
8471 (lambda_matrix_row_exchange): Same.
8472 (lambda_vector_mult_const): Same.
8473 (lambda_vector_negate): Same.
8474 (lambda_matrix_row_negate): Same.
8475 (lambda_vector_equal): Same.
8476 (lambda_matrix_right_hermite): Same.
8477 * tree-data-ref.h: Do not include lambda.h.
8478 (lambda_vector): Moved here.
8479 (lambda_matrix): Same.
8480 (dependence_level): Same.
8481 (lambda_transform_legal_p): Removed declaration.
8482 (lambda_collect_parameters): Same.
8483 (lambda_compute_access_matrices): Same.
8484 (lambda_vector_gcd): Same.
8485 (lambda_vector_new): Same.
8486 (lambda_vector_clear): Same.
8487 (lambda_vector_lexico_pos): Same.
8488 (lambda_vector_zerop): Same.
8489 (lambda_matrix_new): Same.
8490 * tree-flow.h (least_common_multiple): Removed declaration.
8491 * tree-parloops.c (lambda_trans_matrix): Moved here.
8493 (LTM_ROWSIZE): Same.
8494 (LTM_COLSIZE): Same.
8495 (LTM_DENOMINATOR): Same.
8496 (lambda_trans_matrix_new): Same.
8497 (lambda_matrix_vector_mult): Same.
8498 (lambda_transform_legal_p): Same.
8499 * tree-pass.h (pass_linear_transform): Removed declaration.
8500 * tree-ssa-loop.c (tree_linear_transform): Removed.
8501 (gate_tree_linear_transform): Removed.
8502 (pass_linear_transform): Removed.
8503 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
8504 flag_loop_interchange.
8506 2011-01-25 Jakub Jelinek <jakub@redhat.com>
8508 PR tree-optimization/47265
8509 PR tree-optimization/47443
8510 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
8511 if name still has some uses.
8513 2011-01-25 Martin Jambor <mjambor@suse.cz>
8515 PR tree-optimization/47382
8516 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
8517 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
8519 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
8521 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
8522 sjlj_except_unwind_info.
8524 2011-01-25 Richard Guenther <rguenther@suse.de>
8526 PR tree-optimization/47426
8527 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
8528 visible functions results escape.
8530 2011-01-25 Jakub Jelinek <jakub@redhat.com>
8533 * config/arm/arm.c (any_sibcall_uses_r3): New function.
8534 (arm_get_frame_offsets): Use it.
8536 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8537 Jakub Jelinek <jakub@redhat.com>
8539 PR tree-optimization/47271
8540 * tree-if-conv.c (bb_postdominates_preds): New.
8541 (if_convertible_bb_p): Call bb_postdominates_preds.
8542 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
8543 (predicate_scalar_phi): Call bb_postdominates_preds.
8545 2011-01-25 Nick Clifton <nickc@redhat.com>
8547 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
8548 * config/rx/rx.c (rx_function_value): Likewise.
8549 (rx_promote_function_mode): Likewise.
8550 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
8551 in order to make it legitimate.
8552 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
8553 make sure that the first operand is the same as the result register.
8554 (addsi3_unspec): Delete.
8555 (subdi3): Do not accept immediate operands.
8556 (subdi3_internal): Likewise.
8558 2011-01-25 Jeff Law <law@redhat.com>
8560 PR rtl-optimization/37273
8561 * ira-costs.c (scan_one_insn): Detect constants living in memory and
8562 handle them like argument loads from stack slots. Do not double
8563 count memory for memory constants and argument loads from stack slots.
8565 2011-01-25 Jakub Jelinek <jakub@redhat.com>
8567 PR tree-optimization/47427
8568 PR tree-optimization/47428
8569 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
8570 coalesce if the new root var would be TREE_READONLY.
8572 2011-01-25 Richard Guenther <rguenther@suse.de>
8575 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
8576 correct type for TBAA.
8578 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8580 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
8581 (close_phi_written_to_memory): Call for_each_index with
8582 dr_indices_valid_in_loop.
8584 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8586 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
8587 when it is initialized.
8589 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8591 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
8592 call to graphite_find_data_references_in_stmt.
8593 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
8594 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
8595 call to graphite_find_data_references_in_stmt.
8596 (analyze_drs_in_stmts): Same.
8597 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
8598 in which the scalar analysis of indices is performed.
8599 (create_data_ref): Same. Update call to dr_analyze_indices.
8600 (find_data_references_in_stmt): Update call to create_data_ref.
8601 (graphite_find_data_references_in_stmt): Same.
8602 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
8604 (create_data_ref): Same.
8605 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
8606 call to create_data_ref.
8608 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8610 * graphite-sese-to-poly.c (build_poly_scop): Move
8611 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
8613 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8615 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
8616 VAR_DECL, PARM_DECL, and RESULT_DECL.
8618 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8620 * graphite-dependences.c (reduction_dr_1): Allow several reductions
8622 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
8623 that have already been marked as PBB_IS_REDUCTION.
8625 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8627 * graphite-scop-detection.c (same_close_phi_node): New.
8628 (remove_duplicate_close_phi): New.
8629 (make_close_phi_nodes_unique): New.
8630 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
8632 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8634 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
8635 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
8636 of both data references to be the same.
8638 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8640 * graphite-dependences.c (build_lexicographical_constraint): Remove
8642 (build_lexicographical_constraint): Adjust call to
8643 ppl_powerset_is_empty.
8644 (dependence_polyhedron): Same.
8645 (graphite_legal_transform_dr): Same.
8646 (graphite_carried_dependence_level_k): Same.
8647 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
8649 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
8651 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8653 * graphite-sese-to-poly.c
8654 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
8655 (close_phi_written_to_memory): New.
8656 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
8659 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8661 * doc/install.texi: Update the expected version number of PPL to 0.11.
8662 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
8663 #if PPL_VERSION_MINOR < 11.
8665 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8667 * graphite-dependences.c: Include graphite-cloog-util.h.
8668 (new_poly_ddr): Inlined into dependence_polyhedron.
8669 (free_poly_ddr): Moved close by new_poly_ddr.
8670 (dependence_polyhedron_1): Renamed dependence_polyhedron.
8671 Early return NULL when ppl_powerset_is_empty returns true.
8672 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
8673 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
8674 (graphite_legal_transform_dr): Call new_poly_ddr.
8675 (graphite_carried_dependence_level_k): Same.
8676 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
8677 (dot_transformed_deps_stmt_1): Removed.
8678 (dot_deps_stmt_1): Call dot_deps_stmt_2.
8679 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
8680 (dot_deps_1): Call dot_deps_2.
8681 * Makefile.in (graphite-dependences.o): Add missing dependence on
8682 graphite-cloog-util.h.
8684 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8686 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
8687 (build_lexicographical_constraint): Same.
8688 (dependence_polyhedron_1): Same.
8689 (graphite_legal_transform_dr): Same.
8690 (graphite_carried_dependence_level_k): Same.
8691 * graphite-ppl.c (ppl_powerset_is_empty): New.
8692 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
8693 * tree-data-ref.c (dump_data_reference): Print the basic block index.
8695 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8697 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
8698 the "a followed by b" relation and document it.
8700 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8702 * graphite-dependences.c (build_lexicographical_constraint): Stop the
8703 iteration when the bag of constraints is empty.
8705 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8707 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
8709 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8711 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
8712 nest and two loop depths as parameters.
8713 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
8714 lst_perfect_nestify.
8716 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8718 * graphite-dependences.c (print_pddr): Call
8719 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
8721 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8723 * graphite-ppl.c (debug_gmp_value): New.
8724 * graphite-ppl.h (debug_gmp_value): Declared.
8726 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
8728 * doc/install.texi: Document availability of cloog-0.16.
8730 2011-01-25 Vladimir Kargov <kargov@gmail.com>
8732 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
8733 invalid postdominance info.
8735 2011-01-24 Jan Hubicka <jh@suse.cz>
8738 * doc/extend.texi (weak pragma): Drop claim that it must
8739 appear before definition.
8740 * varasm.c (merge_weak, declare_weak): Only sanity check
8741 that DECL is not output at a time it is declared weak.
8743 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
8745 * machmode.def: Fixed comments.
8747 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
8749 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
8751 2011-01-24 Paul Koning <ni1d@arrl.net>
8753 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
8756 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
8759 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
8760 (block_info): Add scanned and prev.
8761 (move_or_delete_vzeroupper_2): Return if the basic block
8762 has been scanned and the upper 128bit state is unchanged
8764 (move_or_delete_vzeroupper_1): Return true if the exit
8766 (move_or_delete_vzeroupper): Visit basic blocks using the
8767 work-list based algorithm based on vt_find_locations in
8770 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
8772 2011-01-24 Nick Clifton <nickc@redhat.com>
8774 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
8775 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
8776 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
8777 then define __v850e1__.
8778 * doc/invoke.texi: Document -mv850es.
8780 2011-01-24 Richard Henderson <rth@redhat.com>
8782 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
8783 compound unordered comparisons.
8784 * config/rx/rx.c (rx_split_fp_compare): Remove.
8785 * config/rx/rx-protos.h: Update.
8786 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
8787 (cbranchsf4): Don't call rx_split_fp_compare.
8788 (*cbranchsf4): Use rx_split_cbranch.
8789 (*cmpsf): Don't accept "i" constraint.
8790 (*conditional_branch): Only valid after reload.
8791 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
8793 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
8796 * config/rs6000/altivec.md (vector constant splitters): Add
8797 support for creating vector single precision constants if -mvsx is
8798 used and we would create the constant using Altivec primitives.
8800 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
8801 Richard Sandiford <rdsandiford@googlemail.com>
8803 PR rtl-optimization/47166
8804 * reload1.c (emit_reload_insns): Disable the spill_reg_store
8805 mechanism for PRE_MODIFY and POST_MODIFY.
8806 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
8809 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
8811 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
8813 2011-01-22 Jan Hubicka <jh@suse.cz>
8816 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
8818 2011-01-22 Jan Hubicka <jh@suse.cz>
8820 PR tree-optimization/43884
8822 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
8823 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
8825 2011-01-22 Anatoly Sokolov <aesok@post.ru>
8827 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8828 * config/s390/s390.c (s390_register_move_cost,
8829 s390_memory_move_cost): New.
8830 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
8832 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8835 * except.c (sjlj_assign_call_site_values): Move setting the
8836 crtl->uses_eh_lsda flag to ...
8837 (sjlj_mark_call_sites): ... here.
8838 (sjlj_emit_function_enter): Support NULL dispatch label.
8839 (sjlj_build_landing_pads): In a function with no landing pads
8840 that still has must-not-throw regions, generate code to register
8841 a personality function with empty LSDA.
8843 2011-01-21 Richard Henderson <rth@redhat.com>
8845 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
8847 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
8849 * compare-elim.c: New file.
8850 * Makefile.in (OBJS-common): Add it.
8851 (compare-elim.o): New.
8852 * common.opt (fcompare-elim): New.
8853 * opts.c (default_options_table): Add OPT_fcompare_elim.
8854 * tree-pass.h (pass_compare_elim_after_reload): New.
8855 * passes.c (init_optimization_passes): Add it.
8856 * recog.h: Protect against re-inclusion.
8857 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
8858 * doc/invoke.texi (-fcompare-elim): Document it.
8859 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
8860 * doc/tm.texi: Rebuild.
8862 2011-01-22 Nick Clifton <nickc@redhat.com>
8864 * config/rx/rx.md (cstoresf4): Pass comparison operator to
8865 rx_split_fp_compare.
8867 2011-01-22 Nick Clifton <nickc@redhat.com>
8869 * config/rx/rx.md (UNSPEC_CONST): New.
8870 (deallocate_and_return): Wrap the amount popped off the stack in
8871 an UNSPEC_CONST in order to stop it being rejected by
8872 -mmax-constant-size.
8873 (pop_and_return): Add a "(return)" rtx.
8874 (call): Drop the immediate operand.
8875 (call_internal): Likewise.
8876 (call_value): Likewise.
8877 (call_value_internal): Likewise.
8878 (sibcall_internal): Likewise.
8879 (sibcall_value_internal): Likewise.
8880 (sibcall): Likewise. Generate an explicit call using
8882 (sibcall_value): Likewise.
8883 (mov<>): FAIL if a constant operand is not legitimate.
8884 (addsi3_unpsec): New pattern.
8886 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
8887 (ok_for_max_constant): New function.
8888 (gen_safe_add): New function.
8889 (rx_expand_prologue): Use gen_safe_add.
8890 (rx_expand_epilogue): Likewise.
8891 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
8894 2011-01-21 Jeff Law <law@redhat.com>
8896 PR tree-optimization/47053
8897 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
8898 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
8899 statements are deleted.
8900 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
8901 is nonempty, then purge dead edges and cleanup the CFG.
8903 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
8907 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
8909 * tree-dfa.c (create_var_ann): Mark variable as used.
8911 2011-01-21 Jakub Jelinek <jakub@redhat.com>
8914 * except.c (convert_to_eh_region_ranges): Emit queued no-region
8915 notes from other section in hot/cold partitioning even if
8916 last_action is -3. Increment call_site_base.
8918 PR rtl-optimization/47366
8919 * fwprop.c (forward_propagate_into): Return bool. If
8920 any changes are made, -fnon-call-exceptions is used and
8921 REG_EH_REGION note is present, call purge_dead_edges
8922 and return true if it purged anything.
8923 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
8924 any EH edges were purged.
8926 2011-01-21 Jeff Law <law@redhat.com>
8928 PR rtl-optimization/41619
8929 * caller-save.c (setup_save_areas): Break out code to determine
8930 which hard regs are live across calls by examining the reload chains
8931 so that it is always used.
8932 Eliminate code which checked REG_N_CALLS_CROSSED.
8934 2011-01-21 Jakub Jelinek <jakub@redhat.com>
8936 PR tree-optimization/47355
8937 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
8938 NOP has non-debug uses beyond PHIs in new_bb.
8940 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
8943 * cfgexpand.c (account_used_vars_for_block): Only account vars
8944 that are annotated as used.
8945 (estimated_stack_frame_size): Don't set TREE_USED.
8946 * tree-dfa.c (create_var_ann): Mark variable as used.
8948 2011-01-21 Richard Guenther <rguenther@suse.de>
8951 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
8953 2011-01-21 Richard Guenther <rguenther@suse.de>
8955 PR tree-optimization/47365
8956 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
8957 (vn_reference_lookup_pieces): Adjust.
8958 (vn_reference_lookup): Likewise.
8959 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
8960 (vn_reference_lookup_3): Only look through kills if in
8961 VN_WALKREWRITE mode.
8962 (vn_reference_lookup_pieces): Adjust.
8963 (vn_reference_lookup): Likewise.
8964 (visit_reference_op_load): Likewise.
8965 (visit_reference_op_store): Likewise.
8966 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
8967 (compute_avail): Likewise.
8968 (eliminate): Likewise.
8970 2011-01-21 Jakub Jelinek <jakub@redhat.com>
8972 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
8973 DECL_IGNORED_P non-reg vars if they are used.
8975 PR tree-optimization/47391
8976 * varpool.c (const_value_known_p): Return false if
8979 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
8982 * config/i386/i386.c (ix86_local_alignment): Handle
8983 case for va_list_type_node is nil.
8984 (ix86_canonical_va_list_type): Likewise.
8986 2011-01-21 Alan Modra <amodra@gmail.com>
8988 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
8989 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
8991 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8993 * config/arm/arm.md (define_attr type): Rename f_load
8994 and f_store to f_fpa_load and f_fpa_store. Update.
8995 (write_conflict): Deal with rename fallout.
8996 (*push_fp_multi): Likewise.
8997 * config/arm/fpa.md (f_load): Use f_fpa_load.
8998 (f_store): Use f_fpa_store.
8999 (*movsf_fpa): Likewise.
9000 (*movdf_fpa): Likewise.
9001 (*movxf_fpa): Likewise.
9002 (*thumb2_movsf_fpa): Likewise.
9003 (*thumb2_movdf_fpa): Likewise.
9004 (*thumb2_movxf_fpa): Likewise.
9005 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
9006 f_loadd and f_stored.
9007 (*thumb2_movdi_vfp): Likewise.
9008 (*thumb2_movsf_vfp): Fix attribute to f_loads.
9009 (*thumb2_movsi_vfp): Likewise.
9010 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
9011 Use f_loads instead of f_load.
9012 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
9014 2011-01-20 Anatoly Sokolov <aesok@post.ru>
9016 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9017 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
9018 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9019 (xtensa_mode_dependent_address_p): New function.
9020 (constantpool_address_p): Make static. Change return type to bool.
9021 Change argument type to const_rtx. Use CONST_INT_P predicate.
9023 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
9026 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
9028 2011-01-20 Jakub Jelinek <jakub@redhat.com>
9031 * cfgexpand.c (expand_debug_expr): Instead of generating
9032 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
9035 2011-01-20 Richard Guenther <rguenther@suse.de>
9038 * tree-inline.c (remap_gimple_op_r): Recurse manually for
9039 the pointer operand of MEM_REFs.
9041 2011-01-20 Jakub Jelinek <jakub@redhat.com>
9043 PR tree-optimization/46130
9044 * ipa-split.c (consider_split): If return_bb contains non-virtual
9045 PHIs other than for retval or if split_function would not adjust it,
9048 2011-01-20 Richard Guenther <rguenther@suse.de>
9050 PR tree-optimization/47167
9051 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
9052 Revert previous change, only avoid enumeral type changes.
9054 2011-01-19 Mike Stump <mikestump@comcast.net>
9056 * doc/tm.texi.in (BRANCH_COST): Englishify.
9057 * doc/tm.texi (BRANCH_COST): Likewise.
9059 2011-01-19 Dodji Seketeli <dodji@redhat.com>
9062 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
9063 (gen_scheduled_generic_parms_dies): New functions.
9064 (gen_struct_or_union_type_die): Schedule template parameters DIEs
9065 generation for the end of CU compilation.
9066 (dwarf2out_finish): Generate template parameters DIEs here.
9068 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
9071 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
9072 debug bind stmt on merge edges.
9074 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
9078 * function.c (instantiate_expr): Instantiate incoming rtl of
9079 implicit arguments, and recurse on VALUE_EXPRs.
9080 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
9081 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
9083 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
9085 * c-parser.c (c_parser_for_statement): Initialize
9086 collection_expression.
9088 2011-01-19 Joseph Myers <joseph@codesourcery.com>
9090 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
9092 2011-01-19 Joseph Myers <joseph@codesourcery.com>
9094 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
9095 (LINK_SHLIB_SPEC): Don't use %(link_path).
9096 (SUBTARGET_EXTRA_SPECS): Remove link_path.
9098 2011-01-19 Joseph Myers <joseph@codesourcery.com>
9100 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
9101 (NO_SHARED_LIB_SUPPORT): Remove.
9102 (LINK_SHLIB_SPEC): Remove one conditional definition.
9104 2011-01-19 Joseph Myers <joseph@codesourcery.com>
9106 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
9108 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
9109 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
9110 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
9111 %{call_shared} and conditionals on these options not being passed.
9112 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
9115 2011-01-19 Jakub Jelinek <jakub@redhat.com>
9117 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
9120 * ipa-split.c: Spelling fixes.
9122 2011-01-19 Richard Henderson <rth@redhat.com>
9124 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
9125 (*mulsi3): Likewise.
9127 * longlong.h [__mn10300__] (count_leading_zeros): New.
9128 [__mn10300__] (umul_ppmm, smul_ppmm): New.
9129 [__mn10300__] (add_ssaaaa, subddmmss): New.
9130 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
9131 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
9133 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9135 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
9137 2011-01-19 Richard Henderson <rth@redhat.com>
9139 * config/mn10300/mn10300.md (addsi3_flags): New.
9140 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
9141 (subsi3_flags, subc_internal, subdi3): New.
9142 (subdi3_internal, *subdi3_degenerate): New.
9143 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
9145 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
9146 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
9147 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
9148 * config/mn10300/mn10300-protos.h: Update.
9149 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
9150 (return_ret): Likewise. Rename from return_internal_regs.
9151 (return_internal): Remove.
9153 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
9154 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
9155 (mn10300_legitimate_constant_p): Likewise.
9156 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
9157 (mn10300_frame_size): New.
9158 (mn10300_expand_prologue): Use it.
9159 (mn10300_expand_epilogue): Likewise.
9160 (mn10300_initial_offset): Likewise.
9161 * config/mn10300/mn10300-protos.h: Update.
9162 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
9163 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
9164 (prologue, epilogue, return_internal): Tidy output code.
9165 (mn10300_store_multiple_operation, return): Likewise.
9166 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
9167 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
9168 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
9169 (load_pic, am33_load_pic): New.
9170 (mn10300_load_pic0, mn10300_load_pic1): New.
9172 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
9173 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
9174 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
9175 (cc_flags_for_mode, cc_flags_for_code): New.
9176 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
9177 overflow flag is not valid. Validate that the flags we need
9178 for the comparison are valid.
9179 (mn10300_output_cmp): Remove.
9180 (mn10300_output_add): New.
9181 (mn10300_select_cc_mode): Use cc_flags_for_code.
9182 (mn10300_split_cbranch): New.
9183 (mn10300_match_ccmode): New.
9184 (mn10300_split_and_operand_count): New.
9185 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
9187 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
9188 (addsi3): ... here. Use mn10300_output_add.
9189 (*addsi3_flags): New.
9190 (*am33_subsi3, *mn10300_subsi3): Merge...
9191 (subsi3): ... here. Use attribute isa.
9192 (*subsi3_flags): New.
9193 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
9195 (*am33_andsi3, *mn10300_andsi3): Merge...
9197 (*andsi3_flags): New.
9198 (andsi3 splitters): New.
9199 (*am33_iorsi3, *mn10300_iorsi3): Merge...
9201 (*iorsi3_flags): New.
9202 (*am33_xorsi3, *mn10300_xorsi3): Merge...
9204 (*xorsi3_flags): New.
9205 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
9206 (one_cmplsi2): ... here.
9207 (*one_cmplsi2_flags): New.
9208 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
9209 instead of "dax" in constraints. Use mn10300_split_cbranch.
9210 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
9211 use matching constraints to eliminate a self-comparison.
9212 (*integer_conditional_branch): Rename from integer_conditional_branch.
9213 Use int_mode_flags to match CC_REG.
9214 (*cbranchsi4_btst, *btstsi): New.
9215 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
9216 mn10300_split_cbranch.
9217 (*am33_cmpsf): Rename from am33_cmpsf.
9218 (*float_conditional_branch): Rename from float_conditional_branch.
9219 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
9220 (zero_extendqisi2): ... here.
9221 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
9222 (zero_extendhisi2): ... here.
9223 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
9224 (extendqisi2): ... here.
9225 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
9226 (extendhisi2): ... here.
9227 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
9228 (ashlsi3): ... here.
9229 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
9230 (lshrsi3): ... here.
9231 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
9232 (ashrsi3): ... here.
9233 (consecutive add peephole): Remove.
9234 * config/mn10300/predicates.md (label_ref_operand): New.
9235 (int_mode_flags): New.
9236 (CCZN_comparison_operator): New.
9238 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
9239 (throughput_42_latency_43): New reservation.
9240 (mulsidi3, umulsidi3): New expanders.
9241 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
9242 the MDR register to allocation; separately allocate the low and
9243 high parts of the DImode result.
9244 (umulsidi3_internal): Similarly.
9245 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
9246 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
9247 (udivsi3, umodsi3): Remove.
9248 (udivmodsi4, divmodsi4): New expanders.
9249 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
9250 (*divmodsi4): Simiarly.
9251 (ext_internal): New.
9253 * config/mn10300/constraints.md ("z"): New constraint.
9254 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
9255 (FIXED_REGISTERS): Don't fix MDR.
9256 (CALL_USED_REGSITERS): Reformat nicely.
9257 (REG_ALLOC_ORDER): Add MDR.
9258 (enum regclass): Add MDR_REGS.
9259 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
9260 (IRA_COVER_CLASSES): Add MDR_REGS.
9261 (REGNO_REG_CLASS): Handle MDR_REG.
9262 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
9263 (mn10300_register_move_cost): Likewise.
9264 * config/mn10300/mn10300.md (MDR_REG): New.
9265 (*movsi_internal): Handle moves to/from MDR_REGS.
9267 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
9269 (mn10300_secondary_reload): Tidy combination reload classes.
9270 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
9271 addresses for AM33. Allow symbolic offsets for reg+imm.
9272 (mn10300_regno_in_class_p): New.
9273 (mn10300_legitimize_reload_address): New.
9274 * config/mn10300/mn10300.h (enum reg_class): Remove
9275 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
9276 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
9278 (REG_CLASS_NAMES): Update to match.
9279 (REG_CLASS_CONTENTS): Likewise.
9280 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
9281 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
9282 (REGNO_IN_RANGE_P): Remove.
9283 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
9284 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
9285 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
9286 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
9287 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
9288 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
9289 (REGNO_GENERAL_P): New.
9290 (HAVE_POST_MODIFY_DISP): New.
9291 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
9292 (LEGITIMIZE_RELOAD_ADDRESS): New.
9293 * config/mn10300/mn10300-protos.h: Update.
9295 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
9296 DATA_REGS for AM33 stack-pointer destination.
9297 (mn10300_preferred_output_reload_class): Likewise.
9298 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
9299 into a form appropriate for ...
9300 (TARGET_SECONDARY_RELOAD): New.
9301 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
9302 * config/mn10300/mn10300-protos.h: Update.
9303 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
9304 reload_insi; use the "A" constraint for the scratch; handle AM33
9305 moves of sp to non-address registers.
9307 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
9308 (*movqi_internal): ... here.
9309 (*am33_movhi, *mn10300_movhi): Merge into...
9310 (*movhi_internal): ... here.
9311 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
9312 as the source/destination of moves from/to SP.
9313 (movsf): Only allow for AM33-2.
9314 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
9315 any integer constant constraint. Only allow for AM33-2. Tidy
9316 all of the alternative outputs.
9317 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
9318 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
9320 (udivsi3, umodsi3): New patterns for MN103 only.
9322 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
9324 * doc/tm.texi.in: Spell out that a lack of register class unions
9326 * doc/tm.texi: Regenerate.
9328 2011-01-19 Jakub Jelinek <jakub@redhat.com>
9330 PR rtl-optimization/47337
9331 * dce.c (check_argument_store): New function.
9332 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
9334 PR tree-optimization/47290
9335 * tree-eh.c (infinite_empty_loop_p): New function.
9336 (cleanup_empty_eh): Use it.
9338 2011-01-18 Steve Ellcey <sje@cup.hp.com>
9341 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
9342 (a64_expand_widen_sum): Ditto.
9343 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
9344 (vec_extract_evenodd_help): Ditto.
9345 (vec_extract_evenv4hi): Ditto.
9346 (vec_extract_oddv4hi): Ditto.
9347 (vec_extract_evenv2si): Ditto.
9348 (vec_extract_oddv2si): Ditto.
9349 (vec_extract_evenv2sf): Ditto.
9350 (vec_extract_oddv2sf): Ditto.
9351 (vec_pack_trunc_v4hi: Ditto.
9352 (vec_pack_trunc_v2si): Ditto.
9353 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
9354 (vec_interleave_highv8qi): Ditto.
9356 (vec_extract_oddv8qi): Ditto.
9357 (vec_interleave_lowv4hi): Ditto.
9358 (vec_interleave_highv4hi): Ditto.
9359 (vec_interleave_lowv2si): Ditto.
9360 (vec_interleave_highv2si): Ditto.
9362 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9364 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
9365 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
9366 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
9367 (pa_c_mode_for_suffix): New.
9368 (TARGET_EXPAND_BUILTIN): Define.
9369 (TARGET_C_MODE_FOR_SUFFIX): Define.
9370 (pa_builtins): Define.
9371 (pa_init_builtins): Register __float128 type and init new support
9373 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
9374 * config/pa/quadlib.c (_U_Qfcopysign): New.
9376 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
9379 * explow.c (allocate_dynamic_stack_space): Do not assume more than
9380 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
9383 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9385 PR tree-optimization/47179
9386 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
9387 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
9389 2011-01-18 Richard Guenther <rguenther@suse.de>
9391 PR rtl-optimization/47216
9392 * emit-rtl.c: Include tree-flow.h.
9393 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
9394 of replicating it with different semantics.
9395 * Makefile.in (emit-rtl.o): Adjust.
9397 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9399 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
9400 (cortex_a9_dp): Handle neon types correctly.
9402 2011-01-18 Jakub Jelinek <jakub@redhat.com>
9404 PR rtl-optimization/47299
9405 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
9406 subtarget. Use normal multiplication if both operands are constants.
9407 * expmed.c (expand_widening_mult): Don't try to optimize constant
9408 multiplication if op0 has VOIDmode. Convert op1 constant to mode
9411 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9413 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
9414 spacing after 'e.g.', typos, comma, hyphenation.
9416 2011-01-17 Richard Henderson <rth@redhat.com>
9418 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
9419 (rx_restricted_mem_operand): New.
9420 (rx_shift_operand): Use register_operand.
9421 (rx_source_operand, rx_compare_operand): Likewise.
9422 * config/rx/rx.md (addsi3_flags): New expander.
9423 (adddi3): Rewrite as expander.
9424 (adc_internal, *adc_flags, adddi3_internal): New patterns.
9425 (subsi3_flags): New expander.
9426 (subdi3): Rewrite as expander.
9427 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
9429 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
9430 (rx_init_builtins): Remove sat builtin.
9431 (rx_expand_builtin): Likewise.
9432 * config/rx/rx.md (ssaddsi3): New.
9433 (*sat): Rename from sat. Represent the CC_REG input.
9435 * config/rx/predicates.md (rshift_operator): New.
9436 * config/rx/rx.c (rx_expand_insv): Remove.
9437 * config/rx/rx-protos.h: Update.
9438 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
9439 operand to the canonical position.
9440 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
9441 (*bitclr, *bitclr_in_memory): Similarly.
9442 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
9443 (insv): Retain the zero_extract in the expansion.
9445 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
9446 (bswaphi2, bitinvert, revw): Likewise.
9448 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
9449 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
9450 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
9451 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
9452 (bitset, bitset_in_memory): Likewise.
9453 (bitinvert, bitinvert_in_memory): Likewise.
9454 (bitclr, bitclr_in_memory): Likewise.
9455 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
9456 (rx_strend, rx_cmpstrn): Likewise.
9457 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
9458 (bitop peep2 patterns): Remove.
9460 * config/rx/rx.c (rx_match_ccmode): New.
9461 * config/rx/rx-protos.h: Update.
9462 * config/rx/rx.md (abssi2): Clobber, don't set flags.
9463 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
9464 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
9465 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
9466 (fix_truncsfsi2, floatsisf2): Likewise.
9467 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
9468 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
9469 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
9470 (*subsi3_flags, *xorsi3_flags): New.
9472 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
9474 * config/rx/rx.c (rx_print_operand): Remove workaround for
9475 unsplit comparison operations.
9477 * config/rx/rx.md (movsicc): Split after reload.
9478 (*movsicc): Merge *movsieq and *movsine via match_operator.
9479 (*stcc): New pattern.
9481 * config/rx/rx.c (rx_float_compare_mode): Remove.
9482 * config/rx/rx.h (rx_float_compare_mode): Remove.
9483 * config/rx/rx.md (cstoresi4): Split after reload.
9484 (*sccc): New pattern.
9486 * config/rx/predicates.md (label_ref_operand): New.
9487 (rx_z_comparison_operator): New.
9488 (rx_zs_comparison_operator): New.
9489 (rx_fp_comparison_operator): New.
9490 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
9491 Validate that the flags are set properly for the comparison.
9492 (rx_gen_cond_branch_template): Remove.
9493 (rx_cc_modes_compatible): Remove.
9494 (mode_from_flags): New.
9495 (flags_from_code): Rename from flags_needed_for_conditional.
9496 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
9497 (rx_select_cc_mode): Likewise.
9498 (rx_split_fp_compare): New.
9499 (rx_split_cbranch): New.
9500 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
9501 (*cbranchsi4): Use match_operator and rx_split_cbranch.
9502 (*cbranchsf4): Similarly.
9503 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
9504 match_operator and rx_split_cbranch.
9505 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
9506 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
9507 (*cmpsi): Rename from cmpsi.
9508 (*tstsi): Rename from tstsi.
9509 (*cmpsf): Rename from cmpsf; use CC_Fmode.
9510 (*conditional_branch): Rename from conditional_branch.
9511 (*reveresed_conditional_branch): Remove.
9512 (b<code>): Remove expander.
9513 * config/rx/rx-protos.h: Update.
9515 * config/rx/rx.c (rx_compare_redundant): Remove.
9516 * config/rx/rx.md (cmpsi): Don't use it.
9517 * config/rx/rx-protos.h: Update.
9519 * config/rx/rx-modes.def (CC_F): New mode.
9520 * config/rx/rx.c (rx_select_cc_mode): New.
9521 * config/rx/rx.h (SELECT_CC_MODE): Use it.
9522 * config/rx/rx-protos.h: Update.
9524 2011-01-17 Richard Henderson <rth@redhat.com>
9526 * except.c (dump_eh_tree): Fix stray ; after for statement.
9528 2011-01-17 Richard Guenther <rguenther@suse.de>
9530 PR tree-optimization/47313
9531 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
9532 handling before copying the body. Properly deal with
9533 by-reference result in SSA form.
9535 2011-01-17 Ian Lance Taylor <iant@google.com>
9538 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
9539 (struct_value_alias_set): Don't define.
9540 (sparc_option_override): Don't set sparc_sr_alias_set and
9541 struct_value_alias_set.
9542 (save_or_restore_regs): Use gen_frame_mem rather than calling
9544 (sparc_struct_value_rtx): Likewise.
9546 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
9549 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
9550 (_mm_maskstore_pd): Likewise.
9551 (_mm_maskload_ps): Likewise.
9552 (_mm_maskstore_ps): Likewise.
9553 (_mm256_maskload_pd): Change mask to __m256i.
9554 (_mm256_maskstore_pd): Likewise.
9555 (_mm256_maskload_ps): Likewise.
9556 (_mm256_maskstore_ps): Likewise.
9558 * config/i386/i386-builtin-types.def: Updated.
9559 (ix86_expand_special_args_builtin): Likewise.
9561 * config/i386/i386.c (bdesc_special_args): Update
9562 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
9563 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
9564 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
9565 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
9567 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
9568 Use <avxpermvecmode> on mask register.
9569 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
9571 2011-01-17 Olivier Hainque <hainque@adacore.com>
9572 Michael Haubenwallner <michael.haubenwallner@salomon.at>
9573 Eric Botcazou <ebotcazou@adacore.com>
9576 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
9577 if <= USHRT_MAX in 32-bit mode.
9579 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9581 * doc/install.texi (Configuration, Specific): Wrap long
9582 lines in examples. Allow line wrapping in long options
9583 and URLs where beneficial for PDF output.
9585 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
9587 * config/mips/mips.c (mips_classify_symbol): Don't return
9588 SYMBOL_PC_RELATIVE for nonlocal labels.
9590 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
9592 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
9594 2011-01-15 Jan Hubicka <jh@suse.cz>
9596 PR tree-optimization/47276
9597 * ipa.c (function_and_variable_visibility): Do not try to mark alias
9598 declarations as needed.
9600 2011-01-15 Martin Jambor <mjambor@suse.cz>
9602 * common.opt (fdevirtualize): New flag.
9603 * doc/invoke.texi (Option Summary): Document it.
9604 * opts.c (default_options_table): Add devirtualize flag.
9605 * ipa-prop.c (detect_type_change): Return immediately if
9606 devirtualize flag is not set.
9607 (detect_type_change_ssa): Likewise.
9608 (compute_known_type_jump_func): Likewise.
9609 (ipa_analyze_virtual_call_uses): Likewise.
9611 2011-01-14 Martin Jambor <mjambor@suse.cz>
9613 PR tree-optimization/45934
9614 PR tree-optimization/46302
9615 * ipa-prop.c (type_change_info): New type.
9616 (stmt_may_be_vtbl_ptr_store): New function.
9617 (check_stmt_for_type_change): Likewise.
9618 (detect_type_change): Likewise.
9619 (detect_type_change_ssa): Likewise.
9620 (compute_complex_assign_jump_func): Check for dynamic type change.
9621 (compute_complex_ancestor_jump_func): Likewise.
9622 (compute_known_type_jump_func): Likewise.
9623 (compute_scalar_jump_functions): Likewise.
9624 (ipa_analyze_virtual_call_uses): Likewise.
9625 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
9627 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9629 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
9630 * config/i386/i386.opt (msse5): New Alias.
9632 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9634 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
9635 * config/sparc/linux64.h (CC1_SPEC): Likewise.
9636 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9637 * config/sparc/sparc.h (CC1_SPEC): Likewise.
9639 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9641 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
9643 * config/sparc/linux64.h (CC1_SPEC): Likewise.
9644 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9645 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
9646 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
9648 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
9650 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9652 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
9654 2011-01-14 Mike Stump <mikestump@comcast.net>
9656 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
9657 * config/fr30/fr30.md: Likweise
9658 (movsi_push): Likewise.
9659 (movsi_pop): Likewise.
9660 (enter_func): Likewise.
9661 * config/moxie/moxie.md (movsi_push): Likewise.
9662 (movsi_pop): Likewise.
9664 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9666 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
9667 %{no_archive} %{exact_version}.
9668 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
9669 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
9670 %{no_archive} %{exact_version}.
9671 * config/mips/openbsd.h (LINK_SPEC): Likewise.
9672 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
9673 * config/mips/vxworks.h: Likewise.
9675 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9677 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
9679 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9681 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
9682 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
9684 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9686 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
9689 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9691 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
9693 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
9694 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
9696 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
9697 Don't handle -shlib.
9699 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9701 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
9702 (CC1_SPEC): Don't handle -profile.
9704 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9706 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
9707 * config/mips/mips.h (CC1_SPEC): Likewise.
9709 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9711 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
9712 * config/mips/mips.h (CC1_SPEC): Likewise.
9714 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9716 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
9717 * config/m32r/linux.h (LINK_SPEC): Likewise.
9718 * config/mips/linux.h (LINK_SPEC): Likewise.
9719 * config/mips/linux64.h (LINK_SPEC): Likewise.
9720 * config/sparc/linux.h (LINK_SPEC): Likewise.
9721 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
9722 LINK_SPEC): Likewise.
9723 * config/xtensa/linux.h (LINK_SPEC): Likewise.
9725 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9727 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
9729 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
9731 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9733 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
9734 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
9736 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9738 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
9740 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9742 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
9743 supports -Bstatic/-Bdynamic.
9744 * configure: Regenerate.
9746 2011-01-14 Jan Hubicka <jh@suse.cz>
9747 Jack Howarth <howarth@bromo.med.uc.edu>
9750 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
9751 when checking debug_info_level. Test write_symbols instead of
9752 debug_hooks->var_location when setting flag_var_tracking_uninit.
9754 2011-01-14 Richard Guenther <rguenther@suse.de>
9756 PR tree-optimization/47179
9757 * target.def (ref_may_alias_errno): New target hook.
9758 * targhooks.h (default_ref_may_alias_errno): Declare.
9759 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
9760 (default_ref_may_alias_errno): New function.
9761 * target.h (struct ao_ref_s): Declare.
9762 * tree-ssa-alias.c: Include target.h.
9763 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
9764 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
9765 (targhooks.o): Likewise.
9766 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
9767 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
9769 2011-01-14 Richard Guenther <rguenther@suse.de>
9771 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
9773 2011-01-14 Richard Guenther <rguenther@suse.de>
9775 PR tree-optimization/47280
9776 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
9778 (tree_ssa_forward_propagate_single_use_vars): Deal with
9779 CFG changes from associate_plusminus.
9781 2011-01-14 Richard Guenther <rguenther@suse.de>
9785 2011-01-11 Richard Guenther <rguenther@suse.de>
9787 PR tree-optimization/46076
9788 * tree-ssa.c (useless_type_conversion_p): Conversions from
9789 unprototyped to empty argument list function types are useless.
9791 2011-01-14 Richard Guenther <rguenther@suse.de>
9793 PR tree-optimization/47286
9794 * tree-ssa-structalias.c (new_var_info): Register variables are global.
9796 2011-01-14 Martin Jambor <mjambor@suse.cz>
9799 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
9801 2011-01-13 Anatoly Sokolov <aesok@post.ru>
9803 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
9804 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9805 * config/xtensa/xtensa.c (xtensa_libcall_value,
9806 xtensa_function_value_regno_p): New functions.
9807 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9809 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
9812 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
9814 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
9815 New function prototype.
9816 * config/i386/winnt.c (i386_pe_assemble_visibility):
9817 Warn only if attribute was specified by user.
9819 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
9822 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
9824 (floatunsdidf2_fcfidu): Ditto.
9826 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9828 * config/s390/s390.c (print_operand_address): Replace 'error' with
9829 'output_operand_lossage'.
9830 (print_operand): Likewise.
9832 2011-01-13 Jeff Law <law@redhat.com>
9834 PR rtl-optimization/39077
9835 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
9836 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
9837 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
9838 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
9839 * gcse.c (prune_insertions_deletions): New function.
9840 (compute_pre_data): Use it.
9842 2011-01-13 Dodji Seketeli <dodji@redhat.com>
9845 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
9847 (prune_unused_types_mark): Use it.
9849 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
9851 PR rtl-optimization/45352
9852 * sel-sched.c: Update copyright years.
9853 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
9854 in the advancing loop when we have issued issue_rate insns.
9856 2011-01-12 Richard Henderson <rth@redhat.com>
9858 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
9859 (TARGET_MD_ASM_CLOBBERS): New.
9861 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
9862 (TARGET_DELEGITIMIZE_ADDRESS): New.
9864 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
9865 (clzsi2, *bsch): New patterns.
9867 * config/mn10300/mn10300.md (INT): New mode iterator.
9868 (*mov<INT>_clr): New pattern, and peep2 to generate it.
9870 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
9871 flag_split_wide_types.
9873 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
9874 (mn10300_trampoline_init): Rewrite without a template, an immediate
9875 load and a direct branch.
9876 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
9878 2011-01-12 Anatoly Sokolov <aesok@post.ru>
9880 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9881 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
9882 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
9883 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9885 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
9888 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
9891 2011-01-12 Jan Hubicka <jh@suse.cz>
9894 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
9895 (PLUGIN_COND_CLOSE): New macro.
9896 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
9898 2011-01-12 Richard Guenther <rguenther@suse.de>
9901 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
9902 register variables in a MEM_REF.
9904 2011-01-12 Joseph Myers <joseph@codesourcery.com>
9906 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
9907 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
9908 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
9909 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
9910 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
9911 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
9912 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
9913 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
9914 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
9915 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
9916 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
9917 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
9918 * config/gnu-user.h: New. Copied from linux.h.
9919 (LINUX_TARGET_STARTFILE_SPEC): Rename to
9920 GNU_USER_TARGET_STARTFILE_SPEC.
9921 (LINUX_TARGET_ENDFILE_SPEC): Rename to
9922 GNU_USER_TARGET_ENDFILE_SPEC.
9923 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
9924 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
9925 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
9926 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
9927 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
9928 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
9929 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
9930 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
9931 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
9932 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
9933 * config/arm/linux-eabi.h (CC1_SPEC): Use
9934 GNU_USER_TARGET_CC1_SPEC.
9935 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
9936 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
9937 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
9938 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
9939 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
9940 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
9941 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
9942 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
9944 2011-01-12 Richard Guenther <rguenther@suse.de>
9947 * doc/invoke.texi (ffast-math): Document it is turned on
9950 2011-01-12 Jan Hubicka <jh@suse.cz>
9952 PR tree-optimization/47233
9953 * opts.c (common_handle_option): Disable ipa-reference with profile
9956 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
9958 * c-parser.c (c_parser_objc_at_property_declaration): Improved
9961 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
9963 * c-parser.c (c_lex_one_token): Updated and reindented some
9964 comments. No changes in code.
9966 2011-01-11 Ian Lance Taylor <iant@google.com>
9968 * godump.c (go_output_var): Don't output the variable if there is
9969 already a type with the same name.
9971 2011-01-11 Ian Lance Taylor <iant@google.com>
9973 * godump.c (go_format_type): Don't generate float80.
9975 2011-01-11 Richard Henderson <rth@redhat.com>
9977 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
9978 declaration. Rewrite for both speed and size.
9979 (mn10300_address_cost_1): Remove.
9980 (mn10300_register_move_cost): New.
9981 (mn10300_memory_move_cost): New.
9982 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
9983 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
9984 extensions, shifts, BSWAP, CLZ.
9985 (mn10300_wide_const_load_uses_clr): Remove.
9986 (TARGET_REGISTER_MOVE_COST): New.
9987 (TARGET_MEMORY_MOVE_COST): New.
9988 * config/mn10300/mn10300-protos.h: Update.
9989 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
9991 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
9992 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
9993 * config/mn10300/mn10300-protos.h: Update.
9994 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
9995 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
9996 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
9997 (*test_int_bitfield, *test_byte_bitfield): Remove.
9998 (*bit_test, *subreg_bit_test): Remove.
9999 * config/mn10300/predicates.md (const_8bit_operand): Remove.
10001 * config/mn10300/constraints.md ("c"): Rename from "A".
10002 ("A", "D"): New constraint letters.
10003 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
10004 (fmssf4, fnmasf4, fnmssf4): Likewise.
10006 * config/mn10300/mn10300.md (isa): New attribute.
10007 (enabled): New attribute.
10009 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
10010 (abssf2, negsf2): Define only for hardware fp.
10011 (sqrtsf2): Reformat.
10012 (addsf3, subsf3, mulsf3): Merge expander and insn.
10014 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
10015 (DEBUGGER_AUTO_OFFSET): Remove.
10016 (DEBUGGER_ARG_OFFSET): Remove.
10018 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
10019 Emit register stores with the same offsets as the hardware.
10020 (mn10300_store_multiple_operation): Don't check that the register
10021 save offsets are monotonic.
10022 * config/mn10300/mn10300-protos.h: Update.
10024 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
10026 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
10027 in terms of the value on the stack, not the MDR register.
10029 2011-01-11 Jan Hubicka <jh@suse.cz>
10033 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
10034 (symbol_alias_set_destroy, symbol_alias_set_contains,
10035 propagate_aliases_backward): Declare.
10036 * lto-streamer-out.c (struct sets): New sturcture.
10037 (trivally_defined_alias): New function.
10038 (output_alias_pair_p): Rewrite.
10039 (output_unreferenced_globals): Fix output of alias pairs.
10040 (produce_symtab): Likewise.
10041 * ipa.c (function_and_variable_visibility): Set weak alias destination
10043 * varasm.c (symbol_alias_set_t): Remove.
10044 (symbol_alias_set_destroy): Export.
10045 (propagate_aliases_forward, propagate_aliases_backward): New functions
10047 (compute_visible_aliases): ... this one; remove.
10048 (trivially_visible_alias): New
10049 (trivially_defined_alias): New.
10050 (remove_unreachable_alias_pairs): Rewrite.
10051 (finish_aliases_1): Reorganize code checking if alias is defined.
10052 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
10055 2011-01-11 Richard Guenther <rguenther@suse.de>
10057 PR tree-optimization/46076
10058 * tree-ssa.c (useless_type_conversion_p): Conversions from
10059 unprototyped to empty argument list function types are useless.
10061 2011-01-11 Richard Guenther <rguenther@suse.de>
10063 PR middle-end/45235
10064 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
10065 volatile MEMs as MEM_READONLY_P.
10067 2011-01-11 Richard Guenther <rguenther@suse.de>
10069 PR tree-optimization/47239
10070 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
10072 2011-01-11 Jeff Law <law@redhat.com>
10074 PR tree-optimization/47086
10075 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
10076 IVs from statements that might throw.
10078 2011-01-10 Jan Hubicka <jh@suse.cz>
10081 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
10083 2011-01-10 Jan Hubicka <jh@suse.cz>
10086 * profile.c (read_profile_edge_counts): Ignore profile inconistency
10087 when correcting profile.
10089 2011-01-10 Jan Hubicka <jh@suse.cz>
10092 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
10093 DECL_FINI_PRIORITY.
10094 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
10095 Restore DECL_FINI_PRIORITY.
10097 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10099 * doc/gimple.texi: Fix quoting of multi-word return values in
10100 @deftypefn statements. Ensure presence of return value. Wrap
10101 overlong @deftypefn lines.
10102 (is_gimple_operand, is_gimple_min_invariant_address): Remove
10103 descriptions of removed functions.
10104 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
10105 of multi-word return value in @deftypefn statement.
10107 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10109 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
10110 (Conditional Expressions, Logical Operators)
10111 (Statement and operand traversals): Do not indent smallexample
10112 code. Fix duplicate function argument in example.
10114 2011-01-10 Jeff Law <law@redhat.com>
10116 PR tree-optimization/47141
10117 * ipa-split.c (split_function): Handle case where we are
10118 returning a value and the return block has a virtual operand phi.
10120 2011-01-10 Jan Hubicka <jh@suse.cz>
10122 PR tree-optimization/47234
10123 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
10124 (pass_feedback_split_functions): Declare.
10125 * passes.c (init_optimization_passes): Add ipa-split as subpass of
10127 * ipa-split.c (gate_split_functions): Update comments; disable
10128 split-functions for profile_arc_flag and branch_probabilities.
10129 (gate_feedback_split_functions): New function.
10130 (execute_feedback_split_functions): New function.
10131 (pass_feedback_split_functions): New global var.
10133 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
10136 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
10137 calling gimple_call_set_cannot_inline.
10139 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
10141 * config/darwin-sections.def: Remove unused section.
10143 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
10146 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
10148 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
10151 * c-parser.c (c_parser_declaration_or_fndef): Improved
10154 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
10156 * config/i386/winnt.c (i386_pe_start_function): Make sure
10157 to switch back to function's section.
10159 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
10163 * plugin.c: Move include of dlfcn.h from here...
10164 * system.h: ... to here.
10166 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10168 * doc/cpp.texi (C++ Named Operators): Fix markup for header
10170 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
10171 two extra empty pages in PDF output.
10173 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
10176 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
10177 for error recovery purposes behave as if it was not specified so
10178 that the default type is usd.
10180 2011-01-07 Jan Hubicka <jh@suse.cz>
10182 PR tree-optmization/46469
10183 * ipa.c (function_and_variable_visibility): Clear needed flags on
10184 nodes with external decls; handle weakrefs merging correctly.
10186 2011-01-07 Joseph Myers <joseph@codesourcery.com>
10188 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
10191 2011-01-07 Jan Hubicka <jh@suse.cz>
10193 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
10194 and no longer claim that gold is required for linker plugin.
10195 * configure: Regenerate.
10196 * gcc.c (PLUGIN_COND): New macro.
10197 (LINK_COMMAND_SPEC): Use it.
10198 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
10199 * config.in (HAVE_LTO_PLUGIN): New.
10200 * configure.ac (--with-lto-plugin): New parameter; autodetect
10203 2011-01-07 Jan Hubicka <jh@suse.cz>
10205 PR tree-optimization/46367
10206 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
10207 when we can update original.
10208 (cgraph_mark_inline_edge): Sanity check.
10209 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
10211 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10213 * config/spu/spu.h (ASM_COMMENT_START): Define.
10215 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
10218 * gcc.c (%>S): New.
10219 (SWITCH_KEEP_FOR_GCC): Likewise.
10220 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
10221 (do_spec_1): Handle "%>".
10223 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
10225 2011-01-07 Jakub Jelinek <jakub@redhat.com>
10228 * config/i386/i386.c (ix86_delegitimize_address): If
10229 simplify_gen_subreg fails, return orig_x.
10232 * value-prof.c (gimple_stringop_fixed_value): Handle
10233 lhs of the call properly.
10235 2011-01-07 Jan Hubicka <jh@suse.cz>
10238 * lto-opt.c (lto_reissue_options): Set flag_shlib.
10240 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
10242 * target.def (function_switched_text_sections): New hook.
10243 * doc/tm.texi: Regenerated.
10244 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
10245 * final.c (default_function_switched_text_sections): New.
10246 (final_scan_insn): Call function_switched_text_sections when a
10247 mid-function section change occurs.
10248 * output.h (default_function_switched_text_sections): Declare.
10249 * config/darwin-protos.h (darwin_function_switched_text_sections):
10251 * config/darwin.c (darwin_function_switched_text_sections): New.
10252 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
10254 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
10256 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
10257 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
10258 the secondary code fragment when outputting for DWARF == 2.
10260 2011-01-07 Anatoly Sokolov <aesok@post.ru>
10262 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10263 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
10265 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
10266 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10268 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
10271 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
10272 when it is not empty.
10274 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
10277 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
10278 (case ${target}): Add btver1.
10279 * config/i386/driver-i386.c (host_detect_local_cpu): Let
10280 -march=native recognize btver1 processors.
10281 * config/i386/i386-c.c (ix86_target_macros_internal): Add
10282 btver1 def_and_undef
10283 * config/i386/i386.c (struct processor_costs btver1_cost): New
10285 (m_BTVER1): New definition.
10286 (m_AMD_MULTIPLE): Includes m_BTVER1.
10287 (initial_ix86_tune_features): Add btver1 tune.
10288 (processor_target_table): Add btver1 entry.
10289 (static const char *const cpu_names): Add btver1 entry.
10290 (software_prefetching_beneficial_p): Add btver1.
10291 (ix86_option_override_internal): Add btver1 instruction sets.
10292 (ix86_issue_rate): Add btver1.
10293 (ix86_adjust_cost): Add btver1.
10294 * config/i386/i386.h (TARGET_BTVER1): New definition.
10295 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
10296 (enum processor_type): Add PROCESSOR_BTVER1.
10297 * config/i386/i386.md (define_attr "cpu"): Add btver1.
10299 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10302 * config/i386/i386.c (legitimize_tls_address)
10303 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
10304 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
10305 (tls_initial_exec_64_sun): New pattern.
10307 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
10309 * doc/invoke.texi (Overall Options): Improve wording and markup
10310 of the description of -wrapper.
10312 2011-01-06 Joseph Myers <joseph@codesourcery.com>
10314 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
10315 rdynamic, threads): New Driver options.
10317 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10320 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
10321 if coming from .tdata.
10322 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
10324 2011-01-06 Jan Hubicka <jh@suse.cz>
10327 * collect2.c (main): Do not enable LTOmode when plugin is active.
10329 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10332 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
10333 --version output if supported.
10334 * configure: Regenerate.
10336 2011-01-06 Joseph Myers <joseph@codesourcery.com>
10338 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
10341 2011-01-06 Jakub Jelinek <jakub@redhat.com>
10344 * c-convert.c (convert): When converting a complex expression
10345 other than COMPLEX_EXPR to a different complex type, ensure
10346 c_save_expr is called instead of save_expr, unless in_late_binary_op.
10347 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
10348 when converting COMPLEX_TYPE.
10350 2011-01-06 Ira Rosen <irar@il.ibm.com>
10352 PR tree-optimization/47139
10353 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
10354 only the last reduction value is used outside the loop. Update
10357 2011-01-05 Joseph Myers <joseph@codesourcery.com>
10359 * config/rtems.opt: New.
10360 * config.gcc (*-*-rtems*): Use rtems.opt.
10362 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
10364 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
10365 processors do not support 3DNow instructions.
10367 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10369 * config/spu/spu.c (spu_option_override): Set parameter
10370 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
10372 2011-01-05 Jan Hubicka <jh@suse.cz>
10374 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
10375 at the command line.
10377 2011-01-05 Martin Jambor <mjambor@suse.cz>
10380 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
10381 deltas on streamed outgoing edges.
10382 (output_node_opt_summary): Output info for outgoing edges only when
10383 the node is in new parameter set.
10384 (output_cgraph_opt_summary): New parameter set, passed to the two
10385 aforementioned functions. Update its forward declaration and its
10388 2011-01-05 Tom Tromey <tromey@redhat.com>
10390 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
10391 operator to c_finish_omp_atomic.
10392 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
10393 (build_unary_op): Update.
10394 (build_modify_expr): Update.
10395 (build_asm_expr): Update.
10397 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10399 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
10400 newly inserted insns.
10401 (pad_bb): Likewise.
10402 (spu_emit_branch_hint): Likewise.
10403 (insert_hbrp_for_ilb_runout): Likewise.
10404 (spu_machine_dependent_reorg): Call df_finish_pass after
10405 schedule_insns returns.
10407 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10409 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
10411 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
10413 PR tree-optimization/47005
10414 * tree-sra.c (struct access): Add 'non_addressable' bit.
10415 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
10416 (decide_one_param_reduction): Return 0 if the parameter is passed by
10417 reference and one of the accesses in the group is non_addressable.
10419 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
10421 PR tree-optimization/47056
10422 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
10423 (mark_load): Likewise. Handle FUNCTION_DECL specially.
10424 (mark_store): Likewise. Pass STMT to ipa_record_reference.
10426 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
10428 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
10429 initializer. Skip view conversions from aggregate types.
10431 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
10434 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
10436 2011-01-04 Philipp Thomas <pth@suse.de>
10438 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
10441 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10443 * function.c (thread_prologue_and_epilogue_insns): Do not crash
10444 on empty epilogue sequences.
10446 2011-01-04 Joseph Myers <joseph@codesourcery.com>
10448 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
10449 non-static): New Driver options.
10451 2011-01-04 Jie Zhang <jie@codesourcery.com>
10454 * gcc.c (default_compilers[]): Set combinable field to 0
10455 for all assembly languages.
10457 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
10459 * config/mips/loongson3a.md: New file.
10460 * config/mips/mips.md: Include loongson3a.md.
10461 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
10464 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
10466 PR middle-end/47017
10467 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
10468 instead of convert_memory_address_addr_space on the base expression.
10470 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10472 * config/spu/spu.c (spu_option_override): Update error text
10473 for bad -march= / -mtune= values.
10475 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10477 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
10478 if branch-hint optimization will be performed.
10480 2011-01-03 Jakub Jelinek <jakub@redhat.com>
10482 PR tree-optimization/47148
10483 * ipa-split.c (split_function): Convert arguments to
10484 DECL_ARG_TYPE if possible.
10486 PR tree-optimization/47155
10487 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
10488 when computing uns.
10490 PR rtl-optimization/47157
10491 * combine.c (try_combine): If undobuf.other_insn becomes
10492 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
10493 and set *new_direct_jump_p too.
10495 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
10497 PR tree-optimization/47021
10498 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
10500 2011-01-03 Jakub Jelinek <jakub@redhat.com>
10502 * gcc.c (process_command): Update copyright notice dates.
10503 * gcov.c (print_version): Likewise.
10504 * gcov-dump.c (print_version): Likewise.
10505 * mips-tfile.c (main): Likewise.
10506 * mips-tdump.c (main): Likewise.
10508 2011-01-03 Martin Jambor <mjambor@suse.cz>
10510 PR tree-optimization/46801
10511 * tree-sra.c (type_internals_preclude_sra_p): Check whether
10512 aggregate fields start at byte boundary instead of the bit-field flag.
10514 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
10517 * gcc.c (main): Revert revision 168407.
10519 2011-01-03 Martin Jambor <mjambor@suse.cz>
10521 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
10523 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10525 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
10526 vector optab to expand vector/scalar shift, update gimple to vector.
10528 2011-01-03 Martin Jambor <mjambor@suse.cz>
10530 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
10533 2011-01-03 Martin Jambor <mjambor@suse.cz>
10535 PR tree-optimization/46984
10536 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
10538 (cgraph_create_indirect_edge): Fixed line length.
10539 (cgraph_indirect_call_info): Declare.
10540 (cgraph_make_edge_direct) Update declaration.
10541 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
10542 (cgraph_create_indirect_edge): Use it.
10543 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
10545 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
10546 the new thunk_delta representation.
10547 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
10549 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
10550 (ipa_read_indirect_edge_info): Likewise.
10551 * lto-cgraph.c (output_edge_opt_summary): New function.
10552 (output_node_opt_summary): Call it on all outgoing edges.
10553 (input_edge_opt_summary): New function.
10554 (input_node_opt_summary): Call it on all outgoing edges.
10556 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
10559 * gcc.c (main): Don't check have_o when settting combine_inputs.
10561 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
10563 * regrename.c: Add general comment describing the pass.
10564 (struct du_head): Remove 'length' field.
10565 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
10566 (regrename_optimize): Do not sort chains. Rework comments, add others.
10567 Force renaming to the preferred class (if any) in the first pass and do
10568 not consider registers that belong to it in the second pass.
10569 (create_new_chain): Do not set 'length' field.
10570 (scan_rtx_reg): Likewise.
10572 2011-01-02 Jakub Jelinek <jakub@redhat.com>
10574 PR tree-optimization/47140
10575 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
10576 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
10577 to bit_value_binop.
10579 PR rtl-optimization/47028
10580 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
10581 parm_birth_insn instead of at the beginning of first bb.
10583 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
10585 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
10586 Remove the word "see" before "@pxref".
10587 * doc/rtl.texi: Remove the word "see" before "@pxref".
10589 2011-01-01 Jan Hubicka <jh@suse.cz>
10591 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
10594 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
10597 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
10600 Copyright (C) 2011 Free Software Foundation, Inc.
10602 Copying and distribution of this file, with or without modification,
10603 are permitted in any medium without royalty provided the copyright
10604 notice and this notice are preserved.