1 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
5 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
8 * config/bfin/bfin.md (MOVCC): New mode_macro.
9 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
10 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
11 comments from generated assembly.
13 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
16 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
17 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
18 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
19 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
20 * config/bfin/lib1funcs.asm (___muldi3): New function.
22 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
24 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
25 build_function_type_list instead of build_function_type.
26 Rearrange initialization of `args' to do so.
28 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
30 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
31 instead of build_function_type.
33 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
35 * config/rs6000/rs6000.c (spe_init_builtins): Call
36 build_function_type_list instead of build_function_type.
37 (paired_init_builtins, altivec_init_builtins): Likewise.
38 (builtin_function_type): Likewise.
40 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
42 * config/sh/sh.c (sh_media_init_builtins): Call
43 build_function_type_list instead of build_function_type.
45 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
47 * config/sparc/sparc.c (sparc_file_end): Call
48 build_function_type_list instead of build_function_type.
50 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
52 * config/alpha/alpha.c (alpha_init_builtins): Call
53 build_function_type_list instead of build_function_type.
55 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
57 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
58 build_function_type_list instead of build_function_type.
60 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
62 * config/iq2000/i2000.c (iq2000_init_builtins): Call
63 build_function_type_list instead of build_function_type.
64 Delete `endlink' variable.
66 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
68 * config/avr/avr.c (avr_init_builtins): Call
69 build_function_type_list instead of build_function_type.
71 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
73 * config/picochip/picochip.c (picochip_init_builtins): Call
74 build_function_type_list instead of build_function_type.
75 Delete `endlink' variable.
77 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
79 * config/bfin/bfin.c (bfin_init_builtins): Call
80 build_function_type_list instead of build_function_type.
82 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
85 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
86 that's not CONST_INT. Seemingly redundant check is due to PR39768.
88 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
91 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
92 libbffastfp overrides libgcc when -mfast-fp.
94 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
96 Originally from Bernd Schmidt
97 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
98 * config/bfin/bfin.c (override_options): Test it and error if
101 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
103 Originally From Bernd Schmidt
104 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
107 2011-05-03 Jeff Law <law@redhat.com>
109 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
110 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
111 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
112 than accessing AUX field directly. Free the AUX field before
114 (thread_block, thread_through_loop_header): Likewise.
115 (thread_single_edge, mark_threaded_blocks): Likewise.
116 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
117 (register_jump_thread): Do not attempt to thread to a NULL edge.
119 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
121 * function.c (init_function_start): Call decide_function_section.
122 * varasm.c (decide_function_section): New function.
123 (assemble_start_function): When not using
124 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
125 or first_function_block_is_cold.
126 * rtl.h (decide_function_section): Declare.
128 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
129 Jakub Jelinek <jakub@redhat.com>
132 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
133 only succeed if req_mode is the same as set_mode.
135 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
137 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
138 * genemit.c (gen_exp): Handle RETURN.
139 * emit-rtl.c (verify_rtx_sharing): Likewise.
140 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
141 * rtl.c (copy_rtx): RETURN is shared.
142 * rtl.h (enum global_rtl_index): Add GR_RETURN.
144 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
145 * config/s390/s390.c (s390_emit_epilogue): Likewise.
146 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
147 * config/cris/cris.c (cris_expand_return): Likewise.
148 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
149 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
150 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
151 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
152 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
154 * config/v850/v850.c (expand_epilogue): Likewise.
155 * config/bfin/bfin.c (bfin_expand_call): Likewise.
156 * config/arm/arm.md (epilogue): Likewise.
157 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
158 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
161 2011-05-03 Richard Guenther <rguenther@suse.de>
164 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
165 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
166 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
168 2011-05-03 Richard Guenther <rguenther@suse.de>
170 * c-decl.c (grokdeclarator): Instead of looking at
171 TREE_OVERFLOW check if the constant fits in the index type.
173 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
175 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
176 (vec_store_lanes<mode><mode>): Likewise.
178 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
180 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
181 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
182 convert_optab_index values.
183 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
184 * genopinit.c (optabs): Initialize the new optabs.
185 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
186 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
187 (expand_STORE_LANES): New functions.
188 * tree.h (build_array_type_nelts): Declare.
189 * tree.c (build_array_type_nelts): New function.
190 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
191 (vect_model_load_cost): Likewise.
192 (vect_store_lanes_supported, vect_load_lanes_supported)
193 (vect_record_strided_load_vectors): Declare.
194 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
195 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
196 (vect_transform_strided_load): Split out statement recording into...
197 (vect_record_strided_load_vectors): ...this new function.
198 * tree-vect-stmts.c (create_vector_array, read_vector_array)
199 (write_vector_array, create_array_ref): New functions.
200 (vect_model_store_cost): Add store_lanes_p argument.
201 (vect_model_load_cost): Add load_lanes_p argument.
202 (vectorizable_store): Try to use store-lanes functions for
204 (vectorizable_load): Likewise load-lanes and loads.
205 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
206 to vect_model_store_cost.
207 (vect_build_slp_tree): Likewise vect_model_load_cost.
209 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
211 * hooks.h (hook_bool_mode_uhwi_false): Declare.
212 * hooks.c (hook_bool_mode_uhwi_false): New function.
213 * target.def (array_mode_supported_p): New hook.
214 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
215 * doc/tm.texi: Regenerate.
216 * stor-layout.c (mode_for_array): New function.
217 (layout_type): Use it.
218 * config/arm/arm.c (arm_array_mode_supported_p): New function.
219 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
221 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
224 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
225 for -fstack-check if the size to allocate is negative.
227 2011-05-02 Lawrence Crowl <crowl@google.com>
229 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
230 (timevar_cond_start): New for starting a timer only when it is not
232 (timevar_cond_stop): New for stopping a timer when it was not already
235 * timevar.c (timevar_stop): Enable start/stop timers to start again.
236 (timevar_cond_start): New as above.
237 (timevar_cond_stop): New as above.
239 * timevar.def: Add start/stop timers for compiler phases,
240 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
241 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
242 and TV_PHASE_FINALIZE.
243 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
244 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
245 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
246 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
247 Make unused TV_OVERLOAD into a start/stop timer.
249 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
250 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
251 to indicate that they are start/stop timers.
253 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
254 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
255 Move initialization to do_compile.
256 (do_compile): Add initialization from above.
257 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
259 * c-decl.c (c_write_global_declarations): Add start/stop of
260 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
262 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
263 or TV_PARSE_INLINE, as appropriate.
264 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
265 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
267 2011-05-02 Jason Merrill <jason@redhat.com>
270 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
272 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
275 * c-decl.c (finish_decl): Only create a composite if the types are
278 2011-05-02 Joseph Myers <joseph@codesourcery.com>
280 * config/fr30/fr30-protos.h (Mmode): Don't define.
281 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
282 definition where used.
283 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
284 define. Expand definitions where used.
285 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
286 Expand definitions where used.
287 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
288 rx_function_arg, rx_function_arg_advance,
289 rx_function_arg_boundary): Expand definitions of those macros.
290 * config/v850/v850-protos.h (Mmode): Don't define. Expand
291 definition where used.
293 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
295 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
297 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
298 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
299 with *movv2sf_internal_rex64_avx.
300 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
301 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
302 Use %v prefix in insn mnemonic to handle TARGET_AVX.
303 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
304 "vex" in "prefix" attribute calculation.
305 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
307 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
310 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
311 inputs match the output.
313 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
316 * config/m68k/m68k.c (m68k_expand_prologue): Set
317 current_function_static_stack_size.
319 2011-05-02 Jan Hubicka <jh@suse.cz>
321 * lto-streamer.c (lto_streamer_cache_insert_1,
322 lto_streamer_cache_lookup, lto_streamer_cache_create,
323 lto_streamer_cache_delete): Use pointer map instead of hashtable.
324 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
326 2011-05-02 Joseph Myers <joseph@codesourcery.com>
328 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
329 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
330 config/m68k/t-opts: New files.
331 * config/m68k/m68k-tables.opt: New file (generated).
332 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
333 extra_options and m68k/t-opts to tmake_file.
334 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
335 (all_isas): Initialize using m68k-isas.def.
336 (all_microarchs): Initialize using m68k-microarchs.def.
337 (m68k_find_selection): Remove.
338 (m68k_handle_option): Don't assert that global structures are in
339 use. Use error_at. Access variables via opts pointer. Don't
340 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
341 directly for -m68020-40 and -m68020-60.
342 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
343 m68k_tune_entry here.
344 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
346 (m68k_library_id_string): Remove declaration.
347 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
348 (m68k_library_id_string): New Variable.
349 (march=, mcpu=, mtune=): Use Enum and Var.
351 2011-05-02 Richard Guenther <rguenther@suse.de>
353 * varasm.c (output_constructor_regular_field): Compute zero-based
354 index with double-ints. Make sure to ICE instead of producing
356 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
357 in asserts. Properly use a signed type.
359 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
361 * config/i386/sse.md (V): New mode iterator.
362 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
364 (V_256): Rename from AVX256MODE.
365 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
366 condition to all users.
368 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
369 condition to all users.
370 (VF_128): Make V4SF mode unconditional.
371 (VF_256): Rename from AVX256MODEF2P.
372 (VI4F_128): Rename from SSEMODE4S.
373 (VI8F_128): Rename from SSEMODE2D.
374 (VI4F_256): Rename from AVX256MODE8P.
375 (VI8F_256): Rename from AVX256MODE4P.
376 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
377 (ssescalarmodesuffix): Remove SF and DF modes.
378 (SSEMODE124): Remove.
379 (SSEMODE1248): Ditto.
384 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
386 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
388 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
389 xop_pcmov_<mode>256. Use V mode iterator.
391 Adjust RTX patterns globally for renamed mode attributes.
393 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
395 * haifa-sched.c (sched_emit_insn): Emit insn before first
396 non-scheduled insn. Inform back-end about new insn. Add
397 new insn to scheduled_insns list.
399 2011-05-02 Richard Guenther <rguenther@suse.de>
401 PR tree-optimization/48822
402 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
403 (process_scc): Indicate which iteration we start.
405 2011-05-02 Jan Hubicka <jh@suse.cz>
407 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
408 (lto_section_overrun): New.
409 * lto-section-out.c (append_block): Rename to ...
410 (lto_append_block): ... this one; export.
411 (lto_output_1_stream): Move lto lto-streamer.h
412 (lto_output_data_stream): Update.
413 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
414 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
417 2011-05-02 Richard Guenther <rguenther@suse.de>
419 * tree.c (tree_code_counts): New global array.
420 (record_node_allocation_statistics): Count individual tree codes.
421 (dump_tree_statistics): Dump individual code stats.
423 2011-05-01 Jan Hubicka <jh@suse.cz>
425 * ipa-inline.c (caller_growth_limits): Fix thinko when
426 looking for largest stack frame.
427 * ipa-inline.h (dump_inline_summary): Declare.
428 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
430 (dump_inline_summary): Export.
431 (debug_inline_summary): Declare as DEBUG_FUNCTION.
433 2011-05-01 Anatoly Sokolov <aesok@post.ru>
435 * reginfo.c (memory_move_cost): Change rclass argument type form
436 'enum reg_class' to reg_class_t.
437 * reload.h (memory_move_cost): Update prototype.
438 * postreload.c reload_cse_simplify_set): Change type dclass var to
440 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
442 (ira_allocate_and_set_costs): Change aclass argument type form
443 'enum reg_class' to reg_class_t.
444 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
445 Change aclass argument type to reg_class_t.
446 (update_conflict_hard_reg_costs): Change type aclass and pref vars
448 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
449 memory_move_cost call.
451 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
452 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
453 Change type tmp var to reg_class_t.
455 2011-04-30 Jan Hubicka <jh@suse.cz>
457 * ipa-inline.c (can_inline_edge_p): Disregard limits when
458 inlining into function with flatten attribute.
459 (want_inline_small_function_p): Be more realistic about inlining
460 cold calls where callee size grows.
462 2011-04-30 Jan Hubicka <jh@suse.cz>
464 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
467 2011-04-30 Anatoly Sokolov <aesok@post.ru>
469 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
470 PRINT_OPERAND_PUNCT_VALID_P): Remove.
471 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
472 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
473 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
474 (print_operand): Rename to...
475 (sparc_print_operand): ...this. Make static. Adjust
476 sparc_print_operand function call.
477 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
480 2011-04-30 Jan Hubicka <jh@suse.cz>
483 * ipa-inline.c (early_inliner): Disable when doing late
484 addition of function.
486 2011-04-30 Jakub Jelinek <jakub@redhat.com>
488 * dwarf2out.c (get_address_mode): New inline.
489 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
490 if not dwarf_strict emit
491 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
492 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
493 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
494 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
495 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
496 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
497 mem_loc_descriptor callers.
498 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
499 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
500 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
501 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
502 (base_types): New variable.
503 (get_base_type_offset, calc_base_type_die_sizes,
504 base_type_for_mode, mark_base_types, base_type_cmp,
505 move_marked_base_types): New functions.
506 (calc_die_sizes): Assert that die_offset is 0 or equal to
508 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
509 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
510 callers. If not dwarf_strict, call mem_loc_descriptor even for
511 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
512 (gen_subprogram_die): Don't give up on call site parameters
513 with non-integral or large integral modes. Adjust
514 mem_loc_descriptor callers.
515 (prune_unused_types): Call prune_unused_types_mark on base_types
517 (resolve_addr): Call mark_base_types.
518 (dwarf2out_finish): Call move_marked_base_types.
520 PR tree-optimization/48809
521 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
523 (gen_inbound_check): Don't compute index_expr - range_min in utype
524 again, instead reuse SSA_NAME initialized in build_arrays.
525 Remove two useless gsi_for_stmt calls.
527 2011-04-29 Jeff Law <law@redhat.com>
529 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
531 2011-04-29 Martin Jambor <mjambor@suse.cz>
533 * cgraph.h (cgraph_postorder): Remove declaration.
534 * ipa-utils.h (ipa_free_postorder_info): Declare.
535 (ipa_reverse_postorder): Likewise.
536 * cgraphunit.c: Include ipa-utils.h.
537 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
538 * ipa-inline.c: Include ipa-utils.h.
539 (ipa_inline): Update call to ipa_reverse_postorder.
540 * ipa-pure-const.c (propagate_pure_const): Update call to
541 ipa_reduced_postorder and ipa_print_order. Call
542 ipa_free_postorder_info to clean up.
543 (propagate_nothrow): Likewise.
544 * ipa-reference.c (propagate): Removed a useless call to
545 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
546 and ipa_print_order. Call ipa_free_postorder_info to clean up.
547 * ipa.c: Include ipa-utils.h.
548 (ipa_profile): Update call to ipa_reverse_postorder.
549 (cgraph_postorder): Moved to...
550 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
551 (ipa_utils_print_order): Renamed to ipa_print_order.
552 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
554 (ipa_free_postorder_info): New function.
555 * passes.c: Include ipa-utils.h.
556 (do_per_function_toporder): Update call to ipa_reverse_postorder.
557 (ipa_write_summaries): Likewise.
558 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
559 (cgraphunit.o): Likewise.
561 (ipa-inline.o): Likewise.
563 2011-04-29 Jan Hubicka <jh@suse.cz>
565 * gcc.dg/tree-ssa/inline-10.c: New testcase.
566 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
567 * ipa-inline.h (clause_t): Turn into unsigned int.
568 * ipa-inline-analysis.c (add_clause): Do more simplification.
569 (and_predicates): Shortcut more cases.
570 (predicates_equal_p): Move forward; check that clauses are properly
572 (or_predicates): Shortcut more cases.
573 (edge_execution_predicate): Rewrite as...
574 (set_cond_stmt_execution_predicate): ... this function; handle
575 __builtin_constant_p.
576 (set_switch_stmt_execution_predicate): New .
577 (compute_bb_predicates): New.
578 (will_be_nonconstant_predicate): Update TODO.
579 (estimate_function_body_sizes): Use compute_bb_predicates
580 and free them later, always try to estimate if stmt is constant.
581 (estimate_time_after_inlining, estimate_size_after_inlining):
582 Gracefully handle optimized out edges.
583 (read_predicate): Fix off by one error.
585 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
587 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
589 2011-04-27 Xinliang David Li <davidxl@google.com>
591 * tree-profile.c (init_ic_make_global_vars): Set
592 tls attribute on ic vars.
593 * coverage.c (coverage_end_function): Initialize
594 function_list with zero.
596 2011-04-29 Richard Guenther <rguenther@suse.de>
598 * builtins.c (fold_builtin_classify_type): Use integer_type_node
599 for the type of the result.
600 (fold_builtin_isascii): Likewise.
601 (fold_builtin_toascii): Use integer_type_node where appropriate.
602 (fold_builtin_logb): Likewise.
603 (fold_builtin_frexp): Likewise.
604 (fold_builtin_strstr): Likewise.
605 (fold_builtin_strpbrk): Likewise.
606 (fold_builtin_fputs): Likewise.
607 (fold_builtin_sprintf): Likewise.
608 (fold_builtin_snprintf): Likewise.
609 (fold_builtin_printf): Likewise.
610 (do_mpfr_remquo): Use a proper type for the assigned constant.
611 (do_mpfr_lgamma_r): Likewise.
612 * dwarf2out.c (resolve_one_addr): Use size_int.
613 * except.c (init_eh): Likewise.
614 (assign_filter_values): Use integer_type_node for filter values.
615 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
617 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
618 for EH region numbers.
619 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
620 for the shift amount.
622 2011-04-29 Richard Guenther <rguenther@suse.de>
624 * expr.h (expand_shift): Rename to ...
625 (expand_variable_shift): ... this.
626 (expand_shift): Take a constant shift amount.
627 * expmed.c (expand_shift): Rename to ...
628 (expand_variable_shift): ... this.
629 (expand_shift): New wrapper around expand_variable_shift.
630 * expr.c (convert_move, emit_group_load_1, emit_group_store,
631 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
632 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
633 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
634 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
635 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
636 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
637 emit_store_flag_1, emit_store_flag): Likewise.
638 * builtins.c (expand_builtin_signbit): Likewise.
639 * calls.c (load_register_parameters): Likewise.
640 * function.c (assign_parm_setup_block): Likewise.
641 * lower-subreg.c (resolve_shift_zext): Likewise.
642 * optabs.c (widen_bswap, expand_abs_nojump,
643 expand_one_cmpl_abs_nojump, expand_float): Likewise.
644 * spu/spu.c (spu_expand_extv): Likewise.
645 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
647 2011-04-29 Richard Guenther <rguenther@suse.de>
649 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
650 for the remapped region number.
651 * predict.c (build_predict_expr): Use integer_type_node for the
653 * fold-const.c (fold_binary_loc): Use integer_type_node for
654 the shift amount. Use a proper type for the PLUS_EXPR operand.
656 2011-04-29 Michael Matz <matz@suse.de>
658 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
659 other trees that just builtins.
660 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
662 2011-04-29 Richard Guenther <rguenther@suse.de>
664 * tree-nested.c (get_trampoline_type): Use size_int.
665 (get_nl_goto_field): Likewise.
666 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
668 (lower_eh_constructs_2): Likewise.
669 (lower_resx): Likewise.
670 (lower_eh_dispatch): Likewise.
671 * tree-mudflap.c (mf_build_string): Use size_int.
672 (mudflap_register_call): Use integer_type_node for the flag.
673 (mudflap_enqueue_constant): Use size_int.
674 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
675 instead of rebuilding it.
677 2011-04-29 Richard Guenther <rguenther@suse.de>
679 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
681 (find_func_aliases_for_call): Use it more consistently.
683 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
685 * haifa-sched.c (last_nondebug_scheduled_insn): New.
686 (rank_for_schedule): Use it.
687 (schedule_block): Set it.
689 2011-04-28 David Li <davidxl@google.com>
691 * tree.c (crc32_string): Use crc32_byte.
692 (crc32_byte): New function.
693 * tree.h (crc32_byte): New function.
694 * gcov.c (read_graph_file): Handle new cfg_cksum.
695 (read_count_file): Ditto.
696 * profile.c (instrument_values): Ditto.
697 (get_exec_counts): Ditto.
698 (read_profile_edge_counts): Ditto.
699 (compute_branch_probabilities): Ditto.
700 (compute_value_histograms): Ditto.
701 (branch_prob): Ditto.
702 (end_branch_prob): Ditto.
703 * coverage.c (read_counts_file): Ditto.
704 (get_coverage_counts): Ditto.
705 (tree_coverage_counter_addr): Ditto.
706 (coverage_checksum_string): Ditto.
707 (coverage_begin_output): Ditto.
708 (coverage_end_function): Ditto.
709 (build_fn_info_type): Ditto.
710 (build_fn_info_value): Ditto.
711 * libgcov.c (gcov_exit): Ditto.
712 * gcov-dump.c (tag_function): Ditto.
713 (compute_checksum): Remove.
715 2011-04-29 Alan Modra <amodra@gmail.com>
717 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
718 unspec plus offset. Tidy macho code.
720 2011-04-29 Martin Jambor <mjambor@suse.cz>
722 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
723 node instead of a decl. Update all callers.
724 * cgraph.h: Update declaration.
726 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
728 PR tree-optimization/48765
729 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
730 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
731 to indicate if loop aware SLP is being used. Scan the statements
732 and update the vectorization factor according to the type of
733 vectorization before statement analysis.
734 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
735 pass it to vect_analyze_loop_operations.
736 (vectorizable_reduction): Set number of copies to 1 in case of pure
738 * tree-vect-stmts.c (vectorizable_conversion,
739 vectorizable_assignment, vectorizable_shift,
740 vectorizable_operation, vectorizable_type_demotion,
741 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
743 (vectorizable_condition): Move the check that it is not SLP
744 vectorization before the number of copies check.
745 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
746 to vectorize the loop using SLP.
748 2011-04-28 Jakub Jelinek <jakub@redhat.com>
751 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
754 2011-04-28 Joseph Myers <joseph@codesourcery.com>
756 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
757 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
758 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
759 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
760 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
762 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
763 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
764 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
765 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
766 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
767 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
769 * config/i386/linux.h (REG_NAME): Don't define.
770 * config/i386/linux64.h (REG_NAME): Don't define.
771 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
772 Undefine before defining.
774 2011-04-28 Jan Hubicka <jh@suse.cz>
776 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
777 nonconstant_names array.
778 (estimate_function_body_sizes): Build nonconstant_names array; handle
781 2011-04-28 Richard Guenther <rguenther@suse.de>
785 2011-04-28 Richard Guenther <rguenther@suse.de>
787 * tree-ssa-structalias.c (solve_constraints): Build succ graph
790 2011-04-28 Richard Guenther <rguenther@suse.de>
792 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
793 (debug_constraint): Do it here.
794 (dump_constraints): And here.
795 (rewrite_constraints): And here.
796 (dump_constraint_edge): Remove.
797 (dump_constraint_graph): Rewrite to produce DOT output.
798 (solve_constraints): Build succ graph as late as possible.
799 Dump constraint graphs before and after solving.
801 2011-04-28 Richard Guenther <rguenther@suse.de>
803 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
804 New function split out from ...
805 (find_func_aliases): ... here. Call it.
806 (find_func_aliases_for_call): Likewise.
808 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
810 * internal-fn.h (internal_fn_name_array): Declare.
811 (internal_fn_flags_array): Likewise.
813 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
815 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
816 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
818 (ssemodefsuffix): Remove.
819 (ssevecmodesuffix): New mode attribute.
820 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
821 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
822 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
823 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
824 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
825 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
826 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
827 ssemodesuffix mode attribute.
828 (float splitters): Use ssevecmodesuffix mode attribute.
829 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
830 (sseinsmode): Rename from avxvecmode.
831 (avxsizesuffix): Rename from avxmodesuffix.
832 (sseintvecmode): Rename from avxpermvecmode.
833 (ssedoublevecmode): Rename from ssedoublesizemode.
834 (ssehalfvecmode): Rename from avxhalfvecmode.
835 (ssescalarmode): Rename from avxscalarmode.
836 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
837 templates for ssemodesuffix mode attribute.
838 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
841 Adjust RTX patterns globally for renamed mode attributes.
843 2011-04-27 Jan Hubcika <jh@suse.cz>
845 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
846 * ipa-inline-analysis.c: Include alloc-pool.h.
847 (edge_predicate_pool): New.
848 (trye_predicate_p): New function
849 (false_predicate_p): New function.
850 (add_clause): Sanity check that false clauses are "optimized";
851 never add clauses to predicate that is already known to be false.
852 (and_predicate): Use flase_predicate_p.
853 (evaulate_predicate): Rename to ...
854 (evaluate_predicate): ... this one; update all callers; assert
855 that false is not listed among possible truths.
856 (dump_predicate): Use true_predicate_p.
857 (account_size_time): Use false_predicate_p.
858 (evaulate_conditions_for_edge): Rename to ...
859 (evaluate_conditions_for_edge) ... this one.
860 (edge_set_predicate): New function.
861 (inline_edge_duplication_hook): Duplicate edge predicates.
862 (inline_edge_removal_hook): Free edge predicates.
863 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
864 (dump_inline_summary): Update.
865 (estimate_function_body_sizes): Set edge predicates.
866 (estimate_calls_size_and_time): Handle predicates.
867 (estimate_callee_size_and_time): Update.
868 (remap_predicate): Add toplev_predicate; update comment.
869 (remap_edge_predicates): New function.
870 (inline_merge_summary): Compute toplev predicate; update.
871 (read_predicate): New function.
872 (read_inline_edge_summary): Use it.
873 (inline_read_section): Likewise.
874 (write_predicate): New function.
875 (write_inline_edge_summary): Use it.
876 (inline_write_summary): Likewise.
877 (inline_free_summary): Free alloc pool and edge summary vec.
879 2011-04-27 Richard Guenther <rguenther@suse.de>
881 * tree-ssa-structalias.c (changed_count): Remove.
882 (changed): Use a bitmap.
883 (unify_nodes): Adjust.
884 (do_sd_constraint): Likewise.
885 (do_ds_constraint): Likewise.
886 (do_complex_constraint): Likewise.
887 (solve_graph): Likewise.
889 2011-04-27 Jan Hubicka <jh@suse.cz>
891 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
893 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
895 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
896 (avx_vperm2f128_*_operand): Ditto.
897 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
898 Use avx_vpermilp_parallel in insn condition.
899 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
900 Use avx_vperm2f128_parallel in insn condition.
902 2011-04-27 Richard Guenther <rguenther@suse.de>
904 * Makefile.in (tree-ssa-structalias.o): Remove
905 gt-tree-ssa-structalias.h dependency.
906 (GTFILES): Remove tree-ssa-structalias.c.
907 * tree.c (allocate_decl_uid): New function.
908 (make_node_stat): Use it.
909 (copy_node_stat): Likewise.
910 * tree.h (allocate_decl_uid): Declare.
911 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
912 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
913 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
914 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
915 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
916 (struct heapvar_map): Likewise.
917 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
918 heapvar_insert): Likewise.
919 (make_heapvar_for): Rename to ...
920 (make_heapvar): ... this. Simplify.
921 (fake_var_decl_obstack): New global var.
922 (build_fake_var_decl): New function.
923 (make_constraint_from_heapvar): Adjust.
924 (handle_lhs_call): Likewise.
925 (create_function_info_for): Likewise.
926 (intra_create_variable_infos): Likewise.
927 (init_alias_vars): Allocate fake_var_decl_obstack.
928 (init_alias_heapvars, delete_alias_heapvars): Remove.
929 (compute_points_to_sets): Do not call init_alias_heapvars.
930 (ipa_pta_execute): Likewise.
931 (delete_points_to_sets): Free fake_var_decl_obstack.
933 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
935 * config/spu/divmovti4.c (union qword_UTItype): New data type.
936 (si_from_UTItype, si_to_UTItype): New functions.
937 (__udivmodti4): Use them to implement type-punning.
938 * config/spu/multi3.c (union qword_TItype): New data type.
939 (si_from_TItype, si_to_TItype): New functions.
940 (__multi3): Use them to implement type-punning.
942 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
944 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
946 2011-04-27 Jan Hubicka <jh@suse.cz>
948 * ipa-prop.c (function_insertion_hook_holder): New holder.
949 (ipa_add_new_function): New function.
950 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
951 Register/deregister holder.
953 2011-04-27 Richard Guenther <rguenther@suse.de>
955 PR tree-optimization/48772
956 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
958 2011-04-27 Richard Guenther <rguenther@suse.de>
960 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
961 TARGET_MEM_REF handling.
963 2011-04-27 Nick Clifton <nickc@redhat.com>
965 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
966 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
967 (REG_CLASS_NAMES): Likewise.
968 (REG_CLASS_CONTENTS): Likewise.
969 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
970 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
971 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
972 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
973 (EVEN_REGS): New macro. Alias for QUAD_REGS.
974 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
975 duplicate register classes.
976 (frv_class_likely_spilled_p): Likewise.
977 (frv_register_move_cost): Likewise.
979 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
980 end of the regno_reg_class array.
982 2011-04-27 Jakub Jelinek <jakub@redhat.com>
985 * c-typeck.c (build_binary_op): Don't wrap arguments if
986 int_operands is true.
988 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
991 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
992 targetm.calls.must_pass_in_stack for void type.
994 2011-04-26 Jan Hubicka <jh@suse.cz>
996 * cgraphbuild.c (build_cgraph_edges): Update call
997 of cgraph_create_edge and cgraph_create_indirect_edge.
998 * cgraph.c (cgraph_create_edge_including_clones,
999 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
1000 cgraph_update_edges_for_call_stmt_node): Do not take nest
1001 argument; do not initialize call_stmt_size/time.
1002 (dump_cgraph_node): Do not dump nest.
1003 (cgraph_clone_edge): Do not take loop_nest argument;
1004 do not propagate it; do not clone call_stmt_size/time.
1005 (cgraph_clone_node): Likewise.
1006 (cgraph_create_virtual_clone): Update.
1007 * cgraph.h (struct cgraph_edge): Remove
1008 call_stmt_size/call_stmt_time/loop_nest.
1009 (cgraph_create_edge, cgraph_create_indirect_edge,
1010 cgraph_create_edge_including_clones, cgraph_clone_node): Update
1012 * tree-emutls.c (gen_emutls_addr): Update.
1013 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
1014 loop_nest; handle indirect calls, too.
1015 (clone_inlined_nodes): Do not care about updating inline summaries.
1016 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
1017 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
1018 stream call_stmt_size/call_stmt_time/loop_nest.
1019 * ipa-inline.c (edge_badness): Update.
1020 (ipa_inline): dump summaries after inlining.
1021 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
1023 (inline_edge_summary): New function.
1024 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
1025 (inline_edge_removal_hook): Handle edge summaries.
1026 (inline_edge_duplication_hook): New hook.
1027 (inline_summary_alloc): Alloc hooks.
1028 (initialize_growth_caches): Do not register removal hooks.
1029 (free_growth_caches); Do not free removal hook.
1030 (dump_inline_edge_summary): New function.
1031 (dump_inline_summary): Use it.
1032 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
1033 (inline_update_callee_summaries): New function.
1034 (inline_merge_summary): Use it.
1035 (do_estimate_edge_time, do_estimate_edge_growth): Update.
1036 (read_inline_edge_summary): New function.
1037 (inline_read_section): Use it.
1038 (write_inline_edge_summary): New function.
1039 (inline_write_summary): Use it.
1040 (inline_free_summary): Free edge new holders.
1041 * tree-inline.c (copy_bb): Update.
1043 2011-04-26 Jason Merrill <jason@redhat.com>
1045 * tree-eh.c (lower_try_finally_switch): Create the label along with
1046 the CASE_LABEL_EXPR.
1048 2011-04-26 David S. Miller <davem@davemloft.net>
1049 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1051 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
1052 * configure: Regenerate.
1054 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
1057 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
1059 (VEC_reduc): New code iterator and splitters for vector reduction.
1060 (VEC_reduc_name): Ditto.
1061 (VEC_reduc_rtx): Ditto.
1062 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
1063 (reduc_<VEC_reduc_name>_v4sf): Ditto.
1065 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1066 support for extracting SF on VSX.
1068 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
1069 generating xscvspdp.
1070 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
1071 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
1072 double add, minimum, maximum vector reduction.
1073 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
1074 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
1075 optimize double vector reduction.
1076 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
1078 2011-04-26 Joseph Myers <joseph@codesourcery.com>
1080 * config/fr30/fr30.h (inhibit_libc): Don't define.
1081 * config/m32r/m32r-protos.h: Correct comment.
1082 * config/v850/v850.h (GHS_default_section_names,
1083 GHS_current_section_names): Use tree, not union tree_node *.
1085 2011-04-26 Xinliang David Li <davidxl@google.com>
1087 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
1088 * c-family/c-opts.c (c_common_handle_option): Set
1089 warn_maybe_uninitialized.
1090 * opts.c (common_handle_option): Ditto.
1091 * common.opt: New option.
1092 * tree-ssa.c (warn_uninit): Add one more parameter.
1093 (warn_uninitialized_var): Pass warning code.
1094 * tree-flow.h: Interface change.
1097 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1099 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
1100 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
1101 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
1103 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1105 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
1106 * config/mips/mips.opt (mmips-tfile): Remove.
1108 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
1109 mips-tdump reference to ...
1110 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
1111 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
1112 reference by Tru64 UNIX.
1114 2011-04-26 Jakub Jelinek <jakub@redhat.com>
1117 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
1118 is error_mark_node, set value to NULL.
1120 PR tree-optimization/48734
1121 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
1122 if return value from maybe_fold_*_comparsions isn't something
1123 the code is prepared to handle.
1125 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
1127 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
1129 (ext_QIreg_nomode_operands): Remove.
1130 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
1134 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
1136 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
1138 2011-04-26 Richard Guenther <rguenther@suse.de>
1140 * c-typeck.c (build_unary_op): Do not expand array-refs via
1141 pointer arithmetic. Only adjust qualifiers for function types.
1143 2011-04-26 Richard Guenther <rguenther@suse.de>
1146 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
1147 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
1148 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
1149 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
1151 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1153 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
1154 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1155 * doc/extend.texi: Document __underlying_type.
1157 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
1159 * config/rs6000/titan.md (automata_option "progress"): Remove.
1161 2011-04-25 Jeff Law <law@redhat.com>
1163 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
1165 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1167 * system.h (ENUM_BITFIELD): Remove.
1169 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
1170 Eric Botcazou <ebotcazou@adacore.com>
1172 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
1173 for STORE_FLAG_VALUE==-1 case.
1175 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
1178 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
1179 LEGITIMATE_PIC_OPERAND_P.
1181 2011-04-24 Jan Hubicka <jh@suse.cz>
1183 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
1185 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
1186 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
1187 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
1188 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
1189 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
1190 Sanity check predicate length.
1191 (remap_predicate): Likewise; sanity check jump functions.
1192 (inline_read_section, inline_write_summary): Sanity check
1195 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1198 * doc/extend.texi (Type Traits): Document __is_standard_layout,
1199 __is_literal_type, and __is_trivial; update throughout about
1200 possibly cv-qualified void types.
1202 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
1204 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
1205 testsuite and make it version agnostic.
1207 2011-04-22 Jan Hubicka <jh@suse.cz>
1209 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
1211 2011-04-23 Jakub Jelinek <jakub@redhat.com>
1214 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
1215 to VOID_TYPE even around MODIFY_EXPR.
1217 2011-04-22 Mike Stump <mikestump@comcast.net>
1219 * gensupport.c (read_md_rtx): Fix typo in comment.
1220 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
1223 2011-04-22 Jan Hubicka <jh@suse.cz>
1225 * gengtype.c (open_base_files): Add ipa-inline.h include.
1226 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
1227 ipa-prop.c; update all uses.
1228 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
1229 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
1230 merge summary of inlined function into former caller.
1231 * ipa-inline.c (max_benefit): Remove.
1232 (edge_badness): Compensate for removal of benefits.
1233 (update_caller_keys): Use
1234 reset_node_growth_cache/reset_edge_growth_cache.
1235 (update_callee_keys): Likewise.
1236 (update_all_callee_keys): Likewise.
1237 (inline_small_functions): Do not collect max_benefit; do not reset
1238 estimated_growth; call free_growth_caches and initialize_growth_caches.
1239 * ipa-inline.h (struct condition, type clause_t, struct predicate,
1240 struct size_time_entry): New structures.
1241 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
1242 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
1243 and estimated_growth.
1244 (edge_growth_cache_entry): New structure.
1245 (node_growth_cache, edge_growth_cache): New global vars.
1246 (estimate_growth): Turn into inline.
1247 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
1248 initialize_growth_caches, free_growth_caches): Declare.
1249 (estimate_edge_growth): Rewrite.
1250 (estimate_edge_time): Implement as inline cache lookup.
1251 (reset_node_growth_cache, reset_edge_growth_cache): New inline
1253 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
1254 (NUM_CONDITIONS): New constant.
1255 (predicate_conditions): New enum.
1256 (IS_NOT_CONSTANT): New constant.
1257 (edge_removal_hook_holder): New var.
1258 (node_growth_cache, edge_growth_cache): New global vars.
1259 (true_predicate, single_cond_predicate, false_predicate,
1260 not_inlined_predicate, add_condition, add_clause, and_predicates,
1261 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
1262 dump_clause, dump_predicate, account_size_time,
1263 evaulate_conditions_for_edge): New functions.
1264 (inline_summary_alloc): Move to heap.
1265 (inline_node_removal_hook): Clear condition and entry vectors.
1266 (inline_edge_removal_hook): New function.
1267 (initialize_growth_caches, free_growth_caches): New function.
1268 (dump_inline_summary): Update.
1269 (edge_execution_predicate): New function.
1270 (will_be_nonconstant_predicate): New function.
1271 (estimate_function_body_sizes): Compute BB and constantness predicates.
1272 (compute_inline_parameters): Do not clear estimated_growth.
1273 (estimate_edge_size_and_time): New function.
1274 (estimate_calls_size_and_time): New function.
1275 (estimate_callee_size_and_time): New function.
1276 (remap_predicate): New function.
1277 (inline_merge_summary): New function.
1278 (do_estimate_edge_time): New function based on...
1279 (estimate_edge_time): ... this one.
1280 (do_estimate_edge_growth): New function.
1281 (do_estimate_growth): New function based on....
1282 (estimate_growth): ... this one.
1283 (inline_analyze_function): Analyze after deciding on jump functions.
1284 (inline_read_section): New function.
1285 (inline_read_summary): Use it.
1286 (inline_write_summary): Write all the new data.
1287 * ipa-prop.c (ipa_get_param_decl_index): Export.
1288 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
1289 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
1291 (ipa_get_lattice): Move here from ipa-cp.c
1292 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
1293 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
1294 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
1295 cgraph_edge_inlinable_p): Remove.
1296 * cgraphunit.c: Include ipainline.h
1297 (cgraph_process_new_functions): Update call of
1298 compute_inline_parameters.
1300 2011-04-22 Richard Guenther <rguenther@suse.de>
1302 * tree.c (build_int_cst): Properly create canonicalized integer
1304 (build_int_cst_type): Remove scary comments.
1306 2011-04-22 Xinliang David Li <davidxl@google.com>
1308 * toplev.c (process_options): Enable -Werror=coverage-mismatch
1309 by default when -Wno-error is not specified.
1310 * opts-global.c (decode_options): Remove call to
1311 control_warning_options.
1313 2011-04-22 Jakub Jelinek <jakub@redhat.com>
1315 PR tree-optimization/48717
1316 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
1317 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
1319 2011-04-22 Joseph Myers <joseph@codesourcery.com>
1321 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
1322 definition where used.
1324 2011-04-22 Jakub Jelinek <jakub@redhat.com>
1327 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
1328 TREE_STATIC variables declared inside of some OpenMP construct.
1330 2011-04-22 Martin Jambor <mjambor@suse.cz>
1333 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
1335 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
1338 * c-typeck.c (pop_init_level): Do not warn about initializing
1341 2011-04-22 Alan Modra <amodra@gmail.com>
1343 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
1344 when returning call_cookie.
1345 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
1346 pointers, to functions with no more vector args than the current
1347 function, and some non-local calls for ABI_V4.
1348 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
1349 sibcall_nonlocal_aix64): Combine to ..
1350 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
1351 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
1352 (sibcall_value_nonlocal_aix<mode>): ..likewise.
1353 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
1354 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
1356 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
1357 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
1358 sibcall_value_symbolic_64): Delete.
1360 2011-04-21 Xinliang David Li <davidxl@google.com>
1362 * cgraph.h: Remove pid.
1363 * cgraph.c: Remove pid.
1364 * value-prof.c (init_node_map): New function.
1365 (del_node_map): New function.
1366 (find_func_by_funcdef_no): New function.
1367 (gimple_ic_transform): Call new function.
1368 * cgraphunit.c (cgraph_finalize_function): Remove pid.
1369 * function.c (get_last_funcdef_no): New function.
1370 * function.h (get_last_funcdef_no): New function.
1371 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
1372 to libgcov function.
1373 (tree-profiling): Call node map init and delete function.
1375 2011-04-21 Ian Lance Taylor <iant@google.com>
1377 * godump.c (go_format_type): Use exported Go name for anonymous
1380 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1382 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
1383 Call builtin_function_type_list instead of builtin_function_type.
1384 (UNARY, BINARY, TRINARY, QUAD): Likewise.
1386 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1388 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
1389 build_function_type_list instead of build_function_type.
1390 Delete variable `endlink'.
1392 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1394 * config/s390/s390.c (s390_init_builtins): Call
1395 build_function_type_list instead of build_function_type.
1397 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
1399 * config/ia64/ia64.c (ia64_init_builtins): Call
1400 build_function_type_list instead of builtin_function_type.
1402 2011-04-21 Easwaran Raman <eraman@google.com>
1404 * cfgexpand.c (stack_var): Remove OFFSET...
1405 (add_stack_var): ...and its reference here...
1406 (expand_stack_vars): ...and here.
1407 (stack_var_cmp): Sort by descending order of size.
1408 (partition_stack_vars): Change heuristic.
1409 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
1410 (dump_stack_var_partition): Add newline after each partition.
1412 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
1413 Jeff Law <law@redhat.com>
1415 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
1416 * gengtype.c (matching_file_name_substitute): Likewise.
1418 2011-04-21 Richard Guenther <rguenther@suse.de>
1421 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
1423 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
1425 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
1427 2011-04-21 Richard Guenther <rguenther@suse.de>
1429 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
1432 2011-04-21 Richard Guenther <rguenther@suse.de>
1434 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
1435 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
1436 Use DECL_P, not SSA_VAR_P.
1437 (ptr_derefs_may_alias_p): Likewise.
1438 (ptr_deref_may_alias_ref_p_1): Likewise.
1439 (decl_refs_may_alias_p): Likewise.
1440 (refs_may_alias_p_1): Likewise.
1441 (ref_maybe_used_by_call_p_1): Likewise.
1442 (call_may_clobber_ref_p_1): Likewise.
1443 (indirect_ref_may_alias_decl_p): Assume indirect refrences
1444 are either MEM_REF or TARGET_MEM_REF.
1445 (indirect_refs_may_alias_p): Likewise.
1446 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
1447 for MEM_EXPR of indirect calls.
1449 2011-04-21 Tristan Gingold <gingold@adacore.com>
1451 * vmsdbgout.c (write_srccorr): Compute file length from the string.
1452 (dst_file_info_struct): Remove flen field.
1453 (lookup_filename): Remove code that set flen field.
1455 2011-04-21 Tristan Gingold <gingold@adacore.com>
1457 * config/ia64/ia64.c (ia64_start_function): Add a guard.
1459 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
1462 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
1463 vec_extract and vec_concat for non-SSE4_1 targets.
1465 2011-04-21 Richard Guenther <rguenther@suse.de>
1467 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
1470 2011-04-21 Joseph Myers <joseph@codesourcery.com>
1472 * config/i386/cygming.h (union tree_node, TREE): Don't define or
1474 (FILE): Don't undefine.
1476 2011-04-21 Joseph Myers <joseph@codesourcery.com>
1478 * config/alpha/alpha.c (struct machine_function): Use rtx, not
1480 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
1482 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
1483 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
1484 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
1486 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
1487 definitions where used.
1488 * config/microblaze/microblaze.h (struct microblaze_args): Use
1489 rtx, not struct rtx_def *.
1490 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
1492 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
1493 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
1494 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
1495 not struct rtx_def *.
1496 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
1498 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
1500 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
1502 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1504 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
1505 operand_equal_p to compare DR_BASE_ADDRESSes.
1506 (vect_check_interleaving): Likewise.
1508 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1511 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
1512 for all Neon struct constants.
1514 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1516 * target.def (legitimate_constant_p): New hook.
1517 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
1518 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
1519 * doc/tm.texi: Regenerate.
1520 * hooks.h (hook_bool_mode_rtx_true): Declare.
1521 * hooks.c (hook_bool_mode_rtx_true): Define.
1522 * system.h (LEGITIMATE_CONSTANT_P): Poison.
1523 * calls.c (precompute_register_parameters): Replace uses of
1524 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
1525 (emit_library_call_value_1): Likewise.
1526 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
1527 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
1528 * ira-costs.c (scan_one_insn): Likewise.
1529 * recog.c (general_operand, immediate_operand): Likewise.
1530 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
1531 * reload1.c (init_eliminable_invariants): Likewise.
1533 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
1535 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
1536 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
1538 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1539 * config/alpha/predicates.md (input_operand): Update call to
1540 alpha_legitimate_constant_p.
1542 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
1543 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
1544 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
1545 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1546 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
1547 (arm_legitimate_constant_p): New functions.
1548 (arm_cannot_force_const_mem): Make static.
1550 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
1552 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
1553 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
1554 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
1555 instead of bfin_legitimate_constant_p.
1556 (bfin_legitimate_constant_p): Make static. Add a mode argument.
1557 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1559 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
1561 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
1563 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
1564 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
1565 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1566 (frv_legitimate_constant_p): Make static. Add a mode argument.
1568 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
1569 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
1570 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
1572 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
1573 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
1574 * config/i386/i386.c (legitimate_constant_p): Rename to...
1575 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
1577 (ix86_cannot_force_const_mem): Update accordingly.
1578 (ix86_legitimate_address_p): Likewise.
1579 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1580 * config/i386/i386.md: Update commentary.
1582 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
1583 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
1584 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1585 (ia64_legitimate_constant_p): Make static. Add a mode argument.
1587 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
1589 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
1590 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
1591 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1592 (lm32_legitimate_constant_p): Make static. Add a mode argument.
1594 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
1595 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
1596 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
1598 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
1599 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1600 (m32r_legitimate_constant_p): New function.
1602 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
1603 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
1604 LEGITIMATE_CONSTANT_P.
1605 (LEGITIMATE_CONSTANT_P): Delete.
1606 * config/m68k/m68k.c (m68k_expand_prologue): Call
1607 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
1608 (m68k_legitimate_constant_p): New function.
1609 * config/m68k/m68k.md: Update comments.
1611 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
1612 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1613 (mcore_legitimate_constant_p): New function.
1615 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
1616 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
1617 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
1618 Add a mode argument.
1619 (mep_legitimate_address): Update accordingly.
1620 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1622 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
1624 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
1625 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
1626 static. Check OP's mode for VOIDmode.
1627 (microblaze_legitimate_constant_p): New function.
1628 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1630 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
1631 * config/mips/mips.c (mips_legitimate_constant_p): New function.
1632 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
1633 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1634 * config/mips/predicates.md: Update comments.
1636 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
1637 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
1638 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1639 (mmix_legitimate_constant_p): Make static, return a bool, and take
1641 (mmix_print_operand_address): Update accordingly.
1643 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
1645 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
1646 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
1647 static. Add a mode argument.
1648 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1650 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
1652 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
1653 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1654 (pa_legitimate_constant_p): New function.
1656 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
1658 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
1659 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1660 (pdp11_legitimate_constant_p): New function.
1662 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
1663 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1664 (rs6000_legitimate_constant_p): New function.
1666 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
1667 (rx_legitimate_constant_p): ...this.
1668 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
1669 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
1670 (rx_legitimate_constant_p): ...this.
1671 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1672 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
1674 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
1675 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
1676 * config/s390/s390.c (legitimate_constant_p): Rename to...
1677 (s390_legitimate_constant_p): ...this. Make static, return a bool,
1678 and add a mode argument.
1679 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1681 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
1683 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
1684 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1685 (sh_legitimate_constant_p): New function.
1687 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
1688 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
1689 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1690 (legitimate_constant_p): Rename to...
1691 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
1693 (constant_address_p): Update accordingly.
1695 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
1696 argument and return a bool.
1697 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
1698 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1699 (spu_legitimate_constant_p): Add a mode argument and return a bool.
1700 (spu_rtx_costs): Update accordingly.
1701 * config/spu/predicates.md (vec_imm_operand): Likewise.
1703 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
1705 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
1706 * config/v850/v850.c (v850_legitimate_constant_p): New function.
1707 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1709 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
1710 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
1711 * config/vax/vax.c (legitimate_constant_p): Likewise.
1713 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
1714 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1715 (xtensa_legitimate_constant_p): New function.
1717 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1719 * target.def (cannot_force_const_mem): Add a mode argument.
1720 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
1721 * doc/tm.texi: Regenerate.
1722 * hooks.h (hook_bool_mode_rtx_false): Declare.
1723 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
1724 (hook_bool_mode_const_rtx_true): Likewise.
1725 (hook_bool_mode_rtx_false): New function.
1726 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
1727 to be non-VOID. Update call to cannot_force_const_mem.
1728 (find_reloads): Update accordingly.
1729 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
1730 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
1732 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
1733 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
1734 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
1735 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
1736 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
1737 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
1738 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
1739 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
1740 (m68k_cannot_force_const_mem): ...this new function.
1741 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
1743 (mips_const_insns, mips_legitimize_const_move): Update calls.
1744 (mips_secondary_reload_class): Likewise.
1745 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
1746 (pa_cannot_force_const_mem): ...this new function.
1747 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
1748 (rs6000_cannot_force_const_mem): ...this new function.
1749 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
1751 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
1752 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
1754 (xtensa_cannot_force_const_mem): ...this new function.
1756 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
1758 * config/mips/mips.c (mips16_build_function_stub): Call
1759 build_function_type_list instead of build_function_type.
1760 (mips16_build_call_stub): Likewise.
1762 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
1764 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
1765 instead of build_function_type.
1767 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
1769 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
1770 instead of build_function_type.
1772 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
1775 * config/i386/i386.md (insv): Change operand 0 constraint to
1776 "register_operand". Change operand 1 and 2 constraint to
1777 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
1778 * config/i386/sse.md (sse4_1_pinsrb): Export.
1779 (sse2_pinsrw): Ditto.
1780 (sse4_1_pinsrd): Ditto.
1781 (sse4_1_pinsrq): Ditto.
1782 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
1783 * config/i386/i386.c (ix86_expand_pinsr): New.
1785 2011-04-20 Easwaran Raman <eraman@google.com>
1787 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
1788 containing union type only with -fstrict-aliasing.
1790 2011-04-20 Jim Meyering <meyering@redhat.com>
1792 Remove useless if-before-free tests.
1793 * calls.c (expand_call, save_area): Likewise.
1794 * cfgcleanup.c (try_forward_edges): Likewise.
1795 * collect2.c (collect_execute): Likewise.
1796 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
1797 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
1798 * coverage.c (coverage_checksum_string): Likewise.
1799 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
1800 * cselib.c (cselib_init): Likewise.
1801 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
1802 (df_set_clean_cfg): Likewise.
1803 * function.c (free_after_compilation): Likewise.
1804 * gcc.c (do_spec_1, main): Likewise.
1805 * gcov.c (create_file_names): Likewise.
1806 * gensupport.c (identify_predicable_attribute): Likewise.
1807 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
1808 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
1809 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
1810 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
1811 * ipa-pure-const.c (local_pure_const): Likewise.
1812 * ipa-reference.c (propagate): Likewise.
1813 * ira-costs.c (free_ira_costs): Likewise.
1814 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
1815 * matrix-reorg.c (mat_free): Likewise.
1816 * prefix.c (get_key_value): Likewise.
1817 * profile.c (compute_value_histograms): Likewise.
1818 * reload1.c (free_reg_equiv): Likewise.
1819 * sched-deps.c (free_deps): Likewise.
1820 * sel-sched-ir.c (fence_clear): Likewise.
1821 * sese.c (set_rename, if_region_set_false_region): Likewise.
1822 * tree-data-ref.c (free_rdg): Likewise.
1823 * tree-eh.c (lower_try_finally): Likewise.
1824 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
1825 * tree-ssa-live.c (delete_var_map): Likewise.
1826 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
1827 * tree-ssa-pre.c (phi_trans_add): Likewise.
1829 2011-04-20 Jakub Jelinek <jakub@redhat.com>
1831 PR tree-optimization/48611
1832 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
1833 beyond ERT_MUST_NOT_THROW region.
1835 2011-04-20 Catherine Moore <clm@codesourcery.com>
1837 * config/mips/mips.opt (mfix-24k): New.
1838 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
1839 * config/mips/mips.md (length): Increase by 4 for stores if
1841 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
1842 all noreorder if fixing 24K errata.
1843 * doc/invoke.texi: Document mfix-24k.
1845 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
1847 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
1848 quad-word modes, reduce to 9-bit index range when above 1016 limit.
1850 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
1852 * config/arm/arm.c (arm_gen_constant): Move movw support ....
1853 (const_ok_for_op): ... to here.
1855 2011-04-20 Kai Tietz <ktietz@redhat.com>
1857 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
1858 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
1860 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
1862 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
1864 2011-04-20 Richard Guenther <rguenther@suse.de>
1866 PR tree-optimization/47892
1867 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
1870 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
1872 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
1874 2011-04-20 Tristan Gingold <gingold@adacore.com>
1876 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
1878 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
1882 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
1883 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
1884 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
1885 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
1886 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
1888 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
1891 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
1892 (avr_asm_named_section, avr_asm_output_aligned_common,
1893 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
1894 New functions to update...
1895 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
1896 (avr_asm_init_sections): Overwrite section callbacks for
1897 data_section, bss_section.
1898 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
1900 (avr_file_end): ...here.
1902 2011-04-20 Richard Guenther <rguenther@suse.de>
1905 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
1906 objects and types here. Adjust for their offset before comparing.
1908 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
1910 * tree-vect-stmts.c (vectorizable_store): Only chain one related
1913 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
1915 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
1916 (GIMPLE_H): Include $(INTERNAL_FN_H).
1917 (OBJS-common): Add internal-fn.o.
1918 (internal-fn.o): New rule.
1919 * internal-fn.def: New file.
1920 * internal-fn.h: Likewise.
1921 * internal-fn.c: Likewise.
1922 * gimple.h: Include internal-fn.h.
1923 (GF_CALL_INTERNAL): New gf_mask.
1924 (gimple_statement_call): Put fntype into a union with a new
1926 (gimple_build_call_internal): Declare.
1927 (gimple_build_call_internal_vec): Likewise.
1928 (gimple_call_same_target_p): Likewise.
1929 (gimple_call_internal_p): New function.
1930 (gimple_call_internal_fn): Likewise.
1931 (gimple_call_fntype): Return null for internal calls.
1932 (gimple_call_set_fntype): Assert that the function is not internal.
1933 (gimple_call_set_fn): Likewise.
1934 (gimple_call_set_fndecl): Likewise.
1935 (gimple_call_set_internal_fn): New function.
1936 (gimple_call_addr_fndecl): Handle null functions.
1937 (gimple_call_return_type): Likewise null types.
1938 * gimple.c (gimple_build_call_internal_1): New function.
1939 (gimple_build_call_internal): Likewise.
1940 (gimple_build_call_internal_vec): Likewise.
1941 (gimple_call_same_target_p): Likewise.
1942 (gimple_call_flags): Handle calls to internal functions.
1943 (gimple_call_fnspec): New function.
1944 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
1945 (gimple_has_side_effects): Handle null functions.
1946 (gimple_rhs_has_side_effects): Likewise.
1947 (gimple_call_copy_skip_args): Handle calls to internal functions.
1948 * cfgexpand.c (expand_call_stmt): Likewise.
1949 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
1950 * gimple-fold.c (gimple_fold_call): Handle null functions.
1951 (gimple_fold_stmt_to_constant_1): Don't fold
1952 calls to internal functions.
1953 * gimple-low.c (gimple_check_call_args): Handle calls to internal
1955 * gimple-pretty-print.c (dump_gimple_call): Likewise.
1956 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
1957 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
1958 (do_warn_unused_result): Likewise.
1959 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
1960 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
1961 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
1962 the target of a call.
1963 (initialize_hash_element): Update accordingly.
1964 (hashable_expr_equal_p): Use gimple_call_same_target_p.
1965 (iterative_hash_hashable_expr): Handle calls to internal functions.
1966 (print_expr_hash_elt): Likewise.
1967 * tree-ssa-pre.c (can_value_number_call): Likewise.
1968 (eliminate): Handle null functions.
1969 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
1970 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
1971 (find_func_aliases): Likewise.
1972 * value-prof.c (gimple_ic_transform): Likewise.
1973 (gimple_indirect_call_to_profile): Likewise.
1974 * lto-streamer-in.c (input_gimple_stmt): Likewise.
1975 * lto-streamer-out.c (output_gimple_stmt): Likewise.
1977 2011-04-19 Jan Hubicka <jh@suse.cz>
1979 * ipa-inline-transform.c (save_inline_function_body): Add comments.
1980 * ipa-inline.c (inline_small_functions): Compute summaries first,
1981 populate heap later.
1983 2011-04-19 Jan Hubicka <jh@suse.cz>
1985 * cgraph.h (save_inline_function_body): Remove.
1986 * ipa-inline-transform.c: New file, broke out of...
1987 * ipa-inline.c: ... this one; Update toplevel comment.
1988 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
1990 (update_noncloned_frequencies): Move to ipa-inline-transform.c
1991 (cgraph_mark_inline_edge): Rename to inline_call; move to
1992 ipa-inline-transform.c.
1993 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
1994 move to ipa-inline-transform.c
1995 (recursive_inlining, inline_small_functions, flatten_function,
1996 ipa_inline, inline_always_inline_functions,
1997 early_inline_small_functions): Update.
1998 (inline_transform): Move to ipa-inline-transform.c.
1999 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
2001 * Makefile.in (ipa-inline-transform.o): New file.
2002 * cgraphunit.c (save_inline_function_body): Move to
2003 ipa-inline-transform.c
2005 2011-04-19 DJ Delorie <dj@redhat.com>
2007 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
2008 registers if we already know there aren't any.
2009 (m32c_emit_epilogue): Don't emit a barrier here.
2010 (m32c_emit_eh_epilogue): Likewise.
2011 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
2012 operands at expand time.
2013 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
2015 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
2016 duplicates. Provide aliases instead.
2017 * config/m32c/prologue.md (eh_return): Emit a barrier here.
2018 (eh_epilogue): Add a "(return)" here as a hint to other parts of
2021 2011-04-19 Anatoly Sokolov <aesok@post.ru>
2023 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
2024 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
2025 (general_or_i64_p, sparc_register_move_cost): New function.
2027 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2029 * doc/install.texi (Configuration, --enable-threads): Remove mach.
2030 Add lynx, mipssde. Sort table.
2032 2011-04-19 Xinliang David Li <davidxl@google.com>
2034 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
2037 2011-04-19 Jakub Jelinek <jakub@redhat.com>
2040 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
2041 is a SUBREG with non-MODE_INT mode inside of it.
2043 2011-04-19 Martin Jambor <mjambor@suse.cz>
2045 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
2046 also according to actual contants.
2047 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
2048 (gimple_fold_call): Use it.
2049 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
2051 2011-04-19 Martin Jambor <mjambor@suse.cz>
2053 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
2054 non-pointer assignments.
2056 2011-04-19 Martin Jambor <mjambor@suse.cz>
2058 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
2059 account anc_offset and otr_type from the indirect edge info.
2060 * ipa-prop.c (get_ancestor_addr_info): New function.
2061 (compute_complex_ancestor_jump_func): Assignment analysis moved to
2062 get_ancestor_addr_info, call it.
2063 (ipa_note_param_call): Do not initialize information about polymorphic
2064 calls, return the indirect call graph edge. Remove the last
2065 parameter, adjust all callers.
2066 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
2067 parameters. Initialize polymorphic information in the indirect edge.
2069 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2072 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
2073 the types if they have different enumeration identifiers.
2075 2011-04-19 Jan Hubicka <jh@suse.cz>
2077 * cgraph.h (cgraph_optimize_for_size_p): Declare.
2078 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
2079 * predict.c (cgraph_optimize_for_size_p): Break out from ...
2080 (optimize_function_for_size_p) ... here.
2082 2011-04-19 Richard Guenther <rguenther@suse.de>
2085 * tree.c (free_lang_data): Do not reset the decl-assembler-name
2088 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2090 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
2091 if DECL_NO_INLINE_WARNING_P is set on the function.
2093 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
2096 * reload1.c (inc_for_reload): Return void. All callers changed.
2097 (emit_input_reload_insns): Don't try to delete previous output
2098 reloads to a register, or record spill_reg_store for autoincs.
2100 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
2102 * gengtype.h: Updated copyright year.
2103 (struct input_file_st): Add inpisplugin field.
2104 (type_fileloc): New function.
2106 (write_typed_struct_alloc_def): Add gcc_assert.
2107 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
2108 (write_typed_alloc_defns): Don't output for plugin files.
2109 (input_file_by_name): Clear inpisplugin field.
2110 (main): Set inpisplugin field for plugin files.
2112 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
2114 * gengtype-state.c (string_eq): New.
2115 (read_state): Use string_eq instead of strcmp when creating the
2118 2011-04-19 Wei Guozhi <carrot@google.com>
2121 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
2122 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
2124 * config/arm/constraints.md (Uu): New constraint.
2125 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
2127 2011-04-19 Tristan Gingold <gingold@adacore.com>
2129 * config.gcc (-*-*-*vms): Added.
2130 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
2132 * config/vms/vms-ld.c: New file.
2133 * config/vms/vms-ar.c: New file.
2134 * config/vms/t-vmsnative: New file.
2136 2011-04-18 Xinliang David Li <davidxl@google.com>
2138 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
2140 2011-04-18 Jakub Jelinek <jakub@redhat.com>
2143 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
2144 if TREE_TYPE (v) is non-NULL.
2146 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
2147 gimple_get_virt_mehtod_for_binfo.
2148 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
2149 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
2151 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2153 2011-04-18 Michael Matz <matz@suse.de>
2154 Steve Ellcey <sje@cup.hp.com>
2156 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
2157 use its mode as source mode if it isn't VOIDmode.
2159 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
2161 * doc/passes.texi: Fill crossref nodes.
2163 2011-04-18 Jim Meyering <meyering@redhat.com>
2165 Fix doubled-word typos in comments and strings
2166 * config/alpha/vms-unwind.h: s/for for/for/
2167 * config/arm/unwind-arm.h: Likewise.
2168 * config/microblaze/microblaze.c: Likewise.
2169 * config/sh/constraints.md: s/in in/in/
2170 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
2172 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
2174 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
2175 (AVX_FLOAT_MODE_P): Ditto.
2176 (AVX128_VEC_FLOAT_MODE_P): Ditto.
2177 (AVX256_VEC_FLOAT_MODE_P): Ditto.
2178 (AVX_VEC_FLOAT_MODE_P): Ditto.
2179 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
2180 (UNSPEC_MASKSTORE): Ditto.
2181 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
2182 Merge from <sse>_movmsk<ssemodesuffix> and
2183 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
2184 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
2186 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
2187 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
2188 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
2190 2011-04-18 Jan Hubicka <jh@suse.cz>
2192 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
2194 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
2195 (want_inline_function_called_once_p): Break out the logic from
2197 (edge_badness): Ensure that profile is not misupdated.
2198 (lookup_recursive_calls): Prioritize by call frequencies.
2199 (inline_small_functions): Move program size estimates here;
2200 actually process whole queue even when unit growth has been
2201 met. (to properly compute inline_failed reasons and for the
2202 case unit size decrease.) Revisit comments on recursive inlining.
2203 (ipa_inline): Remove unit summary code; first inline hot calls
2204 of functions called once, cold calls next.
2205 (order, nnodes): Remove unused variables.
2206 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
2207 (GTFILES): Remove ipa-inline.c
2208 * sel-sched.c (fill_insns): Silence uninitialized var warning.
2210 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
2212 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
2214 2011-04-18 Jie Zhang <jie@codesourcery.com>
2215 Richard Earnshaw <rearnsha@arm.com>
2217 * arm.c (neon_builtin_type_bits): Remove.
2218 (typedef enum neon_builtin_mode): New.
2219 (T_MAX): Don't define.
2220 (typedef enum neon_builtin_datum): Remove bits, codes[],
2221 num_vars and base_fcode. Add mode, code and fcode.
2222 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
2223 VAR10): Change accordingly.
2224 (neon_builtin_data[]): Change accordingly
2225 (arm_init_neon_builtins): Change accordingly.
2226 (neon_builtin_compare): Remove.
2227 (locate_neon_builtin_icode): Remove.
2228 (arm_expand_neon_builtin): Change accordingly.
2230 * arm.h (enum arm_builtins): Move to ...
2231 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
2233 * arm.c (arm_builtin_decl): Declare.
2234 (TARGET_BUILTIN_DECL): Define.
2235 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
2236 (arm_builtin_decls[]): New.
2237 (arm_init_neon_builtins): Store builtin declarations in
2238 arm_builtin_decls[].
2239 (arm_init_tls_builtins): Likewise.
2240 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
2241 (arm_builtin_decl): New.
2243 2011-04-18 Richard Guenther <rguenther@suse.de>
2245 * tree.c (upper_bound_in_type): Build properly canonicalized
2247 (lower_bound_in_type): Likewise.
2249 2011-04-18 Richard Guenther <rguenther@suse.de>
2251 * gimple.h (gimple_call_addr_fndecl): New function.
2252 (gimple_call_fndecl): Use it.
2253 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
2255 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
2256 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
2258 2011-04-18 Richard Guenther <rguenther@suse.de>
2261 * tree.c (build_string): STRING_CST is now derived from tree_typed.
2263 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
2266 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
2267 DECL_IN_CONSTANT_POOL without RTL.
2269 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
2270 Ira Rosen <ira.rosen@linaro.org>
2273 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
2274 to match neon_vzip/vuzp/vtrn_internal.
2275 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
2276 outputs explicitly dependent on both inputs.
2277 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
2279 2011-04-18 Jakub Jelinek <jakub@redhat.com>
2281 PR tree-optimization/48616
2282 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
2283 whether the shift is by scalar or vector based on whether all SLP
2284 scalar stmts have the same rhs.
2286 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
2288 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
2291 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
2293 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
2296 2011-04-17 Jan Hubicka <jh@suse.cz>
2298 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
2299 * cgrpahunit.c (cgraph_finalize_function): Do not set
2300 finalized_by_frontend.
2301 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
2302 finalized_by_frontend.
2304 2011-04-17 Jan Hubicka <jh@suse.cz>
2306 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
2307 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
2308 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
2309 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
2311 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
2313 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
2315 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
2318 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
2319 is non-null before accessing it.
2320 (input_cgraph): Remove trailing spaces.
2322 2011-04-17 Revital Eres <revital.eres@linaro.org>
2324 * params.def (sms-min-sc): New param flag.
2325 * modulo-sched.c (sms_schedule): Use it.
2326 * doc/invoke.texi (sms-min-sc): Document it.
2328 2011-04-17 Jan Hubicka <jh@suse.cz>
2330 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
2331 present, also set gimple_call_set_cannot_inline.
2332 * ipa-inline.c: Update toplevel comment.
2334 (cgraph_clone_inlined_nodes): Fix linebreaks.
2335 (cgraph_check_inline_limits): Restructure to ...
2336 (caller_growth_limits): ... this one; be more tolerant
2337 on growth in nested inline chains; add explanatory comment;
2338 fix stack accounting thinko introduced by previous patch.
2339 (cgraph_default_inline_p): Remove.
2340 (report_inline_failed_reason): New function.
2341 (can_inline_edge_p): New function.
2342 (can_early_inline_edge_p): New function.
2343 (leaf_node_p): Move upwards in file.
2344 (want_early_inline_function_p): New function.
2345 (want_inline_small_function_p): New function.
2346 (want_inline_self_recursive_call_p): New function.
2347 (cgraph_edge_badness): Rename to ...
2348 (edge_badness) ... this one; fix linebreaks.
2349 (update_edge_key): Update call of edge_baddness; add
2350 detailed dump about queue updates.
2351 (update_caller_keys): Use can_inline_edge_p and
2352 want_inline_small_function_p.
2353 (cgraph_decide_recursive_inlining): Rename to...
2354 (recursive_inlining): Use can_inline_edge_p and
2355 want_inline_self_recursive_call_p; simplify and remove no longer
2357 (cgraph_set_inline_failed): Remove.
2358 (add_new_edges_to_heap): Use can_inline_edge_p and
2359 want_inline_small_function_p.
2360 (cgraph_decide_inlining_of_small_functions): Rename to ...
2361 (inline_small_functions): ... this one; cleanup; use
2362 can/want predicates; cleanup debug ouput; work edges till fibheap
2363 is exhausted and do not stop once unit growth is reached; remove
2364 later loop processing remaining edges.
2365 (cgraph_flatten): Rename to ...
2366 (flatten_function): ... this one; use can_inline_edge_p
2367 and can_early_inline_edge_p predicates.
2368 (cgraph_decide_inlining): Rename to ...
2369 (ipa_inline): ... this one; remove unreachable nodes before
2370 inlining functions called once; simplify the pass.
2371 (cgraph_perform_always_inlining): Rename to ...
2372 (inline_always_inline_functions): ... this one; use
2373 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
2374 (cgraph_decide_inlining_incrementally): Rename to ...
2375 (early_inline_small_functions): ... this one; simplify
2376 using new predicates; cleanup; make dumps prettier.
2377 (cgraph_early_inlining): Rename to ...
2378 (early_inliner): newer inline regular functions into always-inlines;
2379 fix updating of call stmt summaries.
2380 (pass_early_inline): Update for new names.
2381 (inline_transform): Fix formating.
2382 (gate_cgraph_decide_inlining): Rename to ...
2383 (pass_ipa_inline): ... this one.
2384 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
2385 * ipa-inline-analysis.c (dump_inline_summary): Update.
2386 (compute_inline_parameters): Do not compute disregard_inline_limits;
2387 look for mismatching arguments.
2388 (estimate_growth): Fix handlig of non-trivial self recursion.
2389 (inline_read_summary): Do not read info->disregard_inline_limits.
2390 (inline_write_summary): Do not write info->disregard_inline_limits.
2391 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
2392 and move all checks into can_inline_edge_p predicate; re-enable code
2393 comparing optimization levels.
2394 (expand_call_inline): Do not test inline_forbidden_into_p.
2395 * Makefile.in (ipa-inline.o): Update arguments.
2397 2011-04-17 Revital Eres <revital.eres@linaro.org>
2399 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
2401 2011-04-17 Revital Eres <revital.eres@linaro.org>
2403 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
2405 2011-04-17 Michael Matz <matz@suse.de>
2407 PR tree-optimization/48622
2409 * ipa-inline-analysis.c (inline_read_summary): Read size/time
2410 in same order as they're written.
2412 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2414 * config/pa/predicates.md: Reorganize and simplify predicates.
2415 Eliminate duplicate code checks.
2416 (arith_operand): Rename to arith14_operand
2417 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
2418 * config/pa/pa.md: Use renamed operands.
2419 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
2420 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
2421 arith11_operand, adddi3_operand, indexed_memory_operand,
2422 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
2423 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
2424 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
2425 move_dest_operand, move_src_operand, prefetch_cc_operand,
2426 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
2427 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
2428 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
2429 div_operand, int5_operand, movb_comparison_operator,
2430 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
2431 arith_double_operand, ireg_operand, lhs_lshift_operand,
2432 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
2433 integer_store_memory_operand): Likewise.
2434 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
2435 (integer_store_memory_operand, read_only_operand,
2436 function_label_operand, borx_reg_operand,
2437 non_hard_reg_operand): Likewise.
2438 (eq_neq_comparison_operator): Delete unused operator.
2439 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
2440 function_label_operand.
2441 (emit_move_sequence): Likewise.
2443 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
2445 * config/i386/sse.md (sseunpackmode): New mode attribute.
2446 (ssepackmode): Ditto.
2447 (vec_pack_trunc_<mode>): Macroize expander from
2448 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
2449 (vec_unpacks_lo_<mode>): Macroize expander from
2450 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2451 (vec_unpacks_hi_<mode>): Macroize expander from
2452 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2453 (vec_unpacku_lo_<mode>): Macroize expander from
2454 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2455 (vec_unpacku_hi_<mode>): Macroize expander from
2456 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2457 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
2458 ix86_expand_sse4_unpack.
2459 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
2461 2011-04-16 Jan Hubicka <jh@suse.cz>
2463 * cgraphbuild.c: Include ipa-inline.h.
2464 (reset_inline_failed): Use initialize_inline_failed.
2465 * cgraph.c: Include ipa-inline.h.
2466 (cgraph_create_node_1): Do not initialize estimated_growth.
2467 (initialize_inline_failed): More to ipa-inline-analysis.c
2468 (dump_cgraph_node): Do not dump inline flags.
2469 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
2470 and disregard_inline_limits flags.
2471 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
2472 time, size, estimated_growth.
2473 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
2475 * cgraphunit.c (cgraph_decide_is_function_needed): Use
2476 DECL_DISREGARD_INLINE_LIMITS.
2477 (cgraph_analyze_function): Do not initialize
2478 node->local.disregard_inline_limits.
2479 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
2480 inlinable, versionable and disregard_inline_limits.
2481 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
2482 cgraph_check_inline_limits, cgraph_default_inline_p,
2483 cgraph_edge_badness, update_caller_keys, update_callee_keys,
2484 add_new_edges_to_heap): Update.
2485 (cgraph_decide_inlining_of_small_function): Update; set
2486 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
2487 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
2488 cgraph_decide_inlining_incrementally): Update.
2489 * ipa-inline.h (inline_summary): Add inlinable, versionable,
2490 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
2491 time, size and estimated_growth parameters.
2492 (estimate_edge_growth): Update.
2493 (initialize_inline_failed): Declare.
2494 * ipa-split.c: Include ipa-inline.h
2495 (execute_split_functions): Update.
2496 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
2497 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
2498 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
2499 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
2500 estimated_growth to INT_MIN.
2501 (inline_node_duplication_hook): Likewise.
2502 (dump_inline_summary): Dump new fields.
2503 (compute_inline_parameters): Update.
2504 (estimate_edge_time, estimate_time_after_inlining,
2505 estimate_size_after_inlining, estimate_growth, inline_read_summary,
2506 inline_write_summary):
2507 (initialize_inline_failed): Move here from cgraph.c.
2508 * tree-sra.c: Include ipa-inline.h.
2509 (ipa_sra_preliminary_function_checks): Update.
2510 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
2513 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
2515 * config/i386/sse.md (V16): New mode iterator.
2517 (AVXMODEQI, AVXMODEDI): Remove.
2518 (sse2, sse3): New mode attribute.
2519 (mov<mode>): Use V16 mode iterator.
2520 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
2521 (push<mode>1): Use V16 mode iterator.
2522 (movmisalign<mode>): Ditto.
2523 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
2524 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
2525 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
2526 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
2527 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
2528 avx_movdqu<avxmodesuffix>.
2529 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
2530 *avx_movdqu<avxmodesuffix>.
2531 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
2532 avx_lddqu<avxmodesuffix>.
2533 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
2534 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
2535 avx_movnt<AVXMODEDI:mode>.
2536 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
2537 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
2539 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
2542 * haifa-sched.c (prune_ready_list, schedule_block): Use
2543 sched_pressure_p rather than flag_sched_pressure.
2545 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
2547 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
2548 cgraph_get_node instead of cgraph_get_create_node.
2550 2011-04-15 Jakub Jelinek <jakub@redhat.com>
2552 * cfgexpand.c (expand_debug_expr): Use
2553 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
2555 2011-04-15 Michael Matz <matz@suse.de>
2557 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
2558 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
2559 * function.c (gimplify_parameters): Ditto.
2560 * gimplify.c (gimplify_vla_decl): Ditto.
2562 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
2563 (gimple_call_set_alloca_for_var): New inline function.
2564 (gimple_call_alloca_for_var_p): Ditto.
2565 * gimple.c (gimple_build_call_from_tree): Remember
2566 CALL_ALLOCA_FOR_VAR_P state.
2567 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
2569 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
2570 calls if they were for VLA objects.
2572 2011-04-15 Martin Jambor <mjambor@suse.cz>
2574 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
2577 2011-04-15 Martin Jambor <mjambor@suse.cz>
2580 * tree-emutls.c (lower_emutls_function_body): Call
2581 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
2584 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2586 * c-decl.c (detect_field_duplicates): Call
2587 objc_detect_field_duplicates instead of objc_get_interface_ivars.
2589 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
2591 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
2592 * gimple.c (gimple_asm_clobbers_memory_p): Define.
2593 * ipa-pure-const.c (check_stmt): Call it.
2594 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
2596 2011-04-15 Richard Guenther <rguenther@suse.de>
2598 PR tree-optimization/48290
2599 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
2600 Properly decide inhibiting propagation based on the valueized
2601 operand. Do loop-closed SSA form preserving here ...
2602 (init_copy_prop): ... not here.
2604 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
2607 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
2608 (*ieee_smax<mode>3): Likewise.
2610 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2612 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
2613 Replace match_operand with match_dup for the third operand in
2616 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
2618 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
2619 to track processing of conditionals. Update all callers.
2620 (try_combine, simplify_if_then_else): Update.
2622 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
2624 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
2627 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
2629 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
2630 instead of match_operand for operand 3.
2632 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
2634 * recog.h (insn_operand_data): Add an "allows_mem" field.
2635 * genoutput.c (output_operand_data): Initialize it.
2636 * optabs.c (maybe_legitimize_operand_same_code): New function.
2637 (maybe_legitimize_operand): Use it when matching the original
2640 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
2642 * gimplify.c: Fix issues in comments throughout.
2643 (voidify_wrapper_expr): Fix long line.
2644 (build_stack_save_restore): Likewise.
2645 (gimplify_loop_expr): Likewise.
2646 (gimplify_compound_lval): Likewise.
2647 (gimplify_init_ctor_eval): Likewise.
2648 (gimplify_modify_expr_rhs): Likewise.
2649 (omp_notice_threadprivate_variable): Likewise.
2651 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
2653 * cfgexpand.c (expand_call_stmt): Convert the function type to the
2654 original one if this is not a builtin function.
2656 2011-04-14 Jakub Jelinek <jakub@redhat.com>
2659 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
2660 offset it as needed based on top 2 bits in operands[3], change
2661 MEM mode to SFmode and mask those 2 bits away from operands[3].
2663 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2665 * c-parser.c (c_parser_objc_protocol_definition): Updated for
2666 change from objc_declare_protocols() to objc_declare_protocol().
2668 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
2670 * config/i386/sse.md (sse4_1): New mode attribute.
2671 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
2672 avx_blend<ssemodesuffix><avxmodesuffix> and
2673 sse4_1_blend<ssemodesuffix> using VF mode iterator.
2674 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
2675 avx_blendv<ssemodesuffix><avxmodesuffix> and
2676 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
2677 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
2678 avx_dp<ssemodesuffix><avxmodesuffix> and
2679 sse4_1_dp<ssemodesuffix> using VF mode iterator.
2680 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
2681 (sse4_1_packusdw): Merge with *avx_packusdw.
2682 (sse4_1_pblendvb): Merge with *avx_pblendvb.
2683 (sse4_1_pblendw): Merge with *avx_pblendw.
2684 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
2685 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
2686 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
2688 (sse4_1_round<ssescalarmodesuffix>): Merge with
2689 *avx_round<ssescalarmodesuffix>.
2690 (aesenc): Merge with *avx_aesenc.
2691 (aesenclast): Merge with *avx_aesenclast.
2692 (aesdec): Merge with *avx_aesdec.
2693 (aesdeclast): Merge with *avx_aesdeclast.
2694 (pclmulqdq): Merge with *pclmulqdq.
2695 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
2697 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
2699 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
2702 * cfgexpand.c (get_decl_align_unit): Renamed to ...
2703 (align_local_variable): This. Update DECL_ALIGN.
2704 (add_stack_var): Updated.
2705 (expand_one_stack_var): Likewise.
2707 2011-04-14 Richard Guenther <rguenther@suse.de>
2709 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
2711 (dse_initialize_block_local_data, dse_leave_block,
2712 record_voperand_set, get_stmt_uid): Likewise.
2713 (dse_possible_dead_store_p): Allow any kind of killing stmt.
2714 (dse_optimize_stmt): Remove voperand set handling code.
2715 Simplify and improve to handle any kind of killing stmt.
2716 (dse_record_phi): Remove.
2717 (dse_enter_block): Simplify.
2718 (tree_ssa_dse): Likewise.
2719 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
2721 2011-04-14 Jan Hubicka <jh@suse.cz>
2723 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
2724 * cgraph.h (struct inline_summary): Move to ipa-inline.h
2725 (cgraph_local_info): Remove inline_summary.
2726 * ipa-cp.c: Include ipa-inline.h.
2727 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
2728 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
2730 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
2731 (input_overwrite_node): Do not set inline summary.
2732 (input_node): Do not stream inline summary.
2733 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
2734 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
2735 growth; we do not have inline parameters computed for that anyway.
2736 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
2737 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
2738 (inline_summary_t): New type and VECtor.
2739 (debug_inline_summary, dump_inline_summaries): Declare.
2740 (inline_summary): Use VOCtor.
2741 (estimate_edge_growth): Kill hack computing call stmt size directly.
2742 * lto-section-in.c (lto_section_name): Add inline section.
2743 * ipa-inline-analysis.c: Include lto-streamer.h
2744 (node_removal_hook_holder, node_duplication_hook_holder): New holders
2745 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
2746 (inline_summary_vec): Define.
2747 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
2748 dump_inline_summaries): New functions.
2749 (estimate_function_body_sizes): Properly compute size/time of outgoing
2751 (compute_inline_parameters): Alloc inline_summary; do not compute
2752 size/time of incomming calls.
2753 (estimate_edge_time): Avoid missing time summary hack.
2754 (inline_read_summary): Read inline summary info.
2755 (inline_write_summary): Write inline summary info.
2756 (inline_free_summary): Free all hooks and inline summary vector.
2757 * lto-streamer.h: Add LTO_section_inline_summary section.
2758 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
2759 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
2761 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
2763 * tree-vectorizer.h (vect_strided_store_supported): Add a
2764 HOST_WIDE_INT argument.
2765 (vect_strided_load_supported): Likewise.
2766 (vect_permute_store_chain): Return void.
2767 (vect_transform_strided_load): Likewise.
2768 (vect_permute_load_chain): Delete.
2769 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
2770 count argument. Check that the count is a power of two.
2771 (vect_strided_load_supported): Likewise.
2772 (vect_permute_store_chain): Return void. Update after above changes.
2773 Assert that the access is supported.
2774 (vect_permute_load_chain): Likewise.
2775 (vect_transform_strided_load): Return void.
2776 * tree-vect-stmts.c (vectorizable_store): Update calls after
2777 above interface changes.
2778 (vectorizable_load): Likewise.
2779 (vect_analyze_stmt): Don't check for strided powers of two here.
2781 2011-04-14 Richard Guenther <rguenther@suse.de>
2783 PR tree-optimization/48590
2784 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
2785 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
2786 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
2787 BUILT_IN_STACK_SAVE.
2788 * tree-ssa-dce.c (propagate_necessity): Handle
2789 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
2791 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2793 * c-parser.c (c_parser_objc_class_declaration): Updated call to
2796 2011-04-14 Richard Guenther <rguenther@suse.de>
2798 * tree.h (get_object_alignment_1): Declare.
2799 * builtins.c (get_object_alignment_1): Split out worker from ...
2800 (get_object_alignment): ... here.
2801 * fold-const.c (get_pointer_modulus_and_residue): Use
2802 get_object_alignment_1.
2804 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
2806 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
2808 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
2809 parameter. Generalise code to handle arrays as well as vectors.
2810 (vect_setup_realignment): Update accordingly.
2811 * tree-vect-stmts.c (vectorizable_store): Likewise.
2812 (vectorizable_load): Likewise.
2814 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
2816 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
2817 within the per-copy loop.
2819 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
2821 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
2824 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
2826 * doc/options.texi (Negative): Explicitly mention that the
2827 Negative chain must be circular.
2829 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
2831 * function.h (block_chainon): Declare.
2832 * function.c (block_chainon): Define.
2834 2011-04-14 Anatoly Sokolov <aesok@post.ru>
2835 Eric Weddington <eric.weddington@atmel.com>
2836 Georg-Johann Lay <avr@gjlay.de>
2838 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
2840 (avr_init_builtins, avr_expand_builtin,
2841 avr_expand_delay_cycles, avr_expand_unop_builtin,
2842 avr_expand_binop_builtin ): New functions.
2843 (avr_builtin_id): New enum
2844 (struct avr_builtin_description): New struct
2845 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
2846 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
2848 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
2849 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
2850 UNSPECV_DELAY_CYCLES): new enumeration values
2851 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
2852 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
2853 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
2854 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
2855 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
2856 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
2857 "fmulsu"): New insns
2859 * config/avr/avr-c.c: fix line endings
2860 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
2861 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
2862 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
2863 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
2864 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
2866 * doc/extend.texi (AVR Built-in Functions): New node
2867 (Target Builtins): Add documentation of AVR
2870 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
2873 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
2874 alone. Error if non-const data has attribute progmem.
2876 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
2878 * tree.h (struct tree_constructor): Include tree_typed instead of
2880 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
2881 TS_TYPED instead of TS_COMMON.
2883 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
2885 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
2886 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
2887 (sse2_psadbw): Merge with *avx_psadbw.
2888 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
2889 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
2890 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
2891 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
2892 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
2893 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
2894 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
2895 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
2896 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
2897 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
2898 (ssse3_palignrti): Merge with *avx_palignrti.
2900 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
2902 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
2903 * tree-ssanames.c (fini_ssanames): VEC_free it.
2904 (make_ssa_name_fn): Update for VECness of free_ssanames.
2905 (release_ssa_name, release_dead_ssa_names): Likewise.
2906 * tree.h (struct tree_ssa_name): Include tree_typed instead of
2908 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
2909 TS_TYPED instead of TS_COMMON.
2911 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
2913 * postreload-gcse.c (gcse_after_reload_main): Add calls to
2914 statistics_counter_event.
2915 * tree-ssa-copyrename.c (stats): Define.
2916 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
2917 statistics_counter_event.
2918 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
2919 (bswap_stats, widen_mul_stats): Define.
2920 (insert_reciprocals): Increment rdivs_inserted.
2921 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
2922 rfuncs_inserted. Add calls to statistics_counter_event.
2923 (execute_cse_sincos_1): Increment inserted.
2924 (execute_cse_sincos): Zeroize sincos_stats. Add call to
2925 statistics_counter_event.
2926 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
2927 of bswap_stats. Add calls to statistics_counter_event.
2928 (convert_mult_to_widen): Increment widen_mults_inserted.
2929 (convert_plusminus_to_widen): Increment maccs_inserted.
2930 (convert_mult_to_fma): Increment fmas_inserted.
2931 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
2932 calls to statistics_counter_event.
2934 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
2936 PR rtl-optimization/48455
2937 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
2938 `temp_costs->mem_cost'.
2940 2011-04-13 Jan Hubicka <jh@suse.cz>
2942 * ipa-inline.h: New file.
2943 * ipa-inline-analysis.c: New file. Broken out of ...
2944 * ipa-inline.c: ... this file; update toplevel comment;
2945 include ipa-inline.h
2946 (inline_summary): Move to ipa-inline.h
2947 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
2948 ipa-inline-analysis.c.
2949 (cgraph_estimate_time_after_inlining): Rename to
2950 estiamte_time_after_inlining; move to ipa-inline-analysis.c
2951 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
2952 to estimate_edge_growth.
2953 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
2954 rename to estimate_size_after_inlining.
2955 (cgraph_mark_inline_edge): Update for new naming convention.
2956 (cgraph_check_inline_limits): Likewise.
2957 (cgraph_edge_badness): Likewise.
2958 (cgraph_decide_recursive_inlining): Likewise.
2959 (cgraph_decide_inlining_of_small_functions): Likewise.
2960 (cgraph_decide_inlining_incrementally): Likewise.
2961 (cgraph_estimate_growth): Rename to estimate_growth; move to
2962 ipa-inline-analysis.c.
2963 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
2964 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
2965 (compute_inline_parameters): Likewise.
2966 (compute_inline_parameters_for_current): Likewise.
2967 (pass_inline_parameters): Likewise.
2968 (inline_indirect_intraprocedural_analysis): Likewise.
2969 (analyze_function): Rename to inline_analyze_function; likewise.
2970 (add_new_function): Move to ipa-inline-analysis.c.
2971 (inline_generate_summary): Likewise.
2972 (inline_read_summary): Likewise.
2973 (inline_write_summary): Likewise.
2974 * Makefile.in (ipa-inline-analysis.c): New file.
2976 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2978 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
2979 * configure: Regenerate.
2981 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
2983 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
2984 instead of tree_common.
2985 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
2987 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
2988 TS_TYPED rather than TS_COMMON.
2989 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
2991 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
2994 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
2995 r20 around calls of __tablejump_elpm__
2997 2011-04-13 Jakub Jelinek <jakub@redhat.com>
3000 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
3002 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
3004 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
3006 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
3007 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
3008 (cfi_vec): New typedef.
3009 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
3010 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
3011 (cie_cfi_vec): New static variable.
3012 (cie_cfi_head): Delete.
3013 (add_cfi): Accept a cfi_vec * as first argument. All callers and
3014 declaration changed. Use vector rather than list operations.
3015 (new_cfi): Don't initialize the dw_cfi_next field.
3016 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
3017 rather than list operations.
3018 (lookup_cfa): Use vector rather than list operations.
3019 (output_cfis): New argument upto. Accept a cfi_vec rather than
3020 a dw_cfi_ref list head as argument. All callers changed.
3021 Iterate over the vector using upto as a maximum index.
3022 (output_all_cfis): New static function.
3023 (output_fde): Use vector rather than list operations. Use the
3024 new upto argument for output_cfis rather than manipulating a
3026 (dwarf2out_begin_prologue): Change initializations to match
3028 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
3029 from the vector length rather than searching for the end of a list.
3030 Use output_all_cfis.
3031 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
3033 2011-04-13 Nick Clifton <nickc@redhat.com>
3035 * config/rx/rx.md (movmemsi): Do not use this pattern when
3036 volatile pointers are involved.
3038 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3040 * config/i386/sse.md (pinsrbits): Remove.
3041 (sse2_packsswb): Merge with *avx_packsswb.
3042 (sse2_packssdw): Merge with *avx_packssdw.
3043 (sse2_packuswb): Merge with *avx_packuswb.
3044 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
3045 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
3046 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
3047 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
3048 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
3049 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
3050 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
3051 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
3052 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
3053 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
3054 (sse2_loadld): Merge with *avx_loadld.
3055 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
3056 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
3057 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
3058 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
3059 (vec_concatv2di): Merge with *vec_concatv2di_avx.
3061 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3063 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
3065 * print-tree.c (print_node): Likewise.
3066 * tree-inline.c (copy_tree_r): Likewise.
3067 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
3068 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
3069 instead of TS_COMMON.
3070 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
3071 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
3072 (copy_node_stat): Zero TREE_CHAIN only if necessary.
3073 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
3074 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
3076 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
3078 (TREE_CHAIN): Check for a TS_COMMON structure.
3079 (TREE_TYPE): Check for a TS_TYPED structure.
3081 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
3083 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3084 cgraph_get_create_node instead of cgraph_node.
3086 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3088 * c-parser.c (c_parser_initelt): Updated call to
3089 objc_build_message_expr.
3090 (c_parser_postfix_expression): Likewise.
3092 2011-04-12 Kai Tietz <ktietz@redhat.com>
3094 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
3095 MASK_MS_BITFIELD_LAYOUT bit.
3097 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3099 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
3100 assert it is always true.
3101 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
3104 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3106 * c-parser.c (c_lex_one_token): Rewritten conditional used when
3107 compiling Objective-C to be more efficient.
3109 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
3111 * opts-common.c (decode_cmdline_options_to_array): Remove variable
3114 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3116 * recog.h, genoutput.c, optabs.c: Revert last patch.
3118 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3121 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
3123 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3125 * recog.h (insn_operand_data): Add an "allows_mem" field.
3126 * genoutput.c (output_operand_data): Initialize it.
3127 * optabs.c (maybe_legitimize_operand_same_code): New function.
3128 (maybe_legitimize_operand): Use it when matching the original
3131 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3133 * genpreds.c (process_define_predicate): Move most processing
3134 to gensupport.c. Continue to validate the expression.
3135 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
3136 (process_define_predicate): Move processing to gensupport.c.
3137 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
3138 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
3139 (compute_predicate_codes): Moved from genrecog.c. Add lineno
3141 (valid_predicate_name_p): New function, split out from old
3142 genpreds.c:process_define_predicate.
3143 (process_define_predicate): New function, combining code from
3144 old genpreds.c and genrecog.c functions.
3145 (process_rtx): Call it for DEFINE_PREDICATE and
3146 DEFINE_SPECIAL_PREDICATE.
3148 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3150 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
3151 size of a '%A' memory reference.
3152 (T_DREG, T_QREG): New neon_builtin_type_bits.
3153 (arm_init_neon_builtins): Assert that the load and store operands
3154 are neon_struct_operands.
3155 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
3156 (NEON_ARG_MEMORY): New builtin_arg.
3157 (neon_dereference_pointer): New function.
3158 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
3159 Handle NEON_ARG_MEMORY.
3160 (arm_expand_neon_builtin): Update after above interface changes.
3161 Use NEON_ARG_MEMORY for loads and stores.
3162 * config/arm/predicates.md (neon_struct_operand): New predicate.
3163 * config/arm/iterators.md (V_two_elem): Tweak formatting.
3164 (V_three_elem): Use BLKmode for accesses that have no associated mode.
3165 (V_four_elem): Tweak formatting.
3166 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
3167 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
3168 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
3169 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
3170 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
3171 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
3172 (neon_vst4<mode>): Replace pointer operand with a memory operand.
3173 Use %A in the output template.
3174 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
3175 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
3176 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
3177 the width of the memory access. Remove post-increment.
3178 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
3180 2011-04-12 Nick Clifton <nickc@redhat.com>
3182 * config/v850/v850.c (expand_prologue): Do not use the CALLT
3183 instruction for interrupt handlers if the target is the basic V850
3185 (expand_epilogue): Likewise.
3187 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3189 PR rtl-optimization/48549
3190 * combine.c (propagate_for_debug): Also stop after BB_END of
3191 this_basic_block. Process LAST and just stop processing after it.
3192 (combine_instructions): If last_combined_insn has been deleted,
3193 set last_combined_insn to its PREV_INSN.
3195 2011-04-12 Richard Guenther <rguenther@suse.de>
3197 PR tree-optimization/46076
3198 * gimple.h (struct gimple_statement_call): Add fntype field.
3199 (gimple_call_fntype): Adjust.
3200 (gimple_call_set_fntype): New function.
3201 * gimple.c (gimple_build_call_1): Set the call function type.
3202 * gimplify.c (gimplify_call_expr): Preserve the function
3203 type the frontend used for the call.
3204 (gimplify_modify_expr): Likewise.
3205 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
3207 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
3209 * tree-ssa.c (useless_type_conversion_p): Function pointer
3210 conversions are useless.
3212 2011-04-12 Martin Jambor <mjambor@suse.cz>
3214 * cgraph.h (cgraph_node): Remove function declaration.
3215 (cgraph_create_node): Declare.
3216 (cgraph_get_create_node): Likewise.
3217 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
3218 Updated all callers.
3219 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
3220 the decl does not already exist. Call cgraph_get_create_node instead
3222 (cgraph_get_create_node): New function.
3223 (cgraph_same_body_alias): Update comment.
3224 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
3225 assert it does not return NULL.
3226 (cgraph_update_edges_for_call_stmt): Likewise.
3227 (cgraph_clone_edge): Likewise.
3228 (cgraph_create_virtual_clone): Likewise.
3229 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
3230 instead of cgraph_node.
3231 (cgraph_add_new_function): Call cgraph_create_node or
3232 cgraph_get_create_node instead of cgraph_node.
3233 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
3234 instead of cgraph_node.
3235 (record_eh_tables): Likewise.
3236 (mark_address): Likewise.
3237 (mark_load): Likewise.
3238 (build_cgraph_edges): Call cgraph_get_create_node instead
3240 (rebuild_cgraph_edges): Likewise.
3241 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
3242 instead of cgraph_node.
3243 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
3245 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
3246 cgraph_create_node instead of cgraph_node.
3247 * c-decl.c (finish_function): Call cgraph_get_create_node instead
3249 * lto-cgraph.c (input_node): Likewise.
3250 * lto-streamer-in.c (input_function): Likewise.
3251 * varasm.c (mark_decl_referenced): Likewise.
3252 (assemble_alias): Likewise.
3254 2011-04-12 Martin Jambor <mjambor@suse.cz>
3256 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
3257 instead of cgraph_node and assert it does not return NULL.
3258 * lto-streamer-in.c (lto_read_body): Likewise.
3259 * omp-low.c (new_omp_context): Likewise.
3260 (create_task_copyfn): Likewise.
3261 * tree-emutls.c (lower_emutls_function_body): Likewise.
3262 * matrix-reorg.c (transform_allocation_sites): Likewise.
3264 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3267 * c-typeck.c (build_asm_expr): Error out on attempts to use
3268 void type outputs or inputs for constraints that allow reg or
3271 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
3272 Richard Earnshaw <rearnsha@arm.com>
3275 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
3276 to use sign-magnitude offsets. Reject unsupported unaligned
3277 cases. Add detailed description in comments.
3278 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
3279 condition from TARGET_32BIT to TARGET_ARM.
3281 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
3283 * tree.h (struct typed_tree): New.
3284 (struct tree_common): Include it instead of tree_base.
3285 (TREE_TYPE): Update for new location of type field.
3286 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
3287 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
3288 (union tree_node): Add typed field.
3289 * treestruct.def (TS_TYPED): New.
3290 * lto-streamer.c (check_handled_ts_structures): Handle it.
3291 * tree.c (MARK_TS_TYPED): New macro.
3292 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
3294 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
3296 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
3297 (force_nonfallthru): Do not alter the loop nest if no basic block
3300 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
3302 * config/i386/sse.md (VI): New mode iterator.
3304 (AVX256MODEI): Ditto.
3305 (AVXMODEF4P): Ditto.
3306 (avxvecpsmode): Ditto.
3307 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
3308 (sse2_andnot<mode>3): New expander.
3309 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
3310 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
3311 (<any_logic:code><mode>3): Use VI mode iterator.
3312 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
3313 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
3314 (*andnottf3): Handle AVX three-operand constraints.
3315 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
3317 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3318 Robert Millan <rmh@gnu.org>
3320 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
3321 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
3322 GNU_USER_DYNAMIC_LINKER64): Define.
3323 (REG_NAME): Don't undefine.
3324 (MD_UNWIND_SUPPORT): Undefine.
3325 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
3326 (REG_NAME): Don't undefine.
3327 (MD_UNWIND_SUPPORT): Undefine.
3328 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
3330 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3332 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
3333 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
3335 2011-04-11 Xinliang David Li <davidxl@google.com>
3337 * value-profile.c (check_ic_target): New function.
3338 (gimple_ic_transform): Sanity check indirect call target.
3339 * gimple-low.c (gimple_check_call_args): Interface change.
3340 (gimple_check_call_matching_types): New function.
3341 * tree-inline.c (tree_can_inline_p): Call new function.
3343 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
3345 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
3346 tree-pretty-print.h & realmpfr.h.
3348 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
3351 * ira.c (setup_pressure_classes): Fix typo in loop condition.
3352 (setup_allocno_and_important_classes): Ditto.
3354 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3356 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
3357 GNU_USER_DYNAMIC_LINKER.
3358 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
3359 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3360 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
3361 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3362 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3363 GNU_USER_TARGET_OS_CPP_BUILTINS.
3364 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
3365 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3366 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3367 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3368 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
3369 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3370 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3371 GNU_USER_TARGET_OS_CPP_BUILTINS.
3372 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3373 GNU_USER_DYNAMIC_LINKER.
3374 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3375 GNU_USER_TARGET_OS_CPP_BUILTINS.
3376 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
3377 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3378 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
3379 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3380 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
3381 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
3382 GNU_USER_DYNAMIC_LINKER64): Remove.
3383 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
3384 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3385 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3386 GNU_USER_DYNAMIC_LINKER.
3387 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3388 GNU_USER_TARGET_OS_CPP_BUILTINS.
3389 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3390 GNU_USER_TARGET_OS_CPP_BUILTINS.
3391 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
3392 to GNU_USER_TARGET_OS_CPP_BUILTINS.
3393 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
3394 GNU_USER_TARGET_OS_CPP_BUILTINS.
3395 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
3396 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
3397 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
3398 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
3399 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3400 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3401 GNU_USER_DYNAMIC_LINKER.
3402 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
3403 GNU_USER_TARGET_OS_CPP_BUILTINS.
3404 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
3405 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3406 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3407 GNU_USER_DYNAMIC_LINKER.
3408 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3409 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3410 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
3411 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3412 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3413 GNU_USER_DYNAMIC_LINKER.
3414 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
3415 GNU_USER_DYNAMIC_LINKERN32.
3416 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
3417 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
3418 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
3419 GNU_USER_DYNAMIC_LINKER32.
3420 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
3421 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3422 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3423 GNU_USER_DYNAMIC_LINKER.
3424 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3425 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3426 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
3427 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3428 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3429 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
3430 GNU_USER_DYNAMIC_LINKER32.
3431 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
3432 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
3433 GNU_USER_DYNAMIC_LINKER.
3434 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
3435 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3436 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
3437 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
3438 GNU_USER_DYNAMIC_LINKER64.
3439 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
3440 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3441 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3442 GNU_USER_DYNAMIC_LINKER.
3443 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
3444 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3445 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3446 GNU_USER_DYNAMIC_LINKER.
3447 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
3448 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3449 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
3450 GNU_USER_DYNAMIC_LINKER32.
3451 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
3452 GNU_USER_DYNAMIC_LINKER64.
3453 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
3454 GNU_USER_DYNAMIC_LINKER64.
3455 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
3456 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3457 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
3458 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3459 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3461 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3463 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
3464 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
3465 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
3466 GNU_USER_DYNAMIC_LINKER.
3467 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
3468 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
3469 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
3470 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
3471 GNU_USER_DYNAMIC_LINKER64.
3472 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
3473 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
3474 GNU_USER_LINK_EMULATION.
3475 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
3476 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
3477 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
3478 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
3479 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
3480 CPP_SPEC, CC1_SPEC): Remove.
3481 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
3482 (GNU_USER_DYNAMIC_LINKER): Define.
3483 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
3484 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
3485 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
3486 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
3487 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
3488 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
3489 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
3490 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
3491 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
3492 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
3493 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
3494 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
3495 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
3496 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
3497 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
3498 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
3499 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3500 GNU_USER_DYNAMIC_LINKER.
3501 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3502 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
3503 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3504 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
3505 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3506 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
3507 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
3508 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
3509 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
3510 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
3512 2011-04-11 Kai Tietz <ktietz@redhat.com>
3516 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
3517 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
3519 (ix86_is_msabi_thiscall): Removed.
3520 (ix86_is_type_thiscall): Likewise.
3521 (ix86_get_callcvt): New function.
3522 (ix86_comp_type_attributes): Simplify check.
3523 (ix86_function_regparm): Use ix86_get_callcvt for calling
3524 convention attribute checks.
3525 (ix86_return_pops_args): Likewise.
3526 (ix86_static_chain): Likewise.
3527 (x86_this_parameter): Likewise.
3528 (x86_output_mi_thunk): Likewise.
3529 (ix86_function_type_abi): Optimize check for types without attributes.
3530 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
3531 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
3532 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
3534 (IX86_BASE_CALLCVT): Helper macro.
3535 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3536 Use ix86_get_callcvt for calling convention attribute checks and avoid
3537 symbol-decoration for stdcall in TARGET_RTD case.
3538 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
3540 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
3543 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
3545 * config/i386/sse.md (VI_128): New mode iterator.
3546 (VI12_128): Rename from SSEMODE12.
3547 (VI14_128): Rename from SSEMODE14.
3548 (VI124_128): New mode iterator.
3549 (VI24_128): Rename from SSEMODE248.
3550 (VI248_128): Rename from SSEMODE248.
3551 (SSEMODE124C8): Remove.
3552 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
3553 (*sse2_<plusminus_insn><mode>3): Merge with
3554 *avx_<plusminus_insn><mode>3.
3555 (*mulv8hi3): Merge with *avx_mulv8hi3.
3556 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
3557 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
3558 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
3559 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
3560 (ashr<mode>3): Merge with *avx_ashr<mode>3.
3561 (lshr<mode>3): Merge with *avx_lshr<mode>3.
3562 (ashl<mode>3): Merge with *avx_ashl<mode>3.
3563 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
3564 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
3565 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
3566 (*<smaxmin:code>v8hi3): Ditto.
3567 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
3568 (*<smaxmin:code>v16qi3): Ditto.
3569 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
3570 (*sse2_eq<mode>3): Ditto.
3571 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
3572 (*sse2_gt<mode>3): Ditto.
3573 (vcondv2di): Split out of vcond<mode>.
3574 (vconduv2di): Split out of vcondu<mode>.
3576 2011-04-11 Richard Guenther <rguenther@suse.de>
3578 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
3579 before calling tree_low_cst.
3581 2011-04-11 Richard Guenther <rguenther@suse.de>
3583 * stor-layout.c (layout_type): Compute all array index size operations
3584 in the original type.
3585 (initialize_sizetypes): Add comment.
3586 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
3588 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3590 * common.opt (Tbss=, Tdata=, Ttext=): New options.
3592 2011-04-11 Martin Jambor <mjambor@suse.cz>
3594 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
3595 of cgraph_node, handle NULL return value.
3596 (cgraph_global_info): Likewise.
3597 (cgraph_rtl_info): Likewise.
3598 * tree-inline.c (estimate_num_insns): Likewise.
3599 * gimplify.c (unshare_body): Likewise.
3600 (unvisit_body): Likewise.
3601 (gimplify_body): Likewise.
3602 * predict.c (optimize_function_for_size_p): Likewise.
3603 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
3604 (call_may_clobber_ref_p_1): Likewise.
3605 * varasm.c (function_section_1): Likewise.
3606 (assemble_start_function): Likewise.
3608 2011-04-11 Martin Jambor <mjambor@suse.cz>
3610 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
3612 * final.c (rest_of_clean_state): Likewise.
3613 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
3614 * passes.c (pass_init_dump_file): Likewise.
3615 (execute_all_ipa_transforms): Likewise.
3616 (function_called_by_processed_nodes_p): Likewise.
3617 * predict.c (maybe_hot_frequency_p): Likewise.
3618 (probably_never_executed_bb_p): Likewise.
3619 (compute_function_frequency): Likewise.
3620 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
3621 (unnest_nesting_tree_1): Likewise.
3622 (lower_nested_functions): Likewise.
3623 * tree-optimize.c (execute_fixup_cfg): Likewise.
3624 (tree_rest_of_compilation): Likewise.
3625 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
3626 * tree-sra.c (ipa_early_sra): Likewise.
3627 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
3628 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
3629 * ipa.c (record_cdtor_fn): Likewise.
3630 * ipa-inline.c (cgraph_early_inlining): Likewise.
3631 (compute_inline_parameters_for_current): Likewise.
3632 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
3633 * ipa-pure-const.c (local_pure_const): Likewise.
3634 * ipa-split.c (split_function): Likewise.
3635 (execute_split_functions): Likewise.
3636 * cgraphbuild.c (build_cgraph_edges): Likewise.
3637 (rebuild_cgraph_edges): Likewise.
3638 (cgraph_rebuild_references): Likewise.
3639 (remove_cgraph_callee_edges): Likewise.
3640 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
3641 (verify_cgraph_node): Likewise.
3642 (cgraph_analyze_functions): Likewise.
3643 (cgraph_preserve_function_body_p): Likewise.
3644 (save_inline_function_body): Likewise.
3645 (save_inline_function_body): Likewise.
3646 * tree-inline.c (copy_bb): Likewise.
3647 (optimize_inline_calls): Likewise.
3649 2011-04-11 Martin Jambor <mjambor@suse.cz>
3651 PR tree-optimization/48195
3652 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
3653 ipa_check_create_edge_args.
3654 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
3655 ipa_check_create_edge_args.
3656 * ipa-inline.c (inline_generate_summary): Do not call
3657 ipa_check_create_node_params and ipa_check_create_edge_args.
3658 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
3659 ipa_check_create_edge_args.
3661 2011-04-09 Anatoly Sokolov <aesok@post.ru>
3663 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
3665 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3666 * function.c (record_hard_reg_sets): Likewise.
3667 * ira.c (compute_regs_asm_clobbered): Likewise.
3668 * sched-deps.c (sched_analyze_1): Likewise.
3669 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
3671 2011-04-09 Xinliang David Li <davidxl@google.com>
3673 PR tree-optimization/PR48484
3674 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
3675 has_valid_pred lazily
3677 2011-04-09 Duncan Sands <baldrick@free.fr>
3679 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
3681 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
3683 * combine.c (combine_validate_cost): Adjust comments. Set registered
3684 cost of I0 to zero at the end, if any.
3686 2011-04-08 Xinliang David Li <davidxl@google.com>
3688 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
3689 to insane profile data.
3691 2011-04-08 Xinliang David Li <davidxl@google.com>
3693 * ipa-cp.c (ipcp_update_profiling): Correct
3694 negative scale factor due to insane profile data.
3696 2011-04-08 Xinliang David Li <davidxl@google.com>
3698 * final.c (dump_basic_block_info): New function.
3699 (final): Dump basic block.
3700 (final_scan_insn): Remove old dump.
3702 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
3705 * config.gcc (i386-*-freebsd): Disable unwind table generation for
3708 2011-04-08 Michael Matz <matz@suse.de>
3711 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
3713 (rebuild_jump_labels): Call rebuild_jump_labels_1.
3714 * rtl.h (rebuild_jump_labels_chain): Declare.
3715 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
3716 insns inserted on edges.
3718 2011-04-08 Joseph Myers <joseph@codesourcery.com>
3720 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
3721 * config/arm/arm-arches.def: New.
3722 * config/arm/arm-opts.h: New.
3723 * config/arm/genopt.sh: New.
3724 * config/arm/arm-tables.opt: New (generated).
3725 * config/arm/arm.c (arm_handle_option, arm_target_help,
3726 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
3727 (all_architectures): Get most table contents from arm-arches.def.
3728 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
3729 arm_selected_tune here.
3730 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
3731 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
3732 (march=, mcpu=, mtune=): Use Enum and Var.
3733 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
3734 (arm.o): Update dependencies.
3736 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
3738 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
3740 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
3741 (write_typed_alloc_defns): Likewise.
3742 (main): Calls write_typed_alloc_defns with output_header.
3744 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
3747 * ira-color.c (setup_profitable_hard_regs): Add comments.
3748 Don't take prohibited hard regs into account.
3749 (setup_conflict_profitable_regs): Rename to
3750 get_conflict_profitable_regs.
3751 (check_hard_reg_p): Check prohibited hard regs.
3753 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
3755 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
3756 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
3757 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
3759 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3762 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
3763 move from floating point to shift amount register.
3764 (emit_move_sequence): Remove secondary reload support for floating
3765 point to shift amount amount register copies.
3766 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
3767 amount register copies.
3768 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
3769 register, return false if mode isn't a scalar integer mode.
3770 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
3772 2011-04-08 Richard Guenther <rguenther@suse.de>
3774 * gimple.c (gimple_call_flags): Remove kludge.
3776 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
3778 * sel-sched.c (sel_region_init): Move call to
3779 sel_setup_region_sched_flags after setup_current_loop_nest.
3781 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
3783 PR rtl-optimization/48272
3784 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
3785 init_insn_reg_pressure_info. Adjust a caller.
3786 * sched-int.h (init_insn_reg_pressure_info): Declare.
3787 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
3788 when sched-pressure is enabled.
3790 2011-04-08 Richard Guenther <rguenther@suse.de>
3792 * gimple.c (gimple_set_modified): Do not queue calls to
3793 MODIFIED_NORETURN_CALLS here ...
3794 * tree-ssa-operands.c (update_stmt_operands): ... but here.
3796 2011-04-08 Richard Guenther <rguenther@suse.de>
3799 * toplev.c (lang_dependent_init): Do not open asm_out_file
3800 in WPA mode, nor perform debug machinery initialization.
3801 (finalize): Do not unlink asm_out_file in WPA mode.
3803 2011-04-08 Richard Guenther <rguenther@suse.de>
3805 * gimple.h (gimple_call_fntype): New function.
3806 (gimple_call_return_type): Use it.
3807 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
3808 * gimple-low.c (gimple_check_call_args): Likewise.
3809 * gimple.c (gimple_call_flags): Likewise.
3810 (gimple_call_arg_flags): Likewise.
3811 (gimple_call_return_flags): Likewise.
3812 * tree-cfg.c (verify_gimple_call): Likewise.
3813 (do_warn_unused_result): Likewise.
3814 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
3815 * value-prof.c (gimple_ic_transform): Fix fndecl check.
3817 2011-04-08 Dmitry Melnik <dm@ispras.ru>
3819 PR rtl-optimization/48235
3820 * sel-sched.c (code_motion_process_successors): Recompute the last
3821 insn in basic block if control flow changed.
3822 (code_motion_path_driver): Ditto. Recompute the first insn as well.
3823 Update condition for ilist_remove.
3825 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
3827 PR rtl-optimization/48302
3828 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
3829 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
3830 it to record added preheader blocks.
3831 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
3832 on to sel_add_loop_preheaders.
3833 (sel_region_init): Move call to setup_current_loop_nest after
3836 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
3839 * cfgloop.h (loop_has_exit_edges): New helper.
3840 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
3842 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
3843 that have no exit edges.
3845 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
3847 PR rtl-optimization/48442
3848 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
3849 all callers. Adjust assert.
3851 2011-04-08 Jakub Jelinek <jakub@redhat.com>
3853 PR tree-optimization/48377
3854 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
3855 is_packed to true even for types with smaller TYPE_ALIGN than
3858 2011-04-08 Richard Guenther <rguenther@suse.de>
3861 * doc/tm.texi: Re-generate.
3863 2011-04-08 Wei Guozhi <carrot@google.com>
3866 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
3867 * config/arm/arm.c (arm_attr_length_push_multi): New function.
3868 * config/arm/arm.md (*push_multi): Change the length computation to
3871 2011-04-08 Anatoly Sokolov <aesok@post.ru>
3873 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
3874 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
3875 * doc/tm.texi: Regenerate.
3876 * system.h (ASM_OUTPUT_BSS): Poison.
3877 * varasm.c (asm_output_bss): Remove function.
3878 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
3880 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
3881 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
3882 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
3883 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
3885 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
3887 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
3889 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3891 2011-04-07 Joseph Myers <joseph@codesourcery.com>
3893 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
3896 2011-04-07 Joseph Myers <joseph@codesourcery.com>
3898 * config/m68k/m68k.c (m68k_handle_option): Don't handle
3899 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
3900 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
3902 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
3903 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
3904 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
3905 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
3906 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
3907 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
3908 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
3909 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
3910 options. Don't map other m68k options manually. Don't handle
3911 old-style options as canonical.
3912 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
3913 * doc/install.texi (m68k-*-*): Document binutils version requirement.
3915 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
3917 * basic-block.h (force_nonfallthru): Move to...
3918 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
3919 (force_nonfallthru): ...here.
3920 * cfghooks.c (force_nonfallthru): New function.
3921 * cfgrtl.c (force_nonfallthru): Rename into...
3922 (rtl_force_nonfallthru): ...this.
3923 (commit_one_edge_insertion): Do not set AUX field.
3924 (commit_edge_insertions): Do not discover new basic blocks.
3925 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
3926 (cfg_layout_rtl_cfg_hooks): Likewise.
3927 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
3928 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
3929 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
3931 2011-04-07 Anatoly Sokolov <aesok@post.ru>
3933 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
3936 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
3938 * config/i386/sse.md: Update copyright year.
3939 (avxcvtvecmode): Remove.
3940 (sse_movhlps): Merge with *avx_movhlps.
3941 (sse_movlhps): Merge with *avx_movlhps.
3942 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
3943 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
3944 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
3945 (sse_loadhps): Merge with *avx_loadhps.
3946 (sse_storelps): Merge with *avx_storelps.
3947 (sse_loadlps): Merge with *avx_loadlps.
3948 (sse_movss): Merge with *avx_movss.
3949 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
3950 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
3951 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
3952 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
3953 (vec_set<mode>_0): Ditto.
3954 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
3955 (sse4_1_insertps): Merge with *avx_insertps.
3956 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
3957 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
3958 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
3959 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
3960 (sse2_storehpd): Merge with *avx_storehpd.
3961 (sse2_loadhpd): Merge with *avx_loadhpd.
3962 (sse2_loadlpd): Merge with *avx_loadlpd.
3963 (sse2_movsd): Merge with *avx_movsd.
3964 (*vec_concatv2df): Merge with *vec_concatv2df.
3966 2011-04-07 Jakub Jelinek <jakub@redhat.com>
3969 * combine.c (combine_instructions): Add last_combined_insn,
3970 update it if insn is after it, pass it to all try_combine calls.
3971 (try_combine): Add last_combined_insn parameter, pass it instead of
3972 i3 to propagate_for_debug.
3974 2011-04-07 Nick Clifton <nickc@redhat.com>
3976 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
3977 to handle MDR <-> data register transfers.
3978 (movhi_internal): Likewise.
3980 2011-04-07 Alan Modra <amodra@gmail.com>
3982 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
3983 previous stack info.
3985 2011-04-07 Tom de Vries <tom@codesourcery.com>
3988 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
3989 flow_find_cross_jump. Swap variables to implement backward replacement.
3990 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
3992 2011-04-07 Tom de Vries <tom@codesourcery.com>
3995 * cfgcleanup.c (walk_to_nondebug_insn): New function.
3996 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
3998 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
3999 src1 or src2. Redirect edges to the last basic block. Update
4000 frequency and count on multiple basic blocks in case of fallthru.
4002 2011-04-07 Tom de Vries <tom@codesourcery.com>
4005 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
4007 (old_insns_match_p): Change return type. Replace return false/true
4008 with return dir_none/dir_both. Use can_replace_by.
4009 (flow_find_cross_jump): Add dir_p parameter. Init replacement
4010 direction from dir_p. Register replacement direction in dir, last_dir
4011 and afterlast_dir. Handle new return type of old_insns_match_p using
4012 merge_dir. Return replacement direction in dir_p.
4013 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
4014 return type of old_insns_match_p.
4015 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
4016 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
4017 flow_find_cross_jump.
4018 * basic-block.h (enum replace_direction): New type.
4019 (flow_find_cross_jump): Add parameter to declaration.
4021 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
4023 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
4024 (AVXMODEDCVTPS2DQ): Ditto.
4025 (VEC_FLOAT_MODE): Ditto.
4026 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
4027 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4028 (<any_logic:code><mode>3): Use VF mode iterator.
4029 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
4030 Use VF mode iterator.
4031 (copysign<mode>3): Use VF mode iterator.
4032 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
4033 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4034 (*<any_logic:code><MODEF:mode>3): Merge with
4035 *avx_<any_logic:code><MODEF:mode>3.
4036 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
4037 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
4038 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
4039 (avx_cvtdq2ps<avxmodesuffix>): Remove.
4040 (sse2_cvtdq2ps): Use %v modifier.
4041 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
4042 (avx_cvtps2dq<avxmodesuffix>): Remove.
4043 (sse2_cvtps2dq): Use %v modifier.
4044 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
4045 (avx_cvttps2dq<avxmodesuffix>): Remove.
4046 (sse2_cvttps2dq): Use %v modifier.
4047 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
4048 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
4049 (sse2_cvtsd2siq): Fix insn template.
4050 (sse2_cvtsd2siq_2): Ditto.
4051 (sse2_cvttsd2siq): Ditto.
4052 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
4053 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
4055 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4057 * gcov-io.c: Use GCC Runtime Library Exception.
4059 2011-04-06 Jakub Jelinek <jakub@redhat.com>
4062 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
4063 as base_reg whatever register reg has been eliminated to, instead
4064 of hardcoding STACK_POINTER_REGNUM.
4066 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4068 * doc/tm.texi.in: Document C target hooks as separate from general
4070 * doc/tm.texi: Regenerate.
4071 * genhooks.c (struct hook_desc): Add docname field.
4072 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
4074 (hook_array): Include c-target.def.
4075 (emit_documentation): Use docname field in output.
4076 (emit_init_macros): Take docname argument. Only emit definitions
4077 for hooks matching docname.
4078 (main): Expect additional arguments in all cases. Pass argument
4079 to emit_init_macros.
4080 * target.def: Move initial macro definitions and comments to
4081 target-hooks-macros.h.
4082 (gcc_targetcm): Move to c-family/c-target.def.
4083 * target.h (targetcm): Move declaration to c-family/c-target.h.
4084 * targhooks.c (default_handle_c_option): Move to
4086 * targhooks.h (default_handle_c_option): Move declaration to
4087 c-family/c-common.h.
4088 * target-hooks-macros.h: New file.
4089 * config.gcc (target_has_targetcm): Define and use to add to
4090 c_target_objs and cxx_target_objs.
4091 * config/default-c.c: New file.
4092 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
4093 of target.h and target-def.h.
4094 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
4095 (darwin_objc_construct_string, darwin_cfstring_ref_p,
4096 darwin_check_cfstring_format_arg): Make static.
4097 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4098 TARGET_STRING_OBJECT_REF_TYPE_P,
4099 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
4100 * config/darwin-protos.h (darwin_objc_construct_string,
4101 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
4103 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4104 TARGET_STRING_OBJECT_REF_TYPE_P,
4105 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
4106 * config/t-darwin (darwin-c.o): Update dependencies.
4107 * system.h (TARGET_HAS_TARGETCM): Poison.
4108 * Makefile.in (TARGET_H): Update.
4109 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
4110 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
4111 (default-c.o): New target.
4112 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
4113 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
4114 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
4116 (build/genhooks.o): Update dependencies.
4118 2011-04-06 Richard Guenther <rguenther@suse.de>
4120 * ipa-inline.c (enum inlining_mode): Remove.
4121 (cgraph_flatten): Use some other token.
4122 (cgraph_edge_early_inlinable_p): New function, split out from ...
4123 (cgraph_perform_always_inlining): New function, split out from ...
4124 (cgraph_decide_inlining_incrementally): ... here.
4125 (cgraph_mark_inline_edge): Adjust.
4126 (cgraph_early_inlining): Re-structure.
4127 (pass_early_inline): Require SSA form.
4129 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
4130 Julian Brown <julian@codesourcery.com>
4131 Mark Shinwell <shinwell@codesourcery.com>
4133 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
4134 LO_REGS only for Thumb-1.
4135 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
4136 be used in short instructions when optimising for size on Thumb-2.
4138 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
4140 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
4141 associated with user returns to be preserved.
4143 2011-04-06 Tristan Gingold <gingold@adacore.com>
4145 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
4146 symbol_queue_size, DBXOUT_DECR_NESTING,
4147 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
4148 if XCOFF_DEBUGGING_INFO.
4150 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
4152 * config/i386/i386.md (attribute isa): New.
4153 (attribute enabled): New.
4154 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
4155 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
4156 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
4157 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
4158 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
4159 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4160 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
4161 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
4163 * config/i386/sse.md (VF): New mode iterator.
4167 (SSEMODEF4): Remove.
4168 (attribute sse): Handle V8SF and V4DF modes.
4169 (<absneg:code><mode>2): Use VF mode iterator.
4170 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
4172 (<plusminus_insn><mode>3): Use VF mode iterator.
4173 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4174 Use VF mode iterator.
4175 (<sse>_vm<plusminus_insn><mode>3): Merge with
4176 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
4177 (mul<mode>3): Use VF mode iterator.
4178 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
4179 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
4181 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
4182 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
4183 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
4184 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
4186 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
4187 Use VF1 mode iterator.
4188 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
4189 (sqrt<VF2:mode>2): New expander.
4190 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
4191 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
4192 and sqrtv2df2. Use VF mode iterator.
4193 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
4195 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
4196 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
4197 Use VF1 mode iterator.
4198 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
4199 (<smaxmin:code><mode>3): Use VF mode iterator.
4200 (*<smaxmin:code><mode>3_finite): Merge with
4201 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
4202 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4203 (<sse>_vm<smaxmin:code><mode>2): Merge with
4204 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
4205 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
4207 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
4209 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
4210 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
4211 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
4212 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
4213 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
4215 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
4216 Use VF_128 mode iterator.
4217 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
4219 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
4220 VF_128 mode iterator.
4221 (vcond<mode>): Use VF mode iterator.
4222 * config/i386/predicates.md (sse_comparison_operator): Merge with
4223 avx_comparison_float_operator. Do not declare as special_predicate.
4224 * config/i386/i386.c (struct builtin_description): Update for renamed
4226 (ix86_expand_args_builtin): Ditto.
4227 (ix86_expand_sse_compare_mask): Ditto.
4229 2011-04-06 Richard Guenther <rguenther@suse.de>
4231 * tree-inline.c (estimate_num_insns): For calls simply account
4232 for all passed arguments and a used return value.
4234 2011-04-06 Richard Guenther <rguenther@suse.de>
4236 PR tree-optimization/47663
4237 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
4238 call_stmt_time fields.
4239 (cgraph_edge_inlinable_p): Declare.
4240 (cgraph_edge_recursive_p): New inline function.
4241 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
4242 (cgraph_clone_edge): Copy it.
4243 * ipa-inline.c (cgraph_estimate_edge_time): New function.
4244 Account for call stmt time.
4245 (cgraph_estimate_time_after_inlining): Take edge argument.
4246 (cgraph_estimate_edge_growth): Account call stmt size.
4247 (cgraph_estimate_size_after_inlining): Take edge argument.
4248 (cgraph_mark_inline_edge): Adjust.
4249 (cgraph_check_inline_limits): Likewise.
4250 (cgraph_recursive_inlining_p): Remove.
4251 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
4252 (cgraph_decide_recursive_inlining): Take edge argument and
4254 (cgraph_decide_inlining_of_small_functions): Do not avoid
4255 diags for recursive inlining here.
4256 (cgraph_flatten): Adjust.
4257 (cgraph_decide_inlining_incrementally): Likewise.
4258 (estimate_function_body_sizes): Remove call cost handling.
4259 (compute_inline_parameters): Initialize caller edge call costs.
4260 (cgraph_estimate_edge_growth): New function.
4261 (cgraph_estimate_growth): Use it.
4262 (cgraph_edge_badness): Likewise.
4263 (cgraph_check_inline_limits): Take an edge argument.
4264 (cgraph_decide_inlining_of_small_functions): Adjust.
4265 (cgraph_decide_inlining): Likewise.
4266 * tree-inline.c (estimate_num_insns): Only account for call
4267 return value if it is used.
4268 (expand_call_inline): Avoid diagnostics on recursive inline
4270 * lto-cgraph.c (lto_output_edge): Output edge call costs.
4271 (input_edge): Input edge call costs.
4273 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4275 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
4277 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
4279 * doc/invoke.texi (Spec Files): Fix typo.
4281 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
4283 * profile.c (branch_prob): Move declaration of local variable. Remove
4284 obsolete ??? comment. Expand the location explicitly instead of using
4285 the LOCATION_FILE and LOCATION_LINE macros.
4287 2011-04-06 Wei Guozhi <carrot@google.com>
4290 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
4291 (arm_cond_branch): Likewise.
4292 (arm_cond_branch_reversed): Likewise.
4293 (arm_jump): Likewise.
4294 (push_multi): Likewise.
4295 * config/arm/constraints.md (Py): New constraint.
4297 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4300 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
4302 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
4303 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
4304 #ifdef DBX_DEBUGGING_INFO.
4306 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
4309 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
4310 if old and new states differ.
4312 2011-04-05 Joseph Myers <joseph@codesourcery.com>
4314 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
4315 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
4316 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4317 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
4318 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
4320 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
4321 ColdFire options to -mcpu= options.
4323 2011-04-05 Jeff Law <law@redhat.com>
4325 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
4326 check if BB is a successor of LOOP->header and return
4327 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
4329 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
4331 * cprop.c (struct reg_use): Remove.
4332 (reg_use_table): Make an array of RTX.
4333 (find_used_regs, constprop_register, local_cprop_pass,
4334 bypass_block): Simplify users of reg_use_table.
4335 (cprop_insn): Likewise. Iterate if copy propagation succeeded
4336 on one of the uses found by find_used_regs.
4338 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4341 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
4344 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4346 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
4348 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
4350 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
4353 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
4355 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4357 * combine.c: Include obstack.h.
4358 (struct insn_link): Define.
4359 (uid_log_links): Adjust type.
4360 (FOR_EACH_LOG_LINK): New macro.
4361 (insn_link_obstack): Declare.
4362 (alloc_insn_link): Define.
4363 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
4364 type of link variables.
4365 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
4366 (try_combine, record_promoted_values, distribute_notes): Likewise.
4367 (distribute_links): Likewise. Tweak prototype.
4368 (clear_log_links): Delete.
4369 (adjust_for_new_dest): Call alloc_insn_link.
4370 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
4372 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4374 * gcse.c (modify_mem_list): Convert to an array of VECs.
4375 (canon_modify_mem_list, compute_transp): Tweak formatting.
4376 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
4377 (load_killed_in_block_p): Likewise.
4378 (record_last_mem_set_info): Likewise.
4379 (clear_modify_mem_tables): Likewise.
4381 2011-04-05 Tom de Vries <tom@codesourcery.com>
4384 * function.c (emit_use_return_register_into_block): Only define if
4387 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
4389 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
4391 2011-04-05 Joseph Myers <joseph@codesourcery.com>
4393 * config/rx/rx-opts.h: New.
4394 * config/rx/rx.c (rx_cpu_type): Remove.
4395 (rx_handle_option): Don't assert that global structures are in
4396 use. Access variables via opts pointer. Defer most handling of
4397 OPT_mint_register_. Use error_at.
4398 (rx_option_override): Handle deferred OPT_mint_register_ here.
4399 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
4400 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
4401 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
4402 (rx_cpu_types): New Enum and EnumValue entries.
4403 (mint-register=): Use Defer and use Var accordingly.
4405 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4407 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
4408 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
4409 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
4411 (debug_free_queue, debug_nesting, symbol_queue_index):
4413 * dbxout.c: ...to here. Make static.
4415 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4417 * gcse.c (modify_pair): Define. Define a VEC of it.
4418 (canon_modify_mem_list): Convert to an array of VECs.
4419 (free_insn_expr_list_list): Delete.
4420 (clear_modify_mem_tables): Call VEC_free instead.
4421 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
4422 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
4423 (canon_list_insert, compute_transp): Likewise.
4425 2011-04-05 Tom de Vries <tom@codesourcery.com>
4428 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
4431 2011-04-05 Tom de Vries <tom@codesourcery.com>
4434 * function.c (emit_use_return_register_into_block): New function.
4435 (thread_prologue_and_epilogue_insns): Use
4436 emit_use_return_register_into_block.
4438 2011-04-05 Tom de Vries <tom@codesourcery.com>
4441 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
4444 2011-04-05 Tom de Vries <tom@codesourcery.com>
4446 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
4448 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
4450 * config/arm/arm.md (define_constants for unspec): Replace with
4452 (define_constants for unspecv): Replace with define_c_enum.
4453 * config/arm/neon.md (define_constants for unspec): Replace with
4456 2011-04-04 Richard Henderson <rth@redhat.com>
4459 * dwarf2out.c (output_line_info): Always emit line info from
4460 at least one section.
4461 (dwarf2out_init): Create text_section_line_info here ...
4462 (set_cur_line_info_table): ... not here.
4464 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
4467 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
4470 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
4472 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
4474 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
4475 (expr_equiv_p): Remove.
4476 (insert_set_in_table): Look at <dest, src> pair instead of expr.
4477 (hash_scan_set): Update call to insert_set_in_table.
4478 (dump_hash_table): Dump <dest, src> pair.
4479 (lookup_set): Simplify. Lookup <dest, src> pair.
4480 (compute_transp): Remove, fold heavily simplified code into...
4481 (compute_local_properties): ...here. Expect COMP and TRANSP
4483 (find_avail_set): Take set directly from struct expr.
4484 (find_bypass-set): Likewise.
4485 (bypass_block): Likewise.
4486 (cprop_insn): Likewise. Remove redundant INSN_P test.
4488 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
4489 checks on form of COND from find_implicit_sets to here.
4490 (find_implicit_sets): Cleanup control flow. Split critical edges
4491 if it exposes implicit sets. Allocate/resize implicit_sets as
4493 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
4494 changed something. Run df_analyze after find_implicit_sets if any
4495 edges were split. Do not allocate implicit_sets here.
4497 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
4498 (gcse_obstack): Renamed to cprop_obstack.
4499 (GNEW, GNEWVEC, GNEWVAR): Remove.
4501 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
4502 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
4503 (gcse_alloc): Likewise, and rename to cprop_alloc.
4504 (alloc_gcse_men, free_gcse_mem): Remove.
4505 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
4506 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
4507 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
4509 * cprop.c (oprs_not_set_p): Remove.
4510 (mark_set, mark_clobber): Remove.
4511 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
4512 (reg_not_set_p): New function.
4513 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
4514 (cprop_insn): Likewise.
4515 (cprop_jump): Use FOR_EACH_EDGE.
4517 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
4520 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
4521 (rank_for_schedule): Use scheduled_insns vector instead of
4522 last_scheduled_insn.
4523 (ok_for_early_queue_removal): Likewise.
4524 (queue_to_ready): Search forward in nonscheduled_insns_begin if
4526 (choose_ready): Likewise.
4527 (commit_schedule): Use VEC_iterate.
4528 (schedule_block): Initialize nonscheduled_insns_begin. If we have
4529 a dbg_cnt, use it and ensure the first insn is in the ready list.
4530 (haifa_sched_init): Allocate scheduled_insns.
4531 (sched_extend_ready_list): Don't allocate it; reserve space.
4532 (haifa_sched_finish): Free it.
4534 2011-04-04 Joseph Myers <joseph@codesourcery.com>
4536 * optc-gen.awk: Always remove type from Variable entry before
4537 recording in var_seen.
4539 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
4541 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
4542 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
4543 call to tidy_fallthru_edges.
4545 2011-04-04 Joseph Myers <joseph@codesourcery.com>
4547 * doc/options.texi (ToLower): Document.
4548 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
4549 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
4550 * opts.h (cl_option): Add cl_tolower field.
4551 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
4552 arguments with lowercase strings.
4553 * config/rx/rx.opt (mcpu=): Add ToLower.
4554 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
4557 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
4559 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
4561 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
4563 * config/vax/vax.c: Include reload.h.
4565 2011-04-04 Anatoly Sokolov <aesok@post.ru>
4567 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
4568 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
4569 (sparc_preferred_reload_class): New function.
4571 2011-04-04 Jakub Jelinek <jakub@redhat.com>
4574 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
4575 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
4577 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
4579 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
4580 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
4582 2011-04-03 Anatoly Sokolov <aesok@post.ru>
4584 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
4585 (ASM_OUTPUT_ALIGNED_BSS): Define.
4587 2011-04-03 Michael Matz <matz@suse.de>
4589 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
4590 and next_slot members.
4591 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
4592 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
4593 (lto_streamer_cache_append): Declare.
4594 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
4595 unsigned index, remove offset parameter, ensure that we append
4596 or update existing entries.
4597 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
4598 parameter, update next_slot for append.
4599 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
4601 (lto_streamer_cache_insert_at): Likewise.
4602 (lto_streamer_cache_append): New function.
4603 (lto_streamer_cache_lookup): Use unsigned index.
4604 (lto_streamer_cache_get): Likewise.
4605 (lto_record_common_node): Don't test tree_node_can_be_shared.
4606 (preload_common_node): Adjust call to lto_streamer_cache_insert.
4607 (lto_streamer_cache_delete): Don't free offsets member.
4608 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
4609 (lto_output_string_with_length): Use lto_output_data_stream.
4610 (lto_output_tree_header): Remove ix parameter, don't write it.
4611 (lto_output_builtin_tree): Likewise.
4612 (lto_write_tree): Adjust callers to above, don't track and write
4613 offset, write unsigned index.
4614 (output_unreferenced_globals): Don't emit all global vars.
4615 (write_global_references): Use unsigned indices.
4616 (lto_output_decl_state_refs): Likewise.
4617 (write_symbol): Likewise.
4618 * lto-streamer-in.c (lto_input_chain): Move earlier.
4619 (input_function): Use unsigned index.
4620 (input_alias_pairs): Don't read and then ignore all global vars.
4621 (lto_materialize_tree): Remove ix_p parameter, don't read index,
4622 don't pass it back, use lto_streamer_cache_append.
4623 (lto_register_var_decl_in_symtab): Use unsigned index.
4624 (lto_register_function_decl_in_symtab): Likewise.
4625 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
4627 (lto_get_builtin_tree): Don't read index, use
4628 lto_streamer_cache_append.
4629 (lto_read_tree): Adjust call to lto_materialize_tree.
4631 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
4632 don't use function calls in arguments to MIN.
4634 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
4637 * gimple.c (gimple_type_leader_entry): Mark deletable.
4639 2011-04-03 Alan Modra <amodra@gmail.com>
4641 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
4643 2011-04-03 Michael Matz <matz@suse.de>
4645 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
4647 * tree.h (tree_decl_non_common.vindex): Adjust comment.
4649 2011-04-03 Michael Matz <matz@suse.de>
4651 * cgraphbuild.c (record_reference): Canonicalize constructor values.
4652 * gimple-fold.c (canonicalize_constructor_val): Accept being called
4653 without function context.
4654 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
4655 current_function_decl and cfun.
4657 2011-04-03 Michael Matz <matz@suse.de>
4659 * tree.c (decl_init_priority_insert): Don't create entry for
4661 (decl_fini_priority_insert): Ditto.
4662 (fields_compatible_p, find_compatible_field): Remove.
4663 * tree.h (fields_compatible_p, find_compatible_field): Remove.
4664 * gimple.c (gimple_compare_field_offset): Adjust block comment.
4666 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
4668 * combine.c (try_combine): Remove useless local variable.
4670 2011-04-03 Richard Guenther <rguenther@suse.de>
4671 Ira Rosen <ira.rosen@linaro.org>
4673 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
4674 non-variable offsets and compare the remaining bases of the two
4675 accesses instead of looking for exact same data-ref.
4677 2011-04-02 Kai Tietz <ktietz@redhat.com>
4680 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
4682 * i386.c (ix86_is_msabi_thiscall): New helper function.
4683 (ix86_is_type_thiscall): New helper function.
4684 (ix86_comp_type_attributes): Handle thiscall for method-functions
4686 (init_cumulative_args): Likewise.
4687 (find_drap_reg): Likewise.
4688 (ix86_static_chain): Likewise.
4689 (x86_this_parameter): Likewise.
4690 (x86_output_mi_thunk): Likewise.
4692 2011-04-01 Olivier Hainque <hainque@adacore.com>
4693 Nicolas Setton <setton@adacore.com>
4694 Eric Botcazou <ebotcazou@adacore.com>
4696 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
4697 (add_gnat_descriptive_type_attribute): New function.
4698 (gen_array_type_die): Call it.
4699 (gen_enumeration_type_die): Likewise.
4700 (gen_struct_or_union_type_die): Likewise.
4701 (modified_type_die): Likewise.
4702 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
4703 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
4704 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
4706 2011-04-01 Jakub Jelinek <jakub@redhat.com>
4709 * dwarf2out.c (resolve_addr): Don't call force_decl_die
4710 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
4713 2011-03-17 Richard Guenther <rguenther@suse.de>
4716 * lto-cgraph.c (input_overwrite_node): Clear the abstract
4717 origin for decls in other ltrans units.
4718 (input_varpool_node): Likewise.
4720 2011-04-01 Jakub Jelinek <jakub@redhat.com>
4723 * expr.c (expand_assignment): Handle all possibilities
4724 if TO_RTX is CONCAT.
4725 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
4726 (store_split_bit_field): If SUBREG_REG (op0) or
4727 op0 itself has smaller mode than word, return it
4728 for offset 0 and const0_rtx for out-of-bounds stores.
4729 If word is const0_rtx, skip it.
4731 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
4733 * config/h8300/h8300.c (print_operand_address): Rename to...
4734 (h8300_print_operand_address): ...this. Make static. Adjust comments.
4735 Call h8300_print_operand and h8300_print_operand_address instead of
4736 print_operand and print_operand_address. Declare.
4737 (print_operand): Renake to...
4738 (h8300_print_operand): ...this. Make static. Adjust comments.
4739 Call h8300_print_operand instead of print_operand. Declare.
4740 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
4741 (h8300_register_move_cost): Likewise.
4742 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
4743 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
4744 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
4745 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
4746 * config/h8300/h8300-protos.h (print_operand): Delete.
4747 (print_operand_address): Delete.
4749 2011-04-01 Richard Henderson <rth@redhat.com>
4752 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
4753 in strict mode before dwarf4. Re-order tests to early out
4754 before switching sections.
4756 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
4758 * config/h8300/constraints.md: New file.
4759 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
4760 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
4761 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
4762 * config/h8300/predicates.md (bit_operand): Likewise.
4763 (incdec_operand): Use satisfies_constraint_M and
4764 satisfies_constraint_O. Don't use C code block.
4765 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
4766 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
4767 (compute_mov_length): Use satisfies_constraint_G.
4768 (fix_bit_operand): Use satisfies_constraint_U.
4769 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
4770 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
4771 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
4772 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
4773 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
4774 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
4775 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4776 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
4777 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
4778 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
4779 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
4780 (EXTRA_MEMORY_CONSTRAINT): Delete.
4782 2011-04-01 Andrew Pinski <pinskia@gmail.com>
4783 Michael Meissner <meissner@linux.vnet.ibm.com>
4786 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
4787 operands, as per the specifications.
4789 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
4790 (vec_extract_evenv4sf): Ditto.
4791 (vec_extract_evenv8hi): Ditto.
4792 (vec_extract_evenv16qi): Ditto.
4793 (vec_extract_oddv4si): Ditto.
4795 2011-03-31 Mark Wielaard <mjw@redhat.com>
4797 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
4798 high_pc attribute if the CU has no associated code. Only output
4799 DW_AT_entry_pc for CU if not generating strict dwarf and
4802 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
4804 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
4805 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
4807 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
4808 * final.c (final_start_function): Call the new function rather
4809 than using a NULL argument for dwarf2out_frame_debug.
4811 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
4812 that contains the prologue.
4814 * haifa-sched.c (queue_insn): New arg REASON. All callers
4815 changed. Print it in debugging output.
4817 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
4819 * sched-ebb.c (begin_schedule_ready): Remove second argument.
4820 Split most of the code into...
4821 (begin_move_insn): ... here. New function.
4822 (ebb_sched_info): Add a pointer to it.
4823 * haifa-sched.c (scheduled_insns): New static variable.
4824 (sched_extend_ready_list): Allocate it.
4825 (schedule_block): Use it to record the order of scheduled insns.
4826 Perform RTL changes to move insns only after all scheduling
4827 decisions have been made.
4828 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
4829 begin_move_insn field.
4830 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
4831 * sched-int.h (struct haifa_sched_info): Remove second argument
4832 from begin_schedule_ready hook. Add new member begin_move_insn.
4833 * sched-rgn.c (begin_schedule_ready): Remove second argument.
4834 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
4836 * haifa-sched.c (prune_ready_list): New function, broken out of
4838 (schedule_block): Use it.
4840 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4842 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
4844 2011-04-01 Kai Tietz <ktietz@redhat.com>
4846 * config.gcc (*-*-mingw*): Allow as option the
4847 posix threading model.
4848 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
4849 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
4851 (CPP_SPEC): Add pthread/no-pthread handling.
4852 (LIB_SPEC): Likewise.
4853 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
4854 (LIB_SPEC): Likewise.
4855 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
4856 flag to pass -pthread option for shared libgcc build.
4857 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
4858 for shared libgcc build.
4859 * config/i386/t-mingw-pthread: New file.
4860 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
4861 New define to enable use of library pthread by default.
4862 * config/i386/mingw.opt (pthread): New driver option.
4863 (no-pthread): New driver option.
4864 * config/i386/cygming.opt: Make sure trailing empty line is retained.
4865 * config/i386/mingw-w64.opt: Likewise.
4867 2011-04-01 Gary Funck <gary@intrepid.com>
4869 * c-decl.c (grokdeclarator): Fix formatting.
4871 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
4873 * expr.c (emit_block_move_via_movmem): Use n_generator_args
4874 instead of n_operands.
4875 (set_storage_via_setmem): Likewise.
4876 * optabs.c (maybe_gen_insn): Likewise.
4877 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
4878 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
4879 (mips_expand_builtin_direct): Likewise.
4880 * config/spu/spu.c (expand_builtin_args): Likewise.
4882 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
4884 * recog.h (insn_data_d): Add n_generator_args.
4885 * genoutput.c (data): Likewise.
4886 (output_insn_data): Print it.
4887 (max_opno, num_dups): Delete.
4888 (scan_operands): Just fill in "d->operand[...]".
4889 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
4891 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
4893 * gensupport.h (pattern_stats): New structure.
4894 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
4895 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
4896 (max_operand_1, max_operand_vec): Delete.
4897 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
4899 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
4901 * emit-rtl.c (emit_pattern_after_setloc): New function.
4902 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
4903 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
4904 (emit_pattern_after): New function.
4905 (emit_insn_after, emit_jump_insn_after): Call it.
4906 (emit_call_insn_after, emit_debug_insn_after): Likewise.
4907 (emit_pattern_before_setloc): New function.
4908 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
4909 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
4911 (emit_pattern_before): New function.
4912 (emit_insn_before, emit_jump_insn_before): Call it.
4913 (emit_call_insn_before, emit_debug_insn_before): Likewise.
4915 2011-03-31 Richard Henderson <rth@redhat.com>
4917 * dwarf2out.c (dw_separate_line_info_ref): Remove.
4918 (dw_separate_line_info_entry): Remove.
4919 (enum dw_line_info_opcode): New.
4920 (dw_line_info_entry): Use it.
4921 (dw_line_info_table, dw_line_info_table_p): New.
4922 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
4923 (line_info_table, line_info_label_num): Remove.
4924 (line_info_table_in_use): Remove.
4925 (separate_line_info_table): Remove.
4926 (separate_line_info_table_allocated): Remove.
4927 (separate_line_info_table_in_use): Remove.
4928 (LINE_INFO_TABLE_INCREMENT): Remove.
4929 (line_info_label_num): New.
4930 (cur_line_info_table): New.
4931 (text_section_line_info, cold_text_section_line_info): New.
4932 (separate_line_info): New.
4933 (SEPARATE_LINE_CODE_LABEL): Remove.
4934 (print_dwarf_line_table): Remove.
4935 (debug_dwarf): Don't dump it.
4936 (output_one_line_info_table): New.
4937 (output_line_info): Use it.
4938 (new_line_info_table): New.
4939 (set_cur_line_info_table): New.
4940 (dwarf2out_switch_text_section): Use it.
4941 (dwarf2out_begin_function): Likewise.
4942 (push_dw_line_info_entry): New.
4943 (dwarf2out_source_line): Rewrite for new line info tables.
4944 (dwarf2out_init): Remove dead initailizations.
4946 2011-03-31 Joseph Myers <joseph@codesourcery.com>
4948 * opts.h (cl_option): Add comments to fields. Add bit-fields for
4950 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
4951 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
4952 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
4953 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
4954 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
4955 * opt-functions.awk (flag_init, switch_bit_fields): New.
4956 (switch_flags): Don't handle flags moved to bit-fields. Don't
4957 generate CL_MISSING_OK or CL_SAVE.
4958 * optc-gen.awk: Update to generate bit-field output as well as
4960 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
4961 bit-field instead of CL_REJECT_DRIVER flag.
4962 * opts-common.c (generate_canonical_option,
4963 decode_cmdline_option): Use bit-fields instead of CL_* flags.
4964 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
4965 instead of CL_REJECT_NEGATIVE flag.
4966 * toplev.c (print_switch_values): Use cl_report bit-field instead
4969 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
4971 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
4972 a zero minimum index only if it is redundant.
4974 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
4976 PR rtl-optimization/48381
4977 * ira-color.c (assign_hard_reg): Use hard reg set intersection
4978 instead of ira_class_hard_reg_index for calculating conflicting
4981 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
4983 * cprop.c: Clean up hash table building.
4984 (reg_avail_info): Remove.
4985 (oprs_available_p): Remove.
4986 (record_last_reg_set_info): Remove.
4987 (record_last_set_info): Remove.
4988 (reg_available_p): New function.
4989 (gcse_constant_p): Do not treat unfolded conditions as constants.
4990 (make_set_regs_unavailable): New function.
4991 (hash_scan_set): Simplify with new reg_available_p.
4992 (compute_hash_table_work): Traverse insns stream only once.
4993 Do not compute reg_avail_info. Traverse insns in reverse order.
4994 Record implicit sets after recording explicit sets from the block.
4996 2011-03-31 Michael Matz <matz@suse.de>
4998 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
5000 2011-03-31 Anatoly Sokolov <aesok@post.ru>
5002 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
5003 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
5004 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5005 (h8300_mode_dependent_address_p): New function.
5006 (h8300_get_index): Make static.
5008 2011-03-31 Jeff Law <law@redhat.com>
5010 * reload1.c (elimination_effects): Fix typo in recent change.
5012 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
5013 typo potentially leading to null pointer dereference.
5015 * caller-save.c (new_saved_hard_reg): Eliminate return value.
5016 (setup_save_areas): Corresponding changes to avoid useless
5019 * jump.c (reversed_comparison_code_parts): Avoid successive return
5020 statements when REVERSE_CONDITION is defined.
5022 * expr.c (expand_assignment): Avoid useless assignments.
5023 (expand_expr_real_1): Likewise.
5024 (expand_expr_real_2): Avoid useless statements.
5026 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
5028 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5030 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
5033 * stmt.c (expand_expr_stmt): Avoid useless assignment.
5035 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5038 * doc/tm.texi.in (TARGET_VERSION): Remove.
5039 * doc/tm.texi: Regenerate.
5040 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
5041 * collect2.c (main): Don't use TARGET_VERSION.
5042 * mips-tdump.c (main): Don't use TARGET_VERSION.
5043 * mips-tfile.c (main): Don't use TARGET_VERSION.
5044 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
5045 * config/rs6000/vxworksae.h: Remove.
5046 * config/alpha/alpha.h (TARGET_VERSION): Remove.
5047 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
5048 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
5049 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
5050 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5051 * config/arm/arm.h (TARGET_VERSION): Remove.
5052 * config/arm/coff.h (TARGET_VERSION): Remove.
5053 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
5054 * config/arm/elf.h (TARGET_VERSION): Remove.
5055 * config/arm/freebsd.h (TARGET_VERSION): Remove.
5056 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
5057 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
5058 * config/arm/pe.h (TARGET_VERSION): Remove.
5059 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
5060 * config/arm/semi.h (TARGET_VERSION): Remove.
5061 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
5062 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
5063 * config/arm/vxworks.h (TARGET_VERSION): Remove.
5064 * config/avr/avr.h (TARGET_VERSION): Remove.
5065 * config/bfin/bfin.h (TARGET_VERSION): Remove.
5066 * config/fr30/fr30.h (TARGET_VERSION): Remove.
5067 * config/frv/frv.h (TARGET_VERSION): Remove.
5068 * config/h8300/h8300.h (TARGET_VERSION): Remove.
5069 * config/i386/cygwin.h (TARGET_VERSION): Remove.
5070 * config/i386/darwin.h (TARGET_VERSION): Remove.
5071 * config/i386/darwin64.h (TARGET_VERSION): Remove.
5072 * config/i386/djgpp.h (TARGET_VERSION): Remove.
5073 * config/i386/freebsd.h (TARGET_VERSION): Remove.
5074 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
5075 * config/i386/gnu.h (TARGET_VERSION): Remove.
5076 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
5077 * config/i386/i386elf.h (TARGET_VERSION): Remove.
5078 * config/i386/linux.h (TARGET_VERSION): Remove.
5079 * config/i386/linux64.h (TARGET_VERSION): Remove.
5080 * config/i386/lynx.h (TARGET_VERSION): Remove.
5081 * config/i386/mingw32.h (TARGET_VERSION): Remove.
5082 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
5083 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
5084 * config/i386/netware.h (TARGET_VERSION): Remove.
5085 * config/i386/nto.h (TARGET_VERSION): Remove.
5086 * config/i386/openbsd.h (TARGET_VERSION): Remove.
5087 * config/i386/vxworks.h (TARGET_VERSION): Remove.
5088 * config/ia64/elf.h (TARGET_VERSION): Remove.
5089 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
5090 * config/ia64/hpux.h (TARGET_VERSION): Remove.
5091 * config/ia64/linux.h (TARGET_VERSION): Remove.
5092 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5093 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
5094 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5095 * config/lm32/lm32.h (TARGET_VERSION): Remove.
5096 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
5097 * config/m32c/m32c.h (TARGET_VERSION): Remove.
5098 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
5099 * config/m32r/m32r.h (TARGET_VERSION): Remove.
5100 * config/m68k/linux.h (TARGET_VERSION): Remove.
5101 * config/m68k/m68k.h (TARGET_VERSION): Remove.
5102 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
5103 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
5104 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
5105 * config/mep/mep.h (TARGET_VERSION): Remove.
5106 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
5107 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5108 * config/mips/iris6.h (MACHINE_TYPE): Remove.
5109 * config/mips/linux.h (TARGET_VERSION): Remove.
5110 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
5111 * config/mips/vxworks.h (TARGET_VERSION): Remove.
5112 * config/mmix/mmix.h (TARGET_VERSION): Remove.
5113 * config/mn10300/linux.h (TARGET_VERSION): Remove.
5114 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
5115 * config/pa/pa.h (TARGET_VERSION): Remove.
5116 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
5117 * config/picochip/picochip.h (TARGET_VERSION): Remove.
5118 * config/rs6000/aix.h (TARGET_VERSION): Remove.
5119 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
5120 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
5121 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
5122 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
5123 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
5124 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
5125 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
5126 * config/rs6000/linux.h (TARGET_VERSION): Remove.
5127 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
5128 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
5129 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
5130 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
5131 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
5132 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
5133 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
5134 * config/s390/linux.h (TARGET_VERSION): Remove.
5135 * config/s390/s390.h (TARGET_VERSION): Remove.
5136 * config/s390/tpf.h (TARGET_VERSION): Remove.
5137 * config/score/score.h (TARGET_VERSION): Remove.
5138 * config/sh/linux.h (TARGET_VERSION): Remove.
5139 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
5140 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
5141 * config/sh/sh.h (TARGET_VERSION): Remove.
5142 * config/sh/sh64.h (TARGET_VERSION): Remove.
5143 * config/sh/superh.h (TARGET_VERSION): Remove.
5144 * config/sh/vxworks.h (TARGET_VERSION): Remove.
5145 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
5146 * config/sparc/linux.h (TARGET_VERSION): Remove.
5147 * config/sparc/linux64.h (TARGET_VERSION): Remove.
5148 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
5149 TARGET_NAME32, TARGET_NAME): Remove.
5150 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
5151 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
5152 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
5153 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
5154 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
5155 * config/spu/spu.h (TARGET_VERSION): Remove.
5156 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
5157 * config/v850/v850.h (TARGET_VERSION): Remove.
5158 * config/vax/linux.h (TARGET_VERSION): Remove.
5159 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
5160 * config/xtensa/elf.h (TARGET_VERSION): Remove.
5161 * config/xtensa/linux.h (TARGET_VERSION): Remove.
5163 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5166 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
5167 frame-related from frame-unrelated adjustments to the stack pointer.
5169 2011-03-31 Jakub Jelinek <jakub@redhat.com>
5171 * common.opt (fdebug-types-section): Move earlier.
5172 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
5174 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
5176 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
5179 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
5181 * tree.h (CASE_CHAIN): Define.
5182 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
5183 (gimple_redirect_edge_and_branch): Likewise.
5185 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
5188 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
5191 2011-03-30 Jeff Law <law@redhat.com>
5193 * PR bootstrap/48371
5194 * reload1.c (reload): Fix botch in last change.
5196 * reload.h (struct reload): Fix typo introduced in last change.
5198 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5200 * config/arm/arm.opt (mhard-float, msoft-float): Mark
5201 Undocumented. Remove help text.
5202 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
5205 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5207 * doc/options.texi (NegativeAlias): Document.
5208 (Alias): Mention NegativeAlias.
5209 * opt-functions.awk: Handle NegativeAlias.
5210 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
5211 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
5212 * opts.h (CL_NEGATIVE_ALIAS): Define.
5213 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
5214 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
5216 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
5218 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5219 mno-spe and mno-isel instead of mspe=no and -misel=no.
5221 2011-03-29 Mark Wielaard <mjw@redhat.com>
5223 * common.opt (fdebug-types-section): New flag.
5224 * doc/invoke.texi: Document new -fno-debug-types-section flag.
5225 * dwarf2out.c (use_debug_types): New define.
5226 (struct die_struct): Mark die_id with GTY desc use_debug_types.
5227 (print_die): Guard output of type unit signatures using
5229 (build_abbrev_table): Replace assert of dwarf_version >= 4
5230 with assert on use_debug_types.
5231 (size_of_die): Likewise.
5232 (unmark_dies): Likewise.
5233 (value_format): Decide AT_ref_external form on use_debug_types.
5234 (output_die): Replace dwarf_version version check guard with
5235 use_debug_types where appropriate.
5236 (modified_type_die): Likewise.
5237 (gen_reference_type_die): Likewise.
5238 (dwarf2out_start_source_file): Likewise.
5239 (dwarf2out_end_source_file): Likewise.
5240 (prune_unused_types_walk_attribs): Likewise.
5241 (dwarf2out_finish): Likewise.
5243 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
5245 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
5247 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
5249 PR rtl-optimization/48332
5250 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
5251 mode of input operand N and modeN to its actual mode.
5253 2011-03-30 Jeff Law <law@redhat.com>
5255 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
5256 define accessor macro.
5257 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
5258 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
5259 (reg_equiv_init): Likewise.
5260 (reg_equivs_size): New variable.
5261 (reg_equiv_init_size): Remove.
5262 (allocate_initial_values): Move prototype to here from....
5263 * integrate.h (allocate_initial_values): Remove prototype.
5264 * integrate.c: Include reload.h.
5265 (allocate_initial_values): Corresponding changes.
5266 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
5267 (fix_reg_equiv_init, no_equiv): Corresponding changes.
5268 (update_equiv_regs): Corresponding changes.
5269 (ira): Corresponding changes.
5270 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
5271 (push_secondary_reload): Corresponding changes.
5272 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
5273 (make_memloc, find_reloads_address): Corresponding changes.
5274 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
5275 (find_reloads_address_1): Corresponding changes.
5276 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
5277 (refers_to_regno_for_reload_p): Corresponding changes.
5278 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
5279 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
5280 * reload1.c: Include ggc.h.
5281 (grow_reg_equivs): New function.
5282 (replace_pseudos_in, reload): Corresponding changes.
5283 (calculate_needs_all_insns, alter_regs): Corresponding changes.
5284 (eliminate_regs_1, elimination_effects): Corresponding changes.
5285 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
5286 (delete_output_reload): Likewise.
5287 * caller-save.c (mark_referenced_regs): Corresponding changes.
5288 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
5289 * frv/predicates.md (frv_load_operand): Corresponding changes.
5290 * microblaze/microblaze.c (double_memory_operand): Corresponding
5292 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
5293 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
5294 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
5295 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
5296 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
5298 * pa/pa.c (emit_move_sequence): Corresponding changes.
5299 * vax/vax.c (nonindexed_address_p): Corresponding changes.
5301 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
5304 * config/arm/arm.c (coproc_secondary_reload_class): Handle
5305 structure modes. Don't check neon_vector_mem_operand for
5306 vector or structure modes.
5308 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
5309 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5312 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
5313 operand 1 and reshuffle the operands to match.
5314 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
5316 2011-03-30 Christian Schüler <cschueler@gmx.de>
5319 * config/c.opt (F): Added 'Driver' to -F option.
5322 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
5324 * config/darwin.opt: Added '-arch' option.
5326 2011-03-30 Nick Clifton <nickc@redhat.com>
5328 * config/rx/rx.md: Add peepholes and patterns to combine
5329 extending loads and simple arithmetic instructions.
5330 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
5331 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
5332 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
5333 modes to use pre-decrement and post-increment addressing.
5334 (rx_is_restricted_memory_address): Add range checking of REG+INT
5336 (rx_print_operand): Add support for %Q. Fix handling of %Q.
5337 (rx_memory_move_cost): Adjust cost of stores.
5338 (rx_adjust_insn_length): New function.
5340 2011-03-30 Jakub Jelinek <jakub@redhat.com>
5343 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
5344 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
5345 matching arg00/arg01 types.
5347 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
5349 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
5350 last_location to UNKNOWN_LOCATION.
5352 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
5355 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
5358 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5359 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5362 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
5364 (sparc_cpu): Likewise.
5365 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
5368 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
5372 PR rtl-optimization/48345
5373 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
5374 hard regs for given mode from profitable regs when doing secondary
5377 2011-03-29 Jeff Law <law@redhat.com>
5380 * tree-ssa-threadupdate.c (struct redirection_data): Remove
5381 do_not_duplicate field.
5382 (lookup_redirection_data): Corresponding changes.
5383 (create_duplicates): Always create a template block.
5384 (redirect_edges): Remove code which reused the original block
5385 when it was going to become unreachable code.
5386 (thread_block): Don't set do_not_duplicate field.
5388 2011-03-29 Joseph Myers <joseph@codesourcery.com>
5390 * lto-opts.c (register_user_option_p, lto_register_user_option):
5391 Make type argument unsigned.
5392 * lto-streamer.h (lto_register_user_option): Make type argument
5394 * opth-gen.awk: Make CL_* macros unsigned.
5395 * opts-common.c (find_opt): Make lang_mask argument unsigned.
5396 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
5397 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
5398 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
5399 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
5400 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
5401 (find_opt): Make lang_mask argument unsigned.
5403 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
5405 PR rtl-optimization/48331
5406 PR rtl-optimization/48334
5407 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
5408 for any used algorithm.
5410 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
5412 * ira-conflicts.c (build_object_conflicts): Add unused attribute
5415 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
5417 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
5418 (alpha_option_override): Don't set alpha_sr_alias_set.
5419 (emit_frame_store_1): Use gen_frame_mem rather than calling
5421 (alpha_expand_epilogue): Ditto.
5423 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
5425 PR tree-optimization/48290
5426 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
5427 vectorization, check that relevant phis in the basic block after
5428 the inner loop are really inner loop's exit phis.
5430 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
5433 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
5434 (cached_dw_loc_list_def): New structure.
5435 (cached_dw_loc_list): New typedef.
5436 (cached_dw_loc_list_table): New variable.
5437 (cached_dw_loc_list_table_hash): New function.
5438 (cached_dw_loc_list_table_eq): Likewise.
5439 (add_location_or_const_value_attribute): Take a bool cache_p.
5440 Cache the list when the parameter is true.
5441 (gen_formal_parameter_die): Update caller.
5442 (gen_variable_die): Likewise.
5443 (dwarf2out_finish): Likewise.
5444 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
5445 while generating debug info for the decl.
5446 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
5447 (dwarf2out_init): Initialize cached_dw_loc_list_table.
5448 (resolve_addr): Cache the result of resolving a chain of
5451 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
5453 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
5454 conflict object hard regset nodes have intersecting hard reg sets.
5456 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
5457 after regstat_init_n_sets_and_refs.
5459 * ira.c: Add more comments at the top.
5460 (setup_stack_reg_pressure_class, setup_pressure_classes):
5461 Add comments how we compute the register pressure classes.
5462 (setup_allocno_and_important_classes): Add more comments.
5463 (setup_class_translate_array, reorder_important_classes)
5464 (setup_reg_class_relations): Add comments.
5466 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
5469 * ira-color.c: Add 2011 to the Copyright line.
5470 (assign_hard_reg): Add more comments.
5471 (improve_allocation): Ditto.
5473 * ira-costs.c: Add 2011 to the Copyright line.
5474 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
5476 (setup_regno_cost_classes_by_mode): Ditto.
5478 Initial patches from ira-improv branch:
5480 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
5482 * ira-build.c (ira_create_object): Remove initialization of
5483 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
5484 (ira_create_allocno): Remove initialization of
5485 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
5486 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
5487 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
5488 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
5489 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
5490 Initialize ALLOCNO_ADD_DATA.
5491 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
5492 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
5494 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
5495 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
5497 * ira.c (ira_reallocate): Remove.
5498 (setup_pressure_classes): Call
5499 ira_init_register_move_cost_if_necessary. Use
5500 ira_register_move_cost instead of ira_get_register_move_cost.
5501 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
5502 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
5504 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
5505 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
5506 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
5507 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
5508 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
5509 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
5511 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
5512 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
5513 (struct allocno_color_data): New.
5514 (allocno_color_data_t): New typedef.
5515 (allocno_color_data): New definition.
5516 (ALLOCNO_COLOR_DATA): New macro.
5517 (struct object_color_data): New.
5518 (object_color_data_t): New typedef.
5519 (object_color_data): New definition.
5520 (OBJECT_COLOR_DATA): New macro.
5521 (update_copy_costs, calculate_allocno_spill_cost): Call
5522 ira_init_register_move_cost_if_necessary. Use
5523 ira_register_move_cost instead of ira_get_register_move_cost.
5524 (move_spill_restore, update_curr_costs): Ditto.
5525 (allocno_spill_priority): Make it inline.
5526 (color_pass): Allocate and free allocno_color_dat and object_color_data.
5527 (struct coalesce_data, coalesce_data_t): New.
5528 (allocno_coalesce_data): New definition.
5529 (ALLOCNO_COALESCE_DATA): New macro.
5530 (merge_allocnos, coalesced_allocno_conflict_p): Use
5531 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
5532 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
5533 (coalesce_allocnos): Ditto.
5534 (setup_coalesced_allocno_costs_and_nums): Ditto.
5535 (collect_spilled_coalesced_allocnos): Ditto.
5536 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
5537 (setup_slot_coalesced_allocno_live_ranges): Ditto.
5538 (coalesce_spill_slots): Ditto.
5539 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
5540 free allocno_coalesce_data.
5542 * ira-conflicts.c: Fix formatting.
5543 (process_regs_for_copy): Call
5544 ira_init_register_move_cost_if_necessary. Use
5545 ira_register_move_cost instead of ira_get_register_move_cost.
5546 (build_object_conflicts): Optimize.
5548 * ira-costs.c (record_reg_classes): Optimize. Call
5549 ira_init_register_move_cost_if_necessary. Use
5550 ira_register_move_cost, ira_may_move_in_cost, and
5551 ira_may_move_out_cost instead of ira_get_register_move_cost and
5552 ira_get_may_move_cost.
5553 (record_address_regs): Ditto.
5554 (scan_one_insn): Optimize.
5555 (find_costs_and_classes): Optimize.
5556 (process_bb_node_for_hard_reg_moves): Call
5557 ira_init_register_move_cost_if_necessary. Use
5558 ira_register_move_cost instead of ira_get_register_move_cost.
5560 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
5561 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
5562 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
5563 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
5565 (ira_initiate_emit_data, ira_finish_emit_data)
5566 (create_new_allocno): New functions.
5567 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
5568 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
5569 Use ira_register_move_cost instead of ira_get_register_move_cost.
5571 * ira-int.h: Fix some comments.
5572 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
5573 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
5574 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
5575 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
5577 (struct ira_allocno): Make mode and aclass a bitfield. Move other
5578 bitfield after mode. Make hard_regno a short int. Make
5579 hard_regno short. Remove first_coalesced_allocno and
5580 next_coalesced_allocno. Move mem_optimized_dest_p,
5581 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
5582 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
5583 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
5584 temp, colorable_p. Add new member add_data.
5585 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
5586 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
5587 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
5588 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
5589 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
5590 (ALLOCNO_ADD_DATA): New macro.
5591 (ira_emit_data_t): New typedef.
5592 (struct ira_emit_data): New. Move mem_optimized_dest_p,
5593 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
5594 from struct ira_allocno.
5595 (ALLOCNO_EMIT_DATA): New macro.
5596 (ira_allocno_emit_data, allocno_emit_reg): New.
5597 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
5598 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
5599 (OBJECT_ADD_DATA): New macro.
5600 (ira_reallocate): Remove.
5601 (ira_initiate_emit_data, ira_finish_emit_data): New.
5602 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
5603 (ira_init_register_move_cost_if_necessary): New.
5604 (ira_object_conflict_iter_next): Merge into
5605 ira_object_conflict_iter_cond.
5606 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
5608 * ira-live.c (process_single_reg_class_operands): Call
5609 ira_init_register_move_cost_if_necessary. Use
5610 ira_register_move_cost instead of ira_get_register_move_cost.
5612 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
5614 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
5616 * ira-costs.c: Fix formatting.
5617 (cost_classes, cost_classes_num): Remove.
5618 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
5619 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
5620 (cost_classes_del, cost_classes_htab): New.
5621 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
5622 (initiate_regno_cost_classes, setup_cost_classes): New.
5623 (setup_regno_cost_classes_by_aclass): New.
5624 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
5625 (record_reg_classes): Use regno_cost_classes instead of
5626 cost_classes. Move checking opposite operand up.
5627 (record_address_regs): Use regno_cost_classes
5628 instead of cost_classes.
5629 (scan_one_insn): Ditto. Use always general register.
5630 (print_allocno_costs): Use regno_cost_classes instead of
5632 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
5633 (find_costs_and_classes): Set up cost classes for each registers.
5634 Use also their mode for this. Use regno_cost_classes instead of
5636 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
5638 (free_ira_costs, ira_init_costs): Don't use cost_classes.
5639 (ira_costs, ira_set_pseudo_classes): Call
5640 initiate_regno_cost_classes and finish_regno_cost_classes.
5642 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
5644 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
5646 * target.def (ira_cover_classes): Remove.
5648 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
5650 * doc/tm.texi.in: Ditto.
5652 * ira-conflicts.c: Remove mentioning cover classes from the file.
5653 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
5654 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
5656 * targhooks.c (default_ira_cover_classes): Remove.
5658 * targhooks.h (default_ira_cover_classes): Ditto.
5660 * haifa-sched.c: Remove mentioning cover classes from the file.
5661 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
5662 ira_pressure_classes and ira_pressure_classes_num instead of
5663 ira_reg_class_cover_size and ira_reg_class_cover. Use
5664 sched_regno_pressure_class instead of sched_regno_cover_class.
5665 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
5666 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
5668 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
5669 classes from the file.
5670 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
5671 (struct object_hard_regs, struct object_hard_regs_node): New.
5672 (struct ira_object): New members profitable_hard_regs,
5673 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
5674 (struct ira_allocno): Rename cover_class to aclass. Rename
5675 cover_class_cost and updated_cover_class_cost to class_cost and
5676 updated_class_cost. Remove splay_removed_p and
5677 left_conflict_size. Add new members colorable_p.
5678 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
5679 (ALLOCNO_COLORABLE_P): New macro.
5680 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
5681 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
5682 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
5683 (OBJECT_...): Rename parameter C to O.
5684 (OBJECT_PROFITABLE_HARD_REGS): New macro.
5685 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
5686 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
5687 (struct target_ira_int): New members x_ira_max_memory_move_cost,
5688 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
5689 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
5690 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
5691 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
5692 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
5693 x_ira_reg_class_subunion.
5694 (ira_max_memory_move_cost, ira_max_register_move_cost)
5695 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
5696 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
5697 (ira_important_class_nums, ira_reg_class_superunion): New macros.
5698 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
5699 (ira_reg_class_union): Rename to ira_reg_class_subunion.
5700 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
5701 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
5702 (ira_tune_allocno_costs_and_cover_classes): Rename to
5703 ira_tune_allocno_costs.
5704 (ira_debug_hard_regs_forest): New.
5705 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
5706 (ira_object_conflict_iter_next): Fix comments.
5707 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
5708 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
5709 cover_class to aclass.
5710 (ira_allocate_and_accumulate_costs): Ditto.
5711 (ira_allocate_and_set_or_copy_costs): Ditto.
5713 * opts.c (decode_options): Remove ira_cover_class check.
5715 * ira-color.c: Remove mentioning cover classes from the file. Use
5716 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
5717 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
5718 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
5719 (splay-tree.h): Remove include.
5720 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
5721 before copy_freq_compare_func.
5722 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
5723 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
5725 (hard_regs_roots, hard_regs_node_vec): Ditto.
5726 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
5727 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
5728 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
5729 (create_new_object_hard_regs_node): Ditto.
5730 (add_new_object_hard_regs_node_to_forest): Ditto.
5731 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
5732 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
5734 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
5735 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
5736 (remove_unused_object_hard_regs_nodes): Ditto.
5737 (enumerate_object_hard_regs_nodes): Ditto.
5738 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
5739 (object_hard_regs_subnode_t): Ditto.
5740 (struct object_hard_regs_subnode): Ditto.
5741 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
5742 (setup_object_hard_regs_subnode_index): Ditto.
5743 (get_object_hard_regs_subnodes_num): Ditto.
5744 (form_object_hard_regs_nodes_forest): Ditto.
5745 (finish_object_hard_regs_nodes_tree): Ditto.
5746 (finish_object_hard_regs_nodes_forest): Ditto.
5747 (allocnos_have_intersected_live_ranges_p): Rename to
5748 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
5749 (pseudos_have_intersected_live_ranges_p): Rename to
5750 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
5751 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
5752 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
5753 (update_copy_costs): Remove assert. Skip cost update if the hard
5754 reg does not belong the class.
5755 (assign_hard_reg): Process only profitable hard regs.
5756 (uncolorable_allocnos_num): Make it scalar.
5757 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
5758 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
5759 and ira_reg_class_max_nregs.
5760 (bucket_allocno_compare_func): Check frequency first.
5761 (sort_bucket): Add compare function as a parameter.
5762 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
5763 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
5764 (push_allocno_to_stack): Rewrite for checking new allocno
5766 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
5767 (push_only_colorable): Pass new parameter to sort_bucket.
5768 (push_allocno_to_spill): Remove.
5769 (allocno_spill_priority_compare): Make it inline and rewrite.
5770 (splay_tree_allocate, splay_tree_free): Remove.
5771 (allocno_spill_sort_compare): New function.
5772 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
5773 build and use splay tree. Choose first allocno in uncolorable
5774 allocno bucket to spill. Remove setting spill cost.
5775 (all_conflicting_hard_regs): Remove.
5776 (setup_allocno_available_regs_num): Check only profitable hard
5777 regs. Print info about hard regs nodes.
5778 (setup_allocno_left_conflicts_size): Remove.
5779 (put_allocno_into_bucket): Don't call
5780 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
5781 (improve_allocation): New.
5782 (color_allocnos): Call setup_profitable_hard_regs,
5783 form_object_hard_regs_nodes_forest, improve_allocation,
5784 finish_object_hard_regs_nodes_forest. Setup spill cost.
5785 (print_loop_title): Use pressure classes.
5786 (color_allocnso): Ditto.
5787 (do_coloring): Remove allocation and freeing splay_tree_node_pool
5788 and allocnos_for_spilling.
5789 (ira_sort_regnos_for_alter_reg): Don't setup members
5790 {first,next}_coalesced_allocno.
5791 (color): Remove allocating and freeing removed_splay_allocno_vec.
5792 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
5793 prohibited_class_mode_regs.
5795 * ira-lives.c: Remove mentioning cover classes from the file. Fix
5797 (update_allocno_pressure_excess_length): Use pressure classes.
5798 (inc_register_pressure, dec_register_pressure): Check for pressure
5800 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
5801 pressure class. Use ira_reg_class_nregs instead of
5802 ira_reg_class_max_nregs.
5803 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
5804 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
5805 (single_reg_class): Use ira_reg_class_nregs instead of
5806 ira_reg_class_max_nregs.
5807 (process_bb_node_lives): Use pressure classes.
5809 * ira-emit.c: Remove mentioning cover classes from the file. Use
5810 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
5811 (change_loop): Use pressure classes.
5812 (modify_move_list): Call ira_set_allocno_class instead of
5813 ira_set_allocno_cover_class.
5815 * ira-build.c: Remove mentioning cover classes from the file. Use
5816 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
5817 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
5818 ALLOCNO_UPDATED_CLASS_COST instead of
5819 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
5820 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
5821 (ira_create_allocno): Remove initialization of
5822 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
5823 ALLOCNO_COLORABLE_P.
5824 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
5825 Update conflict regs for the objects.
5826 (create_cap_allocno): Remove assert. Don't propagate
5827 ALLOCNO_AVAILABLE_REGS_NUM.
5828 (ira_free_allocno_costs): New function.
5829 (finish_allocno): Change a part of code into call of
5830 ira_free_allocno_costs.
5831 (low_pressure_loop_node_p): Use pressure classes.
5832 (object_range_compare_func): Don't compare classes.
5833 (setup_min_max_conflict_allocno_ids): Ditto.
5835 * loop-invariant.c: Remove mentioning cover classes from the file.
5836 Use ira_pressure_classes and ira_pressure_classes_num instead of
5837 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
5838 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
5839 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
5840 Use reg_allocno_class instead of reg_cover_class.
5841 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
5842 STACK_REG_COVER_CLASS.
5843 (get_regno_cover_class): Rename to get_regno_pressure_class.
5844 (move_loop_invariants): Initialize and finalize regstat.
5846 * ira.c: Remove mentioning cover classes from the file. Add
5847 comments about coloring without cover classes. Use ALLOCNO_CLASS
5848 instead of ALLOCNO_COVER_CLASS. Fix formatting.
5849 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
5850 setup_class_subset_and_memory_move_costs.
5851 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
5852 (setup_cover_and_important_classes): Rename to
5853 setup_allocno_and_important_classes.
5854 (setup_class_translate_array): New.
5855 (setup_class_translate): Call it for allocno and pressure classes.
5856 (cover_class_order): Rename to allocno_class_order.
5857 (comp_reg_classes_func): Use ira_allocno_class_translate instead
5858 of ira_class_translate.
5859 (reorder_important_classes): Set up ira_important_class_nums.
5860 (setup_reg_class_relations): Set up ira_reg_class_superunion.
5861 (print_class_cover): Rename to print_classes. Add parameter.
5862 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
5863 Print pressure classes too.
5864 (find_reg_class_closure): Rename to find_reg_classes. Don't call
5865 setup_reg_subclasses.
5866 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
5867 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
5868 (setup_prohibited_class_mode_regs): Use
5869 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
5870 (clarify_prohibited_class_mode_regs): New function.
5871 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
5872 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
5873 (ira_init_once): Initialize them.
5874 (free_register_move_costs): Process them.
5875 (ira_init): Move calls of find_reg_classes and
5876 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
5877 Call clarify_prohibited_class_mode_regs.
5878 (ira_no_alloc_reg): Remove.
5879 (too_high_register_pressure_p): Use pressure classes.
5881 * sched-deps.c: Remove mentioning cover classes from the file.
5882 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
5883 ira_pressure_classes and ira_pressure_classes_num instead of
5884 ira_reg_class_cover_size and ira_reg_class_cover.
5885 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
5886 sched_regno_pressure_class instead of sched_regno_cover_class.
5887 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
5888 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
5890 * ira.h: Add 2010 to Copyright.
5891 (ira_no_alloc_reg): Remove external.
5892 (struct target_ira): Rename x_ira_hard_regno_cover_class,
5893 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
5894 x_ira_class_translate to x_ira_hard_regno_allocno_class,
5895 x_ira_allocno_classes_num, x_ira_allocno_classes, and
5896 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
5897 x_ira_pressure_classes, x_ira_pressure_class_translate, and
5898 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
5899 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
5900 x_ira_no_alloc_regs.
5901 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
5902 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
5903 ira_allocno_classes_num and ira_allocno_classes.
5904 (ira_class_translate): Rename to ira_allocno_class_translate.
5905 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
5906 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
5907 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
5908 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
5909 (ira_no_alloc_regs): New.
5911 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
5912 classes from the file. Use ALLOCNO_CLASS instead of
5913 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
5914 ALLOCNO_COVER_CLASS_COST.
5915 (regno_cover_class): Rename to regno_aclass.
5916 (record_reg_classes): Use ira_reg_class_subunion instead of
5917 ira_reg_class_union.
5918 (record_address_regs): Check overflow.
5919 (scan_one_insn): Ditto.
5920 (print_allocno_costs): Print total mem cost fore regional allocation.
5921 (print_pseudo_costs): Use REG_N_REFS.
5922 (find_costs_and_classes): Use classes intersected with them on the
5923 1st pass. Check overflow. Use ira_reg_class_subunion instead of
5924 ira_reg_class_union. Use ira_allocno_class_translate and
5925 regno_aclass instead of ira_class_translate and regno_cover_class.
5926 Modify code for finding regno_aclass. Setup preferred classes for
5928 (setup_allocno_cover_class_and_costs): Rename to
5929 setup_allocno_class_and_costs. Use regno_aclass instead of
5930 regno_cover_class. Use ira_set_allocno_class instead of
5931 ira_set_allocno_cover_class.
5932 (init_costs, finish_costs): Use regno_aclass instead of
5934 (ira_costs): Use setup_allocno_class_and_costs instead of
5935 setup_allocno_cover_class_and_costs.
5936 (ira_tune_allocno_costs_and_cover_classes): Rename to
5937 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
5938 by processing objects. Use ira_reg_class_max_nregs instead of
5939 ira_reg_class_nregs.
5941 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
5943 * sched-int.h: Remove mentioning cover classes from the file.
5944 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
5946 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
5947 classes from the file.
5948 (struct reg_pref): Rename coverclass into allocnoclass.
5949 (reg_cover_class): Rename to reg_allocno_class.
5951 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
5953 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
5955 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
5957 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
5959 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
5961 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
5963 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
5965 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
5967 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
5969 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
5971 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
5972 (i386_ira_cover_classes): Ditto.
5974 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
5976 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
5978 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
5980 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
5982 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
5984 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
5986 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
5987 (mips_ira_cover_classes): Ditto.
5989 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
5991 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
5993 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
5995 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
5997 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
5999 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
6000 (IRA_COVER_CLASSES_VSX): Ditto.
6002 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
6003 (rs6000_ira_cover_classes): Ditto.
6005 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
6007 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
6009 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
6011 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
6013 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
6015 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
6017 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
6019 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
6021 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
6023 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
6025 2011-03-29 Jakub Jelinek <jakub@redhat.com>
6028 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
6029 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
6030 dw_fde_unlikely_section_end_label, cold_in_std_section,
6031 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
6032 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
6034 (output_fde): Use dw_fde_second_{begin,end} if second is
6035 true, otherwise dw_fde_{begin,end}.
6036 (output_call_frame_info): Test dw_fde_second_begin != NULL
6037 instead of dw_fde_switched_sections.
6038 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
6039 fields, initialize new fields. Initialize in_std_section
6040 unconditionally from the first partition.
6041 (dwarf2out_end_epilogue): Don't override dw_fde_end when
6042 dw_fde_second_begin is non-NULL.
6043 (dwarf2out_switch_text_section): Stop initializing removed
6044 dw_fde_struct fields, initialize new fields, initialize
6045 also dw_fde_end here. Set dw_fde_switch_cfi even when
6046 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
6047 (struct var_loc_list_def): Add last_before_switch field.
6048 (arange_table, arange_table_allocated, arange_table_in_use,
6049 ARANGE_TABLE_INCREMENT, add_arange): Removed.
6050 (size_of_aranges): Count !in_std_section and !second_in_std_section
6051 hunks in fdes, instead of looking at arange_table_in_use.
6052 (output_aranges): Add aranges_length argument, don't call
6053 size_of_aranges here. Instead of using aranges_table*
6054 emit ranges for fdes when !in_std_section resp.
6055 !second_in_std_section.
6056 (dw_loc_list): Break ranges crossing section switch.
6057 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
6058 use dw_fde_second_end instead of dw_fde_end as end of last range.
6059 (gen_subprogram_die): Don't call add_arange. Use
6060 dw_fde_{begin,end} for first partition and if switched
6061 section dw_fde_second_{begin,end} for the second.
6062 (var_location_switch_text_section_1,
6063 var_location_switch_text_section): New functions.
6064 (dwarf2out_begin_function): Initialize cold_text_section even
6065 when function_section () isn't text_section.
6066 (prune_unused_types): Don't walk arange_table.
6067 (dwarf2out_finish): Don't needlessly test
6068 flag_reorder_blocks_and_partition when testing cold_text_section_used.
6069 If info_section_emitted, call size_of_aranges and if it indicates
6070 non-empty .debug_aranges, call output_aranges with the computed
6071 size. Stop using removed dw_fde_struct fields, use
6072 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
6076 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
6077 create ENTRY_VALUE if incoming or address of incoming's MEM
6079 * dwarf2out.c (mem_loc_descriptor): Don't emit
6080 DW_OP_GNU_entry_value of DW_OP_fbreg.
6081 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
6082 on ENTRY_VALUE is able to find the canonical parameter VALUE.
6083 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
6084 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
6086 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
6087 is a REG_P or MEM_P with REG_P address, compute hash directly
6088 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
6089 (preserve_only_constants): Don't clear VALUES forwaring
6090 ENTRY_VALUE to some other VALUE.
6092 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
6094 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
6097 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
6099 * cfgexpand.c (expand_gimple_cond): Always set the source location and
6100 block before expanding the statement.
6101 (expand_gimple_stmt_1): Likewise. Set them here...
6102 (expand_gimple_stmt): ...and not here. Tidy.
6103 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
6106 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
6108 * Makefile.in: New rule for cprop.o.
6109 * gcse.c: Move constant/copy propagation to cprop.c.
6110 (compute_local_properties): Only handle expression tables.
6111 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
6112 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
6113 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
6114 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
6115 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
6116 compute_cprop_data, find_used_regs, try_replace_reg,
6117 find_avail_set, cprop_jump, constprop_register, cprop_insn,
6118 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
6119 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
6120 find_bypass_set, reg_killed_on_edge, bypass_block,
6121 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
6122 execute_rtl_cprop, pass_rtl_cprop): Move to...
6123 * cprop.c: ...here. New file, constant/copy propagation for RTL
6124 moved from gcse.c to here with minor cleanups in duplicated code.
6126 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
6128 * config/i386/i386.c (flag_opts): Fix a typo in
6129 -mavx256-split-unaligned-store.
6131 2011-03-28 Anatoly Sokolov <aesok@post.ru>
6133 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
6134 LIBCALL_VALUE): Remove macros.
6135 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6136 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6137 (h8300_function_value, h8300_libcall_value,
6138 h8300_function_value_regno_p): New functions.
6140 2011-03-28 Anatoly Sokolov <aesok@post.ru>
6142 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
6144 2011-03-28 Jeff Law <law@redhat.com>
6146 * tree-ssa-threadupdate.c (redirect_edges): Call
6147 create_edge_and_update_destination_phis as needed.
6148 (create_edge_and_update_destination_phis): Accept new BB argument.
6149 All callers updated.
6150 (thread_block): Do not update the profile when threading around
6151 intermediate blocks.
6152 (thread_single_edge): Likewise.
6153 (determine_bb_domination_status): If BB is not a successor of the
6154 loop header, return NONDOMINATING.
6155 (register_jump_thread): Note when we register a jump thread around
6156 an intermediate block.
6157 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
6158 (thread_across_edge): Use it.
6160 2011-03-28 Tristan Gingold <gingold@adacore.com>
6162 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
6163 when for_return is 2.
6165 2011-03-28 Jeff Law <law@redhat.com>
6167 * var-tracking.c (canonicalize_values_mark): Delete unused
6169 (canonicalize_values_star, set_variable_part): Likewise.
6170 (clobber_variable_part, delete_variable_part): Likewise.
6172 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
6174 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
6176 2011-03-28 Martin Jambor <mjambor@suse.cz>
6178 * tree-inline.c (expand_call_inline): Do not check that destination
6180 (optimize_inline_calls): Assert that destination node is analyzed.
6181 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
6182 not call tree_lowering_passes.
6183 * cgraph.h (cgraph_analyze_function): Declare.
6184 * cgraphunit.c (cgraph_analyze_function): Make public.
6186 2011-03-28 Joseph Myers <joseph@codesourcery.com>
6188 * config/sparc/sparc-opts.h: New.
6189 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
6190 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
6191 (sparc_option_override): Store processor_type enumeration rather
6192 than string in cpu_default. Remove name and enumeration from
6193 cpu_table. Directly default -mcpu then default -mtune from -mcpu
6194 without using sparc_select. Use target_flags_explicit instead of
6196 * config/sparc/sparc.h (enum processor_type): Move to
6198 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
6199 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
6200 HeaderInclude entry.
6201 (mcpu=, mtune=): Use Var and Enum.
6202 (sparc_processor_type): New Enum and EnumValue entries.
6204 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6205 Iain Sandoe <iains@gcc.gnu.org>
6208 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
6210 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
6212 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
6213 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
6214 Insert new statements at it in lieu of STMT.
6215 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
6216 * tree-vect-stmts.c (vectorizable_store): Likewise.
6217 (vectorizable_load): Likewise.
6219 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
6221 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
6226 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
6228 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
6229 unaligned 256bit load/store.
6230 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
6231 (*avx_movdqu<avxmodesuffix>): Likewise.
6233 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6236 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
6237 * config/pa/pa.md (iordi3): Use new predicate in expander.
6240 2011-03-27 Anatoly Sokolov <aesok@post.ru>
6242 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
6243 FUNCTION_VALUE_REGNO_P): Remove macros.
6244 * config/mips/mips-protos.h (mips_function_value): Remove.
6245 * config/mips/mips.c (mips_function_value): Rename to...
6246 (mips_function_value_1): ... this. Make static. Handle receiving
6247 the function type in 'fn_decl_or_type' argument.
6248 (mips_function_value, mips_libcall_value,
6249 mips_function_value_regno_p): New function.
6250 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6251 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6253 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
6255 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
6256 and -mavx256-split-unaligned-store.
6257 (ix86_option_override_internal): Split 32-byte AVX unaligned
6258 load/store by default.
6259 (ix86_avx256_split_vector_move_misalign): New.
6260 (ix86_expand_vector_move_misalign): Use it.
6262 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
6263 -mavx256-split-unaligned-store.
6265 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
6266 256bit load/store. Generate unaligned store on misaligned memory
6268 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
6270 (*avx_movdqu<avxmodesuffix>): Likewise.
6272 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
6273 -mavx256-split-unaligned-store.
6275 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
6278 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
6281 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
6283 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
6284 opno arguments with an expand_operand. Use create_input_operand.
6285 (mips_prepare_builtin_target): Delete.
6286 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
6288 (mips_expand_builtin_direct): Use create_output_operand and
6289 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
6290 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
6291 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
6293 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
6295 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
6297 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
6299 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
6301 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
6302 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
6303 basic blocks and call commit_edge_insertions directly.
6304 (fixup_abnormal_edges): Move from here to...
6305 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
6306 on the edges and return whether some have actually been inserted.
6307 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
6310 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
6312 PR rtl-optimization/48144
6313 * sel-sched-ir.c (merge_history_vect): Factor out from ...
6314 (merge_expr_data): ... here.
6315 (av_set_intersect): Rename to av_set_code_motion_filter.
6316 Update all callers. Call merge_history_vect when an expression
6317 is found in both sets.
6318 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
6320 2011-03-26 Alan Modra <amodra@gmail.com>
6322 * config/rs6000/predicates.md (word_offset_memref_op): Handle
6323 cmodel medium addresses.
6324 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
6325 64-bit gpr loads and stores.
6326 (rs6000_secondary_reload_ppc64): New function.
6327 * config/rs6000/rs6000-protos.h: Declare it.
6328 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
6330 2011-03-26 Alan Modra <amodra@gmail.com>
6333 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
6334 GNU Go in traceback table.
6336 2011-03-25 Richard Henderson <rth@redhat.com>
6338 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
6339 if there are exactly 6 operands.
6340 (set_storage_via_setmem): Similarly.
6342 2011-03-25 Kai Tietz <ktietz@redhat.com>
6344 * collect2.c (write_c_file_stat): Handle backslash
6345 as right-hand directory separator.
6346 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
6347 checking just for slash.
6348 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
6349 instead of checking for trailing slash.
6350 * gcc.c (record_temp_file): Use filename_cmp instead
6352 (do_spec_1): Likewise.
6353 (replace_outfile_spec_function): Likewise.
6354 (is_directory): Use filename_ncmp instead of strncmp.
6355 (print_multilib_info): Likewise.
6356 * gcov.c (find_source): Use filename_cmp instead
6358 (make_gcov_file_name): Fix order of slash/backslash
6360 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
6361 (add_standard_paths): Likewise.
6362 * mips-tfile.c (saber_stop): Handle backslash.
6363 * prefix.c (update_path): Use filename_ncmp instead of
6365 * profile.c (output_location): Use filename_cmp instead
6367 * read-md.c (handle_toplevel_file): Handle backslash.
6368 * tlink.c (frob_extension): Likewise.
6369 * tree-cfg.c (same_line_p): Use filename_cmp instead of
6371 * tree-dump.c (dequeue_and_dump): Handle backslash.
6372 * tree.c (get_file_function_name): Likewise.
6373 * gengtype.c (read_input_list): Likewise.
6374 (get_file_realbasename): Likewise.
6375 (get_output_file_with_visibility): Use filename_cmp
6378 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
6380 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
6383 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
6385 * fold-const.c (expr_location_or): New function.
6386 (fold_truth_not_expr): Call it.
6388 2011-03-25 Jeff Law <law@redhat.com>
6390 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
6392 * c-family/c-common.c (def_fn_type): Likewise.
6393 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
6394 * emit-rtl.c (gen_rtvec): Likewise.
6395 * lto/lto-lang.c (def_fn_type): Likewise.
6397 2011-03-25 Richard Guenther <rguenther@suse.de>
6399 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
6400 also generate copies.
6401 (fini_copy_prop): Handle constant values properly.
6403 2011-03-25 Jakub Jelinek <jakub@redhat.com>
6405 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
6406 mode size instead of bitsize with DWARF2_ADDR_SIZE.
6407 (hash_loc_operands, compare_loc_operands): Handle
6408 DW_OP_GNU_entry_value.
6410 2011-03-25 Kai Tietz <ktietz@redhat.com>
6412 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
6413 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
6414 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
6415 comment and use macro TARGET_64BIT_MS_ABI instead.
6416 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
6417 and change default behavior for 32-bit MS_ABI.
6418 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
6419 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
6421 (ix86_cfun_abi): Likewise.
6422 (ix86_maybe_switch_abi): Adjust comment.
6423 (init_cumulative_args): Check for bit-ness in MS_ABI case.
6424 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
6425 instead of checking for SYSV_ABI.
6426 (ix86_nsaved_sseregs): Likewise.
6427 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
6429 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
6430 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
6431 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
6432 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
6433 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
6435 2011-03-25 Richard Guenther <rguenther@suse.de>
6437 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
6438 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
6439 (verify_gimple): Remove.
6440 * tree-cfg.c (verify_gimple_call): Merge verification
6442 (verify_gimple_phi): Merge verification from verify_stmts.
6443 (verify_gimple_label): New function.
6444 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
6445 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
6446 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
6447 (verify_stmts): Rename to verify_gimple_in_cfg.
6448 (verify_gimple_in_cfg): New function.
6449 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
6450 * tree-ssa.c (verify_ssa): Likewise.
6451 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
6453 2011-03-25 Richard Guenther <rguenther@suse.de>
6455 * passes.c (init_optimization_passes): Add FRE pass after
6458 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
6459 Andrew Stubbs <ams@codesourcery.com>
6461 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
6463 (arm_movdi_vfp_cortexa8): New pattern.
6464 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
6465 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
6466 instructions when tuning for Cortex-A8. Set attribute "arch".
6467 * config/arm/arm.md: Move include arm-tune.md up a bit.
6468 (define_attr "arch"): Add "onlya8" and "nota8" values.
6469 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
6471 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
6475 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
6477 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
6478 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
6479 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
6480 * passes.c (init_optimization_passes): Move
6481 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
6483 2011-03-25 Kai Tietz <ktietz@redhat.com>
6485 * c-typeck.c (comptypes_internal): Replace target
6486 hook call of comp_type_attributes by version in tree.c file.
6487 * gimple.c (gimple_types_compatible_p_1): Likewise.
6488 * tree-ssa.c (useless_type_conversion_p): Likewise.
6489 * tree.c (build_type_attribute_qual_variant): Likewise.
6490 (attribute_value_equal): New static helper function.
6491 (comp_type_attributes): New function.
6492 (merge_attributes): Use attribute_value_equal for comparison.
6493 (attribute_list_contained): Likewise.
6494 * tree.h (comp_type_attributes): New prototype.
6496 2011-03-25 Richard Guenther <rguenther@suse.de>
6498 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
6499 of complex types at -O0.
6500 (verify_gimple_assign_binary): Likewise.
6501 (verify_gimple_assign_ternary): Likewise.
6503 2011-03-24 Mark Wielaard <mjw@redhat.com>
6505 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
6506 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6508 2011-03-24 Mark Wielaard <mjw@redhat.com>
6511 * dwarf2out.c (output_abbrev_section): Only write table when
6512 abbrev_die_table_in_use > 1.
6514 2011-02-24 Richard Henderson <rth@redhat.com>
6516 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
6517 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
6518 (alpha_expand_unaligned_load_words): Use extql.
6519 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
6520 (emit_insxl): Handle all modes for consistency.
6522 2011-02-24 Richard Henderson <rth@redhat.com>
6524 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
6525 (alpha_expand_unaligned_load): Likewise.
6526 (alpha_expand_unaligned_store): Likewise.
6527 (alpha_expand_unaligned_load_words): Likewise.
6528 (alpha_expand_unaligned_store_words): Likewise.
6529 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
6530 (alpha_split_lock_test_and_set_12): Likewise.
6531 (print_operand, alpha_fold_builtin_extxx): Likewise.
6532 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
6533 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
6534 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
6535 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
6536 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
6537 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
6538 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
6539 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
6540 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
6541 (extwl, extll, extql): Similarly.
6542 (inswh, inslh, insqh): Similarly.
6543 (mskbl, mskwl, mskll, mskql): Similarly.
6544 (mskwh, msklh, mskqh): Similarly.
6546 2011-02-24 Richard Henderson <rth@redhat.com>
6548 * config/alpha/alpha.md (attribute isa): Add er, ner.
6549 (attribute enabled): Handle them.
6550 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
6552 2011-02-24 Richard Henderson <rth@redhat.com>
6554 * config/alpha/alpha.md (attribute isa): Add vms.
6555 (attribute enabled): Handle it.
6556 (*movsf): Merge *movsf_{nofix,fix,nofp}.
6557 (*movdf): Merge *movdf_{nofix,fix,nofp}.
6558 (*movtf): Rename from *movtf_internal for consistency.
6559 (*movsi): Merge with *movsi_nt_vms.
6560 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
6561 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
6562 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
6563 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
6565 2011-02-24 Richard Henderson <rth@redhat.com>
6567 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
6568 (extendqisi2, extendhisi2): Likewise.
6569 (extendqidi2): Simplify BWX/non-BWX expansions.
6570 (extendhidi2): Similarly.
6572 2011-02-24 Richard Henderson <rth@redhat.com>
6574 * config/alpha/alpha.md (attribute isa): New.
6575 (attribute enabled): New.
6576 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
6577 (zero_extendqisi2, zero_extendqidi2): Similarly.
6578 (zero_extendhisi2, zero_extendhidi2): Similarly.
6579 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
6581 2011-02-24 Richard Henderson <rth@redhat.com>
6583 * config/alpha/predicates.md (input_operand): Revert last change;
6584 update comment to mention 32-bit VMS rather than Windows.
6586 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
6588 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
6589 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
6590 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
6591 * passes.c (init_optimization_passes): Move
6592 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
6594 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
6596 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
6598 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
6600 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
6603 2011-03-24 Jakub Jelinek <jakub@redhat.com>
6606 * simplify-rtx.c (simplify_const_unary_operation): Call
6607 real_convert when changing mode class with FLOAT_EXTEND.
6609 2011-03-24 Nick Clifton <nickc@redhat.com>
6611 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
6612 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
6613 * config/rx/rx.c (rx_option_override): Set align_jumps,
6614 align_loops and align_labels if not set by the user.
6615 (rx_align_for_label): New function.
6616 (rx_max_skip_for_label): New function.
6617 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
6618 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
6619 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
6620 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
6621 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
6623 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
6625 PR rtl-optimization/48263
6626 * optabs.c (expand_binop_directly): Reinstate convert_modes code
6627 and original commutative_p handling. Use maybe_gen_insn.
6629 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6631 * reload.c (find_reloads_subreg_address): Add address_reloaded
6632 parameter and return true there if the full address has been
6634 (find_reloads_toplev): Pass address_reloaded flag.
6635 (find_reloads_address_1): Don't use address_reloaded parameter.
6637 2011-03-24 Jeff Law <law@redhat.com>
6639 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
6640 unused variable "ann".
6641 (remove_unused_locals): Likewise.
6643 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
6646 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
6649 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6651 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
6652 for invalid symbolic addresses.
6653 (s390_secondary_reload): Don't use s390_check_symref_alignment for
6656 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
6658 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
6659 the argument in calls to fold_truth_not_expr.
6661 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
6663 * tree.c (record_node_allocation_statistics): New function.
6664 (make_node_stat, copy_node_stat, build_string): Call it.
6665 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
6666 (build1_stat, build_omp_clause): Likewise.
6668 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
6670 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
6673 2011-03-24 Richard Guenther <rguenther@suse.de>
6675 PR tree-optimization/48271
6676 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
6677 blocks that still exist.
6679 2011-03-24 Richard Guenther <rguenther@suse.de>
6681 PR tree-optimization/48270
6682 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
6683 not free datarefs before ddrs.
6685 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
6687 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
6688 from the address built for a reference with variable offset.
6690 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
6693 * config/i386/i386.md (*movdf_internal_rex64): Do not split
6694 alternatives that can be handled with movq or movabsq insn.
6695 (*movdf_internal): Disable for !TARGET_64BIT.
6696 (*movdf_internal_nointeger): Ditto.
6697 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
6699 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
6701 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
6702 (FUNCTION_ARG_ADVANCE): Likewise.
6703 * tm.texi.in: Change references to them to hook references.
6704 * tm.texi: Regenerate.
6705 * targhooks.c (default_function_arg): Eliminate check for target macro.
6706 (default_function_incoming_arg): Likewise.
6707 (default_function_arg_advance): Likewise.
6708 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
6709 (function_arg_advance): Likewise.
6710 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
6712 2011-03-24 Richard Guenther <rguenther@suse.de>
6715 * tree-object-size.c (addr_object_size): Do not double-account
6716 for MEM_REF offsets.
6718 2011-03-24 Diego Novillo <dnovillo@google.com>
6720 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
6721 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
6722 (lto_input_data_block): Move from lto-opts.c. Make extern.
6724 (lto_input_string): Rename from input_string. Make extern.
6726 * lto-streamer-out.c (lto_output_string_with_length): Rename from
6727 output_string_with_length.
6728 Output 0 to indicate a non-NULL string. Update all callers to
6730 (lto_output_string): Rename from output_string. Make extern.
6732 (lto_output_decl_state_streams): Make extern.
6733 (lto_output_decl_state_refs): Make extern.
6734 * lto-streamer.h (lto_input_string): Declare.
6735 (lto_input_data_block): Declare.
6736 (lto_output_string): Declare.
6737 (lto_output_string_with_length): Declare.
6738 (lto_output_decl_state_streams): Declare.
6739 (lto_output_decl_state_refs): Declare.
6741 2011-03-24 Richard Guenther <rguenther@suse.de>
6743 PR tree-optimization/46562
6744 * tree.c (build_invariant_address): New function.
6745 * tree.h (build_invariant_address): Declare.
6746 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
6747 a renamed function moved ...
6748 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
6749 Take valueization callback parameter.
6750 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
6751 * gimple-fold.h: New file.
6752 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
6753 (ccp_fold, fold_const_aggregate_ref,
6754 fold_ctor_reference, fold_nonarray_ctor_reference,
6755 fold_array_ctor_reference, fold_string_cst_ctor_reference,
6756 get_base_constructor): Move ...
6757 * gimple-fold.c: ... here.
6758 (gimple_fold_stmt_to_constant_1): New function
6759 split out from ccp_fold. Take a valueization callback parameter.
6760 Valueize all operands.
6761 (gimple_fold_stmt_to_constant): New wrapper function.
6762 (fold_const_aggregate_ref_1): New function split out from
6763 fold_const_aggregate_ref. Take a valueization callback parameter.
6764 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
6765 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
6766 invariant POINTER_PLUS_EXPRs to invariant form.
6767 (vn_valueize): New function.
6768 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
6769 * tree-vrp.c (vrp_valueize): New function.
6770 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
6771 to fold statements to constants.
6772 * tree-ssa-pre.c (eliminate): Properly guard propagation of
6773 function declarations.
6774 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
6775 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
6777 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
6779 * config/h8300/predicates.md (jump_address_operand): Fix register
6782 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
6784 * doc/invoke.texi (max-stores-to-sink): Document.
6785 * params.h (MAX_STORES_TO_SINK): Define.
6786 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
6787 if either vectorization or if-conversion is disabled.
6788 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
6789 tree-vect-data-refs.c vect_equal_offsets.
6790 (dr_equal_offsets_p): New function.
6791 (find_data_references_in_bb): Remove static.
6792 * tree-data-ref.h (find_data_references_in_bb): Declare.
6793 (dr_equal_offsets_p): Likewise.
6794 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
6795 (vect_drs_dependent_in_basic_block): Update calls to
6797 (vect_check_interleaving): Likewise.
6798 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
6799 (cond_if_else_store_replacement): Rename to...
6800 (cond_if_else_store_replacement_1): ... this. Change arguments and
6802 (cond_if_else_store_replacement): New function.
6803 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
6804 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
6806 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
6809 * config/arm/arm.md (casesi): Use the gen_int_mode() function
6810 to subtract lower bound instead of GEN_INT().
6812 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
6817 * doc/extend.texi (Alignment): Move section to match order in TOC.
6818 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
6819 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
6821 2011-03-23 Jeff Law <law@redhat.com>
6823 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
6824 before removing the edge.
6826 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
6827 it may have been freed by redirect_branch_edge or
6828 redirect_edge_succ_nodup.
6830 2011-03-23 Richard Guenther <rguenther@suse.de>
6832 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
6833 (check_va_list_escapes): Likewise.
6834 (check_all_va_list_escapes): Likewise.
6836 2011-03-23 Richard Guenther <rguenther@suse.de>
6838 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
6839 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
6840 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
6841 (alias.o): Likewise.
6842 (ipa-type-escape.o): Remove.
6843 (ipa-struct-reorg.o): Likewise.
6844 (GTFILES): Remove ipa-struct-reorg.c.
6845 * alias.c: Do not include ipa-type-escape.h.
6846 * tree-ssa-alias.c: Likewise.
6847 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
6848 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
6849 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
6850 and ipa-type-escape passes.
6851 * tree-pass.h (pass_ipa_type_escape): Remove.
6852 (pass_ipa_struct_reorg): Likewise.
6853 * ipa-struct-reorg.h: Remove.
6854 * ipa-struct-reorg.c: Likewise.
6855 * ipa-type-escape.h: Likewise.
6856 * ipa-type-escape.c: Likewise.
6857 * doc/invoke.texi (-fipa-struct-reorg): Remove.
6858 (--param struct-reorg-cold-struct-ratio): Likewise.
6859 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
6860 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
6861 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
6863 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6865 * config/s390/2084.md: Enable all insn reservations also for z9_ec
6866 cpu attribute value.
6867 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
6868 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
6869 * config/s390/s390.c (processor_flags_table): New constant array.
6870 (s390_handle_arch_option): Remove.
6871 (s390_handle_option): Remove s390_handle_arch_option invocations
6872 and OPT_mwarn_framesize_ handling.
6873 (s390_option_override): Remove s390_handle_arch_option invocation.
6874 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
6876 * config/s390/s390.md (cpu attribute): Add z9_ec value.
6877 * config/s390/s390.opt (s390_tune, s390_arch)
6878 (march=): Replace s390_arch_option enum and values with
6879 processor_type. Set variable name to s390_arch. Set
6880 initialization value.
6881 (mtune=): Replace s390_arch_option with processor_type. Set
6882 variable name to s390_tune. Set initialization value.
6884 2011-03-23 Julian Brown <julian@codesourcery.com>
6886 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
6887 accesses which are not naturally aligned.
6889 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
6892 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
6894 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
6896 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
6897 parameter from "int" to "enum insn_code".
6898 (expand_operand_type): New enum.
6899 (expand_operand): New structure.
6900 (create_expand_operand): New function.
6901 (create_fixed_operand, create_output_operand): Likewise
6902 (create_input_operand, create_convert_operand_to): Likewise.
6903 (create_convert_operand_from, create_address_operand): Likewise.
6904 (create_integer_operand): Likewise.
6905 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
6906 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
6907 (expand_insn, expand_jump_insn): Likewise.
6908 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
6909 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
6910 (expand_movstr, expand_builtin___clear_cache): Likewise.
6911 (expand_builtin_lock_release): Likewise.
6912 * explow.c (allocate_dynamic_stack_space): Likewise.
6913 (probe_stack_range): Likewise. Allow check_stack to FAIL,
6914 and use the default handling in that case.
6915 * expmed.c (check_predicate_volatile_ok): Delete.
6916 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
6917 (emit_cstore): Likewise.
6918 * expr.c (emit_block_move_via_movmem): Likewise.
6919 (set_storage_via_setmem, expand_assignment): Likewise.
6920 (emit_storent_insn, try_casesi): Likewise.
6921 (emit_single_push_insn): Likewise. Allow the expansion to fail.
6922 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
6923 (expand_vec_shift_expr, expand_binop_directly): Likewise.
6924 (expand_twoval_unop, expand_twoval_binop): Likewise.
6925 (expand_unop_direct, emit_indirect_jump): Likewise.
6926 (emit_conditional_move, vector_compare_rtx): Likewise.
6927 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
6928 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
6929 (expand_sync_lock_test_and_set): Likewise.
6930 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
6931 (emit_unop_insn): Likewise.
6932 (expand_copysign_absneg): Change icode to an insn_code.
6933 (create_convert_operand_from_type): New function.
6934 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
6935 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
6936 (expand_insn, expand_jump_insn): Likewise.
6937 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
6938 than const_int_operand for operand 2.
6940 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6942 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
6945 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
6947 * emit-rtl.c (emit_pattern_before_noloc): New function.
6948 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
6949 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
6950 (emit_pattern_after_noloc): New function.
6951 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
6952 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
6954 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
6956 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
6957 (__ffsDI2): Likewise.
6959 2011-03-22 Richard Henderson <rth@redhat.com>
6961 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
6962 of !TARGET_ABI_OPEN_VMS.
6963 (alpha_trampoline_init, alpha_start_function): Likewise.
6964 (alpha_expand_epilogue, alpha_file_start): Likewise.
6965 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
6966 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
6967 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
6968 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
6969 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
6971 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6973 * config/s390/s390-opts.h: New.
6974 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
6975 s390_arch_flags, s390_warn_framesize, s390_stack_size,
6976 s390_stack_guard): Remove.
6977 (s390_handle_arch_option): Return void. Take enum
6978 s390_arch_option value instead of string and searching array.
6979 (s390_handle_option): Don't assert that global structures are in
6980 use. Access variables via opts pointer. Use error_at. Don't use
6981 sscanf for -mstack-guard= or -mstack-size=. Update call to
6982 s390_handle_arch_option.
6983 (s390_option_override): Update call to s390_handle_arch_option.
6984 (s390_emit_prologue): Use %d format for s390_stack_size in
6985 diagnostic. Use %wd for HOST_WIDE_INT.
6986 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
6987 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
6988 * config/s390/s390.opt (config/s390/s390-opts.h): New
6989 HeaderInclude entry.
6990 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
6991 s390_arch_flags, s390_warn_framesize): New Variable entries.
6992 (s390_arch_option): New Enum and EnumValue entries.
6993 (march=): Use Enum instead of Var.
6994 (mstack-guard=, mstack-size=): Use UInteger and Var.
6997 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6999 * config/score/score.c (score_handle_option): Don't assert that
7000 global structures are in use. Access target_flags via opts
7001 pointer. Use value of -march= option to determine target_flags
7003 * config/score/score.opt (march=): Use Enum.
7004 (score_arch): New Enum and EnumValue entries.
7006 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7008 * config/mep/mep.c (option_mtiny_specified): Remove.
7009 (mep_option_override): Move register handling for -mivc2 from
7010 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
7011 instead of option_mtiny_specified.
7012 (mep_handle_option): Access target_flags via opts pointer. Don't
7013 assert that global structures are in use. Defer part of -mivc2
7014 handling and move it to mep_option_override.
7015 * config/mep/mep.opt (IVC2): New Mask entry.
7016 (mivc2): Use Var and Defer instead of Mask.
7018 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7020 * config/v850/v850-opts.h: New.
7021 * config/v850/v850.c (small_memory): Replace with
7022 small_memory_physical_max array. Make that array static const.
7023 (v850_handle_memory_option): Take integer value of argument. Take
7024 gcc_options pointer, option text and location. Return void.
7025 Update for changes to small memory structures.
7026 (v850_handle_option): Access target_flags via opts pointer. Don't
7027 assert that global structures are in use. Update calls to
7028 v850_handle_memory_option.
7029 (v850_encode_data_area): Update references to small memory settings.
7030 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
7031 (enum small_memory_type): Move to v850-opts.h.
7032 * config/v850/v850.opt (config/v850/v850-opts.h): New
7033 HeaderInclude entry.
7034 (small_memory_max): New Variable entry.
7035 (msda): Replace by pair of options msda= and msda-. Use UInteger.
7036 (mtda, mzda): Likewise.
7038 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7040 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
7041 pointer. Don't assert that global structures are in use.
7043 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7045 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
7046 via opts pointer. Don't assert that global structures are in use.
7048 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7050 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
7051 (munix=93): Use Var.
7052 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
7053 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
7054 * config/pa/pa-opts.h: New.
7055 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
7056 (pa_handle_option): Don't assert that global structures are in
7057 use. Access target_flags via opts pointer. Don't handle
7058 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
7060 (pa_option_override): Handle deferred OPT_mfixed_range_.
7062 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7064 * config/mn10300/mn10300-opts.h: New.
7065 * config/mn10300/mn10300.c (mn10300_processor,
7066 mn10300_tune_string): Remove.
7067 (mn10300_handle_option): Don't assert that global structures are
7068 in use. Access mn10300_processor via opts pointer. Don't handle
7070 * config/mn10300/mn10300.h (enum processor_type): Move to
7072 (mn10300_processor): Remove.
7073 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
7074 HeaderInclude entry.
7075 (mn10300_processor): New Variable entry.
7078 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7080 * config/microblaze/microblaze.c: Don't include opts.h.
7081 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
7082 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
7083 (mno-clearbss): Use Var and Warn.
7085 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7087 * config/m32r/m32r-opts.h: New.
7088 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
7089 (m32r_handle_option): Don't assert that global structures are in
7090 use. Access target_flags and m32r_cache_flush_func via opts
7091 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
7092 OPT_mno_flush_trap here.
7093 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
7094 include of m32r-opts.h.
7095 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
7096 HeaderInclude entry.
7097 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
7098 (mmodel=): Use Enum and Var.
7099 (m32r_model): New Enum and EnumValue entries.
7100 (mno-flush-trap): Use Var.
7101 (msdata=): Use Enum and Var.
7102 (m32r_sdata): New Enum and EnumValue entries.
7104 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7106 * config/m32c/m32c.c: Don't include opts.h.
7107 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
7108 m32c_handle_option): Remove.
7109 (m32c_option_override): Check global_options_set.x_target_memregs
7110 instead of target_memregs_set.
7111 * config/m32c/m32c.h (target_memregs): Remove.
7112 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
7115 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7117 * config/iq2000/iq2000-opts.h: New.
7118 * config/iq2000/iq2000.c: Don't include opts.h.
7119 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
7120 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
7121 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
7122 HeaderInclude entry.
7123 (iq2000_tune): New Variable entry.
7124 (march=): Add comment. Use Enum.
7125 (iq2000_arch): New Enum and EnumValue entries.
7126 (mcpu=): Use Enum and Var.
7127 (iq2000_tune): New Enum and EnumValue entries.
7129 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7131 * config/ia64/ia64-opts.h: New.
7132 * config/ia64/ia64.c (ia64_tune): Remove.
7133 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
7135 (ia64_option_override): Handle deferred OPT_mfixed_range_.
7136 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
7137 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
7138 HeaderInclude entry.
7139 (ia64_tune): New Variable entry.
7140 (mfixed-range=): Use Defer and Var.
7141 (mtune=): Use Enum and Var.
7142 (ia64_tune): New Enum and EnumValue entries.
7144 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7146 * config/frv/frv-opts.h: New.
7147 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
7149 (frv_cpu_type): Remove.
7150 * config/frv/frv.c: Don't include opts.h.
7151 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
7152 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
7153 (frv_cpu_type): New Variable entry.
7154 (frv_cpu): New Enum and EnumValue entries.
7156 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7158 * config/cris/cris.c (cris_handle_option): Access target_flags via
7159 opts pointer. Don't assert that global structures are in use.
7160 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
7161 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
7163 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7165 * config/bfin/bfin-opts.h: New.
7166 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
7167 bfin_si_revision, bfin_workarounds): Remove.
7168 (bfin_cpus): Make static const.
7169 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
7170 not bfin_lib_id_given.
7171 (bfin_handle_option): Don't set bfin_lib_id_given. Access
7172 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
7173 pointer. Use error_at. Don't assert that global structures are in use.
7174 * config/bfin/bfin.h: Include bfin-opts.h.
7175 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
7176 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
7177 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
7178 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
7181 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7183 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
7184 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
7185 or -msoft-float here.
7186 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
7187 -msoft-float and -mhard-float.
7188 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
7189 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7191 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
7193 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
7194 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
7196 (LIBGCC_SPEC): Don't handle -msoft-float.
7197 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
7199 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7201 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
7202 -mfloat-abi=*, not -msoft-float and -mhard-float.
7203 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
7205 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
7206 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
7207 mhard-float and msoft-float.
7208 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
7209 mfloat-abi=soft in comments, not mhard-float and msoft-float.
7210 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7211 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
7213 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
7214 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
7216 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
7218 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
7221 2011-03-22 Richard Henderson <rth@redhat.com>
7223 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
7224 TARGET_ABI_WINDOWS_NT.
7225 (alpha_output_function_end_prologue): Likewise.
7226 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
7227 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
7228 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
7229 (trap, *movsi_nt_vms): Likewise.
7230 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
7231 (*tablejump_osf_nt_internal): Remove.
7232 * config/alpha/predicates.md (input_operand): Only test Pmode.
7234 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7236 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
7237 via opts pointer. Use error_at. Don't assert that global
7238 structures are in use.
7240 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7242 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
7243 (ix86_handle_option): Access ix86_isa_flags and
7244 ix86_isa_flags_explicit via opts pointer. Don't assert that
7245 global structures are in use.
7246 (ix86_function_specific_save, ix86_function_specific_restore):
7247 Update ix86_isa_flags_explicit field name.
7248 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
7249 (ix86_isa_flags_explicit): Rename TargetSave entry to
7250 x_ix86_isa_flags_explicit.
7252 2011-03-22 Richard Henderson <rth@redhat.com>
7254 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
7255 (alpha_option_override, direct_return): Likewise.
7256 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
7257 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
7258 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
7259 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7260 (alpha_expand_epilogue, alpha_end_function): Likewise.
7261 (alpha_init_libfuncs): Likewise.
7262 (struct machine_function): Remove unicosmk members.
7263 (print_operand) ['t']: Remove.
7264 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
7265 unicosmk_output_module_name, unicosmk_output_common,
7266 current_section_align, unicosmk_output_text_section_asm_op,
7267 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
7268 unicosmk_section_type_flags, unicosmk_unique_section,
7269 unicosmk_asm_named_section, unicosmk_insert_attributes,
7270 unicosmk_output_align, unicosmk_defer_case_vector,
7271 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
7272 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
7273 unicosmk_output_ssib, unicosmk_add_call_info_word,
7274 unicosmk_extern_head, unicosmk_output_default_externs,
7275 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
7276 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
7277 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
7278 * config/alpha/alpha-protos.h: Update.
7279 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
7280 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
7281 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
7282 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
7283 (*mulsi_se, mulvsi3): Likewise.
7284 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
7285 (*divmodsi_internal, call, call_value, realign): Likewise.
7286 (moddi3, umoddi3): Likewise; remove duplicate expander.
7287 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
7288 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
7289 (*movdi_nofix): Remove r/U alternative.
7290 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
7291 * config/alpha/constraints.md ("U"): Remove.
7292 * config/alpha/predicates.md (call_operand"): Don't test
7293 TARGET_ABI_UNICOSMK.
7295 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7297 * target.def (handle_option): Take gcc_options and
7298 cl_decoded_option pointers and location_t.
7299 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
7300 * doc/tm.texi: Regenerate.
7301 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
7302 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
7303 * lto-opts.c (lto_reissue_options): Generate option structure for
7304 targetm.handle_option call.
7305 * opts.c (target_handle_option): Update call to
7306 targetm.handle_option. Remove assertions about values now passed
7308 * targhooks.c (default_target_handle_option): New.
7309 * targhooks.h (default_target_handle_option): Declare.
7310 * config/alpha/alpha.c: Include opts.h.
7311 (alpha_handle_option): Update to new hook interface.
7312 * config/arm/arm.c: Include opts.h.
7313 (arm_handle_option): Update to new hook interface.
7314 * config/arm/t-arm (arm.o): Update dependencies.
7315 * config/bfin/bfin.c: Include opts.h.
7316 (bfin_handle_option): Update to new hook interface.
7317 * config/cris/cris.c: Include opts.h.
7318 (cris_handle_option): Update to new hook interface.
7319 * config/frv/frv.c: Include opts.h.
7320 (frv_handle_option): Update to new hook interface.
7321 * config/i386/i386.c: Include opts.h.
7322 (ix86_handle_option): Update to new hook interface.
7323 (ix86_valid_target_attribute_inner_p): Generate option structure
7324 for call to ix86_handle_option.
7325 * config/i386/t-i386 (i386.o): Update dependencies.
7326 * config/ia64/ia64.c: Include opts.h.
7327 (ia64_handle_option): Update to new hook interface.
7328 * config/ia64/t-ia64 (ia64.o): Update dependencies.
7329 * config/iq2000/iq2000.c: Include opts.h.
7330 (iq2000_handle_option): Update to new hook interface.
7331 * config/m32c/m32c.c: Include opts.h.
7332 (m32c_handle_option): Update to new hook interface.
7333 * config/m32r/m32r.c: Include opts.h.
7334 (m32r_handle_option): Update to new hook interface.
7335 * config/m68k/m68k.c: Include opts.h.
7336 (m68k_handle_option): Update to new hook interface.
7337 * config/mep/mep.c: Include opts.h.
7338 (mep_handle_option): Update to new hook interface.
7339 * config/microblaze/microblaze.c: Include opts.h.
7340 (microblaze_handle_option): Update to new hook interface.
7341 * config/mips/mips.c: Include opts.h.
7342 (mips_handle_option): Update to new hook interface.
7343 * config/mn10300/mn10300.c: Include opts.h.
7344 (mn10300_handle_option): Update to new hook interface.
7345 * config/pa/pa.c: Include opts.h.
7346 (pa_handle_option): Update to new hook interface.
7347 * config/pdp11/pdp11.c: Include opts.h.
7348 (pdp11_handle_option): Update to new hook interface.
7349 * config/rs6000/rs6000.c: Include opts.h.
7350 (rs6000_handle_option): Update to new hook interface.
7351 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
7352 * config/rx/rx.c: Include opts.h.
7353 (rx_handle_option): Update to new hook interface.
7354 * config/s390/s390.c: Include opts.h.
7355 (s390_handle_option): Update to new hook interface.
7356 * config/score/score.c: Include opts.h.
7357 (score_handle_option): Update to new hook interface.
7358 * config/sh/sh.c: Include opts.h.
7359 (sh_handle_option): Update to new hook interface.
7360 * config/sparc/sparc.c: Include opts.h.
7361 (sparc_handle_option): Update to new hook interface.
7362 * config/v850/v850.c: Include opts.h.
7363 (v850_handle_option): Update to new hook interface.
7365 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7367 * gcc.c (driver_unknown_option_callback): Only permit and save
7368 unknown -Wno- options.
7369 (driver_wrong_lang_callback): Save options directly instead of via
7370 driver_unknown_option_callback.
7372 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
7374 * combine.c (simplify_set): Try harder to find the best CC mode when
7375 simplifying a nested COMPARE on the RHS.
7377 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7379 * config/alpha/gnu.h: Remove.
7380 * config/arc: Remove directory.
7381 * config/arm/netbsd.h: Remove.
7382 * config/arm/t-pe: Remove.
7383 * config/crx: Remove directory.
7384 * config/i386/netbsd.h: Remove.
7385 * config/m68hc11: Remove directory.
7386 * config/m68k/uclinux-oldabi.h: Remove.
7387 * config/mcore/mcore-pe.h: Remove.
7388 * config/mcore/t-mcore-pe: Remove.
7389 * config/netbsd-aout.h: Remove.
7390 * config/rs6000/gnu.h: Remove.
7391 * config/sh/sh-symbian.h: Remove.
7392 * config/sh/symbian-base.c: Remove.
7393 * config/sh/symbian-c.c: Remove.
7394 * config/sh/symbian-cxx.c: Remove.
7395 * config/sh/symbian-post.h: Remove.
7396 * config/sh/symbian-pre.h: Remove.
7397 * config/sh/t-symbian: Remove.
7398 * config/svr3.h: Remove.
7399 * config/vax/netbsd.h: Remove.
7400 * config.build: Don't handle i[34567]86-*-pe.
7401 * config.gcc: Remove handling of deprecations for most deprecated
7403 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
7404 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
7405 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
7406 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
7407 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
7408 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
7410 * config.host: Don't handle i[34567]86-*-pe.
7411 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
7412 (ASM_SPEC32): Don't handle -mcall-gnu.
7413 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
7415 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
7416 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
7417 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
7418 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
7419 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
7420 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
7421 conditional on SYMBIAN.
7422 * configure.ac: Don't handle powerpc*-*-gnu*.
7423 * configure: Regenerate.
7424 * doc/extend.texi (interrupt attribute): Don't mention CRX.
7425 * doc/install-old.texi (m6811, m6812): Don't mention.
7426 * doc/install.texi (arc-*-elf*): Don't document multilib option.
7427 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
7428 (m68k-uclinuxoldabi): Don't mention.
7429 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
7431 (-mcall-gnu): Remove.
7432 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
7433 families): Remove constraint documentation.
7435 2011-03-22 Marius Strobl <marius@FreeBSD.org>
7437 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
7438 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
7439 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
7441 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
7444 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
7445 vector when peeking at the next token for vector, don't expand the
7448 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
7450 * config/avr/avr-protos.h (expand_epilogue): Change prototype
7451 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
7452 * config/avr/avr.c (init_cumulative_args)
7453 (avr_function_arg_advance): Use it.
7454 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
7456 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
7457 (avr_function_ok_for_sibcall): ...this new function.
7458 (avr_lookup_function_attribute1): New static Function.
7459 (avr_naked_function_p, interrupt_function_p)
7460 (signal_function_p, avr_OS_task_function_p)
7461 (avr_OS_main_function_p): Use it.
7462 * config/avr/avr.md ("sibcall", "sibcall_value")
7463 ("sibcall_epilogue"): New expander.
7464 ("*call_insn", "*call_value_insn"): New insn.
7465 ("call_insn", "call_value_insn"): Remove
7466 ("call", "call_value", "epilogue"): Change expander to handle
7469 2011-03-21 Nick Clifton <nickc@redhat.com>
7471 * doc/invoke.texi (Overall Options): Move closing brace to end of
7473 (Optimization Options): Add missing @gol.
7474 (Directory Options): Likewise.
7475 (i386 and x86-64 Options): Likewise.
7476 (RS6000 and PowerPC Options): Likewise.
7477 (i386 and x86-64 Windows Options): Likewise.
7478 (V850 Options): Add text missing from descriptions.
7480 2011-03-22 Richard Henderson <rth@redhat.com>
7482 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
7483 (avr_incoming_return_addr_rtx): New.
7484 (emit_push_byte): New.
7485 (expand_prologue): Use it. Remove incorrect dwarf annotation for
7486 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
7487 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
7488 (emit_pop_byte): New.
7489 (expand_epilogue): Use it. Pop frame pointer by bytes.
7490 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
7491 (INCOMING_RETURN_ADDR_RTX): New.
7492 (INCOMING_FRAME_SP_OFFSET): New.
7493 (ARG_POINTER_CFA_OFFSET): New.
7494 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
7495 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
7498 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
7500 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7502 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7503 (FUNCTION_ARG_ADVANCE): Likewise.
7504 * tm.texi.in: Change references to them to hook references.
7505 * tm.texi: Regenerate.
7506 * targhooks.c (default_function_arg): Eliminate check for target
7508 (default_function_incoming_arg): Likewise.
7509 (default_function_arg_advance): Likewise.
7510 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7511 (function_arg_advance): Likewise.
7512 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7514 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7516 * tree.c (build_call_1): New function.
7517 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
7519 2011-03-22 Richard Guenther <rguenther@suse.de>
7521 PR tree-optimization/48228
7522 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
7523 for single-arg PHIs.
7525 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
7527 PR rtl-optimization/48143
7528 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
7529 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
7530 sse2_cvtps2pd): Likewise.
7532 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7534 * recog.c (canonicalize_change_group): Use validate_unshare_change.
7536 2011-03-22 Richard Guenther <rguenther@suse.de>
7538 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
7539 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
7540 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
7541 and REALIGN_LOAD_EXPR.
7542 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
7543 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
7544 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
7545 DOT_PROD_EXPR case ...
7546 (expand_expr_real_2): ... here.
7547 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
7548 and REALIGN_LOAD_EXPR.
7549 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
7550 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
7551 (vect_create_epilog_for_reduction): Likewise.
7552 (vectorizable_reduction): Likewise.
7553 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
7554 * tree-vect-stmts.c (vectorizable_load): Likewise.
7556 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
7558 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
7560 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7562 * config/s390/s390.c (s390_delegitimize_address): Fix offset
7563 handling for PLTOFF/GOTOFF.
7565 2011-03-22 Nick Clifton <nickc@redhat.com>
7567 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
7568 trailing backslash from the end of the macro definition.
7570 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7572 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
7575 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
7577 * expr.h (prepare_operand): Move to...
7578 * optabs.h (prepare_operand): ...here and change the insn code
7579 parameter from "int" to "enum insn_code".
7580 (insn_operand_matches): Declare.
7581 * expr.c (init_expr_target): Use insn_operand_matches.
7582 (compress_float_constant): Likewise.
7583 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
7584 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
7585 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
7586 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
7588 (gen_cond_trap): Likewise.
7589 (prepare_operand): Likewise. Change icode to an insn_code.
7590 (insn_operand_matches): New function.
7591 * reload.c (find_reloads_address_1): Use insn_operand_matches.
7592 * reload1.c (gen_reload): Likewise.
7593 * targhooks.c (default_secondary_reload): Likewise.
7595 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
7597 * config/alpha/alpha.md (unspec): New define_c_enum.
7600 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
7603 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
7604 between a call and its CALL_ARG_LOCATION note.
7606 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
7608 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
7610 2011-03-21 Jakub Jelinek <jakub@redhat.com>
7614 * c-common.c (shorten_compare): If primopN is first sign-extended
7615 to opN and then zero-extended to result type, set primopN to opN.
7617 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
7619 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
7620 for barrier handlers.
7622 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
7624 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
7625 UNSPEC constants to be in the unspec enumeration, and redefine
7626 all UNSPECV constants to be in the unspecv enumeration, so that
7627 dumps print which unspec/unspec_volatile this is.
7628 * config/rs6000/vector.md (UNSPEC_*): Ditto.
7629 * config/rs6000/paired.md (UNSPEC_*): Ditto.
7630 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
7631 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
7632 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
7634 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
7635 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
7636 UNSPECV_LWSYNC, since these are used as unspec_volatile.
7637 * config/rs6000/sync.md (isync, lwsync): Ditto.
7639 2011-03-21 Richard Guenther <rguenther@suse.de>
7641 * params.def (lto-min-partition): Fix typo.
7643 2011-03-21 Richard Guenther <rguenther@suse.de>
7646 * c-decl.c (grokdeclarator): Drop to the main variant only
7647 for array types. Drop flag_gen_aux_info check.
7649 2011-03-21 Richard Guenther <rguenther@suse.de>
7651 PR translation/47911
7652 * params.def (lto-partitions): Fix typo.
7653 (lto-min-partition): Fix wording.
7655 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
7657 * config/rs6000/t-freebsd: Remove duplication from file.
7659 2011-03-21 Richard Guenther <rguenther@suse.de>
7662 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
7664 2011-03-21 Richard Guenther <rguenther@suse.de>
7667 * params.def (lto-partitions): Require at least 1 partition.
7669 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7671 * gthr-solaris.h: Remove.
7672 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
7673 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
7674 (LIB_SPEC): Likewise.
7675 * config/sol2.opt (threads): Remove.
7676 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
7677 (sparc*-*-solaris2*): Likewise.
7678 * configure.ac (enable_threads): Enable solaris support.
7679 * configure: Regenerate.
7680 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
7681 * doc/install.texi (Configuration, --enable-threads=lib): Remove
7684 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7686 * config.gcc: Obsolete *-*-solaris2.8*.
7687 * doc/install.texi (Specific, *-*-solaris2*): Document it.
7689 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7692 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
7693 reference. Solaris 8 perl works.
7695 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7698 * doc/install.texi (Prerequisites): Move jar etc. up.
7699 Explain support library version requirements.
7701 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7704 * doc/install.texi (Prerequisites): Move Perl to build
7705 requirements. Always necessary on Solaris 2 with Sun ld.
7707 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7709 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
7711 (Specific, i?86-*-solaris2.[89]): Likewise.
7712 (Specific, i?86-*-solaris2.10): Likewise.
7713 (Specific, mips-sgi-irix6): Likewise.
7714 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
7715 Update for binutils 2.21.
7717 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7719 * configure.ac (gcc_cv_lto_plugin): Fix typo.
7720 Allow -fuse-linker-plugin for non-default plugin linker.
7721 * configure: Regenerate.
7723 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
7726 * gengtype.c (files_rules): Added rule for cp/parser.h.
7728 2011-03-21 Jakub Jelinek <jakub@redhat.com>
7731 * config/s390/s390.c (s390_delegitimize_address): Don't call
7732 lowpart_subreg if orig_x has BLKmode.
7734 2011-03-21 Kai Tietz <ktietz@redhat.com>
7737 * doc/plugins.texi: Adjust documentation for plugin register_callback.
7738 * tree.h (attribute_spec): Add new member affects_type_identity.
7739 * attribs.c (empty_attribute_table): Adjust attribute_spec
7741 * config/alpha/alpha.c: Likewise.
7742 * config/arc/arc.c: Likewise.
7743 * config/arm/arm.c: Likewise.
7744 * config/avr/avr.c: Likewise.
7745 * config/bfin/bfin.c: Likewise.
7746 * config/crx/crx.c: Likewise.
7747 * config/darwin.h: Likewise.
7748 * config/h8300/h8300.c: Likewise.
7749 * config/i386/cygming.h: Likewise.
7750 * config/i386/i386.c: Likewise.
7751 * config/ia64/ia64.c: Likewise.
7752 * config/m32c/m32c.c: Likewise.
7753 * config/m32r/m32r.c: Likewise.
7754 * config/m68hc11/m68hc11.c: Likewise.
7755 * config/m68k/m68k.c: Likewise.
7756 * config/mcore/mcore.c: Likewise.
7757 * config/mep/mep.c: Likewise.
7758 * config/microblaze/microblaze.c: Likewise.
7759 * config/mips/mips.c: Likewise.
7760 * config/rs6000/rs6000.c: Likewise.
7761 * config/rx/rx.c: Likewise.
7762 * config/sh/sh.c: Likewise.
7763 * config/sol2.h: Likewise.
7764 * config/sparc/sparc.c: Likewise.
7765 * config/spu/spu.c: Likewise.
7766 * config/stormy16/stormy16.c: Likewise.
7767 * config/v850/v850.c: Likewise.
7769 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
7771 * simplify-rtx.c (simplify_binary_operation_1): Handle
7772 (xor (and A B) C) case when B and C are both constants.
7774 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
7776 * tree-dfa.c (add_referenced_var): Fix typo in comment.
7778 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
7781 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
7783 2011-03-20 Jakub Jelinek <jakub@redhat.com>
7785 PR rtl-optimization/48156
7786 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
7787 assume df and df_lr are not NULL.
7789 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7792 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
7793 between a call and its CALL_ARG_LOCATION note.
7795 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
7798 * config/sh/sh.c (find_barrier): Don't emit a constant pool
7799 between a call and its corresponding CALL_ARG_LOCATION note.
7801 2011-03-19 Anatoly Sokolov <aesok@post.ru>
7803 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
7804 instead of loop. Use HARD_REGISTER_NUM_P predicate.
7805 * haifa-sched.c (setup_ref_regs): Ditto.
7806 * caller-save.c (add_used_regs_1): Ditto.
7807 * dse.c (look_for_hardregs): Ditto.
7808 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
7809 * sched-rgn.c (check_live_1): Ditto.
7811 2011-03-18 Joseph Myers <joseph@codesourcery.com>
7813 * c-decl.c (diagnose_mismatched_decls): Give an error for
7814 redefining a typedef with variably modified type.
7816 2011-03-18 Joseph Myers <joseph@codesourcery.com>
7818 * c-decl.c (grokfield): Don't allow typedefs for structures or
7819 unions with no tag by default.
7820 * doc/extend.texi (Unnamed Fields): Update.
7822 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
7824 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
7825 Rewrite using indirect functions.
7826 (lwp_slwpcb): Ditto.
7827 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
7828 (avx_vinsertf128<mode>): Ditto.
7830 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7832 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
7835 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7837 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
7838 splitting between a call and its corresponding CALL_ARG_LOCATION note.
7840 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
7842 PR rtl-optimization/48170
7843 * gcse.c (hoist_code): Remove bogus asserts.
7845 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
7847 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
7848 computation for prologue/epilogue.
7850 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7852 * Makefile.in (check-consistency): Remove.
7854 2011-03-18 Jakub Jelinek <jakub@redhat.com>
7857 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
7858 arange_table_in_use is 0, but either text_section_used or
7859 cold_text_section_used is true. Don't call it if
7860 !info_section_emitted.
7862 2011-03-18 Anatoly Sokolov <aesok@post.ru>
7864 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
7865 FUNCTION_VALUE_REGNO_P): Remove.
7866 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
7868 * config/avr/avr.c (avr_ret_register): Make static inline.
7869 (avr_function_value_regno_p): New function.
7870 (avr_libcall_value): Make static. Add 'func' argument.
7871 (avr_function_value): Make static. Rename 'func' argument to
7872 'fn_decl_or_type', forward it to avr_libcall_value. Call
7873 avr_ret_register function instead of RET_REGISTER macro.
7874 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
7876 2011-03-18 Jason Merrill <jason@redhat.com>
7879 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
7881 2011-03-18 Richard Guenther <rguenther@suse.de>
7883 * doc/install.texi (--enable-gold): Remove.
7884 (--with-plugin-ld): Document.
7885 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
7887 2011-03-18 Andrew Pinski <pinskia@gmail.com>
7890 * expr.c (optimize_bitfield_assignment_op): Revamp to work
7891 again after expansion changes.
7893 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
7895 * combine.c (try_combine): Do simplification only call of
7896 subst() on i2 even when i1 is present. Update comments.
7898 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
7900 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
7901 and UNSPEC_PCREL_SYMOFF.
7903 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7905 * config/s390/s390.md: Use define_c_enum for the unspec constant
7908 2011-03-18 Richard Henderson <rth@redhat.com>
7909 Jakub Jelinek <jakub@redhat.com>
7912 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
7913 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
7915 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
7918 * combine.c (cant_combine_insn_p): Don't check zero/sign
7919 extended hard registers.
7921 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
7924 * combine.c (cant_combine_insn_p): Check zero/sign extended
7927 2011-03-17 Anatoly Sokolov <aesok@post.ru>
7929 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7930 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
7931 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
7932 Change return type to bool.
7933 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7935 2011-03-17 Jakub Jelinek <jakub@redhat.com>
7938 * var-tracking.c (prepare_call_arguments): If CALL target
7939 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
7940 pc instead of looking it up using cselib_lookup and use
7941 Pmode for it if x has VOIDmode.
7942 * dwarf2out.c (gen_subprogram_die): If also both first and
7943 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
7946 * function.c (assign_parms): For data.passed_pointer parms
7947 use MEM of data.entry_parm instead of data.entry_parm itself
7948 as DECL_INCOMING_RTL.
7949 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
7950 also when passed and declared mode is the same, DECL_RTL
7951 is a MEM with pseudo as address and DECL_INCOMING_RTL is
7954 2011-03-16 Jeff Law <law@redhat.com>
7956 PR rtl-optimization/37273
7957 * ira-costs.c (scan_one_insn): Detect constants living in memory and
7958 handle them like argument loads from stack slots. Do not double
7959 count memory for memory constants and argument loads from stack slots.
7961 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
7964 * var-tracking.c (prepare_call_arguments): Check SUBREG.
7966 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
7969 * config/i386/i386.opt: Add Save to -mavx and -mfma.
7971 2011-03-17 Jakub Jelinek <jakub@redhat.com>
7974 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
7976 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
7977 Clear call_arg_locations and call_arg_loc_last always.
7980 * var-tracking.c (prepare_call_arguments): If argument needs to be
7981 passed by reference, adjust argtype and mode.
7983 2011-03-17 Richard Guenther <rguenther@suse.de>
7986 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
7987 a value make sure to fold the statement.
7989 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
7992 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
7993 return condition with !cfun->calls_alloca.
7995 2011-03-17 Richard Guenther <rguenther@suse.de>
7998 * lto-cgraph.c (input_overwrite_node): Clear the abstract
7999 origin for decls in other ltrans units.
8000 (input_varpool_node): Likewise.
8002 2011-03-17 Richard Guenther <rguenther@suse.de>
8005 * tree-object-size.c (compute_object_offset): Properly return
8006 the offset operand of MEM_REFs as sizetype.
8008 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8010 PR rtl-optimization/48141
8011 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
8012 * dse.c: Include params.h.
8013 (active_local_stores_len): New variable.
8014 (add_wild_read, dse_step1): Clear it when setting active_local_stores
8016 (record_store, check_mem_read_rtx): Decrease it when removing
8018 (scan_insn): Likewise. Increase it when adding to chain, if it
8019 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
8020 set active_local_stores to NULL before the addition.
8021 * Makefile.in (dse.o): Depend on $(PARAMS_H).
8023 PR rtl-optimization/48141
8024 * dse.c (record_store): If no positions are needed in an insn
8025 that cannot be deleted, at least unchain it from active_local_stores.
8027 2011-03-16 Dodji Seketeli <dodji@redhat.com>
8030 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
8031 (lookup_type_die_strip_naming_typedef): ... here.
8032 (get_context_die): Use it.
8033 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
8034 the anonymous struct named by the naming typedef.
8036 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
8039 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
8040 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8042 2011-03-16 Jeff Law <law@redhat.com>
8044 * tree-vrp.c (identify_jump_threads): Slightly simplify type
8045 check for operands of conditional. Allow type to be a pointer.
8047 2011-03-16 Richard Guenther <rguenther@suse.de>
8049 PR tree-optimization/48149
8050 * fold-const.c (fold_binary_loc): Fold
8051 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
8053 2011-03-16 Richard Guenther <rguenther@suse.de>
8055 PR tree-optimization/26134
8056 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
8057 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
8058 (non_rewritable_mem_ref_base): Handle complex type component
8059 accesses, constrain offsets for vector and complex extracts
8062 2011-03-16 Richard Guenther <rguenther@suse.de>
8064 PR tree-optimization/48146
8065 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
8066 operands avoiding the need for renaming.
8068 2011-03-16 Richard Guenther <rguenther@suse.de>
8070 * gimple-fold.c (maybe_fold_reference): Open-code relevant
8071 constant folding. Move MEM_REF canonicalization first.
8072 Rely on fold_const_aggregate_ref for initializer folding.
8073 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
8075 2011-03-16 Jakub Jelinek <jakub@redhat.com>
8078 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8079 arg0/arg1 or their arguments are always fold converted to matching
8082 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
8085 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8088 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
8089 Handle in-tree gold.
8090 (ld_vers): Extract binutils version for gold.
8091 (gcc_cv_ld_hidden): Handle gold here.
8092 (gcc_cv_lto_plugin): Determine level of linker plugin support.
8093 * configure: Regenerate.
8094 * config.in: Regenerate.
8095 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
8096 -fuse-linker-plugin otherwise.
8097 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
8098 (LINK_COMMAND_SPEC): Use it.
8099 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
8101 2011-03-16 Jakub Jelinek <jakub@redhat.com>
8103 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
8104 * calls.c: Remove debug.h include.
8105 (emit_call_1): Don't call virtual_call_token debug hook.
8106 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
8107 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
8108 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
8109 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
8110 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
8111 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
8112 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
8113 dwarf2out_virtual_call): Remove.
8114 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
8115 copy_call_info and virtual_call hooks.
8116 (dwarf2out_init): Don't initialize vcall_insn_table,
8117 debug_dcall_section and debug_vcall_section.
8118 (prune_unused_types): Don't mark nodes from dcall_table.
8119 (dwarf2out_finish): Don't output dcall or vcall tables.
8120 * final.c (final_scan_insn): Don't call direct_call or
8121 virtual_call debug hooks.
8122 * debug.h (struct gcc_debug_hooks): Remove direct_call,
8123 virtual_call_token, copy_call_info and virtual_call hooks.
8124 (debug_nothing_uid): Remove prototype.
8125 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
8126 copy_call_info and virtual_call hooks.
8127 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8128 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
8129 * debug.c (do_nothing_debug_hooks): Likewise.
8130 (debug_nothing_uid): Remove.
8131 * doc/invoke.texi (-fenable-icf-debug): Remove.
8132 * common.opt (-fenable-icf-debug): Likewise.
8134 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
8135 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
8136 call's MEM. Handle functions returning aggregate through a hidden
8137 first pointer. For virtual calls add clobbered pc to call arguments
8139 * dwarf2out.c (gen_subprogram_die): Emit
8140 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
8144 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
8145 * rtl.h (ENTRY_VALUE_EXP): Define.
8146 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
8147 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
8148 * print-rtl.c (print_rtx): Likewise.
8149 * gengtype.c (adjust_field_rtx_def): Likewise.
8150 * var-tracking.c (vt_add_function_parameter): Adjust
8151 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
8152 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
8153 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
8154 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
8155 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
8157 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
8158 Call var_location debug hook even on CALL_INSNs.
8159 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
8160 * rtl.def (ENTRY_VALUE): New.
8161 * dwarf2out.c: Include cfglayout.h.
8162 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
8163 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
8164 (struct call_arg_loc_node): New type.
8165 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
8166 tail_call_site_count): New variables.
8167 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
8168 DW_TAG_GNU_call_site_parameter.
8169 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
8170 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
8171 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
8172 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
8173 and DW_AT_GNU_all_source_call_sites.
8174 (mem_loc_descriptor): Handle ENTRY_VALUE.
8175 (add_src_coords_attributes): Don't add enything if
8176 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
8177 (dwarf2out_abstract_function): Save and clear call_arg_location,
8178 call_site_count and tail_call_site_count around dwarf2out_decl call.
8179 (gen_call_site_die): New function.
8180 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
8181 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
8182 (dwarf2out_function_decl): Clear call_arg_locations,
8183 call_arg_loc_last, set call_site_count and tail_call_site_count
8184 to -1 and free block_map.
8185 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
8186 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
8187 followed by any real instructions.
8188 (dwarf2out_begin_function): Set call_site_count and
8189 tail_call_site_count to 0.
8190 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
8191 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
8192 attempt to force a DIE for it and worst case remove the attribute.
8193 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
8194 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
8196 * var-tracking.c: Include tm_p.h.
8197 (vt_stack_adjustments): For calls call note_register_arguments.
8198 (argument_reg_set): New variable.
8199 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
8200 ensure the VALUE is resolved.
8201 (call_arguments): New variable.
8202 (prepare_call_arguments): New function.
8203 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
8204 (struct expand_loc_callback_data): Add ignore_cur_loc field.
8205 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
8206 always use the best expression.
8207 (vt_expand_loc): Add ignore_cur_loc argument.
8208 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
8209 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
8210 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
8212 (vt_add_function_parameter): Use cselib_lookup_from_insn.
8213 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
8214 argument. Don't call cselib_preserve_only_values and
8216 (note_register_arguments): New function.
8217 (vt_initialize): Compute argument_reg_set. Call
8218 vt_add_function_parameters before processing basic blocks instead of
8219 afterwards. For calls call prepare_call_arguments before calling
8220 cselib_process_insn.
8221 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
8222 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
8223 (var-tracking.o): Depend on $(TM_P_H).
8224 * cfglayout.h (insn_scope): New prototype.
8225 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
8226 * cfglayout.c (insn_scope): No longer static.
8227 * insn-notes.def (CALL_ARG_LOCATION): New.
8228 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
8229 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
8230 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
8231 nothing for DECL_EXTERNAL BLOCK_VARS.
8233 2011-03-16 Alan Modra <amodra@gmail.com>
8236 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
8237 create invalid offset address for vsx splat insn.
8238 * config/rs6000/predicates.md (splat_input_operand): New.
8239 * config/rs6000/vsx.md (vsx_splat_*): Use it.
8241 2011-03-15 Xinliang David Li <davidxl@google.com>
8244 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
8245 (normalize_preds): New function.
8246 (is_use_properly_guarded): Normalize def predicates.
8248 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8251 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
8252 in the output template.
8254 2011-03-15 Richard Guenther <rguenther@suse.de>
8257 * tree-pretty-print.c (dump_function_declaration): Properly
8258 dump unprototyped and varargs function types.
8260 2011-03-15 Richard Guenther <rguenther@suse.de>
8262 PR tree-optimization/13954
8263 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
8266 2011-03-15 Richard Guenther <rguenther@suse.de>
8268 PR tree-optimization/48037
8269 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
8270 selects into BIT_FIELD_REFs.
8271 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
8274 2011-03-15 Jakub Jelinek <jakub@redhat.com>
8276 PR tree-optimization/48129
8277 * builtins.c (fold_builtin_snprintf): Convert to type of
8278 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
8279 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
8281 2011-03-15 Richard Guenther <rguenther@suse.de>
8283 PR tree-optimization/41490
8284 * tree-ssa-dce.c (propagate_necessity): Handle returns without
8285 value but with VUSE.
8286 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
8288 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
8289 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
8290 * tree-tailcall.c (find_tail_calls): Ignore returns.
8292 2011-03-15 Richard Guenther <rguenther@suse.de>
8295 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
8296 or variable-indexed array accesses when in gimple form.
8298 2011-03-15 Richard Guenther <rguenther@suse.de>
8300 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
8302 2011-03-15 Alan Modra <amodra@gmail.com>
8305 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
8306 presume symbol_refs without a symbol_ref_decl are suitably
8307 aligned, nor other trees we may see here. Handle anchor symbols.
8308 (legitimate_constant_pool_address_p): Comment. Add mode param.
8309 Check cmodel=medium addresses. Adjust all calls.
8310 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
8311 creating cmodel=medium optimized access to locals.
8312 * config/rs6000/constraints.md (R): Pass QImode to
8313 legitimate_constant_pool_address_p.
8314 * config/rs6000/predicates.md (input_operand): Pass mode to
8315 legitimate_constant_pool_address_p.
8316 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
8319 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8322 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
8323 64-bit constants being loaded into registers other than GPRs such
8324 as loading 0 into a VSX register.
8326 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8328 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
8330 2011-03-14 Jakub Jelinek <jakub@redhat.com>
8333 * builtins.c (fold_builtin_snprintf): New function.
8334 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
8335 (fold_builtin_4): Likewise.
8338 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
8339 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
8340 and C - X == X also strip nops from +/-/p+ operand.
8341 When optimizing -X == C, fold C to arg0's type.
8344 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
8345 emit it as add_AT_int instead of add_AT_unsigned.
8347 2011-03-14 Tom Tromey <tromey@redhat.com>
8349 * unwind-dw2.c: Include sys/sdt.h if it exists.
8350 (_Unwind_DebugHook): Use STAP_PROBE2.
8351 * config.in, configure: Rebuild.
8352 * configure.ac: Check for sys/sdt.h.
8354 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
8356 * config/i386/i386.md (ROUND_FLOOR): New constant.
8357 (ROUND_CEIL): Ditto.
8358 (ROUND_TRUNC): Ditto.
8359 (ROUND_MXCSR): Ditto.
8360 (ROUND_NO_EXC): Ditto.
8361 (rint<mode>2): Use new defines instead of numerical constants.
8362 (floor<mode>2): Ditto.
8363 (ceil<mode>2): Ditto.
8364 (btrunc<mode>2): Ditto.
8365 * config/i386/i386-builtin-types.def: Define ROUND function type
8367 * config/i386/i386.c (enum ix86_builtins): Add
8368 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
8369 (struct builtin_description): Add
8370 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
8371 (ix86_expand_sse_round): New static function.
8372 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
8374 (ix86_builtin_vectorized_function): Handle
8375 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8377 2011-03-14 Tom Tromey <tromey@redhat.com>
8379 * c-parser.c (c_parser_asm_string_literal): Clear
8380 warn_overlength_strings.
8382 2011-03-14 Tom Tromey <tromey@redhat.com>
8384 * c-parser.c (disable_extension_diagnostics): Save
8385 warn_overlength_strings.
8386 (restore_extension_diagnostics): Restore warn_overlength_strings.
8388 2011-03-14 Jakub Jelinek <jakub@redhat.com>
8390 * BASE-VER: Change to 4.7.0.
8392 2011-03-14 Richard Guenther <rguenther@suse.de>
8395 * tree.c (build_vector_from_val): Adjust assert to requirements
8398 2011-03-14 Jakub Jelinek <jakub@redhat.com>
8401 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
8403 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
8405 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
8406 terms of target_flags_explicit. Adjust copyright year.
8408 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
8409 * config/rs6000/t-freebsd: New file. Add override for
8412 2011-03-13 Chris Demetriou <cgd@google.com>
8414 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
8415 (-fno-diagnostics-show-option): this, to reflect current default.
8416 (-Werror=): Update text about -fno-diagnostics-show-option.
8418 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
8421 * config/rs6000/predicates.md (easy_vector_constant_add_self,
8422 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
8423 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
8424 mode is not V2DImode or V2DFmode.
8425 (vspltis_constant): Do not handle V2DImode and V2DFmode.
8426 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
8427 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
8429 (movdi_internal64): Likewise.
8431 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
8433 PR tree-optimization/47127
8434 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
8436 (set_cloog_options): Same.
8437 (scop_to_clast): Same.
8438 (print_clast_stmt): Do not call cloog_state_malloc and
8440 (print_generated_program): Same.
8442 * graphite-clast-to-gimple.h (cloog_state): Declared.
8443 (scop_to_clast): Adjust declaration.
8444 * graphite.c (cloog_state): Defined here.
8445 (graphite_initialize): Call cloog_state_malloc.
8446 (graphite_finalize): Call cloog_state_free.
8448 2011-03-11 Jason Merrill <jason@redhat.com>
8450 * attribs.c (lookup_attribute_spec): Take const_tree.
8453 2011-03-11 Joseph Myers <joseph@codesourcery.com>
8455 * config/sparc/sparc.c (sparc_option_override): Use
8456 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
8458 2011-03-11 Richard Guenther <rguenther@suse.de>
8460 PR tree-optimization/48067
8461 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
8462 multiplication result will be only used once on the target
8465 2011-03-11 Richard Guenther <rguenther@suse.de>
8467 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
8469 2011-03-11 Richard Guenther <rguenther@suse.de>
8472 * tree.c (find_decls_types_r): Do not walk types only reachable
8473 from IDENTIFIER_NODEs.
8475 2011-03-11 Jakub Jelinek <jakub@redhat.com>
8478 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
8479 all vnode->force_output nodes as needed.
8481 2011-03-11 Jason Merrill <jason@redhat.com>
8484 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
8485 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
8487 2011-03-11 Martin Jambor <mjambor@suse.cz>
8489 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
8492 2011-03-11 Jakub Jelinek <jakub@redhat.com>
8494 PR tree-optimization/48063
8495 * ipa-inline.c (cgraph_decide_inlining): Don't try to
8496 inline functions called once if !tree_can_inline_p (node->callers).
8498 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
8500 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
8502 * config/score/score3.c: Delete.
8503 * config/score/score3.h: Delete.
8504 * config/score/mul-div.S: Delete.
8505 * config/score/sfp-machine.h: Add new file.
8506 * config/score/constraints.md: Add new file.
8507 * config/score/t-score-softfp: Add new file.
8508 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
8509 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
8510 (score7_extra_constraint): Delete.
8511 (score7_option_override): Remove unused code.
8512 * config/score/score.c: Remove score3 and score5 define and code.
8513 * config/score/score.h: Remove score3 and score5 define and code.
8514 * config/score/score.md: Remove score3 template and unusual insn.
8515 * config/score/score.opt: Remove score3 and score5 options.
8517 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8519 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
8520 when _HPUX_SOURCE is defined.
8521 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
8523 2011-03-10 Jason Merrill <jason@redhat.com>
8526 * stor-layout.c (layout_type): Don't set structural equality
8527 on arrays of incomplete type.
8528 * tree.c (type_hash_eq): Handle comparing them properly.
8530 2011-03-10 Jakub Jelinek <jakub@redhat.com>
8533 * config/s390/s390.c (s390_delegitimize_address): Make sure the
8534 result mode matches original rtl mode.
8536 2011-03-10 Nick Clifton <nickc@redhat.com>
8538 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
8539 (andsi3, andsi3_flags): Fix timings for three operand alternative.
8541 2011-03-09 Jakub Jelinek <jakub@redhat.com>
8543 PR rtl-optimization/47866
8544 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
8545 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
8546 if target wasn't scalar.
8547 * function.c (assign_stack_temp_for_type): Assert that neither
8548 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
8549 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
8551 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
8553 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8555 * config/s390/s390-protos.h (s390_label_align): New prototype.
8556 * config/s390/s390.c (s390_label_align): New function.
8557 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
8559 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
8562 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
8563 V2DI/V2DF constants. Only all 0's or all 1's are easy.
8564 (output_vec_const_move): Ditto.
8566 2011-03-08 Anatoly Sokolov <aesok@post.ru>
8568 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
8569 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
8570 * config/mips/mips.c (mips_preferred_reload_class): Make static.
8571 Change 'rclass' argument and result type to reg_class_t.
8572 (TARGET_PREFERRED_RELOAD_CLASS): Define.
8574 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
8576 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8577 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
8578 (TARGET_MEMORY_MOVE_COST): Define.
8579 (avr_register_move_cost, avr_memory_move_cost): New Functions.
8581 2011-03-08 Jakub Jelinek <jakub@redhat.com>
8584 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
8587 PR tree-optimization/48022
8588 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
8591 2011-03-07 Jakub Jelinek <jakub@redhat.com>
8594 * var-tracking.c (find_use_val): Return NULL for
8595 cui->sets && cui->store_p BLKmode MEMs.
8597 2011-03-07 Anatoly Sokolov <aesok@post.ru>
8599 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
8601 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
8602 xstormy16_print_operand_address): Remove.
8603 * config/stormy16/stormy16.c (xstormy16_print_operand,
8604 xstormy16_print_operand_address): Make static.
8605 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8607 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
8610 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
8611 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
8614 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
8617 * cfgloopmanip.c (fix_bb_placements): Return immediately
8618 if FROM is BASE_LOOP's header.
8620 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
8622 * gimplify.c (gimplify_function_tree): Fix building calls
8623 to __builtin_return_address.
8625 2011-03-07 Alan Modra <amodra@gmail.com>
8627 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
8628 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
8629 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
8630 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
8632 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
8633 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
8634 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
8635 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
8636 * config/rs6000/rs6000.c
8637 (rs6000_elf_end_indicate_exec_stack): Rename to..
8638 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
8639 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
8640 (rs6000_file_start): ..here.
8641 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
8642 file scope variables.
8643 (call_ABI_of_interest): New function.
8644 (init_cumulative_args): Set above vars when function return value
8645 is a float, vector, or small struct.
8646 (rs6000_function_arg_advance_1): Likewise for function args.
8647 (rs6000_va_start): Set rs6000_passes_float if variable arg function
8648 references float args.
8650 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
8652 * doc/cfg.texi: Remove "See" before @ref.
8653 * doc/invoke.texi: Likewise.
8655 2011-03-05 Jason Merrill <jason@redhat.com>
8657 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
8659 2011-03-05 Anthony Green <green@moxielogic.com>
8661 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
8663 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
8665 PR rtl-optimization/47899
8666 * cfgloopmanip.c (fix_bb_placements): Fix first argument
8667 to flow_loop_nested_p when moving the loop upward.
8669 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
8672 * arm.md (movhi_insn_arch4): Accept any immediate constant.
8674 2011-03-05 Jakub Jelinek <jakub@redhat.com>
8676 PR tree-optimization/47967
8677 * ipa-cp.c (build_const_val): Return NULL instead of creating
8678 VIEW_CONVERT_EXPR for mismatching sizes.
8679 (ipcp_create_replace_map): Return NULL if build_const_val failed.
8680 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
8681 give up on versioning.
8683 2011-03-05 Alan Modra <amodra@gmail.com>
8686 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
8687 full cmodel medium/large lo_sum + high addresses.
8689 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8691 * config/s390/s390.c (s390_decompose_address): Reject non-literal
8692 pool references in UNSPEC_LTREL_OFFSET.
8694 2011-03-04 Jan Hubicka <jh@suse.cz>
8697 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
8698 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
8699 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
8701 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
8702 cgraph_add_thunk): Add node pointers.
8703 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
8704 associated to right node.
8705 (input_node): Update use of cgraph_same_body_alias
8706 and cgraph_add_thunk.
8708 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
8710 * config/i386/i386.opt (mprefer-avx128): New flag.
8711 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
8712 modes when the flag -mprefer-avx128 is on.
8714 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
8716 * dwarf2out.c (compare_loc_operands): Fix address handling.
8718 2011-03-04 Alan Modra <amodra@gmail.com>
8720 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
8722 2011-03-04 Richard Guenther <rguenther@suse.de>
8725 * expmed.c (extract_bit_field_1): Prefer vector modes that
8726 vec_extract patterns can handle.
8728 2011-03-04 Richard Guenther <rguenther@suse.de>
8731 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
8733 2011-03-04 Richard Henderson <rth@redhat.com>
8735 * explow.c (emit_stack_save): Remove 'after' parameter.
8736 (emit_stack_restore): Likewise.
8737 * expr.h: Update to match.
8738 * builtins.c, calls.c, stmt.c: Likewise.
8739 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
8740 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
8741 * function.c (expand_function_end): Insert the emit_stack_save
8742 sequence before parm_birth_insn instead of after.
8744 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
8746 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
8747 (ssse3_pmaddubsw128): Ditto.
8748 (ssse3_pmaddubsw): Ditto.
8750 2011-03-03 Steve Ellcey <sje@cup.hp.com>
8752 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
8754 2011-03-03 Jakub Jelinek <jakub@redhat.com>
8757 * gimplify.c (omp_add_variable): Only call omp_notice_variable
8758 on TYPE_SIZE_UNIT if it is a DECL.
8761 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
8762 first operand is not is_gimple_mem_ref_addr, try to fold it.
8763 If the operand still isn't is_gimple_mem_ref_addr, clear
8766 2011-03-03 Richard Guenther <rguenther@suse.de>
8769 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
8771 (refs_may_alias_p_1): For release branches return true if
8772 we are confused by our input.
8774 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8776 * config/s390/s390.c (s390_function_value): Rename to ...
8777 (s390_function_and_libcall_value): ... this.
8778 (s390_function_value): New function.
8779 (s390_libcall_value): New function.
8780 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
8781 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
8782 target macro definitions.
8783 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
8785 2011-03-02 Joseph Myers <joseph@codesourcery.com>
8787 * config/i386/freebsd64.h (CC1_SPEC): Define.
8788 * config/i386/linux64.h (CC1_SPEC): Define.
8789 * config/i386/x86-64.h (CC1_SPEC): Don't define.
8791 2011-03-02 Anatoly Sokolov <aesok@post.ru>
8793 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8795 * config/stormy16/stormy16.c: Include reload.h.
8796 (xstormy16_memory_move_cost): New function.
8797 (TARGET_MEMORY_MOVE_COST): Define.
8799 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
8801 PR rtl-optimization/47925
8802 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
8803 with side effects. Remove the more-specific check for volatile asms.
8805 2011-03-02 Alan Modra <amodra@gmail.com>
8808 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
8809 toc relative addresses for valid offsets.
8811 2011-03-01 Richard Guenther <rguenther@suse.de>
8813 PR tree-optimization/47890
8814 * tree-vect-loop.c (get_initial_def_for_induction): Set
8815 related stmt properly.
8817 2011-03-01 Richard Guenther <rguenther@suse.de>
8820 * lto-streamer.c (lto_record_common_node): Also register
8823 2011-03-01 Richard Guenther <rguenther@suse.de>
8826 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
8827 Do not stream DECL_ABSTRACT_ORIGIN.
8828 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
8829 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
8830 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
8831 Do not stream DECL_ABSTRACT_ORIGIN.
8832 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
8833 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
8835 2011-02-28 Anatoly Sokolov <aesok@post.ru>
8837 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
8838 FUNCTION_VALUE_REGNO_P): Remove.
8839 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
8840 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
8841 Add 'outgoing' argument.
8842 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
8844 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8845 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8847 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
8850 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
8851 (lookup_filename): Likewise.
8852 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
8854 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
8855 Jakub Jelinek <jakub@redhat.com>
8858 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
8859 (assign_stack_local_1): Change last argument type to int.
8860 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
8861 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
8862 don't record padding space into frame_space_list nor use those areas.
8863 (assign_stack_local): Adjust caller.
8864 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
8865 of assign_stack_local, pass 0 as last argument.
8866 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
8869 2011-02-28 Jakub Jelinek <jakub@redhat.com>
8872 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
8873 Use target address_mode and pointer_mode hooks instead of hardcoded
8874 Pmode and ptr_mode. Handle some simple cases of extending if
8875 POINTERS_EXTEND_UNSIGNED < 0.
8876 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
8877 Call convert_debug_memory_address.
8878 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
8879 convert_debug_memory_address.
8882 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
8883 * configure: Regenerated.
8884 * config.in: Regenerated.
8885 * varasm.c (default_function_section): Return NULL
8886 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
8888 2011-02-28 Martin Jambor <mjambor@suse.cz>
8890 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
8891 the description to match the printed values.
8893 2011-02-28 Richard Guenther <rguenther@suse.de>
8895 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
8896 of the copied scope tree.
8898 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8900 * doc/extend.texi (Function Attributes): Avoid deeply (and
8901 wrongly) nested tables.
8903 2011-02-27 Jakub Jelinek <jakub@redhat.com>
8906 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
8907 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
8908 r isn't op0 nor op1.
8910 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
8912 * config/avr/avr.md: Remove magic comment for emacs.
8914 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
8917 * config/avr/avr.c (avr_option_override): Use error on bad options.
8918 (avr_help): New function.
8919 (TARGET_HELP): Define.
8921 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
8924 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
8925 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
8927 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
8929 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
8930 (ARM Options): Ditto.
8931 (i386 and x86-64 Options): Ditto.
8932 (RX Options): Ditto.
8933 (SPARC Options): Ditto.
8935 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
8937 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
8938 FreeBSD 6 and later. Generally use cpu generic.
8940 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
8942 * doc/cpp.texi: Update copyright years.
8944 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
8947 * config/lm32/lm32.md (ashrsi3): Added needed variable.
8949 2011-02-25 Jon Beniston <jon@beniston.com>
8952 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
8953 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
8954 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
8955 (lm32_block_move_inline): Add type cast to remove warning.
8956 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
8957 (gen_int_relational): Move declarations to start of function.
8959 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
8961 PR tree-optimization/45470
8962 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
8963 can throw internally only.
8964 * tree-vect-stmts.c (vectorizable_call): Likewise.
8966 2011-02-24 Anatoly Sokolov <aesok@post.ru>
8968 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
8969 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8970 * config/stormy16/stormy16-protos.h
8971 (xstormy16_preferred_reload_class): Remove.
8972 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
8973 static. Change 'rclass' argument and return type to reg_class_t.
8974 (TARGET_PREFERRED_RELOAD_CLASS,
8975 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8977 2011-02-24 Richard Guenther <rguenther@suse.de>
8979 * lto-streamer-in.c (input_bb): Do not find referenced vars
8980 in debug statements.
8982 2011-02-23 Jason Merrill <jason@redhat.com>
8984 * common.opt (fabi-version): Document v5 and v6.
8986 2011-02-23 Richard Guenther <rguenther@suse.de>
8988 PR tree-optimization/47849
8989 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
8991 2011-02-23 Jie Zhang <jie@codesourcery.com>
8993 * opts-common.c (decode_cmdline_option): Print empty string
8994 argument as "" in decoded->orig_option_with_args_text.
8995 * gcc.c (execute): Print empty string argument as ""
8996 in the verbose output.
8997 (do_spec_1): Keep empty string argument.
8999 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
9001 * config.gcc: Declare score-* and crx-* obsolete.
9003 2011-02-23 Jie Zhang <jie@codesourcery.com>
9005 PR rtl-optimization/47763
9006 * web.c (web_main): Ignore naked clobber when replacing register.
9008 2011-02-22 Anatoly Sokolov <aesok@post.ru>
9010 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9013 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
9016 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
9018 2011-02-22 Mike Stump <mikestump@comcast.net>
9020 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
9022 * configure: Regenerate.
9024 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
9026 PR rtl-optimization/46002
9027 * ira-color.c (update_copy_costs): Change class intersection
9028 test to reg_class_contents[] test of 'hard_regno'.
9030 2011-02-21 Joseph Myers <joseph@codesourcery.com>
9032 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
9034 * config/hpux11.opt (mt): Likewise.
9035 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
9036 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
9037 * config/vax/elf.opt (mno-asm-pic): Likewise.
9038 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
9040 2011-02-21 Mike Stump <mikestump@comcast.net>
9043 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
9044 tree so we can get save the type.
9045 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
9046 for CFString instead of trying to use past the end of the builtins.
9047 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
9048 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
9049 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
9050 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
9051 Rename to darwin_builtin_cfstring.
9052 (darwin_init_cfstring_builtins): Return the built type.
9054 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
9057 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
9058 (_mm256_insert_epi64): Use _mm_insert_epi64.
9060 2011-02-21 Anatoly Sokolov <aesok@post.ru>
9062 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9063 * config/stormy16/stormy16-protos.h
9064 (xstormy16_mode_dependent_address_p): Remove.
9065 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
9066 Make static. Change return type to bool. Change argument type to
9067 const_rtx. Remove dead code.
9068 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9070 2011-02-21 Richard Guenther <rguenther@suse.de>
9073 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9074 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9075 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
9077 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9078 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9080 2011-02-20 Richard Guenther <rguenther@suse.de>
9083 * tree.c (free_lang_data_in_decl): Clean builtins from
9084 the TU decl BLOCK_VARS.
9086 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
9090 * haifa-sched.c (fix_tick_ready): Skip tick computation
9093 2011-02-19 Richard Guenther <rguenther@suse.de>
9096 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
9097 Remove lazy BLOCK_VARS streaming.
9098 (lto_input_ts_block_tree_pointers): Likewise.
9099 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
9101 2011-02-19 Joseph Myers <joseph@codesourcery.com>
9103 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
9105 2011-02-19 Joseph Myers <joseph@codesourcery.com>
9107 * config/i386/biarch32.h, config/i386/mach.h,
9108 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
9110 2011-02-19 Jakub Jelinek <jakub@redhat.com>
9113 * config/i386/i386.md (peephole2 for shift and plus): Use
9114 operands[1] original mode in the first insn.
9116 2011-02-18 Mike Stump <mikestump@comcast.net>
9118 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
9120 2011-02-18 Jan Hubicka <jh@suse.cz>
9123 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
9124 to zero when the function is not inlinable at all.
9126 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9128 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
9129 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9130 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
9131 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
9132 * config/pa/t-pa64: Likewise.
9133 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9135 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9138 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
9140 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9143 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
9145 2011-02-18 Anatoly Sokolov <aesok@post.ru>
9147 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9148 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
9149 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
9150 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9151 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
9152 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
9153 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
9154 m32r_load_postinc_p, m32r_store_preinc_predec_p,
9155 m32r_legitimate_address_p): New functions.
9156 * config/m32r/constraints.md (constraint "S"): Don't use
9157 STORE_PREINC_PREDEC_P.
9158 (constraint "U"): Don't use LOAD_POSTINC_P.
9160 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
9162 PR rtl-optimization/46178
9163 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
9164 compute ira_hard_regno_cover_class[].
9166 2011-02-18 Richard Guenther <rguenther@suse.de>
9169 * lto-streamer.h (lto_global_var_decls): Declare.
9170 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
9171 statics for global var processing.
9173 2011-02-18 Richard Guenther <rguenther@suse.de>
9175 PR tree-optimization/47737
9176 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
9177 edge dominance check.
9179 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9182 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
9183 avoid invalid rtx sharing.
9185 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
9187 * doc/cpp.texi (Obsolete Features): Add background on the
9188 origin of assertions.
9190 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
9192 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
9194 * config/darwin.c (output_objc_section_asm_op): Added support for
9196 (is_objc_metadata): New.
9197 (darwin_objc2_section): New.
9198 (darwin_objc1_section): New.
9199 (machopic_select_section): Added support for ABI v1 and v2.
9200 (darwin_emit_objc_zeroed): New.
9201 (darwin_output_aligned_bss): Detect objc metadata and treat it
9203 (darwin_asm_output_aligned_decl_common): Same.
9204 (darwin_asm_output_aligned_decl_local): Same.
9205 * config/darwin-sections.def: Updated for ABI v1 and v2.
9206 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
9207 compiling Objective-C code for the NeXT runtime, default to using
9208 ABI version 0 for 32-bit, and version 2 for 64-bit.
9210 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9212 * common.opt (optimize_fast): New Variable.
9213 * opts.c (default_options_optimization): Use opts->x_optimize_fast
9214 instead of local variable ofast.
9216 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
9218 * doc/invoke.texi (fobjc-abi-version): Documented.
9219 (fobjc-nilcheck): Documented.
9220 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
9223 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9226 * common.opt (export-dynamic): New Driver option.
9227 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
9229 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9231 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
9233 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
9234 Jan Hubicka <jh@suse.cz>
9238 * cfgexpand.c (account_used_vars_for_block): Remove.
9239 (estimated_stack_frame_size): Use referenced vars.
9240 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
9241 that were referenced in the original function. Test src_fn
9242 rather than cfun. Drop redundant get_var_ann.
9243 (setup_one_parameter): Drop redundant get_var_ann.
9244 (declare_return_variable): Likewise.
9245 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
9246 (copy_arguments_for_versioning): Drop redundant get_var_ann.
9247 * ipa-inline.c (compute_inline_parameters): Do not compute
9248 disregard_inline_limits here.
9249 (compute_inlinable_for_current, pass_inlinable): New.
9250 (pass_inline_parameters): Require PROP_referenced_vars.
9251 * cgraphunit.c (cgraph_process_new_functions): Don't run
9252 compute_inline_parameters explicitly unless function is in SSA form.
9253 (cgraph_analyze_function): Set .disregard_inline_limits.
9254 * tree-sra.c (convert_callers): Compute inliner parameters
9255 only for functions already in SSA form.
9257 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9259 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
9260 -mlittle-endian-data.
9262 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9264 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
9265 -mno-fpu, not -fpu and -no-fpu.
9266 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
9267 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
9269 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
9272 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
9273 input reload with PLUS RTX.
9275 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9277 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
9278 of InverseVar(MDMX).
9280 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9282 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
9285 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9287 * config/mn10300/mn10300.opt (mno-crt0): New.
9289 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9291 * config/m68k/uclinux.opt (static-libc): New Driver option.
9293 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9295 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
9297 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9299 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
9300 %{muser-extend-enabled}.
9302 2011-02-16 Richard Guenther <rguenther@suse.de>
9304 PR tree-optimization/47738
9305 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
9306 the TODO from tree_predictive_commoning.
9308 2011-02-15 Jeff Law <law@redhat.com>
9311 2011-01-25 Jeff Law <law@redhat.com>
9313 PR rtl-optimization/37273
9314 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9315 handle them like argument loads from stack slots. Do not double
9316 count memory for memory constants and argument loads from stack slots.
9318 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
9321 * combine.c (cant_combine_insn_p): Revert the last change.
9323 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
9326 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
9327 mode for vector constants. Remove code that checks for TImode.
9329 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9333 * cgraph.h (compute_inline_parameters): Return void.
9334 * ipa-inline.c (compute_inline_parameters): Adjust.
9336 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9340 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
9342 * cfgexpand.c (estimated_stack_frame_size): Likewise.
9343 * ipa-inline.c (compute_inline_parameters): Adjust.
9345 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9349 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
9350 Adjust all users. Pass FN to...
9351 * tree-flow-inline.h (first_referenced_var): ... this. Add
9353 * ipa-struct-reorg.c: Adjust.
9354 * tree-dfa.c: Adjust.
9355 * tree-into-ssa.c: Adjust.
9356 * tree-sra.c: Adjust.
9357 * tree-ssa-alias.c: Adjust.
9358 * tree-ssa-live.c: Adjust.
9359 * tree-ssa.c: Adjust.
9360 * tree-ssanames.c: Adjust.
9361 * tree-tailcall.c: Adjust.
9363 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9367 * tree-flow.h (referenced_var_lookup): Add fn parameter.
9369 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
9370 * tree-flow-inline.h: Adjust.
9371 * gimple-pretty-print.c: Adjust.
9372 * tree-into-ssa.c: Adjust.
9373 * tree-ssa.c: Adjust.
9374 * cfgexpand.c: Adjust.
9376 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
9378 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
9379 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9380 (EXTRA_CONSTRAINT): Delete.
9381 * config/iq2000/constraints.md: New file.
9382 * config/iq2000/iq2000.md: Include it.
9383 (define_insn ""): Delete.
9384 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
9385 unsupported constraint letters from patterns.
9386 (call_value, call_value_internal1): Likewise.
9387 (call_value_multiple_internal1): Likewise.
9389 2011-02-15 Nick Clifton <nickc@redhat.com>
9391 * config/mn10300/mn10300.c: Include tm-constrs.h.
9392 (struct liw_data): New data structure describing an LIW candidate
9394 (extract_bundle): Use struct liw_data. Allow small integer
9395 operands for some instructions.
9396 (check_liw_constraints): Use struct liw_data. Remove swapped
9397 parameter. Add comments describing the checks. Fix bug when
9398 assigning the source of liw1 to the source of liw2.
9399 (liw_candidate): Delete. Code moved into extract_bundle.
9400 (mn10300_bundle_liw): Use struct liw_data. Check constraints
9402 * config/mn10300/predicates.md (liw_operand): New predicate.
9403 Allows registers and small integer constants.
9404 * config/mn10300/constraints.md (O): New constraint. Accetps
9405 integers in the range -8 to +7 inclusive.
9406 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
9407 for moving a small integer into a register. Give this alternative
9409 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
9410 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
9411 using the J,K,L and M constraints,
9412 (liw): Remove SI mode on second operands to allow for HI and QI
9414 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
9417 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
9420 * combine.c (cant_combine_insn_p): Check zero/sign extended
9423 2011-02-15 Richard Guenther <rguenther@suse.de>
9425 PR tree-optimization/47743
9426 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
9427 for a non-type-compatible VN lookup bail out.
9429 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
9431 * config/fr30/constraints.md: New file.
9432 * config/fr30/fr30.md: Include it.
9433 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
9434 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9435 (EXTRA_CONSTRAINT): Delete.
9437 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
9439 * config/frv/constraints.md: New file.
9440 * config/frv/predicates.md: Include it.
9441 * config/frv/frv.c (reg_class_from_letter): Delete.
9442 (frv_option_override): Don't initialize it.
9443 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
9444 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
9445 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
9446 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
9447 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
9448 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9449 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
9450 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
9451 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
9452 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
9453 (REG_CLASS_FROM_CONSTRAINT): Delete.
9455 2011-02-15 Jakub Jelinek <jakub@redhat.com>
9458 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
9459 if frame size is 0 in a leaf function.
9461 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9464 * config/alpha/host-osf.c: New file.
9465 * config/alpha/x-osf: New file.
9466 * config.host (alpha*-dec-osf*): Use it.
9468 2011-02-14 Anatoly Sokolov <aesok@post.ru>
9470 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9471 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
9472 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
9473 (rx_mode_dependent_address_p): ...this. Make static. Change argument
9475 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9477 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
9479 * config/stormy16/constraints.md: New file.
9480 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
9481 Use satisfies_constraint_Q and satisfies_constraint_R.
9482 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
9484 (xstormy16_legitiamte_address_p): Declare.
9485 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
9486 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9487 (EXTRA_CONSTRAINT): Delete.
9488 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
9490 (xstormy16_extra_constraint_p): Delete.
9492 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
9494 PR tree-optimization/46494
9495 * loop-unroll.c (split_edge_and_insert): Adjust comment.
9496 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
9497 (pass_rtl_loop_done): Add TODO_verify_flow.
9498 * fwprop.c (pass_rtl_fwprop): Likewise.
9499 * modulo-sched.c (pass_sms): Likewise.
9500 * tree-ssa-dom.c (pass_dominator): Likewise.
9501 * tree-ssa-loop-ch.c (pass_ch): Likewise.
9502 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
9503 (pass_tree_loop_done): Likewise.
9504 * tree-ssa-pre.c (execute_pre): Likewise.
9505 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
9506 * tree-ssa-sink.c (pass_sink_code): Likewise.
9507 * tree-vrp.c (pass_vrp): Likewise.
9509 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
9511 * config/v850/constraints.md: New file.
9512 * config/v850/v850.md: Include it.
9513 * config/v850/predicates.md (reg_or_0_operand): Use
9514 satisfies_constraint_G.
9515 (special_symbolref_operand): Use satisfies_constraint_K.
9516 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
9517 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
9518 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
9519 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
9520 (EXTRA_CONSTRAINT): Delete.
9521 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
9522 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
9523 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
9525 2011-02-14 Anatoly Sokolov <aesok@post.ru>
9528 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
9531 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
9533 * config/mcore/constraints.md: New file.
9534 * config/mcore/mcore.md: Include it.
9535 * config/mcore/mcore.c (reg_class_from_letter): Delete.
9536 * config/mcore/mcore.h (reg_class_from_letter): Delete.
9537 (REG_CLASS_FROM_LETTER): Delete.
9538 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
9539 insn_const_int_ok_for_constraint.
9540 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
9541 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
9542 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9543 (EXTRA_CONSTRAINT): Delete.
9545 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9548 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
9549 (IS_SIGHANDLER): Define.
9550 (sparc64_is_sighandler): New function, split off from
9551 sparc64_fallback_frame_state.
9552 (sparc_is_sighandler): New function, split off from
9553 sparc_fallback_frame_state.
9554 (sparc64_fallback_frame_state): Merge with ...
9555 (sparc_fallback_frame_state): ... this into ...
9556 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
9557 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
9558 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
9559 stack instead of hardcoded offsets.
9561 2011-02-14 Andriy Gapon <avg@freebsd.org>
9564 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
9566 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9568 * configure: Regenerate.
9570 2011-02-12 Joseph Myers <joseph@codesourcery.com>
9573 * gcc.c (asm_options): Correct spec matching --target-help.
9575 2011-02-12 Martin Jambor <mjambor@suse.cz>
9577 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
9578 to gimple call error.
9580 2011-02-12 Mike Stump <mikestump@comcast.net>
9582 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
9583 comments in backslash regions.
9585 2011-02-12 Mike Stump <mikestump@comcast.net>
9586 Jakub Jelinek <jakub@redhat.com>
9587 Iain Sandoe <iains@gcc.gnu.org>
9590 * dwarf2out.c (output_cfa_loc): When required, apply the
9591 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
9592 (output_loc_sequence): Likewise.
9593 (output_loc_operands_raw): Likewise.
9594 (output_loc_sequence_raw): Likewise.
9595 (output_cfa_loc): Likewise.
9596 (output_loc_list): Suppress register number adjustment when
9597 calling output_loc_sequence()
9598 (output_die): Likewise.
9600 2011-02-12 Anatoly Sokolov <aesok@post.ru>
9602 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9604 * config/xtensa/xtensa.c (xtensa_register_move_cost,
9605 xtensa_memory_move_cost): New functions.
9606 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
9608 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
9611 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
9612 in the current directory.
9613 * configure: Rebuilt.
9615 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
9617 * config/darwin.c (darwin_override_options): Add a hunk missed
9618 from the commit of r168571. Trim comment line lengths and
9619 correct indents of the preceding block.
9621 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
9623 * gcc.c (driver_handle_option): Concatenate the argument to -F with
9626 2011-02-11 Joseph Myers <joseph@codesourcery.com>
9628 * common.opt (nostartfiles): New Driver option.
9630 2011-02-11 Xinliang David Li <davidxl@google.com>
9632 PR tree-optimization/47707
9633 * tree-chrec.c (convert_affine_scev): Keep type precision.
9635 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
9637 PR tree-optimization/47420
9638 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
9640 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
9642 PR rtl-optimization/47614
9643 * rtl.h (check_for_inc_dec): Declare.
9644 * dse.c (check_for_inc_dec): Externalize...
9645 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
9646 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
9648 2011-02-11 Joseph Myers <joseph@codesourcery.com>
9651 * gcc.c (main): Do not compile inputs if there were errors in
9653 * opts-common.c (read_cmdline_option): Check for wrong language
9654 after other error checks.
9656 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
9658 * cgraph.c: Fix comment typos.
9659 * cgraph.h: Likewise.
9660 * cgraphunit.c: Likewise.
9661 * ipa-cp.c: Likewise.
9662 * ipa-inline.c: Likewise.
9663 * ipa-prop.c: Likewise.
9664 * ipa-pure-const.c: Likewise.
9665 * ipa-ref.c: Likewise.
9666 * ipa-reference.c: Likewise.
9668 2011-02-11 Jakub Jelinek <jakub@redhat.com>
9671 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
9673 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9676 * doc/sourcebuild.texi (Require Support): Document
9677 dg-require-ascii-locale.
9679 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
9681 * doc/lto.texi (Write summary): Fix missing parentheses.
9683 2011-02-10 DJ Delorie <dj@redhat.com>
9685 * config/m32c/m32c.c (m32c_option_override): Disable
9686 -fcombine-stack-adjustments until flag value tracking and compare
9687 optimization can be rewritten.
9689 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
9691 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
9693 (PROCESSOR_DEFAULT64): Likewise.
9695 2011-02-10 Richard Henderson <rth@redhat.com>
9697 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
9698 change from 2011-02-03.
9699 * config/rx/rx.c (flags_from_code): Likewise.
9700 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
9701 is valid, n/pz otherwise.
9702 (rx_select_cc_mode): Return CCmode if Y is not zero.
9704 2011-02-10 Richard Guenther <rguenther@suse.de>
9706 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
9708 2011-02-10 Richard Guenther <rguenther@suse.de>
9710 PR tree-optimization/47677
9711 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
9713 2011-02-10 Jakub Jelinek <jakub@redhat.com>
9716 * combine.c (make_compound_operation): Only change shifts into
9717 multiplication for SCALAR_INT_MODE_P.
9719 2011-02-10 Jie Zhang <jie@codesourcery.com>
9723 2011-02-05 Jie Zhang <jie@codesourcery.com>
9725 * web.c (entry_register): Don't clobber the number of the
9726 first uninitialized reference in used[].
9728 2011-02-09 Richard Guenther <rguenther@suse.de>
9730 PR tree-optimization/47664
9731 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
9734 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
9738 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
9740 (PROCESSOR_DEFAULT64): Same.
9741 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
9743 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9745 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
9747 2011-02-09 Martin Jambor <mjambor@suse.cz>
9750 * tree-sra.c (struct access): New flags grp_scalar_read and
9751 grp_scalar_write. Changed description of assignment read and write
9753 (dump_access): Dump new flags, reorder all of them.
9754 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
9755 to detect multiple scalar reads.
9756 (analyze_access_subtree): Use the new scalar read write flags instead
9757 of the old flags. Adjusted comments.
9759 2011-02-08 DJ Delorie <dj@redhat.com>
9762 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
9765 2011-02-08 Joseph Myers <joseph@codesourcery.com>
9767 * config/m68k/uclinux.opt: New.
9768 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
9770 2011-02-08 Joseph Myers <joseph@codesourcery.com>
9772 * config/cris/elf.opt (sim): New Driver option.
9774 2011-02-08 Joseph Myers <joseph@codesourcery.com>
9776 * config/xtensa/elf.opt: New.
9777 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
9779 2011-02-08 Joseph Myers <joseph@codesourcery.com>
9781 * config/vax/elf.opt: New.
9782 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
9784 2011-02-08 Joseph Myers <joseph@codesourcery.com>
9786 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
9788 2011-02-08 Joseph Myers <joseph@codesourcery.com>
9790 * config/gnu-user.opt: New.
9791 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
9792 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
9793 *-*-uclinux*): Use gnu-user.opt.
9795 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
9797 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
9798 * config/i386/gnu.h (CPP_SPEC): Likewise.
9800 2011-02-08 Ian Lance Taylor <iant@google.com>
9802 * common.opt (fcx-limited-range): Add SetByCombined flag.
9803 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
9804 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
9805 (fassociative-math, freciprocal-math): Likewise.
9806 (funsafe-math-optimizations): Likewise.
9807 * opth-gen.awk: Handle SetByCombined.
9808 * optc-gen.awk: Likewise.
9809 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
9810 (set_unsafe_math_optimizations_flags): Likewise.
9811 * doc/options.texi (Option properties): Document SetByCombined.
9813 2011-02-08 Joseph Myers <joseph@codesourcery.com>
9815 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
9816 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
9817 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
9818 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
9819 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
9821 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
9823 PR tree-optimization/46834
9824 PR tree-optimization/46994
9825 PR tree-optimization/46995
9826 * graphite-sese-to-poly.c (used_outside_reduction): New.
9827 (detect_commutative_reduction): Call used_outside_reduction.
9828 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
9829 translate_scalar_reduction_to_array only when at least one
9830 loop-phi/close-phi tuple has been detected.
9832 2011-02-08 Richard Guenther <rguenther@suse.de>
9835 * tree-vect-generic.c (expand_vector_operations_1): Update
9837 (expand_vector_operations): ... not here. Cleanup EH info
9838 and the CFG if required.
9840 2011-02-08 Richard Guenther <rguenther@suse.de>
9842 PR tree-optimization/47641
9843 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
9844 require type compatibility.
9846 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9848 * gimple-low.c (lower_function_body): Don't remove the location of
9849 the return statement here.
9850 (lower_gimple_return): Do it here instead but only if the return
9851 statement is actually used twice.
9853 2011-02-08 Richard Guenther <rguenther@suse.de>
9855 PR tree-optimization/47632
9856 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
9857 unused up_to_stmt parameter, return whether cfg-cleanup is
9858 necessary, remove EH info properly.
9859 (forward_propagate_into_gimple_cond): Adjust caller.
9860 (forward_propagate_into_cond): Likewise.
9861 (forward_propagate_comparison): Likewise.
9862 (tree_ssa_forward_propagate_single_use_vars): Make
9863 forward_propagate_comparison case similar to the two others.
9865 2011-02-08 Nick Clifton <nickc@redhat.com>
9867 * config/mn10300/mn10300.opt (mliw): New command line option.
9868 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
9869 (liw_bundling): New automaton.
9870 (liw): New attribute.
9871 (liw_op): New attribute.
9872 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
9873 (movsi_internal): Add LIW attributes.
9877 (addsi3): Separate register and immediate alternatives.
9882 (lshrsi3): Likewise.
9883 (ashrsi3): Likewise.
9885 * config/mn10300/mn10300.c (liw_op_names): New
9886 (mn10300_print_operand): Handle 'W' operand descriptor.
9887 (extract_bundle): New function.
9888 (check_liw_constraints): New function.
9889 (liw_candidate): New function.
9890 (mn10300_bundle_liw): New function.
9891 (mn10300_reorg): New function.
9892 (TARGET_MACHINE_DEPENDENT_REORG): Define.
9893 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
9894 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
9895 __LIW__ or __NO_LIW__.
9896 * doc/invoke.texi: Describe the -mliw command line option.
9898 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9900 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
9901 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9902 pthread_mutex_unlock): Remove.
9903 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
9904 * config/pa/t-pa64: Likewise.
9905 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
9906 shared libc if not linking against libpthread.
9907 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
9909 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
9912 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
9913 on 10.6 and later to ensure that we always use the unwinder from
9914 the system. Only add -no_compact_unwind when tarteting darwin
9917 2011-02-07 Steve Ellcey <sje@cup.hp.com>
9920 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
9921 (vec_interleave_lowv2sf): Ditto.
9922 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
9923 (vec_extract_oddv2sf): Ditto.
9925 2011-02-07 Mike Stump <mikestump@comcast.net>
9928 Add __ieee_divdc3 entry point.
9929 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
9931 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
9932 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
9933 * config/darwin.c (darwin_rename_builtins): Add.
9934 * config/darwin-protos.h (darwin_rename_builtins): Add.
9936 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
9939 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
9942 2011-02-07 Mike Stump <mikestump@comcast.net>
9944 * config/darwin.opt (mmacosx-version-min): Update default OS version.
9946 2011-02-07 Denis Chertykov <chertykov@gmail.com>
9949 * config/avr/libgcc.S (exit): Move .endfunc
9951 2011-02-07 Richard Guenther <rguenther@suse.de>
9953 PR tree-optimization/47615
9954 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
9955 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
9956 (run_scc_vn): Initialize it.
9957 (visit_reference_op_load): Use it.
9958 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
9960 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9962 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
9963 DImode trapping arithmetic libfuncs.
9965 2011-02-07 Richard Guenther <rguenther@suse.de>
9967 PR tree-optimization/47621
9968 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
9970 (execute_update_addresses_taken): ... here. Make it more
9971 conservative in what we accept.
9973 2011-02-06 Joseph Myers <joseph@codesourcery.com>
9975 * config/sparc/freebsd.h (ASM_SPEC): Define.
9976 * config/sparc/vxworks.h (ASM_SPEC): Define.
9978 2011-02-06 Joseph Myers <joseph@codesourcery.com>
9980 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
9982 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
9984 * doc/invoke.texi: Remove reference to compiler internals from
9987 * reg-notes.def: Remove REG_VALUE_PROFILE.
9988 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
9990 2011-02-05 Jakub Jelinek <jakub@redhat.com>
9993 * varasm.c (default_section_type_flags): If decl is NULL,
9994 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
9996 2011-02-05 Jie Zhang <jie@codesourcery.com>
9999 * web.c (entry_register): Don't clobber the number of the
10000 first uninitialized reference in used[].
10002 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
10004 PR tree-optimization/46194
10005 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
10006 (build_classic_dist_vector_1): Do not represent classic distance
10007 vectors when the access functions are variating in different loops.
10009 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10011 * config/mips/iris6.opt: New.
10012 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
10014 2011-02-04 Richard Henderson <rth@redhat.com>
10015 Steve Ellcey <sje@cup.hp.com>
10018 * config/ia64/predicates.md (mux1_brcst_element): New.
10019 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
10020 * config/ia64/ia64.c (ia64_unpack_assemble): New.
10021 (ia64_unpack_sign): New.
10022 (ia64_expand_unpack): Rewrite using new routines.
10023 (ia64_expand_widen_sum): Ditto.
10024 (ia64_expand_dot_prod_v8qi): Ditto.
10025 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
10026 routines, add endian check.
10027 (pmpy2_even): Rename from pmpy2_r, add endian check.
10028 (pmpy2_odd): Rename from pmpy2_l, add endian check.
10029 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
10030 (vec_widen_smult_hi_v4hi): Ditto.
10031 (vec_widen_umult_lo_v4hi): Ditto.
10032 (vec_widen_umult_hi_v4hi): Ditto.
10033 (mulv2si3): Change endian checks.
10034 (sdot_prodv4hi): Rewrite with new calls.
10035 (udot_prodv4hi): New.
10036 (vec_pack_ssat_v4hi): Add endian check.
10037 (vec_pack_usat_v4hi): Ditto.
10038 (vec_pack_ssat_v2si): Ditto.
10039 (max1_even): Rename from max1_r, add endian check.
10040 (max1_odd): Rename from max1_l, add endian check.
10041 (*mux1_rev): Format change.
10042 (*mux1_mix): Ditto.
10043 (*mux1_shuf): Ditto.
10044 (*mux1_alt): Ditto.
10045 (*mux1_brcst_v8qi): Use new predicate.
10046 (vec_extract_evenv8qi): Remove endian check.
10047 (vec_extract_oddv8qi): Ditto.
10048 (vec_interleave_lowv4hi): Format change.
10049 (vec_interleave_highv4hi): Ditto.
10050 (mix2_even): Rename from mix2_r, add endian check.
10051 (mix2_odd): Rename from mux2_l, add endian check.
10052 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
10053 (vec_extract_evenodd_helper): Format change.
10054 (vec_extract_evenv4hi): Remove endian check.
10055 (vec_extract_oddv4hi): Remove endian check.
10056 (vec_interleave_lowv2si): Format change.
10057 (vec_interleave_highv2si): Format change.
10058 (vec_initv2si): Remove endian check.
10059 (vecinit_v2si): Add endian check.
10060 (reduc_splus_v2sf): Add endian check.
10061 (reduc_smax_v2sf): Ditto.
10062 (reduc_smin_v2sf): Ditto.
10063 (vec_initv2sf): Remove endian check.
10064 (fpack): Add endian check.
10065 (fswap): Add endian check.
10066 (vec_interleave_highv2sf): Add endian check.
10067 (vec_interleave_lowv2sf): Add endian check.
10068 (fmix_lr): Add endian check.
10069 (vec_setv2sf): Format change.
10070 (*vec_extractv2sf_0_be): Use shift to extract operand.
10071 (*vec_extractv2sf_1_be): New.
10072 (vec_pack_trunc_v4hi): Add endian check.
10073 (vec_pack_trunc_v2si): Format change.
10075 2011-02-04 Jakub Jelinek <jakub@redhat.com>
10077 PR inline-asm/23200
10078 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
10079 do bb, locus and block comparison and disallow loads if it is not set.
10080 (stmt_is_replaceable_p): New function.
10081 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
10083 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
10084 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
10086 * tree-flow.h (stmt_is_replaceable_p): New prototype.
10088 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10090 * config/rs6000/xilinx.opt: New.
10091 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
10093 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10095 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
10097 2011-02-03 Anatoly Sokolov <aesok@post.ru>
10099 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
10100 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10101 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
10102 secondary_reload_info, xtensa_secondary_reload): Remove.
10103 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
10104 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10105 (xtensa_preferred_reload_class): Make static. Change return and
10106 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
10107 Use CONST_DOUBLE_P predicate.
10108 (xtensa_preferred_output_reload_class): New function.
10109 (xtensa_secondary_reload): Make static.
10111 2011-02-03 Joseph Myers <joseph@codesourcery.com>
10113 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
10114 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
10115 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
10117 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10119 PR middle-end/31490
10120 * output.h (SECTION_RELRO): Define.
10121 (SECTION_MACH_DEP): Adjust.
10122 (get_variable_section): New prototype.
10123 * varpool.c (varpool_finalize_named_section_flags): New function.
10124 (varpool_assemble_pending_decls): Call it.
10125 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
10126 * cgraphunit.c (cgraph_output_in_order): Call
10127 varpool_finalize_named_section_flags.
10128 * varasm.c (get_section): Allow section flags conflicts between
10129 relro and read-only sections if the section hasn't been declared yet.
10130 Set SECTION_OVERRIDE after diagnosing section type conflict.
10131 (get_variable_section): No longer static.
10132 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
10133 readonly sections that need relocations.
10134 (decl_readonly_section_1): New function.
10135 (decl_readonly_section): Use it.
10138 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
10139 Steve Ellcey <sje@cup.hp.com>
10141 PR middle-end/31490
10142 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
10143 if section attribute used.
10145 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10147 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
10148 * config/darwin.c (SECTION_NO_ANCHOR): Define.
10149 (darwin_init_sections): Remove assertion.
10151 2011-02-03 Nick Clifton <nickc@redhat.com>
10153 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
10155 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
10156 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
10157 instead of "n" and "pz".
10158 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
10161 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10164 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
10165 fma, expand FMA_EXPR as fma{,f,l} call.
10168 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
10169 copy them into a unsigned char variable and pass address of it to
10170 lto_output_data_stream.
10173 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
10174 around backend_init_target and lang_dependent_init_target calls.
10175 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
10176 (verify_cgraph_node): Don't call set_cfun here. Use
10177 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
10178 Set error_found for incorrectly represented calls to thunks.
10180 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
10183 PR rtl-optimization/43494
10184 * rtl.h (for_each_inc_dec_fn): New type.
10185 (for_each_inc_dec): Declare.
10186 * rtlanal.c (struct for_each_inc_dec_ops): New type.
10187 (for_each_inc_dec_find_inc_dec): New fn.
10188 (for_each_inc_dec_find_mem): New fn.
10189 (for_each_inc_dec): New fn.
10190 * dse.c (struct insn_size): Remove.
10191 (replace_inc_dec, replace_inc_dec_mem): Remove.
10192 (emit_inc_dec_insn_before): New fn.
10193 (check_for_inc_dec): Use it, along with for_each_inc_dec.
10194 (canon_address): Pass mem modes to cselib_lookup.
10195 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
10196 (cselib_lookup_from_insn): Likewise.
10197 (cselib_subst_to_values): Likewise.
10198 * cselib.c (find_slot_memmode): New var.
10199 (cselib_find_slot): New fn. Use it instead of
10200 htab_find_slot_with_hash everywhere.
10201 (entry_and_rtx_equal_p): Use find_slot_memmode.
10202 (autoinc_split): New fn.
10203 (rtx_equal_for_cselib_p): Rename and implement in terms of...
10204 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
10205 Deal with autoinc. Special-case recursion into MEMs.
10206 (cselib_hash_rtx): Likewise.
10207 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
10208 address and MEM modes.
10209 (cselib_subst_to_values): Add memmode, pass it on.
10211 (cselib_lookup): Add memmode argument, pass it on.
10212 (cselib_lookup_from_insn): Add memmode.
10213 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
10214 (struct cselib_record_autoinc_data): New.
10215 (cselib_record_autoinc_cb): New fn.
10216 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
10217 mode to cselib_lookup. Reset autoinced REGs here instead of...
10218 (cselib_process_insn): ... here.
10219 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
10221 (add_uses): Likewise, also to cselib_subst_to_values.
10222 (add_stores): Likewise.
10223 * sched-deps.c (add_insn_mem_dependence): Pass mode to
10224 cselib_subst_to_values.
10225 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
10226 * gcse.c (do_local_cprop): Adjusted.
10227 * postreload.c (reload_cse_simplify_set): Adjusted.
10228 (reload_cse_simplify_operands): Adjusted.
10229 * sel-sched-dump (debug_mem_addr_value): Pass mode.
10231 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
10233 PR tree-optimization/45122
10234 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
10235 unsafe assumptions when there's more than one loop exit.
10237 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
10240 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
10241 Document using vector double with the load/store builtins, and
10242 that the load/store builtins always use Altivec instructions.
10244 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
10245 to use altivec memory instructions, even on VSX.
10246 (vector_altivec_store_<mode>): Ditto.
10248 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
10251 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10252 V2DF, V2DI support to load/store overloaded builtins.
10254 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
10255 altivec load/store builtins for V2DF/V2DI types.
10257 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
10258 set avoid indexed addresses on power6 if -maltivec.
10259 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
10260 vector_altivec_load/vector_altivec_store builtins.
10261 (altivec_expand_st_builtin): Ditto.
10262 (altivec_expand_builtin): Add VSX memory builtins.
10263 (rs6000_init_builtins): Add V2DI types to internal types.
10264 (altivec_init_builtins): Add support for V2DF/V2DI altivec
10265 load/store builtins.
10266 (rs6000_address_for_altivec): Insure memory address is appropriate
10269 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
10270 vec_vsx_ld and vec_vsx_st.
10271 (vsx_store_<mode>): Ditto.
10273 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
10274 variables to hold long long types for VSX vector memory builtins.
10275 (RS6000_BTI_unsigned_long_long): Ditto.
10276 (long_long_integer_type_internal_node): Ditti.
10277 (long_long_unsigned_type_internal_node): Ditti.
10279 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
10280 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
10281 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
10283 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
10285 (vec_vsx_st): Ditto.
10287 2011-02-02 Joseph Myers <joseph@codesourcery.com>
10289 * config/pa/pa-hpux10.opt: New.
10290 * config/hpux11.opt (pthread): New Driver option.
10291 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
10292 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
10294 2011-02-02 Joseph Myers <joseph@codesourcery.com>
10296 * config/ia64/vms.opt: New.
10297 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
10299 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
10302 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
10303 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
10304 generator functions.
10305 (vsx_floatuns<VSi><mode>2): Ditto.
10306 (vsx_fix_trunc<mode><VSi>2): Ditto.
10307 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
10309 2011-02-02 Joseph Myers <joseph@codesourcery.com>
10311 * config/i386/djgpp.opt (posix): New Driver option.
10313 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
10315 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
10316 Move to the unsupported targets list.
10318 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
10320 PR rtl-optimization/47525
10321 * df-scan.c: Update copyright years.
10322 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
10323 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
10325 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10327 * config/i386/sysv4.h (TARGET_VERSION): Remove.
10328 (SUBTARGET_RETURN_IN_MEMORY): Remove.
10329 (ASM_OUTPUT_ASCII): Remove.
10330 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
10332 2011-02-02 Jeff Law <law@redhat.com>
10334 PR middle-end/47543
10335 * reload.c (find_reloads_address): Handle reg+d address where both
10336 components are invalid by reloading the entire address.
10338 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
10339 Richard Guenther <rguenther@suse.de>
10341 PR tree-optimization/40979
10343 * passes.c (init_optimization_passes): After LIM call copy_prop
10344 and DCE to clean up.
10345 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
10347 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
10349 PR tree-optimization/47576
10350 PR tree-optimization/47555
10351 * doc/invoke.texi (scev-max-expr-complexity): Documented.
10352 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
10353 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
10354 * tree-scalar-evolution.c (follow_ssa_edge): Use
10355 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
10357 2011-02-02 Richard Guenther <rguenther@suse.de>
10359 PR tree-optimization/47566
10360 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
10362 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
10366 * tree-inline.c (declare_return_variable): Remove unused caller
10371 * tree-flow-inline.h (clear_is_used, is_used_p): New.
10372 * cfgexpand.c (account_used_vars_for_block): Use them.
10373 * tree-nrv.c (tree_nrv): Likewise.
10374 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
10375 (dump_scope_block): Likewise.
10376 (remove_unused_locals): Likewise.
10380 * tree-inline.c (declare_return_variable): Add result decl to
10381 local decls only once.
10382 * gimple-low.c (record_vars_into): Mark newly-created variables
10385 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
10391 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
10393 (no_real_insns_p, schedule_block, set_priorities): Drop special
10394 treatment of boundary debug insns.
10395 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
10396 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
10397 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
10398 (BOUNDARY_DEBUG_INSN_P): Likewise.
10399 (SCHEDULE_DEBUG_INSN_P): Likewise.
10400 * sched-rgn.c (init_ready_list): Drop special treatment of
10401 boundary debug insns.
10402 * final.c (rest_of_clean_state): Clear notes' BB.
10404 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10406 * config/openbsd.opt (assert=): New Driver option.
10408 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10410 * config/i386/nto.opt: New.
10411 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
10413 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10415 * config/i386/netware.opt: New.
10416 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
10418 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10420 * config/interix.opt (posix): New Driver option.
10422 2011-02-01 DJ Delorie <dj@redhat.com>
10424 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
10426 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
10429 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
10431 PR tree-optimization/47561
10432 * toplev.c (process_options): Print the Graphite flags. Add
10433 flag_loop_flatten to the list of options requiring Graphite.
10435 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10437 * config/i386/cygming.opt (posix): New Driver option.
10439 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10441 * config/arm/vxworks.opt: New.
10442 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
10444 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10446 * config/alpha/elf.opt: New.
10447 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
10448 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
10450 2011-02-01 Richard Guenther <rguenther@suse.de>
10452 PR tree-optimization/47559
10453 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
10454 store-motion on references that can throw.
10456 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
10458 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
10459 * tree-pass.h (TDF_CSELIB): New macro.
10460 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
10461 cselib_lookup): Check for it rather than for TDF_DETAILS.
10463 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
10466 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
10467 is HOST_BIT_BUCKET.
10469 * opts.c (finish_options): Don't add x_aux_base_name if it is
10472 2011-02-01 Richard Guenther <rguenther@suse.de>
10474 PR tree-optimization/47555
10476 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
10478 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
10480 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
10483 * config/lm32/t-lm32: Add multilib for all CPU options.
10485 2011-02-01 Richard Guenther <rguenther@suse.de>
10487 PR tree-optimization/47541
10488 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
10489 sure to have a field at offset zero.
10491 2011-01-31 Joseph Myers <joseph@codesourcery.com>
10493 * config/arc/arc.opt (EB, EL): New Driver options.
10495 2011-01-31 Joseph Myers <joseph@codesourcery.com>
10497 * config/alpha/osf5.opt: New.
10498 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
10500 2011-01-31 Joseph Myers <joseph@codesourcery.com>
10502 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
10504 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
10506 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
10507 -floop-interchange.
10508 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
10509 is an alias of -floop-interchange and that it requires the
10510 Graphite infrastructure.
10511 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
10512 flag_loop_interchange based on the value of flag_tree_loop_linear.
10514 2011-01-31 Jakub Jelinek <jakub@redhat.com>
10515 Richard Guenther <rguenther@suse.de>
10517 PR tree-optimization/47538
10518 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
10519 type instead of r1type, except for comparisons. For right
10520 shifts and comparisons punt if there are mismatches in
10521 sizetype vs. non-sizetype types.
10523 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10525 * doc/sourcebuild.texi (Effective-Target Keywords): Document
10528 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10530 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
10532 * configure: Regenerate.
10534 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10536 * configure.ac (gcc_cv_ld_static_option): Define.
10537 (gcc_cv_ld_dynamic_option): Define.
10538 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
10540 (HAVE_LD_STATIC_DYNAMIC): Update message.
10541 (LD_STATIC_OPTION): Define.
10542 (LD_DYNAMIC_OPTION): Define.
10543 * configure: Regenerate.
10544 * config.in: Regenerate.
10545 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
10546 HAVE_LD_STATIC_DYNAMIC]: Use them.
10548 2011-01-31 Nick Clifton <nickc@redhat.com>
10550 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
10551 registers inside interrupt handlers if the handler is not a leaf
10554 2011-01-31 Nick Clifton <nickc@redhat.com>
10556 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
10557 reg_renumber returning an INVALID_REGNUM.
10559 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
10562 * doc/install.texi: Document host options discarded when cross
10563 configuring target libraries.
10565 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
10568 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
10571 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
10573 (no_real_insns_p, schedule_block, set_priorities): Drop special
10574 treatment of boundary debug insns.
10575 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
10576 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
10577 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
10578 (BOUNDARY_DEBUG_INSN_P): Likewise.
10579 (SCHEDULE_DEBUG_INSN_P): Likewise.
10580 * sched-rgn.c (init_ready_list): Drop special treatment of
10581 boundary debug insns.
10582 * final.c (rest_of_clean-state): Clear notes' BB.
10584 2011-01-31 Alan Modra <amodra@gmail.com>
10586 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
10587 toc relative expressions as we do in print_operand_address.
10589 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
10591 * doc/extend.texi: Follow spelling conventions.
10592 * doc/invoke.texi: Fix a typo.
10594 2011-01-30 Joseph Myers <joseph@codesourcery.com>
10596 * config/hpux11.opt: New.
10597 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
10598 ia64*-*-hpux*): Use hpux11.opt.
10600 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
10602 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
10605 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
10607 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
10610 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
10612 * doc/install.texi (Binaries): Remove outdated reference for
10613 Motorola 68HC11/68HC12 downloads.
10615 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
10617 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
10620 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
10623 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
10626 2011-01-28 Ahmad Sharif <asharif@google.com>
10628 * value-prof.c (check_counter): Corrected error message.
10630 2011-01-29 Jie Zhang <jie@codesourcery.com>
10632 * config/arm/arm.c (arm_legitimize_reload_address): New.
10633 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
10634 arm_legitimize_reload_address.
10635 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
10637 2011-01-28 Ian Lance Taylor <iant@google.com>
10639 * godump.c (go_define): Ignore macros whose definitions include
10640 two adjacent operands.
10642 2011-01-28 Jakub Jelinek <jakub@redhat.com>
10645 * varasm.c (force_const_mem): Store copy of x in desc->constant
10646 instead of x itself.
10647 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
10648 itself into REG_EQUAL note.
10650 2011-01-28 Joseph Myers <joseph@codesourcery.com>
10652 * config/freebsd.opt (posix, rdynamic): New Driver options.
10654 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10656 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
10657 -Bstatic/-Bdynamic.
10658 * configure: Regenerate.
10660 2011-01-27 Joseph Myers <joseph@codesourcery.com>
10662 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
10663 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
10665 2011-01-27 Anatoly Sokolov <aesok@post.ru>
10667 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
10668 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
10669 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
10670 (s390_preferred_reload_class): Make static. Change return and
10671 'rclass' argument type to reg_class_t.
10673 2011-01-27 Jan Hubicka <jh@suse.cz>
10675 PR middle-end/46949
10676 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
10677 (process_function_and_variable_attributes): Check defined weakrefs.
10679 2011-01-27 Martin Jambor <mjambor@suse.cz>
10681 PR tree-optimization/47228
10682 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
10683 build_ref_for_offset.
10685 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10687 * config/spu/spu-elf.h (ASM_SPEC): Remove.
10689 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
10691 PR rtl-optimization/46856
10692 * postreload.c (reload_combine_recognize_const_pattern): Do not
10693 separate cc0 setter and user on cc0 targets.
10695 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
10698 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
10699 passed a VOID_TYPE expression, immediately emit an error and
10700 return error_mark_node.
10702 2011-01-26 Jeff Law <law@redhat.com>
10704 PR rtl-optimization/47464
10705 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
10706 rather than may_trap_p as needed.
10708 2011-01-26 DJ Delorie <dj@redhat.com>
10710 PR rtl-optimization/46878
10711 * combine.c (insn_a_feeds_b): Check for the implicit cc0
10712 setter/user dependency as well.
10714 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
10716 PR rtl-optimization/44469
10717 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
10718 after removing trivially dead basic blocks.
10720 2011-01-26 Joseph Myers <joseph@codesourcery.com>
10722 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
10723 * config/frv/frv.h (LINK_SPEC): Likewise.
10724 * config/i386/netware.h (LINK_SPEC): Likewise.
10725 * config/m68k/linux.h (ASM_SPEC): Likewise.
10726 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
10727 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
10728 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
10729 * config/sparc/linux.h (ASM_SPEC): Likewise.
10730 * config/sparc/linux64.h (ASM_SPEC): Likewise.
10731 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
10733 2011-01-26 Joseph Myers <joseph@codesourcery.com>
10735 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
10736 * config/frv/frv.h (ASM_SPEC): Likewise.
10737 * config/m68k/linux.h (ASM_SPEC): Likewise.
10738 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
10739 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
10740 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
10741 * config/sparc/linux.h (ASM_SPEC): Likewise.
10742 * config/sparc/linux64.h (ASM_SPEC): Likewise.
10743 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
10745 2011-01-26 Joseph Myers <joseph@codesourcery.com>
10747 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
10748 * config/frv/frv.h (LINK_SPEC): Likewise.
10749 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
10751 2011-01-26 Joseph Myers <joseph@codesourcery.com>
10753 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
10754 * config/frv/frv.h (ASM_SPEC): Likewise.
10755 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
10756 * config/m68k/linux.h (ASM_SPEC): Likewise.
10757 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
10758 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
10759 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
10760 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
10761 * config/sparc/linux.h (ASM_SPEC): Likewise.
10762 * config/sparc/linux64.h (ASM_SPEC): Likewise.
10763 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
10764 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
10766 2011-01-26 Steve Ellcey <sje@cup.hp.com>
10769 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
10771 (vec_extract_evenodd_help): Ditto.
10772 (vec_extract_evenv4hi): Ditto.
10773 (vec_extract_oddv4hi): Ditto.
10774 (vec_interleave_lowv2si): Ditto.
10775 (vec_interleave_highv2si): Ditto.
10776 (vec_extract_evenv2si): Ditto.
10777 (vec_extract_oddv2si: Ditto.
10778 (vec_pack_trunc_v2si): Ditto.
10780 2011-01-22 Jan Hubicka <jh@suse.cz>
10783 * cgraph.h (cgraph_local_info): New field can_change_signature.
10784 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
10785 signature can change.
10786 (ipcp_estimate_growth): Call sequence simplify only if calle signature
10788 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
10789 (cgraph_function_versioning): We can not change signature of functions
10790 that don't allow that.
10791 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
10792 (lto_input_node): Likewise.
10793 * ipa-inline.c (compute_inline_parameters): Compute
10794 local.can_change_signature.
10795 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
10796 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
10797 functions that can not change signature.
10798 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
10799 init_cumulative_args): Do not use local calling conventions
10800 for functions that can not change signature.
10802 2011-01-22 Jan Hubicka <jh@suse.cz>
10804 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
10806 2011-01-26 Richard Guenther <rguenther@suse.de>
10808 PR tree-optimization/47190
10809 * cgraphunit.c (process_common_attributes): New function.
10810 (process_function_and_variable_attributes): Use it.
10812 2011-01-26 Richard Guenther <rguenther@suse.de>
10815 * cgraphbuild.c (record_eh_tables): Record reference to personality
10818 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
10821 * sel-sched.c (moveup_expr): Don't let debug insns prevent
10822 non-debug insns from moving up.
10824 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
10827 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
10828 t-dlldir{,-x} fragment for build and add it to tmake_file.
10829 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
10830 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
10831 * config/i386/t-dlldir: New file.
10832 (SHLIB_DLLDIR): Define.
10833 * config/i386/t-dlldir-x: New file.
10834 (SHLIB_DLLDIR): Define.
10835 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
10836 (SHLIB_INSTALL): Use it.
10838 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
10841 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
10842 lower bound of the allowed Thumb-2 coprocessor load/store
10843 index range to -256. Add explaining comment.
10845 2011-01-25 Ian Lance Taylor <iant@google.com>
10847 * godump.c (go_define): Improve lexing of macro expansion to only
10848 accept expressions which match Go spec.
10850 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
10853 * tree.c (handle_dll_attribute): Handle it.
10854 * doc/extend.texi (@item dllexport): Mention it.
10855 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
10857 2011-01-25 Ian Lance Taylor <iant@google.com>
10859 PR tree-optimization/26854
10860 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
10861 (decl_jump_unsafe): Move higher in file, with no other change.
10862 (bind): Set has_jump_unsafe_decl if appropriate.
10863 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
10864 (check_earlier_gotos): Likewise.
10865 (c_check_switch_jump_warnings): Likewise.
10867 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
10869 * doc/invoke.texi (Warning Options): Add missing hyphen.
10870 (-fprofile-dir): Minor grammatical fixes.
10871 (-fbranch-probabilities): Likewise.
10873 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
10877 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
10879 (no_real_insns_p, schedule_block, set_priorities): Drop special
10880 treatment of boundary debug insns.
10881 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
10882 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
10883 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
10884 (BOUNDARY_DEBUG_INSN_P): Likewise.
10885 (SCHEDULE_DEBUG_INSN_P): Likewise.
10886 * sched-rgn.c (init_ready_list): Drop special treatment of
10887 boundary debug insns.
10888 * final.c (rest_of_clean-state): Clear notes' BB.
10890 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10892 * Makefile.in (LAMBDA_H): Removed.
10893 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
10894 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
10895 lambda-trans.o, and tree-loop-linear.o.
10896 (lto-symtab.o): Remove dependence on LAMBDA_H.
10897 (tree-loop-linear.o): Remove rule.
10898 (lambda-mat.o): Same.
10899 (lambda-trans.o): Same.
10900 (lambda-code.o): Same.
10901 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
10902 (tree-vect-slp.o): Same.
10903 * hwint.h (gcd): Moved here.
10904 (least_common_multiple): Same.
10905 * lambda-code.c: Removed.
10906 * lambda-mat.c: Removed.
10907 * lambda-trans.c: Removed.
10908 * lambda.h: Removed.
10909 * tree-loop-linear.c: Removed.
10910 * lto-symtab.c: Do not include lambda.h.
10911 * omega.c (gcd): Removed.
10912 * passes.c (init_optimization_passes): Remove pass_linear_transform.
10913 * tree-data-ref.c (print_lambda_vector): Moved here.
10914 (lambda_vector_copy): Same.
10915 (lambda_matrix_copy): Same.
10916 (lambda_matrix_id): Same.
10917 (lambda_vector_first_nz): Same.
10918 (lambda_matrix_row_add): Same.
10919 (lambda_matrix_row_exchange): Same.
10920 (lambda_vector_mult_const): Same.
10921 (lambda_vector_negate): Same.
10922 (lambda_matrix_row_negate): Same.
10923 (lambda_vector_equal): Same.
10924 (lambda_matrix_right_hermite): Same.
10925 * tree-data-ref.h: Do not include lambda.h.
10926 (lambda_vector): Moved here.
10927 (lambda_matrix): Same.
10928 (dependence_level): Same.
10929 (lambda_transform_legal_p): Removed declaration.
10930 (lambda_collect_parameters): Same.
10931 (lambda_compute_access_matrices): Same.
10932 (lambda_vector_gcd): Same.
10933 (lambda_vector_new): Same.
10934 (lambda_vector_clear): Same.
10935 (lambda_vector_lexico_pos): Same.
10936 (lambda_vector_zerop): Same.
10937 (lambda_matrix_new): Same.
10938 * tree-flow.h (least_common_multiple): Removed declaration.
10939 * tree-parloops.c (lambda_trans_matrix): Moved here.
10940 (LTM_MATRIX): Same.
10941 (LTM_ROWSIZE): Same.
10942 (LTM_COLSIZE): Same.
10943 (LTM_DENOMINATOR): Same.
10944 (lambda_trans_matrix_new): Same.
10945 (lambda_matrix_vector_mult): Same.
10946 (lambda_transform_legal_p): Same.
10947 * tree-pass.h (pass_linear_transform): Removed declaration.
10948 * tree-ssa-loop.c (tree_linear_transform): Removed.
10949 (gate_tree_linear_transform): Removed.
10950 (pass_linear_transform): Removed.
10951 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
10952 flag_loop_interchange.
10954 2011-01-25 Jakub Jelinek <jakub@redhat.com>
10956 PR tree-optimization/47265
10957 PR tree-optimization/47443
10958 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
10959 if name still has some uses.
10961 2011-01-25 Martin Jambor <mjambor@suse.cz>
10963 PR tree-optimization/47382
10964 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
10965 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
10967 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
10969 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
10970 sjlj_except_unwind_info.
10972 2011-01-25 Richard Guenther <rguenther@suse.de>
10974 PR tree-optimization/47426
10975 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
10976 visible functions results escape.
10978 2011-01-25 Jakub Jelinek <jakub@redhat.com>
10981 * config/arm/arm.c (any_sibcall_uses_r3): New function.
10982 (arm_get_frame_offsets): Use it.
10984 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10985 Jakub Jelinek <jakub@redhat.com>
10987 PR tree-optimization/47271
10988 * tree-if-conv.c (bb_postdominates_preds): New.
10989 (if_convertible_bb_p): Call bb_postdominates_preds.
10990 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
10991 (predicate_scalar_phi): Call bb_postdominates_preds.
10993 2011-01-25 Nick Clifton <nickc@redhat.com>
10995 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
10996 * config/rx/rx.c (rx_function_value): Likewise.
10997 (rx_promote_function_mode): Likewise.
10998 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
10999 in order to make it legitimate.
11000 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
11001 make sure that the first operand is the same as the result register.
11002 (addsi3_unspec): Delete.
11003 (subdi3): Do not accept immediate operands.
11004 (subdi3_internal): Likewise.
11006 2011-01-25 Jeff Law <law@redhat.com>
11008 PR rtl-optimization/37273
11009 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11010 handle them like argument loads from stack slots. Do not double
11011 count memory for memory constants and argument loads from stack slots.
11013 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11015 PR tree-optimization/47427
11016 PR tree-optimization/47428
11017 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11018 coalesce if the new root var would be TREE_READONLY.
11020 2011-01-25 Richard Guenther <rguenther@suse.de>
11022 PR middle-end/47414
11023 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
11024 correct type for TBAA.
11026 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11028 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
11029 (close_phi_written_to_memory): Call for_each_index with
11030 dr_indices_valid_in_loop.
11032 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11034 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
11035 when it is initialized.
11037 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11039 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
11040 call to graphite_find_data_references_in_stmt.
11041 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
11042 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
11043 call to graphite_find_data_references_in_stmt.
11044 (analyze_drs_in_stmts): Same.
11045 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
11046 in which the scalar analysis of indices is performed.
11047 (create_data_ref): Same. Update call to dr_analyze_indices.
11048 (find_data_references_in_stmt): Update call to create_data_ref.
11049 (graphite_find_data_references_in_stmt): Same.
11050 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
11052 (create_data_ref): Same.
11053 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
11054 call to create_data_ref.
11056 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11058 * graphite-sese-to-poly.c (build_poly_scop): Move
11059 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
11061 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11063 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
11064 VAR_DECL, PARM_DECL, and RESULT_DECL.
11066 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11068 * graphite-dependences.c (reduction_dr_1): Allow several reductions
11069 in a reduction PBB.
11070 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
11071 that have already been marked as PBB_IS_REDUCTION.
11073 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11075 * graphite-scop-detection.c (same_close_phi_node): New.
11076 (remove_duplicate_close_phi): New.
11077 (make_close_phi_nodes_unique): New.
11078 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
11080 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11082 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
11083 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
11084 of both data references to be the same.
11086 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11088 * graphite-dependences.c (build_lexicographical_constraint): Remove
11089 the gdim parameter.
11090 (build_lexicographical_constraint): Adjust call to
11091 ppl_powerset_is_empty.
11092 (dependence_polyhedron): Same.
11093 (graphite_legal_transform_dr): Same.
11094 (graphite_carried_dependence_level_k): Same.
11095 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
11097 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
11099 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11101 * graphite-sese-to-poly.c
11102 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
11103 (close_phi_written_to_memory): New.
11104 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
11107 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11109 * doc/install.texi: Update the expected version number of PPL to 0.11.
11110 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
11111 #if PPL_VERSION_MINOR < 11.
11113 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11115 * graphite-dependences.c: Include graphite-cloog-util.h.
11116 (new_poly_ddr): Inlined into dependence_polyhedron.
11117 (free_poly_ddr): Moved close by new_poly_ddr.
11118 (dependence_polyhedron_1): Renamed dependence_polyhedron.
11119 Early return NULL when ppl_powerset_is_empty returns true.
11120 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
11121 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
11122 (graphite_legal_transform_dr): Call new_poly_ddr.
11123 (graphite_carried_dependence_level_k): Same.
11124 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
11125 (dot_transformed_deps_stmt_1): Removed.
11126 (dot_deps_stmt_1): Call dot_deps_stmt_2.
11127 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
11128 (dot_deps_1): Call dot_deps_2.
11129 * Makefile.in (graphite-dependences.o): Add missing dependence on
11130 graphite-cloog-util.h.
11132 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11134 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
11135 (build_lexicographical_constraint): Same.
11136 (dependence_polyhedron_1): Same.
11137 (graphite_legal_transform_dr): Same.
11138 (graphite_carried_dependence_level_k): Same.
11139 * graphite-ppl.c (ppl_powerset_is_empty): New.
11140 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
11141 * tree-data-ref.c (dump_data_reference): Print the basic block index.
11143 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11145 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
11146 the "a followed by b" relation and document it.
11148 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11150 * graphite-dependences.c (build_lexicographical_constraint): Stop the
11151 iteration when the bag of constraints is empty.
11153 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11155 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
11157 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11159 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
11160 nest and two loop depths as parameters.
11161 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
11162 lst_perfect_nestify.
11164 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11166 * graphite-dependences.c (print_pddr): Call
11167 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
11169 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11171 * graphite-ppl.c (debug_gmp_value): New.
11172 * graphite-ppl.h (debug_gmp_value): Declared.
11174 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
11176 * doc/install.texi: Document availability of cloog-0.16.
11178 2011-01-25 Vladimir Kargov <kargov@gmail.com>
11180 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
11181 invalid postdominance info.
11183 2011-01-24 Jan Hubicka <jh@suse.cz>
11186 * doc/extend.texi (weak pragma): Drop claim that it must
11187 appear before definition.
11188 * varasm.c (merge_weak, declare_weak): Only sanity check
11189 that DECL is not output at a time it is declared weak.
11191 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
11193 * machmode.def: Fixed comments.
11195 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
11197 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
11199 2011-01-24 Paul Koning <ni1d@arrl.net>
11201 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
11204 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
11207 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
11208 (block_info): Add scanned and prev.
11209 (move_or_delete_vzeroupper_2): Return if the basic block
11210 has been scanned and the upper 128bit state is unchanged
11211 from the last scan.
11212 (move_or_delete_vzeroupper_1): Return true if the exit
11214 (move_or_delete_vzeroupper): Visit basic blocks using the
11215 work-list based algorithm based on vt_find_locations in
11218 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
11220 2011-01-24 Nick Clifton <nickc@redhat.com>
11222 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
11223 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
11224 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
11225 then define __v850e1__.
11226 * doc/invoke.texi: Document -mv850es.
11228 2011-01-24 Richard Henderson <rth@redhat.com>
11230 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
11231 compound unordered comparisons.
11232 * config/rx/rx.c (rx_split_fp_compare): Remove.
11233 * config/rx/rx-protos.h: Update.
11234 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
11235 (cbranchsf4): Don't call rx_split_fp_compare.
11236 (*cbranchsf4): Use rx_split_cbranch.
11237 (*cmpsf): Don't accept "i" constraint.
11238 (*conditional_branch): Only valid after reload.
11239 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
11241 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
11244 * config/rs6000/altivec.md (vector constant splitters): Add
11245 support for creating vector single precision constants if -mvsx is
11246 used and we would create the constant using Altivec primitives.
11248 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
11249 Richard Sandiford <rdsandiford@googlemail.com>
11251 PR rtl-optimization/47166
11252 * reload1.c (emit_reload_insns): Disable the spill_reg_store
11253 mechanism for PRE_MODIFY and POST_MODIFY.
11254 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
11257 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
11259 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
11261 2011-01-22 Jan Hubicka <jh@suse.cz>
11264 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
11266 2011-01-22 Jan Hubicka <jh@suse.cz>
11268 PR tree-optimization/43884
11270 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
11271 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
11273 2011-01-22 Anatoly Sokolov <aesok@post.ru>
11275 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11276 * config/s390/s390.c (s390_register_move_cost,
11277 s390_memory_move_cost): New.
11278 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
11280 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11282 PR middle-end/47401
11283 * except.c (sjlj_assign_call_site_values): Move setting the
11284 crtl->uses_eh_lsda flag to ...
11285 (sjlj_mark_call_sites): ... here.
11286 (sjlj_emit_function_enter): Support NULL dispatch label.
11287 (sjlj_build_landing_pads): In a function with no landing pads
11288 that still has must-not-throw regions, generate code to register
11289 a personality function with empty LSDA.
11291 2011-01-21 Richard Henderson <rth@redhat.com>
11293 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
11295 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
11297 * compare-elim.c: New file.
11298 * Makefile.in (OBJS-common): Add it.
11299 (compare-elim.o): New.
11300 * common.opt (fcompare-elim): New.
11301 * opts.c (default_options_table): Add OPT_fcompare_elim.
11302 * tree-pass.h (pass_compare_elim_after_reload): New.
11303 * passes.c (init_optimization_passes): Add it.
11304 * recog.h: Protect against re-inclusion.
11305 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
11306 * doc/invoke.texi (-fcompare-elim): Document it.
11307 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
11308 * doc/tm.texi: Rebuild.
11310 2011-01-22 Nick Clifton <nickc@redhat.com>
11312 * config/rx/rx.md (cstoresf4): Pass comparison operator to
11313 rx_split_fp_compare.
11315 2011-01-22 Nick Clifton <nickc@redhat.com>
11317 * config/rx/rx.md (UNSPEC_CONST): New.
11318 (deallocate_and_return): Wrap the amount popped off the stack in
11319 an UNSPEC_CONST in order to stop it being rejected by
11320 -mmax-constant-size.
11321 (pop_and_return): Add a "(return)" rtx.
11322 (call): Drop the immediate operand.
11323 (call_internal): Likewise.
11324 (call_value): Likewise.
11325 (call_value_internal): Likewise.
11326 (sibcall_internal): Likewise.
11327 (sibcall_value_internal): Likewise.
11328 (sibcall): Likewise. Generate an explicit call using
11330 (sibcall_value): Likewise.
11331 (mov<>): FAIL if a constant operand is not legitimate.
11332 (addsi3_unpsec): New pattern.
11334 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
11335 (ok_for_max_constant): New function.
11336 (gen_safe_add): New function.
11337 (rx_expand_prologue): Use gen_safe_add.
11338 (rx_expand_epilogue): Likewise.
11339 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
11342 2011-01-21 Jeff Law <law@redhat.com>
11344 PR tree-optimization/47053
11345 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
11346 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
11347 statements are deleted.
11348 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
11349 is nonempty, then purge dead edges and cleanup the CFG.
11351 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
11354 Temporarily revert:
11355 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
11357 * tree-dfa.c (create_var_ann): Mark variable as used.
11359 2011-01-21 Jakub Jelinek <jakub@redhat.com>
11361 PR middle-end/45566
11362 * except.c (convert_to_eh_region_ranges): Emit queued no-region
11363 notes from other section in hot/cold partitioning even if
11364 last_action is -3. Increment call_site_base.
11366 PR rtl-optimization/47366
11367 * fwprop.c (forward_propagate_into): Return bool. If
11368 any changes are made, -fnon-call-exceptions is used and
11369 REG_EH_REGION note is present, call purge_dead_edges
11370 and return true if it purged anything.
11371 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
11372 any EH edges were purged.
11374 2011-01-21 Jeff Law <law@redhat.com>
11376 PR rtl-optimization/41619
11377 * caller-save.c (setup_save_areas): Break out code to determine
11378 which hard regs are live across calls by examining the reload chains
11379 so that it is always used.
11380 Eliminate code which checked REG_N_CALLS_CROSSED.
11382 2011-01-21 Jakub Jelinek <jakub@redhat.com>
11384 PR tree-optimization/47355
11385 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
11386 NOP has non-debug uses beyond PHIs in new_bb.
11388 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
11391 * cfgexpand.c (account_used_vars_for_block): Only account vars
11392 that are annotated as used.
11393 (estimated_stack_frame_size): Don't set TREE_USED.
11394 * tree-dfa.c (create_var_ann): Mark variable as used.
11396 2011-01-21 Richard Guenther <rguenther@suse.de>
11398 PR middle-end/47395
11399 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
11401 2011-01-21 Richard Guenther <rguenther@suse.de>
11403 PR tree-optimization/47365
11404 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
11405 (vn_reference_lookup_pieces): Adjust.
11406 (vn_reference_lookup): Likewise.
11407 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
11408 (vn_reference_lookup_3): Only look through kills if in
11409 VN_WALKREWRITE mode.
11410 (vn_reference_lookup_pieces): Adjust.
11411 (vn_reference_lookup): Likewise.
11412 (visit_reference_op_load): Likewise.
11413 (visit_reference_op_store): Likewise.
11414 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
11415 (compute_avail): Likewise.
11416 (eliminate): Likewise.
11418 2011-01-21 Jakub Jelinek <jakub@redhat.com>
11420 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
11421 DECL_IGNORED_P non-reg vars if they are used.
11423 PR tree-optimization/47391
11424 * varpool.c (const_value_known_p): Return false if
11427 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
11430 * config/i386/i386.c (ix86_local_alignment): Handle
11431 case for va_list_type_node is nil.
11432 (ix86_canonical_va_list_type): Likewise.
11434 2011-01-21 Alan Modra <amodra@gmail.com>
11436 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
11437 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
11439 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11441 * config/arm/arm.md (define_attr type): Rename f_load
11442 and f_store to f_fpa_load and f_fpa_store. Update.
11443 (write_conflict): Deal with rename fallout.
11444 (*push_fp_multi): Likewise.
11445 * config/arm/fpa.md (f_load): Use f_fpa_load.
11446 (f_store): Use f_fpa_store.
11447 (*movsf_fpa): Likewise.
11448 (*movdf_fpa): Likewise.
11449 (*movxf_fpa): Likewise.
11450 (*thumb2_movsf_fpa): Likewise.
11451 (*thumb2_movdf_fpa): Likewise.
11452 (*thumb2_movxf_fpa): Likewise.
11453 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
11454 f_loadd and f_stored.
11455 (*thumb2_movdi_vfp): Likewise.
11456 (*thumb2_movsf_vfp): Fix attribute to f_loads.
11457 (*thumb2_movsi_vfp): Likewise.
11458 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
11459 Use f_loads instead of f_load.
11460 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
11462 2011-01-20 Anatoly Sokolov <aesok@post.ru>
11464 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11465 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
11466 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11467 (xtensa_mode_dependent_address_p): New function.
11468 (constantpool_address_p): Make static. Change return type to bool.
11469 Change argument type to const_rtx. Use CONST_INT_P predicate.
11471 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
11474 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
11476 2011-01-20 Jakub Jelinek <jakub@redhat.com>
11479 * cfgexpand.c (expand_debug_expr): Instead of generating
11480 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
11483 2011-01-20 Richard Guenther <rguenther@suse.de>
11485 PR middle-end/47370
11486 * tree-inline.c (remap_gimple_op_r): Recurse manually for
11487 the pointer operand of MEM_REFs.
11489 2011-01-20 Jakub Jelinek <jakub@redhat.com>
11491 PR tree-optimization/46130
11492 * ipa-split.c (consider_split): If return_bb contains non-virtual
11493 PHIs other than for retval or if split_function would not adjust it,
11496 2011-01-20 Richard Guenther <rguenther@suse.de>
11498 PR tree-optimization/47167
11499 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
11500 Revert previous change, only avoid enumeral type changes.
11502 2011-01-19 Mike Stump <mikestump@comcast.net>
11504 * doc/tm.texi.in (BRANCH_COST): Englishify.
11505 * doc/tm.texi (BRANCH_COST): Likewise.
11507 2011-01-19 Dodji Seketeli <dodji@redhat.com>
11510 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
11511 (gen_scheduled_generic_parms_dies): New functions.
11512 (gen_struct_or_union_type_die): Schedule template parameters DIEs
11513 generation for the end of CU compilation.
11514 (dwarf2out_finish): Generate template parameters DIEs here.
11516 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
11519 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
11520 debug bind stmt on merge edges.
11522 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
11526 * function.c (instantiate_expr): Instantiate incoming rtl of
11527 implicit arguments, and recurse on VALUE_EXPRs.
11528 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
11529 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
11531 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
11533 * c-parser.c (c_parser_for_statement): Initialize
11534 collection_expression.
11536 2011-01-19 Joseph Myers <joseph@codesourcery.com>
11538 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
11540 2011-01-19 Joseph Myers <joseph@codesourcery.com>
11542 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
11543 (LINK_SHLIB_SPEC): Don't use %(link_path).
11544 (SUBTARGET_EXTRA_SPECS): Remove link_path.
11546 2011-01-19 Joseph Myers <joseph@codesourcery.com>
11548 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
11549 (NO_SHARED_LIB_SUPPORT): Remove.
11550 (LINK_SHLIB_SPEC): Remove one conditional definition.
11552 2011-01-19 Joseph Myers <joseph@codesourcery.com>
11554 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
11556 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
11557 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
11558 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
11559 %{call_shared} and conditionals on these options not being passed.
11560 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
11563 2011-01-19 Jakub Jelinek <jakub@redhat.com>
11565 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
11568 * ipa-split.c: Spelling fixes.
11570 2011-01-19 Richard Henderson <rth@redhat.com>
11572 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
11573 (*mulsi3): Likewise.
11575 * longlong.h [__mn10300__] (count_leading_zeros): New.
11576 [__mn10300__] (umul_ppmm, smul_ppmm): New.
11577 [__mn10300__] (add_ssaaaa, subddmmss): New.
11578 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
11579 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
11581 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11583 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
11585 2011-01-19 Richard Henderson <rth@redhat.com>
11587 * config/mn10300/mn10300.md (addsi3_flags): New.
11588 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
11589 (subsi3_flags, subc_internal, subdi3): New.
11590 (subdi3_internal, *subdi3_degenerate): New.
11591 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
11593 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
11594 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
11595 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
11596 * config/mn10300/mn10300-protos.h: Update.
11597 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
11598 (return_ret): Likewise. Rename from return_internal_regs.
11599 (return_internal): Remove.
11601 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
11602 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
11603 (mn10300_legitimate_constant_p): Likewise.
11604 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
11605 (mn10300_frame_size): New.
11606 (mn10300_expand_prologue): Use it.
11607 (mn10300_expand_epilogue): Likewise.
11608 (mn10300_initial_offset): Likewise.
11609 * config/mn10300/mn10300-protos.h: Update.
11610 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
11611 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
11612 (prologue, epilogue, return_internal): Tidy output code.
11613 (mn10300_store_multiple_operation, return): Likewise.
11614 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
11615 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
11616 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
11617 (load_pic, am33_load_pic): New.
11618 (mn10300_load_pic0, mn10300_load_pic1): New.
11620 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
11621 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
11622 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
11623 (cc_flags_for_mode, cc_flags_for_code): New.
11624 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
11625 overflow flag is not valid. Validate that the flags we need
11626 for the comparison are valid.
11627 (mn10300_output_cmp): Remove.
11628 (mn10300_output_add): New.
11629 (mn10300_select_cc_mode): Use cc_flags_for_code.
11630 (mn10300_split_cbranch): New.
11631 (mn10300_match_ccmode): New.
11632 (mn10300_split_and_operand_count): New.
11633 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
11635 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
11636 (addsi3): ... here. Use mn10300_output_add.
11637 (*addsi3_flags): New.
11638 (*am33_subsi3, *mn10300_subsi3): Merge...
11639 (subsi3): ... here. Use attribute isa.
11640 (*subsi3_flags): New.
11641 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
11643 (*am33_andsi3, *mn10300_andsi3): Merge...
11644 (andsi3): ... here.
11645 (*andsi3_flags): New.
11646 (andsi3 splitters): New.
11647 (*am33_iorsi3, *mn10300_iorsi3): Merge...
11648 (iorsi3): ... here.
11649 (*iorsi3_flags): New.
11650 (*am33_xorsi3, *mn10300_xorsi3): Merge...
11651 (xorsi3): ... here.
11652 (*xorsi3_flags): New.
11653 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
11654 (one_cmplsi2): ... here.
11655 (*one_cmplsi2_flags): New.
11656 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
11657 instead of "dax" in constraints. Use mn10300_split_cbranch.
11658 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
11659 use matching constraints to eliminate a self-comparison.
11660 (*integer_conditional_branch): Rename from integer_conditional_branch.
11661 Use int_mode_flags to match CC_REG.
11662 (*cbranchsi4_btst, *btstsi): New.
11663 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
11664 mn10300_split_cbranch.
11665 (*am33_cmpsf): Rename from am33_cmpsf.
11666 (*float_conditional_branch): Rename from float_conditional_branch.
11667 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
11668 (zero_extendqisi2): ... here.
11669 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
11670 (zero_extendhisi2): ... here.
11671 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
11672 (extendqisi2): ... here.
11673 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
11674 (extendhisi2): ... here.
11675 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
11676 (ashlsi3): ... here.
11677 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
11678 (lshrsi3): ... here.
11679 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
11680 (ashrsi3): ... here.
11681 (consecutive add peephole): Remove.
11682 * config/mn10300/predicates.md (label_ref_operand): New.
11683 (int_mode_flags): New.
11684 (CCZN_comparison_operator): New.
11686 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
11687 (throughput_42_latency_43): New reservation.
11688 (mulsidi3, umulsidi3): New expanders.
11689 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
11690 the MDR register to allocation; separately allocate the low and
11691 high parts of the DImode result.
11692 (umulsidi3_internal): Similarly.
11693 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
11694 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
11695 (udivsi3, umodsi3): Remove.
11696 (udivmodsi4, divmodsi4): New expanders.
11697 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
11698 (*divmodsi4): Simiarly.
11699 (ext_internal): New.
11701 * config/mn10300/constraints.md ("z"): New constraint.
11702 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
11703 (FIXED_REGISTERS): Don't fix MDR.
11704 (CALL_USED_REGSITERS): Reformat nicely.
11705 (REG_ALLOC_ORDER): Add MDR.
11706 (enum regclass): Add MDR_REGS.
11707 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
11708 (IRA_COVER_CLASSES): Add MDR_REGS.
11709 (REGNO_REG_CLASS): Handle MDR_REG.
11710 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
11711 (mn10300_register_move_cost): Likewise.
11712 * config/mn10300/mn10300.md (MDR_REG): New.
11713 (*movsi_internal): Handle moves to/from MDR_REGS.
11715 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
11717 (mn10300_secondary_reload): Tidy combination reload classes.
11718 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
11719 addresses for AM33. Allow symbolic offsets for reg+imm.
11720 (mn10300_regno_in_class_p): New.
11721 (mn10300_legitimize_reload_address): New.
11722 * config/mn10300/mn10300.h (enum reg_class): Remove
11723 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
11724 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
11725 SP_OR_GENERAL_REGS.
11726 (REG_CLASS_NAMES): Update to match.
11727 (REG_CLASS_CONTENTS): Likewise.
11728 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
11729 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
11730 (REGNO_IN_RANGE_P): Remove.
11731 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
11732 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
11733 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
11734 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
11735 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
11736 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
11737 (REGNO_GENERAL_P): New.
11738 (HAVE_POST_MODIFY_DISP): New.
11739 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
11740 (LEGITIMIZE_RELOAD_ADDRESS): New.
11741 * config/mn10300/mn10300-protos.h: Update.
11743 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
11744 DATA_REGS for AM33 stack-pointer destination.
11745 (mn10300_preferred_output_reload_class): Likewise.
11746 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
11747 into a form appropriate for ...
11748 (TARGET_SECONDARY_RELOAD): New.
11749 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
11750 * config/mn10300/mn10300-protos.h: Update.
11751 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
11752 reload_insi; use the "A" constraint for the scratch; handle AM33
11753 moves of sp to non-address registers.
11755 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
11756 (*movqi_internal): ... here.
11757 (*am33_movhi, *mn10300_movhi): Merge into...
11758 (*movhi_internal): ... here.
11759 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
11760 as the source/destination of moves from/to SP.
11761 (movsf): Only allow for AM33-2.
11762 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
11763 any integer constant constraint. Only allow for AM33-2. Tidy
11764 all of the alternative outputs.
11765 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
11766 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
11768 (udivsi3, umodsi3): New patterns for MN103 only.
11770 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
11772 * doc/tm.texi.in: Spell out that a lack of register class unions
11774 * doc/tm.texi: Regenerate.
11776 2011-01-19 Jakub Jelinek <jakub@redhat.com>
11778 PR rtl-optimization/47337
11779 * dce.c (check_argument_store): New function.
11780 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
11782 PR tree-optimization/47290
11783 * tree-eh.c (infinite_empty_loop_p): New function.
11784 (cleanup_empty_eh): Use it.
11786 2011-01-18 Steve Ellcey <sje@cup.hp.com>
11789 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
11790 (a64_expand_widen_sum): Ditto.
11791 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
11792 (vec_extract_evenodd_help): Ditto.
11793 (vec_extract_evenv4hi): Ditto.
11794 (vec_extract_oddv4hi): Ditto.
11795 (vec_extract_evenv2si): Ditto.
11796 (vec_extract_oddv2si): Ditto.
11797 (vec_extract_evenv2sf): Ditto.
11798 (vec_extract_oddv2sf): Ditto.
11799 (vec_pack_trunc_v4hi: Ditto.
11800 (vec_pack_trunc_v2si): Ditto.
11801 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
11802 (vec_interleave_highv8qi): Ditto.
11804 (vec_extract_oddv8qi): Ditto.
11805 (vec_interleave_lowv4hi): Ditto.
11806 (vec_interleave_highv4hi): Ditto.
11807 (vec_interleave_lowv2si): Ditto.
11808 (vec_interleave_highv2si): Ditto.
11810 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11812 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
11813 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
11814 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
11815 (pa_c_mode_for_suffix): New.
11816 (TARGET_EXPAND_BUILTIN): Define.
11817 (TARGET_C_MODE_FOR_SUFFIX): Define.
11818 (pa_builtins): Define.
11819 (pa_init_builtins): Register __float128 type and init new support
11821 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
11822 * config/pa/quadlib.c (_U_Qfcopysign): New.
11824 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
11826 PR middle-end/46894
11827 * explow.c (allocate_dynamic_stack_space): Do not assume more than
11828 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
11831 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11833 PR tree-optimization/47179
11834 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
11835 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
11837 2011-01-18 Richard Guenther <rguenther@suse.de>
11839 PR rtl-optimization/47216
11840 * emit-rtl.c: Include tree-flow.h.
11841 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
11842 of replicating it with different semantics.
11843 * Makefile.in (emit-rtl.o): Adjust.
11845 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11847 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
11848 (cortex_a9_dp): Handle neon types correctly.
11850 2011-01-18 Jakub Jelinek <jakub@redhat.com>
11852 PR rtl-optimization/47299
11853 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
11854 subtarget. Use normal multiplication if both operands are constants.
11855 * expmed.c (expand_widening_mult): Don't try to optimize constant
11856 multiplication if op0 has VOIDmode. Convert op1 constant to mode
11859 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11861 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
11862 spacing after 'e.g.', typos, comma, hyphenation.
11864 2011-01-17 Richard Henderson <rth@redhat.com>
11866 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
11867 (rx_restricted_mem_operand): New.
11868 (rx_shift_operand): Use register_operand.
11869 (rx_source_operand, rx_compare_operand): Likewise.
11870 * config/rx/rx.md (addsi3_flags): New expander.
11871 (adddi3): Rewrite as expander.
11872 (adc_internal, *adc_flags, adddi3_internal): New patterns.
11873 (subsi3_flags): New expander.
11874 (subdi3): Rewrite as expander.
11875 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
11877 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
11878 (rx_init_builtins): Remove sat builtin.
11879 (rx_expand_builtin): Likewise.
11880 * config/rx/rx.md (ssaddsi3): New.
11881 (*sat): Rename from sat. Represent the CC_REG input.
11883 * config/rx/predicates.md (rshift_operator): New.
11884 * config/rx/rx.c (rx_expand_insv): Remove.
11885 * config/rx/rx-protos.h: Update.
11886 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
11887 operand to the canonical position.
11888 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
11889 (*bitclr, *bitclr_in_memory): Similarly.
11890 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
11891 (insv): Retain the zero_extract in the expansion.
11893 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
11894 (bswaphi2, bitinvert, revw): Likewise.
11896 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
11897 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
11898 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
11899 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
11900 (bitset, bitset_in_memory): Likewise.
11901 (bitinvert, bitinvert_in_memory): Likewise.
11902 (bitclr, bitclr_in_memory): Likewise.
11903 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
11904 (rx_strend, rx_cmpstrn): Likewise.
11905 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
11906 (bitop peep2 patterns): Remove.
11908 * config/rx/rx.c (rx_match_ccmode): New.
11909 * config/rx/rx-protos.h: Update.
11910 * config/rx/rx.md (abssi2): Clobber, don't set flags.
11911 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
11912 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
11913 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
11914 (fix_truncsfsi2, floatsisf2): Likewise.
11915 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
11916 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
11917 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
11918 (*subsi3_flags, *xorsi3_flags): New.
11920 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
11922 * config/rx/rx.c (rx_print_operand): Remove workaround for
11923 unsplit comparison operations.
11925 * config/rx/rx.md (movsicc): Split after reload.
11926 (*movsicc): Merge *movsieq and *movsine via match_operator.
11927 (*stcc): New pattern.
11929 * config/rx/rx.c (rx_float_compare_mode): Remove.
11930 * config/rx/rx.h (rx_float_compare_mode): Remove.
11931 * config/rx/rx.md (cstoresi4): Split after reload.
11932 (*sccc): New pattern.
11934 * config/rx/predicates.md (label_ref_operand): New.
11935 (rx_z_comparison_operator): New.
11936 (rx_zs_comparison_operator): New.
11937 (rx_fp_comparison_operator): New.
11938 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
11939 Validate that the flags are set properly for the comparison.
11940 (rx_gen_cond_branch_template): Remove.
11941 (rx_cc_modes_compatible): Remove.
11942 (mode_from_flags): New.
11943 (flags_from_code): Rename from flags_needed_for_conditional.
11944 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
11945 (rx_select_cc_mode): Likewise.
11946 (rx_split_fp_compare): New.
11947 (rx_split_cbranch): New.
11948 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
11949 (*cbranchsi4): Use match_operator and rx_split_cbranch.
11950 (*cbranchsf4): Similarly.
11951 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
11952 match_operator and rx_split_cbranch.
11953 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
11954 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
11955 (*cmpsi): Rename from cmpsi.
11956 (*tstsi): Rename from tstsi.
11957 (*cmpsf): Rename from cmpsf; use CC_Fmode.
11958 (*conditional_branch): Rename from conditional_branch.
11959 (*reveresed_conditional_branch): Remove.
11960 (b<code>): Remove expander.
11961 * config/rx/rx-protos.h: Update.
11963 * config/rx/rx.c (rx_compare_redundant): Remove.
11964 * config/rx/rx.md (cmpsi): Don't use it.
11965 * config/rx/rx-protos.h: Update.
11967 * config/rx/rx-modes.def (CC_F): New mode.
11968 * config/rx/rx.c (rx_select_cc_mode): New.
11969 * config/rx/rx.h (SELECT_CC_MODE): Use it.
11970 * config/rx/rx-protos.h: Update.
11972 2011-01-17 Richard Henderson <rth@redhat.com>
11974 * except.c (dump_eh_tree): Fix stray ; after for statement.
11976 2011-01-17 Richard Guenther <rguenther@suse.de>
11978 PR tree-optimization/47313
11979 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
11980 handling before copying the body. Properly deal with
11981 by-reference result in SSA form.
11983 2011-01-17 Ian Lance Taylor <iant@google.com>
11986 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
11987 (struct_value_alias_set): Don't define.
11988 (sparc_option_override): Don't set sparc_sr_alias_set and
11989 struct_value_alias_set.
11990 (save_or_restore_regs): Use gen_frame_mem rather than calling
11992 (sparc_struct_value_rtx): Likewise.
11994 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
11997 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
11998 (_mm_maskstore_pd): Likewise.
11999 (_mm_maskload_ps): Likewise.
12000 (_mm_maskstore_ps): Likewise.
12001 (_mm256_maskload_pd): Change mask to __m256i.
12002 (_mm256_maskstore_pd): Likewise.
12003 (_mm256_maskload_ps): Likewise.
12004 (_mm256_maskstore_ps): Likewise.
12006 * config/i386/i386-builtin-types.def: Updated.
12007 (ix86_expand_special_args_builtin): Likewise.
12009 * config/i386/i386.c (bdesc_special_args): Update
12010 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
12011 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
12012 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
12013 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
12015 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
12016 Use <avxpermvecmode> on mask register.
12017 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
12019 2011-01-17 Olivier Hainque <hainque@adacore.com>
12020 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12021 Eric Botcazou <ebotcazou@adacore.com>
12024 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
12025 if <= USHRT_MAX in 32-bit mode.
12027 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12029 * doc/install.texi (Configuration, Specific): Wrap long
12030 lines in examples. Allow line wrapping in long options
12031 and URLs where beneficial for PDF output.
12033 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
12035 * config/mips/mips.c (mips_classify_symbol): Don't return
12036 SYMBOL_PC_RELATIVE for nonlocal labels.
12038 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
12040 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
12042 2011-01-15 Jan Hubicka <jh@suse.cz>
12044 PR tree-optimization/47276
12045 * ipa.c (function_and_variable_visibility): Do not try to mark alias
12046 declarations as needed.
12048 2011-01-15 Martin Jambor <mjambor@suse.cz>
12050 * common.opt (fdevirtualize): New flag.
12051 * doc/invoke.texi (Option Summary): Document it.
12052 * opts.c (default_options_table): Add devirtualize flag.
12053 * ipa-prop.c (detect_type_change): Return immediately if
12054 devirtualize flag is not set.
12055 (detect_type_change_ssa): Likewise.
12056 (compute_known_type_jump_func): Likewise.
12057 (ipa_analyze_virtual_call_uses): Likewise.
12059 2011-01-14 Martin Jambor <mjambor@suse.cz>
12061 PR tree-optimization/45934
12062 PR tree-optimization/46302
12063 * ipa-prop.c (type_change_info): New type.
12064 (stmt_may_be_vtbl_ptr_store): New function.
12065 (check_stmt_for_type_change): Likewise.
12066 (detect_type_change): Likewise.
12067 (detect_type_change_ssa): Likewise.
12068 (compute_complex_assign_jump_func): Check for dynamic type change.
12069 (compute_complex_ancestor_jump_func): Likewise.
12070 (compute_known_type_jump_func): Likewise.
12071 (compute_scalar_jump_functions): Likewise.
12072 (ipa_analyze_virtual_call_uses): Likewise.
12073 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
12075 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12077 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
12078 * config/i386/i386.opt (msse5): New Alias.
12080 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12082 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12083 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12084 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12085 * config/sparc/sparc.h (CC1_SPEC): Likewise.
12087 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12089 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
12091 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12092 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12093 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
12094 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
12096 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
12098 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12100 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
12102 2011-01-14 Mike Stump <mikestump@comcast.net>
12104 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
12105 * config/fr30/fr30.md: Likweise
12106 (movsi_push): Likewise.
12107 (movsi_pop): Likewise.
12108 (enter_func): Likewise.
12109 * config/moxie/moxie.md (movsi_push): Likewise.
12110 (movsi_pop): Likewise.
12112 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12114 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
12115 %{no_archive} %{exact_version}.
12116 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
12117 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
12118 %{no_archive} %{exact_version}.
12119 * config/mips/openbsd.h (LINK_SPEC): Likewise.
12120 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
12121 * config/mips/vxworks.h: Likewise.
12123 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12125 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
12127 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12129 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
12130 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
12132 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12134 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
12137 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12139 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
12141 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
12142 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
12144 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
12145 Don't handle -shlib.
12147 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12149 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
12150 (CC1_SPEC): Don't handle -profile.
12152 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12154 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
12155 * config/mips/mips.h (CC1_SPEC): Likewise.
12157 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12159 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
12160 * config/mips/mips.h (CC1_SPEC): Likewise.
12162 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12164 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
12165 * config/m32r/linux.h (LINK_SPEC): Likewise.
12166 * config/mips/linux.h (LINK_SPEC): Likewise.
12167 * config/mips/linux64.h (LINK_SPEC): Likewise.
12168 * config/sparc/linux.h (LINK_SPEC): Likewise.
12169 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
12170 LINK_SPEC): Likewise.
12171 * config/xtensa/linux.h (LINK_SPEC): Likewise.
12173 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12175 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
12177 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
12179 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12181 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
12182 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
12184 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12186 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
12188 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12190 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
12191 supports -Bstatic/-Bdynamic.
12192 * configure: Regenerate.
12194 2011-01-14 Jan Hubicka <jh@suse.cz>
12195 Jack Howarth <howarth@bromo.med.uc.edu>
12198 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
12199 when checking debug_info_level. Test write_symbols instead of
12200 debug_hooks->var_location when setting flag_var_tracking_uninit.
12202 2011-01-14 Richard Guenther <rguenther@suse.de>
12204 PR tree-optimization/47179
12205 * target.def (ref_may_alias_errno): New target hook.
12206 * targhooks.h (default_ref_may_alias_errno): Declare.
12207 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
12208 (default_ref_may_alias_errno): New function.
12209 * target.h (struct ao_ref_s): Declare.
12210 * tree-ssa-alias.c: Include target.h.
12211 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
12212 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
12213 (targhooks.o): Likewise.
12214 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
12215 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
12217 2011-01-14 Richard Guenther <rguenther@suse.de>
12219 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
12221 2011-01-14 Richard Guenther <rguenther@suse.de>
12223 PR tree-optimization/47280
12224 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
12225 return CFG changes.
12226 (tree_ssa_forward_propagate_single_use_vars): Deal with
12227 CFG changes from associate_plusminus.
12229 2011-01-14 Richard Guenther <rguenther@suse.de>
12231 PR middle-end/47281
12233 2011-01-11 Richard Guenther <rguenther@suse.de>
12235 PR tree-optimization/46076
12236 * tree-ssa.c (useless_type_conversion_p): Conversions from
12237 unprototyped to empty argument list function types are useless.
12239 2011-01-14 Richard Guenther <rguenther@suse.de>
12241 PR tree-optimization/47286
12242 * tree-ssa-structalias.c (new_var_info): Register variables are global.
12244 2011-01-14 Martin Jambor <mjambor@suse.cz>
12246 PR middle-end/46823
12247 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
12249 2011-01-13 Anatoly Sokolov <aesok@post.ru>
12251 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
12252 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12253 * config/xtensa/xtensa.c (xtensa_libcall_value,
12254 xtensa_function_value_regno_p): New functions.
12255 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12257 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
12260 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
12262 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
12263 New function prototype.
12264 * config/i386/winnt.c (i386_pe_assemble_visibility):
12265 Warn only if attribute was specified by user.
12267 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
12270 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
12272 (floatunsdidf2_fcfidu): Ditto.
12274 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12276 * config/s390/s390.c (print_operand_address): Replace 'error' with
12277 'output_operand_lossage'.
12278 (print_operand): Likewise.
12280 2011-01-13 Jeff Law <law@redhat.com>
12282 PR rtl-optimization/39077
12283 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
12284 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
12285 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
12286 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
12287 * gcse.c (prune_insertions_deletions): New function.
12288 (compute_pre_data): Use it.
12290 2011-01-13 Dodji Seketeli <dodji@redhat.com>
12293 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
12295 (prune_unused_types_mark): Use it.
12297 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
12299 PR rtl-optimization/45352
12300 * sel-sched.c: Update copyright years.
12301 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
12302 in the advancing loop when we have issued issue_rate insns.
12304 2011-01-12 Richard Henderson <rth@redhat.com>
12306 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
12307 (TARGET_MD_ASM_CLOBBERS): New.
12309 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
12310 (TARGET_DELEGITIMIZE_ADDRESS): New.
12312 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
12313 (clzsi2, *bsch): New patterns.
12315 * config/mn10300/mn10300.md (INT): New mode iterator.
12316 (*mov<INT>_clr): New pattern, and peep2 to generate it.
12318 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
12319 flag_split_wide_types.
12321 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
12322 (mn10300_trampoline_init): Rewrite without a template, an immediate
12323 load and a direct branch.
12324 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
12326 2011-01-12 Anatoly Sokolov <aesok@post.ru>
12328 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12329 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
12330 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
12331 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12333 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
12336 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
12339 2011-01-12 Jan Hubicka <jh@suse.cz>
12342 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
12343 (PLUGIN_COND_CLOSE): New macro.
12344 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
12346 2011-01-12 Richard Guenther <rguenther@suse.de>
12349 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
12350 register variables in a MEM_REF.
12352 2011-01-12 Joseph Myers <joseph@codesourcery.com>
12354 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
12355 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
12356 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
12357 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
12358 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
12359 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
12360 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
12361 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
12362 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
12363 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
12364 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
12365 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
12366 * config/gnu-user.h: New. Copied from linux.h.
12367 (LINUX_TARGET_STARTFILE_SPEC): Rename to
12368 GNU_USER_TARGET_STARTFILE_SPEC.
12369 (LINUX_TARGET_ENDFILE_SPEC): Rename to
12370 GNU_USER_TARGET_ENDFILE_SPEC.
12371 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
12372 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
12373 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
12374 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
12375 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
12376 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
12377 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
12378 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
12379 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
12380 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
12381 * config/arm/linux-eabi.h (CC1_SPEC): Use
12382 GNU_USER_TARGET_CC1_SPEC.
12383 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
12384 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
12385 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
12386 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
12387 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
12388 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
12389 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
12390 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
12392 2011-01-12 Richard Guenther <rguenther@suse.de>
12395 * doc/invoke.texi (ffast-math): Document it is turned on
12398 2011-01-12 Jan Hubicka <jh@suse.cz>
12400 PR tree-optimization/47233
12401 * opts.c (common_handle_option): Disable ipa-reference with profile
12404 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
12406 * c-parser.c (c_parser_objc_at_property_declaration): Improved
12409 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
12411 * c-parser.c (c_lex_one_token): Updated and reindented some
12412 comments. No changes in code.
12414 2011-01-11 Ian Lance Taylor <iant@google.com>
12416 * godump.c (go_output_var): Don't output the variable if there is
12417 already a type with the same name.
12419 2011-01-11 Ian Lance Taylor <iant@google.com>
12421 * godump.c (go_format_type): Don't generate float80.
12423 2011-01-11 Richard Henderson <rth@redhat.com>
12425 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
12426 declaration. Rewrite for both speed and size.
12427 (mn10300_address_cost_1): Remove.
12428 (mn10300_register_move_cost): New.
12429 (mn10300_memory_move_cost): New.
12430 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
12431 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
12432 extensions, shifts, BSWAP, CLZ.
12433 (mn10300_wide_const_load_uses_clr): Remove.
12434 (TARGET_REGISTER_MOVE_COST): New.
12435 (TARGET_MEMORY_MOVE_COST): New.
12436 * config/mn10300/mn10300-protos.h: Update.
12437 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
12439 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
12440 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
12441 * config/mn10300/mn10300-protos.h: Update.
12442 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
12443 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
12444 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
12445 (*test_int_bitfield, *test_byte_bitfield): Remove.
12446 (*bit_test, *subreg_bit_test): Remove.
12447 * config/mn10300/predicates.md (const_8bit_operand): Remove.
12449 * config/mn10300/constraints.md ("c"): Rename from "A".
12450 ("A", "D"): New constraint letters.
12451 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
12452 (fmssf4, fnmasf4, fnmssf4): Likewise.
12454 * config/mn10300/mn10300.md (isa): New attribute.
12455 (enabled): New attribute.
12457 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
12458 (abssf2, negsf2): Define only for hardware fp.
12459 (sqrtsf2): Reformat.
12460 (addsf3, subsf3, mulsf3): Merge expander and insn.
12462 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
12463 (DEBUGGER_AUTO_OFFSET): Remove.
12464 (DEBUGGER_ARG_OFFSET): Remove.
12466 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
12467 Emit register stores with the same offsets as the hardware.
12468 (mn10300_store_multiple_operation): Don't check that the register
12469 save offsets are monotonic.
12470 * config/mn10300/mn10300-protos.h: Update.
12472 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
12474 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
12475 in terms of the value on the stack, not the MDR register.
12477 2011-01-11 Jan Hubicka <jh@suse.cz>
12481 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
12482 (symbol_alias_set_destroy, symbol_alias_set_contains,
12483 propagate_aliases_backward): Declare.
12484 * lto-streamer-out.c (struct sets): New sturcture.
12485 (trivally_defined_alias): New function.
12486 (output_alias_pair_p): Rewrite.
12487 (output_unreferenced_globals): Fix output of alias pairs.
12488 (produce_symtab): Likewise.
12489 * ipa.c (function_and_variable_visibility): Set weak alias destination
12491 * varasm.c (symbol_alias_set_t): Remove.
12492 (symbol_alias_set_destroy): Export.
12493 (propagate_aliases_forward, propagate_aliases_backward): New functions
12495 (compute_visible_aliases): ... this one; remove.
12496 (trivially_visible_alias): New
12497 (trivially_defined_alias): New.
12498 (remove_unreachable_alias_pairs): Rewrite.
12499 (finish_aliases_1): Reorganize code checking if alias is defined.
12500 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
12503 2011-01-11 Richard Guenther <rguenther@suse.de>
12505 PR tree-optimization/46076
12506 * tree-ssa.c (useless_type_conversion_p): Conversions from
12507 unprototyped to empty argument list function types are useless.
12509 2011-01-11 Richard Guenther <rguenther@suse.de>
12511 PR middle-end/45235
12512 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
12513 volatile MEMs as MEM_READONLY_P.
12515 2011-01-11 Richard Guenther <rguenther@suse.de>
12517 PR tree-optimization/47239
12518 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
12520 2011-01-11 Jeff Law <law@redhat.com>
12522 PR tree-optimization/47086
12523 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
12524 IVs from statements that might throw.
12526 2011-01-10 Jan Hubicka <jh@suse.cz>
12529 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
12531 2011-01-10 Jan Hubicka <jh@suse.cz>
12534 * profile.c (read_profile_edge_counts): Ignore profile inconistency
12535 when correcting profile.
12537 2011-01-10 Jan Hubicka <jh@suse.cz>
12540 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
12541 DECL_FINI_PRIORITY.
12542 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
12543 Restore DECL_FINI_PRIORITY.
12545 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12547 * doc/gimple.texi: Fix quoting of multi-word return values in
12548 @deftypefn statements. Ensure presence of return value. Wrap
12549 overlong @deftypefn lines.
12550 (is_gimple_operand, is_gimple_min_invariant_address): Remove
12551 descriptions of removed functions.
12552 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
12553 of multi-word return value in @deftypefn statement.
12555 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12557 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
12558 (Conditional Expressions, Logical Operators)
12559 (Statement and operand traversals): Do not indent smallexample
12560 code. Fix duplicate function argument in example.
12562 2011-01-10 Jeff Law <law@redhat.com>
12564 PR tree-optimization/47141
12565 * ipa-split.c (split_function): Handle case where we are
12566 returning a value and the return block has a virtual operand phi.
12568 2011-01-10 Jan Hubicka <jh@suse.cz>
12570 PR tree-optimization/47234
12571 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
12572 (pass_feedback_split_functions): Declare.
12573 * passes.c (init_optimization_passes): Add ipa-split as subpass of
12575 * ipa-split.c (gate_split_functions): Update comments; disable
12576 split-functions for profile_arc_flag and branch_probabilities.
12577 (gate_feedback_split_functions): New function.
12578 (execute_feedback_split_functions): New function.
12579 (pass_feedback_split_functions): New global var.
12581 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
12584 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
12585 calling gimple_call_set_cannot_inline.
12587 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
12589 * config/darwin-sections.def: Remove unused section.
12591 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
12594 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
12596 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
12599 * c-parser.c (c_parser_declaration_or_fndef): Improved
12602 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
12604 * config/i386/winnt.c (i386_pe_start_function): Make sure
12605 to switch back to function's section.
12607 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
12611 * plugin.c: Move include of dlfcn.h from here...
12612 * system.h: ... to here.
12614 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12616 * doc/cpp.texi (C++ Named Operators): Fix markup for header
12618 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
12619 two extra empty pages in PDF output.
12621 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
12624 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
12625 for error recovery purposes behave as if it was not specified so
12626 that the default type is usd.
12628 2011-01-07 Jan Hubicka <jh@suse.cz>
12630 PR tree-optmization/46469
12631 * ipa.c (function_and_variable_visibility): Clear needed flags on
12632 nodes with external decls; handle weakrefs merging correctly.
12634 2011-01-07 Joseph Myers <joseph@codesourcery.com>
12636 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
12639 2011-01-07 Jan Hubicka <jh@suse.cz>
12641 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
12642 and no longer claim that gold is required for linker plugin.
12643 * configure: Regenerate.
12644 * gcc.c (PLUGIN_COND): New macro.
12645 (LINK_COMMAND_SPEC): Use it.
12646 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
12647 * config.in (HAVE_LTO_PLUGIN): New.
12648 * configure.ac (--with-lto-plugin): New parameter; autodetect
12651 2011-01-07 Jan Hubicka <jh@suse.cz>
12653 PR tree-optimization/46367
12654 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
12655 when we can update original.
12656 (cgraph_mark_inline_edge): Sanity check.
12657 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
12659 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12661 * config/spu/spu.h (ASM_COMMENT_START): Define.
12663 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
12666 * gcc.c (%>S): New.
12667 (SWITCH_KEEP_FOR_GCC): Likewise.
12668 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
12669 (do_spec_1): Handle "%>".
12671 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
12673 2011-01-07 Jakub Jelinek <jakub@redhat.com>
12676 * config/i386/i386.c (ix86_delegitimize_address): If
12677 simplify_gen_subreg fails, return orig_x.
12680 * value-prof.c (gimple_stringop_fixed_value): Handle
12681 lhs of the call properly.
12683 2011-01-07 Jan Hubicka <jh@suse.cz>
12686 * lto-opt.c (lto_reissue_options): Set flag_shlib.
12688 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
12690 * target.def (function_switched_text_sections): New hook.
12691 * doc/tm.texi: Regenerated.
12692 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
12693 * final.c (default_function_switched_text_sections): New.
12694 (final_scan_insn): Call function_switched_text_sections when a
12695 mid-function section change occurs.
12696 * output.h (default_function_switched_text_sections): Declare.
12697 * config/darwin-protos.h (darwin_function_switched_text_sections):
12699 * config/darwin.c (darwin_function_switched_text_sections): New.
12700 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
12702 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
12704 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
12705 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
12706 the secondary code fragment when outputting for DWARF == 2.
12708 2011-01-07 Anatoly Sokolov <aesok@post.ru>
12710 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12711 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
12713 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
12714 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12716 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
12719 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
12720 when it is not empty.
12722 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
12725 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
12726 (case ${target}): Add btver1.
12727 * config/i386/driver-i386.c (host_detect_local_cpu): Let
12728 -march=native recognize btver1 processors.
12729 * config/i386/i386-c.c (ix86_target_macros_internal): Add
12730 btver1 def_and_undef
12731 * config/i386/i386.c (struct processor_costs btver1_cost): New
12733 (m_BTVER1): New definition.
12734 (m_AMD_MULTIPLE): Includes m_BTVER1.
12735 (initial_ix86_tune_features): Add btver1 tune.
12736 (processor_target_table): Add btver1 entry.
12737 (static const char *const cpu_names): Add btver1 entry.
12738 (software_prefetching_beneficial_p): Add btver1.
12739 (ix86_option_override_internal): Add btver1 instruction sets.
12740 (ix86_issue_rate): Add btver1.
12741 (ix86_adjust_cost): Add btver1.
12742 * config/i386/i386.h (TARGET_BTVER1): New definition.
12743 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
12744 (enum processor_type): Add PROCESSOR_BTVER1.
12745 * config/i386/i386.md (define_attr "cpu"): Add btver1.
12747 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12750 * config/i386/i386.c (legitimize_tls_address)
12751 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
12752 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
12753 (tls_initial_exec_64_sun): New pattern.
12755 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
12757 * doc/invoke.texi (Overall Options): Improve wording and markup
12758 of the description of -wrapper.
12760 2011-01-06 Joseph Myers <joseph@codesourcery.com>
12762 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
12763 rdynamic, threads): New Driver options.
12765 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12768 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
12769 if coming from .tdata.
12770 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
12772 2011-01-06 Jan Hubicka <jh@suse.cz>
12775 * collect2.c (main): Do not enable LTOmode when plugin is active.
12777 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12780 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
12781 --version output if supported.
12782 * configure: Regenerate.
12784 2011-01-06 Joseph Myers <joseph@codesourcery.com>
12786 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
12789 2011-01-06 Jakub Jelinek <jakub@redhat.com>
12792 * c-convert.c (convert): When converting a complex expression
12793 other than COMPLEX_EXPR to a different complex type, ensure
12794 c_save_expr is called instead of save_expr, unless in_late_binary_op.
12795 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
12796 when converting COMPLEX_TYPE.
12798 2011-01-06 Ira Rosen <irar@il.ibm.com>
12800 PR tree-optimization/47139
12801 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
12802 only the last reduction value is used outside the loop. Update
12805 2011-01-05 Joseph Myers <joseph@codesourcery.com>
12807 * config/rtems.opt: New.
12808 * config.gcc (*-*-rtems*): Use rtems.opt.
12810 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
12812 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
12813 processors do not support 3DNow instructions.
12815 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12817 * config/spu/spu.c (spu_option_override): Set parameter
12818 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
12820 2011-01-05 Jan Hubicka <jh@suse.cz>
12822 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
12823 at the command line.
12825 2011-01-05 Martin Jambor <mjambor@suse.cz>
12828 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
12829 deltas on streamed outgoing edges.
12830 (output_node_opt_summary): Output info for outgoing edges only when
12831 the node is in new parameter set.
12832 (output_cgraph_opt_summary): New parameter set, passed to the two
12833 aforementioned functions. Update its forward declaration and its
12836 2011-01-05 Tom Tromey <tromey@redhat.com>
12838 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
12839 operator to c_finish_omp_atomic.
12840 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
12841 (build_unary_op): Update.
12842 (build_modify_expr): Update.
12843 (build_asm_expr): Update.
12845 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12847 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
12848 newly inserted insns.
12849 (pad_bb): Likewise.
12850 (spu_emit_branch_hint): Likewise.
12851 (insert_hbrp_for_ilb_runout): Likewise.
12852 (spu_machine_dependent_reorg): Call df_finish_pass after
12853 schedule_insns returns.
12855 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12857 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
12859 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
12861 PR tree-optimization/47005
12862 * tree-sra.c (struct access): Add 'non_addressable' bit.
12863 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
12864 (decide_one_param_reduction): Return 0 if the parameter is passed by
12865 reference and one of the accesses in the group is non_addressable.
12867 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
12869 PR tree-optimization/47056
12870 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
12871 (mark_load): Likewise. Handle FUNCTION_DECL specially.
12872 (mark_store): Likewise. Pass STMT to ipa_record_reference.
12874 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
12876 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
12877 initializer. Skip view conversions from aggregate types.
12879 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
12882 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
12884 2011-01-04 Philipp Thomas <pth@suse.de>
12886 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
12889 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12891 * function.c (thread_prologue_and_epilogue_insns): Do not crash
12892 on empty epilogue sequences.
12894 2011-01-04 Joseph Myers <joseph@codesourcery.com>
12896 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
12897 non-static): New Driver options.
12899 2011-01-04 Jie Zhang <jie@codesourcery.com>
12902 * gcc.c (default_compilers[]): Set combinable field to 0
12903 for all assembly languages.
12905 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
12907 * config/mips/loongson3a.md: New file.
12908 * config/mips/mips.md: Include loongson3a.md.
12909 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
12912 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
12914 PR middle-end/47017
12915 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
12916 instead of convert_memory_address_addr_space on the base expression.
12918 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12920 * config/spu/spu.c (spu_option_override): Update error text
12921 for bad -march= / -mtune= values.
12923 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12925 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
12926 if branch-hint optimization will be performed.
12928 2011-01-03 Jakub Jelinek <jakub@redhat.com>
12930 PR tree-optimization/47148
12931 * ipa-split.c (split_function): Convert arguments to
12932 DECL_ARG_TYPE if possible.
12934 PR tree-optimization/47155
12935 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
12936 when computing uns.
12938 PR rtl-optimization/47157
12939 * combine.c (try_combine): If undobuf.other_insn becomes
12940 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
12941 and set *new_direct_jump_p too.
12943 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
12945 PR tree-optimization/47021
12946 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
12948 2011-01-03 Jakub Jelinek <jakub@redhat.com>
12950 * gcc.c (process_command): Update copyright notice dates.
12951 * gcov.c (print_version): Likewise.
12952 * gcov-dump.c (print_version): Likewise.
12953 * mips-tfile.c (main): Likewise.
12954 * mips-tdump.c (main): Likewise.
12956 2011-01-03 Martin Jambor <mjambor@suse.cz>
12958 PR tree-optimization/46801
12959 * tree-sra.c (type_internals_preclude_sra_p): Check whether
12960 aggregate fields start at byte boundary instead of the bit-field flag.
12962 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
12965 * gcc.c (main): Revert revision 168407.
12967 2011-01-03 Martin Jambor <mjambor@suse.cz>
12969 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
12971 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12973 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
12974 vector optab to expand vector/scalar shift, update gimple to vector.
12976 2011-01-03 Martin Jambor <mjambor@suse.cz>
12978 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
12981 2011-01-03 Martin Jambor <mjambor@suse.cz>
12983 PR tree-optimization/46984
12984 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
12986 (cgraph_create_indirect_edge): Fixed line length.
12987 (cgraph_indirect_call_info): Declare.
12988 (cgraph_make_edge_direct) Update declaration.
12989 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
12990 (cgraph_create_indirect_edge): Use it.
12991 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
12993 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
12994 the new thunk_delta representation.
12995 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
12997 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
12998 (ipa_read_indirect_edge_info): Likewise.
12999 * lto-cgraph.c (output_edge_opt_summary): New function.
13000 (output_node_opt_summary): Call it on all outgoing edges.
13001 (input_edge_opt_summary): New function.
13002 (input_node_opt_summary): Call it on all outgoing edges.
13004 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
13007 * gcc.c (main): Don't check have_o when settting combine_inputs.
13009 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
13011 * regrename.c: Add general comment describing the pass.
13012 (struct du_head): Remove 'length' field.
13013 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
13014 (regrename_optimize): Do not sort chains. Rework comments, add others.
13015 Force renaming to the preferred class (if any) in the first pass and do
13016 not consider registers that belong to it in the second pass.
13017 (create_new_chain): Do not set 'length' field.
13018 (scan_rtx_reg): Likewise.
13020 2011-01-02 Jakub Jelinek <jakub@redhat.com>
13022 PR tree-optimization/47140
13023 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
13024 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
13025 to bit_value_binop.
13027 PR rtl-optimization/47028
13028 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
13029 parm_birth_insn instead of at the beginning of first bb.
13031 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
13033 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
13034 Remove the word "see" before "@pxref".
13035 * doc/rtl.texi: Remove the word "see" before "@pxref".
13037 2011-01-01 Jan Hubicka <jh@suse.cz>
13039 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
13042 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
13045 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
13048 Copyright (C) 2011 Free Software Foundation, Inc.
13050 Copying and distribution of this file, with or without modification,
13051 are permitted in any medium without royalty provided the copyright
13052 notice and this notice are preserved.