1 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
4 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
6 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
10 * combine.c (try_combine): Skip debug insns at m_split tests.
12 2011-04-26 Mark Wielaard <mjw@redhat.com>
15 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
16 when info_section_emitted.
18 2011-05-03 Joseph Myers <joseph@codesourcery.com>
20 * config/mips/mips-opts.h: New.
21 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
23 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
24 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
25 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
27 * config/mips/mips.h (enum mips_code_readable_setting): Move to
29 (mips_abi, mips_code_readable): Don't declare.
30 * config/mips/mips.opt (config/mips/mips-opts.h): New
32 (mabi=): Use Enum and Var.
33 (mips_abi): New Enum and EnumValue entries.
34 (mcode-readable=): Use Enum and Var.
35 (mips_code_readable_setting): New Enum and EnumValue entries.
36 (mr10k-cache-barrier=): Use Enum and Var.
37 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
39 2011-05-03 Jan Hubicka <jh@suse.cz>
41 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
42 replace hash by pointer map.
43 (cgraph_node_set_element_def, cgraph_node_set_element,
44 const_cgraph_node_set_element, varpool_node_set_element_def,
45 varpool_node_set_element, const_varpool_node_set_element): Remove.
46 (free_cgraph_node_set, free_varpool_node_set): New function.
47 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
48 * tree-emutls.c: Free varpool node set.
49 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
50 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
51 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
52 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
53 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
54 Move here from ipa.c; implement using pointer_map
55 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
56 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
57 debug_cgraph_node_set, varpool_node_set_new,
58 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
59 dump_varpool_node_set, debug_varpool_node_set):
61 * passes.c (ipa_write_summaries): Update.
63 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
66 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
67 bf542/bf544/bf547/bf548/bf549.
69 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
71 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
73 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
76 * config/bfin/bfin.md (MOVCC): New mode_macro.
77 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
78 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
79 comments from generated assembly.
81 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
84 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
85 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
86 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
87 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
88 * config/bfin/lib1funcs.asm (___muldi3): New function.
90 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
92 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
93 build_function_type_list instead of build_function_type.
94 Rearrange initialization of `args' to do so.
96 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
98 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
99 instead of build_function_type.
101 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
103 * config/rs6000/rs6000.c (spe_init_builtins): Call
104 build_function_type_list instead of build_function_type.
105 (paired_init_builtins, altivec_init_builtins): Likewise.
106 (builtin_function_type): Likewise.
108 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
110 * config/sh/sh.c (sh_media_init_builtins): Call
111 build_function_type_list instead of build_function_type.
113 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
115 * config/sparc/sparc.c (sparc_file_end): Call
116 build_function_type_list instead of build_function_type.
118 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
120 * config/alpha/alpha.c (alpha_init_builtins): Call
121 build_function_type_list instead of build_function_type.
123 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
125 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
126 build_function_type_list instead of build_function_type.
128 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
130 * config/iq2000/i2000.c (iq2000_init_builtins): Call
131 build_function_type_list instead of build_function_type.
132 Delete `endlink' variable.
134 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
136 * config/avr/avr.c (avr_init_builtins): Call
137 build_function_type_list instead of build_function_type.
139 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
141 * config/picochip/picochip.c (picochip_init_builtins): Call
142 build_function_type_list instead of build_function_type.
143 Delete `endlink' variable.
145 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
147 * config/bfin/bfin.c (bfin_init_builtins): Call
148 build_function_type_list instead of build_function_type.
150 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
153 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
154 that's not CONST_INT. Seemingly redundant check is due to PR39768.
156 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
159 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
160 libbffastfp overrides libgcc when -mfast-fp.
162 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
164 Originally from Bernd Schmidt
165 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
166 * config/bfin/bfin.c (override_options): Test it and error if
169 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
171 Originally From Bernd Schmidt
172 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
175 2011-05-03 Jeff Law <law@redhat.com>
177 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
178 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
179 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
180 than accessing AUX field directly. Free the AUX field before
182 (thread_block, thread_through_loop_header): Likewise.
183 (thread_single_edge, mark_threaded_blocks): Likewise.
184 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
185 (register_jump_thread): Do not attempt to thread to a NULL edge.
187 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
189 * function.c (init_function_start): Call decide_function_section.
190 * varasm.c (decide_function_section): New function.
191 (assemble_start_function): When not using
192 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
193 or first_function_block_is_cold.
194 * rtl.h (decide_function_section): Declare.
196 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
197 Jakub Jelinek <jakub@redhat.com>
200 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
201 only succeed if req_mode is the same as set_mode.
203 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
205 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
206 * genemit.c (gen_exp): Handle RETURN.
207 * emit-rtl.c (verify_rtx_sharing): Likewise.
208 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
209 * rtl.c (copy_rtx): RETURN is shared.
210 * rtl.h (enum global_rtl_index): Add GR_RETURN.
212 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
213 * config/s390/s390.c (s390_emit_epilogue): Likewise.
214 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
215 * config/cris/cris.c (cris_expand_return): Likewise.
216 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
217 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
218 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
219 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
220 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
222 * config/v850/v850.c (expand_epilogue): Likewise.
223 * config/bfin/bfin.c (bfin_expand_call): Likewise.
224 * config/arm/arm.md (epilogue): Likewise.
225 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
226 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
229 2011-05-03 Richard Guenther <rguenther@suse.de>
232 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
233 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
234 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
236 2011-05-03 Richard Guenther <rguenther@suse.de>
238 * c-decl.c (grokdeclarator): Instead of looking at
239 TREE_OVERFLOW check if the constant fits in the index type.
241 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
243 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
244 (vec_store_lanes<mode><mode>): Likewise.
246 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
248 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
249 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
250 convert_optab_index values.
251 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
252 * genopinit.c (optabs): Initialize the new optabs.
253 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
254 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
255 (expand_STORE_LANES): New functions.
256 * tree.h (build_array_type_nelts): Declare.
257 * tree.c (build_array_type_nelts): New function.
258 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
259 (vect_model_load_cost): Likewise.
260 (vect_store_lanes_supported, vect_load_lanes_supported)
261 (vect_record_strided_load_vectors): Declare.
262 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
263 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
264 (vect_transform_strided_load): Split out statement recording into...
265 (vect_record_strided_load_vectors): ...this new function.
266 * tree-vect-stmts.c (create_vector_array, read_vector_array)
267 (write_vector_array, create_array_ref): New functions.
268 (vect_model_store_cost): Add store_lanes_p argument.
269 (vect_model_load_cost): Add load_lanes_p argument.
270 (vectorizable_store): Try to use store-lanes functions for
272 (vectorizable_load): Likewise load-lanes and loads.
273 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
274 to vect_model_store_cost.
275 (vect_build_slp_tree): Likewise vect_model_load_cost.
277 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
279 * hooks.h (hook_bool_mode_uhwi_false): Declare.
280 * hooks.c (hook_bool_mode_uhwi_false): New function.
281 * target.def (array_mode_supported_p): New hook.
282 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
283 * doc/tm.texi: Regenerate.
284 * stor-layout.c (mode_for_array): New function.
285 (layout_type): Use it.
286 * config/arm/arm.c (arm_array_mode_supported_p): New function.
287 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
289 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
292 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
293 for -fstack-check if the size to allocate is negative.
295 2011-05-02 Lawrence Crowl <crowl@google.com>
297 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
298 (timevar_cond_start): New for starting a timer only when it is not
300 (timevar_cond_stop): New for stopping a timer when it was not already
303 * timevar.c (timevar_stop): Enable start/stop timers to start again.
304 (timevar_cond_start): New as above.
305 (timevar_cond_stop): New as above.
307 * timevar.def: Add start/stop timers for compiler phases,
308 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
309 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
310 and TV_PHASE_FINALIZE.
311 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
312 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
313 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
314 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
315 Make unused TV_OVERLOAD into a start/stop timer.
317 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
318 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
319 to indicate that they are start/stop timers.
321 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
322 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
323 Move initialization to do_compile.
324 (do_compile): Add initialization from above.
325 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
327 * c-decl.c (c_write_global_declarations): Add start/stop of
328 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
330 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
331 or TV_PARSE_INLINE, as appropriate.
332 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
333 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
335 2011-05-02 Jason Merrill <jason@redhat.com>
338 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
340 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
343 * c-decl.c (finish_decl): Only create a composite if the types are
346 2011-05-02 Joseph Myers <joseph@codesourcery.com>
348 * config/fr30/fr30-protos.h (Mmode): Don't define.
349 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
350 definition where used.
351 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
352 define. Expand definitions where used.
353 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
354 Expand definitions where used.
355 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
356 rx_function_arg, rx_function_arg_advance,
357 rx_function_arg_boundary): Expand definitions of those macros.
358 * config/v850/v850-protos.h (Mmode): Don't define. Expand
359 definition where used.
361 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
363 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
365 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
366 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
367 with *movv2sf_internal_rex64_avx.
368 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
369 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
370 Use %v prefix in insn mnemonic to handle TARGET_AVX.
371 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
372 "vex" in "prefix" attribute calculation.
373 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
375 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
378 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
379 inputs match the output.
381 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
384 * config/m68k/m68k.c (m68k_expand_prologue): Set
385 current_function_static_stack_size.
387 2011-05-02 Jan Hubicka <jh@suse.cz>
389 * lto-streamer.c (lto_streamer_cache_insert_1,
390 lto_streamer_cache_lookup, lto_streamer_cache_create,
391 lto_streamer_cache_delete): Use pointer map instead of hashtable.
392 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
394 2011-05-02 Joseph Myers <joseph@codesourcery.com>
396 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
397 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
398 config/m68k/t-opts: New files.
399 * config/m68k/m68k-tables.opt: New file (generated).
400 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
401 extra_options and m68k/t-opts to tmake_file.
402 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
403 (all_isas): Initialize using m68k-isas.def.
404 (all_microarchs): Initialize using m68k-microarchs.def.
405 (m68k_find_selection): Remove.
406 (m68k_handle_option): Don't assert that global structures are in
407 use. Use error_at. Access variables via opts pointer. Don't
408 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
409 directly for -m68020-40 and -m68020-60.
410 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
411 m68k_tune_entry here.
412 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
414 (m68k_library_id_string): Remove declaration.
415 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
416 (m68k_library_id_string): New Variable.
417 (march=, mcpu=, mtune=): Use Enum and Var.
419 2011-05-02 Richard Guenther <rguenther@suse.de>
421 * varasm.c (output_constructor_regular_field): Compute zero-based
422 index with double-ints. Make sure to ICE instead of producing
424 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
425 in asserts. Properly use a signed type.
427 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
429 * config/i386/sse.md (V): New mode iterator.
430 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
432 (V_256): Rename from AVX256MODE.
433 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
434 condition to all users.
436 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
437 condition to all users.
438 (VF_128): Make V4SF mode unconditional.
439 (VF_256): Rename from AVX256MODEF2P.
440 (VI4F_128): Rename from SSEMODE4S.
441 (VI8F_128): Rename from SSEMODE2D.
442 (VI4F_256): Rename from AVX256MODE8P.
443 (VI8F_256): Rename from AVX256MODE4P.
444 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
445 (ssescalarmodesuffix): Remove SF and DF modes.
446 (SSEMODE124): Remove.
447 (SSEMODE1248): Ditto.
452 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
454 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
456 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
457 xop_pcmov_<mode>256. Use V mode iterator.
459 Adjust RTX patterns globally for renamed mode attributes.
461 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
463 * haifa-sched.c (sched_emit_insn): Emit insn before first
464 non-scheduled insn. Inform back-end about new insn. Add
465 new insn to scheduled_insns list.
467 2011-05-02 Richard Guenther <rguenther@suse.de>
469 PR tree-optimization/48822
470 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
471 (process_scc): Indicate which iteration we start.
473 2011-05-02 Jan Hubicka <jh@suse.cz>
475 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
476 (lto_section_overrun): New.
477 * lto-section-out.c (append_block): Rename to ...
478 (lto_append_block): ... this one; export.
479 (lto_output_1_stream): Move lto lto-streamer.h
480 (lto_output_data_stream): Update.
481 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
482 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
485 2011-05-02 Richard Guenther <rguenther@suse.de>
487 * tree.c (tree_code_counts): New global array.
488 (record_node_allocation_statistics): Count individual tree codes.
489 (dump_tree_statistics): Dump individual code stats.
491 2011-05-01 Jan Hubicka <jh@suse.cz>
493 * ipa-inline.c (caller_growth_limits): Fix thinko when
494 looking for largest stack frame.
495 * ipa-inline.h (dump_inline_summary): Declare.
496 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
498 (dump_inline_summary): Export.
499 (debug_inline_summary): Declare as DEBUG_FUNCTION.
501 2011-05-01 Anatoly Sokolov <aesok@post.ru>
503 * reginfo.c (memory_move_cost): Change rclass argument type form
504 'enum reg_class' to reg_class_t.
505 * reload.h (memory_move_cost): Update prototype.
506 * postreload.c reload_cse_simplify_set): Change type dclass var to
508 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
510 (ira_allocate_and_set_costs): Change aclass argument type form
511 'enum reg_class' to reg_class_t.
512 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
513 Change aclass argument type to reg_class_t.
514 (update_conflict_hard_reg_costs): Change type aclass and pref vars
516 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
517 memory_move_cost call.
519 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
520 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
521 Change type tmp var to reg_class_t.
523 2011-04-30 Jan Hubicka <jh@suse.cz>
525 * ipa-inline.c (can_inline_edge_p): Disregard limits when
526 inlining into function with flatten attribute.
527 (want_inline_small_function_p): Be more realistic about inlining
528 cold calls where callee size grows.
530 2011-04-30 Jan Hubicka <jh@suse.cz>
532 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
535 2011-04-30 Anatoly Sokolov <aesok@post.ru>
537 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
538 PRINT_OPERAND_PUNCT_VALID_P): Remove.
539 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
540 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
541 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
542 (print_operand): Rename to...
543 (sparc_print_operand): ...this. Make static. Adjust
544 sparc_print_operand function call.
545 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
548 2011-04-30 Jan Hubicka <jh@suse.cz>
551 * ipa-inline.c (early_inliner): Disable when doing late
552 addition of function.
554 2011-04-30 Jakub Jelinek <jakub@redhat.com>
556 * dwarf2out.c (get_address_mode): New inline.
557 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
558 if not dwarf_strict emit
559 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
560 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
561 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
562 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
563 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
564 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
565 mem_loc_descriptor callers.
566 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
567 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
568 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
569 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
570 (base_types): New variable.
571 (get_base_type_offset, calc_base_type_die_sizes,
572 base_type_for_mode, mark_base_types, base_type_cmp,
573 move_marked_base_types): New functions.
574 (calc_die_sizes): Assert that die_offset is 0 or equal to
576 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
577 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
578 callers. If not dwarf_strict, call mem_loc_descriptor even for
579 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
580 (gen_subprogram_die): Don't give up on call site parameters
581 with non-integral or large integral modes. Adjust
582 mem_loc_descriptor callers.
583 (prune_unused_types): Call prune_unused_types_mark on base_types
585 (resolve_addr): Call mark_base_types.
586 (dwarf2out_finish): Call move_marked_base_types.
588 PR tree-optimization/48809
589 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
591 (gen_inbound_check): Don't compute index_expr - range_min in utype
592 again, instead reuse SSA_NAME initialized in build_arrays.
593 Remove two useless gsi_for_stmt calls.
595 2011-04-29 Jeff Law <law@redhat.com>
597 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
599 2011-04-29 Martin Jambor <mjambor@suse.cz>
601 * cgraph.h (cgraph_postorder): Remove declaration.
602 * ipa-utils.h (ipa_free_postorder_info): Declare.
603 (ipa_reverse_postorder): Likewise.
604 * cgraphunit.c: Include ipa-utils.h.
605 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
606 * ipa-inline.c: Include ipa-utils.h.
607 (ipa_inline): Update call to ipa_reverse_postorder.
608 * ipa-pure-const.c (propagate_pure_const): Update call to
609 ipa_reduced_postorder and ipa_print_order. Call
610 ipa_free_postorder_info to clean up.
611 (propagate_nothrow): Likewise.
612 * ipa-reference.c (propagate): Removed a useless call to
613 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
614 and ipa_print_order. Call ipa_free_postorder_info to clean up.
615 * ipa.c: Include ipa-utils.h.
616 (ipa_profile): Update call to ipa_reverse_postorder.
617 (cgraph_postorder): Moved to...
618 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
619 (ipa_utils_print_order): Renamed to ipa_print_order.
620 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
622 (ipa_free_postorder_info): New function.
623 * passes.c: Include ipa-utils.h.
624 (do_per_function_toporder): Update call to ipa_reverse_postorder.
625 (ipa_write_summaries): Likewise.
626 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
627 (cgraphunit.o): Likewise.
629 (ipa-inline.o): Likewise.
631 2011-04-29 Jan Hubicka <jh@suse.cz>
633 * gcc.dg/tree-ssa/inline-10.c: New testcase.
634 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
635 * ipa-inline.h (clause_t): Turn into unsigned int.
636 * ipa-inline-analysis.c (add_clause): Do more simplification.
637 (and_predicates): Shortcut more cases.
638 (predicates_equal_p): Move forward; check that clauses are properly
640 (or_predicates): Shortcut more cases.
641 (edge_execution_predicate): Rewrite as...
642 (set_cond_stmt_execution_predicate): ... this function; handle
643 __builtin_constant_p.
644 (set_switch_stmt_execution_predicate): New .
645 (compute_bb_predicates): New.
646 (will_be_nonconstant_predicate): Update TODO.
647 (estimate_function_body_sizes): Use compute_bb_predicates
648 and free them later, always try to estimate if stmt is constant.
649 (estimate_time_after_inlining, estimate_size_after_inlining):
650 Gracefully handle optimized out edges.
651 (read_predicate): Fix off by one error.
653 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
655 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
657 2011-04-27 Xinliang David Li <davidxl@google.com>
659 * tree-profile.c (init_ic_make_global_vars): Set
660 tls attribute on ic vars.
661 * coverage.c (coverage_end_function): Initialize
662 function_list with zero.
664 2011-04-29 Richard Guenther <rguenther@suse.de>
666 * builtins.c (fold_builtin_classify_type): Use integer_type_node
667 for the type of the result.
668 (fold_builtin_isascii): Likewise.
669 (fold_builtin_toascii): Use integer_type_node where appropriate.
670 (fold_builtin_logb): Likewise.
671 (fold_builtin_frexp): Likewise.
672 (fold_builtin_strstr): Likewise.
673 (fold_builtin_strpbrk): Likewise.
674 (fold_builtin_fputs): Likewise.
675 (fold_builtin_sprintf): Likewise.
676 (fold_builtin_snprintf): Likewise.
677 (fold_builtin_printf): Likewise.
678 (do_mpfr_remquo): Use a proper type for the assigned constant.
679 (do_mpfr_lgamma_r): Likewise.
680 * dwarf2out.c (resolve_one_addr): Use size_int.
681 * except.c (init_eh): Likewise.
682 (assign_filter_values): Use integer_type_node for filter values.
683 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
685 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
686 for EH region numbers.
687 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
688 for the shift amount.
690 2011-04-29 Richard Guenther <rguenther@suse.de>
692 * expr.h (expand_shift): Rename to ...
693 (expand_variable_shift): ... this.
694 (expand_shift): Take a constant shift amount.
695 * expmed.c (expand_shift): Rename to ...
696 (expand_variable_shift): ... this.
697 (expand_shift): New wrapper around expand_variable_shift.
698 * expr.c (convert_move, emit_group_load_1, emit_group_store,
699 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
700 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
701 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
702 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
703 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
704 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
705 emit_store_flag_1, emit_store_flag): Likewise.
706 * builtins.c (expand_builtin_signbit): Likewise.
707 * calls.c (load_register_parameters): Likewise.
708 * function.c (assign_parm_setup_block): Likewise.
709 * lower-subreg.c (resolve_shift_zext): Likewise.
710 * optabs.c (widen_bswap, expand_abs_nojump,
711 expand_one_cmpl_abs_nojump, expand_float): Likewise.
712 * spu/spu.c (spu_expand_extv): Likewise.
713 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
715 2011-04-29 Richard Guenther <rguenther@suse.de>
717 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
718 for the remapped region number.
719 * predict.c (build_predict_expr): Use integer_type_node for the
721 * fold-const.c (fold_binary_loc): Use integer_type_node for
722 the shift amount. Use a proper type for the PLUS_EXPR operand.
724 2011-04-29 Michael Matz <matz@suse.de>
726 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
727 other trees that just builtins.
728 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
730 2011-04-29 Richard Guenther <rguenther@suse.de>
732 * tree-nested.c (get_trampoline_type): Use size_int.
733 (get_nl_goto_field): Likewise.
734 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
736 (lower_eh_constructs_2): Likewise.
737 (lower_resx): Likewise.
738 (lower_eh_dispatch): Likewise.
739 * tree-mudflap.c (mf_build_string): Use size_int.
740 (mudflap_register_call): Use integer_type_node for the flag.
741 (mudflap_enqueue_constant): Use size_int.
742 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
743 instead of rebuilding it.
745 2011-04-29 Richard Guenther <rguenther@suse.de>
747 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
749 (find_func_aliases_for_call): Use it more consistently.
751 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
753 * haifa-sched.c (last_nondebug_scheduled_insn): New.
754 (rank_for_schedule): Use it.
755 (schedule_block): Set it.
757 2011-04-28 David Li <davidxl@google.com>
759 * tree.c (crc32_string): Use crc32_byte.
760 (crc32_byte): New function.
761 * tree.h (crc32_byte): New function.
762 * gcov.c (read_graph_file): Handle new cfg_cksum.
763 (read_count_file): Ditto.
764 * profile.c (instrument_values): Ditto.
765 (get_exec_counts): Ditto.
766 (read_profile_edge_counts): Ditto.
767 (compute_branch_probabilities): Ditto.
768 (compute_value_histograms): Ditto.
769 (branch_prob): Ditto.
770 (end_branch_prob): Ditto.
771 * coverage.c (read_counts_file): Ditto.
772 (get_coverage_counts): Ditto.
773 (tree_coverage_counter_addr): Ditto.
774 (coverage_checksum_string): Ditto.
775 (coverage_begin_output): Ditto.
776 (coverage_end_function): Ditto.
777 (build_fn_info_type): Ditto.
778 (build_fn_info_value): Ditto.
779 * libgcov.c (gcov_exit): Ditto.
780 * gcov-dump.c (tag_function): Ditto.
781 (compute_checksum): Remove.
783 2011-04-29 Alan Modra <amodra@gmail.com>
785 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
786 unspec plus offset. Tidy macho code.
788 2011-04-29 Martin Jambor <mjambor@suse.cz>
790 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
791 node instead of a decl. Update all callers.
792 * cgraph.h: Update declaration.
794 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
796 PR tree-optimization/48765
797 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
798 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
799 to indicate if loop aware SLP is being used. Scan the statements
800 and update the vectorization factor according to the type of
801 vectorization before statement analysis.
802 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
803 pass it to vect_analyze_loop_operations.
804 (vectorizable_reduction): Set number of copies to 1 in case of pure
806 * tree-vect-stmts.c (vectorizable_conversion,
807 vectorizable_assignment, vectorizable_shift,
808 vectorizable_operation, vectorizable_type_demotion,
809 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
811 (vectorizable_condition): Move the check that it is not SLP
812 vectorization before the number of copies check.
813 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
814 to vectorize the loop using SLP.
816 2011-04-28 Jakub Jelinek <jakub@redhat.com>
819 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
822 2011-04-28 Joseph Myers <joseph@codesourcery.com>
824 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
825 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
826 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
827 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
828 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
830 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
831 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
832 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
833 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
834 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
835 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
837 * config/i386/linux.h (REG_NAME): Don't define.
838 * config/i386/linux64.h (REG_NAME): Don't define.
839 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
840 Undefine before defining.
842 2011-04-28 Jan Hubicka <jh@suse.cz>
844 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
845 nonconstant_names array.
846 (estimate_function_body_sizes): Build nonconstant_names array; handle
849 2011-04-28 Richard Guenther <rguenther@suse.de>
853 2011-04-28 Richard Guenther <rguenther@suse.de>
855 * tree-ssa-structalias.c (solve_constraints): Build succ graph
858 2011-04-28 Richard Guenther <rguenther@suse.de>
860 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
861 (debug_constraint): Do it here.
862 (dump_constraints): And here.
863 (rewrite_constraints): And here.
864 (dump_constraint_edge): Remove.
865 (dump_constraint_graph): Rewrite to produce DOT output.
866 (solve_constraints): Build succ graph as late as possible.
867 Dump constraint graphs before and after solving.
869 2011-04-28 Richard Guenther <rguenther@suse.de>
871 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
872 New function split out from ...
873 (find_func_aliases): ... here. Call it.
874 (find_func_aliases_for_call): Likewise.
876 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
878 * internal-fn.h (internal_fn_name_array): Declare.
879 (internal_fn_flags_array): Likewise.
881 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
883 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
884 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
886 (ssemodefsuffix): Remove.
887 (ssevecmodesuffix): New mode attribute.
888 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
889 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
890 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
891 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
892 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
893 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
894 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
895 ssemodesuffix mode attribute.
896 (float splitters): Use ssevecmodesuffix mode attribute.
897 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
898 (sseinsmode): Rename from avxvecmode.
899 (avxsizesuffix): Rename from avxmodesuffix.
900 (sseintvecmode): Rename from avxpermvecmode.
901 (ssedoublevecmode): Rename from ssedoublesizemode.
902 (ssehalfvecmode): Rename from avxhalfvecmode.
903 (ssescalarmode): Rename from avxscalarmode.
904 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
905 templates for ssemodesuffix mode attribute.
906 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
909 Adjust RTX patterns globally for renamed mode attributes.
911 2011-04-27 Jan Hubcika <jh@suse.cz>
913 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
914 * ipa-inline-analysis.c: Include alloc-pool.h.
915 (edge_predicate_pool): New.
916 (trye_predicate_p): New function
917 (false_predicate_p): New function.
918 (add_clause): Sanity check that false clauses are "optimized";
919 never add clauses to predicate that is already known to be false.
920 (and_predicate): Use flase_predicate_p.
921 (evaulate_predicate): Rename to ...
922 (evaluate_predicate): ... this one; update all callers; assert
923 that false is not listed among possible truths.
924 (dump_predicate): Use true_predicate_p.
925 (account_size_time): Use false_predicate_p.
926 (evaulate_conditions_for_edge): Rename to ...
927 (evaluate_conditions_for_edge) ... this one.
928 (edge_set_predicate): New function.
929 (inline_edge_duplication_hook): Duplicate edge predicates.
930 (inline_edge_removal_hook): Free edge predicates.
931 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
932 (dump_inline_summary): Update.
933 (estimate_function_body_sizes): Set edge predicates.
934 (estimate_calls_size_and_time): Handle predicates.
935 (estimate_callee_size_and_time): Update.
936 (remap_predicate): Add toplev_predicate; update comment.
937 (remap_edge_predicates): New function.
938 (inline_merge_summary): Compute toplev predicate; update.
939 (read_predicate): New function.
940 (read_inline_edge_summary): Use it.
941 (inline_read_section): Likewise.
942 (write_predicate): New function.
943 (write_inline_edge_summary): Use it.
944 (inline_write_summary): Likewise.
945 (inline_free_summary): Free alloc pool and edge summary vec.
947 2011-04-27 Richard Guenther <rguenther@suse.de>
949 * tree-ssa-structalias.c (changed_count): Remove.
950 (changed): Use a bitmap.
951 (unify_nodes): Adjust.
952 (do_sd_constraint): Likewise.
953 (do_ds_constraint): Likewise.
954 (do_complex_constraint): Likewise.
955 (solve_graph): Likewise.
957 2011-04-27 Jan Hubicka <jh@suse.cz>
959 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
961 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
963 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
964 (avx_vperm2f128_*_operand): Ditto.
965 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
966 Use avx_vpermilp_parallel in insn condition.
967 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
968 Use avx_vperm2f128_parallel in insn condition.
970 2011-04-27 Richard Guenther <rguenther@suse.de>
972 * Makefile.in (tree-ssa-structalias.o): Remove
973 gt-tree-ssa-structalias.h dependency.
974 (GTFILES): Remove tree-ssa-structalias.c.
975 * tree.c (allocate_decl_uid): New function.
976 (make_node_stat): Use it.
977 (copy_node_stat): Likewise.
978 * tree.h (allocate_decl_uid): Declare.
979 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
980 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
981 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
982 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
983 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
984 (struct heapvar_map): Likewise.
985 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
986 heapvar_insert): Likewise.
987 (make_heapvar_for): Rename to ...
988 (make_heapvar): ... this. Simplify.
989 (fake_var_decl_obstack): New global var.
990 (build_fake_var_decl): New function.
991 (make_constraint_from_heapvar): Adjust.
992 (handle_lhs_call): Likewise.
993 (create_function_info_for): Likewise.
994 (intra_create_variable_infos): Likewise.
995 (init_alias_vars): Allocate fake_var_decl_obstack.
996 (init_alias_heapvars, delete_alias_heapvars): Remove.
997 (compute_points_to_sets): Do not call init_alias_heapvars.
998 (ipa_pta_execute): Likewise.
999 (delete_points_to_sets): Free fake_var_decl_obstack.
1001 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1003 * config/spu/divmovti4.c (union qword_UTItype): New data type.
1004 (si_from_UTItype, si_to_UTItype): New functions.
1005 (__udivmodti4): Use them to implement type-punning.
1006 * config/spu/multi3.c (union qword_TItype): New data type.
1007 (si_from_TItype, si_to_TItype): New functions.
1008 (__multi3): Use them to implement type-punning.
1010 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1012 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
1014 2011-04-27 Jan Hubicka <jh@suse.cz>
1016 * ipa-prop.c (function_insertion_hook_holder): New holder.
1017 (ipa_add_new_function): New function.
1018 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
1019 Register/deregister holder.
1021 2011-04-27 Richard Guenther <rguenther@suse.de>
1023 PR tree-optimization/48772
1024 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
1026 2011-04-27 Richard Guenther <rguenther@suse.de>
1028 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
1029 TARGET_MEM_REF handling.
1031 2011-04-27 Nick Clifton <nickc@redhat.com>
1033 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
1034 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
1035 (REG_CLASS_NAMES): Likewise.
1036 (REG_CLASS_CONTENTS): Likewise.
1037 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1038 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1039 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
1040 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
1041 (EVEN_REGS): New macro. Alias for QUAD_REGS.
1042 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
1043 duplicate register classes.
1044 (frv_class_likely_spilled_p): Likewise.
1045 (frv_register_move_cost): Likewise.
1047 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
1048 end of the regno_reg_class array.
1050 2011-04-27 Jakub Jelinek <jakub@redhat.com>
1053 * c-typeck.c (build_binary_op): Don't wrap arguments if
1054 int_operands is true.
1056 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
1059 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
1060 targetm.calls.must_pass_in_stack for void type.
1062 2011-04-26 Jan Hubicka <jh@suse.cz>
1064 * cgraphbuild.c (build_cgraph_edges): Update call
1065 of cgraph_create_edge and cgraph_create_indirect_edge.
1066 * cgraph.c (cgraph_create_edge_including_clones,
1067 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
1068 cgraph_update_edges_for_call_stmt_node): Do not take nest
1069 argument; do not initialize call_stmt_size/time.
1070 (dump_cgraph_node): Do not dump nest.
1071 (cgraph_clone_edge): Do not take loop_nest argument;
1072 do not propagate it; do not clone call_stmt_size/time.
1073 (cgraph_clone_node): Likewise.
1074 (cgraph_create_virtual_clone): Update.
1075 * cgraph.h (struct cgraph_edge): Remove
1076 call_stmt_size/call_stmt_time/loop_nest.
1077 (cgraph_create_edge, cgraph_create_indirect_edge,
1078 cgraph_create_edge_including_clones, cgraph_clone_node): Update
1080 * tree-emutls.c (gen_emutls_addr): Update.
1081 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
1082 loop_nest; handle indirect calls, too.
1083 (clone_inlined_nodes): Do not care about updating inline summaries.
1084 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
1085 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
1086 stream call_stmt_size/call_stmt_time/loop_nest.
1087 * ipa-inline.c (edge_badness): Update.
1088 (ipa_inline): dump summaries after inlining.
1089 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
1091 (inline_edge_summary): New function.
1092 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
1093 (inline_edge_removal_hook): Handle edge summaries.
1094 (inline_edge_duplication_hook): New hook.
1095 (inline_summary_alloc): Alloc hooks.
1096 (initialize_growth_caches): Do not register removal hooks.
1097 (free_growth_caches); Do not free removal hook.
1098 (dump_inline_edge_summary): New function.
1099 (dump_inline_summary): Use it.
1100 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
1101 (inline_update_callee_summaries): New function.
1102 (inline_merge_summary): Use it.
1103 (do_estimate_edge_time, do_estimate_edge_growth): Update.
1104 (read_inline_edge_summary): New function.
1105 (inline_read_section): Use it.
1106 (write_inline_edge_summary): New function.
1107 (inline_write_summary): Use it.
1108 (inline_free_summary): Free edge new holders.
1109 * tree-inline.c (copy_bb): Update.
1111 2011-04-26 Jason Merrill <jason@redhat.com>
1113 * tree-eh.c (lower_try_finally_switch): Create the label along with
1114 the CASE_LABEL_EXPR.
1116 2011-04-26 David S. Miller <davem@davemloft.net>
1117 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1119 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
1120 * configure: Regenerate.
1122 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
1125 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
1127 (VEC_reduc): New code iterator and splitters for vector reduction.
1128 (VEC_reduc_name): Ditto.
1129 (VEC_reduc_rtx): Ditto.
1130 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
1131 (reduc_<VEC_reduc_name>_v4sf): Ditto.
1133 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1134 support for extracting SF on VSX.
1136 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
1137 generating xscvspdp.
1138 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
1139 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
1140 double add, minimum, maximum vector reduction.
1141 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
1142 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
1143 optimize double vector reduction.
1144 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
1146 2011-04-26 Joseph Myers <joseph@codesourcery.com>
1148 * config/fr30/fr30.h (inhibit_libc): Don't define.
1149 * config/m32r/m32r-protos.h: Correct comment.
1150 * config/v850/v850.h (GHS_default_section_names,
1151 GHS_current_section_names): Use tree, not union tree_node *.
1153 2011-04-26 Xinliang David Li <davidxl@google.com>
1155 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
1156 * c-family/c-opts.c (c_common_handle_option): Set
1157 warn_maybe_uninitialized.
1158 * opts.c (common_handle_option): Ditto.
1159 * common.opt: New option.
1160 * tree-ssa.c (warn_uninit): Add one more parameter.
1161 (warn_uninitialized_var): Pass warning code.
1162 * tree-flow.h: Interface change.
1165 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1167 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
1168 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
1169 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
1171 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1173 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
1174 * config/mips/mips.opt (mmips-tfile): Remove.
1176 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
1177 mips-tdump reference to ...
1178 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
1179 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
1180 reference by Tru64 UNIX.
1182 2011-04-26 Jakub Jelinek <jakub@redhat.com>
1185 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
1186 is error_mark_node, set value to NULL.
1188 PR tree-optimization/48734
1189 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
1190 if return value from maybe_fold_*_comparsions isn't something
1191 the code is prepared to handle.
1193 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
1195 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
1197 (ext_QIreg_nomode_operands): Remove.
1198 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
1202 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
1204 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
1206 2011-04-26 Richard Guenther <rguenther@suse.de>
1208 * c-typeck.c (build_unary_op): Do not expand array-refs via
1209 pointer arithmetic. Only adjust qualifiers for function types.
1211 2011-04-26 Richard Guenther <rguenther@suse.de>
1214 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
1215 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
1216 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
1217 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
1219 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1221 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
1222 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1223 * doc/extend.texi: Document __underlying_type.
1225 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
1227 * config/rs6000/titan.md (automata_option "progress"): Remove.
1229 2011-04-25 Jeff Law <law@redhat.com>
1231 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
1233 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1235 * system.h (ENUM_BITFIELD): Remove.
1237 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
1238 Eric Botcazou <ebotcazou@adacore.com>
1240 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
1241 for STORE_FLAG_VALUE==-1 case.
1243 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
1246 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
1247 LEGITIMATE_PIC_OPERAND_P.
1249 2011-04-24 Jan Hubicka <jh@suse.cz>
1251 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
1253 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
1254 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
1255 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
1256 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
1257 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
1258 Sanity check predicate length.
1259 (remap_predicate): Likewise; sanity check jump functions.
1260 (inline_read_section, inline_write_summary): Sanity check
1263 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1266 * doc/extend.texi (Type Traits): Document __is_standard_layout,
1267 __is_literal_type, and __is_trivial; update throughout about
1268 possibly cv-qualified void types.
1270 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
1272 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
1273 testsuite and make it version agnostic.
1275 2011-04-22 Jan Hubicka <jh@suse.cz>
1277 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
1279 2011-04-23 Jakub Jelinek <jakub@redhat.com>
1282 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
1283 to VOID_TYPE even around MODIFY_EXPR.
1285 2011-04-22 Mike Stump <mikestump@comcast.net>
1287 * gensupport.c (read_md_rtx): Fix typo in comment.
1288 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
1291 2011-04-22 Jan Hubicka <jh@suse.cz>
1293 * gengtype.c (open_base_files): Add ipa-inline.h include.
1294 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
1295 ipa-prop.c; update all uses.
1296 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
1297 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
1298 merge summary of inlined function into former caller.
1299 * ipa-inline.c (max_benefit): Remove.
1300 (edge_badness): Compensate for removal of benefits.
1301 (update_caller_keys): Use
1302 reset_node_growth_cache/reset_edge_growth_cache.
1303 (update_callee_keys): Likewise.
1304 (update_all_callee_keys): Likewise.
1305 (inline_small_functions): Do not collect max_benefit; do not reset
1306 estimated_growth; call free_growth_caches and initialize_growth_caches.
1307 * ipa-inline.h (struct condition, type clause_t, struct predicate,
1308 struct size_time_entry): New structures.
1309 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
1310 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
1311 and estimated_growth.
1312 (edge_growth_cache_entry): New structure.
1313 (node_growth_cache, edge_growth_cache): New global vars.
1314 (estimate_growth): Turn into inline.
1315 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
1316 initialize_growth_caches, free_growth_caches): Declare.
1317 (estimate_edge_growth): Rewrite.
1318 (estimate_edge_time): Implement as inline cache lookup.
1319 (reset_node_growth_cache, reset_edge_growth_cache): New inline
1321 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
1322 (NUM_CONDITIONS): New constant.
1323 (predicate_conditions): New enum.
1324 (IS_NOT_CONSTANT): New constant.
1325 (edge_removal_hook_holder): New var.
1326 (node_growth_cache, edge_growth_cache): New global vars.
1327 (true_predicate, single_cond_predicate, false_predicate,
1328 not_inlined_predicate, add_condition, add_clause, and_predicates,
1329 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
1330 dump_clause, dump_predicate, account_size_time,
1331 evaulate_conditions_for_edge): New functions.
1332 (inline_summary_alloc): Move to heap.
1333 (inline_node_removal_hook): Clear condition and entry vectors.
1334 (inline_edge_removal_hook): New function.
1335 (initialize_growth_caches, free_growth_caches): New function.
1336 (dump_inline_summary): Update.
1337 (edge_execution_predicate): New function.
1338 (will_be_nonconstant_predicate): New function.
1339 (estimate_function_body_sizes): Compute BB and constantness predicates.
1340 (compute_inline_parameters): Do not clear estimated_growth.
1341 (estimate_edge_size_and_time): New function.
1342 (estimate_calls_size_and_time): New function.
1343 (estimate_callee_size_and_time): New function.
1344 (remap_predicate): New function.
1345 (inline_merge_summary): New function.
1346 (do_estimate_edge_time): New function based on...
1347 (estimate_edge_time): ... this one.
1348 (do_estimate_edge_growth): New function.
1349 (do_estimate_growth): New function based on....
1350 (estimate_growth): ... this one.
1351 (inline_analyze_function): Analyze after deciding on jump functions.
1352 (inline_read_section): New function.
1353 (inline_read_summary): Use it.
1354 (inline_write_summary): Write all the new data.
1355 * ipa-prop.c (ipa_get_param_decl_index): Export.
1356 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
1357 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
1359 (ipa_get_lattice): Move here from ipa-cp.c
1360 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
1361 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
1362 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
1363 cgraph_edge_inlinable_p): Remove.
1364 * cgraphunit.c: Include ipainline.h
1365 (cgraph_process_new_functions): Update call of
1366 compute_inline_parameters.
1368 2011-04-22 Richard Guenther <rguenther@suse.de>
1370 * tree.c (build_int_cst): Properly create canonicalized integer
1372 (build_int_cst_type): Remove scary comments.
1374 2011-04-22 Xinliang David Li <davidxl@google.com>
1376 * toplev.c (process_options): Enable -Werror=coverage-mismatch
1377 by default when -Wno-error is not specified.
1378 * opts-global.c (decode_options): Remove call to
1379 control_warning_options.
1381 2011-04-22 Jakub Jelinek <jakub@redhat.com>
1383 PR tree-optimization/48717
1384 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
1385 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
1387 2011-04-22 Joseph Myers <joseph@codesourcery.com>
1389 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
1390 definition where used.
1392 2011-04-22 Jakub Jelinek <jakub@redhat.com>
1395 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
1396 TREE_STATIC variables declared inside of some OpenMP construct.
1398 2011-04-22 Martin Jambor <mjambor@suse.cz>
1401 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
1403 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
1406 * c-typeck.c (pop_init_level): Do not warn about initializing
1409 2011-04-22 Alan Modra <amodra@gmail.com>
1411 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
1412 when returning call_cookie.
1413 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
1414 pointers, to functions with no more vector args than the current
1415 function, and some non-local calls for ABI_V4.
1416 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
1417 sibcall_nonlocal_aix64): Combine to ..
1418 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
1419 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
1420 (sibcall_value_nonlocal_aix<mode>): ..likewise.
1421 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
1422 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
1424 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
1425 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
1426 sibcall_value_symbolic_64): Delete.
1428 2011-04-21 Xinliang David Li <davidxl@google.com>
1430 * cgraph.h: Remove pid.
1431 * cgraph.c: Remove pid.
1432 * value-prof.c (init_node_map): New function.
1433 (del_node_map): New function.
1434 (find_func_by_funcdef_no): New function.
1435 (gimple_ic_transform): Call new function.
1436 * cgraphunit.c (cgraph_finalize_function): Remove pid.
1437 * function.c (get_last_funcdef_no): New function.
1438 * function.h (get_last_funcdef_no): New function.
1439 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
1440 to libgcov function.
1441 (tree-profiling): Call node map init and delete function.
1443 2011-04-21 Ian Lance Taylor <iant@google.com>
1445 * godump.c (go_format_type): Use exported Go name for anonymous
1448 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1450 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
1451 Call builtin_function_type_list instead of builtin_function_type.
1452 (UNARY, BINARY, TRINARY, QUAD): Likewise.
1454 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1456 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
1457 build_function_type_list instead of build_function_type.
1458 Delete variable `endlink'.
1460 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1462 * config/s390/s390.c (s390_init_builtins): Call
1463 build_function_type_list instead of build_function_type.
1465 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1467 * config/ia64/ia64.c (ia64_init_builtins): Call
1468 build_function_type_list instead of builtin_function_type.
1470 2011-04-21 Easwaran Raman <eraman@google.com>
1472 * cfgexpand.c (stack_var): Remove OFFSET...
1473 (add_stack_var): ...and its reference here...
1474 (expand_stack_vars): ...and here.
1475 (stack_var_cmp): Sort by descending order of size.
1476 (partition_stack_vars): Change heuristic.
1477 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
1478 (dump_stack_var_partition): Add newline after each partition.
1480 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
1481 Jeff Law <law@redhat.com>
1483 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
1484 * gengtype.c (matching_file_name_substitute): Likewise.
1486 2011-04-21 Richard Guenther <rguenther@suse.de>
1489 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
1491 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
1493 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
1495 2011-04-21 Richard Guenther <rguenther@suse.de>
1497 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
1500 2011-04-21 Richard Guenther <rguenther@suse.de>
1502 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
1503 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
1504 Use DECL_P, not SSA_VAR_P.
1505 (ptr_derefs_may_alias_p): Likewise.
1506 (ptr_deref_may_alias_ref_p_1): Likewise.
1507 (decl_refs_may_alias_p): Likewise.
1508 (refs_may_alias_p_1): Likewise.
1509 (ref_maybe_used_by_call_p_1): Likewise.
1510 (call_may_clobber_ref_p_1): Likewise.
1511 (indirect_ref_may_alias_decl_p): Assume indirect refrences
1512 are either MEM_REF or TARGET_MEM_REF.
1513 (indirect_refs_may_alias_p): Likewise.
1514 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
1515 for MEM_EXPR of indirect calls.
1517 2011-04-21 Tristan Gingold <gingold@adacore.com>
1519 * vmsdbgout.c (write_srccorr): Compute file length from the string.
1520 (dst_file_info_struct): Remove flen field.
1521 (lookup_filename): Remove code that set flen field.
1523 2011-04-21 Tristan Gingold <gingold@adacore.com>
1525 * config/ia64/ia64.c (ia64_start_function): Add a guard.
1527 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
1530 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
1531 vec_extract and vec_concat for non-SSE4_1 targets.
1533 2011-04-21 Richard Guenther <rguenther@suse.de>
1535 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
1538 2011-04-21 Joseph Myers <joseph@codesourcery.com>
1540 * config/i386/cygming.h (union tree_node, TREE): Don't define or
1542 (FILE): Don't undefine.
1544 2011-04-21 Joseph Myers <joseph@codesourcery.com>
1546 * config/alpha/alpha.c (struct machine_function): Use rtx, not
1548 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
1550 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
1551 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
1552 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
1554 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
1555 definitions where used.
1556 * config/microblaze/microblaze.h (struct microblaze_args): Use
1557 rtx, not struct rtx_def *.
1558 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
1560 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
1561 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
1562 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
1563 not struct rtx_def *.
1564 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
1566 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
1568 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
1570 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1572 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
1573 operand_equal_p to compare DR_BASE_ADDRESSes.
1574 (vect_check_interleaving): Likewise.
1576 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1579 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
1580 for all Neon struct constants.
1582 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1584 * target.def (legitimate_constant_p): New hook.
1585 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
1586 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
1587 * doc/tm.texi: Regenerate.
1588 * hooks.h (hook_bool_mode_rtx_true): Declare.
1589 * hooks.c (hook_bool_mode_rtx_true): Define.
1590 * system.h (LEGITIMATE_CONSTANT_P): Poison.
1591 * calls.c (precompute_register_parameters): Replace uses of
1592 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
1593 (emit_library_call_value_1): Likewise.
1594 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
1595 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
1596 * ira-costs.c (scan_one_insn): Likewise.
1597 * recog.c (general_operand, immediate_operand): Likewise.
1598 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
1599 * reload1.c (init_eliminable_invariants): Likewise.
1601 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
1603 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
1604 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
1606 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1607 * config/alpha/predicates.md (input_operand): Update call to
1608 alpha_legitimate_constant_p.
1610 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
1611 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
1612 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
1613 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1614 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
1615 (arm_legitimate_constant_p): New functions.
1616 (arm_cannot_force_const_mem): Make static.
1618 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
1620 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
1621 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
1622 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
1623 instead of bfin_legitimate_constant_p.
1624 (bfin_legitimate_constant_p): Make static. Add a mode argument.
1625 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1627 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
1629 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
1631 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
1632 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
1633 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1634 (frv_legitimate_constant_p): Make static. Add a mode argument.
1636 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
1637 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
1638 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
1640 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
1641 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
1642 * config/i386/i386.c (legitimate_constant_p): Rename to...
1643 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
1645 (ix86_cannot_force_const_mem): Update accordingly.
1646 (ix86_legitimate_address_p): Likewise.
1647 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1648 * config/i386/i386.md: Update commentary.
1650 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
1651 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
1652 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1653 (ia64_legitimate_constant_p): Make static. Add a mode argument.
1655 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
1657 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
1658 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
1659 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1660 (lm32_legitimate_constant_p): Make static. Add a mode argument.
1662 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
1663 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
1664 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
1666 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
1667 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1668 (m32r_legitimate_constant_p): New function.
1670 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
1671 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
1672 LEGITIMATE_CONSTANT_P.
1673 (LEGITIMATE_CONSTANT_P): Delete.
1674 * config/m68k/m68k.c (m68k_expand_prologue): Call
1675 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
1676 (m68k_legitimate_constant_p): New function.
1677 * config/m68k/m68k.md: Update comments.
1679 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
1680 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1681 (mcore_legitimate_constant_p): New function.
1683 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
1684 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
1685 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
1686 Add a mode argument.
1687 (mep_legitimate_address): Update accordingly.
1688 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1690 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
1692 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
1693 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
1694 static. Check OP's mode for VOIDmode.
1695 (microblaze_legitimate_constant_p): New function.
1696 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1698 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
1699 * config/mips/mips.c (mips_legitimate_constant_p): New function.
1700 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
1701 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1702 * config/mips/predicates.md: Update comments.
1704 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
1705 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
1706 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1707 (mmix_legitimate_constant_p): Make static, return a bool, and take
1709 (mmix_print_operand_address): Update accordingly.
1711 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
1713 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
1714 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
1715 static. Add a mode argument.
1716 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1718 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
1720 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
1721 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1722 (pa_legitimate_constant_p): New function.
1724 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
1726 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
1727 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1728 (pdp11_legitimate_constant_p): New function.
1730 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
1731 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1732 (rs6000_legitimate_constant_p): New function.
1734 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
1735 (rx_legitimate_constant_p): ...this.
1736 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
1737 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
1738 (rx_legitimate_constant_p): ...this.
1739 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1740 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
1742 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
1743 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
1744 * config/s390/s390.c (legitimate_constant_p): Rename to...
1745 (s390_legitimate_constant_p): ...this. Make static, return a bool,
1746 and add a mode argument.
1747 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1749 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
1751 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
1752 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1753 (sh_legitimate_constant_p): New function.
1755 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
1756 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
1757 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1758 (legitimate_constant_p): Rename to...
1759 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
1761 (constant_address_p): Update accordingly.
1763 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
1764 argument and return a bool.
1765 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
1766 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1767 (spu_legitimate_constant_p): Add a mode argument and return a bool.
1768 (spu_rtx_costs): Update accordingly.
1769 * config/spu/predicates.md (vec_imm_operand): Likewise.
1771 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
1773 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
1774 * config/v850/v850.c (v850_legitimate_constant_p): New function.
1775 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1777 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
1778 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
1779 * config/vax/vax.c (legitimate_constant_p): Likewise.
1781 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
1782 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1783 (xtensa_legitimate_constant_p): New function.
1785 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1787 * target.def (cannot_force_const_mem): Add a mode argument.
1788 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
1789 * doc/tm.texi: Regenerate.
1790 * hooks.h (hook_bool_mode_rtx_false): Declare.
1791 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
1792 (hook_bool_mode_const_rtx_true): Likewise.
1793 (hook_bool_mode_rtx_false): New function.
1794 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
1795 to be non-VOID. Update call to cannot_force_const_mem.
1796 (find_reloads): Update accordingly.
1797 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
1798 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
1800 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
1801 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
1802 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
1803 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
1804 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
1805 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
1806 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
1807 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
1808 (m68k_cannot_force_const_mem): ...this new function.
1809 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
1811 (mips_const_insns, mips_legitimize_const_move): Update calls.
1812 (mips_secondary_reload_class): Likewise.
1813 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
1814 (pa_cannot_force_const_mem): ...this new function.
1815 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
1816 (rs6000_cannot_force_const_mem): ...this new function.
1817 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
1819 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
1820 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
1822 (xtensa_cannot_force_const_mem): ...this new function.
1824 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
1826 * config/mips/mips.c (mips16_build_function_stub): Call
1827 build_function_type_list instead of build_function_type.
1828 (mips16_build_call_stub): Likewise.
1830 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
1832 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
1833 instead of build_function_type.
1835 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
1837 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
1838 instead of build_function_type.
1840 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
1843 * config/i386/i386.md (insv): Change operand 0 constraint to
1844 "register_operand". Change operand 1 and 2 constraint to
1845 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
1846 * config/i386/sse.md (sse4_1_pinsrb): Export.
1847 (sse2_pinsrw): Ditto.
1848 (sse4_1_pinsrd): Ditto.
1849 (sse4_1_pinsrq): Ditto.
1850 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
1851 * config/i386/i386.c (ix86_expand_pinsr): New.
1853 2011-04-20 Easwaran Raman <eraman@google.com>
1855 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
1856 containing union type only with -fstrict-aliasing.
1858 2011-04-20 Jim Meyering <meyering@redhat.com>
1860 Remove useless if-before-free tests.
1861 * calls.c (expand_call, save_area): Likewise.
1862 * cfgcleanup.c (try_forward_edges): Likewise.
1863 * collect2.c (collect_execute): Likewise.
1864 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
1865 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
1866 * coverage.c (coverage_checksum_string): Likewise.
1867 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
1868 * cselib.c (cselib_init): Likewise.
1869 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
1870 (df_set_clean_cfg): Likewise.
1871 * function.c (free_after_compilation): Likewise.
1872 * gcc.c (do_spec_1, main): Likewise.
1873 * gcov.c (create_file_names): Likewise.
1874 * gensupport.c (identify_predicable_attribute): Likewise.
1875 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
1876 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
1877 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
1878 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
1879 * ipa-pure-const.c (local_pure_const): Likewise.
1880 * ipa-reference.c (propagate): Likewise.
1881 * ira-costs.c (free_ira_costs): Likewise.
1882 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
1883 * matrix-reorg.c (mat_free): Likewise.
1884 * prefix.c (get_key_value): Likewise.
1885 * profile.c (compute_value_histograms): Likewise.
1886 * reload1.c (free_reg_equiv): Likewise.
1887 * sched-deps.c (free_deps): Likewise.
1888 * sel-sched-ir.c (fence_clear): Likewise.
1889 * sese.c (set_rename, if_region_set_false_region): Likewise.
1890 * tree-data-ref.c (free_rdg): Likewise.
1891 * tree-eh.c (lower_try_finally): Likewise.
1892 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
1893 * tree-ssa-live.c (delete_var_map): Likewise.
1894 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
1895 * tree-ssa-pre.c (phi_trans_add): Likewise.
1897 2011-04-20 Jakub Jelinek <jakub@redhat.com>
1899 PR tree-optimization/48611
1900 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
1901 beyond ERT_MUST_NOT_THROW region.
1903 2011-04-20 Catherine Moore <clm@codesourcery.com>
1905 * config/mips/mips.opt (mfix-24k): New.
1906 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
1907 * config/mips/mips.md (length): Increase by 4 for stores if
1909 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
1910 all noreorder if fixing 24K errata.
1911 * doc/invoke.texi: Document mfix-24k.
1913 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
1915 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
1916 quad-word modes, reduce to 9-bit index range when above 1016 limit.
1918 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
1920 * config/arm/arm.c (arm_gen_constant): Move movw support ....
1921 (const_ok_for_op): ... to here.
1923 2011-04-20 Kai Tietz <ktietz@redhat.com>
1925 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
1926 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
1928 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
1930 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
1932 2011-04-20 Richard Guenther <rguenther@suse.de>
1934 PR tree-optimization/47892
1935 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
1938 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
1940 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
1942 2011-04-20 Tristan Gingold <gingold@adacore.com>
1944 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
1946 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
1950 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
1951 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
1952 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
1953 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
1954 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
1956 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
1959 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
1960 (avr_asm_named_section, avr_asm_output_aligned_common,
1961 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
1962 New functions to update...
1963 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
1964 (avr_asm_init_sections): Overwrite section callbacks for
1965 data_section, bss_section.
1966 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
1968 (avr_file_end): ...here.
1970 2011-04-20 Richard Guenther <rguenther@suse.de>
1973 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
1974 objects and types here. Adjust for their offset before comparing.
1976 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
1978 * tree-vect-stmts.c (vectorizable_store): Only chain one related
1981 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
1983 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
1984 (GIMPLE_H): Include $(INTERNAL_FN_H).
1985 (OBJS-common): Add internal-fn.o.
1986 (internal-fn.o): New rule.
1987 * internal-fn.def: New file.
1988 * internal-fn.h: Likewise.
1989 * internal-fn.c: Likewise.
1990 * gimple.h: Include internal-fn.h.
1991 (GF_CALL_INTERNAL): New gf_mask.
1992 (gimple_statement_call): Put fntype into a union with a new
1994 (gimple_build_call_internal): Declare.
1995 (gimple_build_call_internal_vec): Likewise.
1996 (gimple_call_same_target_p): Likewise.
1997 (gimple_call_internal_p): New function.
1998 (gimple_call_internal_fn): Likewise.
1999 (gimple_call_fntype): Return null for internal calls.
2000 (gimple_call_set_fntype): Assert that the function is not internal.
2001 (gimple_call_set_fn): Likewise.
2002 (gimple_call_set_fndecl): Likewise.
2003 (gimple_call_set_internal_fn): New function.
2004 (gimple_call_addr_fndecl): Handle null functions.
2005 (gimple_call_return_type): Likewise null types.
2006 * gimple.c (gimple_build_call_internal_1): New function.
2007 (gimple_build_call_internal): Likewise.
2008 (gimple_build_call_internal_vec): Likewise.
2009 (gimple_call_same_target_p): Likewise.
2010 (gimple_call_flags): Handle calls to internal functions.
2011 (gimple_call_fnspec): New function.
2012 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
2013 (gimple_has_side_effects): Handle null functions.
2014 (gimple_rhs_has_side_effects): Likewise.
2015 (gimple_call_copy_skip_args): Handle calls to internal functions.
2016 * cfgexpand.c (expand_call_stmt): Likewise.
2017 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
2018 * gimple-fold.c (gimple_fold_call): Handle null functions.
2019 (gimple_fold_stmt_to_constant_1): Don't fold
2020 calls to internal functions.
2021 * gimple-low.c (gimple_check_call_args): Handle calls to internal
2023 * gimple-pretty-print.c (dump_gimple_call): Likewise.
2024 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
2025 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
2026 (do_warn_unused_result): Likewise.
2027 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
2028 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
2029 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
2030 the target of a call.
2031 (initialize_hash_element): Update accordingly.
2032 (hashable_expr_equal_p): Use gimple_call_same_target_p.
2033 (iterative_hash_hashable_expr): Handle calls to internal functions.
2034 (print_expr_hash_elt): Likewise.
2035 * tree-ssa-pre.c (can_value_number_call): Likewise.
2036 (eliminate): Handle null functions.
2037 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
2038 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
2039 (find_func_aliases): Likewise.
2040 * value-prof.c (gimple_ic_transform): Likewise.
2041 (gimple_indirect_call_to_profile): Likewise.
2042 * lto-streamer-in.c (input_gimple_stmt): Likewise.
2043 * lto-streamer-out.c (output_gimple_stmt): Likewise.
2045 2011-04-19 Jan Hubicka <jh@suse.cz>
2047 * ipa-inline-transform.c (save_inline_function_body): Add comments.
2048 * ipa-inline.c (inline_small_functions): Compute summaries first,
2049 populate heap later.
2051 2011-04-19 Jan Hubicka <jh@suse.cz>
2053 * cgraph.h (save_inline_function_body): Remove.
2054 * ipa-inline-transform.c: New file, broke out of...
2055 * ipa-inline.c: ... this one; Update toplevel comment.
2056 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
2058 (update_noncloned_frequencies): Move to ipa-inline-transform.c
2059 (cgraph_mark_inline_edge): Rename to inline_call; move to
2060 ipa-inline-transform.c.
2061 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
2062 move to ipa-inline-transform.c
2063 (recursive_inlining, inline_small_functions, flatten_function,
2064 ipa_inline, inline_always_inline_functions,
2065 early_inline_small_functions): Update.
2066 (inline_transform): Move to ipa-inline-transform.c.
2067 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
2069 * Makefile.in (ipa-inline-transform.o): New file.
2070 * cgraphunit.c (save_inline_function_body): Move to
2071 ipa-inline-transform.c
2073 2011-04-19 DJ Delorie <dj@redhat.com>
2075 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
2076 registers if we already know there aren't any.
2077 (m32c_emit_epilogue): Don't emit a barrier here.
2078 (m32c_emit_eh_epilogue): Likewise.
2079 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
2080 operands at expand time.
2081 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
2083 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
2084 duplicates. Provide aliases instead.
2085 * config/m32c/prologue.md (eh_return): Emit a barrier here.
2086 (eh_epilogue): Add a "(return)" here as a hint to other parts of
2089 2011-04-19 Anatoly Sokolov <aesok@post.ru>
2091 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
2092 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
2093 (general_or_i64_p, sparc_register_move_cost): New function.
2095 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2097 * doc/install.texi (Configuration, --enable-threads): Remove mach.
2098 Add lynx, mipssde. Sort table.
2100 2011-04-19 Xinliang David Li <davidxl@google.com>
2102 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
2105 2011-04-19 Jakub Jelinek <jakub@redhat.com>
2108 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
2109 is a SUBREG with non-MODE_INT mode inside of it.
2111 2011-04-19 Martin Jambor <mjambor@suse.cz>
2113 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
2114 also according to actual contants.
2115 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
2116 (gimple_fold_call): Use it.
2117 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
2119 2011-04-19 Martin Jambor <mjambor@suse.cz>
2121 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
2122 non-pointer assignments.
2124 2011-04-19 Martin Jambor <mjambor@suse.cz>
2126 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
2127 account anc_offset and otr_type from the indirect edge info.
2128 * ipa-prop.c (get_ancestor_addr_info): New function.
2129 (compute_complex_ancestor_jump_func): Assignment analysis moved to
2130 get_ancestor_addr_info, call it.
2131 (ipa_note_param_call): Do not initialize information about polymorphic
2132 calls, return the indirect call graph edge. Remove the last
2133 parameter, adjust all callers.
2134 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
2135 parameters. Initialize polymorphic information in the indirect edge.
2137 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2140 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
2141 the types if they have different enumeration identifiers.
2143 2011-04-19 Jan Hubicka <jh@suse.cz>
2145 * cgraph.h (cgraph_optimize_for_size_p): Declare.
2146 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
2147 * predict.c (cgraph_optimize_for_size_p): Break out from ...
2148 (optimize_function_for_size_p) ... here.
2150 2011-04-19 Richard Guenther <rguenther@suse.de>
2153 * tree.c (free_lang_data): Do not reset the decl-assembler-name
2156 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2158 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
2159 if DECL_NO_INLINE_WARNING_P is set on the function.
2161 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
2164 * reload1.c (inc_for_reload): Return void. All callers changed.
2165 (emit_input_reload_insns): Don't try to delete previous output
2166 reloads to a register, or record spill_reg_store for autoincs.
2168 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
2170 * gengtype.h: Updated copyright year.
2171 (struct input_file_st): Add inpisplugin field.
2172 (type_fileloc): New function.
2174 (write_typed_struct_alloc_def): Add gcc_assert.
2175 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
2176 (write_typed_alloc_defns): Don't output for plugin files.
2177 (input_file_by_name): Clear inpisplugin field.
2178 (main): Set inpisplugin field for plugin files.
2180 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
2182 * gengtype-state.c (string_eq): New.
2183 (read_state): Use string_eq instead of strcmp when creating the
2186 2011-04-19 Wei Guozhi <carrot@google.com>
2189 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
2190 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
2192 * config/arm/constraints.md (Uu): New constraint.
2193 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
2195 2011-04-19 Tristan Gingold <gingold@adacore.com>
2197 * config.gcc (-*-*-*vms): Added.
2198 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
2200 * config/vms/vms-ld.c: New file.
2201 * config/vms/vms-ar.c: New file.
2202 * config/vms/t-vmsnative: New file.
2204 2011-04-18 Xinliang David Li <davidxl@google.com>
2206 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
2208 2011-04-18 Jakub Jelinek <jakub@redhat.com>
2211 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
2212 if TREE_TYPE (v) is non-NULL.
2214 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
2215 gimple_get_virt_mehtod_for_binfo.
2216 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
2217 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
2219 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2221 2011-04-18 Michael Matz <matz@suse.de>
2222 Steve Ellcey <sje@cup.hp.com>
2224 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
2225 use its mode as source mode if it isn't VOIDmode.
2227 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
2229 * doc/passes.texi: Fill crossref nodes.
2231 2011-04-18 Jim Meyering <meyering@redhat.com>
2233 Fix doubled-word typos in comments and strings
2234 * config/alpha/vms-unwind.h: s/for for/for/
2235 * config/arm/unwind-arm.h: Likewise.
2236 * config/microblaze/microblaze.c: Likewise.
2237 * config/sh/constraints.md: s/in in/in/
2238 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
2240 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
2242 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
2243 (AVX_FLOAT_MODE_P): Ditto.
2244 (AVX128_VEC_FLOAT_MODE_P): Ditto.
2245 (AVX256_VEC_FLOAT_MODE_P): Ditto.
2246 (AVX_VEC_FLOAT_MODE_P): Ditto.
2247 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
2248 (UNSPEC_MASKSTORE): Ditto.
2249 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
2250 Merge from <sse>_movmsk<ssemodesuffix> and
2251 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
2252 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
2254 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
2255 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
2256 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
2258 2011-04-18 Jan Hubicka <jh@suse.cz>
2260 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
2262 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
2263 (want_inline_function_called_once_p): Break out the logic from
2265 (edge_badness): Ensure that profile is not misupdated.
2266 (lookup_recursive_calls): Prioritize by call frequencies.
2267 (inline_small_functions): Move program size estimates here;
2268 actually process whole queue even when unit growth has been
2269 met. (to properly compute inline_failed reasons and for the
2270 case unit size decrease.) Revisit comments on recursive inlining.
2271 (ipa_inline): Remove unit summary code; first inline hot calls
2272 of functions called once, cold calls next.
2273 (order, nnodes): Remove unused variables.
2274 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
2275 (GTFILES): Remove ipa-inline.c
2276 * sel-sched.c (fill_insns): Silence uninitialized var warning.
2278 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
2280 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
2282 2011-04-18 Jie Zhang <jie@codesourcery.com>
2283 Richard Earnshaw <rearnsha@arm.com>
2285 * arm.c (neon_builtin_type_bits): Remove.
2286 (typedef enum neon_builtin_mode): New.
2287 (T_MAX): Don't define.
2288 (typedef enum neon_builtin_datum): Remove bits, codes[],
2289 num_vars and base_fcode. Add mode, code and fcode.
2290 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
2291 VAR10): Change accordingly.
2292 (neon_builtin_data[]): Change accordingly
2293 (arm_init_neon_builtins): Change accordingly.
2294 (neon_builtin_compare): Remove.
2295 (locate_neon_builtin_icode): Remove.
2296 (arm_expand_neon_builtin): Change accordingly.
2298 * arm.h (enum arm_builtins): Move to ...
2299 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
2301 * arm.c (arm_builtin_decl): Declare.
2302 (TARGET_BUILTIN_DECL): Define.
2303 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
2304 (arm_builtin_decls[]): New.
2305 (arm_init_neon_builtins): Store builtin declarations in
2306 arm_builtin_decls[].
2307 (arm_init_tls_builtins): Likewise.
2308 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
2309 (arm_builtin_decl): New.
2311 2011-04-18 Richard Guenther <rguenther@suse.de>
2313 * tree.c (upper_bound_in_type): Build properly canonicalized
2315 (lower_bound_in_type): Likewise.
2317 2011-04-18 Richard Guenther <rguenther@suse.de>
2319 * gimple.h (gimple_call_addr_fndecl): New function.
2320 (gimple_call_fndecl): Use it.
2321 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
2323 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
2324 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
2326 2011-04-18 Richard Guenther <rguenther@suse.de>
2329 * tree.c (build_string): STRING_CST is now derived from tree_typed.
2331 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
2334 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
2335 DECL_IN_CONSTANT_POOL without RTL.
2337 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
2338 Ira Rosen <ira.rosen@linaro.org>
2341 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
2342 to match neon_vzip/vuzp/vtrn_internal.
2343 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
2344 outputs explicitly dependent on both inputs.
2345 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
2347 2011-04-18 Jakub Jelinek <jakub@redhat.com>
2349 PR tree-optimization/48616
2350 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
2351 whether the shift is by scalar or vector based on whether all SLP
2352 scalar stmts have the same rhs.
2354 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
2356 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
2359 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
2361 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
2364 2011-04-17 Jan Hubicka <jh@suse.cz>
2366 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
2367 * cgrpahunit.c (cgraph_finalize_function): Do not set
2368 finalized_by_frontend.
2369 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
2370 finalized_by_frontend.
2372 2011-04-17 Jan Hubicka <jh@suse.cz>
2374 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
2375 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
2376 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
2377 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
2379 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
2381 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
2383 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
2386 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
2387 is non-null before accessing it.
2388 (input_cgraph): Remove trailing spaces.
2390 2011-04-17 Revital Eres <revital.eres@linaro.org>
2392 * params.def (sms-min-sc): New param flag.
2393 * modulo-sched.c (sms_schedule): Use it.
2394 * doc/invoke.texi (sms-min-sc): Document it.
2396 2011-04-17 Jan Hubicka <jh@suse.cz>
2398 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
2399 present, also set gimple_call_set_cannot_inline.
2400 * ipa-inline.c: Update toplevel comment.
2402 (cgraph_clone_inlined_nodes): Fix linebreaks.
2403 (cgraph_check_inline_limits): Restructure to ...
2404 (caller_growth_limits): ... this one; be more tolerant
2405 on growth in nested inline chains; add explanatory comment;
2406 fix stack accounting thinko introduced by previous patch.
2407 (cgraph_default_inline_p): Remove.
2408 (report_inline_failed_reason): New function.
2409 (can_inline_edge_p): New function.
2410 (can_early_inline_edge_p): New function.
2411 (leaf_node_p): Move upwards in file.
2412 (want_early_inline_function_p): New function.
2413 (want_inline_small_function_p): New function.
2414 (want_inline_self_recursive_call_p): New function.
2415 (cgraph_edge_badness): Rename to ...
2416 (edge_badness) ... this one; fix linebreaks.
2417 (update_edge_key): Update call of edge_baddness; add
2418 detailed dump about queue updates.
2419 (update_caller_keys): Use can_inline_edge_p and
2420 want_inline_small_function_p.
2421 (cgraph_decide_recursive_inlining): Rename to...
2422 (recursive_inlining): Use can_inline_edge_p and
2423 want_inline_self_recursive_call_p; simplify and remove no longer
2425 (cgraph_set_inline_failed): Remove.
2426 (add_new_edges_to_heap): Use can_inline_edge_p and
2427 want_inline_small_function_p.
2428 (cgraph_decide_inlining_of_small_functions): Rename to ...
2429 (inline_small_functions): ... this one; cleanup; use
2430 can/want predicates; cleanup debug ouput; work edges till fibheap
2431 is exhausted and do not stop once unit growth is reached; remove
2432 later loop processing remaining edges.
2433 (cgraph_flatten): Rename to ...
2434 (flatten_function): ... this one; use can_inline_edge_p
2435 and can_early_inline_edge_p predicates.
2436 (cgraph_decide_inlining): Rename to ...
2437 (ipa_inline): ... this one; remove unreachable nodes before
2438 inlining functions called once; simplify the pass.
2439 (cgraph_perform_always_inlining): Rename to ...
2440 (inline_always_inline_functions): ... this one; use
2441 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
2442 (cgraph_decide_inlining_incrementally): Rename to ...
2443 (early_inline_small_functions): ... this one; simplify
2444 using new predicates; cleanup; make dumps prettier.
2445 (cgraph_early_inlining): Rename to ...
2446 (early_inliner): newer inline regular functions into always-inlines;
2447 fix updating of call stmt summaries.
2448 (pass_early_inline): Update for new names.
2449 (inline_transform): Fix formating.
2450 (gate_cgraph_decide_inlining): Rename to ...
2451 (pass_ipa_inline): ... this one.
2452 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
2453 * ipa-inline-analysis.c (dump_inline_summary): Update.
2454 (compute_inline_parameters): Do not compute disregard_inline_limits;
2455 look for mismatching arguments.
2456 (estimate_growth): Fix handlig of non-trivial self recursion.
2457 (inline_read_summary): Do not read info->disregard_inline_limits.
2458 (inline_write_summary): Do not write info->disregard_inline_limits.
2459 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
2460 and move all checks into can_inline_edge_p predicate; re-enable code
2461 comparing optimization levels.
2462 (expand_call_inline): Do not test inline_forbidden_into_p.
2463 * Makefile.in (ipa-inline.o): Update arguments.
2465 2011-04-17 Revital Eres <revital.eres@linaro.org>
2467 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
2469 2011-04-17 Revital Eres <revital.eres@linaro.org>
2471 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
2473 2011-04-17 Michael Matz <matz@suse.de>
2475 PR tree-optimization/48622
2477 * ipa-inline-analysis.c (inline_read_summary): Read size/time
2478 in same order as they're written.
2480 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2482 * config/pa/predicates.md: Reorganize and simplify predicates.
2483 Eliminate duplicate code checks.
2484 (arith_operand): Rename to arith14_operand
2485 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
2486 * config/pa/pa.md: Use renamed operands.
2487 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
2488 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
2489 arith11_operand, adddi3_operand, indexed_memory_operand,
2490 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
2491 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
2492 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
2493 move_dest_operand, move_src_operand, prefetch_cc_operand,
2494 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
2495 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
2496 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
2497 div_operand, int5_operand, movb_comparison_operator,
2498 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
2499 arith_double_operand, ireg_operand, lhs_lshift_operand,
2500 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
2501 integer_store_memory_operand): Likewise.
2502 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
2503 (integer_store_memory_operand, read_only_operand,
2504 function_label_operand, borx_reg_operand,
2505 non_hard_reg_operand): Likewise.
2506 (eq_neq_comparison_operator): Delete unused operator.
2507 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
2508 function_label_operand.
2509 (emit_move_sequence): Likewise.
2511 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
2513 * config/i386/sse.md (sseunpackmode): New mode attribute.
2514 (ssepackmode): Ditto.
2515 (vec_pack_trunc_<mode>): Macroize expander from
2516 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
2517 (vec_unpacks_lo_<mode>): Macroize expander from
2518 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2519 (vec_unpacks_hi_<mode>): Macroize expander from
2520 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2521 (vec_unpacku_lo_<mode>): Macroize expander from
2522 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2523 (vec_unpacku_hi_<mode>): Macroize expander from
2524 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2525 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
2526 ix86_expand_sse4_unpack.
2527 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
2529 2011-04-16 Jan Hubicka <jh@suse.cz>
2531 * cgraphbuild.c: Include ipa-inline.h.
2532 (reset_inline_failed): Use initialize_inline_failed.
2533 * cgraph.c: Include ipa-inline.h.
2534 (cgraph_create_node_1): Do not initialize estimated_growth.
2535 (initialize_inline_failed): More to ipa-inline-analysis.c
2536 (dump_cgraph_node): Do not dump inline flags.
2537 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
2538 and disregard_inline_limits flags.
2539 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
2540 time, size, estimated_growth.
2541 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
2543 * cgraphunit.c (cgraph_decide_is_function_needed): Use
2544 DECL_DISREGARD_INLINE_LIMITS.
2545 (cgraph_analyze_function): Do not initialize
2546 node->local.disregard_inline_limits.
2547 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
2548 inlinable, versionable and disregard_inline_limits.
2549 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
2550 cgraph_check_inline_limits, cgraph_default_inline_p,
2551 cgraph_edge_badness, update_caller_keys, update_callee_keys,
2552 add_new_edges_to_heap): Update.
2553 (cgraph_decide_inlining_of_small_function): Update; set
2554 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
2555 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
2556 cgraph_decide_inlining_incrementally): Update.
2557 * ipa-inline.h (inline_summary): Add inlinable, versionable,
2558 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
2559 time, size and estimated_growth parameters.
2560 (estimate_edge_growth): Update.
2561 (initialize_inline_failed): Declare.
2562 * ipa-split.c: Include ipa-inline.h
2563 (execute_split_functions): Update.
2564 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
2565 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
2566 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
2567 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
2568 estimated_growth to INT_MIN.
2569 (inline_node_duplication_hook): Likewise.
2570 (dump_inline_summary): Dump new fields.
2571 (compute_inline_parameters): Update.
2572 (estimate_edge_time, estimate_time_after_inlining,
2573 estimate_size_after_inlining, estimate_growth, inline_read_summary,
2574 inline_write_summary):
2575 (initialize_inline_failed): Move here from cgraph.c.
2576 * tree-sra.c: Include ipa-inline.h.
2577 (ipa_sra_preliminary_function_checks): Update.
2578 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
2581 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
2583 * config/i386/sse.md (V16): New mode iterator.
2585 (AVXMODEQI, AVXMODEDI): Remove.
2586 (sse2, sse3): New mode attribute.
2587 (mov<mode>): Use V16 mode iterator.
2588 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
2589 (push<mode>1): Use V16 mode iterator.
2590 (movmisalign<mode>): Ditto.
2591 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
2592 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
2593 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
2594 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
2595 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
2596 avx_movdqu<avxmodesuffix>.
2597 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
2598 *avx_movdqu<avxmodesuffix>.
2599 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
2600 avx_lddqu<avxmodesuffix>.
2601 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
2602 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
2603 avx_movnt<AVXMODEDI:mode>.
2604 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
2605 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
2607 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
2610 * haifa-sched.c (prune_ready_list, schedule_block): Use
2611 sched_pressure_p rather than flag_sched_pressure.
2613 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
2615 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
2616 cgraph_get_node instead of cgraph_get_create_node.
2618 2011-04-15 Jakub Jelinek <jakub@redhat.com>
2620 * cfgexpand.c (expand_debug_expr): Use
2621 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
2623 2011-04-15 Michael Matz <matz@suse.de>
2625 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
2626 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
2627 * function.c (gimplify_parameters): Ditto.
2628 * gimplify.c (gimplify_vla_decl): Ditto.
2630 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
2631 (gimple_call_set_alloca_for_var): New inline function.
2632 (gimple_call_alloca_for_var_p): Ditto.
2633 * gimple.c (gimple_build_call_from_tree): Remember
2634 CALL_ALLOCA_FOR_VAR_P state.
2635 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
2637 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
2638 calls if they were for VLA objects.
2640 2011-04-15 Martin Jambor <mjambor@suse.cz>
2642 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
2645 2011-04-15 Martin Jambor <mjambor@suse.cz>
2648 * tree-emutls.c (lower_emutls_function_body): Call
2649 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
2652 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2654 * c-decl.c (detect_field_duplicates): Call
2655 objc_detect_field_duplicates instead of objc_get_interface_ivars.
2657 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
2659 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
2660 * gimple.c (gimple_asm_clobbers_memory_p): Define.
2661 * ipa-pure-const.c (check_stmt): Call it.
2662 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
2664 2011-04-15 Richard Guenther <rguenther@suse.de>
2666 PR tree-optimization/48290
2667 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
2668 Properly decide inhibiting propagation based on the valueized
2669 operand. Do loop-closed SSA form preserving here ...
2670 (init_copy_prop): ... not here.
2672 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
2675 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
2676 (*ieee_smax<mode>3): Likewise.
2678 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2680 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
2681 Replace match_operand with match_dup for the third operand in
2684 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
2686 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
2687 to track processing of conditionals. Update all callers.
2688 (try_combine, simplify_if_then_else): Update.
2690 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
2692 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
2695 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
2697 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
2698 instead of match_operand for operand 3.
2700 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
2702 * recog.h (insn_operand_data): Add an "allows_mem" field.
2703 * genoutput.c (output_operand_data): Initialize it.
2704 * optabs.c (maybe_legitimize_operand_same_code): New function.
2705 (maybe_legitimize_operand): Use it when matching the original
2708 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
2710 * gimplify.c: Fix issues in comments throughout.
2711 (voidify_wrapper_expr): Fix long line.
2712 (build_stack_save_restore): Likewise.
2713 (gimplify_loop_expr): Likewise.
2714 (gimplify_compound_lval): Likewise.
2715 (gimplify_init_ctor_eval): Likewise.
2716 (gimplify_modify_expr_rhs): Likewise.
2717 (omp_notice_threadprivate_variable): Likewise.
2719 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
2721 * cfgexpand.c (expand_call_stmt): Convert the function type to the
2722 original one if this is not a builtin function.
2724 2011-04-14 Jakub Jelinek <jakub@redhat.com>
2727 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
2728 offset it as needed based on top 2 bits in operands[3], change
2729 MEM mode to SFmode and mask those 2 bits away from operands[3].
2731 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2733 * c-parser.c (c_parser_objc_protocol_definition): Updated for
2734 change from objc_declare_protocols() to objc_declare_protocol().
2736 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
2738 * config/i386/sse.md (sse4_1): New mode attribute.
2739 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
2740 avx_blend<ssemodesuffix><avxmodesuffix> and
2741 sse4_1_blend<ssemodesuffix> using VF mode iterator.
2742 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
2743 avx_blendv<ssemodesuffix><avxmodesuffix> and
2744 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
2745 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
2746 avx_dp<ssemodesuffix><avxmodesuffix> and
2747 sse4_1_dp<ssemodesuffix> using VF mode iterator.
2748 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
2749 (sse4_1_packusdw): Merge with *avx_packusdw.
2750 (sse4_1_pblendvb): Merge with *avx_pblendvb.
2751 (sse4_1_pblendw): Merge with *avx_pblendw.
2752 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
2753 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
2754 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
2756 (sse4_1_round<ssescalarmodesuffix>): Merge with
2757 *avx_round<ssescalarmodesuffix>.
2758 (aesenc): Merge with *avx_aesenc.
2759 (aesenclast): Merge with *avx_aesenclast.
2760 (aesdec): Merge with *avx_aesdec.
2761 (aesdeclast): Merge with *avx_aesdeclast.
2762 (pclmulqdq): Merge with *pclmulqdq.
2763 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
2765 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
2767 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
2770 * cfgexpand.c (get_decl_align_unit): Renamed to ...
2771 (align_local_variable): This. Update DECL_ALIGN.
2772 (add_stack_var): Updated.
2773 (expand_one_stack_var): Likewise.
2775 2011-04-14 Richard Guenther <rguenther@suse.de>
2777 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
2779 (dse_initialize_block_local_data, dse_leave_block,
2780 record_voperand_set, get_stmt_uid): Likewise.
2781 (dse_possible_dead_store_p): Allow any kind of killing stmt.
2782 (dse_optimize_stmt): Remove voperand set handling code.
2783 Simplify and improve to handle any kind of killing stmt.
2784 (dse_record_phi): Remove.
2785 (dse_enter_block): Simplify.
2786 (tree_ssa_dse): Likewise.
2787 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
2789 2011-04-14 Jan Hubicka <jh@suse.cz>
2791 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
2792 * cgraph.h (struct inline_summary): Move to ipa-inline.h
2793 (cgraph_local_info): Remove inline_summary.
2794 * ipa-cp.c: Include ipa-inline.h.
2795 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
2796 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
2798 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
2799 (input_overwrite_node): Do not set inline summary.
2800 (input_node): Do not stream inline summary.
2801 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
2802 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
2803 growth; we do not have inline parameters computed for that anyway.
2804 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
2805 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
2806 (inline_summary_t): New type and VECtor.
2807 (debug_inline_summary, dump_inline_summaries): Declare.
2808 (inline_summary): Use VOCtor.
2809 (estimate_edge_growth): Kill hack computing call stmt size directly.
2810 * lto-section-in.c (lto_section_name): Add inline section.
2811 * ipa-inline-analysis.c: Include lto-streamer.h
2812 (node_removal_hook_holder, node_duplication_hook_holder): New holders
2813 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
2814 (inline_summary_vec): Define.
2815 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
2816 dump_inline_summaries): New functions.
2817 (estimate_function_body_sizes): Properly compute size/time of outgoing
2819 (compute_inline_parameters): Alloc inline_summary; do not compute
2820 size/time of incomming calls.
2821 (estimate_edge_time): Avoid missing time summary hack.
2822 (inline_read_summary): Read inline summary info.
2823 (inline_write_summary): Write inline summary info.
2824 (inline_free_summary): Free all hooks and inline summary vector.
2825 * lto-streamer.h: Add LTO_section_inline_summary section.
2826 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
2827 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
2829 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
2831 * tree-vectorizer.h (vect_strided_store_supported): Add a
2832 HOST_WIDE_INT argument.
2833 (vect_strided_load_supported): Likewise.
2834 (vect_permute_store_chain): Return void.
2835 (vect_transform_strided_load): Likewise.
2836 (vect_permute_load_chain): Delete.
2837 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
2838 count argument. Check that the count is a power of two.
2839 (vect_strided_load_supported): Likewise.
2840 (vect_permute_store_chain): Return void. Update after above changes.
2841 Assert that the access is supported.
2842 (vect_permute_load_chain): Likewise.
2843 (vect_transform_strided_load): Return void.
2844 * tree-vect-stmts.c (vectorizable_store): Update calls after
2845 above interface changes.
2846 (vectorizable_load): Likewise.
2847 (vect_analyze_stmt): Don't check for strided powers of two here.
2849 2011-04-14 Richard Guenther <rguenther@suse.de>
2851 PR tree-optimization/48590
2852 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
2853 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
2854 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
2855 BUILT_IN_STACK_SAVE.
2856 * tree-ssa-dce.c (propagate_necessity): Handle
2857 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
2859 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2861 * c-parser.c (c_parser_objc_class_declaration): Updated call to
2864 2011-04-14 Richard Guenther <rguenther@suse.de>
2866 * tree.h (get_object_alignment_1): Declare.
2867 * builtins.c (get_object_alignment_1): Split out worker from ...
2868 (get_object_alignment): ... here.
2869 * fold-const.c (get_pointer_modulus_and_residue): Use
2870 get_object_alignment_1.
2872 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
2874 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
2876 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
2877 parameter. Generalise code to handle arrays as well as vectors.
2878 (vect_setup_realignment): Update accordingly.
2879 * tree-vect-stmts.c (vectorizable_store): Likewise.
2880 (vectorizable_load): Likewise.
2882 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
2884 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
2885 within the per-copy loop.
2887 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
2889 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
2892 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
2894 * doc/options.texi (Negative): Explicitly mention that the
2895 Negative chain must be circular.
2897 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
2899 * function.h (block_chainon): Declare.
2900 * function.c (block_chainon): Define.
2902 2011-04-14 Anatoly Sokolov <aesok@post.ru>
2903 Eric Weddington <eric.weddington@atmel.com>
2904 Georg-Johann Lay <avr@gjlay.de>
2906 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
2908 (avr_init_builtins, avr_expand_builtin,
2909 avr_expand_delay_cycles, avr_expand_unop_builtin,
2910 avr_expand_binop_builtin ): New functions.
2911 (avr_builtin_id): New enum
2912 (struct avr_builtin_description): New struct
2913 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
2914 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
2916 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
2917 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
2918 UNSPECV_DELAY_CYCLES): new enumeration values
2919 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
2920 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
2921 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
2922 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
2923 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
2924 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
2925 "fmulsu"): New insns
2927 * config/avr/avr-c.c: fix line endings
2928 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
2929 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
2930 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
2931 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
2932 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
2934 * doc/extend.texi (AVR Built-in Functions): New node
2935 (Target Builtins): Add documentation of AVR
2938 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
2941 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
2942 alone. Error if non-const data has attribute progmem.
2944 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
2946 * tree.h (struct tree_constructor): Include tree_typed instead of
2948 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
2949 TS_TYPED instead of TS_COMMON.
2951 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
2953 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
2954 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
2955 (sse2_psadbw): Merge with *avx_psadbw.
2956 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
2957 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
2958 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
2959 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
2960 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
2961 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
2962 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
2963 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
2964 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
2965 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
2966 (ssse3_palignrti): Merge with *avx_palignrti.
2968 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
2970 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
2971 * tree-ssanames.c (fini_ssanames): VEC_free it.
2972 (make_ssa_name_fn): Update for VECness of free_ssanames.
2973 (release_ssa_name, release_dead_ssa_names): Likewise.
2974 * tree.h (struct tree_ssa_name): Include tree_typed instead of
2976 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
2977 TS_TYPED instead of TS_COMMON.
2979 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
2981 * postreload-gcse.c (gcse_after_reload_main): Add calls to
2982 statistics_counter_event.
2983 * tree-ssa-copyrename.c (stats): Define.
2984 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
2985 statistics_counter_event.
2986 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
2987 (bswap_stats, widen_mul_stats): Define.
2988 (insert_reciprocals): Increment rdivs_inserted.
2989 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
2990 rfuncs_inserted. Add calls to statistics_counter_event.
2991 (execute_cse_sincos_1): Increment inserted.
2992 (execute_cse_sincos): Zeroize sincos_stats. Add call to
2993 statistics_counter_event.
2994 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
2995 of bswap_stats. Add calls to statistics_counter_event.
2996 (convert_mult_to_widen): Increment widen_mults_inserted.
2997 (convert_plusminus_to_widen): Increment maccs_inserted.
2998 (convert_mult_to_fma): Increment fmas_inserted.
2999 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
3000 calls to statistics_counter_event.
3002 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
3004 PR rtl-optimization/48455
3005 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
3006 `temp_costs->mem_cost'.
3008 2011-04-13 Jan Hubicka <jh@suse.cz>
3010 * ipa-inline.h: New file.
3011 * ipa-inline-analysis.c: New file. Broken out of ...
3012 * ipa-inline.c: ... this file; update toplevel comment;
3013 include ipa-inline.h
3014 (inline_summary): Move to ipa-inline.h
3015 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
3016 ipa-inline-analysis.c.
3017 (cgraph_estimate_time_after_inlining): Rename to
3018 estiamte_time_after_inlining; move to ipa-inline-analysis.c
3019 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
3020 to estimate_edge_growth.
3021 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
3022 rename to estimate_size_after_inlining.
3023 (cgraph_mark_inline_edge): Update for new naming convention.
3024 (cgraph_check_inline_limits): Likewise.
3025 (cgraph_edge_badness): Likewise.
3026 (cgraph_decide_recursive_inlining): Likewise.
3027 (cgraph_decide_inlining_of_small_functions): Likewise.
3028 (cgraph_decide_inlining_incrementally): Likewise.
3029 (cgraph_estimate_growth): Rename to estimate_growth; move to
3030 ipa-inline-analysis.c.
3031 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
3032 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
3033 (compute_inline_parameters): Likewise.
3034 (compute_inline_parameters_for_current): Likewise.
3035 (pass_inline_parameters): Likewise.
3036 (inline_indirect_intraprocedural_analysis): Likewise.
3037 (analyze_function): Rename to inline_analyze_function; likewise.
3038 (add_new_function): Move to ipa-inline-analysis.c.
3039 (inline_generate_summary): Likewise.
3040 (inline_read_summary): Likewise.
3041 (inline_write_summary): Likewise.
3042 * Makefile.in (ipa-inline-analysis.c): New file.
3044 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3046 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
3047 * configure: Regenerate.
3049 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3051 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
3052 instead of tree_common.
3053 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
3055 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
3056 TS_TYPED rather than TS_COMMON.
3057 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
3059 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
3062 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
3063 r20 around calls of __tablejump_elpm__
3065 2011-04-13 Jakub Jelinek <jakub@redhat.com>
3068 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
3070 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
3072 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
3074 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
3075 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
3076 (cfi_vec): New typedef.
3077 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
3078 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
3079 (cie_cfi_vec): New static variable.
3080 (cie_cfi_head): Delete.
3081 (add_cfi): Accept a cfi_vec * as first argument. All callers and
3082 declaration changed. Use vector rather than list operations.
3083 (new_cfi): Don't initialize the dw_cfi_next field.
3084 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
3085 rather than list operations.
3086 (lookup_cfa): Use vector rather than list operations.
3087 (output_cfis): New argument upto. Accept a cfi_vec rather than
3088 a dw_cfi_ref list head as argument. All callers changed.
3089 Iterate over the vector using upto as a maximum index.
3090 (output_all_cfis): New static function.
3091 (output_fde): Use vector rather than list operations. Use the
3092 new upto argument for output_cfis rather than manipulating a
3094 (dwarf2out_begin_prologue): Change initializations to match
3096 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
3097 from the vector length rather than searching for the end of a list.
3098 Use output_all_cfis.
3099 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
3101 2011-04-13 Nick Clifton <nickc@redhat.com>
3103 * config/rx/rx.md (movmemsi): Do not use this pattern when
3104 volatile pointers are involved.
3106 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3108 * config/i386/sse.md (pinsrbits): Remove.
3109 (sse2_packsswb): Merge with *avx_packsswb.
3110 (sse2_packssdw): Merge with *avx_packssdw.
3111 (sse2_packuswb): Merge with *avx_packuswb.
3112 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
3113 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
3114 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
3115 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
3116 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
3117 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
3118 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
3119 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
3120 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
3121 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
3122 (sse2_loadld): Merge with *avx_loadld.
3123 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
3124 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
3125 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
3126 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
3127 (vec_concatv2di): Merge with *vec_concatv2di_avx.
3129 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3131 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
3133 * print-tree.c (print_node): Likewise.
3134 * tree-inline.c (copy_tree_r): Likewise.
3135 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
3136 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
3137 instead of TS_COMMON.
3138 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
3139 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
3140 (copy_node_stat): Zero TREE_CHAIN only if necessary.
3141 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
3142 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
3144 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
3146 (TREE_CHAIN): Check for a TS_COMMON structure.
3147 (TREE_TYPE): Check for a TS_TYPED structure.
3149 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
3151 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3152 cgraph_get_create_node instead of cgraph_node.
3154 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3156 * c-parser.c (c_parser_initelt): Updated call to
3157 objc_build_message_expr.
3158 (c_parser_postfix_expression): Likewise.
3160 2011-04-12 Kai Tietz <ktietz@redhat.com>
3162 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
3163 MASK_MS_BITFIELD_LAYOUT bit.
3165 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3167 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
3168 assert it is always true.
3169 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
3172 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3174 * c-parser.c (c_lex_one_token): Rewritten conditional used when
3175 compiling Objective-C to be more efficient.
3177 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
3179 * opts-common.c (decode_cmdline_options_to_array): Remove variable
3182 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3184 * recog.h, genoutput.c, optabs.c: Revert last patch.
3186 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3189 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
3191 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3193 * recog.h (insn_operand_data): Add an "allows_mem" field.
3194 * genoutput.c (output_operand_data): Initialize it.
3195 * optabs.c (maybe_legitimize_operand_same_code): New function.
3196 (maybe_legitimize_operand): Use it when matching the original
3199 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3201 * genpreds.c (process_define_predicate): Move most processing
3202 to gensupport.c. Continue to validate the expression.
3203 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
3204 (process_define_predicate): Move processing to gensupport.c.
3205 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
3206 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
3207 (compute_predicate_codes): Moved from genrecog.c. Add lineno
3209 (valid_predicate_name_p): New function, split out from old
3210 genpreds.c:process_define_predicate.
3211 (process_define_predicate): New function, combining code from
3212 old genpreds.c and genrecog.c functions.
3213 (process_rtx): Call it for DEFINE_PREDICATE and
3214 DEFINE_SPECIAL_PREDICATE.
3216 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3218 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
3219 size of a '%A' memory reference.
3220 (T_DREG, T_QREG): New neon_builtin_type_bits.
3221 (arm_init_neon_builtins): Assert that the load and store operands
3222 are neon_struct_operands.
3223 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
3224 (NEON_ARG_MEMORY): New builtin_arg.
3225 (neon_dereference_pointer): New function.
3226 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
3227 Handle NEON_ARG_MEMORY.
3228 (arm_expand_neon_builtin): Update after above interface changes.
3229 Use NEON_ARG_MEMORY for loads and stores.
3230 * config/arm/predicates.md (neon_struct_operand): New predicate.
3231 * config/arm/iterators.md (V_two_elem): Tweak formatting.
3232 (V_three_elem): Use BLKmode for accesses that have no associated mode.
3233 (V_four_elem): Tweak formatting.
3234 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
3235 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
3236 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
3237 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
3238 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
3239 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
3240 (neon_vst4<mode>): Replace pointer operand with a memory operand.
3241 Use %A in the output template.
3242 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
3243 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
3244 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
3245 the width of the memory access. Remove post-increment.
3246 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
3248 2011-04-12 Nick Clifton <nickc@redhat.com>
3250 * config/v850/v850.c (expand_prologue): Do not use the CALLT
3251 instruction for interrupt handlers if the target is the basic V850
3253 (expand_epilogue): Likewise.
3255 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3257 PR rtl-optimization/48549
3258 * combine.c (propagate_for_debug): Also stop after BB_END of
3259 this_basic_block. Process LAST and just stop processing after it.
3260 (combine_instructions): If last_combined_insn has been deleted,
3261 set last_combined_insn to its PREV_INSN.
3263 2011-04-12 Richard Guenther <rguenther@suse.de>
3265 PR tree-optimization/46076
3266 * gimple.h (struct gimple_statement_call): Add fntype field.
3267 (gimple_call_fntype): Adjust.
3268 (gimple_call_set_fntype): New function.
3269 * gimple.c (gimple_build_call_1): Set the call function type.
3270 * gimplify.c (gimplify_call_expr): Preserve the function
3271 type the frontend used for the call.
3272 (gimplify_modify_expr): Likewise.
3273 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
3275 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
3277 * tree-ssa.c (useless_type_conversion_p): Function pointer
3278 conversions are useless.
3280 2011-04-12 Martin Jambor <mjambor@suse.cz>
3282 * cgraph.h (cgraph_node): Remove function declaration.
3283 (cgraph_create_node): Declare.
3284 (cgraph_get_create_node): Likewise.
3285 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
3286 Updated all callers.
3287 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
3288 the decl does not already exist. Call cgraph_get_create_node instead
3290 (cgraph_get_create_node): New function.
3291 (cgraph_same_body_alias): Update comment.
3292 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
3293 assert it does not return NULL.
3294 (cgraph_update_edges_for_call_stmt): Likewise.
3295 (cgraph_clone_edge): Likewise.
3296 (cgraph_create_virtual_clone): Likewise.
3297 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
3298 instead of cgraph_node.
3299 (cgraph_add_new_function): Call cgraph_create_node or
3300 cgraph_get_create_node instead of cgraph_node.
3301 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
3302 instead of cgraph_node.
3303 (record_eh_tables): Likewise.
3304 (mark_address): Likewise.
3305 (mark_load): Likewise.
3306 (build_cgraph_edges): Call cgraph_get_create_node instead
3308 (rebuild_cgraph_edges): Likewise.
3309 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
3310 instead of cgraph_node.
3311 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
3313 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
3314 cgraph_create_node instead of cgraph_node.
3315 * c-decl.c (finish_function): Call cgraph_get_create_node instead
3317 * lto-cgraph.c (input_node): Likewise.
3318 * lto-streamer-in.c (input_function): Likewise.
3319 * varasm.c (mark_decl_referenced): Likewise.
3320 (assemble_alias): Likewise.
3322 2011-04-12 Martin Jambor <mjambor@suse.cz>
3324 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
3325 instead of cgraph_node and assert it does not return NULL.
3326 * lto-streamer-in.c (lto_read_body): Likewise.
3327 * omp-low.c (new_omp_context): Likewise.
3328 (create_task_copyfn): Likewise.
3329 * tree-emutls.c (lower_emutls_function_body): Likewise.
3330 * matrix-reorg.c (transform_allocation_sites): Likewise.
3332 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3335 * c-typeck.c (build_asm_expr): Error out on attempts to use
3336 void type outputs or inputs for constraints that allow reg or
3339 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
3340 Richard Earnshaw <rearnsha@arm.com>
3343 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
3344 to use sign-magnitude offsets. Reject unsupported unaligned
3345 cases. Add detailed description in comments.
3346 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
3347 condition from TARGET_32BIT to TARGET_ARM.
3349 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
3351 * tree.h (struct typed_tree): New.
3352 (struct tree_common): Include it instead of tree_base.
3353 (TREE_TYPE): Update for new location of type field.
3354 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
3355 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
3356 (union tree_node): Add typed field.
3357 * treestruct.def (TS_TYPED): New.
3358 * lto-streamer.c (check_handled_ts_structures): Handle it.
3359 * tree.c (MARK_TS_TYPED): New macro.
3360 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
3362 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
3364 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
3365 (force_nonfallthru): Do not alter the loop nest if no basic block
3368 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
3370 * config/i386/sse.md (VI): New mode iterator.
3372 (AVX256MODEI): Ditto.
3373 (AVXMODEF4P): Ditto.
3374 (avxvecpsmode): Ditto.
3375 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
3376 (sse2_andnot<mode>3): New expander.
3377 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
3378 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
3379 (<any_logic:code><mode>3): Use VI mode iterator.
3380 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
3381 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
3382 (*andnottf3): Handle AVX three-operand constraints.
3383 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
3385 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3386 Robert Millan <rmh@gnu.org>
3388 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
3389 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
3390 GNU_USER_DYNAMIC_LINKER64): Define.
3391 (REG_NAME): Don't undefine.
3392 (MD_UNWIND_SUPPORT): Undefine.
3393 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
3394 (REG_NAME): Don't undefine.
3395 (MD_UNWIND_SUPPORT): Undefine.
3396 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
3398 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3400 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
3401 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
3403 2011-04-11 Xinliang David Li <davidxl@google.com>
3405 * value-profile.c (check_ic_target): New function.
3406 (gimple_ic_transform): Sanity check indirect call target.
3407 * gimple-low.c (gimple_check_call_args): Interface change.
3408 (gimple_check_call_matching_types): New function.
3409 * tree-inline.c (tree_can_inline_p): Call new function.
3411 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
3413 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
3414 tree-pretty-print.h & realmpfr.h.
3416 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
3419 * ira.c (setup_pressure_classes): Fix typo in loop condition.
3420 (setup_allocno_and_important_classes): Ditto.
3422 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3424 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
3425 GNU_USER_DYNAMIC_LINKER.
3426 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
3427 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3428 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
3429 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3430 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3431 GNU_USER_TARGET_OS_CPP_BUILTINS.
3432 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
3433 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3434 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3435 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3436 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
3437 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3438 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3439 GNU_USER_TARGET_OS_CPP_BUILTINS.
3440 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3441 GNU_USER_DYNAMIC_LINKER.
3442 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3443 GNU_USER_TARGET_OS_CPP_BUILTINS.
3444 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
3445 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3446 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
3447 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3448 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
3449 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
3450 GNU_USER_DYNAMIC_LINKER64): Remove.
3451 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
3452 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3453 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3454 GNU_USER_DYNAMIC_LINKER.
3455 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3456 GNU_USER_TARGET_OS_CPP_BUILTINS.
3457 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3458 GNU_USER_TARGET_OS_CPP_BUILTINS.
3459 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
3460 to GNU_USER_TARGET_OS_CPP_BUILTINS.
3461 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3462 GNU_USER_TARGET_OS_CPP_BUILTINS.
3463 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
3464 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
3465 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
3466 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
3467 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3468 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3469 GNU_USER_DYNAMIC_LINKER.
3470 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3471 GNU_USER_TARGET_OS_CPP_BUILTINS.
3472 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
3473 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3474 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3475 GNU_USER_DYNAMIC_LINKER.
3476 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3477 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3478 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
3479 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3480 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3481 GNU_USER_DYNAMIC_LINKER.
3482 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
3483 GNU_USER_DYNAMIC_LINKERN32.
3484 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
3485 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
3486 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
3487 GNU_USER_DYNAMIC_LINKER32.
3488 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
3489 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3490 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3491 GNU_USER_DYNAMIC_LINKER.
3492 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3493 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3494 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
3495 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3496 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3497 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
3498 GNU_USER_DYNAMIC_LINKER32.
3499 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
3500 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
3501 GNU_USER_DYNAMIC_LINKER.
3502 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
3503 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3504 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
3505 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
3506 GNU_USER_DYNAMIC_LINKER64.
3507 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
3508 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3509 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3510 GNU_USER_DYNAMIC_LINKER.
3511 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
3512 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3513 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3514 GNU_USER_DYNAMIC_LINKER.
3515 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
3516 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3517 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
3518 GNU_USER_DYNAMIC_LINKER32.
3519 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
3520 GNU_USER_DYNAMIC_LINKER64.
3521 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
3522 GNU_USER_DYNAMIC_LINKER64.
3523 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
3524 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3525 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
3526 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3527 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3529 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3531 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
3532 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
3533 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
3534 GNU_USER_DYNAMIC_LINKER.
3535 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
3536 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
3537 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
3538 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
3539 GNU_USER_DYNAMIC_LINKER64.
3540 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
3541 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
3542 GNU_USER_LINK_EMULATION.
3543 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
3544 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
3545 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
3546 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
3547 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
3548 CPP_SPEC, CC1_SPEC): Remove.
3549 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
3550 (GNU_USER_DYNAMIC_LINKER): Define.
3551 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
3552 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
3553 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
3554 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
3555 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
3556 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
3557 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
3558 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
3559 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
3560 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
3561 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
3562 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
3563 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
3564 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
3565 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
3566 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
3567 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3568 GNU_USER_DYNAMIC_LINKER.
3569 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3570 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
3571 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3572 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
3573 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3574 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
3575 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
3576 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
3577 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
3578 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
3580 2011-04-11 Kai Tietz <ktietz@redhat.com>
3584 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
3585 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
3587 (ix86_is_msabi_thiscall): Removed.
3588 (ix86_is_type_thiscall): Likewise.
3589 (ix86_get_callcvt): New function.
3590 (ix86_comp_type_attributes): Simplify check.
3591 (ix86_function_regparm): Use ix86_get_callcvt for calling
3592 convention attribute checks.
3593 (ix86_return_pops_args): Likewise.
3594 (ix86_static_chain): Likewise.
3595 (x86_this_parameter): Likewise.
3596 (x86_output_mi_thunk): Likewise.
3597 (ix86_function_type_abi): Optimize check for types without attributes.
3598 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
3599 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
3600 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
3602 (IX86_BASE_CALLCVT): Helper macro.
3603 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3604 Use ix86_get_callcvt for calling convention attribute checks and avoid
3605 symbol-decoration for stdcall in TARGET_RTD case.
3606 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
3608 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
3611 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
3613 * config/i386/sse.md (VI_128): New mode iterator.
3614 (VI12_128): Rename from SSEMODE12.
3615 (VI14_128): Rename from SSEMODE14.
3616 (VI124_128): New mode iterator.
3617 (VI24_128): Rename from SSEMODE248.
3618 (VI248_128): Rename from SSEMODE248.
3619 (SSEMODE124C8): Remove.
3620 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
3621 (*sse2_<plusminus_insn><mode>3): Merge with
3622 *avx_<plusminus_insn><mode>3.
3623 (*mulv8hi3): Merge with *avx_mulv8hi3.
3624 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
3625 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
3626 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
3627 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
3628 (ashr<mode>3): Merge with *avx_ashr<mode>3.
3629 (lshr<mode>3): Merge with *avx_lshr<mode>3.
3630 (ashl<mode>3): Merge with *avx_ashl<mode>3.
3631 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
3632 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
3633 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
3634 (*<smaxmin:code>v8hi3): Ditto.
3635 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
3636 (*<smaxmin:code>v16qi3): Ditto.
3637 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
3638 (*sse2_eq<mode>3): Ditto.
3639 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
3640 (*sse2_gt<mode>3): Ditto.
3641 (vcondv2di): Split out of vcond<mode>.
3642 (vconduv2di): Split out of vcondu<mode>.
3644 2011-04-11 Richard Guenther <rguenther@suse.de>
3646 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
3647 before calling tree_low_cst.
3649 2011-04-11 Richard Guenther <rguenther@suse.de>
3651 * stor-layout.c (layout_type): Compute all array index size operations
3652 in the original type.
3653 (initialize_sizetypes): Add comment.
3654 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
3656 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3658 * common.opt (Tbss=, Tdata=, Ttext=): New options.
3660 2011-04-11 Martin Jambor <mjambor@suse.cz>
3662 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
3663 of cgraph_node, handle NULL return value.
3664 (cgraph_global_info): Likewise.
3665 (cgraph_rtl_info): Likewise.
3666 * tree-inline.c (estimate_num_insns): Likewise.
3667 * gimplify.c (unshare_body): Likewise.
3668 (unvisit_body): Likewise.
3669 (gimplify_body): Likewise.
3670 * predict.c (optimize_function_for_size_p): Likewise.
3671 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
3672 (call_may_clobber_ref_p_1): Likewise.
3673 * varasm.c (function_section_1): Likewise.
3674 (assemble_start_function): Likewise.
3676 2011-04-11 Martin Jambor <mjambor@suse.cz>
3678 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
3680 * final.c (rest_of_clean_state): Likewise.
3681 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
3682 * passes.c (pass_init_dump_file): Likewise.
3683 (execute_all_ipa_transforms): Likewise.
3684 (function_called_by_processed_nodes_p): Likewise.
3685 * predict.c (maybe_hot_frequency_p): Likewise.
3686 (probably_never_executed_bb_p): Likewise.
3687 (compute_function_frequency): Likewise.
3688 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
3689 (unnest_nesting_tree_1): Likewise.
3690 (lower_nested_functions): Likewise.
3691 * tree-optimize.c (execute_fixup_cfg): Likewise.
3692 (tree_rest_of_compilation): Likewise.
3693 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
3694 * tree-sra.c (ipa_early_sra): Likewise.
3695 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
3696 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
3697 * ipa.c (record_cdtor_fn): Likewise.
3698 * ipa-inline.c (cgraph_early_inlining): Likewise.
3699 (compute_inline_parameters_for_current): Likewise.
3700 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
3701 * ipa-pure-const.c (local_pure_const): Likewise.
3702 * ipa-split.c (split_function): Likewise.
3703 (execute_split_functions): Likewise.
3704 * cgraphbuild.c (build_cgraph_edges): Likewise.
3705 (rebuild_cgraph_edges): Likewise.
3706 (cgraph_rebuild_references): Likewise.
3707 (remove_cgraph_callee_edges): Likewise.
3708 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
3709 (verify_cgraph_node): Likewise.
3710 (cgraph_analyze_functions): Likewise.
3711 (cgraph_preserve_function_body_p): Likewise.
3712 (save_inline_function_body): Likewise.
3713 (save_inline_function_body): Likewise.
3714 * tree-inline.c (copy_bb): Likewise.
3715 (optimize_inline_calls): Likewise.
3717 2011-04-11 Martin Jambor <mjambor@suse.cz>
3719 PR tree-optimization/48195
3720 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
3721 ipa_check_create_edge_args.
3722 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
3723 ipa_check_create_edge_args.
3724 * ipa-inline.c (inline_generate_summary): Do not call
3725 ipa_check_create_node_params and ipa_check_create_edge_args.
3726 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
3727 ipa_check_create_edge_args.
3729 2011-04-09 Anatoly Sokolov <aesok@post.ru>
3731 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
3733 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3734 * function.c (record_hard_reg_sets): Likewise.
3735 * ira.c (compute_regs_asm_clobbered): Likewise.
3736 * sched-deps.c (sched_analyze_1): Likewise.
3737 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
3739 2011-04-09 Xinliang David Li <davidxl@google.com>
3741 PR tree-optimization/PR48484
3742 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
3743 has_valid_pred lazily
3745 2011-04-09 Duncan Sands <baldrick@free.fr>
3747 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
3749 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
3751 * combine.c (combine_validate_cost): Adjust comments. Set registered
3752 cost of I0 to zero at the end, if any.
3754 2011-04-08 Xinliang David Li <davidxl@google.com>
3756 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
3757 to insane profile data.
3759 2011-04-08 Xinliang David Li <davidxl@google.com>
3761 * ipa-cp.c (ipcp_update_profiling): Correct
3762 negative scale factor due to insane profile data.
3764 2011-04-08 Xinliang David Li <davidxl@google.com>
3766 * final.c (dump_basic_block_info): New function.
3767 (final): Dump basic block.
3768 (final_scan_insn): Remove old dump.
3770 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
3773 * config.gcc (i386-*-freebsd): Disable unwind table generation for
3776 2011-04-08 Michael Matz <matz@suse.de>
3779 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
3781 (rebuild_jump_labels): Call rebuild_jump_labels_1.
3782 * rtl.h (rebuild_jump_labels_chain): Declare.
3783 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
3784 insns inserted on edges.
3786 2011-04-08 Joseph Myers <joseph@codesourcery.com>
3788 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
3789 * config/arm/arm-arches.def: New.
3790 * config/arm/arm-opts.h: New.
3791 * config/arm/genopt.sh: New.
3792 * config/arm/arm-tables.opt: New (generated).
3793 * config/arm/arm.c (arm_handle_option, arm_target_help,
3794 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
3795 (all_architectures): Get most table contents from arm-arches.def.
3796 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
3797 arm_selected_tune here.
3798 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
3799 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
3800 (march=, mcpu=, mtune=): Use Enum and Var.
3801 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
3802 (arm.o): Update dependencies.
3804 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
3806 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
3808 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
3809 (write_typed_alloc_defns): Likewise.
3810 (main): Calls write_typed_alloc_defns with output_header.
3812 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
3815 * ira-color.c (setup_profitable_hard_regs): Add comments.
3816 Don't take prohibited hard regs into account.
3817 (setup_conflict_profitable_regs): Rename to
3818 get_conflict_profitable_regs.
3819 (check_hard_reg_p): Check prohibited hard regs.
3821 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
3823 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
3824 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
3825 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
3827 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3830 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
3831 move from floating point to shift amount register.
3832 (emit_move_sequence): Remove secondary reload support for floating
3833 point to shift amount amount register copies.
3834 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
3835 amount register copies.
3836 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
3837 register, return false if mode isn't a scalar integer mode.
3838 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
3840 2011-04-08 Richard Guenther <rguenther@suse.de>
3842 * gimple.c (gimple_call_flags): Remove kludge.
3844 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
3846 * sel-sched.c (sel_region_init): Move call to
3847 sel_setup_region_sched_flags after setup_current_loop_nest.
3849 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
3851 PR rtl-optimization/48272
3852 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
3853 init_insn_reg_pressure_info. Adjust a caller.
3854 * sched-int.h (init_insn_reg_pressure_info): Declare.
3855 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
3856 when sched-pressure is enabled.
3858 2011-04-08 Richard Guenther <rguenther@suse.de>
3860 * gimple.c (gimple_set_modified): Do not queue calls to
3861 MODIFIED_NORETURN_CALLS here ...
3862 * tree-ssa-operands.c (update_stmt_operands): ... but here.
3864 2011-04-08 Richard Guenther <rguenther@suse.de>
3867 * toplev.c (lang_dependent_init): Do not open asm_out_file
3868 in WPA mode, nor perform debug machinery initialization.
3869 (finalize): Do not unlink asm_out_file in WPA mode.
3871 2011-04-08 Richard Guenther <rguenther@suse.de>
3873 * gimple.h (gimple_call_fntype): New function.
3874 (gimple_call_return_type): Use it.
3875 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
3876 * gimple-low.c (gimple_check_call_args): Likewise.
3877 * gimple.c (gimple_call_flags): Likewise.
3878 (gimple_call_arg_flags): Likewise.
3879 (gimple_call_return_flags): Likewise.
3880 * tree-cfg.c (verify_gimple_call): Likewise.
3881 (do_warn_unused_result): Likewise.
3882 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
3883 * value-prof.c (gimple_ic_transform): Fix fndecl check.
3885 2011-04-08 Dmitry Melnik <dm@ispras.ru>
3887 PR rtl-optimization/48235
3888 * sel-sched.c (code_motion_process_successors): Recompute the last
3889 insn in basic block if control flow changed.
3890 (code_motion_path_driver): Ditto. Recompute the first insn as well.
3891 Update condition for ilist_remove.
3893 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
3895 PR rtl-optimization/48302
3896 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
3897 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
3898 it to record added preheader blocks.
3899 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
3900 on to sel_add_loop_preheaders.
3901 (sel_region_init): Move call to setup_current_loop_nest after
3904 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
3907 * cfgloop.h (loop_has_exit_edges): New helper.
3908 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
3910 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
3911 that have no exit edges.
3913 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
3915 PR rtl-optimization/48442
3916 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
3917 all callers. Adjust assert.
3919 2011-04-08 Jakub Jelinek <jakub@redhat.com>
3921 PR tree-optimization/48377
3922 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
3923 is_packed to true even for types with smaller TYPE_ALIGN than
3926 2011-04-08 Richard Guenther <rguenther@suse.de>
3929 * doc/tm.texi: Re-generate.
3931 2011-04-08 Wei Guozhi <carrot@google.com>
3934 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
3935 * config/arm/arm.c (arm_attr_length_push_multi): New function.
3936 * config/arm/arm.md (*push_multi): Change the length computation to
3939 2011-04-08 Anatoly Sokolov <aesok@post.ru>
3941 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
3942 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
3943 * doc/tm.texi: Regenerate.
3944 * system.h (ASM_OUTPUT_BSS): Poison.
3945 * varasm.c (asm_output_bss): Remove function.
3946 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
3948 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
3949 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
3950 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
3951 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
3953 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
3955 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
3957 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3959 2011-04-07 Joseph Myers <joseph@codesourcery.com>
3961 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
3964 2011-04-07 Joseph Myers <joseph@codesourcery.com>
3966 * config/m68k/m68k.c (m68k_handle_option): Don't handle
3967 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
3968 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
3970 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
3971 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
3972 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
3973 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
3974 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
3975 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
3976 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
3977 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
3978 options. Don't map other m68k options manually. Don't handle
3979 old-style options as canonical.
3980 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
3981 * doc/install.texi (m68k-*-*): Document binutils version requirement.
3983 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
3985 * basic-block.h (force_nonfallthru): Move to...
3986 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
3987 (force_nonfallthru): ...here.
3988 * cfghooks.c (force_nonfallthru): New function.
3989 * cfgrtl.c (force_nonfallthru): Rename into...
3990 (rtl_force_nonfallthru): ...this.
3991 (commit_one_edge_insertion): Do not set AUX field.
3992 (commit_edge_insertions): Do not discover new basic blocks.
3993 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
3994 (cfg_layout_rtl_cfg_hooks): Likewise.
3995 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
3996 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
3997 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
3999 2011-04-07 Anatoly Sokolov <aesok@post.ru>
4001 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4004 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
4006 * config/i386/sse.md: Update copyright year.
4007 (avxcvtvecmode): Remove.
4008 (sse_movhlps): Merge with *avx_movhlps.
4009 (sse_movlhps): Merge with *avx_movlhps.
4010 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
4011 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
4012 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
4013 (sse_loadhps): Merge with *avx_loadhps.
4014 (sse_storelps): Merge with *avx_storelps.
4015 (sse_loadlps): Merge with *avx_loadlps.
4016 (sse_movss): Merge with *avx_movss.
4017 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
4018 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
4019 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
4020 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
4021 (vec_set<mode>_0): Ditto.
4022 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
4023 (sse4_1_insertps): Merge with *avx_insertps.
4024 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
4025 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
4026 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
4027 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
4028 (sse2_storehpd): Merge with *avx_storehpd.
4029 (sse2_loadhpd): Merge with *avx_loadhpd.
4030 (sse2_loadlpd): Merge with *avx_loadlpd.
4031 (sse2_movsd): Merge with *avx_movsd.
4032 (*vec_concatv2df): Merge with *vec_concatv2df.
4034 2011-04-07 Jakub Jelinek <jakub@redhat.com>
4037 * combine.c (combine_instructions): Add last_combined_insn,
4038 update it if insn is after it, pass it to all try_combine calls.
4039 (try_combine): Add last_combined_insn parameter, pass it instead of
4040 i3 to propagate_for_debug.
4042 2011-04-07 Nick Clifton <nickc@redhat.com>
4044 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
4045 to handle MDR <-> data register transfers.
4046 (movhi_internal): Likewise.
4048 2011-04-07 Alan Modra <amodra@gmail.com>
4050 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
4051 previous stack info.
4053 2011-04-07 Tom de Vries <tom@codesourcery.com>
4056 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
4057 flow_find_cross_jump. Swap variables to implement backward replacement.
4058 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
4060 2011-04-07 Tom de Vries <tom@codesourcery.com>
4063 * cfgcleanup.c (walk_to_nondebug_insn): New function.
4064 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
4066 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
4067 src1 or src2. Redirect edges to the last basic block. Update
4068 frequency and count on multiple basic blocks in case of fallthru.
4070 2011-04-07 Tom de Vries <tom@codesourcery.com>
4073 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
4075 (old_insns_match_p): Change return type. Replace return false/true
4076 with return dir_none/dir_both. Use can_replace_by.
4077 (flow_find_cross_jump): Add dir_p parameter. Init replacement
4078 direction from dir_p. Register replacement direction in dir, last_dir
4079 and afterlast_dir. Handle new return type of old_insns_match_p using
4080 merge_dir. Return replacement direction in dir_p.
4081 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
4082 return type of old_insns_match_p.
4083 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
4084 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
4085 flow_find_cross_jump.
4086 * basic-block.h (enum replace_direction): New type.
4087 (flow_find_cross_jump): Add parameter to declaration.
4089 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
4091 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
4092 (AVXMODEDCVTPS2DQ): Ditto.
4093 (VEC_FLOAT_MODE): Ditto.
4094 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
4095 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4096 (<any_logic:code><mode>3): Use VF mode iterator.
4097 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
4098 Use VF mode iterator.
4099 (copysign<mode>3): Use VF mode iterator.
4100 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
4101 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4102 (*<any_logic:code><MODEF:mode>3): Merge with
4103 *avx_<any_logic:code><MODEF:mode>3.
4104 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
4105 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
4106 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
4107 (avx_cvtdq2ps<avxmodesuffix>): Remove.
4108 (sse2_cvtdq2ps): Use %v modifier.
4109 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
4110 (avx_cvtps2dq<avxmodesuffix>): Remove.
4111 (sse2_cvtps2dq): Use %v modifier.
4112 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
4113 (avx_cvttps2dq<avxmodesuffix>): Remove.
4114 (sse2_cvttps2dq): Use %v modifier.
4115 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
4116 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
4117 (sse2_cvtsd2siq): Fix insn template.
4118 (sse2_cvtsd2siq_2): Ditto.
4119 (sse2_cvttsd2siq): Ditto.
4120 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
4121 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
4123 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4125 * gcov-io.c: Use GCC Runtime Library Exception.
4127 2011-04-06 Jakub Jelinek <jakub@redhat.com>
4130 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
4131 as base_reg whatever register reg has been eliminated to, instead
4132 of hardcoding STACK_POINTER_REGNUM.
4134 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4136 * doc/tm.texi.in: Document C target hooks as separate from general
4138 * doc/tm.texi: Regenerate.
4139 * genhooks.c (struct hook_desc): Add docname field.
4140 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
4142 (hook_array): Include c-target.def.
4143 (emit_documentation): Use docname field in output.
4144 (emit_init_macros): Take docname argument. Only emit definitions
4145 for hooks matching docname.
4146 (main): Expect additional arguments in all cases. Pass argument
4147 to emit_init_macros.
4148 * target.def: Move initial macro definitions and comments to
4149 target-hooks-macros.h.
4150 (gcc_targetcm): Move to c-family/c-target.def.
4151 * target.h (targetcm): Move declaration to c-family/c-target.h.
4152 * targhooks.c (default_handle_c_option): Move to
4154 * targhooks.h (default_handle_c_option): Move declaration to
4155 c-family/c-common.h.
4156 * target-hooks-macros.h: New file.
4157 * config.gcc (target_has_targetcm): Define and use to add to
4158 c_target_objs and cxx_target_objs.
4159 * config/default-c.c: New file.
4160 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
4161 of target.h and target-def.h.
4162 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
4163 (darwin_objc_construct_string, darwin_cfstring_ref_p,
4164 darwin_check_cfstring_format_arg): Make static.
4165 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4166 TARGET_STRING_OBJECT_REF_TYPE_P,
4167 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
4168 * config/darwin-protos.h (darwin_objc_construct_string,
4169 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
4171 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4172 TARGET_STRING_OBJECT_REF_TYPE_P,
4173 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
4174 * config/t-darwin (darwin-c.o): Update dependencies.
4175 * system.h (TARGET_HAS_TARGETCM): Poison.
4176 * Makefile.in (TARGET_H): Update.
4177 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
4178 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
4179 (default-c.o): New target.
4180 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
4181 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
4182 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
4184 (build/genhooks.o): Update dependencies.
4186 2011-04-06 Richard Guenther <rguenther@suse.de>
4188 * ipa-inline.c (enum inlining_mode): Remove.
4189 (cgraph_flatten): Use some other token.
4190 (cgraph_edge_early_inlinable_p): New function, split out from ...
4191 (cgraph_perform_always_inlining): New function, split out from ...
4192 (cgraph_decide_inlining_incrementally): ... here.
4193 (cgraph_mark_inline_edge): Adjust.
4194 (cgraph_early_inlining): Re-structure.
4195 (pass_early_inline): Require SSA form.
4197 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
4198 Julian Brown <julian@codesourcery.com>
4199 Mark Shinwell <shinwell@codesourcery.com>
4201 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
4202 LO_REGS only for Thumb-1.
4203 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
4204 be used in short instructions when optimising for size on Thumb-2.
4206 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
4208 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
4209 associated with user returns to be preserved.
4211 2011-04-06 Tristan Gingold <gingold@adacore.com>
4213 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
4214 symbol_queue_size, DBXOUT_DECR_NESTING,
4215 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
4216 if XCOFF_DEBUGGING_INFO.
4218 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
4220 * config/i386/i386.md (attribute isa): New.
4221 (attribute enabled): New.
4222 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
4223 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
4224 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
4225 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
4226 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
4227 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4228 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
4229 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
4231 * config/i386/sse.md (VF): New mode iterator.
4235 (SSEMODEF4): Remove.
4236 (attribute sse): Handle V8SF and V4DF modes.
4237 (<absneg:code><mode>2): Use VF mode iterator.
4238 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
4240 (<plusminus_insn><mode>3): Use VF mode iterator.
4241 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4242 Use VF mode iterator.
4243 (<sse>_vm<plusminus_insn><mode>3): Merge with
4244 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
4245 (mul<mode>3): Use VF mode iterator.
4246 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
4247 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
4249 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
4250 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
4251 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
4252 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
4254 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
4255 Use VF1 mode iterator.
4256 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
4257 (sqrt<VF2:mode>2): New expander.
4258 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
4259 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
4260 and sqrtv2df2. Use VF mode iterator.
4261 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
4263 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
4264 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
4265 Use VF1 mode iterator.
4266 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
4267 (<smaxmin:code><mode>3): Use VF mode iterator.
4268 (*<smaxmin:code><mode>3_finite): Merge with
4269 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
4270 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4271 (<sse>_vm<smaxmin:code><mode>2): Merge with
4272 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
4273 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
4275 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
4277 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
4278 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
4279 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
4280 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
4281 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
4283 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
4284 Use VF_128 mode iterator.
4285 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
4287 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
4288 VF_128 mode iterator.
4289 (vcond<mode>): Use VF mode iterator.
4290 * config/i386/predicates.md (sse_comparison_operator): Merge with
4291 avx_comparison_float_operator. Do not declare as special_predicate.
4292 * config/i386/i386.c (struct builtin_description): Update for renamed
4294 (ix86_expand_args_builtin): Ditto.
4295 (ix86_expand_sse_compare_mask): Ditto.
4297 2011-04-06 Richard Guenther <rguenther@suse.de>
4299 * tree-inline.c (estimate_num_insns): For calls simply account
4300 for all passed arguments and a used return value.
4302 2011-04-06 Richard Guenther <rguenther@suse.de>
4304 PR tree-optimization/47663
4305 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
4306 call_stmt_time fields.
4307 (cgraph_edge_inlinable_p): Declare.
4308 (cgraph_edge_recursive_p): New inline function.
4309 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
4310 (cgraph_clone_edge): Copy it.
4311 * ipa-inline.c (cgraph_estimate_edge_time): New function.
4312 Account for call stmt time.
4313 (cgraph_estimate_time_after_inlining): Take edge argument.
4314 (cgraph_estimate_edge_growth): Account call stmt size.
4315 (cgraph_estimate_size_after_inlining): Take edge argument.
4316 (cgraph_mark_inline_edge): Adjust.
4317 (cgraph_check_inline_limits): Likewise.
4318 (cgraph_recursive_inlining_p): Remove.
4319 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
4320 (cgraph_decide_recursive_inlining): Take edge argument and
4322 (cgraph_decide_inlining_of_small_functions): Do not avoid
4323 diags for recursive inlining here.
4324 (cgraph_flatten): Adjust.
4325 (cgraph_decide_inlining_incrementally): Likewise.
4326 (estimate_function_body_sizes): Remove call cost handling.
4327 (compute_inline_parameters): Initialize caller edge call costs.
4328 (cgraph_estimate_edge_growth): New function.
4329 (cgraph_estimate_growth): Use it.
4330 (cgraph_edge_badness): Likewise.
4331 (cgraph_check_inline_limits): Take an edge argument.
4332 (cgraph_decide_inlining_of_small_functions): Adjust.
4333 (cgraph_decide_inlining): Likewise.
4334 * tree-inline.c (estimate_num_insns): Only account for call
4335 return value if it is used.
4336 (expand_call_inline): Avoid diagnostics on recursive inline
4338 * lto-cgraph.c (lto_output_edge): Output edge call costs.
4339 (input_edge): Input edge call costs.
4341 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4343 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
4345 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
4347 * doc/invoke.texi (Spec Files): Fix typo.
4349 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
4351 * profile.c (branch_prob): Move declaration of local variable. Remove
4352 obsolete ??? comment. Expand the location explicitly instead of using
4353 the LOCATION_FILE and LOCATION_LINE macros.
4355 2011-04-06 Wei Guozhi <carrot@google.com>
4358 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
4359 (arm_cond_branch): Likewise.
4360 (arm_cond_branch_reversed): Likewise.
4361 (arm_jump): Likewise.
4362 (push_multi): Likewise.
4363 * config/arm/constraints.md (Py): New constraint.
4365 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4368 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
4370 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
4371 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
4372 #ifdef DBX_DEBUGGING_INFO.
4374 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
4377 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
4378 if old and new states differ.
4380 2011-04-05 Joseph Myers <joseph@codesourcery.com>
4382 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
4383 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
4384 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4385 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
4386 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
4388 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
4389 ColdFire options to -mcpu= options.
4391 2011-04-05 Jeff Law <law@redhat.com>
4393 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
4394 check if BB is a successor of LOOP->header and return
4395 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
4397 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
4399 * cprop.c (struct reg_use): Remove.
4400 (reg_use_table): Make an array of RTX.
4401 (find_used_regs, constprop_register, local_cprop_pass,
4402 bypass_block): Simplify users of reg_use_table.
4403 (cprop_insn): Likewise. Iterate if copy propagation succeeded
4404 on one of the uses found by find_used_regs.
4406 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4409 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
4412 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4414 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
4416 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
4418 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
4421 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
4423 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4425 * combine.c: Include obstack.h.
4426 (struct insn_link): Define.
4427 (uid_log_links): Adjust type.
4428 (FOR_EACH_LOG_LINK): New macro.
4429 (insn_link_obstack): Declare.
4430 (alloc_insn_link): Define.
4431 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
4432 type of link variables.
4433 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
4434 (try_combine, record_promoted_values, distribute_notes): Likewise.
4435 (distribute_links): Likewise. Tweak prototype.
4436 (clear_log_links): Delete.
4437 (adjust_for_new_dest): Call alloc_insn_link.
4438 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
4440 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4442 * gcse.c (modify_mem_list): Convert to an array of VECs.
4443 (canon_modify_mem_list, compute_transp): Tweak formatting.
4444 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
4445 (load_killed_in_block_p): Likewise.
4446 (record_last_mem_set_info): Likewise.
4447 (clear_modify_mem_tables): Likewise.
4449 2011-04-05 Tom de Vries <tom@codesourcery.com>
4452 * function.c (emit_use_return_register_into_block): Only define if
4455 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
4457 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
4459 2011-04-05 Joseph Myers <joseph@codesourcery.com>
4461 * config/rx/rx-opts.h: New.
4462 * config/rx/rx.c (rx_cpu_type): Remove.
4463 (rx_handle_option): Don't assert that global structures are in
4464 use. Access variables via opts pointer. Defer most handling of
4465 OPT_mint_register_. Use error_at.
4466 (rx_option_override): Handle deferred OPT_mint_register_ here.
4467 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
4468 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
4469 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
4470 (rx_cpu_types): New Enum and EnumValue entries.
4471 (mint-register=): Use Defer and use Var accordingly.
4473 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4475 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
4476 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
4477 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
4479 (debug_free_queue, debug_nesting, symbol_queue_index):
4481 * dbxout.c: ...to here. Make static.
4483 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4485 * gcse.c (modify_pair): Define. Define a VEC of it.
4486 (canon_modify_mem_list): Convert to an array of VECs.
4487 (free_insn_expr_list_list): Delete.
4488 (clear_modify_mem_tables): Call VEC_free instead.
4489 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
4490 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
4491 (canon_list_insert, compute_transp): Likewise.
4493 2011-04-05 Tom de Vries <tom@codesourcery.com>
4496 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
4499 2011-04-05 Tom de Vries <tom@codesourcery.com>
4502 * function.c (emit_use_return_register_into_block): New function.
4503 (thread_prologue_and_epilogue_insns): Use
4504 emit_use_return_register_into_block.
4506 2011-04-05 Tom de Vries <tom@codesourcery.com>
4509 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
4512 2011-04-05 Tom de Vries <tom@codesourcery.com>
4514 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
4516 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
4518 * config/arm/arm.md (define_constants for unspec): Replace with
4520 (define_constants for unspecv): Replace with define_c_enum.
4521 * config/arm/neon.md (define_constants for unspec): Replace with
4524 2011-04-04 Richard Henderson <rth@redhat.com>
4527 * dwarf2out.c (output_line_info): Always emit line info from
4528 at least one section.
4529 (dwarf2out_init): Create text_section_line_info here ...
4530 (set_cur_line_info_table): ... not here.
4532 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
4535 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
4538 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
4540 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
4542 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
4543 (expr_equiv_p): Remove.
4544 (insert_set_in_table): Look at <dest, src> pair instead of expr.
4545 (hash_scan_set): Update call to insert_set_in_table.
4546 (dump_hash_table): Dump <dest, src> pair.
4547 (lookup_set): Simplify. Lookup <dest, src> pair.
4548 (compute_transp): Remove, fold heavily simplified code into...
4549 (compute_local_properties): ...here. Expect COMP and TRANSP
4551 (find_avail_set): Take set directly from struct expr.
4552 (find_bypass-set): Likewise.
4553 (bypass_block): Likewise.
4554 (cprop_insn): Likewise. Remove redundant INSN_P test.
4556 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
4557 checks on form of COND from find_implicit_sets to here.
4558 (find_implicit_sets): Cleanup control flow. Split critical edges
4559 if it exposes implicit sets. Allocate/resize implicit_sets as
4561 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
4562 changed something. Run df_analyze after find_implicit_sets if any
4563 edges were split. Do not allocate implicit_sets here.
4565 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
4566 (gcse_obstack): Renamed to cprop_obstack.
4567 (GNEW, GNEWVEC, GNEWVAR): Remove.
4569 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
4570 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
4571 (gcse_alloc): Likewise, and rename to cprop_alloc.
4572 (alloc_gcse_men, free_gcse_mem): Remove.
4573 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
4574 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
4575 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
4577 * cprop.c (oprs_not_set_p): Remove.
4578 (mark_set, mark_clobber): Remove.
4579 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
4580 (reg_not_set_p): New function.
4581 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
4582 (cprop_insn): Likewise.
4583 (cprop_jump): Use FOR_EACH_EDGE.
4585 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
4588 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
4589 (rank_for_schedule): Use scheduled_insns vector instead of
4590 last_scheduled_insn.
4591 (ok_for_early_queue_removal): Likewise.
4592 (queue_to_ready): Search forward in nonscheduled_insns_begin if
4594 (choose_ready): Likewise.
4595 (commit_schedule): Use VEC_iterate.
4596 (schedule_block): Initialize nonscheduled_insns_begin. If we have
4597 a dbg_cnt, use it and ensure the first insn is in the ready list.
4598 (haifa_sched_init): Allocate scheduled_insns.
4599 (sched_extend_ready_list): Don't allocate it; reserve space.
4600 (haifa_sched_finish): Free it.
4602 2011-04-04 Joseph Myers <joseph@codesourcery.com>
4604 * optc-gen.awk: Always remove type from Variable entry before
4605 recording in var_seen.
4607 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
4609 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
4610 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
4611 call to tidy_fallthru_edges.
4613 2011-04-04 Joseph Myers <joseph@codesourcery.com>
4615 * doc/options.texi (ToLower): Document.
4616 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
4617 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
4618 * opts.h (cl_option): Add cl_tolower field.
4619 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
4620 arguments with lowercase strings.
4621 * config/rx/rx.opt (mcpu=): Add ToLower.
4622 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
4625 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
4627 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
4629 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
4631 * config/vax/vax.c: Include reload.h.
4633 2011-04-04 Anatoly Sokolov <aesok@post.ru>
4635 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
4636 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
4637 (sparc_preferred_reload_class): New function.
4639 2011-04-04 Jakub Jelinek <jakub@redhat.com>
4642 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
4643 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
4645 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
4647 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
4648 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
4650 2011-04-03 Anatoly Sokolov <aesok@post.ru>
4652 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
4653 (ASM_OUTPUT_ALIGNED_BSS): Define.
4655 2011-04-03 Michael Matz <matz@suse.de>
4657 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
4658 and next_slot members.
4659 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
4660 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
4661 (lto_streamer_cache_append): Declare.
4662 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
4663 unsigned index, remove offset parameter, ensure that we append
4664 or update existing entries.
4665 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
4666 parameter, update next_slot for append.
4667 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
4669 (lto_streamer_cache_insert_at): Likewise.
4670 (lto_streamer_cache_append): New function.
4671 (lto_streamer_cache_lookup): Use unsigned index.
4672 (lto_streamer_cache_get): Likewise.
4673 (lto_record_common_node): Don't test tree_node_can_be_shared.
4674 (preload_common_node): Adjust call to lto_streamer_cache_insert.
4675 (lto_streamer_cache_delete): Don't free offsets member.
4676 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
4677 (lto_output_string_with_length): Use lto_output_data_stream.
4678 (lto_output_tree_header): Remove ix parameter, don't write it.
4679 (lto_output_builtin_tree): Likewise.
4680 (lto_write_tree): Adjust callers to above, don't track and write
4681 offset, write unsigned index.
4682 (output_unreferenced_globals): Don't emit all global vars.
4683 (write_global_references): Use unsigned indices.
4684 (lto_output_decl_state_refs): Likewise.
4685 (write_symbol): Likewise.
4686 * lto-streamer-in.c (lto_input_chain): Move earlier.
4687 (input_function): Use unsigned index.
4688 (input_alias_pairs): Don't read and then ignore all global vars.
4689 (lto_materialize_tree): Remove ix_p parameter, don't read index,
4690 don't pass it back, use lto_streamer_cache_append.
4691 (lto_register_var_decl_in_symtab): Use unsigned index.
4692 (lto_register_function_decl_in_symtab): Likewise.
4693 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
4695 (lto_get_builtin_tree): Don't read index, use
4696 lto_streamer_cache_append.
4697 (lto_read_tree): Adjust call to lto_materialize_tree.
4699 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
4700 don't use function calls in arguments to MIN.
4702 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
4705 * gimple.c (gimple_type_leader_entry): Mark deletable.
4707 2011-04-03 Alan Modra <amodra@gmail.com>
4709 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
4711 2011-04-03 Michael Matz <matz@suse.de>
4713 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
4715 * tree.h (tree_decl_non_common.vindex): Adjust comment.
4717 2011-04-03 Michael Matz <matz@suse.de>
4719 * cgraphbuild.c (record_reference): Canonicalize constructor values.
4720 * gimple-fold.c (canonicalize_constructor_val): Accept being called
4721 without function context.
4722 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
4723 current_function_decl and cfun.
4725 2011-04-03 Michael Matz <matz@suse.de>
4727 * tree.c (decl_init_priority_insert): Don't create entry for
4729 (decl_fini_priority_insert): Ditto.
4730 (fields_compatible_p, find_compatible_field): Remove.
4731 * tree.h (fields_compatible_p, find_compatible_field): Remove.
4732 * gimple.c (gimple_compare_field_offset): Adjust block comment.
4734 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
4736 * combine.c (try_combine): Remove useless local variable.
4738 2011-04-03 Richard Guenther <rguenther@suse.de>
4739 Ira Rosen <ira.rosen@linaro.org>
4741 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
4742 non-variable offsets and compare the remaining bases of the two
4743 accesses instead of looking for exact same data-ref.
4745 2011-04-02 Kai Tietz <ktietz@redhat.com>
4748 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
4750 * i386.c (ix86_is_msabi_thiscall): New helper function.
4751 (ix86_is_type_thiscall): New helper function.
4752 (ix86_comp_type_attributes): Handle thiscall for method-functions
4754 (init_cumulative_args): Likewise.
4755 (find_drap_reg): Likewise.
4756 (ix86_static_chain): Likewise.
4757 (x86_this_parameter): Likewise.
4758 (x86_output_mi_thunk): Likewise.
4760 2011-04-01 Olivier Hainque <hainque@adacore.com>
4761 Nicolas Setton <setton@adacore.com>
4762 Eric Botcazou <ebotcazou@adacore.com>
4764 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
4765 (add_gnat_descriptive_type_attribute): New function.
4766 (gen_array_type_die): Call it.
4767 (gen_enumeration_type_die): Likewise.
4768 (gen_struct_or_union_type_die): Likewise.
4769 (modified_type_die): Likewise.
4770 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
4771 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
4772 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
4774 2011-04-01 Jakub Jelinek <jakub@redhat.com>
4777 * dwarf2out.c (resolve_addr): Don't call force_decl_die
4778 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
4781 2011-03-17 Richard Guenther <rguenther@suse.de>
4784 * lto-cgraph.c (input_overwrite_node): Clear the abstract
4785 origin for decls in other ltrans units.
4786 (input_varpool_node): Likewise.
4788 2011-04-01 Jakub Jelinek <jakub@redhat.com>
4791 * expr.c (expand_assignment): Handle all possibilities
4792 if TO_RTX is CONCAT.
4793 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
4794 (store_split_bit_field): If SUBREG_REG (op0) or
4795 op0 itself has smaller mode than word, return it
4796 for offset 0 and const0_rtx for out-of-bounds stores.
4797 If word is const0_rtx, skip it.
4799 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
4801 * config/h8300/h8300.c (print_operand_address): Rename to...
4802 (h8300_print_operand_address): ...this. Make static. Adjust comments.
4803 Call h8300_print_operand and h8300_print_operand_address instead of
4804 print_operand and print_operand_address. Declare.
4805 (print_operand): Renake to...
4806 (h8300_print_operand): ...this. Make static. Adjust comments.
4807 Call h8300_print_operand instead of print_operand. Declare.
4808 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
4809 (h8300_register_move_cost): Likewise.
4810 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
4811 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
4812 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
4813 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
4814 * config/h8300/h8300-protos.h (print_operand): Delete.
4815 (print_operand_address): Delete.
4817 2011-04-01 Richard Henderson <rth@redhat.com>
4820 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
4821 in strict mode before dwarf4. Re-order tests to early out
4822 before switching sections.
4824 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
4826 * config/h8300/constraints.md: New file.
4827 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
4828 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
4829 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
4830 * config/h8300/predicates.md (bit_operand): Likewise.
4831 (incdec_operand): Use satisfies_constraint_M and
4832 satisfies_constraint_O. Don't use C code block.
4833 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
4834 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
4835 (compute_mov_length): Use satisfies_constraint_G.
4836 (fix_bit_operand): Use satisfies_constraint_U.
4837 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
4838 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
4839 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
4840 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
4841 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
4842 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
4843 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4844 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
4845 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
4846 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
4847 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
4848 (EXTRA_MEMORY_CONSTRAINT): Delete.
4850 2011-04-01 Andrew Pinski <pinskia@gmail.com>
4851 Michael Meissner <meissner@linux.vnet.ibm.com>
4854 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
4855 operands, as per the specifications.
4857 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
4858 (vec_extract_evenv4sf): Ditto.
4859 (vec_extract_evenv8hi): Ditto.
4860 (vec_extract_evenv16qi): Ditto.
4861 (vec_extract_oddv4si): Ditto.
4863 2011-03-31 Mark Wielaard <mjw@redhat.com>
4865 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
4866 high_pc attribute if the CU has no associated code. Only output
4867 DW_AT_entry_pc for CU if not generating strict dwarf and
4870 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
4872 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
4873 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
4875 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
4876 * final.c (final_start_function): Call the new function rather
4877 than using a NULL argument for dwarf2out_frame_debug.
4879 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
4880 that contains the prologue.
4882 * haifa-sched.c (queue_insn): New arg REASON. All callers
4883 changed. Print it in debugging output.
4885 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
4887 * sched-ebb.c (begin_schedule_ready): Remove second argument.
4888 Split most of the code into...
4889 (begin_move_insn): ... here. New function.
4890 (ebb_sched_info): Add a pointer to it.
4891 * haifa-sched.c (scheduled_insns): New static variable.
4892 (sched_extend_ready_list): Allocate it.
4893 (schedule_block): Use it to record the order of scheduled insns.
4894 Perform RTL changes to move insns only after all scheduling
4895 decisions have been made.
4896 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
4897 begin_move_insn field.
4898 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
4899 * sched-int.h (struct haifa_sched_info): Remove second argument
4900 from begin_schedule_ready hook. Add new member begin_move_insn.
4901 * sched-rgn.c (begin_schedule_ready): Remove second argument.
4902 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
4904 * haifa-sched.c (prune_ready_list): New function, broken out of
4906 (schedule_block): Use it.
4908 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4910 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
4912 2011-04-01 Kai Tietz <ktietz@redhat.com>
4914 * config.gcc (*-*-mingw*): Allow as option the
4915 posix threading model.
4916 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
4917 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
4919 (CPP_SPEC): Add pthread/no-pthread handling.
4920 (LIB_SPEC): Likewise.
4921 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
4922 (LIB_SPEC): Likewise.
4923 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
4924 flag to pass -pthread option for shared libgcc build.
4925 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
4926 for shared libgcc build.
4927 * config/i386/t-mingw-pthread: New file.
4928 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
4929 New define to enable use of library pthread by default.
4930 * config/i386/mingw.opt (pthread): New driver option.
4931 (no-pthread): New driver option.
4932 * config/i386/cygming.opt: Make sure trailing empty line is retained.
4933 * config/i386/mingw-w64.opt: Likewise.
4935 2011-04-01 Gary Funck <gary@intrepid.com>
4937 * c-decl.c (grokdeclarator): Fix formatting.
4939 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
4941 * expr.c (emit_block_move_via_movmem): Use n_generator_args
4942 instead of n_operands.
4943 (set_storage_via_setmem): Likewise.
4944 * optabs.c (maybe_gen_insn): Likewise.
4945 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
4946 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
4947 (mips_expand_builtin_direct): Likewise.
4948 * config/spu/spu.c (expand_builtin_args): Likewise.
4950 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
4952 * recog.h (insn_data_d): Add n_generator_args.
4953 * genoutput.c (data): Likewise.
4954 (output_insn_data): Print it.
4955 (max_opno, num_dups): Delete.
4956 (scan_operands): Just fill in "d->operand[...]".
4957 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
4959 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
4961 * gensupport.h (pattern_stats): New structure.
4962 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
4963 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
4964 (max_operand_1, max_operand_vec): Delete.
4965 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
4967 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
4969 * emit-rtl.c (emit_pattern_after_setloc): New function.
4970 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
4971 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
4972 (emit_pattern_after): New function.
4973 (emit_insn_after, emit_jump_insn_after): Call it.
4974 (emit_call_insn_after, emit_debug_insn_after): Likewise.
4975 (emit_pattern_before_setloc): New function.
4976 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
4977 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
4979 (emit_pattern_before): New function.
4980 (emit_insn_before, emit_jump_insn_before): Call it.
4981 (emit_call_insn_before, emit_debug_insn_before): Likewise.
4983 2011-03-31 Richard Henderson <rth@redhat.com>
4985 * dwarf2out.c (dw_separate_line_info_ref): Remove.
4986 (dw_separate_line_info_entry): Remove.
4987 (enum dw_line_info_opcode): New.
4988 (dw_line_info_entry): Use it.
4989 (dw_line_info_table, dw_line_info_table_p): New.
4990 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
4991 (line_info_table, line_info_label_num): Remove.
4992 (line_info_table_in_use): Remove.
4993 (separate_line_info_table): Remove.
4994 (separate_line_info_table_allocated): Remove.
4995 (separate_line_info_table_in_use): Remove.
4996 (LINE_INFO_TABLE_INCREMENT): Remove.
4997 (line_info_label_num): New.
4998 (cur_line_info_table): New.
4999 (text_section_line_info, cold_text_section_line_info): New.
5000 (separate_line_info): New.
5001 (SEPARATE_LINE_CODE_LABEL): Remove.
5002 (print_dwarf_line_table): Remove.
5003 (debug_dwarf): Don't dump it.
5004 (output_one_line_info_table): New.
5005 (output_line_info): Use it.
5006 (new_line_info_table): New.
5007 (set_cur_line_info_table): New.
5008 (dwarf2out_switch_text_section): Use it.
5009 (dwarf2out_begin_function): Likewise.
5010 (push_dw_line_info_entry): New.
5011 (dwarf2out_source_line): Rewrite for new line info tables.
5012 (dwarf2out_init): Remove dead initailizations.
5014 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5016 * opts.h (cl_option): Add comments to fields. Add bit-fields for
5018 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
5019 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
5020 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
5021 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
5022 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
5023 * opt-functions.awk (flag_init, switch_bit_fields): New.
5024 (switch_flags): Don't handle flags moved to bit-fields. Don't
5025 generate CL_MISSING_OK or CL_SAVE.
5026 * optc-gen.awk: Update to generate bit-field output as well as
5028 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
5029 bit-field instead of CL_REJECT_DRIVER flag.
5030 * opts-common.c (generate_canonical_option,
5031 decode_cmdline_option): Use bit-fields instead of CL_* flags.
5032 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
5033 instead of CL_REJECT_NEGATIVE flag.
5034 * toplev.c (print_switch_values): Use cl_report bit-field instead
5037 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5039 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
5040 a zero minimum index only if it is redundant.
5042 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
5044 PR rtl-optimization/48381
5045 * ira-color.c (assign_hard_reg): Use hard reg set intersection
5046 instead of ira_class_hard_reg_index for calculating conflicting
5049 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
5051 * cprop.c: Clean up hash table building.
5052 (reg_avail_info): Remove.
5053 (oprs_available_p): Remove.
5054 (record_last_reg_set_info): Remove.
5055 (record_last_set_info): Remove.
5056 (reg_available_p): New function.
5057 (gcse_constant_p): Do not treat unfolded conditions as constants.
5058 (make_set_regs_unavailable): New function.
5059 (hash_scan_set): Simplify with new reg_available_p.
5060 (compute_hash_table_work): Traverse insns stream only once.
5061 Do not compute reg_avail_info. Traverse insns in reverse order.
5062 Record implicit sets after recording explicit sets from the block.
5064 2011-03-31 Michael Matz <matz@suse.de>
5066 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
5068 2011-03-31 Anatoly Sokolov <aesok@post.ru>
5070 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
5071 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
5072 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5073 (h8300_mode_dependent_address_p): New function.
5074 (h8300_get_index): Make static.
5076 2011-03-31 Jeff Law <law@redhat.com>
5078 * reload1.c (elimination_effects): Fix typo in recent change.
5080 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
5081 typo potentially leading to null pointer dereference.
5083 * caller-save.c (new_saved_hard_reg): Eliminate return value.
5084 (setup_save_areas): Corresponding changes to avoid useless
5087 * jump.c (reversed_comparison_code_parts): Avoid successive return
5088 statements when REVERSE_CONDITION is defined.
5090 * expr.c (expand_assignment): Avoid useless assignments.
5091 (expand_expr_real_1): Likewise.
5092 (expand_expr_real_2): Avoid useless statements.
5094 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
5096 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5098 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
5101 * stmt.c (expand_expr_stmt): Avoid useless assignment.
5103 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5106 * doc/tm.texi.in (TARGET_VERSION): Remove.
5107 * doc/tm.texi: Regenerate.
5108 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
5109 * collect2.c (main): Don't use TARGET_VERSION.
5110 * mips-tdump.c (main): Don't use TARGET_VERSION.
5111 * mips-tfile.c (main): Don't use TARGET_VERSION.
5112 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
5113 * config/rs6000/vxworksae.h: Remove.
5114 * config/alpha/alpha.h (TARGET_VERSION): Remove.
5115 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
5116 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
5117 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
5118 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5119 * config/arm/arm.h (TARGET_VERSION): Remove.
5120 * config/arm/coff.h (TARGET_VERSION): Remove.
5121 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
5122 * config/arm/elf.h (TARGET_VERSION): Remove.
5123 * config/arm/freebsd.h (TARGET_VERSION): Remove.
5124 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
5125 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
5126 * config/arm/pe.h (TARGET_VERSION): Remove.
5127 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
5128 * config/arm/semi.h (TARGET_VERSION): Remove.
5129 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
5130 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
5131 * config/arm/vxworks.h (TARGET_VERSION): Remove.
5132 * config/avr/avr.h (TARGET_VERSION): Remove.
5133 * config/bfin/bfin.h (TARGET_VERSION): Remove.
5134 * config/fr30/fr30.h (TARGET_VERSION): Remove.
5135 * config/frv/frv.h (TARGET_VERSION): Remove.
5136 * config/h8300/h8300.h (TARGET_VERSION): Remove.
5137 * config/i386/cygwin.h (TARGET_VERSION): Remove.
5138 * config/i386/darwin.h (TARGET_VERSION): Remove.
5139 * config/i386/darwin64.h (TARGET_VERSION): Remove.
5140 * config/i386/djgpp.h (TARGET_VERSION): Remove.
5141 * config/i386/freebsd.h (TARGET_VERSION): Remove.
5142 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
5143 * config/i386/gnu.h (TARGET_VERSION): Remove.
5144 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
5145 * config/i386/i386elf.h (TARGET_VERSION): Remove.
5146 * config/i386/linux.h (TARGET_VERSION): Remove.
5147 * config/i386/linux64.h (TARGET_VERSION): Remove.
5148 * config/i386/lynx.h (TARGET_VERSION): Remove.
5149 * config/i386/mingw32.h (TARGET_VERSION): Remove.
5150 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
5151 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
5152 * config/i386/netware.h (TARGET_VERSION): Remove.
5153 * config/i386/nto.h (TARGET_VERSION): Remove.
5154 * config/i386/openbsd.h (TARGET_VERSION): Remove.
5155 * config/i386/vxworks.h (TARGET_VERSION): Remove.
5156 * config/ia64/elf.h (TARGET_VERSION): Remove.
5157 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
5158 * config/ia64/hpux.h (TARGET_VERSION): Remove.
5159 * config/ia64/linux.h (TARGET_VERSION): Remove.
5160 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5161 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
5162 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5163 * config/lm32/lm32.h (TARGET_VERSION): Remove.
5164 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
5165 * config/m32c/m32c.h (TARGET_VERSION): Remove.
5166 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
5167 * config/m32r/m32r.h (TARGET_VERSION): Remove.
5168 * config/m68k/linux.h (TARGET_VERSION): Remove.
5169 * config/m68k/m68k.h (TARGET_VERSION): Remove.
5170 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
5171 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
5172 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
5173 * config/mep/mep.h (TARGET_VERSION): Remove.
5174 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
5175 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5176 * config/mips/iris6.h (MACHINE_TYPE): Remove.
5177 * config/mips/linux.h (TARGET_VERSION): Remove.
5178 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
5179 * config/mips/vxworks.h (TARGET_VERSION): Remove.
5180 * config/mmix/mmix.h (TARGET_VERSION): Remove.
5181 * config/mn10300/linux.h (TARGET_VERSION): Remove.
5182 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
5183 * config/pa/pa.h (TARGET_VERSION): Remove.
5184 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
5185 * config/picochip/picochip.h (TARGET_VERSION): Remove.
5186 * config/rs6000/aix.h (TARGET_VERSION): Remove.
5187 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
5188 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
5189 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
5190 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
5191 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
5192 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
5193 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
5194 * config/rs6000/linux.h (TARGET_VERSION): Remove.
5195 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
5196 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
5197 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
5198 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
5199 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
5200 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
5201 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
5202 * config/s390/linux.h (TARGET_VERSION): Remove.
5203 * config/s390/s390.h (TARGET_VERSION): Remove.
5204 * config/s390/tpf.h (TARGET_VERSION): Remove.
5205 * config/score/score.h (TARGET_VERSION): Remove.
5206 * config/sh/linux.h (TARGET_VERSION): Remove.
5207 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
5208 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
5209 * config/sh/sh.h (TARGET_VERSION): Remove.
5210 * config/sh/sh64.h (TARGET_VERSION): Remove.
5211 * config/sh/superh.h (TARGET_VERSION): Remove.
5212 * config/sh/vxworks.h (TARGET_VERSION): Remove.
5213 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
5214 * config/sparc/linux.h (TARGET_VERSION): Remove.
5215 * config/sparc/linux64.h (TARGET_VERSION): Remove.
5216 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
5217 TARGET_NAME32, TARGET_NAME): Remove.
5218 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
5219 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
5220 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
5221 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
5222 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
5223 * config/spu/spu.h (TARGET_VERSION): Remove.
5224 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
5225 * config/v850/v850.h (TARGET_VERSION): Remove.
5226 * config/vax/linux.h (TARGET_VERSION): Remove.
5227 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
5228 * config/xtensa/elf.h (TARGET_VERSION): Remove.
5229 * config/xtensa/linux.h (TARGET_VERSION): Remove.
5231 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5234 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
5235 frame-related from frame-unrelated adjustments to the stack pointer.
5237 2011-03-31 Jakub Jelinek <jakub@redhat.com>
5239 * common.opt (fdebug-types-section): Move earlier.
5240 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
5242 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
5244 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
5247 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
5249 * tree.h (CASE_CHAIN): Define.
5250 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
5251 (gimple_redirect_edge_and_branch): Likewise.
5253 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
5256 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
5259 2011-03-30 Jeff Law <law@redhat.com>
5261 * PR bootstrap/48371
5262 * reload1.c (reload): Fix botch in last change.
5264 * reload.h (struct reload): Fix typo introduced in last change.
5266 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5268 * config/arm/arm.opt (mhard-float, msoft-float): Mark
5269 Undocumented. Remove help text.
5270 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
5273 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5275 * doc/options.texi (NegativeAlias): Document.
5276 (Alias): Mention NegativeAlias.
5277 * opt-functions.awk: Handle NegativeAlias.
5278 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
5279 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
5280 * opts.h (CL_NEGATIVE_ALIAS): Define.
5281 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
5282 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
5284 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
5286 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5287 mno-spe and mno-isel instead of mspe=no and -misel=no.
5289 2011-03-29 Mark Wielaard <mjw@redhat.com>
5291 * common.opt (fdebug-types-section): New flag.
5292 * doc/invoke.texi: Document new -fno-debug-types-section flag.
5293 * dwarf2out.c (use_debug_types): New define.
5294 (struct die_struct): Mark die_id with GTY desc use_debug_types.
5295 (print_die): Guard output of type unit signatures using
5297 (build_abbrev_table): Replace assert of dwarf_version >= 4
5298 with assert on use_debug_types.
5299 (size_of_die): Likewise.
5300 (unmark_dies): Likewise.
5301 (value_format): Decide AT_ref_external form on use_debug_types.
5302 (output_die): Replace dwarf_version version check guard with
5303 use_debug_types where appropriate.
5304 (modified_type_die): Likewise.
5305 (gen_reference_type_die): Likewise.
5306 (dwarf2out_start_source_file): Likewise.
5307 (dwarf2out_end_source_file): Likewise.
5308 (prune_unused_types_walk_attribs): Likewise.
5309 (dwarf2out_finish): Likewise.
5311 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
5313 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
5315 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
5317 PR rtl-optimization/48332
5318 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
5319 mode of input operand N and modeN to its actual mode.
5321 2011-03-30 Jeff Law <law@redhat.com>
5323 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
5324 define accessor macro.
5325 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
5326 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
5327 (reg_equiv_init): Likewise.
5328 (reg_equivs_size): New variable.
5329 (reg_equiv_init_size): Remove.
5330 (allocate_initial_values): Move prototype to here from....
5331 * integrate.h (allocate_initial_values): Remove prototype.
5332 * integrate.c: Include reload.h.
5333 (allocate_initial_values): Corresponding changes.
5334 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
5335 (fix_reg_equiv_init, no_equiv): Corresponding changes.
5336 (update_equiv_regs): Corresponding changes.
5337 (ira): Corresponding changes.
5338 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
5339 (push_secondary_reload): Corresponding changes.
5340 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
5341 (make_memloc, find_reloads_address): Corresponding changes.
5342 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
5343 (find_reloads_address_1): Corresponding changes.
5344 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
5345 (refers_to_regno_for_reload_p): Corresponding changes.
5346 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
5347 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
5348 * reload1.c: Include ggc.h.
5349 (grow_reg_equivs): New function.
5350 (replace_pseudos_in, reload): Corresponding changes.
5351 (calculate_needs_all_insns, alter_regs): Corresponding changes.
5352 (eliminate_regs_1, elimination_effects): Corresponding changes.
5353 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
5354 (delete_output_reload): Likewise.
5355 * caller-save.c (mark_referenced_regs): Corresponding changes.
5356 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
5357 * frv/predicates.md (frv_load_operand): Corresponding changes.
5358 * microblaze/microblaze.c (double_memory_operand): Corresponding
5360 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
5361 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
5362 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
5363 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
5364 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
5366 * pa/pa.c (emit_move_sequence): Corresponding changes.
5367 * vax/vax.c (nonindexed_address_p): Corresponding changes.
5369 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
5372 * config/arm/arm.c (coproc_secondary_reload_class): Handle
5373 structure modes. Don't check neon_vector_mem_operand for
5374 vector or structure modes.
5376 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
5377 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5380 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
5381 operand 1 and reshuffle the operands to match.
5382 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
5384 2011-03-30 Christian Schüler <cschueler@gmx.de>
5387 * config/c.opt (F): Added 'Driver' to -F option.
5390 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
5392 * config/darwin.opt: Added '-arch' option.
5394 2011-03-30 Nick Clifton <nickc@redhat.com>
5396 * config/rx/rx.md: Add peepholes and patterns to combine
5397 extending loads and simple arithmetic instructions.
5398 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
5399 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
5400 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
5401 modes to use pre-decrement and post-increment addressing.
5402 (rx_is_restricted_memory_address): Add range checking of REG+INT
5404 (rx_print_operand): Add support for %Q. Fix handling of %Q.
5405 (rx_memory_move_cost): Adjust cost of stores.
5406 (rx_adjust_insn_length): New function.
5408 2011-03-30 Jakub Jelinek <jakub@redhat.com>
5411 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
5412 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
5413 matching arg00/arg01 types.
5415 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
5417 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
5418 last_location to UNKNOWN_LOCATION.
5420 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
5423 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
5426 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5427 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5430 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
5432 (sparc_cpu): Likewise.
5433 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
5436 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
5440 PR rtl-optimization/48345
5441 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
5442 hard regs for given mode from profitable regs when doing secondary
5445 2011-03-29 Jeff Law <law@redhat.com>
5448 * tree-ssa-threadupdate.c (struct redirection_data): Remove
5449 do_not_duplicate field.
5450 (lookup_redirection_data): Corresponding changes.
5451 (create_duplicates): Always create a template block.
5452 (redirect_edges): Remove code which reused the original block
5453 when it was going to become unreachable code.
5454 (thread_block): Don't set do_not_duplicate field.
5456 2011-03-29 Joseph Myers <joseph@codesourcery.com>
5458 * lto-opts.c (register_user_option_p, lto_register_user_option):
5459 Make type argument unsigned.
5460 * lto-streamer.h (lto_register_user_option): Make type argument
5462 * opth-gen.awk: Make CL_* macros unsigned.
5463 * opts-common.c (find_opt): Make lang_mask argument unsigned.
5464 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
5465 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
5466 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
5467 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
5468 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
5469 (find_opt): Make lang_mask argument unsigned.
5471 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
5473 PR rtl-optimization/48331
5474 PR rtl-optimization/48334
5475 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
5476 for any used algorithm.
5478 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
5480 * ira-conflicts.c (build_object_conflicts): Add unused attribute
5483 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
5485 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
5486 (alpha_option_override): Don't set alpha_sr_alias_set.
5487 (emit_frame_store_1): Use gen_frame_mem rather than calling
5489 (alpha_expand_epilogue): Ditto.
5491 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
5493 PR tree-optimization/48290
5494 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
5495 vectorization, check that relevant phis in the basic block after
5496 the inner loop are really inner loop's exit phis.
5498 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
5501 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
5502 (cached_dw_loc_list_def): New structure.
5503 (cached_dw_loc_list): New typedef.
5504 (cached_dw_loc_list_table): New variable.
5505 (cached_dw_loc_list_table_hash): New function.
5506 (cached_dw_loc_list_table_eq): Likewise.
5507 (add_location_or_const_value_attribute): Take a bool cache_p.
5508 Cache the list when the parameter is true.
5509 (gen_formal_parameter_die): Update caller.
5510 (gen_variable_die): Likewise.
5511 (dwarf2out_finish): Likewise.
5512 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
5513 while generating debug info for the decl.
5514 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
5515 (dwarf2out_init): Initialize cached_dw_loc_list_table.
5516 (resolve_addr): Cache the result of resolving a chain of
5519 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
5521 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
5522 conflict object hard regset nodes have intersecting hard reg sets.
5524 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
5525 after regstat_init_n_sets_and_refs.
5527 * ira.c: Add more comments at the top.
5528 (setup_stack_reg_pressure_class, setup_pressure_classes):
5529 Add comments how we compute the register pressure classes.
5530 (setup_allocno_and_important_classes): Add more comments.
5531 (setup_class_translate_array, reorder_important_classes)
5532 (setup_reg_class_relations): Add comments.
5534 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
5537 * ira-color.c: Add 2011 to the Copyright line.
5538 (assign_hard_reg): Add more comments.
5539 (improve_allocation): Ditto.
5541 * ira-costs.c: Add 2011 to the Copyright line.
5542 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
5544 (setup_regno_cost_classes_by_mode): Ditto.
5546 Initial patches from ira-improv branch:
5548 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
5550 * ira-build.c (ira_create_object): Remove initialization of
5551 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
5552 (ira_create_allocno): Remove initialization of
5553 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
5554 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
5555 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
5556 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
5557 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
5558 Initialize ALLOCNO_ADD_DATA.
5559 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
5560 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
5562 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
5563 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
5565 * ira.c (ira_reallocate): Remove.
5566 (setup_pressure_classes): Call
5567 ira_init_register_move_cost_if_necessary. Use
5568 ira_register_move_cost instead of ira_get_register_move_cost.
5569 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
5570 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
5572 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
5573 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
5574 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
5575 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
5576 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
5577 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
5579 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
5580 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
5581 (struct allocno_color_data): New.
5582 (allocno_color_data_t): New typedef.
5583 (allocno_color_data): New definition.
5584 (ALLOCNO_COLOR_DATA): New macro.
5585 (struct object_color_data): New.
5586 (object_color_data_t): New typedef.
5587 (object_color_data): New definition.
5588 (OBJECT_COLOR_DATA): New macro.
5589 (update_copy_costs, calculate_allocno_spill_cost): Call
5590 ira_init_register_move_cost_if_necessary. Use
5591 ira_register_move_cost instead of ira_get_register_move_cost.
5592 (move_spill_restore, update_curr_costs): Ditto.
5593 (allocno_spill_priority): Make it inline.
5594 (color_pass): Allocate and free allocno_color_dat and object_color_data.
5595 (struct coalesce_data, coalesce_data_t): New.
5596 (allocno_coalesce_data): New definition.
5597 (ALLOCNO_COALESCE_DATA): New macro.
5598 (merge_allocnos, coalesced_allocno_conflict_p): Use
5599 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
5600 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
5601 (coalesce_allocnos): Ditto.
5602 (setup_coalesced_allocno_costs_and_nums): Ditto.
5603 (collect_spilled_coalesced_allocnos): Ditto.
5604 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
5605 (setup_slot_coalesced_allocno_live_ranges): Ditto.
5606 (coalesce_spill_slots): Ditto.
5607 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
5608 free allocno_coalesce_data.
5610 * ira-conflicts.c: Fix formatting.
5611 (process_regs_for_copy): Call
5612 ira_init_register_move_cost_if_necessary. Use
5613 ira_register_move_cost instead of ira_get_register_move_cost.
5614 (build_object_conflicts): Optimize.
5616 * ira-costs.c (record_reg_classes): Optimize. Call
5617 ira_init_register_move_cost_if_necessary. Use
5618 ira_register_move_cost, ira_may_move_in_cost, and
5619 ira_may_move_out_cost instead of ira_get_register_move_cost and
5620 ira_get_may_move_cost.
5621 (record_address_regs): Ditto.
5622 (scan_one_insn): Optimize.
5623 (find_costs_and_classes): Optimize.
5624 (process_bb_node_for_hard_reg_moves): Call
5625 ira_init_register_move_cost_if_necessary. Use
5626 ira_register_move_cost instead of ira_get_register_move_cost.
5628 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
5629 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
5630 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
5631 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
5633 (ira_initiate_emit_data, ira_finish_emit_data)
5634 (create_new_allocno): New functions.
5635 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
5636 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
5637 Use ira_register_move_cost instead of ira_get_register_move_cost.
5639 * ira-int.h: Fix some comments.
5640 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
5641 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
5642 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
5643 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
5645 (struct ira_allocno): Make mode and aclass a bitfield. Move other
5646 bitfield after mode. Make hard_regno a short int. Make
5647 hard_regno short. Remove first_coalesced_allocno and
5648 next_coalesced_allocno. Move mem_optimized_dest_p,
5649 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
5650 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
5651 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
5652 temp, colorable_p. Add new member add_data.
5653 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
5654 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
5655 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
5656 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
5657 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
5658 (ALLOCNO_ADD_DATA): New macro.
5659 (ira_emit_data_t): New typedef.
5660 (struct ira_emit_data): New. Move mem_optimized_dest_p,
5661 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
5662 from struct ira_allocno.
5663 (ALLOCNO_EMIT_DATA): New macro.
5664 (ira_allocno_emit_data, allocno_emit_reg): New.
5665 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
5666 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
5667 (OBJECT_ADD_DATA): New macro.
5668 (ira_reallocate): Remove.
5669 (ira_initiate_emit_data, ira_finish_emit_data): New.
5670 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
5671 (ira_init_register_move_cost_if_necessary): New.
5672 (ira_object_conflict_iter_next): Merge into
5673 ira_object_conflict_iter_cond.
5674 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
5676 * ira-live.c (process_single_reg_class_operands): Call
5677 ira_init_register_move_cost_if_necessary. Use
5678 ira_register_move_cost instead of ira_get_register_move_cost.
5680 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
5682 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
5684 * ira-costs.c: Fix formatting.
5685 (cost_classes, cost_classes_num): Remove.
5686 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
5687 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
5688 (cost_classes_del, cost_classes_htab): New.
5689 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
5690 (initiate_regno_cost_classes, setup_cost_classes): New.
5691 (setup_regno_cost_classes_by_aclass): New.
5692 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
5693 (record_reg_classes): Use regno_cost_classes instead of
5694 cost_classes. Move checking opposite operand up.
5695 (record_address_regs): Use regno_cost_classes
5696 instead of cost_classes.
5697 (scan_one_insn): Ditto. Use always general register.
5698 (print_allocno_costs): Use regno_cost_classes instead of
5700 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
5701 (find_costs_and_classes): Set up cost classes for each registers.
5702 Use also their mode for this. Use regno_cost_classes instead of
5704 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
5706 (free_ira_costs, ira_init_costs): Don't use cost_classes.
5707 (ira_costs, ira_set_pseudo_classes): Call
5708 initiate_regno_cost_classes and finish_regno_cost_classes.
5710 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
5712 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
5714 * target.def (ira_cover_classes): Remove.
5716 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
5718 * doc/tm.texi.in: Ditto.
5720 * ira-conflicts.c: Remove mentioning cover classes from the file.
5721 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
5722 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
5724 * targhooks.c (default_ira_cover_classes): Remove.
5726 * targhooks.h (default_ira_cover_classes): Ditto.
5728 * haifa-sched.c: Remove mentioning cover classes from the file.
5729 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
5730 ira_pressure_classes and ira_pressure_classes_num instead of
5731 ira_reg_class_cover_size and ira_reg_class_cover. Use
5732 sched_regno_pressure_class instead of sched_regno_cover_class.
5733 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
5734 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
5736 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
5737 classes from the file.
5738 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
5739 (struct object_hard_regs, struct object_hard_regs_node): New.
5740 (struct ira_object): New members profitable_hard_regs,
5741 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
5742 (struct ira_allocno): Rename cover_class to aclass. Rename
5743 cover_class_cost and updated_cover_class_cost to class_cost and
5744 updated_class_cost. Remove splay_removed_p and
5745 left_conflict_size. Add new members colorable_p.
5746 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
5747 (ALLOCNO_COLORABLE_P): New macro.
5748 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
5749 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
5750 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
5751 (OBJECT_...): Rename parameter C to O.
5752 (OBJECT_PROFITABLE_HARD_REGS): New macro.
5753 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
5754 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
5755 (struct target_ira_int): New members x_ira_max_memory_move_cost,
5756 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
5757 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
5758 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
5759 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
5760 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
5761 x_ira_reg_class_subunion.
5762 (ira_max_memory_move_cost, ira_max_register_move_cost)
5763 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
5764 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
5765 (ira_important_class_nums, ira_reg_class_superunion): New macros.
5766 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
5767 (ira_reg_class_union): Rename to ira_reg_class_subunion.
5768 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
5769 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
5770 (ira_tune_allocno_costs_and_cover_classes): Rename to
5771 ira_tune_allocno_costs.
5772 (ira_debug_hard_regs_forest): New.
5773 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
5774 (ira_object_conflict_iter_next): Fix comments.
5775 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
5776 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
5777 cover_class to aclass.
5778 (ira_allocate_and_accumulate_costs): Ditto.
5779 (ira_allocate_and_set_or_copy_costs): Ditto.
5781 * opts.c (decode_options): Remove ira_cover_class check.
5783 * ira-color.c: Remove mentioning cover classes from the file. Use
5784 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
5785 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
5786 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
5787 (splay-tree.h): Remove include.
5788 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
5789 before copy_freq_compare_func.
5790 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
5791 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
5793 (hard_regs_roots, hard_regs_node_vec): Ditto.
5794 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
5795 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
5796 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
5797 (create_new_object_hard_regs_node): Ditto.
5798 (add_new_object_hard_regs_node_to_forest): Ditto.
5799 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
5800 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
5802 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
5803 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
5804 (remove_unused_object_hard_regs_nodes): Ditto.
5805 (enumerate_object_hard_regs_nodes): Ditto.
5806 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
5807 (object_hard_regs_subnode_t): Ditto.
5808 (struct object_hard_regs_subnode): Ditto.
5809 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
5810 (setup_object_hard_regs_subnode_index): Ditto.
5811 (get_object_hard_regs_subnodes_num): Ditto.
5812 (form_object_hard_regs_nodes_forest): Ditto.
5813 (finish_object_hard_regs_nodes_tree): Ditto.
5814 (finish_object_hard_regs_nodes_forest): Ditto.
5815 (allocnos_have_intersected_live_ranges_p): Rename to
5816 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
5817 (pseudos_have_intersected_live_ranges_p): Rename to
5818 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
5819 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
5820 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
5821 (update_copy_costs): Remove assert. Skip cost update if the hard
5822 reg does not belong the class.
5823 (assign_hard_reg): Process only profitable hard regs.
5824 (uncolorable_allocnos_num): Make it scalar.
5825 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
5826 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
5827 and ira_reg_class_max_nregs.
5828 (bucket_allocno_compare_func): Check frequency first.
5829 (sort_bucket): Add compare function as a parameter.
5830 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
5831 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
5832 (push_allocno_to_stack): Rewrite for checking new allocno
5834 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
5835 (push_only_colorable): Pass new parameter to sort_bucket.
5836 (push_allocno_to_spill): Remove.
5837 (allocno_spill_priority_compare): Make it inline and rewrite.
5838 (splay_tree_allocate, splay_tree_free): Remove.
5839 (allocno_spill_sort_compare): New function.
5840 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
5841 build and use splay tree. Choose first allocno in uncolorable
5842 allocno bucket to spill. Remove setting spill cost.
5843 (all_conflicting_hard_regs): Remove.
5844 (setup_allocno_available_regs_num): Check only profitable hard
5845 regs. Print info about hard regs nodes.
5846 (setup_allocno_left_conflicts_size): Remove.
5847 (put_allocno_into_bucket): Don't call
5848 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
5849 (improve_allocation): New.
5850 (color_allocnos): Call setup_profitable_hard_regs,
5851 form_object_hard_regs_nodes_forest, improve_allocation,
5852 finish_object_hard_regs_nodes_forest. Setup spill cost.
5853 (print_loop_title): Use pressure classes.
5854 (color_allocnso): Ditto.
5855 (do_coloring): Remove allocation and freeing splay_tree_node_pool
5856 and allocnos_for_spilling.
5857 (ira_sort_regnos_for_alter_reg): Don't setup members
5858 {first,next}_coalesced_allocno.
5859 (color): Remove allocating and freeing removed_splay_allocno_vec.
5860 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
5861 prohibited_class_mode_regs.
5863 * ira-lives.c: Remove mentioning cover classes from the file. Fix
5865 (update_allocno_pressure_excess_length): Use pressure classes.
5866 (inc_register_pressure, dec_register_pressure): Check for pressure
5868 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
5869 pressure class. Use ira_reg_class_nregs instead of
5870 ira_reg_class_max_nregs.
5871 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
5872 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
5873 (single_reg_class): Use ira_reg_class_nregs instead of
5874 ira_reg_class_max_nregs.
5875 (process_bb_node_lives): Use pressure classes.
5877 * ira-emit.c: Remove mentioning cover classes from the file. Use
5878 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
5879 (change_loop): Use pressure classes.
5880 (modify_move_list): Call ira_set_allocno_class instead of
5881 ira_set_allocno_cover_class.
5883 * ira-build.c: Remove mentioning cover classes from the file. Use
5884 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
5885 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
5886 ALLOCNO_UPDATED_CLASS_COST instead of
5887 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
5888 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
5889 (ira_create_allocno): Remove initialization of
5890 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
5891 ALLOCNO_COLORABLE_P.
5892 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
5893 Update conflict regs for the objects.
5894 (create_cap_allocno): Remove assert. Don't propagate
5895 ALLOCNO_AVAILABLE_REGS_NUM.
5896 (ira_free_allocno_costs): New function.
5897 (finish_allocno): Change a part of code into call of
5898 ira_free_allocno_costs.
5899 (low_pressure_loop_node_p): Use pressure classes.
5900 (object_range_compare_func): Don't compare classes.
5901 (setup_min_max_conflict_allocno_ids): Ditto.
5903 * loop-invariant.c: Remove mentioning cover classes from the file.
5904 Use ira_pressure_classes and ira_pressure_classes_num instead of
5905 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
5906 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
5907 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
5908 Use reg_allocno_class instead of reg_cover_class.
5909 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
5910 STACK_REG_COVER_CLASS.
5911 (get_regno_cover_class): Rename to get_regno_pressure_class.
5912 (move_loop_invariants): Initialize and finalize regstat.
5914 * ira.c: Remove mentioning cover classes from the file. Add
5915 comments about coloring without cover classes. Use ALLOCNO_CLASS
5916 instead of ALLOCNO_COVER_CLASS. Fix formatting.
5917 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
5918 setup_class_subset_and_memory_move_costs.
5919 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
5920 (setup_cover_and_important_classes): Rename to
5921 setup_allocno_and_important_classes.
5922 (setup_class_translate_array): New.
5923 (setup_class_translate): Call it for allocno and pressure classes.
5924 (cover_class_order): Rename to allocno_class_order.
5925 (comp_reg_classes_func): Use ira_allocno_class_translate instead
5926 of ira_class_translate.
5927 (reorder_important_classes): Set up ira_important_class_nums.
5928 (setup_reg_class_relations): Set up ira_reg_class_superunion.
5929 (print_class_cover): Rename to print_classes. Add parameter.
5930 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
5931 Print pressure classes too.
5932 (find_reg_class_closure): Rename to find_reg_classes. Don't call
5933 setup_reg_subclasses.
5934 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
5935 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
5936 (setup_prohibited_class_mode_regs): Use
5937 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
5938 (clarify_prohibited_class_mode_regs): New function.
5939 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
5940 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
5941 (ira_init_once): Initialize them.
5942 (free_register_move_costs): Process them.
5943 (ira_init): Move calls of find_reg_classes and
5944 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
5945 Call clarify_prohibited_class_mode_regs.
5946 (ira_no_alloc_reg): Remove.
5947 (too_high_register_pressure_p): Use pressure classes.
5949 * sched-deps.c: Remove mentioning cover classes from the file.
5950 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
5951 ira_pressure_classes and ira_pressure_classes_num instead of
5952 ira_reg_class_cover_size and ira_reg_class_cover.
5953 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
5954 sched_regno_pressure_class instead of sched_regno_cover_class.
5955 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
5956 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
5958 * ira.h: Add 2010 to Copyright.
5959 (ira_no_alloc_reg): Remove external.
5960 (struct target_ira): Rename x_ira_hard_regno_cover_class,
5961 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
5962 x_ira_class_translate to x_ira_hard_regno_allocno_class,
5963 x_ira_allocno_classes_num, x_ira_allocno_classes, and
5964 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
5965 x_ira_pressure_classes, x_ira_pressure_class_translate, and
5966 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
5967 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
5968 x_ira_no_alloc_regs.
5969 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
5970 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
5971 ira_allocno_classes_num and ira_allocno_classes.
5972 (ira_class_translate): Rename to ira_allocno_class_translate.
5973 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
5974 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
5975 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
5976 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
5977 (ira_no_alloc_regs): New.
5979 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
5980 classes from the file. Use ALLOCNO_CLASS instead of
5981 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
5982 ALLOCNO_COVER_CLASS_COST.
5983 (regno_cover_class): Rename to regno_aclass.
5984 (record_reg_classes): Use ira_reg_class_subunion instead of
5985 ira_reg_class_union.
5986 (record_address_regs): Check overflow.
5987 (scan_one_insn): Ditto.
5988 (print_allocno_costs): Print total mem cost fore regional allocation.
5989 (print_pseudo_costs): Use REG_N_REFS.
5990 (find_costs_and_classes): Use classes intersected with them on the
5991 1st pass. Check overflow. Use ira_reg_class_subunion instead of
5992 ira_reg_class_union. Use ira_allocno_class_translate and
5993 regno_aclass instead of ira_class_translate and regno_cover_class.
5994 Modify code for finding regno_aclass. Setup preferred classes for
5996 (setup_allocno_cover_class_and_costs): Rename to
5997 setup_allocno_class_and_costs. Use regno_aclass instead of
5998 regno_cover_class. Use ira_set_allocno_class instead of
5999 ira_set_allocno_cover_class.
6000 (init_costs, finish_costs): Use regno_aclass instead of
6002 (ira_costs): Use setup_allocno_class_and_costs instead of
6003 setup_allocno_cover_class_and_costs.
6004 (ira_tune_allocno_costs_and_cover_classes): Rename to
6005 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
6006 by processing objects. Use ira_reg_class_max_nregs instead of
6007 ira_reg_class_nregs.
6009 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
6011 * sched-int.h: Remove mentioning cover classes from the file.
6012 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
6014 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
6015 classes from the file.
6016 (struct reg_pref): Rename coverclass into allocnoclass.
6017 (reg_cover_class): Rename to reg_allocno_class.
6019 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
6021 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
6023 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
6025 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
6027 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
6029 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
6031 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
6033 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
6035 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
6037 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
6039 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
6040 (i386_ira_cover_classes): Ditto.
6042 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
6044 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
6046 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
6048 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
6050 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
6052 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
6054 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
6055 (mips_ira_cover_classes): Ditto.
6057 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
6059 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
6061 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
6063 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
6065 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
6067 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
6068 (IRA_COVER_CLASSES_VSX): Ditto.
6070 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
6071 (rs6000_ira_cover_classes): Ditto.
6073 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
6075 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
6077 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
6079 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
6081 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
6083 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
6085 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
6087 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
6089 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
6091 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
6093 2011-03-29 Jakub Jelinek <jakub@redhat.com>
6096 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
6097 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
6098 dw_fde_unlikely_section_end_label, cold_in_std_section,
6099 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
6100 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
6102 (output_fde): Use dw_fde_second_{begin,end} if second is
6103 true, otherwise dw_fde_{begin,end}.
6104 (output_call_frame_info): Test dw_fde_second_begin != NULL
6105 instead of dw_fde_switched_sections.
6106 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
6107 fields, initialize new fields. Initialize in_std_section
6108 unconditionally from the first partition.
6109 (dwarf2out_end_epilogue): Don't override dw_fde_end when
6110 dw_fde_second_begin is non-NULL.
6111 (dwarf2out_switch_text_section): Stop initializing removed
6112 dw_fde_struct fields, initialize new fields, initialize
6113 also dw_fde_end here. Set dw_fde_switch_cfi even when
6114 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
6115 (struct var_loc_list_def): Add last_before_switch field.
6116 (arange_table, arange_table_allocated, arange_table_in_use,
6117 ARANGE_TABLE_INCREMENT, add_arange): Removed.
6118 (size_of_aranges): Count !in_std_section and !second_in_std_section
6119 hunks in fdes, instead of looking at arange_table_in_use.
6120 (output_aranges): Add aranges_length argument, don't call
6121 size_of_aranges here. Instead of using aranges_table*
6122 emit ranges for fdes when !in_std_section resp.
6123 !second_in_std_section.
6124 (dw_loc_list): Break ranges crossing section switch.
6125 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
6126 use dw_fde_second_end instead of dw_fde_end as end of last range.
6127 (gen_subprogram_die): Don't call add_arange. Use
6128 dw_fde_{begin,end} for first partition and if switched
6129 section dw_fde_second_{begin,end} for the second.
6130 (var_location_switch_text_section_1,
6131 var_location_switch_text_section): New functions.
6132 (dwarf2out_begin_function): Initialize cold_text_section even
6133 when function_section () isn't text_section.
6134 (prune_unused_types): Don't walk arange_table.
6135 (dwarf2out_finish): Don't needlessly test
6136 flag_reorder_blocks_and_partition when testing cold_text_section_used.
6137 If info_section_emitted, call size_of_aranges and if it indicates
6138 non-empty .debug_aranges, call output_aranges with the computed
6139 size. Stop using removed dw_fde_struct fields, use
6140 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
6144 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
6145 create ENTRY_VALUE if incoming or address of incoming's MEM
6147 * dwarf2out.c (mem_loc_descriptor): Don't emit
6148 DW_OP_GNU_entry_value of DW_OP_fbreg.
6149 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
6150 on ENTRY_VALUE is able to find the canonical parameter VALUE.
6151 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
6152 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
6154 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
6155 is a REG_P or MEM_P with REG_P address, compute hash directly
6156 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
6157 (preserve_only_constants): Don't clear VALUES forwaring
6158 ENTRY_VALUE to some other VALUE.
6160 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
6162 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
6165 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
6167 * cfgexpand.c (expand_gimple_cond): Always set the source location and
6168 block before expanding the statement.
6169 (expand_gimple_stmt_1): Likewise. Set them here...
6170 (expand_gimple_stmt): ...and not here. Tidy.
6171 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
6174 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
6176 * Makefile.in: New rule for cprop.o.
6177 * gcse.c: Move constant/copy propagation to cprop.c.
6178 (compute_local_properties): Only handle expression tables.
6179 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
6180 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
6181 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
6182 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
6183 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
6184 compute_cprop_data, find_used_regs, try_replace_reg,
6185 find_avail_set, cprop_jump, constprop_register, cprop_insn,
6186 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
6187 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
6188 find_bypass_set, reg_killed_on_edge, bypass_block,
6189 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
6190 execute_rtl_cprop, pass_rtl_cprop): Move to...
6191 * cprop.c: ...here. New file, constant/copy propagation for RTL
6192 moved from gcse.c to here with minor cleanups in duplicated code.
6194 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
6196 * config/i386/i386.c (flag_opts): Fix a typo in
6197 -mavx256-split-unaligned-store.
6199 2011-03-28 Anatoly Sokolov <aesok@post.ru>
6201 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
6202 LIBCALL_VALUE): Remove macros.
6203 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6204 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6205 (h8300_function_value, h8300_libcall_value,
6206 h8300_function_value_regno_p): New functions.
6208 2011-03-28 Anatoly Sokolov <aesok@post.ru>
6210 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
6212 2011-03-28 Jeff Law <law@redhat.com>
6214 * tree-ssa-threadupdate.c (redirect_edges): Call
6215 create_edge_and_update_destination_phis as needed.
6216 (create_edge_and_update_destination_phis): Accept new BB argument.
6217 All callers updated.
6218 (thread_block): Do not update the profile when threading around
6219 intermediate blocks.
6220 (thread_single_edge): Likewise.
6221 (determine_bb_domination_status): If BB is not a successor of the
6222 loop header, return NONDOMINATING.
6223 (register_jump_thread): Note when we register a jump thread around
6224 an intermediate block.
6225 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
6226 (thread_across_edge): Use it.
6228 2011-03-28 Tristan Gingold <gingold@adacore.com>
6230 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
6231 when for_return is 2.
6233 2011-03-28 Jeff Law <law@redhat.com>
6235 * var-tracking.c (canonicalize_values_mark): Delete unused
6237 (canonicalize_values_star, set_variable_part): Likewise.
6238 (clobber_variable_part, delete_variable_part): Likewise.
6240 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
6242 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
6244 2011-03-28 Martin Jambor <mjambor@suse.cz>
6246 * tree-inline.c (expand_call_inline): Do not check that destination
6248 (optimize_inline_calls): Assert that destination node is analyzed.
6249 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
6250 not call tree_lowering_passes.
6251 * cgraph.h (cgraph_analyze_function): Declare.
6252 * cgraphunit.c (cgraph_analyze_function): Make public.
6254 2011-03-28 Joseph Myers <joseph@codesourcery.com>
6256 * config/sparc/sparc-opts.h: New.
6257 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
6258 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
6259 (sparc_option_override): Store processor_type enumeration rather
6260 than string in cpu_default. Remove name and enumeration from
6261 cpu_table. Directly default -mcpu then default -mtune from -mcpu
6262 without using sparc_select. Use target_flags_explicit instead of
6264 * config/sparc/sparc.h (enum processor_type): Move to
6266 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
6267 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
6268 HeaderInclude entry.
6269 (mcpu=, mtune=): Use Var and Enum.
6270 (sparc_processor_type): New Enum and EnumValue entries.
6272 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6273 Iain Sandoe <iains@gcc.gnu.org>
6276 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
6278 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
6280 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
6281 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
6282 Insert new statements at it in lieu of STMT.
6283 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
6284 * tree-vect-stmts.c (vectorizable_store): Likewise.
6285 (vectorizable_load): Likewise.
6287 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
6289 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
6294 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
6296 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
6297 unaligned 256bit load/store.
6298 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
6299 (*avx_movdqu<avxmodesuffix>): Likewise.
6301 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6304 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
6305 * config/pa/pa.md (iordi3): Use new predicate in expander.
6308 2011-03-27 Anatoly Sokolov <aesok@post.ru>
6310 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
6311 FUNCTION_VALUE_REGNO_P): Remove macros.
6312 * config/mips/mips-protos.h (mips_function_value): Remove.
6313 * config/mips/mips.c (mips_function_value): Rename to...
6314 (mips_function_value_1): ... this. Make static. Handle receiving
6315 the function type in 'fn_decl_or_type' argument.
6316 (mips_function_value, mips_libcall_value,
6317 mips_function_value_regno_p): New function.
6318 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6319 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6321 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
6323 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
6324 and -mavx256-split-unaligned-store.
6325 (ix86_option_override_internal): Split 32-byte AVX unaligned
6326 load/store by default.
6327 (ix86_avx256_split_vector_move_misalign): New.
6328 (ix86_expand_vector_move_misalign): Use it.
6330 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
6331 -mavx256-split-unaligned-store.
6333 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
6334 256bit load/store. Generate unaligned store on misaligned memory
6336 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
6338 (*avx_movdqu<avxmodesuffix>): Likewise.
6340 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
6341 -mavx256-split-unaligned-store.
6343 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
6346 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
6349 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
6351 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
6352 opno arguments with an expand_operand. Use create_input_operand.
6353 (mips_prepare_builtin_target): Delete.
6354 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
6356 (mips_expand_builtin_direct): Use create_output_operand and
6357 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
6358 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
6359 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
6361 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
6363 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
6365 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
6367 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
6369 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
6370 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
6371 basic blocks and call commit_edge_insertions directly.
6372 (fixup_abnormal_edges): Move from here to...
6373 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
6374 on the edges and return whether some have actually been inserted.
6375 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
6378 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
6380 PR rtl-optimization/48144
6381 * sel-sched-ir.c (merge_history_vect): Factor out from ...
6382 (merge_expr_data): ... here.
6383 (av_set_intersect): Rename to av_set_code_motion_filter.
6384 Update all callers. Call merge_history_vect when an expression
6385 is found in both sets.
6386 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
6388 2011-03-26 Alan Modra <amodra@gmail.com>
6390 * config/rs6000/predicates.md (word_offset_memref_op): Handle
6391 cmodel medium addresses.
6392 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
6393 64-bit gpr loads and stores.
6394 (rs6000_secondary_reload_ppc64): New function.
6395 * config/rs6000/rs6000-protos.h: Declare it.
6396 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
6398 2011-03-26 Alan Modra <amodra@gmail.com>
6401 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
6402 GNU Go in traceback table.
6404 2011-03-25 Richard Henderson <rth@redhat.com>
6406 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
6407 if there are exactly 6 operands.
6408 (set_storage_via_setmem): Similarly.
6410 2011-03-25 Kai Tietz <ktietz@redhat.com>
6412 * collect2.c (write_c_file_stat): Handle backslash
6413 as right-hand directory separator.
6414 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
6415 checking just for slash.
6416 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
6417 instead of checking for trailing slash.
6418 * gcc.c (record_temp_file): Use filename_cmp instead
6420 (do_spec_1): Likewise.
6421 (replace_outfile_spec_function): Likewise.
6422 (is_directory): Use filename_ncmp instead of strncmp.
6423 (print_multilib_info): Likewise.
6424 * gcov.c (find_source): Use filename_cmp instead
6426 (make_gcov_file_name): Fix order of slash/backslash
6428 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
6429 (add_standard_paths): Likewise.
6430 * mips-tfile.c (saber_stop): Handle backslash.
6431 * prefix.c (update_path): Use filename_ncmp instead of
6433 * profile.c (output_location): Use filename_cmp instead
6435 * read-md.c (handle_toplevel_file): Handle backslash.
6436 * tlink.c (frob_extension): Likewise.
6437 * tree-cfg.c (same_line_p): Use filename_cmp instead of
6439 * tree-dump.c (dequeue_and_dump): Handle backslash.
6440 * tree.c (get_file_function_name): Likewise.
6441 * gengtype.c (read_input_list): Likewise.
6442 (get_file_realbasename): Likewise.
6443 (get_output_file_with_visibility): Use filename_cmp
6446 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
6448 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
6451 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
6453 * fold-const.c (expr_location_or): New function.
6454 (fold_truth_not_expr): Call it.
6456 2011-03-25 Jeff Law <law@redhat.com>
6458 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
6460 * c-family/c-common.c (def_fn_type): Likewise.
6461 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
6462 * emit-rtl.c (gen_rtvec): Likewise.
6463 * lto/lto-lang.c (def_fn_type): Likewise.
6465 2011-03-25 Richard Guenther <rguenther@suse.de>
6467 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
6468 also generate copies.
6469 (fini_copy_prop): Handle constant values properly.
6471 2011-03-25 Jakub Jelinek <jakub@redhat.com>
6473 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
6474 mode size instead of bitsize with DWARF2_ADDR_SIZE.
6475 (hash_loc_operands, compare_loc_operands): Handle
6476 DW_OP_GNU_entry_value.
6478 2011-03-25 Kai Tietz <ktietz@redhat.com>
6480 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
6481 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
6482 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
6483 comment and use macro TARGET_64BIT_MS_ABI instead.
6484 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
6485 and change default behavior for 32-bit MS_ABI.
6486 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
6487 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
6489 (ix86_cfun_abi): Likewise.
6490 (ix86_maybe_switch_abi): Adjust comment.
6491 (init_cumulative_args): Check for bit-ness in MS_ABI case.
6492 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
6493 instead of checking for SYSV_ABI.
6494 (ix86_nsaved_sseregs): Likewise.
6495 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
6497 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
6498 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
6499 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
6500 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
6501 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
6503 2011-03-25 Richard Guenther <rguenther@suse.de>
6505 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
6506 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
6507 (verify_gimple): Remove.
6508 * tree-cfg.c (verify_gimple_call): Merge verification
6510 (verify_gimple_phi): Merge verification from verify_stmts.
6511 (verify_gimple_label): New function.
6512 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
6513 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
6514 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
6515 (verify_stmts): Rename to verify_gimple_in_cfg.
6516 (verify_gimple_in_cfg): New function.
6517 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
6518 * tree-ssa.c (verify_ssa): Likewise.
6519 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
6521 2011-03-25 Richard Guenther <rguenther@suse.de>
6523 * passes.c (init_optimization_passes): Add FRE pass after
6526 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
6527 Andrew Stubbs <ams@codesourcery.com>
6529 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
6531 (arm_movdi_vfp_cortexa8): New pattern.
6532 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
6533 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
6534 instructions when tuning for Cortex-A8. Set attribute "arch".
6535 * config/arm/arm.md: Move include arm-tune.md up a bit.
6536 (define_attr "arch"): Add "onlya8" and "nota8" values.
6537 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
6539 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
6543 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
6545 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
6546 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
6547 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
6548 * passes.c (init_optimization_passes): Move
6549 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
6551 2011-03-25 Kai Tietz <ktietz@redhat.com>
6553 * c-typeck.c (comptypes_internal): Replace target
6554 hook call of comp_type_attributes by version in tree.c file.
6555 * gimple.c (gimple_types_compatible_p_1): Likewise.
6556 * tree-ssa.c (useless_type_conversion_p): Likewise.
6557 * tree.c (build_type_attribute_qual_variant): Likewise.
6558 (attribute_value_equal): New static helper function.
6559 (comp_type_attributes): New function.
6560 (merge_attributes): Use attribute_value_equal for comparison.
6561 (attribute_list_contained): Likewise.
6562 * tree.h (comp_type_attributes): New prototype.
6564 2011-03-25 Richard Guenther <rguenther@suse.de>
6566 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
6567 of complex types at -O0.
6568 (verify_gimple_assign_binary): Likewise.
6569 (verify_gimple_assign_ternary): Likewise.
6571 2011-03-24 Mark Wielaard <mjw@redhat.com>
6573 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
6574 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6576 2011-03-24 Mark Wielaard <mjw@redhat.com>
6579 * dwarf2out.c (output_abbrev_section): Only write table when
6580 abbrev_die_table_in_use > 1.
6582 2011-02-24 Richard Henderson <rth@redhat.com>
6584 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
6585 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
6586 (alpha_expand_unaligned_load_words): Use extql.
6587 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
6588 (emit_insxl): Handle all modes for consistency.
6590 2011-02-24 Richard Henderson <rth@redhat.com>
6592 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
6593 (alpha_expand_unaligned_load): Likewise.
6594 (alpha_expand_unaligned_store): Likewise.
6595 (alpha_expand_unaligned_load_words): Likewise.
6596 (alpha_expand_unaligned_store_words): Likewise.
6597 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
6598 (alpha_split_lock_test_and_set_12): Likewise.
6599 (print_operand, alpha_fold_builtin_extxx): Likewise.
6600 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
6601 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
6602 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
6603 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
6604 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
6605 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
6606 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
6607 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
6608 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
6609 (extwl, extll, extql): Similarly.
6610 (inswh, inslh, insqh): Similarly.
6611 (mskbl, mskwl, mskll, mskql): Similarly.
6612 (mskwh, msklh, mskqh): Similarly.
6614 2011-02-24 Richard Henderson <rth@redhat.com>
6616 * config/alpha/alpha.md (attribute isa): Add er, ner.
6617 (attribute enabled): Handle them.
6618 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
6620 2011-02-24 Richard Henderson <rth@redhat.com>
6622 * config/alpha/alpha.md (attribute isa): Add vms.
6623 (attribute enabled): Handle it.
6624 (*movsf): Merge *movsf_{nofix,fix,nofp}.
6625 (*movdf): Merge *movdf_{nofix,fix,nofp}.
6626 (*movtf): Rename from *movtf_internal for consistency.
6627 (*movsi): Merge with *movsi_nt_vms.
6628 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
6629 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
6630 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
6631 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
6633 2011-02-24 Richard Henderson <rth@redhat.com>
6635 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
6636 (extendqisi2, extendhisi2): Likewise.
6637 (extendqidi2): Simplify BWX/non-BWX expansions.
6638 (extendhidi2): Similarly.
6640 2011-02-24 Richard Henderson <rth@redhat.com>
6642 * config/alpha/alpha.md (attribute isa): New.
6643 (attribute enabled): New.
6644 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
6645 (zero_extendqisi2, zero_extendqidi2): Similarly.
6646 (zero_extendhisi2, zero_extendhidi2): Similarly.
6647 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
6649 2011-02-24 Richard Henderson <rth@redhat.com>
6651 * config/alpha/predicates.md (input_operand): Revert last change;
6652 update comment to mention 32-bit VMS rather than Windows.
6654 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
6656 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
6657 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
6658 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
6659 * passes.c (init_optimization_passes): Move
6660 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
6662 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
6664 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
6666 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
6668 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
6671 2011-03-24 Jakub Jelinek <jakub@redhat.com>
6674 * simplify-rtx.c (simplify_const_unary_operation): Call
6675 real_convert when changing mode class with FLOAT_EXTEND.
6677 2011-03-24 Nick Clifton <nickc@redhat.com>
6679 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
6680 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
6681 * config/rx/rx.c (rx_option_override): Set align_jumps,
6682 align_loops and align_labels if not set by the user.
6683 (rx_align_for_label): New function.
6684 (rx_max_skip_for_label): New function.
6685 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
6686 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
6687 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
6688 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
6689 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
6691 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
6693 PR rtl-optimization/48263
6694 * optabs.c (expand_binop_directly): Reinstate convert_modes code
6695 and original commutative_p handling. Use maybe_gen_insn.
6697 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6699 * reload.c (find_reloads_subreg_address): Add address_reloaded
6700 parameter and return true there if the full address has been
6702 (find_reloads_toplev): Pass address_reloaded flag.
6703 (find_reloads_address_1): Don't use address_reloaded parameter.
6705 2011-03-24 Jeff Law <law@redhat.com>
6707 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
6708 unused variable "ann".
6709 (remove_unused_locals): Likewise.
6711 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
6714 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
6717 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6719 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
6720 for invalid symbolic addresses.
6721 (s390_secondary_reload): Don't use s390_check_symref_alignment for
6724 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
6726 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
6727 the argument in calls to fold_truth_not_expr.
6729 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
6731 * tree.c (record_node_allocation_statistics): New function.
6732 (make_node_stat, copy_node_stat, build_string): Call it.
6733 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
6734 (build1_stat, build_omp_clause): Likewise.
6736 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
6738 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
6741 2011-03-24 Richard Guenther <rguenther@suse.de>
6743 PR tree-optimization/48271
6744 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
6745 blocks that still exist.
6747 2011-03-24 Richard Guenther <rguenther@suse.de>
6749 PR tree-optimization/48270
6750 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
6751 not free datarefs before ddrs.
6753 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
6755 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
6756 from the address built for a reference with variable offset.
6758 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
6761 * config/i386/i386.md (*movdf_internal_rex64): Do not split
6762 alternatives that can be handled with movq or movabsq insn.
6763 (*movdf_internal): Disable for !TARGET_64BIT.
6764 (*movdf_internal_nointeger): Ditto.
6765 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
6767 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
6769 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
6770 (FUNCTION_ARG_ADVANCE): Likewise.
6771 * tm.texi.in: Change references to them to hook references.
6772 * tm.texi: Regenerate.
6773 * targhooks.c (default_function_arg): Eliminate check for target macro.
6774 (default_function_incoming_arg): Likewise.
6775 (default_function_arg_advance): Likewise.
6776 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
6777 (function_arg_advance): Likewise.
6778 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
6780 2011-03-24 Richard Guenther <rguenther@suse.de>
6783 * tree-object-size.c (addr_object_size): Do not double-account
6784 for MEM_REF offsets.
6786 2011-03-24 Diego Novillo <dnovillo@google.com>
6788 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
6789 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
6790 (lto_input_data_block): Move from lto-opts.c. Make extern.
6792 (lto_input_string): Rename from input_string. Make extern.
6794 * lto-streamer-out.c (lto_output_string_with_length): Rename from
6795 output_string_with_length.
6796 Output 0 to indicate a non-NULL string. Update all callers to
6798 (lto_output_string): Rename from output_string. Make extern.
6800 (lto_output_decl_state_streams): Make extern.
6801 (lto_output_decl_state_refs): Make extern.
6802 * lto-streamer.h (lto_input_string): Declare.
6803 (lto_input_data_block): Declare.
6804 (lto_output_string): Declare.
6805 (lto_output_string_with_length): Declare.
6806 (lto_output_decl_state_streams): Declare.
6807 (lto_output_decl_state_refs): Declare.
6809 2011-03-24 Richard Guenther <rguenther@suse.de>
6811 PR tree-optimization/46562
6812 * tree.c (build_invariant_address): New function.
6813 * tree.h (build_invariant_address): Declare.
6814 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
6815 a renamed function moved ...
6816 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
6817 Take valueization callback parameter.
6818 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
6819 * gimple-fold.h: New file.
6820 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
6821 (ccp_fold, fold_const_aggregate_ref,
6822 fold_ctor_reference, fold_nonarray_ctor_reference,
6823 fold_array_ctor_reference, fold_string_cst_ctor_reference,
6824 get_base_constructor): Move ...
6825 * gimple-fold.c: ... here.
6826 (gimple_fold_stmt_to_constant_1): New function
6827 split out from ccp_fold. Take a valueization callback parameter.
6828 Valueize all operands.
6829 (gimple_fold_stmt_to_constant): New wrapper function.
6830 (fold_const_aggregate_ref_1): New function split out from
6831 fold_const_aggregate_ref. Take a valueization callback parameter.
6832 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
6833 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
6834 invariant POINTER_PLUS_EXPRs to invariant form.
6835 (vn_valueize): New function.
6836 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
6837 * tree-vrp.c (vrp_valueize): New function.
6838 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
6839 to fold statements to constants.
6840 * tree-ssa-pre.c (eliminate): Properly guard propagation of
6841 function declarations.
6842 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
6843 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
6845 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
6847 * config/h8300/predicates.md (jump_address_operand): Fix register
6850 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
6852 * doc/invoke.texi (max-stores-to-sink): Document.
6853 * params.h (MAX_STORES_TO_SINK): Define.
6854 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
6855 if either vectorization or if-conversion is disabled.
6856 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
6857 tree-vect-data-refs.c vect_equal_offsets.
6858 (dr_equal_offsets_p): New function.
6859 (find_data_references_in_bb): Remove static.
6860 * tree-data-ref.h (find_data_references_in_bb): Declare.
6861 (dr_equal_offsets_p): Likewise.
6862 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
6863 (vect_drs_dependent_in_basic_block): Update calls to
6865 (vect_check_interleaving): Likewise.
6866 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
6867 (cond_if_else_store_replacement): Rename to...
6868 (cond_if_else_store_replacement_1): ... this. Change arguments and
6870 (cond_if_else_store_replacement): New function.
6871 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
6872 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
6874 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
6877 * config/arm/arm.md (casesi): Use the gen_int_mode() function
6878 to subtract lower bound instead of GEN_INT().
6880 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
6885 * doc/extend.texi (Alignment): Move section to match order in TOC.
6886 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
6887 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
6889 2011-03-23 Jeff Law <law@redhat.com>
6891 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
6892 before removing the edge.
6894 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
6895 it may have been freed by redirect_branch_edge or
6896 redirect_edge_succ_nodup.
6898 2011-03-23 Richard Guenther <rguenther@suse.de>
6900 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
6901 (check_va_list_escapes): Likewise.
6902 (check_all_va_list_escapes): Likewise.
6904 2011-03-23 Richard Guenther <rguenther@suse.de>
6906 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
6907 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
6908 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
6909 (alias.o): Likewise.
6910 (ipa-type-escape.o): Remove.
6911 (ipa-struct-reorg.o): Likewise.
6912 (GTFILES): Remove ipa-struct-reorg.c.
6913 * alias.c: Do not include ipa-type-escape.h.
6914 * tree-ssa-alias.c: Likewise.
6915 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
6916 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
6917 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
6918 and ipa-type-escape passes.
6919 * tree-pass.h (pass_ipa_type_escape): Remove.
6920 (pass_ipa_struct_reorg): Likewise.
6921 * ipa-struct-reorg.h: Remove.
6922 * ipa-struct-reorg.c: Likewise.
6923 * ipa-type-escape.h: Likewise.
6924 * ipa-type-escape.c: Likewise.
6925 * doc/invoke.texi (-fipa-struct-reorg): Remove.
6926 (--param struct-reorg-cold-struct-ratio): Likewise.
6927 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
6928 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
6929 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
6931 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6933 * config/s390/2084.md: Enable all insn reservations also for z9_ec
6934 cpu attribute value.
6935 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
6936 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
6937 * config/s390/s390.c (processor_flags_table): New constant array.
6938 (s390_handle_arch_option): Remove.
6939 (s390_handle_option): Remove s390_handle_arch_option invocations
6940 and OPT_mwarn_framesize_ handling.
6941 (s390_option_override): Remove s390_handle_arch_option invocation.
6942 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
6944 * config/s390/s390.md (cpu attribute): Add z9_ec value.
6945 * config/s390/s390.opt (s390_tune, s390_arch)
6946 (march=): Replace s390_arch_option enum and values with
6947 processor_type. Set variable name to s390_arch. Set
6948 initialization value.
6949 (mtune=): Replace s390_arch_option with processor_type. Set
6950 variable name to s390_tune. Set initialization value.
6952 2011-03-23 Julian Brown <julian@codesourcery.com>
6954 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
6955 accesses which are not naturally aligned.
6957 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
6960 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
6962 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
6964 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
6965 parameter from "int" to "enum insn_code".
6966 (expand_operand_type): New enum.
6967 (expand_operand): New structure.
6968 (create_expand_operand): New function.
6969 (create_fixed_operand, create_output_operand): Likewise
6970 (create_input_operand, create_convert_operand_to): Likewise.
6971 (create_convert_operand_from, create_address_operand): Likewise.
6972 (create_integer_operand): Likewise.
6973 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
6974 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
6975 (expand_insn, expand_jump_insn): Likewise.
6976 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
6977 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
6978 (expand_movstr, expand_builtin___clear_cache): Likewise.
6979 (expand_builtin_lock_release): Likewise.
6980 * explow.c (allocate_dynamic_stack_space): Likewise.
6981 (probe_stack_range): Likewise. Allow check_stack to FAIL,
6982 and use the default handling in that case.
6983 * expmed.c (check_predicate_volatile_ok): Delete.
6984 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
6985 (emit_cstore): Likewise.
6986 * expr.c (emit_block_move_via_movmem): Likewise.
6987 (set_storage_via_setmem, expand_assignment): Likewise.
6988 (emit_storent_insn, try_casesi): Likewise.
6989 (emit_single_push_insn): Likewise. Allow the expansion to fail.
6990 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
6991 (expand_vec_shift_expr, expand_binop_directly): Likewise.
6992 (expand_twoval_unop, expand_twoval_binop): Likewise.
6993 (expand_unop_direct, emit_indirect_jump): Likewise.
6994 (emit_conditional_move, vector_compare_rtx): Likewise.
6995 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
6996 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
6997 (expand_sync_lock_test_and_set): Likewise.
6998 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
6999 (emit_unop_insn): Likewise.
7000 (expand_copysign_absneg): Change icode to an insn_code.
7001 (create_convert_operand_from_type): New function.
7002 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
7003 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7004 (expand_insn, expand_jump_insn): Likewise.
7005 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
7006 than const_int_operand for operand 2.
7008 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7010 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
7013 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7015 * emit-rtl.c (emit_pattern_before_noloc): New function.
7016 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
7017 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
7018 (emit_pattern_after_noloc): New function.
7019 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
7020 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
7022 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7024 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
7025 (__ffsDI2): Likewise.
7027 2011-03-22 Richard Henderson <rth@redhat.com>
7029 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
7030 of !TARGET_ABI_OPEN_VMS.
7031 (alpha_trampoline_init, alpha_start_function): Likewise.
7032 (alpha_expand_epilogue, alpha_file_start): Likewise.
7033 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
7034 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
7035 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
7036 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
7037 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
7039 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7041 * config/s390/s390-opts.h: New.
7042 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
7043 s390_arch_flags, s390_warn_framesize, s390_stack_size,
7044 s390_stack_guard): Remove.
7045 (s390_handle_arch_option): Return void. Take enum
7046 s390_arch_option value instead of string and searching array.
7047 (s390_handle_option): Don't assert that global structures are in
7048 use. Access variables via opts pointer. Use error_at. Don't use
7049 sscanf for -mstack-guard= or -mstack-size=. Update call to
7050 s390_handle_arch_option.
7051 (s390_option_override): Update call to s390_handle_arch_option.
7052 (s390_emit_prologue): Use %d format for s390_stack_size in
7053 diagnostic. Use %wd for HOST_WIDE_INT.
7054 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
7055 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
7056 * config/s390/s390.opt (config/s390/s390-opts.h): New
7057 HeaderInclude entry.
7058 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
7059 s390_arch_flags, s390_warn_framesize): New Variable entries.
7060 (s390_arch_option): New Enum and EnumValue entries.
7061 (march=): Use Enum instead of Var.
7062 (mstack-guard=, mstack-size=): Use UInteger and Var.
7065 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7067 * config/score/score.c (score_handle_option): Don't assert that
7068 global structures are in use. Access target_flags via opts
7069 pointer. Use value of -march= option to determine target_flags
7071 * config/score/score.opt (march=): Use Enum.
7072 (score_arch): New Enum and EnumValue entries.
7074 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7076 * config/mep/mep.c (option_mtiny_specified): Remove.
7077 (mep_option_override): Move register handling for -mivc2 from
7078 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
7079 instead of option_mtiny_specified.
7080 (mep_handle_option): Access target_flags via opts pointer. Don't
7081 assert that global structures are in use. Defer part of -mivc2
7082 handling and move it to mep_option_override.
7083 * config/mep/mep.opt (IVC2): New Mask entry.
7084 (mivc2): Use Var and Defer instead of Mask.
7086 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7088 * config/v850/v850-opts.h: New.
7089 * config/v850/v850.c (small_memory): Replace with
7090 small_memory_physical_max array. Make that array static const.
7091 (v850_handle_memory_option): Take integer value of argument. Take
7092 gcc_options pointer, option text and location. Return void.
7093 Update for changes to small memory structures.
7094 (v850_handle_option): Access target_flags via opts pointer. Don't
7095 assert that global structures are in use. Update calls to
7096 v850_handle_memory_option.
7097 (v850_encode_data_area): Update references to small memory settings.
7098 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
7099 (enum small_memory_type): Move to v850-opts.h.
7100 * config/v850/v850.opt (config/v850/v850-opts.h): New
7101 HeaderInclude entry.
7102 (small_memory_max): New Variable entry.
7103 (msda): Replace by pair of options msda= and msda-. Use UInteger.
7104 (mtda, mzda): Likewise.
7106 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7108 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
7109 pointer. Don't assert that global structures are in use.
7111 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7113 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
7114 via opts pointer. Don't assert that global structures are in use.
7116 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7118 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
7119 (munix=93): Use Var.
7120 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
7121 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
7122 * config/pa/pa-opts.h: New.
7123 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
7124 (pa_handle_option): Don't assert that global structures are in
7125 use. Access target_flags via opts pointer. Don't handle
7126 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
7128 (pa_option_override): Handle deferred OPT_mfixed_range_.
7130 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7132 * config/mn10300/mn10300-opts.h: New.
7133 * config/mn10300/mn10300.c (mn10300_processor,
7134 mn10300_tune_string): Remove.
7135 (mn10300_handle_option): Don't assert that global structures are
7136 in use. Access mn10300_processor via opts pointer. Don't handle
7138 * config/mn10300/mn10300.h (enum processor_type): Move to
7140 (mn10300_processor): Remove.
7141 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
7142 HeaderInclude entry.
7143 (mn10300_processor): New Variable entry.
7146 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7148 * config/microblaze/microblaze.c: Don't include opts.h.
7149 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
7150 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
7151 (mno-clearbss): Use Var and Warn.
7153 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7155 * config/m32r/m32r-opts.h: New.
7156 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
7157 (m32r_handle_option): Don't assert that global structures are in
7158 use. Access target_flags and m32r_cache_flush_func via opts
7159 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
7160 OPT_mno_flush_trap here.
7161 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
7162 include of m32r-opts.h.
7163 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
7164 HeaderInclude entry.
7165 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
7166 (mmodel=): Use Enum and Var.
7167 (m32r_model): New Enum and EnumValue entries.
7168 (mno-flush-trap): Use Var.
7169 (msdata=): Use Enum and Var.
7170 (m32r_sdata): New Enum and EnumValue entries.
7172 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7174 * config/m32c/m32c.c: Don't include opts.h.
7175 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
7176 m32c_handle_option): Remove.
7177 (m32c_option_override): Check global_options_set.x_target_memregs
7178 instead of target_memregs_set.
7179 * config/m32c/m32c.h (target_memregs): Remove.
7180 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
7183 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7185 * config/iq2000/iq2000-opts.h: New.
7186 * config/iq2000/iq2000.c: Don't include opts.h.
7187 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
7188 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
7189 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
7190 HeaderInclude entry.
7191 (iq2000_tune): New Variable entry.
7192 (march=): Add comment. Use Enum.
7193 (iq2000_arch): New Enum and EnumValue entries.
7194 (mcpu=): Use Enum and Var.
7195 (iq2000_tune): New Enum and EnumValue entries.
7197 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7199 * config/ia64/ia64-opts.h: New.
7200 * config/ia64/ia64.c (ia64_tune): Remove.
7201 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
7203 (ia64_option_override): Handle deferred OPT_mfixed_range_.
7204 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
7205 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
7206 HeaderInclude entry.
7207 (ia64_tune): New Variable entry.
7208 (mfixed-range=): Use Defer and Var.
7209 (mtune=): Use Enum and Var.
7210 (ia64_tune): New Enum and EnumValue entries.
7212 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7214 * config/frv/frv-opts.h: New.
7215 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
7217 (frv_cpu_type): Remove.
7218 * config/frv/frv.c: Don't include opts.h.
7219 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
7220 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
7221 (frv_cpu_type): New Variable entry.
7222 (frv_cpu): New Enum and EnumValue entries.
7224 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7226 * config/cris/cris.c (cris_handle_option): Access target_flags via
7227 opts pointer. Don't assert that global structures are in use.
7228 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
7229 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
7231 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7233 * config/bfin/bfin-opts.h: New.
7234 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
7235 bfin_si_revision, bfin_workarounds): Remove.
7236 (bfin_cpus): Make static const.
7237 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
7238 not bfin_lib_id_given.
7239 (bfin_handle_option): Don't set bfin_lib_id_given. Access
7240 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
7241 pointer. Use error_at. Don't assert that global structures are in use.
7242 * config/bfin/bfin.h: Include bfin-opts.h.
7243 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
7244 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
7245 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
7246 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
7249 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7251 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
7252 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
7253 or -msoft-float here.
7254 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
7255 -msoft-float and -mhard-float.
7256 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
7257 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7259 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
7261 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
7262 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
7264 (LIBGCC_SPEC): Don't handle -msoft-float.
7265 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
7267 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7269 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
7270 -mfloat-abi=*, not -msoft-float and -mhard-float.
7271 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
7273 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
7274 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
7275 mhard-float and msoft-float.
7276 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
7277 mfloat-abi=soft in comments, not mhard-float and msoft-float.
7278 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7279 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
7281 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
7282 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
7284 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
7286 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
7289 2011-03-22 Richard Henderson <rth@redhat.com>
7291 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
7292 TARGET_ABI_WINDOWS_NT.
7293 (alpha_output_function_end_prologue): Likewise.
7294 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
7295 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
7296 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
7297 (trap, *movsi_nt_vms): Likewise.
7298 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
7299 (*tablejump_osf_nt_internal): Remove.
7300 * config/alpha/predicates.md (input_operand): Only test Pmode.
7302 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7304 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
7305 via opts pointer. Use error_at. Don't assert that global
7306 structures are in use.
7308 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7310 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
7311 (ix86_handle_option): Access ix86_isa_flags and
7312 ix86_isa_flags_explicit via opts pointer. Don't assert that
7313 global structures are in use.
7314 (ix86_function_specific_save, ix86_function_specific_restore):
7315 Update ix86_isa_flags_explicit field name.
7316 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
7317 (ix86_isa_flags_explicit): Rename TargetSave entry to
7318 x_ix86_isa_flags_explicit.
7320 2011-03-22 Richard Henderson <rth@redhat.com>
7322 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
7323 (alpha_option_override, direct_return): Likewise.
7324 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
7325 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
7326 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
7327 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7328 (alpha_expand_epilogue, alpha_end_function): Likewise.
7329 (alpha_init_libfuncs): Likewise.
7330 (struct machine_function): Remove unicosmk members.
7331 (print_operand) ['t']: Remove.
7332 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
7333 unicosmk_output_module_name, unicosmk_output_common,
7334 current_section_align, unicosmk_output_text_section_asm_op,
7335 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
7336 unicosmk_section_type_flags, unicosmk_unique_section,
7337 unicosmk_asm_named_section, unicosmk_insert_attributes,
7338 unicosmk_output_align, unicosmk_defer_case_vector,
7339 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
7340 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
7341 unicosmk_output_ssib, unicosmk_add_call_info_word,
7342 unicosmk_extern_head, unicosmk_output_default_externs,
7343 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
7344 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
7345 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
7346 * config/alpha/alpha-protos.h: Update.
7347 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
7348 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
7349 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
7350 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
7351 (*mulsi_se, mulvsi3): Likewise.
7352 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
7353 (*divmodsi_internal, call, call_value, realign): Likewise.
7354 (moddi3, umoddi3): Likewise; remove duplicate expander.
7355 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
7356 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
7357 (*movdi_nofix): Remove r/U alternative.
7358 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
7359 * config/alpha/constraints.md ("U"): Remove.
7360 * config/alpha/predicates.md (call_operand"): Don't test
7361 TARGET_ABI_UNICOSMK.
7363 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7365 * target.def (handle_option): Take gcc_options and
7366 cl_decoded_option pointers and location_t.
7367 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
7368 * doc/tm.texi: Regenerate.
7369 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
7370 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
7371 * lto-opts.c (lto_reissue_options): Generate option structure for
7372 targetm.handle_option call.
7373 * opts.c (target_handle_option): Update call to
7374 targetm.handle_option. Remove assertions about values now passed
7376 * targhooks.c (default_target_handle_option): New.
7377 * targhooks.h (default_target_handle_option): Declare.
7378 * config/alpha/alpha.c: Include opts.h.
7379 (alpha_handle_option): Update to new hook interface.
7380 * config/arm/arm.c: Include opts.h.
7381 (arm_handle_option): Update to new hook interface.
7382 * config/arm/t-arm (arm.o): Update dependencies.
7383 * config/bfin/bfin.c: Include opts.h.
7384 (bfin_handle_option): Update to new hook interface.
7385 * config/cris/cris.c: Include opts.h.
7386 (cris_handle_option): Update to new hook interface.
7387 * config/frv/frv.c: Include opts.h.
7388 (frv_handle_option): Update to new hook interface.
7389 * config/i386/i386.c: Include opts.h.
7390 (ix86_handle_option): Update to new hook interface.
7391 (ix86_valid_target_attribute_inner_p): Generate option structure
7392 for call to ix86_handle_option.
7393 * config/i386/t-i386 (i386.o): Update dependencies.
7394 * config/ia64/ia64.c: Include opts.h.
7395 (ia64_handle_option): Update to new hook interface.
7396 * config/ia64/t-ia64 (ia64.o): Update dependencies.
7397 * config/iq2000/iq2000.c: Include opts.h.
7398 (iq2000_handle_option): Update to new hook interface.
7399 * config/m32c/m32c.c: Include opts.h.
7400 (m32c_handle_option): Update to new hook interface.
7401 * config/m32r/m32r.c: Include opts.h.
7402 (m32r_handle_option): Update to new hook interface.
7403 * config/m68k/m68k.c: Include opts.h.
7404 (m68k_handle_option): Update to new hook interface.
7405 * config/mep/mep.c: Include opts.h.
7406 (mep_handle_option): Update to new hook interface.
7407 * config/microblaze/microblaze.c: Include opts.h.
7408 (microblaze_handle_option): Update to new hook interface.
7409 * config/mips/mips.c: Include opts.h.
7410 (mips_handle_option): Update to new hook interface.
7411 * config/mn10300/mn10300.c: Include opts.h.
7412 (mn10300_handle_option): Update to new hook interface.
7413 * config/pa/pa.c: Include opts.h.
7414 (pa_handle_option): Update to new hook interface.
7415 * config/pdp11/pdp11.c: Include opts.h.
7416 (pdp11_handle_option): Update to new hook interface.
7417 * config/rs6000/rs6000.c: Include opts.h.
7418 (rs6000_handle_option): Update to new hook interface.
7419 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
7420 * config/rx/rx.c: Include opts.h.
7421 (rx_handle_option): Update to new hook interface.
7422 * config/s390/s390.c: Include opts.h.
7423 (s390_handle_option): Update to new hook interface.
7424 * config/score/score.c: Include opts.h.
7425 (score_handle_option): Update to new hook interface.
7426 * config/sh/sh.c: Include opts.h.
7427 (sh_handle_option): Update to new hook interface.
7428 * config/sparc/sparc.c: Include opts.h.
7429 (sparc_handle_option): Update to new hook interface.
7430 * config/v850/v850.c: Include opts.h.
7431 (v850_handle_option): Update to new hook interface.
7433 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7435 * gcc.c (driver_unknown_option_callback): Only permit and save
7436 unknown -Wno- options.
7437 (driver_wrong_lang_callback): Save options directly instead of via
7438 driver_unknown_option_callback.
7440 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
7442 * combine.c (simplify_set): Try harder to find the best CC mode when
7443 simplifying a nested COMPARE on the RHS.
7445 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7447 * config/alpha/gnu.h: Remove.
7448 * config/arc: Remove directory.
7449 * config/arm/netbsd.h: Remove.
7450 * config/arm/t-pe: Remove.
7451 * config/crx: Remove directory.
7452 * config/i386/netbsd.h: Remove.
7453 * config/m68hc11: Remove directory.
7454 * config/m68k/uclinux-oldabi.h: Remove.
7455 * config/mcore/mcore-pe.h: Remove.
7456 * config/mcore/t-mcore-pe: Remove.
7457 * config/netbsd-aout.h: Remove.
7458 * config/rs6000/gnu.h: Remove.
7459 * config/sh/sh-symbian.h: Remove.
7460 * config/sh/symbian-base.c: Remove.
7461 * config/sh/symbian-c.c: Remove.
7462 * config/sh/symbian-cxx.c: Remove.
7463 * config/sh/symbian-post.h: Remove.
7464 * config/sh/symbian-pre.h: Remove.
7465 * config/sh/t-symbian: Remove.
7466 * config/svr3.h: Remove.
7467 * config/vax/netbsd.h: Remove.
7468 * config.build: Don't handle i[34567]86-*-pe.
7469 * config.gcc: Remove handling of deprecations for most deprecated
7471 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
7472 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
7473 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
7474 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
7475 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
7476 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
7478 * config.host: Don't handle i[34567]86-*-pe.
7479 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
7480 (ASM_SPEC32): Don't handle -mcall-gnu.
7481 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
7483 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
7484 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
7485 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
7486 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
7487 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
7488 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
7489 conditional on SYMBIAN.
7490 * configure.ac: Don't handle powerpc*-*-gnu*.
7491 * configure: Regenerate.
7492 * doc/extend.texi (interrupt attribute): Don't mention CRX.
7493 * doc/install-old.texi (m6811, m6812): Don't mention.
7494 * doc/install.texi (arc-*-elf*): Don't document multilib option.
7495 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
7496 (m68k-uclinuxoldabi): Don't mention.
7497 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
7499 (-mcall-gnu): Remove.
7500 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
7501 families): Remove constraint documentation.
7503 2011-03-22 Marius Strobl <marius@FreeBSD.org>
7505 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
7506 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
7507 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
7509 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
7512 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
7513 vector when peeking at the next token for vector, don't expand the
7516 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
7518 * config/avr/avr-protos.h (expand_epilogue): Change prototype
7519 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
7520 * config/avr/avr.c (init_cumulative_args)
7521 (avr_function_arg_advance): Use it.
7522 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
7524 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
7525 (avr_function_ok_for_sibcall): ...this new function.
7526 (avr_lookup_function_attribute1): New static Function.
7527 (avr_naked_function_p, interrupt_function_p)
7528 (signal_function_p, avr_OS_task_function_p)
7529 (avr_OS_main_function_p): Use it.
7530 * config/avr/avr.md ("sibcall", "sibcall_value")
7531 ("sibcall_epilogue"): New expander.
7532 ("*call_insn", "*call_value_insn"): New insn.
7533 ("call_insn", "call_value_insn"): Remove
7534 ("call", "call_value", "epilogue"): Change expander to handle
7537 2011-03-21 Nick Clifton <nickc@redhat.com>
7539 * doc/invoke.texi (Overall Options): Move closing brace to end of
7541 (Optimization Options): Add missing @gol.
7542 (Directory Options): Likewise.
7543 (i386 and x86-64 Options): Likewise.
7544 (RS6000 and PowerPC Options): Likewise.
7545 (i386 and x86-64 Windows Options): Likewise.
7546 (V850 Options): Add text missing from descriptions.
7548 2011-03-22 Richard Henderson <rth@redhat.com>
7550 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
7551 (avr_incoming_return_addr_rtx): New.
7552 (emit_push_byte): New.
7553 (expand_prologue): Use it. Remove incorrect dwarf annotation for
7554 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
7555 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
7556 (emit_pop_byte): New.
7557 (expand_epilogue): Use it. Pop frame pointer by bytes.
7558 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
7559 (INCOMING_RETURN_ADDR_RTX): New.
7560 (INCOMING_FRAME_SP_OFFSET): New.
7561 (ARG_POINTER_CFA_OFFSET): New.
7562 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
7563 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
7566 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
7568 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7570 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7571 (FUNCTION_ARG_ADVANCE): Likewise.
7572 * tm.texi.in: Change references to them to hook references.
7573 * tm.texi: Regenerate.
7574 * targhooks.c (default_function_arg): Eliminate check for target
7576 (default_function_incoming_arg): Likewise.
7577 (default_function_arg_advance): Likewise.
7578 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7579 (function_arg_advance): Likewise.
7580 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7582 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7584 * tree.c (build_call_1): New function.
7585 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
7587 2011-03-22 Richard Guenther <rguenther@suse.de>
7589 PR tree-optimization/48228
7590 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
7591 for single-arg PHIs.
7593 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
7595 PR rtl-optimization/48143
7596 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
7597 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
7598 sse2_cvtps2pd): Likewise.
7600 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7602 * recog.c (canonicalize_change_group): Use validate_unshare_change.
7604 2011-03-22 Richard Guenther <rguenther@suse.de>
7606 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
7607 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
7608 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
7609 and REALIGN_LOAD_EXPR.
7610 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
7611 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
7612 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
7613 DOT_PROD_EXPR case ...
7614 (expand_expr_real_2): ... here.
7615 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
7616 and REALIGN_LOAD_EXPR.
7617 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
7618 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
7619 (vect_create_epilog_for_reduction): Likewise.
7620 (vectorizable_reduction): Likewise.
7621 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
7622 * tree-vect-stmts.c (vectorizable_load): Likewise.
7624 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
7626 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
7628 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7630 * config/s390/s390.c (s390_delegitimize_address): Fix offset
7631 handling for PLTOFF/GOTOFF.
7633 2011-03-22 Nick Clifton <nickc@redhat.com>
7635 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
7636 trailing backslash from the end of the macro definition.
7638 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7640 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
7643 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
7645 * expr.h (prepare_operand): Move to...
7646 * optabs.h (prepare_operand): ...here and change the insn code
7647 parameter from "int" to "enum insn_code".
7648 (insn_operand_matches): Declare.
7649 * expr.c (init_expr_target): Use insn_operand_matches.
7650 (compress_float_constant): Likewise.
7651 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
7652 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
7653 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
7654 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
7656 (gen_cond_trap): Likewise.
7657 (prepare_operand): Likewise. Change icode to an insn_code.
7658 (insn_operand_matches): New function.
7659 * reload.c (find_reloads_address_1): Use insn_operand_matches.
7660 * reload1.c (gen_reload): Likewise.
7661 * targhooks.c (default_secondary_reload): Likewise.
7663 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
7665 * config/alpha/alpha.md (unspec): New define_c_enum.
7668 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
7671 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
7672 between a call and its CALL_ARG_LOCATION note.
7674 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
7676 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
7678 2011-03-21 Jakub Jelinek <jakub@redhat.com>
7682 * c-common.c (shorten_compare): If primopN is first sign-extended
7683 to opN and then zero-extended to result type, set primopN to opN.
7685 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
7687 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
7688 for barrier handlers.
7690 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
7692 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
7693 UNSPEC constants to be in the unspec enumeration, and redefine
7694 all UNSPECV constants to be in the unspecv enumeration, so that
7695 dumps print which unspec/unspec_volatile this is.
7696 * config/rs6000/vector.md (UNSPEC_*): Ditto.
7697 * config/rs6000/paired.md (UNSPEC_*): Ditto.
7698 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
7699 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
7700 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
7702 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
7703 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
7704 UNSPECV_LWSYNC, since these are used as unspec_volatile.
7705 * config/rs6000/sync.md (isync, lwsync): Ditto.
7707 2011-03-21 Richard Guenther <rguenther@suse.de>
7709 * params.def (lto-min-partition): Fix typo.
7711 2011-03-21 Richard Guenther <rguenther@suse.de>
7714 * c-decl.c (grokdeclarator): Drop to the main variant only
7715 for array types. Drop flag_gen_aux_info check.
7717 2011-03-21 Richard Guenther <rguenther@suse.de>
7719 PR translation/47911
7720 * params.def (lto-partitions): Fix typo.
7721 (lto-min-partition): Fix wording.
7723 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
7725 * config/rs6000/t-freebsd: Remove duplication from file.
7727 2011-03-21 Richard Guenther <rguenther@suse.de>
7730 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
7732 2011-03-21 Richard Guenther <rguenther@suse.de>
7735 * params.def (lto-partitions): Require at least 1 partition.
7737 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7739 * gthr-solaris.h: Remove.
7740 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
7741 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
7742 (LIB_SPEC): Likewise.
7743 * config/sol2.opt (threads): Remove.
7744 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
7745 (sparc*-*-solaris2*): Likewise.
7746 * configure.ac (enable_threads): Enable solaris support.
7747 * configure: Regenerate.
7748 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
7749 * doc/install.texi (Configuration, --enable-threads=lib): Remove
7752 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7754 * config.gcc: Obsolete *-*-solaris2.8*.
7755 * doc/install.texi (Specific, *-*-solaris2*): Document it.
7757 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7760 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
7761 reference. Solaris 8 perl works.
7763 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7766 * doc/install.texi (Prerequisites): Move jar etc. up.
7767 Explain support library version requirements.
7769 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7772 * doc/install.texi (Prerequisites): Move Perl to build
7773 requirements. Always necessary on Solaris 2 with Sun ld.
7775 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7777 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
7779 (Specific, i?86-*-solaris2.[89]): Likewise.
7780 (Specific, i?86-*-solaris2.10): Likewise.
7781 (Specific, mips-sgi-irix6): Likewise.
7782 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
7783 Update for binutils 2.21.
7785 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7787 * configure.ac (gcc_cv_lto_plugin): Fix typo.
7788 Allow -fuse-linker-plugin for non-default plugin linker.
7789 * configure: Regenerate.
7791 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
7794 * gengtype.c (files_rules): Added rule for cp/parser.h.
7796 2011-03-21 Jakub Jelinek <jakub@redhat.com>
7799 * config/s390/s390.c (s390_delegitimize_address): Don't call
7800 lowpart_subreg if orig_x has BLKmode.
7802 2011-03-21 Kai Tietz <ktietz@redhat.com>
7805 * doc/plugins.texi: Adjust documentation for plugin register_callback.
7806 * tree.h (attribute_spec): Add new member affects_type_identity.
7807 * attribs.c (empty_attribute_table): Adjust attribute_spec
7809 * config/alpha/alpha.c: Likewise.
7810 * config/arc/arc.c: Likewise.
7811 * config/arm/arm.c: Likewise.
7812 * config/avr/avr.c: Likewise.
7813 * config/bfin/bfin.c: Likewise.
7814 * config/crx/crx.c: Likewise.
7815 * config/darwin.h: Likewise.
7816 * config/h8300/h8300.c: Likewise.
7817 * config/i386/cygming.h: Likewise.
7818 * config/i386/i386.c: Likewise.
7819 * config/ia64/ia64.c: Likewise.
7820 * config/m32c/m32c.c: Likewise.
7821 * config/m32r/m32r.c: Likewise.
7822 * config/m68hc11/m68hc11.c: Likewise.
7823 * config/m68k/m68k.c: Likewise.
7824 * config/mcore/mcore.c: Likewise.
7825 * config/mep/mep.c: Likewise.
7826 * config/microblaze/microblaze.c: Likewise.
7827 * config/mips/mips.c: Likewise.
7828 * config/rs6000/rs6000.c: Likewise.
7829 * config/rx/rx.c: Likewise.
7830 * config/sh/sh.c: Likewise.
7831 * config/sol2.h: Likewise.
7832 * config/sparc/sparc.c: Likewise.
7833 * config/spu/spu.c: Likewise.
7834 * config/stormy16/stormy16.c: Likewise.
7835 * config/v850/v850.c: Likewise.
7837 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
7839 * simplify-rtx.c (simplify_binary_operation_1): Handle
7840 (xor (and A B) C) case when B and C are both constants.
7842 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
7844 * tree-dfa.c (add_referenced_var): Fix typo in comment.
7846 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
7849 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
7851 2011-03-20 Jakub Jelinek <jakub@redhat.com>
7853 PR rtl-optimization/48156
7854 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
7855 assume df and df_lr are not NULL.
7857 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7860 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
7861 between a call and its CALL_ARG_LOCATION note.
7863 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
7866 * config/sh/sh.c (find_barrier): Don't emit a constant pool
7867 between a call and its corresponding CALL_ARG_LOCATION note.
7869 2011-03-19 Anatoly Sokolov <aesok@post.ru>
7871 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
7872 instead of loop. Use HARD_REGISTER_NUM_P predicate.
7873 * haifa-sched.c (setup_ref_regs): Ditto.
7874 * caller-save.c (add_used_regs_1): Ditto.
7875 * dse.c (look_for_hardregs): Ditto.
7876 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
7877 * sched-rgn.c (check_live_1): Ditto.
7879 2011-03-18 Joseph Myers <joseph@codesourcery.com>
7881 * c-decl.c (diagnose_mismatched_decls): Give an error for
7882 redefining a typedef with variably modified type.
7884 2011-03-18 Joseph Myers <joseph@codesourcery.com>
7886 * c-decl.c (grokfield): Don't allow typedefs for structures or
7887 unions with no tag by default.
7888 * doc/extend.texi (Unnamed Fields): Update.
7890 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
7892 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
7893 Rewrite using indirect functions.
7894 (lwp_slwpcb): Ditto.
7895 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
7896 (avx_vinsertf128<mode>): Ditto.
7898 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7900 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
7903 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7905 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
7906 splitting between a call and its corresponding CALL_ARG_LOCATION note.
7908 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
7910 PR rtl-optimization/48170
7911 * gcse.c (hoist_code): Remove bogus asserts.
7913 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
7915 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
7916 computation for prologue/epilogue.
7918 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7920 * Makefile.in (check-consistency): Remove.
7922 2011-03-18 Jakub Jelinek <jakub@redhat.com>
7925 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
7926 arange_table_in_use is 0, but either text_section_used or
7927 cold_text_section_used is true. Don't call it if
7928 !info_section_emitted.
7930 2011-03-18 Anatoly Sokolov <aesok@post.ru>
7932 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
7933 FUNCTION_VALUE_REGNO_P): Remove.
7934 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
7936 * config/avr/avr.c (avr_ret_register): Make static inline.
7937 (avr_function_value_regno_p): New function.
7938 (avr_libcall_value): Make static. Add 'func' argument.
7939 (avr_function_value): Make static. Rename 'func' argument to
7940 'fn_decl_or_type', forward it to avr_libcall_value. Call
7941 avr_ret_register function instead of RET_REGISTER macro.
7942 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
7944 2011-03-18 Jason Merrill <jason@redhat.com>
7947 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
7949 2011-03-18 Richard Guenther <rguenther@suse.de>
7951 * doc/install.texi (--enable-gold): Remove.
7952 (--with-plugin-ld): Document.
7953 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
7955 2011-03-18 Andrew Pinski <pinskia@gmail.com>
7958 * expr.c (optimize_bitfield_assignment_op): Revamp to work
7959 again after expansion changes.
7961 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
7963 * combine.c (try_combine): Do simplification only call of
7964 subst() on i2 even when i1 is present. Update comments.
7966 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
7968 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
7969 and UNSPEC_PCREL_SYMOFF.
7971 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7973 * config/s390/s390.md: Use define_c_enum for the unspec constant
7976 2011-03-18 Richard Henderson <rth@redhat.com>
7977 Jakub Jelinek <jakub@redhat.com>
7980 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
7981 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
7983 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
7986 * combine.c (cant_combine_insn_p): Don't check zero/sign
7987 extended hard registers.
7989 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
7992 * combine.c (cant_combine_insn_p): Check zero/sign extended
7995 2011-03-17 Anatoly Sokolov <aesok@post.ru>
7997 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7998 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
7999 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
8000 Change return type to bool.
8001 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8003 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8006 * var-tracking.c (prepare_call_arguments): If CALL target
8007 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
8008 pc instead of looking it up using cselib_lookup and use
8009 Pmode for it if x has VOIDmode.
8010 * dwarf2out.c (gen_subprogram_die): If also both first and
8011 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
8014 * function.c (assign_parms): For data.passed_pointer parms
8015 use MEM of data.entry_parm instead of data.entry_parm itself
8016 as DECL_INCOMING_RTL.
8017 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
8018 also when passed and declared mode is the same, DECL_RTL
8019 is a MEM with pseudo as address and DECL_INCOMING_RTL is
8022 2011-03-16 Jeff Law <law@redhat.com>
8024 PR rtl-optimization/37273
8025 * ira-costs.c (scan_one_insn): Detect constants living in memory and
8026 handle them like argument loads from stack slots. Do not double
8027 count memory for memory constants and argument loads from stack slots.
8029 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8032 * var-tracking.c (prepare_call_arguments): Check SUBREG.
8034 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8037 * config/i386/i386.opt: Add Save to -mavx and -mfma.
8039 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8042 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
8044 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
8045 Clear call_arg_locations and call_arg_loc_last always.
8048 * var-tracking.c (prepare_call_arguments): If argument needs to be
8049 passed by reference, adjust argtype and mode.
8051 2011-03-17 Richard Guenther <rguenther@suse.de>
8054 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
8055 a value make sure to fold the statement.
8057 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
8060 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
8061 return condition with !cfun->calls_alloca.
8063 2011-03-17 Richard Guenther <rguenther@suse.de>
8066 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8067 origin for decls in other ltrans units.
8068 (input_varpool_node): Likewise.
8070 2011-03-17 Richard Guenther <rguenther@suse.de>
8073 * tree-object-size.c (compute_object_offset): Properly return
8074 the offset operand of MEM_REFs as sizetype.
8076 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8078 PR rtl-optimization/48141
8079 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
8080 * dse.c: Include params.h.
8081 (active_local_stores_len): New variable.
8082 (add_wild_read, dse_step1): Clear it when setting active_local_stores
8084 (record_store, check_mem_read_rtx): Decrease it when removing
8086 (scan_insn): Likewise. Increase it when adding to chain, if it
8087 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
8088 set active_local_stores to NULL before the addition.
8089 * Makefile.in (dse.o): Depend on $(PARAMS_H).
8091 PR rtl-optimization/48141
8092 * dse.c (record_store): If no positions are needed in an insn
8093 that cannot be deleted, at least unchain it from active_local_stores.
8095 2011-03-16 Dodji Seketeli <dodji@redhat.com>
8098 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
8099 (lookup_type_die_strip_naming_typedef): ... here.
8100 (get_context_die): Use it.
8101 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
8102 the anonymous struct named by the naming typedef.
8104 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
8107 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
8108 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8110 2011-03-16 Jeff Law <law@redhat.com>
8112 * tree-vrp.c (identify_jump_threads): Slightly simplify type
8113 check for operands of conditional. Allow type to be a pointer.
8115 2011-03-16 Richard Guenther <rguenther@suse.de>
8117 PR tree-optimization/48149
8118 * fold-const.c (fold_binary_loc): Fold
8119 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
8121 2011-03-16 Richard Guenther <rguenther@suse.de>
8123 PR tree-optimization/26134
8124 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
8125 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
8126 (non_rewritable_mem_ref_base): Handle complex type component
8127 accesses, constrain offsets for vector and complex extracts
8130 2011-03-16 Richard Guenther <rguenther@suse.de>
8132 PR tree-optimization/48146
8133 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
8134 operands avoiding the need for renaming.
8136 2011-03-16 Richard Guenther <rguenther@suse.de>
8138 * gimple-fold.c (maybe_fold_reference): Open-code relevant
8139 constant folding. Move MEM_REF canonicalization first.
8140 Rely on fold_const_aggregate_ref for initializer folding.
8141 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
8143 2011-03-16 Jakub Jelinek <jakub@redhat.com>
8146 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8147 arg0/arg1 or their arguments are always fold converted to matching
8150 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
8153 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8156 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
8157 Handle in-tree gold.
8158 (ld_vers): Extract binutils version for gold.
8159 (gcc_cv_ld_hidden): Handle gold here.
8160 (gcc_cv_lto_plugin): Determine level of linker plugin support.
8161 * configure: Regenerate.
8162 * config.in: Regenerate.
8163 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
8164 -fuse-linker-plugin otherwise.
8165 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
8166 (LINK_COMMAND_SPEC): Use it.
8167 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
8169 2011-03-16 Jakub Jelinek <jakub@redhat.com>
8171 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
8172 * calls.c: Remove debug.h include.
8173 (emit_call_1): Don't call virtual_call_token debug hook.
8174 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
8175 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
8176 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
8177 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
8178 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
8179 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
8180 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
8181 dwarf2out_virtual_call): Remove.
8182 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
8183 copy_call_info and virtual_call hooks.
8184 (dwarf2out_init): Don't initialize vcall_insn_table,
8185 debug_dcall_section and debug_vcall_section.
8186 (prune_unused_types): Don't mark nodes from dcall_table.
8187 (dwarf2out_finish): Don't output dcall or vcall tables.
8188 * final.c (final_scan_insn): Don't call direct_call or
8189 virtual_call debug hooks.
8190 * debug.h (struct gcc_debug_hooks): Remove direct_call,
8191 virtual_call_token, copy_call_info and virtual_call hooks.
8192 (debug_nothing_uid): Remove prototype.
8193 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
8194 copy_call_info and virtual_call hooks.
8195 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8196 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
8197 * debug.c (do_nothing_debug_hooks): Likewise.
8198 (debug_nothing_uid): Remove.
8199 * doc/invoke.texi (-fenable-icf-debug): Remove.
8200 * common.opt (-fenable-icf-debug): Likewise.
8202 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
8203 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
8204 call's MEM. Handle functions returning aggregate through a hidden
8205 first pointer. For virtual calls add clobbered pc to call arguments
8207 * dwarf2out.c (gen_subprogram_die): Emit
8208 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
8212 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
8213 * rtl.h (ENTRY_VALUE_EXP): Define.
8214 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
8215 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
8216 * print-rtl.c (print_rtx): Likewise.
8217 * gengtype.c (adjust_field_rtx_def): Likewise.
8218 * var-tracking.c (vt_add_function_parameter): Adjust
8219 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
8220 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
8221 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
8222 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
8223 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
8225 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
8226 Call var_location debug hook even on CALL_INSNs.
8227 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
8228 * rtl.def (ENTRY_VALUE): New.
8229 * dwarf2out.c: Include cfglayout.h.
8230 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
8231 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
8232 (struct call_arg_loc_node): New type.
8233 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
8234 tail_call_site_count): New variables.
8235 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
8236 DW_TAG_GNU_call_site_parameter.
8237 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
8238 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
8239 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
8240 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
8241 and DW_AT_GNU_all_source_call_sites.
8242 (mem_loc_descriptor): Handle ENTRY_VALUE.
8243 (add_src_coords_attributes): Don't add enything if
8244 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
8245 (dwarf2out_abstract_function): Save and clear call_arg_location,
8246 call_site_count and tail_call_site_count around dwarf2out_decl call.
8247 (gen_call_site_die): New function.
8248 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
8249 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
8250 (dwarf2out_function_decl): Clear call_arg_locations,
8251 call_arg_loc_last, set call_site_count and tail_call_site_count
8252 to -1 and free block_map.
8253 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
8254 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
8255 followed by any real instructions.
8256 (dwarf2out_begin_function): Set call_site_count and
8257 tail_call_site_count to 0.
8258 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
8259 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
8260 attempt to force a DIE for it and worst case remove the attribute.
8261 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
8262 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
8264 * var-tracking.c: Include tm_p.h.
8265 (vt_stack_adjustments): For calls call note_register_arguments.
8266 (argument_reg_set): New variable.
8267 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
8268 ensure the VALUE is resolved.
8269 (call_arguments): New variable.
8270 (prepare_call_arguments): New function.
8271 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
8272 (struct expand_loc_callback_data): Add ignore_cur_loc field.
8273 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
8274 always use the best expression.
8275 (vt_expand_loc): Add ignore_cur_loc argument.
8276 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
8277 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
8278 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
8280 (vt_add_function_parameter): Use cselib_lookup_from_insn.
8281 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
8282 argument. Don't call cselib_preserve_only_values and
8284 (note_register_arguments): New function.
8285 (vt_initialize): Compute argument_reg_set. Call
8286 vt_add_function_parameters before processing basic blocks instead of
8287 afterwards. For calls call prepare_call_arguments before calling
8288 cselib_process_insn.
8289 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
8290 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
8291 (var-tracking.o): Depend on $(TM_P_H).
8292 * cfglayout.h (insn_scope): New prototype.
8293 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
8294 * cfglayout.c (insn_scope): No longer static.
8295 * insn-notes.def (CALL_ARG_LOCATION): New.
8296 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
8297 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
8298 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
8299 nothing for DECL_EXTERNAL BLOCK_VARS.
8301 2011-03-16 Alan Modra <amodra@gmail.com>
8304 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
8305 create invalid offset address for vsx splat insn.
8306 * config/rs6000/predicates.md (splat_input_operand): New.
8307 * config/rs6000/vsx.md (vsx_splat_*): Use it.
8309 2011-03-15 Xinliang David Li <davidxl@google.com>
8312 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
8313 (normalize_preds): New function.
8314 (is_use_properly_guarded): Normalize def predicates.
8316 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8319 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
8320 in the output template.
8322 2011-03-15 Richard Guenther <rguenther@suse.de>
8325 * tree-pretty-print.c (dump_function_declaration): Properly
8326 dump unprototyped and varargs function types.
8328 2011-03-15 Richard Guenther <rguenther@suse.de>
8330 PR tree-optimization/13954
8331 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
8334 2011-03-15 Richard Guenther <rguenther@suse.de>
8336 PR tree-optimization/48037
8337 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
8338 selects into BIT_FIELD_REFs.
8339 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
8342 2011-03-15 Jakub Jelinek <jakub@redhat.com>
8344 PR tree-optimization/48129
8345 * builtins.c (fold_builtin_snprintf): Convert to type of
8346 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
8347 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
8349 2011-03-15 Richard Guenther <rguenther@suse.de>
8351 PR tree-optimization/41490
8352 * tree-ssa-dce.c (propagate_necessity): Handle returns without
8353 value but with VUSE.
8354 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
8356 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
8357 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
8358 * tree-tailcall.c (find_tail_calls): Ignore returns.
8360 2011-03-15 Richard Guenther <rguenther@suse.de>
8363 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
8364 or variable-indexed array accesses when in gimple form.
8366 2011-03-15 Richard Guenther <rguenther@suse.de>
8368 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
8370 2011-03-15 Alan Modra <amodra@gmail.com>
8373 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
8374 presume symbol_refs without a symbol_ref_decl are suitably
8375 aligned, nor other trees we may see here. Handle anchor symbols.
8376 (legitimate_constant_pool_address_p): Comment. Add mode param.
8377 Check cmodel=medium addresses. Adjust all calls.
8378 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
8379 creating cmodel=medium optimized access to locals.
8380 * config/rs6000/constraints.md (R): Pass QImode to
8381 legitimate_constant_pool_address_p.
8382 * config/rs6000/predicates.md (input_operand): Pass mode to
8383 legitimate_constant_pool_address_p.
8384 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
8387 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8390 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
8391 64-bit constants being loaded into registers other than GPRs such
8392 as loading 0 into a VSX register.
8394 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8396 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
8398 2011-03-14 Jakub Jelinek <jakub@redhat.com>
8401 * builtins.c (fold_builtin_snprintf): New function.
8402 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
8403 (fold_builtin_4): Likewise.
8406 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
8407 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
8408 and C - X == X also strip nops from +/-/p+ operand.
8409 When optimizing -X == C, fold C to arg0's type.
8412 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
8413 emit it as add_AT_int instead of add_AT_unsigned.
8415 2011-03-14 Tom Tromey <tromey@redhat.com>
8417 * unwind-dw2.c: Include sys/sdt.h if it exists.
8418 (_Unwind_DebugHook): Use STAP_PROBE2.
8419 * config.in, configure: Rebuild.
8420 * configure.ac: Check for sys/sdt.h.
8422 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
8424 * config/i386/i386.md (ROUND_FLOOR): New constant.
8425 (ROUND_CEIL): Ditto.
8426 (ROUND_TRUNC): Ditto.
8427 (ROUND_MXCSR): Ditto.
8428 (ROUND_NO_EXC): Ditto.
8429 (rint<mode>2): Use new defines instead of numerical constants.
8430 (floor<mode>2): Ditto.
8431 (ceil<mode>2): Ditto.
8432 (btrunc<mode>2): Ditto.
8433 * config/i386/i386-builtin-types.def: Define ROUND function type
8435 * config/i386/i386.c (enum ix86_builtins): Add
8436 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
8437 (struct builtin_description): Add
8438 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
8439 (ix86_expand_sse_round): New static function.
8440 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
8442 (ix86_builtin_vectorized_function): Handle
8443 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8445 2011-03-14 Tom Tromey <tromey@redhat.com>
8447 * c-parser.c (c_parser_asm_string_literal): Clear
8448 warn_overlength_strings.
8450 2011-03-14 Tom Tromey <tromey@redhat.com>
8452 * c-parser.c (disable_extension_diagnostics): Save
8453 warn_overlength_strings.
8454 (restore_extension_diagnostics): Restore warn_overlength_strings.
8456 2011-03-14 Jakub Jelinek <jakub@redhat.com>
8458 * BASE-VER: Change to 4.7.0.
8460 2011-03-14 Richard Guenther <rguenther@suse.de>
8463 * tree.c (build_vector_from_val): Adjust assert to requirements
8466 2011-03-14 Jakub Jelinek <jakub@redhat.com>
8469 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
8471 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
8473 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
8474 terms of target_flags_explicit. Adjust copyright year.
8476 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
8477 * config/rs6000/t-freebsd: New file. Add override for
8480 2011-03-13 Chris Demetriou <cgd@google.com>
8482 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
8483 (-fno-diagnostics-show-option): this, to reflect current default.
8484 (-Werror=): Update text about -fno-diagnostics-show-option.
8486 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
8489 * config/rs6000/predicates.md (easy_vector_constant_add_self,
8490 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
8491 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
8492 mode is not V2DImode or V2DFmode.
8493 (vspltis_constant): Do not handle V2DImode and V2DFmode.
8494 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
8495 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
8497 (movdi_internal64): Likewise.
8499 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
8501 PR tree-optimization/47127
8502 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
8504 (set_cloog_options): Same.
8505 (scop_to_clast): Same.
8506 (print_clast_stmt): Do not call cloog_state_malloc and
8508 (print_generated_program): Same.
8510 * graphite-clast-to-gimple.h (cloog_state): Declared.
8511 (scop_to_clast): Adjust declaration.
8512 * graphite.c (cloog_state): Defined here.
8513 (graphite_initialize): Call cloog_state_malloc.
8514 (graphite_finalize): Call cloog_state_free.
8516 2011-03-11 Jason Merrill <jason@redhat.com>
8518 * attribs.c (lookup_attribute_spec): Take const_tree.
8521 2011-03-11 Joseph Myers <joseph@codesourcery.com>
8523 * config/sparc/sparc.c (sparc_option_override): Use
8524 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
8526 2011-03-11 Richard Guenther <rguenther@suse.de>
8528 PR tree-optimization/48067
8529 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
8530 multiplication result will be only used once on the target
8533 2011-03-11 Richard Guenther <rguenther@suse.de>
8535 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
8537 2011-03-11 Richard Guenther <rguenther@suse.de>
8540 * tree.c (find_decls_types_r): Do not walk types only reachable
8541 from IDENTIFIER_NODEs.
8543 2011-03-11 Jakub Jelinek <jakub@redhat.com>
8546 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
8547 all vnode->force_output nodes as needed.
8549 2011-03-11 Jason Merrill <jason@redhat.com>
8552 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
8553 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
8555 2011-03-11 Martin Jambor <mjambor@suse.cz>
8557 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
8560 2011-03-11 Jakub Jelinek <jakub@redhat.com>
8562 PR tree-optimization/48063
8563 * ipa-inline.c (cgraph_decide_inlining): Don't try to
8564 inline functions called once if !tree_can_inline_p (node->callers).
8566 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
8568 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
8570 * config/score/score3.c: Delete.
8571 * config/score/score3.h: Delete.
8572 * config/score/mul-div.S: Delete.
8573 * config/score/sfp-machine.h: Add new file.
8574 * config/score/constraints.md: Add new file.
8575 * config/score/t-score-softfp: Add new file.
8576 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
8577 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
8578 (score7_extra_constraint): Delete.
8579 (score7_option_override): Remove unused code.
8580 * config/score/score.c: Remove score3 and score5 define and code.
8581 * config/score/score.h: Remove score3 and score5 define and code.
8582 * config/score/score.md: Remove score3 template and unusual insn.
8583 * config/score/score.opt: Remove score3 and score5 options.
8585 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8587 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
8588 when _HPUX_SOURCE is defined.
8589 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
8591 2011-03-10 Jason Merrill <jason@redhat.com>
8594 * stor-layout.c (layout_type): Don't set structural equality
8595 on arrays of incomplete type.
8596 * tree.c (type_hash_eq): Handle comparing them properly.
8598 2011-03-10 Jakub Jelinek <jakub@redhat.com>
8601 * config/s390/s390.c (s390_delegitimize_address): Make sure the
8602 result mode matches original rtl mode.
8604 2011-03-10 Nick Clifton <nickc@redhat.com>
8606 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
8607 (andsi3, andsi3_flags): Fix timings for three operand alternative.
8609 2011-03-09 Jakub Jelinek <jakub@redhat.com>
8611 PR rtl-optimization/47866
8612 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
8613 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
8614 if target wasn't scalar.
8615 * function.c (assign_stack_temp_for_type): Assert that neither
8616 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
8617 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
8619 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
8621 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8623 * config/s390/s390-protos.h (s390_label_align): New prototype.
8624 * config/s390/s390.c (s390_label_align): New function.
8625 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
8627 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
8630 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
8631 V2DI/V2DF constants. Only all 0's or all 1's are easy.
8632 (output_vec_const_move): Ditto.
8634 2011-03-08 Anatoly Sokolov <aesok@post.ru>
8636 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
8637 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
8638 * config/mips/mips.c (mips_preferred_reload_class): Make static.
8639 Change 'rclass' argument and result type to reg_class_t.
8640 (TARGET_PREFERRED_RELOAD_CLASS): Define.
8642 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
8644 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8645 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
8646 (TARGET_MEMORY_MOVE_COST): Define.
8647 (avr_register_move_cost, avr_memory_move_cost): New Functions.
8649 2011-03-08 Jakub Jelinek <jakub@redhat.com>
8652 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
8655 PR tree-optimization/48022
8656 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
8659 2011-03-07 Jakub Jelinek <jakub@redhat.com>
8662 * var-tracking.c (find_use_val): Return NULL for
8663 cui->sets && cui->store_p BLKmode MEMs.
8665 2011-03-07 Anatoly Sokolov <aesok@post.ru>
8667 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
8669 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
8670 xstormy16_print_operand_address): Remove.
8671 * config/stormy16/stormy16.c (xstormy16_print_operand,
8672 xstormy16_print_operand_address): Make static.
8673 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8675 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
8678 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
8679 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
8682 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
8685 * cfgloopmanip.c (fix_bb_placements): Return immediately
8686 if FROM is BASE_LOOP's header.
8688 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
8690 * gimplify.c (gimplify_function_tree): Fix building calls
8691 to __builtin_return_address.
8693 2011-03-07 Alan Modra <amodra@gmail.com>
8695 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
8696 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
8697 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
8698 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
8700 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
8701 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
8702 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
8703 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
8704 * config/rs6000/rs6000.c
8705 (rs6000_elf_end_indicate_exec_stack): Rename to..
8706 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
8707 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
8708 (rs6000_file_start): ..here.
8709 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
8710 file scope variables.
8711 (call_ABI_of_interest): New function.
8712 (init_cumulative_args): Set above vars when function return value
8713 is a float, vector, or small struct.
8714 (rs6000_function_arg_advance_1): Likewise for function args.
8715 (rs6000_va_start): Set rs6000_passes_float if variable arg function
8716 references float args.
8718 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
8720 * doc/cfg.texi: Remove "See" before @ref.
8721 * doc/invoke.texi: Likewise.
8723 2011-03-05 Jason Merrill <jason@redhat.com>
8725 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
8727 2011-03-05 Anthony Green <green@moxielogic.com>
8729 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
8731 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
8733 PR rtl-optimization/47899
8734 * cfgloopmanip.c (fix_bb_placements): Fix first argument
8735 to flow_loop_nested_p when moving the loop upward.
8737 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
8740 * arm.md (movhi_insn_arch4): Accept any immediate constant.
8742 2011-03-05 Jakub Jelinek <jakub@redhat.com>
8744 PR tree-optimization/47967
8745 * ipa-cp.c (build_const_val): Return NULL instead of creating
8746 VIEW_CONVERT_EXPR for mismatching sizes.
8747 (ipcp_create_replace_map): Return NULL if build_const_val failed.
8748 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
8749 give up on versioning.
8751 2011-03-05 Alan Modra <amodra@gmail.com>
8754 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
8755 full cmodel medium/large lo_sum + high addresses.
8757 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8759 * config/s390/s390.c (s390_decompose_address): Reject non-literal
8760 pool references in UNSPEC_LTREL_OFFSET.
8762 2011-03-04 Jan Hubicka <jh@suse.cz>
8765 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
8766 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
8767 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
8769 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
8770 cgraph_add_thunk): Add node pointers.
8771 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
8772 associated to right node.
8773 (input_node): Update use of cgraph_same_body_alias
8774 and cgraph_add_thunk.
8776 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
8778 * config/i386/i386.opt (mprefer-avx128): New flag.
8779 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
8780 modes when the flag -mprefer-avx128 is on.
8782 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
8784 * dwarf2out.c (compare_loc_operands): Fix address handling.
8786 2011-03-04 Alan Modra <amodra@gmail.com>
8788 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
8790 2011-03-04 Richard Guenther <rguenther@suse.de>
8793 * expmed.c (extract_bit_field_1): Prefer vector modes that
8794 vec_extract patterns can handle.
8796 2011-03-04 Richard Guenther <rguenther@suse.de>
8799 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
8801 2011-03-04 Richard Henderson <rth@redhat.com>
8803 * explow.c (emit_stack_save): Remove 'after' parameter.
8804 (emit_stack_restore): Likewise.
8805 * expr.h: Update to match.
8806 * builtins.c, calls.c, stmt.c: Likewise.
8807 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
8808 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
8809 * function.c (expand_function_end): Insert the emit_stack_save
8810 sequence before parm_birth_insn instead of after.
8812 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
8814 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
8815 (ssse3_pmaddubsw128): Ditto.
8816 (ssse3_pmaddubsw): Ditto.
8818 2011-03-03 Steve Ellcey <sje@cup.hp.com>
8820 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
8822 2011-03-03 Jakub Jelinek <jakub@redhat.com>
8825 * gimplify.c (omp_add_variable): Only call omp_notice_variable
8826 on TYPE_SIZE_UNIT if it is a DECL.
8829 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
8830 first operand is not is_gimple_mem_ref_addr, try to fold it.
8831 If the operand still isn't is_gimple_mem_ref_addr, clear
8834 2011-03-03 Richard Guenther <rguenther@suse.de>
8837 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
8839 (refs_may_alias_p_1): For release branches return true if
8840 we are confused by our input.
8842 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8844 * config/s390/s390.c (s390_function_value): Rename to ...
8845 (s390_function_and_libcall_value): ... this.
8846 (s390_function_value): New function.
8847 (s390_libcall_value): New function.
8848 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
8849 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
8850 target macro definitions.
8851 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
8853 2011-03-02 Joseph Myers <joseph@codesourcery.com>
8855 * config/i386/freebsd64.h (CC1_SPEC): Define.
8856 * config/i386/linux64.h (CC1_SPEC): Define.
8857 * config/i386/x86-64.h (CC1_SPEC): Don't define.
8859 2011-03-02 Anatoly Sokolov <aesok@post.ru>
8861 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8863 * config/stormy16/stormy16.c: Include reload.h.
8864 (xstormy16_memory_move_cost): New function.
8865 (TARGET_MEMORY_MOVE_COST): Define.
8867 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
8869 PR rtl-optimization/47925
8870 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
8871 with side effects. Remove the more-specific check for volatile asms.
8873 2011-03-02 Alan Modra <amodra@gmail.com>
8876 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
8877 toc relative addresses for valid offsets.
8879 2011-03-01 Richard Guenther <rguenther@suse.de>
8881 PR tree-optimization/47890
8882 * tree-vect-loop.c (get_initial_def_for_induction): Set
8883 related stmt properly.
8885 2011-03-01 Richard Guenther <rguenther@suse.de>
8888 * lto-streamer.c (lto_record_common_node): Also register
8891 2011-03-01 Richard Guenther <rguenther@suse.de>
8894 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
8895 Do not stream DECL_ABSTRACT_ORIGIN.
8896 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
8897 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
8898 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
8899 Do not stream DECL_ABSTRACT_ORIGIN.
8900 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
8901 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
8903 2011-02-28 Anatoly Sokolov <aesok@post.ru>
8905 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
8906 FUNCTION_VALUE_REGNO_P): Remove.
8907 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
8908 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
8909 Add 'outgoing' argument.
8910 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
8912 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8913 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8915 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
8918 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
8919 (lookup_filename): Likewise.
8920 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
8922 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
8923 Jakub Jelinek <jakub@redhat.com>
8926 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
8927 (assign_stack_local_1): Change last argument type to int.
8928 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
8929 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
8930 don't record padding space into frame_space_list nor use those areas.
8931 (assign_stack_local): Adjust caller.
8932 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
8933 of assign_stack_local, pass 0 as last argument.
8934 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
8937 2011-02-28 Jakub Jelinek <jakub@redhat.com>
8940 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
8941 Use target address_mode and pointer_mode hooks instead of hardcoded
8942 Pmode and ptr_mode. Handle some simple cases of extending if
8943 POINTERS_EXTEND_UNSIGNED < 0.
8944 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
8945 Call convert_debug_memory_address.
8946 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
8947 convert_debug_memory_address.
8950 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
8951 * configure: Regenerated.
8952 * config.in: Regenerated.
8953 * varasm.c (default_function_section): Return NULL
8954 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
8956 2011-02-28 Martin Jambor <mjambor@suse.cz>
8958 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
8959 the description to match the printed values.
8961 2011-02-28 Richard Guenther <rguenther@suse.de>
8963 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
8964 of the copied scope tree.
8966 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8968 * doc/extend.texi (Function Attributes): Avoid deeply (and
8969 wrongly) nested tables.
8971 2011-02-27 Jakub Jelinek <jakub@redhat.com>
8974 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
8975 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
8976 r isn't op0 nor op1.
8978 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
8980 * config/avr/avr.md: Remove magic comment for emacs.
8982 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
8985 * config/avr/avr.c (avr_option_override): Use error on bad options.
8986 (avr_help): New function.
8987 (TARGET_HELP): Define.
8989 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
8992 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
8993 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
8995 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
8997 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
8998 (ARM Options): Ditto.
8999 (i386 and x86-64 Options): Ditto.
9000 (RX Options): Ditto.
9001 (SPARC Options): Ditto.
9003 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
9005 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
9006 FreeBSD 6 and later. Generally use cpu generic.
9008 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
9010 * doc/cpp.texi: Update copyright years.
9012 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
9015 * config/lm32/lm32.md (ashrsi3): Added needed variable.
9017 2011-02-25 Jon Beniston <jon@beniston.com>
9020 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
9021 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
9022 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
9023 (lm32_block_move_inline): Add type cast to remove warning.
9024 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
9025 (gen_int_relational): Move declarations to start of function.
9027 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
9029 PR tree-optimization/45470
9030 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9031 can throw internally only.
9032 * tree-vect-stmts.c (vectorizable_call): Likewise.
9034 2011-02-24 Anatoly Sokolov <aesok@post.ru>
9036 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
9037 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9038 * config/stormy16/stormy16-protos.h
9039 (xstormy16_preferred_reload_class): Remove.
9040 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
9041 static. Change 'rclass' argument and return type to reg_class_t.
9042 (TARGET_PREFERRED_RELOAD_CLASS,
9043 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9045 2011-02-24 Richard Guenther <rguenther@suse.de>
9047 * lto-streamer-in.c (input_bb): Do not find referenced vars
9048 in debug statements.
9050 2011-02-23 Jason Merrill <jason@redhat.com>
9052 * common.opt (fabi-version): Document v5 and v6.
9054 2011-02-23 Richard Guenther <rguenther@suse.de>
9056 PR tree-optimization/47849
9057 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
9059 2011-02-23 Jie Zhang <jie@codesourcery.com>
9061 * opts-common.c (decode_cmdline_option): Print empty string
9062 argument as "" in decoded->orig_option_with_args_text.
9063 * gcc.c (execute): Print empty string argument as ""
9064 in the verbose output.
9065 (do_spec_1): Keep empty string argument.
9067 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
9069 * config.gcc: Declare score-* and crx-* obsolete.
9071 2011-02-23 Jie Zhang <jie@codesourcery.com>
9073 PR rtl-optimization/47763
9074 * web.c (web_main): Ignore naked clobber when replacing register.
9076 2011-02-22 Anatoly Sokolov <aesok@post.ru>
9078 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9081 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
9084 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
9086 2011-02-22 Mike Stump <mikestump@comcast.net>
9088 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
9090 * configure: Regenerate.
9092 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
9094 PR rtl-optimization/46002
9095 * ira-color.c (update_copy_costs): Change class intersection
9096 test to reg_class_contents[] test of 'hard_regno'.
9098 2011-02-21 Joseph Myers <joseph@codesourcery.com>
9100 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
9102 * config/hpux11.opt (mt): Likewise.
9103 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
9104 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
9105 * config/vax/elf.opt (mno-asm-pic): Likewise.
9106 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
9108 2011-02-21 Mike Stump <mikestump@comcast.net>
9111 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
9112 tree so we can get save the type.
9113 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
9114 for CFString instead of trying to use past the end of the builtins.
9115 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
9116 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
9117 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
9118 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
9119 Rename to darwin_builtin_cfstring.
9120 (darwin_init_cfstring_builtins): Return the built type.
9122 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
9125 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
9126 (_mm256_insert_epi64): Use _mm_insert_epi64.
9128 2011-02-21 Anatoly Sokolov <aesok@post.ru>
9130 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9131 * config/stormy16/stormy16-protos.h
9132 (xstormy16_mode_dependent_address_p): Remove.
9133 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
9134 Make static. Change return type to bool. Change argument type to
9135 const_rtx. Remove dead code.
9136 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9138 2011-02-21 Richard Guenther <rguenther@suse.de>
9141 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9142 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9143 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
9145 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9146 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9148 2011-02-20 Richard Guenther <rguenther@suse.de>
9151 * tree.c (free_lang_data_in_decl): Clean builtins from
9152 the TU decl BLOCK_VARS.
9154 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
9158 * haifa-sched.c (fix_tick_ready): Skip tick computation
9161 2011-02-19 Richard Guenther <rguenther@suse.de>
9164 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
9165 Remove lazy BLOCK_VARS streaming.
9166 (lto_input_ts_block_tree_pointers): Likewise.
9167 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
9169 2011-02-19 Joseph Myers <joseph@codesourcery.com>
9171 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
9173 2011-02-19 Joseph Myers <joseph@codesourcery.com>
9175 * config/i386/biarch32.h, config/i386/mach.h,
9176 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
9178 2011-02-19 Jakub Jelinek <jakub@redhat.com>
9181 * config/i386/i386.md (peephole2 for shift and plus): Use
9182 operands[1] original mode in the first insn.
9184 2011-02-18 Mike Stump <mikestump@comcast.net>
9186 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
9188 2011-02-18 Jan Hubicka <jh@suse.cz>
9191 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
9192 to zero when the function is not inlinable at all.
9194 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9196 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
9197 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9198 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
9199 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
9200 * config/pa/t-pa64: Likewise.
9201 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9203 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9206 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
9208 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9211 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
9213 2011-02-18 Anatoly Sokolov <aesok@post.ru>
9215 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9216 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
9217 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
9218 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9219 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
9220 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
9221 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
9222 m32r_load_postinc_p, m32r_store_preinc_predec_p,
9223 m32r_legitimate_address_p): New functions.
9224 * config/m32r/constraints.md (constraint "S"): Don't use
9225 STORE_PREINC_PREDEC_P.
9226 (constraint "U"): Don't use LOAD_POSTINC_P.
9228 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
9230 PR rtl-optimization/46178
9231 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
9232 compute ira_hard_regno_cover_class[].
9234 2011-02-18 Richard Guenther <rguenther@suse.de>
9237 * lto-streamer.h (lto_global_var_decls): Declare.
9238 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
9239 statics for global var processing.
9241 2011-02-18 Richard Guenther <rguenther@suse.de>
9243 PR tree-optimization/47737
9244 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
9245 edge dominance check.
9247 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9250 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
9251 avoid invalid rtx sharing.
9253 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
9255 * doc/cpp.texi (Obsolete Features): Add background on the
9256 origin of assertions.
9258 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
9260 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
9262 * config/darwin.c (output_objc_section_asm_op): Added support for
9264 (is_objc_metadata): New.
9265 (darwin_objc2_section): New.
9266 (darwin_objc1_section): New.
9267 (machopic_select_section): Added support for ABI v1 and v2.
9268 (darwin_emit_objc_zeroed): New.
9269 (darwin_output_aligned_bss): Detect objc metadata and treat it
9271 (darwin_asm_output_aligned_decl_common): Same.
9272 (darwin_asm_output_aligned_decl_local): Same.
9273 * config/darwin-sections.def: Updated for ABI v1 and v2.
9274 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
9275 compiling Objective-C code for the NeXT runtime, default to using
9276 ABI version 0 for 32-bit, and version 2 for 64-bit.
9278 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9280 * common.opt (optimize_fast): New Variable.
9281 * opts.c (default_options_optimization): Use opts->x_optimize_fast
9282 instead of local variable ofast.
9284 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
9286 * doc/invoke.texi (fobjc-abi-version): Documented.
9287 (fobjc-nilcheck): Documented.
9288 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
9291 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9294 * common.opt (export-dynamic): New Driver option.
9295 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
9297 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9299 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
9301 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
9302 Jan Hubicka <jh@suse.cz>
9306 * cfgexpand.c (account_used_vars_for_block): Remove.
9307 (estimated_stack_frame_size): Use referenced vars.
9308 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
9309 that were referenced in the original function. Test src_fn
9310 rather than cfun. Drop redundant get_var_ann.
9311 (setup_one_parameter): Drop redundant get_var_ann.
9312 (declare_return_variable): Likewise.
9313 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
9314 (copy_arguments_for_versioning): Drop redundant get_var_ann.
9315 * ipa-inline.c (compute_inline_parameters): Do not compute
9316 disregard_inline_limits here.
9317 (compute_inlinable_for_current, pass_inlinable): New.
9318 (pass_inline_parameters): Require PROP_referenced_vars.
9319 * cgraphunit.c (cgraph_process_new_functions): Don't run
9320 compute_inline_parameters explicitly unless function is in SSA form.
9321 (cgraph_analyze_function): Set .disregard_inline_limits.
9322 * tree-sra.c (convert_callers): Compute inliner parameters
9323 only for functions already in SSA form.
9325 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9327 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
9328 -mlittle-endian-data.
9330 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9332 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
9333 -mno-fpu, not -fpu and -no-fpu.
9334 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
9335 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
9337 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
9340 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
9341 input reload with PLUS RTX.
9343 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9345 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
9346 of InverseVar(MDMX).
9348 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9350 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
9353 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9355 * config/mn10300/mn10300.opt (mno-crt0): New.
9357 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9359 * config/m68k/uclinux.opt (static-libc): New Driver option.
9361 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9363 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
9365 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9367 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
9368 %{muser-extend-enabled}.
9370 2011-02-16 Richard Guenther <rguenther@suse.de>
9372 PR tree-optimization/47738
9373 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
9374 the TODO from tree_predictive_commoning.
9376 2011-02-15 Jeff Law <law@redhat.com>
9379 2011-01-25 Jeff Law <law@redhat.com>
9381 PR rtl-optimization/37273
9382 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9383 handle them like argument loads from stack slots. Do not double
9384 count memory for memory constants and argument loads from stack slots.
9386 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
9389 * combine.c (cant_combine_insn_p): Revert the last change.
9391 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
9394 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
9395 mode for vector constants. Remove code that checks for TImode.
9397 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9401 * cgraph.h (compute_inline_parameters): Return void.
9402 * ipa-inline.c (compute_inline_parameters): Adjust.
9404 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9408 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
9410 * cfgexpand.c (estimated_stack_frame_size): Likewise.
9411 * ipa-inline.c (compute_inline_parameters): Adjust.
9413 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9417 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
9418 Adjust all users. Pass FN to...
9419 * tree-flow-inline.h (first_referenced_var): ... this. Add
9421 * ipa-struct-reorg.c: Adjust.
9422 * tree-dfa.c: Adjust.
9423 * tree-into-ssa.c: Adjust.
9424 * tree-sra.c: Adjust.
9425 * tree-ssa-alias.c: Adjust.
9426 * tree-ssa-live.c: Adjust.
9427 * tree-ssa.c: Adjust.
9428 * tree-ssanames.c: Adjust.
9429 * tree-tailcall.c: Adjust.
9431 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9435 * tree-flow.h (referenced_var_lookup): Add fn parameter.
9437 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
9438 * tree-flow-inline.h: Adjust.
9439 * gimple-pretty-print.c: Adjust.
9440 * tree-into-ssa.c: Adjust.
9441 * tree-ssa.c: Adjust.
9442 * cfgexpand.c: Adjust.
9444 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
9446 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
9447 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9448 (EXTRA_CONSTRAINT): Delete.
9449 * config/iq2000/constraints.md: New file.
9450 * config/iq2000/iq2000.md: Include it.
9451 (define_insn ""): Delete.
9452 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
9453 unsupported constraint letters from patterns.
9454 (call_value, call_value_internal1): Likewise.
9455 (call_value_multiple_internal1): Likewise.
9457 2011-02-15 Nick Clifton <nickc@redhat.com>
9459 * config/mn10300/mn10300.c: Include tm-constrs.h.
9460 (struct liw_data): New data structure describing an LIW candidate
9462 (extract_bundle): Use struct liw_data. Allow small integer
9463 operands for some instructions.
9464 (check_liw_constraints): Use struct liw_data. Remove swapped
9465 parameter. Add comments describing the checks. Fix bug when
9466 assigning the source of liw1 to the source of liw2.
9467 (liw_candidate): Delete. Code moved into extract_bundle.
9468 (mn10300_bundle_liw): Use struct liw_data. Check constraints
9470 * config/mn10300/predicates.md (liw_operand): New predicate.
9471 Allows registers and small integer constants.
9472 * config/mn10300/constraints.md (O): New constraint. Accetps
9473 integers in the range -8 to +7 inclusive.
9474 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
9475 for moving a small integer into a register. Give this alternative
9477 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
9478 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
9479 using the J,K,L and M constraints,
9480 (liw): Remove SI mode on second operands to allow for HI and QI
9482 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
9485 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
9488 * combine.c (cant_combine_insn_p): Check zero/sign extended
9491 2011-02-15 Richard Guenther <rguenther@suse.de>
9493 PR tree-optimization/47743
9494 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
9495 for a non-type-compatible VN lookup bail out.
9497 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
9499 * config/fr30/constraints.md: New file.
9500 * config/fr30/fr30.md: Include it.
9501 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
9502 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9503 (EXTRA_CONSTRAINT): Delete.
9505 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
9507 * config/frv/constraints.md: New file.
9508 * config/frv/predicates.md: Include it.
9509 * config/frv/frv.c (reg_class_from_letter): Delete.
9510 (frv_option_override): Don't initialize it.
9511 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
9512 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
9513 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
9514 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
9515 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
9516 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9517 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
9518 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
9519 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
9520 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
9521 (REG_CLASS_FROM_CONSTRAINT): Delete.
9523 2011-02-15 Jakub Jelinek <jakub@redhat.com>
9526 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
9527 if frame size is 0 in a leaf function.
9529 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9532 * config/alpha/host-osf.c: New file.
9533 * config/alpha/x-osf: New file.
9534 * config.host (alpha*-dec-osf*): Use it.
9536 2011-02-14 Anatoly Sokolov <aesok@post.ru>
9538 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9539 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
9540 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
9541 (rx_mode_dependent_address_p): ...this. Make static. Change argument
9543 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9545 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
9547 * config/stormy16/constraints.md: New file.
9548 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
9549 Use satisfies_constraint_Q and satisfies_constraint_R.
9550 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
9552 (xstormy16_legitiamte_address_p): Declare.
9553 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
9554 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9555 (EXTRA_CONSTRAINT): Delete.
9556 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
9558 (xstormy16_extra_constraint_p): Delete.
9560 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
9562 PR tree-optimization/46494
9563 * loop-unroll.c (split_edge_and_insert): Adjust comment.
9564 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
9565 (pass_rtl_loop_done): Add TODO_verify_flow.
9566 * fwprop.c (pass_rtl_fwprop): Likewise.
9567 * modulo-sched.c (pass_sms): Likewise.
9568 * tree-ssa-dom.c (pass_dominator): Likewise.
9569 * tree-ssa-loop-ch.c (pass_ch): Likewise.
9570 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
9571 (pass_tree_loop_done): Likewise.
9572 * tree-ssa-pre.c (execute_pre): Likewise.
9573 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
9574 * tree-ssa-sink.c (pass_sink_code): Likewise.
9575 * tree-vrp.c (pass_vrp): Likewise.
9577 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
9579 * config/v850/constraints.md: New file.
9580 * config/v850/v850.md: Include it.
9581 * config/v850/predicates.md (reg_or_0_operand): Use
9582 satisfies_constraint_G.
9583 (special_symbolref_operand): Use satisfies_constraint_K.
9584 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
9585 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
9586 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
9587 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
9588 (EXTRA_CONSTRAINT): Delete.
9589 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
9590 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
9591 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
9593 2011-02-14 Anatoly Sokolov <aesok@post.ru>
9596 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
9599 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
9601 * config/mcore/constraints.md: New file.
9602 * config/mcore/mcore.md: Include it.
9603 * config/mcore/mcore.c (reg_class_from_letter): Delete.
9604 * config/mcore/mcore.h (reg_class_from_letter): Delete.
9605 (REG_CLASS_FROM_LETTER): Delete.
9606 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
9607 insn_const_int_ok_for_constraint.
9608 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
9609 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
9610 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9611 (EXTRA_CONSTRAINT): Delete.
9613 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9616 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
9617 (IS_SIGHANDLER): Define.
9618 (sparc64_is_sighandler): New function, split off from
9619 sparc64_fallback_frame_state.
9620 (sparc_is_sighandler): New function, split off from
9621 sparc_fallback_frame_state.
9622 (sparc64_fallback_frame_state): Merge with ...
9623 (sparc_fallback_frame_state): ... this into ...
9624 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
9625 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
9626 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
9627 stack instead of hardcoded offsets.
9629 2011-02-14 Andriy Gapon <avg@freebsd.org>
9632 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
9634 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9636 * configure: Regenerate.
9638 2011-02-12 Joseph Myers <joseph@codesourcery.com>
9641 * gcc.c (asm_options): Correct spec matching --target-help.
9643 2011-02-12 Martin Jambor <mjambor@suse.cz>
9645 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
9646 to gimple call error.
9648 2011-02-12 Mike Stump <mikestump@comcast.net>
9650 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
9651 comments in backslash regions.
9653 2011-02-12 Mike Stump <mikestump@comcast.net>
9654 Jakub Jelinek <jakub@redhat.com>
9655 Iain Sandoe <iains@gcc.gnu.org>
9658 * dwarf2out.c (output_cfa_loc): When required, apply the
9659 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
9660 (output_loc_sequence): Likewise.
9661 (output_loc_operands_raw): Likewise.
9662 (output_loc_sequence_raw): Likewise.
9663 (output_cfa_loc): Likewise.
9664 (output_loc_list): Suppress register number adjustment when
9665 calling output_loc_sequence()
9666 (output_die): Likewise.
9668 2011-02-12 Anatoly Sokolov <aesok@post.ru>
9670 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9672 * config/xtensa/xtensa.c (xtensa_register_move_cost,
9673 xtensa_memory_move_cost): New functions.
9674 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
9676 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
9679 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
9680 in the current directory.
9681 * configure: Rebuilt.
9683 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
9685 * config/darwin.c (darwin_override_options): Add a hunk missed
9686 from the commit of r168571. Trim comment line lengths and
9687 correct indents of the preceding block.
9689 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
9691 * gcc.c (driver_handle_option): Concatenate the argument to -F with
9694 2011-02-11 Joseph Myers <joseph@codesourcery.com>
9696 * common.opt (nostartfiles): New Driver option.
9698 2011-02-11 Xinliang David Li <davidxl@google.com>
9700 PR tree-optimization/47707
9701 * tree-chrec.c (convert_affine_scev): Keep type precision.
9703 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
9705 PR tree-optimization/47420
9706 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
9708 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
9710 PR rtl-optimization/47614
9711 * rtl.h (check_for_inc_dec): Declare.
9712 * dse.c (check_for_inc_dec): Externalize...
9713 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
9714 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
9716 2011-02-11 Joseph Myers <joseph@codesourcery.com>
9719 * gcc.c (main): Do not compile inputs if there were errors in
9721 * opts-common.c (read_cmdline_option): Check for wrong language
9722 after other error checks.
9724 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
9726 * cgraph.c: Fix comment typos.
9727 * cgraph.h: Likewise.
9728 * cgraphunit.c: Likewise.
9729 * ipa-cp.c: Likewise.
9730 * ipa-inline.c: Likewise.
9731 * ipa-prop.c: Likewise.
9732 * ipa-pure-const.c: Likewise.
9733 * ipa-ref.c: Likewise.
9734 * ipa-reference.c: Likewise.
9736 2011-02-11 Jakub Jelinek <jakub@redhat.com>
9739 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
9741 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9744 * doc/sourcebuild.texi (Require Support): Document
9745 dg-require-ascii-locale.
9747 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
9749 * doc/lto.texi (Write summary): Fix missing parentheses.
9751 2011-02-10 DJ Delorie <dj@redhat.com>
9753 * config/m32c/m32c.c (m32c_option_override): Disable
9754 -fcombine-stack-adjustments until flag value tracking and compare
9755 optimization can be rewritten.
9757 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
9759 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
9761 (PROCESSOR_DEFAULT64): Likewise.
9763 2011-02-10 Richard Henderson <rth@redhat.com>
9765 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
9766 change from 2011-02-03.
9767 * config/rx/rx.c (flags_from_code): Likewise.
9768 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
9769 is valid, n/pz otherwise.
9770 (rx_select_cc_mode): Return CCmode if Y is not zero.
9772 2011-02-10 Richard Guenther <rguenther@suse.de>
9774 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
9776 2011-02-10 Richard Guenther <rguenther@suse.de>
9778 PR tree-optimization/47677
9779 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
9781 2011-02-10 Jakub Jelinek <jakub@redhat.com>
9784 * combine.c (make_compound_operation): Only change shifts into
9785 multiplication for SCALAR_INT_MODE_P.
9787 2011-02-10 Jie Zhang <jie@codesourcery.com>
9791 2011-02-05 Jie Zhang <jie@codesourcery.com>
9793 * web.c (entry_register): Don't clobber the number of the
9794 first uninitialized reference in used[].
9796 2011-02-09 Richard Guenther <rguenther@suse.de>
9798 PR tree-optimization/47664
9799 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
9802 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
9806 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
9808 (PROCESSOR_DEFAULT64): Same.
9809 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
9811 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9813 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
9815 2011-02-09 Martin Jambor <mjambor@suse.cz>
9818 * tree-sra.c (struct access): New flags grp_scalar_read and
9819 grp_scalar_write. Changed description of assignment read and write
9821 (dump_access): Dump new flags, reorder all of them.
9822 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
9823 to detect multiple scalar reads.
9824 (analyze_access_subtree): Use the new scalar read write flags instead
9825 of the old flags. Adjusted comments.
9827 2011-02-08 DJ Delorie <dj@redhat.com>
9830 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
9833 2011-02-08 Joseph Myers <joseph@codesourcery.com>
9835 * config/m68k/uclinux.opt: New.
9836 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
9838 2011-02-08 Joseph Myers <joseph@codesourcery.com>
9840 * config/cris/elf.opt (sim): New Driver option.
9842 2011-02-08 Joseph Myers <joseph@codesourcery.com>
9844 * config/xtensa/elf.opt: New.
9845 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
9847 2011-02-08 Joseph Myers <joseph@codesourcery.com>
9849 * config/vax/elf.opt: New.
9850 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
9852 2011-02-08 Joseph Myers <joseph@codesourcery.com>
9854 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
9856 2011-02-08 Joseph Myers <joseph@codesourcery.com>
9858 * config/gnu-user.opt: New.
9859 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
9860 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
9861 *-*-uclinux*): Use gnu-user.opt.
9863 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
9865 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
9866 * config/i386/gnu.h (CPP_SPEC): Likewise.
9868 2011-02-08 Ian Lance Taylor <iant@google.com>
9870 * common.opt (fcx-limited-range): Add SetByCombined flag.
9871 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
9872 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
9873 (fassociative-math, freciprocal-math): Likewise.
9874 (funsafe-math-optimizations): Likewise.
9875 * opth-gen.awk: Handle SetByCombined.
9876 * optc-gen.awk: Likewise.
9877 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
9878 (set_unsafe_math_optimizations_flags): Likewise.
9879 * doc/options.texi (Option properties): Document SetByCombined.
9881 2011-02-08 Joseph Myers <joseph@codesourcery.com>
9883 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
9884 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
9885 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
9886 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
9887 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
9889 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
9891 PR tree-optimization/46834
9892 PR tree-optimization/46994
9893 PR tree-optimization/46995
9894 * graphite-sese-to-poly.c (used_outside_reduction): New.
9895 (detect_commutative_reduction): Call used_outside_reduction.
9896 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
9897 translate_scalar_reduction_to_array only when at least one
9898 loop-phi/close-phi tuple has been detected.
9900 2011-02-08 Richard Guenther <rguenther@suse.de>
9903 * tree-vect-generic.c (expand_vector_operations_1): Update
9905 (expand_vector_operations): ... not here. Cleanup EH info
9906 and the CFG if required.
9908 2011-02-08 Richard Guenther <rguenther@suse.de>
9910 PR tree-optimization/47641
9911 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
9912 require type compatibility.
9914 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9916 * gimple-low.c (lower_function_body): Don't remove the location of
9917 the return statement here.
9918 (lower_gimple_return): Do it here instead but only if the return
9919 statement is actually used twice.
9921 2011-02-08 Richard Guenther <rguenther@suse.de>
9923 PR tree-optimization/47632
9924 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
9925 unused up_to_stmt parameter, return whether cfg-cleanup is
9926 necessary, remove EH info properly.
9927 (forward_propagate_into_gimple_cond): Adjust caller.
9928 (forward_propagate_into_cond): Likewise.
9929 (forward_propagate_comparison): Likewise.
9930 (tree_ssa_forward_propagate_single_use_vars): Make
9931 forward_propagate_comparison case similar to the two others.
9933 2011-02-08 Nick Clifton <nickc@redhat.com>
9935 * config/mn10300/mn10300.opt (mliw): New command line option.
9936 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
9937 (liw_bundling): New automaton.
9938 (liw): New attribute.
9939 (liw_op): New attribute.
9940 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
9941 (movsi_internal): Add LIW attributes.
9945 (addsi3): Separate register and immediate alternatives.
9950 (lshrsi3): Likewise.
9951 (ashrsi3): Likewise.
9953 * config/mn10300/mn10300.c (liw_op_names): New
9954 (mn10300_print_operand): Handle 'W' operand descriptor.
9955 (extract_bundle): New function.
9956 (check_liw_constraints): New function.
9957 (liw_candidate): New function.
9958 (mn10300_bundle_liw): New function.
9959 (mn10300_reorg): New function.
9960 (TARGET_MACHINE_DEPENDENT_REORG): Define.
9961 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
9962 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
9963 __LIW__ or __NO_LIW__.
9964 * doc/invoke.texi: Describe the -mliw command line option.
9966 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9968 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
9969 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9970 pthread_mutex_unlock): Remove.
9971 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
9972 * config/pa/t-pa64: Likewise.
9973 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
9974 shared libc if not linking against libpthread.
9975 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
9977 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
9980 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
9981 on 10.6 and later to ensure that we always use the unwinder from
9982 the system. Only add -no_compact_unwind when tarteting darwin
9985 2011-02-07 Steve Ellcey <sje@cup.hp.com>
9988 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
9989 (vec_interleave_lowv2sf): Ditto.
9990 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
9991 (vec_extract_oddv2sf): Ditto.
9993 2011-02-07 Mike Stump <mikestump@comcast.net>
9996 Add __ieee_divdc3 entry point.
9997 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
9999 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
10000 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
10001 * config/darwin.c (darwin_rename_builtins): Add.
10002 * config/darwin-protos.h (darwin_rename_builtins): Add.
10004 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
10007 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
10010 2011-02-07 Mike Stump <mikestump@comcast.net>
10012 * config/darwin.opt (mmacosx-version-min): Update default OS version.
10014 2011-02-07 Denis Chertykov <chertykov@gmail.com>
10017 * config/avr/libgcc.S (exit): Move .endfunc
10019 2011-02-07 Richard Guenther <rguenther@suse.de>
10021 PR tree-optimization/47615
10022 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
10023 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
10024 (run_scc_vn): Initialize it.
10025 (visit_reference_op_load): Use it.
10026 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
10028 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10030 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
10031 DImode trapping arithmetic libfuncs.
10033 2011-02-07 Richard Guenther <rguenther@suse.de>
10035 PR tree-optimization/47621
10036 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
10038 (execute_update_addresses_taken): ... here. Make it more
10039 conservative in what we accept.
10041 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10043 * config/sparc/freebsd.h (ASM_SPEC): Define.
10044 * config/sparc/vxworks.h (ASM_SPEC): Define.
10046 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10048 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10050 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
10052 * doc/invoke.texi: Remove reference to compiler internals from
10053 user documentation.
10055 * reg-notes.def: Remove REG_VALUE_PROFILE.
10056 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
10058 2011-02-05 Jakub Jelinek <jakub@redhat.com>
10060 PR middle-end/47610
10061 * varasm.c (default_section_type_flags): If decl is NULL,
10062 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
10064 2011-02-05 Jie Zhang <jie@codesourcery.com>
10067 * web.c (entry_register): Don't clobber the number of the
10068 first uninitialized reference in used[].
10070 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
10072 PR tree-optimization/46194
10073 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
10074 (build_classic_dist_vector_1): Do not represent classic distance
10075 vectors when the access functions are variating in different loops.
10077 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10079 * config/mips/iris6.opt: New.
10080 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
10082 2011-02-04 Richard Henderson <rth@redhat.com>
10083 Steve Ellcey <sje@cup.hp.com>
10086 * config/ia64/predicates.md (mux1_brcst_element): New.
10087 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
10088 * config/ia64/ia64.c (ia64_unpack_assemble): New.
10089 (ia64_unpack_sign): New.
10090 (ia64_expand_unpack): Rewrite using new routines.
10091 (ia64_expand_widen_sum): Ditto.
10092 (ia64_expand_dot_prod_v8qi): Ditto.
10093 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
10094 routines, add endian check.
10095 (pmpy2_even): Rename from pmpy2_r, add endian check.
10096 (pmpy2_odd): Rename from pmpy2_l, add endian check.
10097 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
10098 (vec_widen_smult_hi_v4hi): Ditto.
10099 (vec_widen_umult_lo_v4hi): Ditto.
10100 (vec_widen_umult_hi_v4hi): Ditto.
10101 (mulv2si3): Change endian checks.
10102 (sdot_prodv4hi): Rewrite with new calls.
10103 (udot_prodv4hi): New.
10104 (vec_pack_ssat_v4hi): Add endian check.
10105 (vec_pack_usat_v4hi): Ditto.
10106 (vec_pack_ssat_v2si): Ditto.
10107 (max1_even): Rename from max1_r, add endian check.
10108 (max1_odd): Rename from max1_l, add endian check.
10109 (*mux1_rev): Format change.
10110 (*mux1_mix): Ditto.
10111 (*mux1_shuf): Ditto.
10112 (*mux1_alt): Ditto.
10113 (*mux1_brcst_v8qi): Use new predicate.
10114 (vec_extract_evenv8qi): Remove endian check.
10115 (vec_extract_oddv8qi): Ditto.
10116 (vec_interleave_lowv4hi): Format change.
10117 (vec_interleave_highv4hi): Ditto.
10118 (mix2_even): Rename from mix2_r, add endian check.
10119 (mix2_odd): Rename from mux2_l, add endian check.
10120 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
10121 (vec_extract_evenodd_helper): Format change.
10122 (vec_extract_evenv4hi): Remove endian check.
10123 (vec_extract_oddv4hi): Remove endian check.
10124 (vec_interleave_lowv2si): Format change.
10125 (vec_interleave_highv2si): Format change.
10126 (vec_initv2si): Remove endian check.
10127 (vecinit_v2si): Add endian check.
10128 (reduc_splus_v2sf): Add endian check.
10129 (reduc_smax_v2sf): Ditto.
10130 (reduc_smin_v2sf): Ditto.
10131 (vec_initv2sf): Remove endian check.
10132 (fpack): Add endian check.
10133 (fswap): Add endian check.
10134 (vec_interleave_highv2sf): Add endian check.
10135 (vec_interleave_lowv2sf): Add endian check.
10136 (fmix_lr): Add endian check.
10137 (vec_setv2sf): Format change.
10138 (*vec_extractv2sf_0_be): Use shift to extract operand.
10139 (*vec_extractv2sf_1_be): New.
10140 (vec_pack_trunc_v4hi): Add endian check.
10141 (vec_pack_trunc_v2si): Format change.
10143 2011-02-04 Jakub Jelinek <jakub@redhat.com>
10145 PR inline-asm/23200
10146 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
10147 do bb, locus and block comparison and disallow loads if it is not set.
10148 (stmt_is_replaceable_p): New function.
10149 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
10151 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
10152 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
10154 * tree-flow.h (stmt_is_replaceable_p): New prototype.
10156 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10158 * config/rs6000/xilinx.opt: New.
10159 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
10161 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10163 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
10165 2011-02-03 Anatoly Sokolov <aesok@post.ru>
10167 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
10168 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10169 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
10170 secondary_reload_info, xtensa_secondary_reload): Remove.
10171 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
10172 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10173 (xtensa_preferred_reload_class): Make static. Change return and
10174 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
10175 Use CONST_DOUBLE_P predicate.
10176 (xtensa_preferred_output_reload_class): New function.
10177 (xtensa_secondary_reload): Make static.
10179 2011-02-03 Joseph Myers <joseph@codesourcery.com>
10181 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
10182 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
10183 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
10185 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10187 PR middle-end/31490
10188 * output.h (SECTION_RELRO): Define.
10189 (SECTION_MACH_DEP): Adjust.
10190 (get_variable_section): New prototype.
10191 * varpool.c (varpool_finalize_named_section_flags): New function.
10192 (varpool_assemble_pending_decls): Call it.
10193 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
10194 * cgraphunit.c (cgraph_output_in_order): Call
10195 varpool_finalize_named_section_flags.
10196 * varasm.c (get_section): Allow section flags conflicts between
10197 relro and read-only sections if the section hasn't been declared yet.
10198 Set SECTION_OVERRIDE after diagnosing section type conflict.
10199 (get_variable_section): No longer static.
10200 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
10201 readonly sections that need relocations.
10202 (decl_readonly_section_1): New function.
10203 (decl_readonly_section): Use it.
10206 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
10207 Steve Ellcey <sje@cup.hp.com>
10209 PR middle-end/31490
10210 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
10211 if section attribute used.
10213 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10215 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
10216 * config/darwin.c (SECTION_NO_ANCHOR): Define.
10217 (darwin_init_sections): Remove assertion.
10219 2011-02-03 Nick Clifton <nickc@redhat.com>
10221 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
10223 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
10224 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
10225 instead of "n" and "pz".
10226 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
10229 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10232 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
10233 fma, expand FMA_EXPR as fma{,f,l} call.
10236 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
10237 copy them into a unsigned char variable and pass address of it to
10238 lto_output_data_stream.
10241 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
10242 around backend_init_target and lang_dependent_init_target calls.
10243 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
10244 (verify_cgraph_node): Don't call set_cfun here. Use
10245 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
10246 Set error_found for incorrectly represented calls to thunks.
10248 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
10251 PR rtl-optimization/43494
10252 * rtl.h (for_each_inc_dec_fn): New type.
10253 (for_each_inc_dec): Declare.
10254 * rtlanal.c (struct for_each_inc_dec_ops): New type.
10255 (for_each_inc_dec_find_inc_dec): New fn.
10256 (for_each_inc_dec_find_mem): New fn.
10257 (for_each_inc_dec): New fn.
10258 * dse.c (struct insn_size): Remove.
10259 (replace_inc_dec, replace_inc_dec_mem): Remove.
10260 (emit_inc_dec_insn_before): New fn.
10261 (check_for_inc_dec): Use it, along with for_each_inc_dec.
10262 (canon_address): Pass mem modes to cselib_lookup.
10263 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
10264 (cselib_lookup_from_insn): Likewise.
10265 (cselib_subst_to_values): Likewise.
10266 * cselib.c (find_slot_memmode): New var.
10267 (cselib_find_slot): New fn. Use it instead of
10268 htab_find_slot_with_hash everywhere.
10269 (entry_and_rtx_equal_p): Use find_slot_memmode.
10270 (autoinc_split): New fn.
10271 (rtx_equal_for_cselib_p): Rename and implement in terms of...
10272 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
10273 Deal with autoinc. Special-case recursion into MEMs.
10274 (cselib_hash_rtx): Likewise.
10275 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
10276 address and MEM modes.
10277 (cselib_subst_to_values): Add memmode, pass it on.
10279 (cselib_lookup): Add memmode argument, pass it on.
10280 (cselib_lookup_from_insn): Add memmode.
10281 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
10282 (struct cselib_record_autoinc_data): New.
10283 (cselib_record_autoinc_cb): New fn.
10284 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
10285 mode to cselib_lookup. Reset autoinced REGs here instead of...
10286 (cselib_process_insn): ... here.
10287 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
10289 (add_uses): Likewise, also to cselib_subst_to_values.
10290 (add_stores): Likewise.
10291 * sched-deps.c (add_insn_mem_dependence): Pass mode to
10292 cselib_subst_to_values.
10293 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
10294 * gcse.c (do_local_cprop): Adjusted.
10295 * postreload.c (reload_cse_simplify_set): Adjusted.
10296 (reload_cse_simplify_operands): Adjusted.
10297 * sel-sched-dump (debug_mem_addr_value): Pass mode.
10299 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
10301 PR tree-optimization/45122
10302 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
10303 unsafe assumptions when there's more than one loop exit.
10305 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
10308 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
10309 Document using vector double with the load/store builtins, and
10310 that the load/store builtins always use Altivec instructions.
10312 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
10313 to use altivec memory instructions, even on VSX.
10314 (vector_altivec_store_<mode>): Ditto.
10316 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
10319 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10320 V2DF, V2DI support to load/store overloaded builtins.
10322 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
10323 altivec load/store builtins for V2DF/V2DI types.
10325 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
10326 set avoid indexed addresses on power6 if -maltivec.
10327 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
10328 vector_altivec_load/vector_altivec_store builtins.
10329 (altivec_expand_st_builtin): Ditto.
10330 (altivec_expand_builtin): Add VSX memory builtins.
10331 (rs6000_init_builtins): Add V2DI types to internal types.
10332 (altivec_init_builtins): Add support for V2DF/V2DI altivec
10333 load/store builtins.
10334 (rs6000_address_for_altivec): Insure memory address is appropriate
10337 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
10338 vec_vsx_ld and vec_vsx_st.
10339 (vsx_store_<mode>): Ditto.
10341 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
10342 variables to hold long long types for VSX vector memory builtins.
10343 (RS6000_BTI_unsigned_long_long): Ditto.
10344 (long_long_integer_type_internal_node): Ditti.
10345 (long_long_unsigned_type_internal_node): Ditti.
10347 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
10348 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
10349 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
10351 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
10353 (vec_vsx_st): Ditto.
10355 2011-02-02 Joseph Myers <joseph@codesourcery.com>
10357 * config/pa/pa-hpux10.opt: New.
10358 * config/hpux11.opt (pthread): New Driver option.
10359 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
10360 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
10362 2011-02-02 Joseph Myers <joseph@codesourcery.com>
10364 * config/ia64/vms.opt: New.
10365 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
10367 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
10370 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
10371 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
10372 generator functions.
10373 (vsx_floatuns<VSi><mode>2): Ditto.
10374 (vsx_fix_trunc<mode><VSi>2): Ditto.
10375 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
10377 2011-02-02 Joseph Myers <joseph@codesourcery.com>
10379 * config/i386/djgpp.opt (posix): New Driver option.
10381 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
10383 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
10384 Move to the unsupported targets list.
10386 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
10388 PR rtl-optimization/47525
10389 * df-scan.c: Update copyright years.
10390 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
10391 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
10393 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10395 * config/i386/sysv4.h (TARGET_VERSION): Remove.
10396 (SUBTARGET_RETURN_IN_MEMORY): Remove.
10397 (ASM_OUTPUT_ASCII): Remove.
10398 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
10400 2011-02-02 Jeff Law <law@redhat.com>
10402 PR middle-end/47543
10403 * reload.c (find_reloads_address): Handle reg+d address where both
10404 components are invalid by reloading the entire address.
10406 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
10407 Richard Guenther <rguenther@suse.de>
10409 PR tree-optimization/40979
10411 * passes.c (init_optimization_passes): After LIM call copy_prop
10412 and DCE to clean up.
10413 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
10415 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
10417 PR tree-optimization/47576
10418 PR tree-optimization/47555
10419 * doc/invoke.texi (scev-max-expr-complexity): Documented.
10420 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
10421 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
10422 * tree-scalar-evolution.c (follow_ssa_edge): Use
10423 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
10425 2011-02-02 Richard Guenther <rguenther@suse.de>
10427 PR tree-optimization/47566
10428 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
10430 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
10434 * tree-inline.c (declare_return_variable): Remove unused caller
10439 * tree-flow-inline.h (clear_is_used, is_used_p): New.
10440 * cfgexpand.c (account_used_vars_for_block): Use them.
10441 * tree-nrv.c (tree_nrv): Likewise.
10442 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
10443 (dump_scope_block): Likewise.
10444 (remove_unused_locals): Likewise.
10448 * tree-inline.c (declare_return_variable): Add result decl to
10449 local decls only once.
10450 * gimple-low.c (record_vars_into): Mark newly-created variables
10453 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
10459 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
10461 (no_real_insns_p, schedule_block, set_priorities): Drop special
10462 treatment of boundary debug insns.
10463 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
10464 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
10465 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
10466 (BOUNDARY_DEBUG_INSN_P): Likewise.
10467 (SCHEDULE_DEBUG_INSN_P): Likewise.
10468 * sched-rgn.c (init_ready_list): Drop special treatment of
10469 boundary debug insns.
10470 * final.c (rest_of_clean_state): Clear notes' BB.
10472 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10474 * config/openbsd.opt (assert=): New Driver option.
10476 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10478 * config/i386/nto.opt: New.
10479 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
10481 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10483 * config/i386/netware.opt: New.
10484 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
10486 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10488 * config/interix.opt (posix): New Driver option.
10490 2011-02-01 DJ Delorie <dj@redhat.com>
10492 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
10494 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
10497 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
10499 PR tree-optimization/47561
10500 * toplev.c (process_options): Print the Graphite flags. Add
10501 flag_loop_flatten to the list of options requiring Graphite.
10503 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10505 * config/i386/cygming.opt (posix): New Driver option.
10507 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10509 * config/arm/vxworks.opt: New.
10510 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
10512 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10514 * config/alpha/elf.opt: New.
10515 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
10516 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
10518 2011-02-01 Richard Guenther <rguenther@suse.de>
10520 PR tree-optimization/47559
10521 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
10522 store-motion on references that can throw.
10524 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
10526 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
10527 * tree-pass.h (TDF_CSELIB): New macro.
10528 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
10529 cselib_lookup): Check for it rather than for TDF_DETAILS.
10531 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
10534 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
10535 is HOST_BIT_BUCKET.
10537 * opts.c (finish_options): Don't add x_aux_base_name if it is
10540 2011-02-01 Richard Guenther <rguenther@suse.de>
10542 PR tree-optimization/47555
10544 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
10546 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
10548 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
10551 * config/lm32/t-lm32: Add multilib for all CPU options.
10553 2011-02-01 Richard Guenther <rguenther@suse.de>
10555 PR tree-optimization/47541
10556 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
10557 sure to have a field at offset zero.
10559 2011-01-31 Joseph Myers <joseph@codesourcery.com>
10561 * config/arc/arc.opt (EB, EL): New Driver options.
10563 2011-01-31 Joseph Myers <joseph@codesourcery.com>
10565 * config/alpha/osf5.opt: New.
10566 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
10568 2011-01-31 Joseph Myers <joseph@codesourcery.com>
10570 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
10572 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
10574 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
10575 -floop-interchange.
10576 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
10577 is an alias of -floop-interchange and that it requires the
10578 Graphite infrastructure.
10579 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
10580 flag_loop_interchange based on the value of flag_tree_loop_linear.
10582 2011-01-31 Jakub Jelinek <jakub@redhat.com>
10583 Richard Guenther <rguenther@suse.de>
10585 PR tree-optimization/47538
10586 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
10587 type instead of r1type, except for comparisons. For right
10588 shifts and comparisons punt if there are mismatches in
10589 sizetype vs. non-sizetype types.
10591 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10593 * doc/sourcebuild.texi (Effective-Target Keywords): Document
10596 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10598 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
10600 * configure: Regenerate.
10602 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10604 * configure.ac (gcc_cv_ld_static_option): Define.
10605 (gcc_cv_ld_dynamic_option): Define.
10606 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
10608 (HAVE_LD_STATIC_DYNAMIC): Update message.
10609 (LD_STATIC_OPTION): Define.
10610 (LD_DYNAMIC_OPTION): Define.
10611 * configure: Regenerate.
10612 * config.in: Regenerate.
10613 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
10614 HAVE_LD_STATIC_DYNAMIC]: Use them.
10616 2011-01-31 Nick Clifton <nickc@redhat.com>
10618 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
10619 registers inside interrupt handlers if the handler is not a leaf
10622 2011-01-31 Nick Clifton <nickc@redhat.com>
10624 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
10625 reg_renumber returning an INVALID_REGNUM.
10627 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
10630 * doc/install.texi: Document host options discarded when cross
10631 configuring target libraries.
10633 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
10636 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
10639 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
10641 (no_real_insns_p, schedule_block, set_priorities): Drop special
10642 treatment of boundary debug insns.
10643 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
10644 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
10645 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
10646 (BOUNDARY_DEBUG_INSN_P): Likewise.
10647 (SCHEDULE_DEBUG_INSN_P): Likewise.
10648 * sched-rgn.c (init_ready_list): Drop special treatment of
10649 boundary debug insns.
10650 * final.c (rest_of_clean-state): Clear notes' BB.
10652 2011-01-31 Alan Modra <amodra@gmail.com>
10654 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
10655 toc relative expressions as we do in print_operand_address.
10657 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
10659 * doc/extend.texi: Follow spelling conventions.
10660 * doc/invoke.texi: Fix a typo.
10662 2011-01-30 Joseph Myers <joseph@codesourcery.com>
10664 * config/hpux11.opt: New.
10665 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
10666 ia64*-*-hpux*): Use hpux11.opt.
10668 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
10670 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
10673 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
10675 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
10678 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
10680 * doc/install.texi (Binaries): Remove outdated reference for
10681 Motorola 68HC11/68HC12 downloads.
10683 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
10685 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
10688 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
10691 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
10694 2011-01-28 Ahmad Sharif <asharif@google.com>
10696 * value-prof.c (check_counter): Corrected error message.
10698 2011-01-29 Jie Zhang <jie@codesourcery.com>
10700 * config/arm/arm.c (arm_legitimize_reload_address): New.
10701 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
10702 arm_legitimize_reload_address.
10703 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
10705 2011-01-28 Ian Lance Taylor <iant@google.com>
10707 * godump.c (go_define): Ignore macros whose definitions include
10708 two adjacent operands.
10710 2011-01-28 Jakub Jelinek <jakub@redhat.com>
10713 * varasm.c (force_const_mem): Store copy of x in desc->constant
10714 instead of x itself.
10715 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
10716 itself into REG_EQUAL note.
10718 2011-01-28 Joseph Myers <joseph@codesourcery.com>
10720 * config/freebsd.opt (posix, rdynamic): New Driver options.
10722 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10724 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
10725 -Bstatic/-Bdynamic.
10726 * configure: Regenerate.
10728 2011-01-27 Joseph Myers <joseph@codesourcery.com>
10730 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
10731 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
10733 2011-01-27 Anatoly Sokolov <aesok@post.ru>
10735 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
10736 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
10737 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
10738 (s390_preferred_reload_class): Make static. Change return and
10739 'rclass' argument type to reg_class_t.
10741 2011-01-27 Jan Hubicka <jh@suse.cz>
10743 PR middle-end/46949
10744 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
10745 (process_function_and_variable_attributes): Check defined weakrefs.
10747 2011-01-27 Martin Jambor <mjambor@suse.cz>
10749 PR tree-optimization/47228
10750 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
10751 build_ref_for_offset.
10753 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10755 * config/spu/spu-elf.h (ASM_SPEC): Remove.
10757 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
10759 PR rtl-optimization/46856
10760 * postreload.c (reload_combine_recognize_const_pattern): Do not
10761 separate cc0 setter and user on cc0 targets.
10763 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
10766 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
10767 passed a VOID_TYPE expression, immediately emit an error and
10768 return error_mark_node.
10770 2011-01-26 Jeff Law <law@redhat.com>
10772 PR rtl-optimization/47464
10773 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
10774 rather than may_trap_p as needed.
10776 2011-01-26 DJ Delorie <dj@redhat.com>
10778 PR rtl-optimization/46878
10779 * combine.c (insn_a_feeds_b): Check for the implicit cc0
10780 setter/user dependency as well.
10782 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
10784 PR rtl-optimization/44469
10785 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
10786 after removing trivially dead basic blocks.
10788 2011-01-26 Joseph Myers <joseph@codesourcery.com>
10790 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
10791 * config/frv/frv.h (LINK_SPEC): Likewise.
10792 * config/i386/netware.h (LINK_SPEC): Likewise.
10793 * config/m68k/linux.h (ASM_SPEC): Likewise.
10794 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
10795 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
10796 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
10797 * config/sparc/linux.h (ASM_SPEC): Likewise.
10798 * config/sparc/linux64.h (ASM_SPEC): Likewise.
10799 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
10801 2011-01-26 Joseph Myers <joseph@codesourcery.com>
10803 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
10804 * config/frv/frv.h (ASM_SPEC): Likewise.
10805 * config/m68k/linux.h (ASM_SPEC): Likewise.
10806 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
10807 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
10808 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
10809 * config/sparc/linux.h (ASM_SPEC): Likewise.
10810 * config/sparc/linux64.h (ASM_SPEC): Likewise.
10811 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
10813 2011-01-26 Joseph Myers <joseph@codesourcery.com>
10815 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
10816 * config/frv/frv.h (LINK_SPEC): Likewise.
10817 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
10819 2011-01-26 Joseph Myers <joseph@codesourcery.com>
10821 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
10822 * config/frv/frv.h (ASM_SPEC): Likewise.
10823 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
10824 * config/m68k/linux.h (ASM_SPEC): Likewise.
10825 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
10826 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
10827 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
10828 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
10829 * config/sparc/linux.h (ASM_SPEC): Likewise.
10830 * config/sparc/linux64.h (ASM_SPEC): Likewise.
10831 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
10832 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
10834 2011-01-26 Steve Ellcey <sje@cup.hp.com>
10837 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
10839 (vec_extract_evenodd_help): Ditto.
10840 (vec_extract_evenv4hi): Ditto.
10841 (vec_extract_oddv4hi): Ditto.
10842 (vec_interleave_lowv2si): Ditto.
10843 (vec_interleave_highv2si): Ditto.
10844 (vec_extract_evenv2si): Ditto.
10845 (vec_extract_oddv2si: Ditto.
10846 (vec_pack_trunc_v2si): Ditto.
10848 2011-01-22 Jan Hubicka <jh@suse.cz>
10851 * cgraph.h (cgraph_local_info): New field can_change_signature.
10852 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
10853 signature can change.
10854 (ipcp_estimate_growth): Call sequence simplify only if calle signature
10856 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
10857 (cgraph_function_versioning): We can not change signature of functions
10858 that don't allow that.
10859 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
10860 (lto_input_node): Likewise.
10861 * ipa-inline.c (compute_inline_parameters): Compute
10862 local.can_change_signature.
10863 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
10864 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
10865 functions that can not change signature.
10866 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
10867 init_cumulative_args): Do not use local calling conventions
10868 for functions that can not change signature.
10870 2011-01-22 Jan Hubicka <jh@suse.cz>
10872 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
10874 2011-01-26 Richard Guenther <rguenther@suse.de>
10876 PR tree-optimization/47190
10877 * cgraphunit.c (process_common_attributes): New function.
10878 (process_function_and_variable_attributes): Use it.
10880 2011-01-26 Richard Guenther <rguenther@suse.de>
10883 * cgraphbuild.c (record_eh_tables): Record reference to personality
10886 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
10889 * sel-sched.c (moveup_expr): Don't let debug insns prevent
10890 non-debug insns from moving up.
10892 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
10895 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
10896 t-dlldir{,-x} fragment for build and add it to tmake_file.
10897 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
10898 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
10899 * config/i386/t-dlldir: New file.
10900 (SHLIB_DLLDIR): Define.
10901 * config/i386/t-dlldir-x: New file.
10902 (SHLIB_DLLDIR): Define.
10903 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
10904 (SHLIB_INSTALL): Use it.
10906 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
10909 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
10910 lower bound of the allowed Thumb-2 coprocessor load/store
10911 index range to -256. Add explaining comment.
10913 2011-01-25 Ian Lance Taylor <iant@google.com>
10915 * godump.c (go_define): Improve lexing of macro expansion to only
10916 accept expressions which match Go spec.
10918 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
10921 * tree.c (handle_dll_attribute): Handle it.
10922 * doc/extend.texi (@item dllexport): Mention it.
10923 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
10925 2011-01-25 Ian Lance Taylor <iant@google.com>
10927 PR tree-optimization/26854
10928 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
10929 (decl_jump_unsafe): Move higher in file, with no other change.
10930 (bind): Set has_jump_unsafe_decl if appropriate.
10931 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
10932 (check_earlier_gotos): Likewise.
10933 (c_check_switch_jump_warnings): Likewise.
10935 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
10937 * doc/invoke.texi (Warning Options): Add missing hyphen.
10938 (-fprofile-dir): Minor grammatical fixes.
10939 (-fbranch-probabilities): Likewise.
10941 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
10945 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
10947 (no_real_insns_p, schedule_block, set_priorities): Drop special
10948 treatment of boundary debug insns.
10949 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
10950 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
10951 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
10952 (BOUNDARY_DEBUG_INSN_P): Likewise.
10953 (SCHEDULE_DEBUG_INSN_P): Likewise.
10954 * sched-rgn.c (init_ready_list): Drop special treatment of
10955 boundary debug insns.
10956 * final.c (rest_of_clean-state): Clear notes' BB.
10958 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10960 * Makefile.in (LAMBDA_H): Removed.
10961 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
10962 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
10963 lambda-trans.o, and tree-loop-linear.o.
10964 (lto-symtab.o): Remove dependence on LAMBDA_H.
10965 (tree-loop-linear.o): Remove rule.
10966 (lambda-mat.o): Same.
10967 (lambda-trans.o): Same.
10968 (lambda-code.o): Same.
10969 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
10970 (tree-vect-slp.o): Same.
10971 * hwint.h (gcd): Moved here.
10972 (least_common_multiple): Same.
10973 * lambda-code.c: Removed.
10974 * lambda-mat.c: Removed.
10975 * lambda-trans.c: Removed.
10976 * lambda.h: Removed.
10977 * tree-loop-linear.c: Removed.
10978 * lto-symtab.c: Do not include lambda.h.
10979 * omega.c (gcd): Removed.
10980 * passes.c (init_optimization_passes): Remove pass_linear_transform.
10981 * tree-data-ref.c (print_lambda_vector): Moved here.
10982 (lambda_vector_copy): Same.
10983 (lambda_matrix_copy): Same.
10984 (lambda_matrix_id): Same.
10985 (lambda_vector_first_nz): Same.
10986 (lambda_matrix_row_add): Same.
10987 (lambda_matrix_row_exchange): Same.
10988 (lambda_vector_mult_const): Same.
10989 (lambda_vector_negate): Same.
10990 (lambda_matrix_row_negate): Same.
10991 (lambda_vector_equal): Same.
10992 (lambda_matrix_right_hermite): Same.
10993 * tree-data-ref.h: Do not include lambda.h.
10994 (lambda_vector): Moved here.
10995 (lambda_matrix): Same.
10996 (dependence_level): Same.
10997 (lambda_transform_legal_p): Removed declaration.
10998 (lambda_collect_parameters): Same.
10999 (lambda_compute_access_matrices): Same.
11000 (lambda_vector_gcd): Same.
11001 (lambda_vector_new): Same.
11002 (lambda_vector_clear): Same.
11003 (lambda_vector_lexico_pos): Same.
11004 (lambda_vector_zerop): Same.
11005 (lambda_matrix_new): Same.
11006 * tree-flow.h (least_common_multiple): Removed declaration.
11007 * tree-parloops.c (lambda_trans_matrix): Moved here.
11008 (LTM_MATRIX): Same.
11009 (LTM_ROWSIZE): Same.
11010 (LTM_COLSIZE): Same.
11011 (LTM_DENOMINATOR): Same.
11012 (lambda_trans_matrix_new): Same.
11013 (lambda_matrix_vector_mult): Same.
11014 (lambda_transform_legal_p): Same.
11015 * tree-pass.h (pass_linear_transform): Removed declaration.
11016 * tree-ssa-loop.c (tree_linear_transform): Removed.
11017 (gate_tree_linear_transform): Removed.
11018 (pass_linear_transform): Removed.
11019 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
11020 flag_loop_interchange.
11022 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11024 PR tree-optimization/47265
11025 PR tree-optimization/47443
11026 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
11027 if name still has some uses.
11029 2011-01-25 Martin Jambor <mjambor@suse.cz>
11031 PR tree-optimization/47382
11032 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
11033 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
11035 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
11037 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
11038 sjlj_except_unwind_info.
11040 2011-01-25 Richard Guenther <rguenther@suse.de>
11042 PR tree-optimization/47426
11043 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
11044 visible functions results escape.
11046 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11049 * config/arm/arm.c (any_sibcall_uses_r3): New function.
11050 (arm_get_frame_offsets): Use it.
11052 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11053 Jakub Jelinek <jakub@redhat.com>
11055 PR tree-optimization/47271
11056 * tree-if-conv.c (bb_postdominates_preds): New.
11057 (if_convertible_bb_p): Call bb_postdominates_preds.
11058 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
11059 (predicate_scalar_phi): Call bb_postdominates_preds.
11061 2011-01-25 Nick Clifton <nickc@redhat.com>
11063 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
11064 * config/rx/rx.c (rx_function_value): Likewise.
11065 (rx_promote_function_mode): Likewise.
11066 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
11067 in order to make it legitimate.
11068 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
11069 make sure that the first operand is the same as the result register.
11070 (addsi3_unspec): Delete.
11071 (subdi3): Do not accept immediate operands.
11072 (subdi3_internal): Likewise.
11074 2011-01-25 Jeff Law <law@redhat.com>
11076 PR rtl-optimization/37273
11077 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11078 handle them like argument loads from stack slots. Do not double
11079 count memory for memory constants and argument loads from stack slots.
11081 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11083 PR tree-optimization/47427
11084 PR tree-optimization/47428
11085 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11086 coalesce if the new root var would be TREE_READONLY.
11088 2011-01-25 Richard Guenther <rguenther@suse.de>
11090 PR middle-end/47414
11091 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
11092 correct type for TBAA.
11094 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11096 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
11097 (close_phi_written_to_memory): Call for_each_index with
11098 dr_indices_valid_in_loop.
11100 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11102 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
11103 when it is initialized.
11105 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11107 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
11108 call to graphite_find_data_references_in_stmt.
11109 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
11110 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
11111 call to graphite_find_data_references_in_stmt.
11112 (analyze_drs_in_stmts): Same.
11113 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
11114 in which the scalar analysis of indices is performed.
11115 (create_data_ref): Same. Update call to dr_analyze_indices.
11116 (find_data_references_in_stmt): Update call to create_data_ref.
11117 (graphite_find_data_references_in_stmt): Same.
11118 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
11120 (create_data_ref): Same.
11121 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
11122 call to create_data_ref.
11124 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11126 * graphite-sese-to-poly.c (build_poly_scop): Move
11127 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
11129 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11131 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
11132 VAR_DECL, PARM_DECL, and RESULT_DECL.
11134 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11136 * graphite-dependences.c (reduction_dr_1): Allow several reductions
11137 in a reduction PBB.
11138 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
11139 that have already been marked as PBB_IS_REDUCTION.
11141 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11143 * graphite-scop-detection.c (same_close_phi_node): New.
11144 (remove_duplicate_close_phi): New.
11145 (make_close_phi_nodes_unique): New.
11146 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
11148 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11150 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
11151 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
11152 of both data references to be the same.
11154 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11156 * graphite-dependences.c (build_lexicographical_constraint): Remove
11157 the gdim parameter.
11158 (build_lexicographical_constraint): Adjust call to
11159 ppl_powerset_is_empty.
11160 (dependence_polyhedron): Same.
11161 (graphite_legal_transform_dr): Same.
11162 (graphite_carried_dependence_level_k): Same.
11163 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
11165 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
11167 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11169 * graphite-sese-to-poly.c
11170 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
11171 (close_phi_written_to_memory): New.
11172 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
11175 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11177 * doc/install.texi: Update the expected version number of PPL to 0.11.
11178 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
11179 #if PPL_VERSION_MINOR < 11.
11181 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11183 * graphite-dependences.c: Include graphite-cloog-util.h.
11184 (new_poly_ddr): Inlined into dependence_polyhedron.
11185 (free_poly_ddr): Moved close by new_poly_ddr.
11186 (dependence_polyhedron_1): Renamed dependence_polyhedron.
11187 Early return NULL when ppl_powerset_is_empty returns true.
11188 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
11189 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
11190 (graphite_legal_transform_dr): Call new_poly_ddr.
11191 (graphite_carried_dependence_level_k): Same.
11192 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
11193 (dot_transformed_deps_stmt_1): Removed.
11194 (dot_deps_stmt_1): Call dot_deps_stmt_2.
11195 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
11196 (dot_deps_1): Call dot_deps_2.
11197 * Makefile.in (graphite-dependences.o): Add missing dependence on
11198 graphite-cloog-util.h.
11200 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11202 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
11203 (build_lexicographical_constraint): Same.
11204 (dependence_polyhedron_1): Same.
11205 (graphite_legal_transform_dr): Same.
11206 (graphite_carried_dependence_level_k): Same.
11207 * graphite-ppl.c (ppl_powerset_is_empty): New.
11208 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
11209 * tree-data-ref.c (dump_data_reference): Print the basic block index.
11211 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11213 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
11214 the "a followed by b" relation and document it.
11216 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11218 * graphite-dependences.c (build_lexicographical_constraint): Stop the
11219 iteration when the bag of constraints is empty.
11221 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11223 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
11225 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11227 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
11228 nest and two loop depths as parameters.
11229 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
11230 lst_perfect_nestify.
11232 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11234 * graphite-dependences.c (print_pddr): Call
11235 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
11237 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11239 * graphite-ppl.c (debug_gmp_value): New.
11240 * graphite-ppl.h (debug_gmp_value): Declared.
11242 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
11244 * doc/install.texi: Document availability of cloog-0.16.
11246 2011-01-25 Vladimir Kargov <kargov@gmail.com>
11248 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
11249 invalid postdominance info.
11251 2011-01-24 Jan Hubicka <jh@suse.cz>
11254 * doc/extend.texi (weak pragma): Drop claim that it must
11255 appear before definition.
11256 * varasm.c (merge_weak, declare_weak): Only sanity check
11257 that DECL is not output at a time it is declared weak.
11259 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
11261 * machmode.def: Fixed comments.
11263 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
11265 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
11267 2011-01-24 Paul Koning <ni1d@arrl.net>
11269 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
11272 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
11275 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
11276 (block_info): Add scanned and prev.
11277 (move_or_delete_vzeroupper_2): Return if the basic block
11278 has been scanned and the upper 128bit state is unchanged
11279 from the last scan.
11280 (move_or_delete_vzeroupper_1): Return true if the exit
11282 (move_or_delete_vzeroupper): Visit basic blocks using the
11283 work-list based algorithm based on vt_find_locations in
11286 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
11288 2011-01-24 Nick Clifton <nickc@redhat.com>
11290 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
11291 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
11292 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
11293 then define __v850e1__.
11294 * doc/invoke.texi: Document -mv850es.
11296 2011-01-24 Richard Henderson <rth@redhat.com>
11298 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
11299 compound unordered comparisons.
11300 * config/rx/rx.c (rx_split_fp_compare): Remove.
11301 * config/rx/rx-protos.h: Update.
11302 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
11303 (cbranchsf4): Don't call rx_split_fp_compare.
11304 (*cbranchsf4): Use rx_split_cbranch.
11305 (*cmpsf): Don't accept "i" constraint.
11306 (*conditional_branch): Only valid after reload.
11307 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
11309 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
11312 * config/rs6000/altivec.md (vector constant splitters): Add
11313 support for creating vector single precision constants if -mvsx is
11314 used and we would create the constant using Altivec primitives.
11316 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
11317 Richard Sandiford <rdsandiford@googlemail.com>
11319 PR rtl-optimization/47166
11320 * reload1.c (emit_reload_insns): Disable the spill_reg_store
11321 mechanism for PRE_MODIFY and POST_MODIFY.
11322 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
11325 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
11327 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
11329 2011-01-22 Jan Hubicka <jh@suse.cz>
11332 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
11334 2011-01-22 Jan Hubicka <jh@suse.cz>
11336 PR tree-optimization/43884
11338 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
11339 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
11341 2011-01-22 Anatoly Sokolov <aesok@post.ru>
11343 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11344 * config/s390/s390.c (s390_register_move_cost,
11345 s390_memory_move_cost): New.
11346 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
11348 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11350 PR middle-end/47401
11351 * except.c (sjlj_assign_call_site_values): Move setting the
11352 crtl->uses_eh_lsda flag to ...
11353 (sjlj_mark_call_sites): ... here.
11354 (sjlj_emit_function_enter): Support NULL dispatch label.
11355 (sjlj_build_landing_pads): In a function with no landing pads
11356 that still has must-not-throw regions, generate code to register
11357 a personality function with empty LSDA.
11359 2011-01-21 Richard Henderson <rth@redhat.com>
11361 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
11363 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
11365 * compare-elim.c: New file.
11366 * Makefile.in (OBJS-common): Add it.
11367 (compare-elim.o): New.
11368 * common.opt (fcompare-elim): New.
11369 * opts.c (default_options_table): Add OPT_fcompare_elim.
11370 * tree-pass.h (pass_compare_elim_after_reload): New.
11371 * passes.c (init_optimization_passes): Add it.
11372 * recog.h: Protect against re-inclusion.
11373 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
11374 * doc/invoke.texi (-fcompare-elim): Document it.
11375 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
11376 * doc/tm.texi: Rebuild.
11378 2011-01-22 Nick Clifton <nickc@redhat.com>
11380 * config/rx/rx.md (cstoresf4): Pass comparison operator to
11381 rx_split_fp_compare.
11383 2011-01-22 Nick Clifton <nickc@redhat.com>
11385 * config/rx/rx.md (UNSPEC_CONST): New.
11386 (deallocate_and_return): Wrap the amount popped off the stack in
11387 an UNSPEC_CONST in order to stop it being rejected by
11388 -mmax-constant-size.
11389 (pop_and_return): Add a "(return)" rtx.
11390 (call): Drop the immediate operand.
11391 (call_internal): Likewise.
11392 (call_value): Likewise.
11393 (call_value_internal): Likewise.
11394 (sibcall_internal): Likewise.
11395 (sibcall_value_internal): Likewise.
11396 (sibcall): Likewise. Generate an explicit call using
11398 (sibcall_value): Likewise.
11399 (mov<>): FAIL if a constant operand is not legitimate.
11400 (addsi3_unpsec): New pattern.
11402 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
11403 (ok_for_max_constant): New function.
11404 (gen_safe_add): New function.
11405 (rx_expand_prologue): Use gen_safe_add.
11406 (rx_expand_epilogue): Likewise.
11407 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
11410 2011-01-21 Jeff Law <law@redhat.com>
11412 PR tree-optimization/47053
11413 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
11414 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
11415 statements are deleted.
11416 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
11417 is nonempty, then purge dead edges and cleanup the CFG.
11419 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
11422 Temporarily revert:
11423 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
11425 * tree-dfa.c (create_var_ann): Mark variable as used.
11427 2011-01-21 Jakub Jelinek <jakub@redhat.com>
11429 PR middle-end/45566
11430 * except.c (convert_to_eh_region_ranges): Emit queued no-region
11431 notes from other section in hot/cold partitioning even if
11432 last_action is -3. Increment call_site_base.
11434 PR rtl-optimization/47366
11435 * fwprop.c (forward_propagate_into): Return bool. If
11436 any changes are made, -fnon-call-exceptions is used and
11437 REG_EH_REGION note is present, call purge_dead_edges
11438 and return true if it purged anything.
11439 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
11440 any EH edges were purged.
11442 2011-01-21 Jeff Law <law@redhat.com>
11444 PR rtl-optimization/41619
11445 * caller-save.c (setup_save_areas): Break out code to determine
11446 which hard regs are live across calls by examining the reload chains
11447 so that it is always used.
11448 Eliminate code which checked REG_N_CALLS_CROSSED.
11450 2011-01-21 Jakub Jelinek <jakub@redhat.com>
11452 PR tree-optimization/47355
11453 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
11454 NOP has non-debug uses beyond PHIs in new_bb.
11456 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
11459 * cfgexpand.c (account_used_vars_for_block): Only account vars
11460 that are annotated as used.
11461 (estimated_stack_frame_size): Don't set TREE_USED.
11462 * tree-dfa.c (create_var_ann): Mark variable as used.
11464 2011-01-21 Richard Guenther <rguenther@suse.de>
11466 PR middle-end/47395
11467 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
11469 2011-01-21 Richard Guenther <rguenther@suse.de>
11471 PR tree-optimization/47365
11472 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
11473 (vn_reference_lookup_pieces): Adjust.
11474 (vn_reference_lookup): Likewise.
11475 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
11476 (vn_reference_lookup_3): Only look through kills if in
11477 VN_WALKREWRITE mode.
11478 (vn_reference_lookup_pieces): Adjust.
11479 (vn_reference_lookup): Likewise.
11480 (visit_reference_op_load): Likewise.
11481 (visit_reference_op_store): Likewise.
11482 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
11483 (compute_avail): Likewise.
11484 (eliminate): Likewise.
11486 2011-01-21 Jakub Jelinek <jakub@redhat.com>
11488 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
11489 DECL_IGNORED_P non-reg vars if they are used.
11491 PR tree-optimization/47391
11492 * varpool.c (const_value_known_p): Return false if
11495 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
11498 * config/i386/i386.c (ix86_local_alignment): Handle
11499 case for va_list_type_node is nil.
11500 (ix86_canonical_va_list_type): Likewise.
11502 2011-01-21 Alan Modra <amodra@gmail.com>
11504 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
11505 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
11507 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11509 * config/arm/arm.md (define_attr type): Rename f_load
11510 and f_store to f_fpa_load and f_fpa_store. Update.
11511 (write_conflict): Deal with rename fallout.
11512 (*push_fp_multi): Likewise.
11513 * config/arm/fpa.md (f_load): Use f_fpa_load.
11514 (f_store): Use f_fpa_store.
11515 (*movsf_fpa): Likewise.
11516 (*movdf_fpa): Likewise.
11517 (*movxf_fpa): Likewise.
11518 (*thumb2_movsf_fpa): Likewise.
11519 (*thumb2_movdf_fpa): Likewise.
11520 (*thumb2_movxf_fpa): Likewise.
11521 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
11522 f_loadd and f_stored.
11523 (*thumb2_movdi_vfp): Likewise.
11524 (*thumb2_movsf_vfp): Fix attribute to f_loads.
11525 (*thumb2_movsi_vfp): Likewise.
11526 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
11527 Use f_loads instead of f_load.
11528 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
11530 2011-01-20 Anatoly Sokolov <aesok@post.ru>
11532 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11533 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
11534 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11535 (xtensa_mode_dependent_address_p): New function.
11536 (constantpool_address_p): Make static. Change return type to bool.
11537 Change argument type to const_rtx. Use CONST_INT_P predicate.
11539 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
11542 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
11544 2011-01-20 Jakub Jelinek <jakub@redhat.com>
11547 * cfgexpand.c (expand_debug_expr): Instead of generating
11548 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
11551 2011-01-20 Richard Guenther <rguenther@suse.de>
11553 PR middle-end/47370
11554 * tree-inline.c (remap_gimple_op_r): Recurse manually for
11555 the pointer operand of MEM_REFs.
11557 2011-01-20 Jakub Jelinek <jakub@redhat.com>
11559 PR tree-optimization/46130
11560 * ipa-split.c (consider_split): If return_bb contains non-virtual
11561 PHIs other than for retval or if split_function would not adjust it,
11564 2011-01-20 Richard Guenther <rguenther@suse.de>
11566 PR tree-optimization/47167
11567 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
11568 Revert previous change, only avoid enumeral type changes.
11570 2011-01-19 Mike Stump <mikestump@comcast.net>
11572 * doc/tm.texi.in (BRANCH_COST): Englishify.
11573 * doc/tm.texi (BRANCH_COST): Likewise.
11575 2011-01-19 Dodji Seketeli <dodji@redhat.com>
11578 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
11579 (gen_scheduled_generic_parms_dies): New functions.
11580 (gen_struct_or_union_type_die): Schedule template parameters DIEs
11581 generation for the end of CU compilation.
11582 (dwarf2out_finish): Generate template parameters DIEs here.
11584 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
11587 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
11588 debug bind stmt on merge edges.
11590 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
11594 * function.c (instantiate_expr): Instantiate incoming rtl of
11595 implicit arguments, and recurse on VALUE_EXPRs.
11596 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
11597 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
11599 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
11601 * c-parser.c (c_parser_for_statement): Initialize
11602 collection_expression.
11604 2011-01-19 Joseph Myers <joseph@codesourcery.com>
11606 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
11608 2011-01-19 Joseph Myers <joseph@codesourcery.com>
11610 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
11611 (LINK_SHLIB_SPEC): Don't use %(link_path).
11612 (SUBTARGET_EXTRA_SPECS): Remove link_path.
11614 2011-01-19 Joseph Myers <joseph@codesourcery.com>
11616 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
11617 (NO_SHARED_LIB_SUPPORT): Remove.
11618 (LINK_SHLIB_SPEC): Remove one conditional definition.
11620 2011-01-19 Joseph Myers <joseph@codesourcery.com>
11622 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
11624 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
11625 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
11626 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
11627 %{call_shared} and conditionals on these options not being passed.
11628 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
11631 2011-01-19 Jakub Jelinek <jakub@redhat.com>
11633 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
11636 * ipa-split.c: Spelling fixes.
11638 2011-01-19 Richard Henderson <rth@redhat.com>
11640 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
11641 (*mulsi3): Likewise.
11643 * longlong.h [__mn10300__] (count_leading_zeros): New.
11644 [__mn10300__] (umul_ppmm, smul_ppmm): New.
11645 [__mn10300__] (add_ssaaaa, subddmmss): New.
11646 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
11647 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
11649 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11651 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
11653 2011-01-19 Richard Henderson <rth@redhat.com>
11655 * config/mn10300/mn10300.md (addsi3_flags): New.
11656 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
11657 (subsi3_flags, subc_internal, subdi3): New.
11658 (subdi3_internal, *subdi3_degenerate): New.
11659 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
11661 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
11662 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
11663 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
11664 * config/mn10300/mn10300-protos.h: Update.
11665 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
11666 (return_ret): Likewise. Rename from return_internal_regs.
11667 (return_internal): Remove.
11669 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
11670 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
11671 (mn10300_legitimate_constant_p): Likewise.
11672 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
11673 (mn10300_frame_size): New.
11674 (mn10300_expand_prologue): Use it.
11675 (mn10300_expand_epilogue): Likewise.
11676 (mn10300_initial_offset): Likewise.
11677 * config/mn10300/mn10300-protos.h: Update.
11678 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
11679 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
11680 (prologue, epilogue, return_internal): Tidy output code.
11681 (mn10300_store_multiple_operation, return): Likewise.
11682 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
11683 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
11684 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
11685 (load_pic, am33_load_pic): New.
11686 (mn10300_load_pic0, mn10300_load_pic1): New.
11688 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
11689 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
11690 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
11691 (cc_flags_for_mode, cc_flags_for_code): New.
11692 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
11693 overflow flag is not valid. Validate that the flags we need
11694 for the comparison are valid.
11695 (mn10300_output_cmp): Remove.
11696 (mn10300_output_add): New.
11697 (mn10300_select_cc_mode): Use cc_flags_for_code.
11698 (mn10300_split_cbranch): New.
11699 (mn10300_match_ccmode): New.
11700 (mn10300_split_and_operand_count): New.
11701 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
11703 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
11704 (addsi3): ... here. Use mn10300_output_add.
11705 (*addsi3_flags): New.
11706 (*am33_subsi3, *mn10300_subsi3): Merge...
11707 (subsi3): ... here. Use attribute isa.
11708 (*subsi3_flags): New.
11709 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
11711 (*am33_andsi3, *mn10300_andsi3): Merge...
11712 (andsi3): ... here.
11713 (*andsi3_flags): New.
11714 (andsi3 splitters): New.
11715 (*am33_iorsi3, *mn10300_iorsi3): Merge...
11716 (iorsi3): ... here.
11717 (*iorsi3_flags): New.
11718 (*am33_xorsi3, *mn10300_xorsi3): Merge...
11719 (xorsi3): ... here.
11720 (*xorsi3_flags): New.
11721 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
11722 (one_cmplsi2): ... here.
11723 (*one_cmplsi2_flags): New.
11724 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
11725 instead of "dax" in constraints. Use mn10300_split_cbranch.
11726 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
11727 use matching constraints to eliminate a self-comparison.
11728 (*integer_conditional_branch): Rename from integer_conditional_branch.
11729 Use int_mode_flags to match CC_REG.
11730 (*cbranchsi4_btst, *btstsi): New.
11731 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
11732 mn10300_split_cbranch.
11733 (*am33_cmpsf): Rename from am33_cmpsf.
11734 (*float_conditional_branch): Rename from float_conditional_branch.
11735 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
11736 (zero_extendqisi2): ... here.
11737 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
11738 (zero_extendhisi2): ... here.
11739 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
11740 (extendqisi2): ... here.
11741 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
11742 (extendhisi2): ... here.
11743 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
11744 (ashlsi3): ... here.
11745 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
11746 (lshrsi3): ... here.
11747 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
11748 (ashrsi3): ... here.
11749 (consecutive add peephole): Remove.
11750 * config/mn10300/predicates.md (label_ref_operand): New.
11751 (int_mode_flags): New.
11752 (CCZN_comparison_operator): New.
11754 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
11755 (throughput_42_latency_43): New reservation.
11756 (mulsidi3, umulsidi3): New expanders.
11757 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
11758 the MDR register to allocation; separately allocate the low and
11759 high parts of the DImode result.
11760 (umulsidi3_internal): Similarly.
11761 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
11762 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
11763 (udivsi3, umodsi3): Remove.
11764 (udivmodsi4, divmodsi4): New expanders.
11765 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
11766 (*divmodsi4): Simiarly.
11767 (ext_internal): New.
11769 * config/mn10300/constraints.md ("z"): New constraint.
11770 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
11771 (FIXED_REGISTERS): Don't fix MDR.
11772 (CALL_USED_REGSITERS): Reformat nicely.
11773 (REG_ALLOC_ORDER): Add MDR.
11774 (enum regclass): Add MDR_REGS.
11775 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
11776 (IRA_COVER_CLASSES): Add MDR_REGS.
11777 (REGNO_REG_CLASS): Handle MDR_REG.
11778 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
11779 (mn10300_register_move_cost): Likewise.
11780 * config/mn10300/mn10300.md (MDR_REG): New.
11781 (*movsi_internal): Handle moves to/from MDR_REGS.
11783 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
11785 (mn10300_secondary_reload): Tidy combination reload classes.
11786 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
11787 addresses for AM33. Allow symbolic offsets for reg+imm.
11788 (mn10300_regno_in_class_p): New.
11789 (mn10300_legitimize_reload_address): New.
11790 * config/mn10300/mn10300.h (enum reg_class): Remove
11791 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
11792 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
11793 SP_OR_GENERAL_REGS.
11794 (REG_CLASS_NAMES): Update to match.
11795 (REG_CLASS_CONTENTS): Likewise.
11796 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
11797 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
11798 (REGNO_IN_RANGE_P): Remove.
11799 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
11800 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
11801 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
11802 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
11803 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
11804 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
11805 (REGNO_GENERAL_P): New.
11806 (HAVE_POST_MODIFY_DISP): New.
11807 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
11808 (LEGITIMIZE_RELOAD_ADDRESS): New.
11809 * config/mn10300/mn10300-protos.h: Update.
11811 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
11812 DATA_REGS for AM33 stack-pointer destination.
11813 (mn10300_preferred_output_reload_class): Likewise.
11814 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
11815 into a form appropriate for ...
11816 (TARGET_SECONDARY_RELOAD): New.
11817 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
11818 * config/mn10300/mn10300-protos.h: Update.
11819 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
11820 reload_insi; use the "A" constraint for the scratch; handle AM33
11821 moves of sp to non-address registers.
11823 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
11824 (*movqi_internal): ... here.
11825 (*am33_movhi, *mn10300_movhi): Merge into...
11826 (*movhi_internal): ... here.
11827 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
11828 as the source/destination of moves from/to SP.
11829 (movsf): Only allow for AM33-2.
11830 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
11831 any integer constant constraint. Only allow for AM33-2. Tidy
11832 all of the alternative outputs.
11833 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
11834 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
11836 (udivsi3, umodsi3): New patterns for MN103 only.
11838 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
11840 * doc/tm.texi.in: Spell out that a lack of register class unions
11842 * doc/tm.texi: Regenerate.
11844 2011-01-19 Jakub Jelinek <jakub@redhat.com>
11846 PR rtl-optimization/47337
11847 * dce.c (check_argument_store): New function.
11848 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
11850 PR tree-optimization/47290
11851 * tree-eh.c (infinite_empty_loop_p): New function.
11852 (cleanup_empty_eh): Use it.
11854 2011-01-18 Steve Ellcey <sje@cup.hp.com>
11857 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
11858 (a64_expand_widen_sum): Ditto.
11859 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
11860 (vec_extract_evenodd_help): Ditto.
11861 (vec_extract_evenv4hi): Ditto.
11862 (vec_extract_oddv4hi): Ditto.
11863 (vec_extract_evenv2si): Ditto.
11864 (vec_extract_oddv2si): Ditto.
11865 (vec_extract_evenv2sf): Ditto.
11866 (vec_extract_oddv2sf): Ditto.
11867 (vec_pack_trunc_v4hi: Ditto.
11868 (vec_pack_trunc_v2si): Ditto.
11869 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
11870 (vec_interleave_highv8qi): Ditto.
11872 (vec_extract_oddv8qi): Ditto.
11873 (vec_interleave_lowv4hi): Ditto.
11874 (vec_interleave_highv4hi): Ditto.
11875 (vec_interleave_lowv2si): Ditto.
11876 (vec_interleave_highv2si): Ditto.
11878 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11880 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
11881 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
11882 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
11883 (pa_c_mode_for_suffix): New.
11884 (TARGET_EXPAND_BUILTIN): Define.
11885 (TARGET_C_MODE_FOR_SUFFIX): Define.
11886 (pa_builtins): Define.
11887 (pa_init_builtins): Register __float128 type and init new support
11889 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
11890 * config/pa/quadlib.c (_U_Qfcopysign): New.
11892 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
11894 PR middle-end/46894
11895 * explow.c (allocate_dynamic_stack_space): Do not assume more than
11896 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
11899 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11901 PR tree-optimization/47179
11902 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
11903 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
11905 2011-01-18 Richard Guenther <rguenther@suse.de>
11907 PR rtl-optimization/47216
11908 * emit-rtl.c: Include tree-flow.h.
11909 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
11910 of replicating it with different semantics.
11911 * Makefile.in (emit-rtl.o): Adjust.
11913 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11915 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
11916 (cortex_a9_dp): Handle neon types correctly.
11918 2011-01-18 Jakub Jelinek <jakub@redhat.com>
11920 PR rtl-optimization/47299
11921 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
11922 subtarget. Use normal multiplication if both operands are constants.
11923 * expmed.c (expand_widening_mult): Don't try to optimize constant
11924 multiplication if op0 has VOIDmode. Convert op1 constant to mode
11927 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11929 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
11930 spacing after 'e.g.', typos, comma, hyphenation.
11932 2011-01-17 Richard Henderson <rth@redhat.com>
11934 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
11935 (rx_restricted_mem_operand): New.
11936 (rx_shift_operand): Use register_operand.
11937 (rx_source_operand, rx_compare_operand): Likewise.
11938 * config/rx/rx.md (addsi3_flags): New expander.
11939 (adddi3): Rewrite as expander.
11940 (adc_internal, *adc_flags, adddi3_internal): New patterns.
11941 (subsi3_flags): New expander.
11942 (subdi3): Rewrite as expander.
11943 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
11945 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
11946 (rx_init_builtins): Remove sat builtin.
11947 (rx_expand_builtin): Likewise.
11948 * config/rx/rx.md (ssaddsi3): New.
11949 (*sat): Rename from sat. Represent the CC_REG input.
11951 * config/rx/predicates.md (rshift_operator): New.
11952 * config/rx/rx.c (rx_expand_insv): Remove.
11953 * config/rx/rx-protos.h: Update.
11954 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
11955 operand to the canonical position.
11956 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
11957 (*bitclr, *bitclr_in_memory): Similarly.
11958 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
11959 (insv): Retain the zero_extract in the expansion.
11961 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
11962 (bswaphi2, bitinvert, revw): Likewise.
11964 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
11965 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
11966 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
11967 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
11968 (bitset, bitset_in_memory): Likewise.
11969 (bitinvert, bitinvert_in_memory): Likewise.
11970 (bitclr, bitclr_in_memory): Likewise.
11971 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
11972 (rx_strend, rx_cmpstrn): Likewise.
11973 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
11974 (bitop peep2 patterns): Remove.
11976 * config/rx/rx.c (rx_match_ccmode): New.
11977 * config/rx/rx-protos.h: Update.
11978 * config/rx/rx.md (abssi2): Clobber, don't set flags.
11979 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
11980 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
11981 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
11982 (fix_truncsfsi2, floatsisf2): Likewise.
11983 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
11984 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
11985 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
11986 (*subsi3_flags, *xorsi3_flags): New.
11988 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
11990 * config/rx/rx.c (rx_print_operand): Remove workaround for
11991 unsplit comparison operations.
11993 * config/rx/rx.md (movsicc): Split after reload.
11994 (*movsicc): Merge *movsieq and *movsine via match_operator.
11995 (*stcc): New pattern.
11997 * config/rx/rx.c (rx_float_compare_mode): Remove.
11998 * config/rx/rx.h (rx_float_compare_mode): Remove.
11999 * config/rx/rx.md (cstoresi4): Split after reload.
12000 (*sccc): New pattern.
12002 * config/rx/predicates.md (label_ref_operand): New.
12003 (rx_z_comparison_operator): New.
12004 (rx_zs_comparison_operator): New.
12005 (rx_fp_comparison_operator): New.
12006 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
12007 Validate that the flags are set properly for the comparison.
12008 (rx_gen_cond_branch_template): Remove.
12009 (rx_cc_modes_compatible): Remove.
12010 (mode_from_flags): New.
12011 (flags_from_code): Rename from flags_needed_for_conditional.
12012 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
12013 (rx_select_cc_mode): Likewise.
12014 (rx_split_fp_compare): New.
12015 (rx_split_cbranch): New.
12016 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
12017 (*cbranchsi4): Use match_operator and rx_split_cbranch.
12018 (*cbranchsf4): Similarly.
12019 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
12020 match_operator and rx_split_cbranch.
12021 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
12022 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
12023 (*cmpsi): Rename from cmpsi.
12024 (*tstsi): Rename from tstsi.
12025 (*cmpsf): Rename from cmpsf; use CC_Fmode.
12026 (*conditional_branch): Rename from conditional_branch.
12027 (*reveresed_conditional_branch): Remove.
12028 (b<code>): Remove expander.
12029 * config/rx/rx-protos.h: Update.
12031 * config/rx/rx.c (rx_compare_redundant): Remove.
12032 * config/rx/rx.md (cmpsi): Don't use it.
12033 * config/rx/rx-protos.h: Update.
12035 * config/rx/rx-modes.def (CC_F): New mode.
12036 * config/rx/rx.c (rx_select_cc_mode): New.
12037 * config/rx/rx.h (SELECT_CC_MODE): Use it.
12038 * config/rx/rx-protos.h: Update.
12040 2011-01-17 Richard Henderson <rth@redhat.com>
12042 * except.c (dump_eh_tree): Fix stray ; after for statement.
12044 2011-01-17 Richard Guenther <rguenther@suse.de>
12046 PR tree-optimization/47313
12047 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
12048 handling before copying the body. Properly deal with
12049 by-reference result in SSA form.
12051 2011-01-17 Ian Lance Taylor <iant@google.com>
12054 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
12055 (struct_value_alias_set): Don't define.
12056 (sparc_option_override): Don't set sparc_sr_alias_set and
12057 struct_value_alias_set.
12058 (save_or_restore_regs): Use gen_frame_mem rather than calling
12060 (sparc_struct_value_rtx): Likewise.
12062 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
12065 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
12066 (_mm_maskstore_pd): Likewise.
12067 (_mm_maskload_ps): Likewise.
12068 (_mm_maskstore_ps): Likewise.
12069 (_mm256_maskload_pd): Change mask to __m256i.
12070 (_mm256_maskstore_pd): Likewise.
12071 (_mm256_maskload_ps): Likewise.
12072 (_mm256_maskstore_ps): Likewise.
12074 * config/i386/i386-builtin-types.def: Updated.
12075 (ix86_expand_special_args_builtin): Likewise.
12077 * config/i386/i386.c (bdesc_special_args): Update
12078 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
12079 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
12080 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
12081 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
12083 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
12084 Use <avxpermvecmode> on mask register.
12085 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
12087 2011-01-17 Olivier Hainque <hainque@adacore.com>
12088 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12089 Eric Botcazou <ebotcazou@adacore.com>
12092 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
12093 if <= USHRT_MAX in 32-bit mode.
12095 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12097 * doc/install.texi (Configuration, Specific): Wrap long
12098 lines in examples. Allow line wrapping in long options
12099 and URLs where beneficial for PDF output.
12101 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
12103 * config/mips/mips.c (mips_classify_symbol): Don't return
12104 SYMBOL_PC_RELATIVE for nonlocal labels.
12106 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
12108 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
12110 2011-01-15 Jan Hubicka <jh@suse.cz>
12112 PR tree-optimization/47276
12113 * ipa.c (function_and_variable_visibility): Do not try to mark alias
12114 declarations as needed.
12116 2011-01-15 Martin Jambor <mjambor@suse.cz>
12118 * common.opt (fdevirtualize): New flag.
12119 * doc/invoke.texi (Option Summary): Document it.
12120 * opts.c (default_options_table): Add devirtualize flag.
12121 * ipa-prop.c (detect_type_change): Return immediately if
12122 devirtualize flag is not set.
12123 (detect_type_change_ssa): Likewise.
12124 (compute_known_type_jump_func): Likewise.
12125 (ipa_analyze_virtual_call_uses): Likewise.
12127 2011-01-14 Martin Jambor <mjambor@suse.cz>
12129 PR tree-optimization/45934
12130 PR tree-optimization/46302
12131 * ipa-prop.c (type_change_info): New type.
12132 (stmt_may_be_vtbl_ptr_store): New function.
12133 (check_stmt_for_type_change): Likewise.
12134 (detect_type_change): Likewise.
12135 (detect_type_change_ssa): Likewise.
12136 (compute_complex_assign_jump_func): Check for dynamic type change.
12137 (compute_complex_ancestor_jump_func): Likewise.
12138 (compute_known_type_jump_func): Likewise.
12139 (compute_scalar_jump_functions): Likewise.
12140 (ipa_analyze_virtual_call_uses): Likewise.
12141 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
12143 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12145 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
12146 * config/i386/i386.opt (msse5): New Alias.
12148 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12150 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12151 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12152 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12153 * config/sparc/sparc.h (CC1_SPEC): Likewise.
12155 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12157 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
12159 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12160 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12161 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
12162 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
12164 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
12166 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12168 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
12170 2011-01-14 Mike Stump <mikestump@comcast.net>
12172 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
12173 * config/fr30/fr30.md: Likweise
12174 (movsi_push): Likewise.
12175 (movsi_pop): Likewise.
12176 (enter_func): Likewise.
12177 * config/moxie/moxie.md (movsi_push): Likewise.
12178 (movsi_pop): Likewise.
12180 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12182 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
12183 %{no_archive} %{exact_version}.
12184 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
12185 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
12186 %{no_archive} %{exact_version}.
12187 * config/mips/openbsd.h (LINK_SPEC): Likewise.
12188 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
12189 * config/mips/vxworks.h: Likewise.
12191 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12193 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
12195 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12197 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
12198 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
12200 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12202 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
12205 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12207 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
12209 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
12210 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
12212 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
12213 Don't handle -shlib.
12215 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12217 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
12218 (CC1_SPEC): Don't handle -profile.
12220 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12222 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
12223 * config/mips/mips.h (CC1_SPEC): Likewise.
12225 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12227 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
12228 * config/mips/mips.h (CC1_SPEC): Likewise.
12230 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12232 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
12233 * config/m32r/linux.h (LINK_SPEC): Likewise.
12234 * config/mips/linux.h (LINK_SPEC): Likewise.
12235 * config/mips/linux64.h (LINK_SPEC): Likewise.
12236 * config/sparc/linux.h (LINK_SPEC): Likewise.
12237 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
12238 LINK_SPEC): Likewise.
12239 * config/xtensa/linux.h (LINK_SPEC): Likewise.
12241 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12243 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
12245 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
12247 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12249 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
12250 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
12252 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12254 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
12256 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12258 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
12259 supports -Bstatic/-Bdynamic.
12260 * configure: Regenerate.
12262 2011-01-14 Jan Hubicka <jh@suse.cz>
12263 Jack Howarth <howarth@bromo.med.uc.edu>
12266 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
12267 when checking debug_info_level. Test write_symbols instead of
12268 debug_hooks->var_location when setting flag_var_tracking_uninit.
12270 2011-01-14 Richard Guenther <rguenther@suse.de>
12272 PR tree-optimization/47179
12273 * target.def (ref_may_alias_errno): New target hook.
12274 * targhooks.h (default_ref_may_alias_errno): Declare.
12275 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
12276 (default_ref_may_alias_errno): New function.
12277 * target.h (struct ao_ref_s): Declare.
12278 * tree-ssa-alias.c: Include target.h.
12279 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
12280 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
12281 (targhooks.o): Likewise.
12282 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
12283 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
12285 2011-01-14 Richard Guenther <rguenther@suse.de>
12287 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
12289 2011-01-14 Richard Guenther <rguenther@suse.de>
12291 PR tree-optimization/47280
12292 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
12293 return CFG changes.
12294 (tree_ssa_forward_propagate_single_use_vars): Deal with
12295 CFG changes from associate_plusminus.
12297 2011-01-14 Richard Guenther <rguenther@suse.de>
12299 PR middle-end/47281
12301 2011-01-11 Richard Guenther <rguenther@suse.de>
12303 PR tree-optimization/46076
12304 * tree-ssa.c (useless_type_conversion_p): Conversions from
12305 unprototyped to empty argument list function types are useless.
12307 2011-01-14 Richard Guenther <rguenther@suse.de>
12309 PR tree-optimization/47286
12310 * tree-ssa-structalias.c (new_var_info): Register variables are global.
12312 2011-01-14 Martin Jambor <mjambor@suse.cz>
12314 PR middle-end/46823
12315 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
12317 2011-01-13 Anatoly Sokolov <aesok@post.ru>
12319 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
12320 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12321 * config/xtensa/xtensa.c (xtensa_libcall_value,
12322 xtensa_function_value_regno_p): New functions.
12323 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12325 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
12328 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
12330 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
12331 New function prototype.
12332 * config/i386/winnt.c (i386_pe_assemble_visibility):
12333 Warn only if attribute was specified by user.
12335 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
12338 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
12340 (floatunsdidf2_fcfidu): Ditto.
12342 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12344 * config/s390/s390.c (print_operand_address): Replace 'error' with
12345 'output_operand_lossage'.
12346 (print_operand): Likewise.
12348 2011-01-13 Jeff Law <law@redhat.com>
12350 PR rtl-optimization/39077
12351 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
12352 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
12353 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
12354 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
12355 * gcse.c (prune_insertions_deletions): New function.
12356 (compute_pre_data): Use it.
12358 2011-01-13 Dodji Seketeli <dodji@redhat.com>
12361 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
12363 (prune_unused_types_mark): Use it.
12365 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
12367 PR rtl-optimization/45352
12368 * sel-sched.c: Update copyright years.
12369 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
12370 in the advancing loop when we have issued issue_rate insns.
12372 2011-01-12 Richard Henderson <rth@redhat.com>
12374 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
12375 (TARGET_MD_ASM_CLOBBERS): New.
12377 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
12378 (TARGET_DELEGITIMIZE_ADDRESS): New.
12380 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
12381 (clzsi2, *bsch): New patterns.
12383 * config/mn10300/mn10300.md (INT): New mode iterator.
12384 (*mov<INT>_clr): New pattern, and peep2 to generate it.
12386 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
12387 flag_split_wide_types.
12389 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
12390 (mn10300_trampoline_init): Rewrite without a template, an immediate
12391 load and a direct branch.
12392 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
12394 2011-01-12 Anatoly Sokolov <aesok@post.ru>
12396 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12397 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
12398 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
12399 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12401 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
12404 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
12407 2011-01-12 Jan Hubicka <jh@suse.cz>
12410 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
12411 (PLUGIN_COND_CLOSE): New macro.
12412 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
12414 2011-01-12 Richard Guenther <rguenther@suse.de>
12417 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
12418 register variables in a MEM_REF.
12420 2011-01-12 Joseph Myers <joseph@codesourcery.com>
12422 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
12423 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
12424 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
12425 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
12426 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
12427 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
12428 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
12429 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
12430 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
12431 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
12432 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
12433 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
12434 * config/gnu-user.h: New. Copied from linux.h.
12435 (LINUX_TARGET_STARTFILE_SPEC): Rename to
12436 GNU_USER_TARGET_STARTFILE_SPEC.
12437 (LINUX_TARGET_ENDFILE_SPEC): Rename to
12438 GNU_USER_TARGET_ENDFILE_SPEC.
12439 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
12440 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
12441 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
12442 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
12443 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
12444 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
12445 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
12446 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
12447 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
12448 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
12449 * config/arm/linux-eabi.h (CC1_SPEC): Use
12450 GNU_USER_TARGET_CC1_SPEC.
12451 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
12452 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
12453 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
12454 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
12455 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
12456 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
12457 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
12458 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
12460 2011-01-12 Richard Guenther <rguenther@suse.de>
12463 * doc/invoke.texi (ffast-math): Document it is turned on
12466 2011-01-12 Jan Hubicka <jh@suse.cz>
12468 PR tree-optimization/47233
12469 * opts.c (common_handle_option): Disable ipa-reference with profile
12472 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
12474 * c-parser.c (c_parser_objc_at_property_declaration): Improved
12477 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
12479 * c-parser.c (c_lex_one_token): Updated and reindented some
12480 comments. No changes in code.
12482 2011-01-11 Ian Lance Taylor <iant@google.com>
12484 * godump.c (go_output_var): Don't output the variable if there is
12485 already a type with the same name.
12487 2011-01-11 Ian Lance Taylor <iant@google.com>
12489 * godump.c (go_format_type): Don't generate float80.
12491 2011-01-11 Richard Henderson <rth@redhat.com>
12493 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
12494 declaration. Rewrite for both speed and size.
12495 (mn10300_address_cost_1): Remove.
12496 (mn10300_register_move_cost): New.
12497 (mn10300_memory_move_cost): New.
12498 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
12499 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
12500 extensions, shifts, BSWAP, CLZ.
12501 (mn10300_wide_const_load_uses_clr): Remove.
12502 (TARGET_REGISTER_MOVE_COST): New.
12503 (TARGET_MEMORY_MOVE_COST): New.
12504 * config/mn10300/mn10300-protos.h: Update.
12505 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
12507 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
12508 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
12509 * config/mn10300/mn10300-protos.h: Update.
12510 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
12511 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
12512 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
12513 (*test_int_bitfield, *test_byte_bitfield): Remove.
12514 (*bit_test, *subreg_bit_test): Remove.
12515 * config/mn10300/predicates.md (const_8bit_operand): Remove.
12517 * config/mn10300/constraints.md ("c"): Rename from "A".
12518 ("A", "D"): New constraint letters.
12519 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
12520 (fmssf4, fnmasf4, fnmssf4): Likewise.
12522 * config/mn10300/mn10300.md (isa): New attribute.
12523 (enabled): New attribute.
12525 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
12526 (abssf2, negsf2): Define only for hardware fp.
12527 (sqrtsf2): Reformat.
12528 (addsf3, subsf3, mulsf3): Merge expander and insn.
12530 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
12531 (DEBUGGER_AUTO_OFFSET): Remove.
12532 (DEBUGGER_ARG_OFFSET): Remove.
12534 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
12535 Emit register stores with the same offsets as the hardware.
12536 (mn10300_store_multiple_operation): Don't check that the register
12537 save offsets are monotonic.
12538 * config/mn10300/mn10300-protos.h: Update.
12540 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
12542 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
12543 in terms of the value on the stack, not the MDR register.
12545 2011-01-11 Jan Hubicka <jh@suse.cz>
12549 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
12550 (symbol_alias_set_destroy, symbol_alias_set_contains,
12551 propagate_aliases_backward): Declare.
12552 * lto-streamer-out.c (struct sets): New sturcture.
12553 (trivally_defined_alias): New function.
12554 (output_alias_pair_p): Rewrite.
12555 (output_unreferenced_globals): Fix output of alias pairs.
12556 (produce_symtab): Likewise.
12557 * ipa.c (function_and_variable_visibility): Set weak alias destination
12559 * varasm.c (symbol_alias_set_t): Remove.
12560 (symbol_alias_set_destroy): Export.
12561 (propagate_aliases_forward, propagate_aliases_backward): New functions
12563 (compute_visible_aliases): ... this one; remove.
12564 (trivially_visible_alias): New
12565 (trivially_defined_alias): New.
12566 (remove_unreachable_alias_pairs): Rewrite.
12567 (finish_aliases_1): Reorganize code checking if alias is defined.
12568 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
12571 2011-01-11 Richard Guenther <rguenther@suse.de>
12573 PR tree-optimization/46076
12574 * tree-ssa.c (useless_type_conversion_p): Conversions from
12575 unprototyped to empty argument list function types are useless.
12577 2011-01-11 Richard Guenther <rguenther@suse.de>
12579 PR middle-end/45235
12580 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
12581 volatile MEMs as MEM_READONLY_P.
12583 2011-01-11 Richard Guenther <rguenther@suse.de>
12585 PR tree-optimization/47239
12586 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
12588 2011-01-11 Jeff Law <law@redhat.com>
12590 PR tree-optimization/47086
12591 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
12592 IVs from statements that might throw.
12594 2011-01-10 Jan Hubicka <jh@suse.cz>
12597 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
12599 2011-01-10 Jan Hubicka <jh@suse.cz>
12602 * profile.c (read_profile_edge_counts): Ignore profile inconistency
12603 when correcting profile.
12605 2011-01-10 Jan Hubicka <jh@suse.cz>
12608 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
12609 DECL_FINI_PRIORITY.
12610 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
12611 Restore DECL_FINI_PRIORITY.
12613 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12615 * doc/gimple.texi: Fix quoting of multi-word return values in
12616 @deftypefn statements. Ensure presence of return value. Wrap
12617 overlong @deftypefn lines.
12618 (is_gimple_operand, is_gimple_min_invariant_address): Remove
12619 descriptions of removed functions.
12620 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
12621 of multi-word return value in @deftypefn statement.
12623 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12625 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
12626 (Conditional Expressions, Logical Operators)
12627 (Statement and operand traversals): Do not indent smallexample
12628 code. Fix duplicate function argument in example.
12630 2011-01-10 Jeff Law <law@redhat.com>
12632 PR tree-optimization/47141
12633 * ipa-split.c (split_function): Handle case where we are
12634 returning a value and the return block has a virtual operand phi.
12636 2011-01-10 Jan Hubicka <jh@suse.cz>
12638 PR tree-optimization/47234
12639 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
12640 (pass_feedback_split_functions): Declare.
12641 * passes.c (init_optimization_passes): Add ipa-split as subpass of
12643 * ipa-split.c (gate_split_functions): Update comments; disable
12644 split-functions for profile_arc_flag and branch_probabilities.
12645 (gate_feedback_split_functions): New function.
12646 (execute_feedback_split_functions): New function.
12647 (pass_feedback_split_functions): New global var.
12649 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
12652 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
12653 calling gimple_call_set_cannot_inline.
12655 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
12657 * config/darwin-sections.def: Remove unused section.
12659 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
12662 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
12664 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
12667 * c-parser.c (c_parser_declaration_or_fndef): Improved
12670 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
12672 * config/i386/winnt.c (i386_pe_start_function): Make sure
12673 to switch back to function's section.
12675 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
12679 * plugin.c: Move include of dlfcn.h from here...
12680 * system.h: ... to here.
12682 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12684 * doc/cpp.texi (C++ Named Operators): Fix markup for header
12686 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
12687 two extra empty pages in PDF output.
12689 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
12692 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
12693 for error recovery purposes behave as if it was not specified so
12694 that the default type is usd.
12696 2011-01-07 Jan Hubicka <jh@suse.cz>
12698 PR tree-optmization/46469
12699 * ipa.c (function_and_variable_visibility): Clear needed flags on
12700 nodes with external decls; handle weakrefs merging correctly.
12702 2011-01-07 Joseph Myers <joseph@codesourcery.com>
12704 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
12707 2011-01-07 Jan Hubicka <jh@suse.cz>
12709 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
12710 and no longer claim that gold is required for linker plugin.
12711 * configure: Regenerate.
12712 * gcc.c (PLUGIN_COND): New macro.
12713 (LINK_COMMAND_SPEC): Use it.
12714 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
12715 * config.in (HAVE_LTO_PLUGIN): New.
12716 * configure.ac (--with-lto-plugin): New parameter; autodetect
12719 2011-01-07 Jan Hubicka <jh@suse.cz>
12721 PR tree-optimization/46367
12722 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
12723 when we can update original.
12724 (cgraph_mark_inline_edge): Sanity check.
12725 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
12727 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12729 * config/spu/spu.h (ASM_COMMENT_START): Define.
12731 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
12734 * gcc.c (%>S): New.
12735 (SWITCH_KEEP_FOR_GCC): Likewise.
12736 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
12737 (do_spec_1): Handle "%>".
12739 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
12741 2011-01-07 Jakub Jelinek <jakub@redhat.com>
12744 * config/i386/i386.c (ix86_delegitimize_address): If
12745 simplify_gen_subreg fails, return orig_x.
12748 * value-prof.c (gimple_stringop_fixed_value): Handle
12749 lhs of the call properly.
12751 2011-01-07 Jan Hubicka <jh@suse.cz>
12754 * lto-opt.c (lto_reissue_options): Set flag_shlib.
12756 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
12758 * target.def (function_switched_text_sections): New hook.
12759 * doc/tm.texi: Regenerated.
12760 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
12761 * final.c (default_function_switched_text_sections): New.
12762 (final_scan_insn): Call function_switched_text_sections when a
12763 mid-function section change occurs.
12764 * output.h (default_function_switched_text_sections): Declare.
12765 * config/darwin-protos.h (darwin_function_switched_text_sections):
12767 * config/darwin.c (darwin_function_switched_text_sections): New.
12768 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
12770 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
12772 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
12773 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
12774 the secondary code fragment when outputting for DWARF == 2.
12776 2011-01-07 Anatoly Sokolov <aesok@post.ru>
12778 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12779 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
12781 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
12782 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12784 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
12787 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
12788 when it is not empty.
12790 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
12793 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
12794 (case ${target}): Add btver1.
12795 * config/i386/driver-i386.c (host_detect_local_cpu): Let
12796 -march=native recognize btver1 processors.
12797 * config/i386/i386-c.c (ix86_target_macros_internal): Add
12798 btver1 def_and_undef
12799 * config/i386/i386.c (struct processor_costs btver1_cost): New
12801 (m_BTVER1): New definition.
12802 (m_AMD_MULTIPLE): Includes m_BTVER1.
12803 (initial_ix86_tune_features): Add btver1 tune.
12804 (processor_target_table): Add btver1 entry.
12805 (static const char *const cpu_names): Add btver1 entry.
12806 (software_prefetching_beneficial_p): Add btver1.
12807 (ix86_option_override_internal): Add btver1 instruction sets.
12808 (ix86_issue_rate): Add btver1.
12809 (ix86_adjust_cost): Add btver1.
12810 * config/i386/i386.h (TARGET_BTVER1): New definition.
12811 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
12812 (enum processor_type): Add PROCESSOR_BTVER1.
12813 * config/i386/i386.md (define_attr "cpu"): Add btver1.
12815 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12818 * config/i386/i386.c (legitimize_tls_address)
12819 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
12820 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
12821 (tls_initial_exec_64_sun): New pattern.
12823 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
12825 * doc/invoke.texi (Overall Options): Improve wording and markup
12826 of the description of -wrapper.
12828 2011-01-06 Joseph Myers <joseph@codesourcery.com>
12830 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
12831 rdynamic, threads): New Driver options.
12833 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12836 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
12837 if coming from .tdata.
12838 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
12840 2011-01-06 Jan Hubicka <jh@suse.cz>
12843 * collect2.c (main): Do not enable LTOmode when plugin is active.
12845 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12848 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
12849 --version output if supported.
12850 * configure: Regenerate.
12852 2011-01-06 Joseph Myers <joseph@codesourcery.com>
12854 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
12857 2011-01-06 Jakub Jelinek <jakub@redhat.com>
12860 * c-convert.c (convert): When converting a complex expression
12861 other than COMPLEX_EXPR to a different complex type, ensure
12862 c_save_expr is called instead of save_expr, unless in_late_binary_op.
12863 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
12864 when converting COMPLEX_TYPE.
12866 2011-01-06 Ira Rosen <irar@il.ibm.com>
12868 PR tree-optimization/47139
12869 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
12870 only the last reduction value is used outside the loop. Update
12873 2011-01-05 Joseph Myers <joseph@codesourcery.com>
12875 * config/rtems.opt: New.
12876 * config.gcc (*-*-rtems*): Use rtems.opt.
12878 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
12880 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
12881 processors do not support 3DNow instructions.
12883 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12885 * config/spu/spu.c (spu_option_override): Set parameter
12886 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
12888 2011-01-05 Jan Hubicka <jh@suse.cz>
12890 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
12891 at the command line.
12893 2011-01-05 Martin Jambor <mjambor@suse.cz>
12896 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
12897 deltas on streamed outgoing edges.
12898 (output_node_opt_summary): Output info for outgoing edges only when
12899 the node is in new parameter set.
12900 (output_cgraph_opt_summary): New parameter set, passed to the two
12901 aforementioned functions. Update its forward declaration and its
12904 2011-01-05 Tom Tromey <tromey@redhat.com>
12906 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
12907 operator to c_finish_omp_atomic.
12908 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
12909 (build_unary_op): Update.
12910 (build_modify_expr): Update.
12911 (build_asm_expr): Update.
12913 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12915 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
12916 newly inserted insns.
12917 (pad_bb): Likewise.
12918 (spu_emit_branch_hint): Likewise.
12919 (insert_hbrp_for_ilb_runout): Likewise.
12920 (spu_machine_dependent_reorg): Call df_finish_pass after
12921 schedule_insns returns.
12923 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12925 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
12927 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
12929 PR tree-optimization/47005
12930 * tree-sra.c (struct access): Add 'non_addressable' bit.
12931 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
12932 (decide_one_param_reduction): Return 0 if the parameter is passed by
12933 reference and one of the accesses in the group is non_addressable.
12935 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
12937 PR tree-optimization/47056
12938 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
12939 (mark_load): Likewise. Handle FUNCTION_DECL specially.
12940 (mark_store): Likewise. Pass STMT to ipa_record_reference.
12942 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
12944 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
12945 initializer. Skip view conversions from aggregate types.
12947 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
12950 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
12952 2011-01-04 Philipp Thomas <pth@suse.de>
12954 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
12957 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12959 * function.c (thread_prologue_and_epilogue_insns): Do not crash
12960 on empty epilogue sequences.
12962 2011-01-04 Joseph Myers <joseph@codesourcery.com>
12964 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
12965 non-static): New Driver options.
12967 2011-01-04 Jie Zhang <jie@codesourcery.com>
12970 * gcc.c (default_compilers[]): Set combinable field to 0
12971 for all assembly languages.
12973 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
12975 * config/mips/loongson3a.md: New file.
12976 * config/mips/mips.md: Include loongson3a.md.
12977 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
12980 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
12982 PR middle-end/47017
12983 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
12984 instead of convert_memory_address_addr_space on the base expression.
12986 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12988 * config/spu/spu.c (spu_option_override): Update error text
12989 for bad -march= / -mtune= values.
12991 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12993 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
12994 if branch-hint optimization will be performed.
12996 2011-01-03 Jakub Jelinek <jakub@redhat.com>
12998 PR tree-optimization/47148
12999 * ipa-split.c (split_function): Convert arguments to
13000 DECL_ARG_TYPE if possible.
13002 PR tree-optimization/47155
13003 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
13004 when computing uns.
13006 PR rtl-optimization/47157
13007 * combine.c (try_combine): If undobuf.other_insn becomes
13008 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
13009 and set *new_direct_jump_p too.
13011 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
13013 PR tree-optimization/47021
13014 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
13016 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13018 * gcc.c (process_command): Update copyright notice dates.
13019 * gcov.c (print_version): Likewise.
13020 * gcov-dump.c (print_version): Likewise.
13021 * mips-tfile.c (main): Likewise.
13022 * mips-tdump.c (main): Likewise.
13024 2011-01-03 Martin Jambor <mjambor@suse.cz>
13026 PR tree-optimization/46801
13027 * tree-sra.c (type_internals_preclude_sra_p): Check whether
13028 aggregate fields start at byte boundary instead of the bit-field flag.
13030 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
13033 * gcc.c (main): Revert revision 168407.
13035 2011-01-03 Martin Jambor <mjambor@suse.cz>
13037 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
13039 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13041 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
13042 vector optab to expand vector/scalar shift, update gimple to vector.
13044 2011-01-03 Martin Jambor <mjambor@suse.cz>
13046 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
13049 2011-01-03 Martin Jambor <mjambor@suse.cz>
13051 PR tree-optimization/46984
13052 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
13054 (cgraph_create_indirect_edge): Fixed line length.
13055 (cgraph_indirect_call_info): Declare.
13056 (cgraph_make_edge_direct) Update declaration.
13057 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
13058 (cgraph_create_indirect_edge): Use it.
13059 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
13061 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
13062 the new thunk_delta representation.
13063 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
13065 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
13066 (ipa_read_indirect_edge_info): Likewise.
13067 * lto-cgraph.c (output_edge_opt_summary): New function.
13068 (output_node_opt_summary): Call it on all outgoing edges.
13069 (input_edge_opt_summary): New function.
13070 (input_node_opt_summary): Call it on all outgoing edges.
13072 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
13075 * gcc.c (main): Don't check have_o when settting combine_inputs.
13077 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
13079 * regrename.c: Add general comment describing the pass.
13080 (struct du_head): Remove 'length' field.
13081 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
13082 (regrename_optimize): Do not sort chains. Rework comments, add others.
13083 Force renaming to the preferred class (if any) in the first pass and do
13084 not consider registers that belong to it in the second pass.
13085 (create_new_chain): Do not set 'length' field.
13086 (scan_rtx_reg): Likewise.
13088 2011-01-02 Jakub Jelinek <jakub@redhat.com>
13090 PR tree-optimization/47140
13091 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
13092 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
13093 to bit_value_binop.
13095 PR rtl-optimization/47028
13096 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
13097 parm_birth_insn instead of at the beginning of first bb.
13099 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
13101 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
13102 Remove the word "see" before "@pxref".
13103 * doc/rtl.texi: Remove the word "see" before "@pxref".
13105 2011-01-01 Jan Hubicka <jh@suse.cz>
13107 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
13110 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
13113 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
13116 Copyright (C) 2011 Free Software Foundation, Inc.
13118 Copying and distribution of this file, with or without modification,
13119 are permitted in any medium without royalty provided the copyright
13120 notice and this notice are preserved.