1 2011-04-01 Vladimir Makarov <vmakarov@redhat.com>
4 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
7 * ira-emit.c (emit_move_list): Update reg equiv init insn list.
9 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
11 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
12 (expr_equiv_p): Remove.
13 (insert_set_in_table): Look at <dest, src> pair instead of expr.
14 (hash_scan_set): Update call to insert_set_in_table.
15 (dump_hash_table): Dump <dest, src> pair.
16 (lookup_set): Simplify. Lookup <dest, src> pair.
17 (compute_transp): Remove, fold heavily simplified code into...
18 (compute_local_properties): ...here. Expect COMP and TRANSP
20 (find_avail_set): Take set directly from struct expr.
21 (find_bypass-set): Likewise.
22 (bypass_block): Likewise.
23 (cprop_insn): Likewise. Remove redundant INSN_P test.
25 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
26 checks on form of COND from find_implicit_sets to here.
27 (find_implicit_sets): Cleanup control flow. Split critical edges
28 if it exposes implicit sets. Allocate/resize implicit_sets as
30 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
31 changed something. Run df_analyze after find_implicit_sets if any
32 edges were split. Do not allocate implicit_sets here.
34 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
35 (gcse_obstack): Renamed to cprop_obstack.
36 (GNEW, GNEWVEC, GNEWVAR): Remove.
38 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
39 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
40 (gcse_alloc): Likewise, and rename to cprop_alloc.
41 (alloc_gcse_men, free_gcse_mem): Remove.
42 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
43 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
44 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
46 * cprop.c (oprs_not_set_p): Remove.
47 (mark_set, mark_clobber): Remove.
48 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
49 (reg_not_set_p): New function.
50 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
51 (cprop_insn): Likewise.
52 (cprop_jump): Use FOR_EACH_EDGE.
54 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
57 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
58 (rank_for_schedule): Use scheduled_insns vector instead of
60 (ok_for_early_queue_removal): Likewise.
61 (queue_to_ready): Search forward in nonscheduled_insns_begin if
63 (choose_ready): Likewise.
64 (commit_schedule): Use VEC_iterate.
65 (schedule_block): Initialize nonscheduled_insns_begin. If we have
66 a dbg_cnt, use it and ensure the first insn is in the ready list.
67 (haifa_sched_init): Allocate scheduled_insns.
68 (sched_extend_ready_list): Don't allocate it; reserve space.
69 (haifa_sched_finish): Free it.
71 2011-04-04 Joseph Myers <joseph@codesourcery.com>
73 * optc-gen.awk: Always remove type from Variable entry before
74 recording in var_seen.
76 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
78 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
79 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
80 call to tidy_fallthru_edges.
82 2011-04-04 Joseph Myers <joseph@codesourcery.com>
84 * doc/options.texi (ToLower): Document.
85 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower
87 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
88 * opts.h (cl_option): Add cl_tolower field.
89 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
90 arguments with lowercase strings.
91 * config/rx/rx.opt (mcpu=): Add ToLower.
92 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
95 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
97 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
99 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
101 * config/vax/vax.c: Include reload.h.
103 2011-04-04 Anatoly Sokolov <aesok@post.ru>
105 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
106 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
107 (sparc_preferred_reload_class): New function.
109 2011-04-04 Jakub Jelinek <jakub@redhat.com>
112 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
113 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
115 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
117 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
118 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
120 2011-04-03 Anatoly Sokolov <aesok@post.ru>
122 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
123 (ASM_OUTPUT_ALIGNED_BSS): Define.
125 2011-04-03 Michael Matz <matz@suse.de>
127 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
128 and next_slot members.
129 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
130 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
131 (lto_streamer_cache_append): Declare.
132 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
133 unsigned index, remove offset parameter, ensure that we append
134 or update existing entries.
135 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
136 parameter, update next_slot for append.
137 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
139 (lto_streamer_cache_insert_at): Likewise.
140 (lto_streamer_cache_append): New function.
141 (lto_streamer_cache_lookup): Use unsigned index.
142 (lto_streamer_cache_get): Likewise.
143 (lto_record_common_node): Don't test tree_node_can_be_shared.
144 (preload_common_node): Adjust call to lto_streamer_cache_insert.
145 (lto_streamer_cache_delete): Don't free offsets member.
146 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
147 (lto_output_string_with_length): Use lto_output_data_stream.
148 (lto_output_tree_header): Remove ix parameter, don't write it.
149 (lto_output_builtin_tree): Likewise.
150 (lto_write_tree): Adjust callers to above, don't track and write
151 offset, write unsigned index.
152 (output_unreferenced_globals): Don't emit all global vars.
153 (write_global_references): Use unsigned indices.
154 (lto_output_decl_state_refs): Likewise.
155 (write_symbol): Likewise.
156 * lto-streamer-in.c (lto_input_chain): Move earlier.
157 (input_function): Use unsigned index.
158 (input_alias_pairs): Don't read and then ignore all global vars.
159 (lto_materialize_tree): Remove ix_p parameter, don't read index,
160 don't pass it back, use lto_streamer_cache_append.
161 (lto_register_var_decl_in_symtab): Use unsigned index.
162 (lto_register_function_decl_in_symtab): Likewise.
163 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
165 (lto_get_builtin_tree): Don't read index, use
166 lto_streamer_cache_append.
167 (lto_read_tree): Adjust call to lto_materialize_tree.
169 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
170 don't use function calls in arguments to MIN.
172 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
175 * gimple.c (gimple_type_leader_entry): Mark deletable.
177 2011-04-03 Alan Modra <amodra@gmail.com>
179 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
181 2011-04-03 Michael Matz <matz@suse.de>
183 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
185 * tree.h (tree_decl_non_common.vindex): Adjust comment.
187 2011-04-03 Michael Matz <matz@suse.de>
189 * cgraphbuild.c (record_reference): Canonicalize constructor values.
190 * gimple-fold.c (canonicalize_constructor_val): Accept being called
191 without function context.
192 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
193 current_function_decl and cfun.
195 2011-04-03 Michael Matz <matz@suse.de>
197 * tree.c (decl_init_priority_insert): Don't create entry for
199 (decl_fini_priority_insert): Ditto.
200 (fields_compatible_p, find_compatible_field): Remove.
201 * tree.h (fields_compatible_p, find_compatible_field): Remove.
202 * gimple.c (gimple_compare_field_offset): Adjust block comment.
204 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
206 * combine.c (try_combine): Remove useless local variable.
208 2011-04-03 Richard Guenther <rguenther@suse.de>
209 Ira Rosen <ira.rosen@linaro.org>
211 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
212 non-variable offsets and compare the remaining bases of the two
213 accesses instead of looking for exact same data-ref.
215 2011-04-02 Kai Tietz <ktietz@redhat.com>
218 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
220 * i386.c (ix86_is_msabi_thiscall): New helper function.
221 (ix86_is_type_thiscall): New helper function.
222 (ix86_comp_type_attributes): Handle thiscall for method-functions
224 (init_cumulative_args): Likewise.
225 (find_drap_reg): Likewise.
226 (ix86_static_chain): Likewise.
227 (x86_this_parameter): Likewise.
228 (x86_output_mi_thunk): Likewise.
230 2011-04-01 Olivier Hainque <hainque@adacore.com>
231 Nicolas Setton <setton@adacore.com>
232 Eric Botcazou <ebotcazou@adacore.com>
234 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
235 (add_gnat_descriptive_type_attribute): New function.
236 (gen_array_type_die): Call it.
237 (gen_enumeration_type_die): Likewise.
238 (gen_struct_or_union_type_die): Likewise.
239 (modified_type_die): Likewise.
240 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
241 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
242 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
244 2011-04-01 Jakub Jelinek <jakub@redhat.com>
247 * dwarf2out.c (resolve_addr): Don't call force_decl_die
248 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
251 2011-03-17 Richard Guenther <rguenther@suse.de>
254 * lto-cgraph.c (input_overwrite_node): Clear the abstract
255 origin for decls in other ltrans units.
256 (input_varpool_node): Likewise.
258 2011-04-01 Jakub Jelinek <jakub@redhat.com>
261 * expr.c (expand_assignment): Handle all possibilities
263 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
264 (store_split_bit_field): If SUBREG_REG (op0) or
265 op0 itself has smaller mode than word, return it
266 for offset 0 and const0_rtx for out-of-bounds stores.
267 If word is const0_rtx, skip it.
269 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
271 * config/h8300/h8300.c (print_operand_address): Rename to...
272 (h8300_print_operand_address): ...this. Make static. Adjust comments.
273 Call h8300_print_operand and h8300_print_operand_address instead of
274 print_operand and print_operand_address. Declare.
275 (print_operand): Renake to...
276 (h8300_print_operand): ...this. Make static. Adjust comments.
277 Call h8300_print_operand instead of print_operand. Declare.
278 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
279 (h8300_register_move_cost): Likewise.
280 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
281 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
282 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
283 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
284 * config/h8300/h8300-protos.h (print_operand): Delete.
285 (print_operand_address): Delete.
287 2011-04-01 Richard Henderson <rth@redhat.com>
290 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
291 in strict mode before dwarf4. Re-order tests to early out
292 before switching sections.
294 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
296 * config/h8300/constraints.md: New file.
297 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
298 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
299 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
300 * config/h8300/predicates.md (bit_operand): Likewise.
301 (incdec_operand): Use satisfies_constraint_M and
302 satisfies_constraint_O. Don't use C code block.
303 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
304 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
305 (compute_mov_length): Use satisfies_constraint_G.
306 (fix_bit_operand): Use satisfies_constraint_U.
307 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
308 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
309 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
310 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
311 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
312 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
313 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
314 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
315 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
316 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
317 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
318 (EXTRA_MEMORY_CONSTRAINT): Delete.
320 2011-04-01 Andrew Pinski <pinskia@gmail.com>
321 Michael Meissner <meissner@linux.vnet.ibm.com>
324 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
325 operands, as per the specifications.
327 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
328 (vec_extract_evenv4sf): Ditto.
329 (vec_extract_evenv8hi): Ditto.
330 (vec_extract_evenv16qi): Ditto.
331 (vec_extract_oddv4si): Ditto.
333 2011-03-31 Mark Wielaard <mjw@redhat.com>
335 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
336 high_pc attribute if the CU has no associated code. Only output
337 DW_AT_entry_pc for CU if not generating strict dwarf and
340 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
342 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
343 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
345 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
346 * final.c (final_start_function): Call the new function rather
347 than using a NULL argument for dwarf2out_frame_debug.
349 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
350 that contains the prologue.
352 * haifa-sched.c (queue_insn): New arg REASON. All callers
353 changed. Print it in debugging output.
355 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
357 * sched-ebb.c (begin_schedule_ready): Remove second argument.
358 Split most of the code into...
359 (begin_move_insn): ... here. New function.
360 (ebb_sched_info): Add a pointer to it.
361 * haifa-sched.c (scheduled_insns): New static variable.
362 (sched_extend_ready_list): Allocate it.
363 (schedule_block): Use it to record the order of scheduled insns.
364 Perform RTL changes to move insns only after all scheduling
365 decisions have been made.
366 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
367 begin_move_insn field.
368 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
369 * sched-int.h (struct haifa_sched_info): Remove second argument
370 from begin_schedule_ready hook. Add new member begin_move_insn.
371 * sched-rgn.c (begin_schedule_ready): Remove second argument.
372 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
374 * haifa-sched.c (prune_ready_list): New function, broken out of
376 (schedule_block): Use it.
378 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
380 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
382 2011-04-01 Kai Tietz <ktietz@redhat.com>
384 * config.gcc (*-*-mingw*): Allow as option the
385 posix threading model.
386 * config/i386/mingw32.h ( SPEC_PTHREAD1, SPEC_PTHREAD2):
387 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
389 (CPP_SPEC): Add pthread/no-pthread handling.
390 (LIB_SPEC): Likewise.
391 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
392 (LIB_SPEC): Likewise.
393 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
394 flag to pass -pthread option for shared libgcc build.
395 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
396 for shared libgcc build.
397 * config/i386/t-mingw-pthread: New file.
398 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
399 New define to enable use of library pthread by default.
400 * config/i386/mingw.opt (pthread): New driver option.
401 (no-pthread): New driver option.
402 * config/i386/cygming.opt: Make sure trailing empty line is retained.
403 * config/i386/mingw-w64.opt: Likewise.
405 2011-04-01 Gary Funck <gary@intrepid.com>
407 * c-decl.c (grokdeclarator): Fix formatting.
409 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
411 * expr.c (emit_block_move_via_movmem): Use n_generator_args
412 instead of n_operands.
413 (set_storage_via_setmem): Likewise.
414 * optabs.c (maybe_gen_insn): Likewise.
415 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
416 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
417 (mips_expand_builtin_direct): Likewise.
418 * config/spu/spu.c (expand_builtin_args): Likewise.
420 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
422 * recog.h (insn_data_d): Add n_generator_args.
423 * genoutput.c (data): Likewise.
424 (output_insn_data): Print it.
425 (max_opno, num_dups): Delete.
426 (scan_operands): Just fill in "d->operand[...]".
427 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
429 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
431 * gensupport.h (pattern_stats): New structure.
432 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
433 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
434 (max_operand_1, max_operand_vec): Delete.
435 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
437 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
439 * emit-rtl.c (emit_pattern_after_setloc): New function.
440 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
441 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
442 (emit_pattern_after): New function.
443 (emit_insn_after, emit_jump_insn_after): Call it.
444 (emit_call_insn_after, emit_debug_insn_after): Likewise.
445 (emit_pattern_before_setloc): New function.
446 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
447 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
449 (emit_pattern_before): New function.
450 (emit_insn_before, emit_jump_insn_before): Call it.
451 (emit_call_insn_before, emit_debug_insn_before): Likewise.
453 2011-03-31 Richard Henderson <rth@redhat.com>
455 * dwarf2out.c (dw_separate_line_info_ref): Remove.
456 (dw_separate_line_info_entry): Remove.
457 (enum dw_line_info_opcode): New.
458 (dw_line_info_entry): Use it.
459 (dw_line_info_table, dw_line_info_table_p): New.
460 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
461 (line_info_table, line_info_label_num): Remove.
462 (line_info_table_in_use): Remove.
463 (separate_line_info_table): Remove.
464 (separate_line_info_table_allocated): Remove.
465 (separate_line_info_table_in_use): Remove.
466 (LINE_INFO_TABLE_INCREMENT): Remove.
467 (line_info_label_num): New.
468 (cur_line_info_table): New.
469 (text_section_line_info, cold_text_section_line_info): New.
470 (separate_line_info): New.
471 (SEPARATE_LINE_CODE_LABEL): Remove.
472 (print_dwarf_line_table): Remove.
473 (debug_dwarf): Don't dump it.
474 (output_one_line_info_table): New.
475 (output_line_info): Use it.
476 (new_line_info_table): New.
477 (set_cur_line_info_table): New.
478 (dwarf2out_switch_text_section): Use it.
479 (dwarf2out_begin_function): Likewise.
480 (push_dw_line_info_entry): New.
481 (dwarf2out_source_line): Rewrite for new line info tables.
482 (dwarf2out_init): Remove dead initailizations.
484 2011-03-31 Joseph Myers <joseph@codesourcery.com>
486 * opts.h (cl_option): Add comments to fields. Add bit-fields for
488 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
489 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
490 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
491 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
492 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
493 * opt-functions.awk (flag_init, switch_bit_fields): New.
494 (switch_flags): Don't handle flags moved to bit-fields. Don't
495 generate CL_MISSING_OK or CL_SAVE.
496 * optc-gen.awk: Update to generate bit-field output as well as
498 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
499 bit-field instead of CL_REJECT_DRIVER flag.
500 * opts-common.c (generate_canonical_option,
501 decode_cmdline_option): Use bit-fields instead of CL_* flags.
502 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
503 instead of CL_REJECT_NEGATIVE flag.
504 * toplev.c (print_switch_values): Use cl_report bit-field instead
507 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
509 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
510 a zero minimum index only if it is redundant.
512 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
514 PR rtl-optimization/48381
515 * ira-color.c (assign_hard_reg): Use hard reg set intersection
516 instead of ira_class_hard_reg_index for calculating conflicting
519 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
521 * cprop.c: Clean up hash table building.
522 (reg_avail_info): Remove.
523 (oprs_available_p): Remove.
524 (record_last_reg_set_info): Remove.
525 (record_last_set_info): Remove.
526 (reg_available_p): New function.
527 (gcse_constant_p): Do not treat unfolded conditions as constants.
528 (make_set_regs_unavailable): New function.
529 (hash_scan_set): Simplify with new reg_available_p.
530 (compute_hash_table_work): Traverse insns stream only once.
531 Do not compute reg_avail_info. Traverse insns in reverse order.
532 Record implicit sets after recording explicit sets from the block.
534 2011-03-31 Michael Matz <matz@suse.de>
536 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
538 2011-03-31 Anatoly Sokolov <aesok@post.ru>
540 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
541 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
542 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
543 (h8300_mode_dependent_address_p): New function.
544 (h8300_get_index): Make static.
546 2011-03-31 Jeff Law <law@redhat.com>
548 * reload1.c (elimination_effects): Fix typo in recent change.
550 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
551 typo potentially leading to null pointer dereference.
553 * caller-save.c (new_saved_hard_reg): Eliminate return value.
554 (setup_save_areas): Corresponding changes to avoid useless
557 * jump.c (reversed_comparison_code_parts): Avoid successive return
558 statements when REVERSE_CONDITION is defined.
560 * expr.c (expand_assignment): Avoid useless assignments.
561 (expand_expr_real_1): Likewise.
562 (expand_expr_real_2): Avoid useless statements.
564 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
566 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
568 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
571 * stmt.c (expand_expr_stmt): Avoid useless assignment.
573 2011-03-31 Joseph Myers <joseph@codesourcery.com>
576 * doc/tm.texi.in (TARGET_VERSION): Remove.
577 * doc/tm.texi: Regenerate.
578 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
579 * collect2.c (main): Don't use TARGET_VERSION.
580 * mips-tdump.c (main): Don't use TARGET_VERSION.
581 * mips-tfile.c (main): Don't use TARGET_VERSION.
582 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
583 * config/rs6000/vxworksae.h: Remove.
584 * config/alpha/alpha.h (TARGET_VERSION): Remove.
585 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
586 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
587 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
588 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
589 * config/arm/arm.h (TARGET_VERSION): Remove.
590 * config/arm/coff.h (TARGET_VERSION): Remove.
591 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
592 * config/arm/elf.h (TARGET_VERSION): Remove.
593 * config/arm/freebsd.h (TARGET_VERSION): Remove.
594 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
595 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
596 * config/arm/pe.h (TARGET_VERSION): Remove.
597 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
598 * config/arm/semi.h (TARGET_VERSION): Remove.
599 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
600 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
601 * config/arm/vxworks.h (TARGET_VERSION): Remove.
602 * config/avr/avr.h (TARGET_VERSION): Remove.
603 * config/bfin/bfin.h (TARGET_VERSION): Remove.
604 * config/fr30/fr30.h (TARGET_VERSION): Remove.
605 * config/frv/frv.h (TARGET_VERSION): Remove.
606 * config/h8300/h8300.h (TARGET_VERSION): Remove.
607 * config/i386/cygwin.h (TARGET_VERSION): Remove.
608 * config/i386/darwin.h (TARGET_VERSION): Remove.
609 * config/i386/darwin64.h (TARGET_VERSION): Remove.
610 * config/i386/djgpp.h (TARGET_VERSION): Remove.
611 * config/i386/freebsd.h (TARGET_VERSION): Remove.
612 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
613 * config/i386/gnu.h (TARGET_VERSION): Remove.
614 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
615 * config/i386/i386elf.h (TARGET_VERSION): Remove.
616 * config/i386/linux.h (TARGET_VERSION): Remove.
617 * config/i386/linux64.h (TARGET_VERSION): Remove.
618 * config/i386/lynx.h (TARGET_VERSION): Remove.
619 * config/i386/mingw32.h (TARGET_VERSION): Remove.
620 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
621 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
622 * config/i386/netware.h (TARGET_VERSION): Remove.
623 * config/i386/nto.h (TARGET_VERSION): Remove.
624 * config/i386/openbsd.h (TARGET_VERSION): Remove.
625 * config/i386/vxworks.h (TARGET_VERSION): Remove.
626 * config/ia64/elf.h (TARGET_VERSION): Remove.
627 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
628 * config/ia64/hpux.h (TARGET_VERSION): Remove.
629 * config/ia64/linux.h (TARGET_VERSION): Remove.
630 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
631 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
632 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
633 * config/lm32/lm32.h (TARGET_VERSION): Remove.
634 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
635 * config/m32c/m32c.h (TARGET_VERSION): Remove.
636 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
637 * config/m32r/m32r.h (TARGET_VERSION): Remove.
638 * config/m68k/linux.h (TARGET_VERSION): Remove.
639 * config/m68k/m68k.h (TARGET_VERSION): Remove.
640 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
641 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
642 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
643 * config/mep/mep.h (TARGET_VERSION): Remove.
644 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
645 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
646 * config/mips/iris6.h (MACHINE_TYPE): Remove.
647 * config/mips/linux.h (TARGET_VERSION): Remove.
648 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
649 * config/mips/vxworks.h (TARGET_VERSION): Remove.
650 * config/mmix/mmix.h (TARGET_VERSION): Remove.
651 * config/mn10300/linux.h (TARGET_VERSION): Remove.
652 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
653 * config/pa/pa.h (TARGET_VERSION): Remove.
654 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
655 * config/picochip/picochip.h (TARGET_VERSION): Remove.
656 * config/rs6000/aix.h (TARGET_VERSION): Remove.
657 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
658 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
659 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
660 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
661 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
662 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
663 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
664 * config/rs6000/linux.h (TARGET_VERSION): Remove.
665 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
666 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
667 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
668 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
669 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
670 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
671 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
672 * config/s390/linux.h (TARGET_VERSION): Remove.
673 * config/s390/s390.h (TARGET_VERSION): Remove.
674 * config/s390/tpf.h (TARGET_VERSION): Remove.
675 * config/score/score.h (TARGET_VERSION): Remove.
676 * config/sh/linux.h (TARGET_VERSION): Remove.
677 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
678 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
679 * config/sh/sh.h (TARGET_VERSION): Remove.
680 * config/sh/sh64.h (TARGET_VERSION): Remove.
681 * config/sh/superh.h (TARGET_VERSION): Remove.
682 * config/sh/vxworks.h (TARGET_VERSION): Remove.
683 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
684 * config/sparc/linux.h (TARGET_VERSION): Remove.
685 * config/sparc/linux64.h (TARGET_VERSION): Remove.
686 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
687 TARGET_NAME32, TARGET_NAME): Remove.
688 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
689 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
690 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
691 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
692 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
693 * config/spu/spu.h (TARGET_VERSION): Remove.
694 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
695 * config/v850/v850.h (TARGET_VERSION): Remove.
696 * config/vax/linux.h (TARGET_VERSION): Remove.
697 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
698 * config/xtensa/elf.h (TARGET_VERSION): Remove.
699 * config/xtensa/linux.h (TARGET_VERSION): Remove.
701 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
704 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
705 frame-related from frame-unrelated adjustments to the stack pointer.
707 2011-03-31 Jakub Jelinek <jakub@redhat.com>
709 * common.opt (fdebug-types-section): Move earlier.
710 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
712 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
714 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
717 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
719 * tree.h (CASE_CHAIN): Define.
720 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
721 (gimple_redirect_edge_and_branch): Likewise.
723 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
726 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
729 2011-03-30 Jeff Law <law@redhat.com>
732 * reload1.c (reload): Fix botch in last change.
734 * reload.h (struct reload): Fix typo introduced in last change.
736 2011-03-30 Joseph Myers <joseph@codesourcery.com>
738 * config/arm/arm.opt (mhard-float, msoft-float): Mark
739 Undocumented. Remove help text.
740 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
743 2011-03-30 Joseph Myers <joseph@codesourcery.com>
745 * doc/options.texi (NegativeAlias): Document.
746 (Alias): Mention NegativeAlias.
747 * opt-functions.awk: Handle NegativeAlias.
748 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
749 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
750 * opts.h (CL_NEGATIVE_ALIAS): Define.
751 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
752 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
754 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
756 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
757 mno-spe and mno-isel instead of mspe=no and -misel=no.
759 2011-03-29 Mark Wielaard <mjw@redhat.com>
761 * common.opt (fdebug-types-section): New flag.
762 * doc/invoke.texi: Document new -fno-debug-types-section flag.
763 * dwarf2out.c (use_debug_types): New define.
764 (struct die_struct): Mark die_id with GTY desc use_debug_types.
765 (print_die): Guard output of type unit signatures using
767 (build_abbrev_table): Replace assert of dwarf_version >= 4
768 with assert on use_debug_types.
769 (size_of_die): Likewise.
770 (unmark_dies): Likewise.
771 (value_format): Decide AT_ref_external form on use_debug_types.
772 (output_die): Replace dwarf_version version check guard with
773 use_debug_types where appropriate.
774 (modified_type_die): Likewise.
775 (gen_reference_type_die): Likewise.
776 (dwarf2out_start_source_file): Likewise.
777 (dwarf2out_end_source_file): Likewise.
778 (prune_unused_types_walk_attribs): Likewise.
779 (dwarf2out_finish): Likewise.
781 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
783 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
785 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
787 PR rtl-optimization/48332
788 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
789 mode of input operand N and modeN to its actual mode.
791 2011-03-30 Jeff Law <law@redhat.com>
793 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
794 define accessor macro.
795 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
796 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
797 (reg_equiv_init): Likewise.
798 (reg_equivs_size): New variable.
799 (reg_equiv_init_size): Remove.
800 (allocate_initial_values): Move prototype to here from....
801 * integrate.h (allocate_initial_values): Remove prototype.
802 * integrate.c: Include reload.h.
803 (allocate_initial_values): Corresponding changes.
804 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
805 (fix_reg_equiv_init, no_equiv): Corresponding changes.
806 (update_equiv_regs): Corresponding changes.
807 (ira): Corresponding changes.
808 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
809 (push_secondary_reload): Corresponding changes.
810 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
811 (make_memloc, find_reloads_address): Corresponding changes.
812 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
813 (find_reloads_address_1): Corresponding changes.
814 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
815 (refers_to_regno_for_reload_p): Corresponding changes.
816 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
817 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
818 * reload1.c: Include ggc.h.
819 (grow_reg_equivs): New function.
820 (replace_pseudos_in, reload): Corresponding changes.
821 (calculate_needs_all_insns, alter_regs): Corresponding changes.
822 (eliminate_regs_1, elimination_effects): Corresponding changes.
823 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
824 (delete_output_reload): Likewise.
825 * caller-save.c (mark_referenced_regs): Corresponding changes.
826 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
827 * frv/predicates.md (frv_load_operand): Corresponding changes.
828 * microblaze/microblaze.c (double_memory_operand): Corresponding
830 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
831 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
832 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
833 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
834 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
836 * pa/pa.c (emit_move_sequence): Corresponding changes.
837 * vax/vax.c (nonindexed_address_p): Corresponding changes.
839 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
842 * config/arm/arm.c (coproc_secondary_reload_class): Handle
843 structure modes. Don't check neon_vector_mem_operand for
844 vector or structure modes.
846 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
847 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
850 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
851 operand 1 and reshuffle the operands to match.
852 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
854 2011-03-30 Christian Schüler <cschueler@gmx.de>
857 * config/c.opt (F): Added 'Driver' to -F option.
860 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
862 * config/darwin.opt: Added '-arch' option.
864 2011-03-30 Nick Clifton <nickc@redhat.com>
866 * config/rx/rx.md: Add peepholes and patterns to combine
867 extending loads and simple arithmetic instructions.
868 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
869 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
870 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
871 modes to use pre-decrement and post-increment addressing.
872 (rx_is_restricted_memory_address): Add range checking of REG+INT
874 (rx_print_operand): Add support for %Q. Fix handling of %Q.
875 (rx_memory_move_cost): Adjust cost of stores.
876 (rx_adjust_insn_length): New function.
878 2011-03-30 Jakub Jelinek <jakub@redhat.com>
881 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
882 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
883 matching arg00/arg01 types.
885 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
887 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
888 last_location to UNKNOWN_LOCATION.
890 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
893 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
896 2011-03-30 Joseph Myers <joseph@codesourcery.com>
897 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
900 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
902 (sparc_cpu): Likewise.
903 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
906 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
910 PR rtl-optimization/48345
911 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
912 hard regs for given mode from profitable regs when doing secondary
915 2011-03-29 Jeff Law <law@redhat.com>
918 * tree-ssa-threadupdate.c (struct redirection_data): Remove
919 do_not_duplicate field.
920 (lookup_redirection_data): Corresponding changes.
921 (create_duplicates): Always create a template block.
922 (redirect_edges): Remove code which reused the original block
923 when it was going to become unreachable code.
924 (thread_block): Don't set do_not_duplicate field.
926 2011-03-29 Joseph Myers <joseph@codesourcery.com>
928 * lto-opts.c (register_user_option_p, lto_register_user_option):
929 Make type argument unsigned.
930 * lto-streamer.h (lto_register_user_option): Make type argument
932 * opth-gen.awk: Make CL_* macros unsigned.
933 * opts-common.c (find_opt): Make lang_mask argument unsigned.
934 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
935 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
936 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
937 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
938 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
939 (find_opt): Make lang_mask argument unsigned.
941 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
943 PR rtl-optimization/48331
944 PR rtl-optimization/48334
945 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
946 for any used algorithm.
948 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
950 * ira-conflicts.c (build_object_conflicts): Add unused attribute
953 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
955 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
956 (alpha_option_override): Don't set alpha_sr_alias_set.
957 (emit_frame_store_1): Use gen_frame_mem rather than calling
959 (alpha_expand_epilogue): Ditto.
961 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
963 PR tree-optimization/48290
964 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
965 vectorization, check that relevant phis in the basic block after
966 the inner loop are really inner loop's exit phis.
968 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
971 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
972 (cached_dw_loc_list_def): New structure.
973 (cached_dw_loc_list): New typedef.
974 (cached_dw_loc_list_table): New variable.
975 (cached_dw_loc_list_table_hash): New function.
976 (cached_dw_loc_list_table_eq): Likewise.
977 (add_location_or_const_value_attribute): Take a bool cache_p.
978 Cache the list when the parameter is true.
979 (gen_formal_parameter_die): Update caller.
980 (gen_variable_die): Likewise.
981 (dwarf2out_finish): Likewise.
982 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
983 while generating debug info for the decl.
984 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
985 (dwarf2out_init): Initialize cached_dw_loc_list_table.
986 (resolve_addr): Cache the result of resolving a chain of
989 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
991 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
992 conflict object hard regset nodes have intersecting hard reg sets.
994 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
995 after regstat_init_n_sets_and_refs.
997 * ira.c: Add more comments at the top.
998 (setup_stack_reg_pressure_class, setup_pressure_classes):
999 Add comments how we compute the register pressure classes.
1000 (setup_allocno_and_important_classes): Add more comments.
1001 (setup_class_translate_array, reorder_important_classes)
1002 (setup_reg_class_relations): Add comments.
1004 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
1007 * ira-color.c: Add 2011 to the Copyright line.
1008 (assign_hard_reg): Add more comments.
1009 (improve_allocation): Ditto.
1011 * ira-costs.c: Add 2011 to the Copyright line.
1012 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
1014 (setup_regno_cost_classes_by_mode): Ditto.
1016 Initial patches from ira-improv branch:
1018 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
1020 * ira-build.c: (ira_create_object): Remove initialization of
1021 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
1022 (ira_create_allocno): Remove initialization of
1023 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
1024 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
1025 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
1026 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
1027 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
1028 Initialize ALLOCNO_ADD_DATA.
1029 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
1030 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
1032 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
1033 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
1035 * ira.c (ira_reallocate): Remove.
1036 (setup_pressure_classes): Call
1037 ira_init_register_move_cost_if_necessary. Use
1038 ira_register_move_cost instead of ira_get_register_move_cost.
1039 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
1040 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
1042 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
1043 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
1044 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
1045 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
1046 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
1047 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
1049 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
1050 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1051 (struct allocno_color_data): New.
1052 (allocno_color_data_t): New typedef.
1053 (allocno_color_data): New definition.
1054 (ALLOCNO_COLOR_DATA): New macro.
1055 (struct object_color_data): New.
1056 (object_color_data_t): New typedef.
1057 (object_color_data): New definition.
1058 (OBJECT_COLOR_DATA): New macro.
1059 (update_copy_costs, calculate_allocno_spill_cost): Call
1060 ira_init_register_move_cost_if_necessary. Use
1061 ira_register_move_cost instead of ira_get_register_move_cost.
1062 (move_spill_restore, update_curr_costs): Ditto.
1063 (allocno_spill_priority): Make it inline.
1064 (color_pass): Allocate and free allocno_color_dat and object_color_data.
1065 (struct coalesce_data, coalesce_data_t): New.
1066 (allocno_coalesce_data): New definition.
1067 (ALLOCNO_COALESCE_DATA): New macro.
1068 (merge_allocnos, coalesced_allocno_conflict_p): Use
1069 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
1070 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
1071 (coalesce_allocnos): Ditto.
1072 (setup_coalesced_allocno_costs_and_nums): Ditto.
1073 (collect_spilled_coalesced_allocnos): Ditto.
1074 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
1075 (setup_slot_coalesced_allocno_live_ranges): Ditto.
1076 (coalesce_spill_slots): Ditto.
1077 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
1078 free allocno_coalesce_data.
1080 * ira-conflicts.c: Fix formatting.
1081 (process_regs_for_copy): Call
1082 ira_init_register_move_cost_if_necessary. Use
1083 ira_register_move_cost instead of ira_get_register_move_cost.
1084 (build_object_conflicts): Optimize.
1086 * ira-costs.c (record_reg_classes): Optimize. Call
1087 ira_init_register_move_cost_if_necessary. Use
1088 ira_register_move_cost, ira_may_move_in_cost, and
1089 ira_may_move_out_cost instead of ira_get_register_move_cost and
1090 ira_get_may_move_cost.
1091 (record_address_regs): Ditto.
1092 (scan_one_insn): Optimize.
1093 (find_costs_and_classes): Optimize.
1094 (process_bb_node_for_hard_reg_moves): Call
1095 ira_init_register_move_cost_if_necessary. Use
1096 ira_register_move_cost instead of ira_get_register_move_cost.
1098 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
1099 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
1100 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
1101 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
1103 (ira_initiate_emit_data, ira_finish_emit_data)
1104 (create_new_allocno): New functions.
1105 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
1106 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
1107 Use ira_register_move_cost instead of ira_get_register_move_cost.
1109 * ira-int.h: Fix some comments.
1110 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
1111 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1112 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
1113 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
1115 (struct ira_allocno): Make mode and aclass a bitfield. Move other
1116 bitfield after mode. Make hard_regno a short int. Make
1117 hard_regno short. Remove first_coalesced_allocno and
1118 next_coalesced_allocno. Move mem_optimized_dest_p,
1119 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
1120 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
1121 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
1122 temp, colorable_p. Add new member add_data.
1123 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
1124 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
1125 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
1126 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
1127 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
1128 (ALLOCNO_ADD_DATA): New macro.
1129 (ira_emit_data_t): New typedef.
1130 (struct ira_emit_data): New. Move mem_optimized_dest_p,
1131 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
1132 from struct ira_allocno.
1133 (ALLOCNO_EMIT_DATA): New macro.
1134 (ira_allocno_emit_data, allocno_emit_reg): New.
1135 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
1136 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
1137 (OBJECT_ADD_DATA): New macro.
1138 (ira_reallocate): Remove.
1139 (ira_initiate_emit_data, ira_finish_emit_data): New.
1140 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
1141 (ira_init_register_move_cost_if_necessary): New.
1142 (ira_object_conflict_iter_next): Merge into
1143 ira_object_conflict_iter_cond.
1144 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
1146 * ira-live.c: (process_single_reg_class_operands): Call
1147 ira_init_register_move_cost_if_necessary. Use
1148 ira_register_move_cost instead of ira_get_register_move_cost.
1150 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
1152 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
1154 * ira-costs.c: Fix formatting.
1155 (cost_classes, cost_classes_num): Remove.
1156 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
1157 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
1158 (cost_classes_del, cost_classes_htab): New.
1159 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
1160 (initiate_regno_cost_classes, setup_cost_classes): New.
1161 (setup_regno_cost_classes_by_aclass): New.
1162 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
1163 (record_reg_classes): Use regno_cost_classes instead of
1164 cost_classes. Move checking opposite operand up.
1165 (record_address_regs): Use regno_cost_classes
1166 instead of cost_classes.
1167 (scan_one_insn): Ditto. Use always general register.
1168 (print_allocno_costs): Use regno_cost_classes instead of
1170 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
1171 (find_costs_and_classes): Set up cost classes for each registers.
1172 Use also their mode for this. Use regno_cost_classes instead of
1174 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
1176 (free_ira_costs, ira_init_costs): Don't use cost_classes.
1177 (ira_costs, ira_set_pseudo_classes): Call
1178 initiate_regno_cost_classes and finish_regno_cost_classes.
1180 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
1182 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
1184 * target.def (ira_cover_classes): Remove.
1186 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
1188 * doc/tm.texi.in: Ditto.
1190 * ira-conflicts.c: Remove mentioning cover classes from the file.
1191 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
1192 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
1194 * targhooks.c (default_ira_cover_classes): Remove.
1196 * targhooks.h (default_ira_cover_classes): Ditto.
1198 * haifa-sched.c: Remove mentioning cover classes from the file.
1199 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
1200 ira_pressure_classes and ira_pressure_classes_num instead of
1201 ira_reg_class_cover_size and ira_reg_class_cover. Use
1202 sched_regno_pressure_class instead of sched_regno_cover_class.
1203 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
1204 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
1206 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
1207 classes from the file.
1208 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
1209 (struct object_hard_regs, struct object_hard_regs_node): New.
1210 (struct ira_object): New members profitable_hard_regs,
1211 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
1212 (struct ira_allocno): Rename cover_class to aclass. Rename
1213 cover_class_cost and updated_cover_class_cost to class_cost and
1214 updated_class_cost. Remove splay_removed_p and
1215 left_conflict_size. Add new members colorable_p.
1216 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
1217 (ALLOCNO_COLORABLE_P): New macro.
1218 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
1219 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
1220 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
1221 (OBJECT_...): Rename parameter C to O.
1222 (OBJECT_PROFITABLE_HARD_REGS): New macro.
1223 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
1224 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
1225 (struct target_ira_int): New members x_ira_max_memory_move_cost,
1226 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
1227 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
1228 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
1229 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
1230 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
1231 x_ira_reg_class_subunion.
1232 (ira_max_memory_move_cost, ira_max_register_move_cost)
1233 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
1234 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
1235 (ira_important_class_nums, ira_reg_class_superunion): New macros.
1236 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
1237 (ira_reg_class_union): Rename to ira_reg_class_subunion.
1238 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
1239 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
1240 (ira_tune_allocno_costs_and_cover_classes): Rename to
1241 ira_tune_allocno_costs.
1242 (ira_debug_hard_regs_forest): New.
1243 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
1244 (ira_object_conflict_iter_next): Fix comments.
1245 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
1246 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
1247 cover_class to aclass.
1248 (ira_allocate_and_accumulate_costs): Ditto.
1249 (ira_allocate_and_set_or_copy_costs): Ditto.
1251 * opts.c (decode_options): Remove ira_cover_class check.
1253 * ira-color.c: Remove mentioning cover classes from the file. Use
1254 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
1255 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
1256 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
1257 (splay-tree.h): Remove include.
1258 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
1259 before copy_freq_compare_func.
1260 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
1261 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
1263 (hard_regs_roots, hard_regs_node_vec): Ditto.
1264 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
1265 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
1266 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
1267 (create_new_object_hard_regs_node): Ditto.
1268 (add_new_object_hard_regs_node_to_forest): Ditto.
1269 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
1270 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
1272 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
1273 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
1274 (remove_unused_object_hard_regs_nodes): Ditto.
1275 (enumerate_object_hard_regs_nodes): Ditto.
1276 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
1277 (object_hard_regs_subnode_t): Ditto.
1278 (struct object_hard_regs_subnode): Ditto.
1279 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
1280 (setup_object_hard_regs_subnode_index): Ditto.
1281 (get_object_hard_regs_subnodes_num): Ditto.
1282 (form_object_hard_regs_nodes_forest): Ditto.
1283 (finish_object_hard_regs_nodes_tree): Ditto.
1284 (finish_object_hard_regs_nodes_forest): Ditto.
1285 (allocnos_have_intersected_live_ranges_p): Rename to
1286 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1287 (pseudos_have_intersected_live_ranges_p): Rename to
1288 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1289 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
1290 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
1291 (update_copy_costs): Remove assert. Skip cost update if the hard
1292 reg does not belong the class.
1293 (assign_hard_reg): Process only profitable hard regs.
1294 (uncolorable_allocnos_num): Make it scalar.
1295 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
1296 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
1297 and ira_reg_class_max_nregs.
1298 (bucket_allocno_compare_func): Check frequency first.
1299 (sort_bucket): Add compare function as a parameter.
1300 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
1301 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
1302 (push_allocno_to_stack): Rewrite for checking new allocno
1304 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
1305 (push_only_colorable): Pass new parameter to sort_bucket.
1306 (push_allocno_to_spill): Remove.
1307 (allocno_spill_priority_compare): Make it inline and rewrite.
1308 (splay_tree_allocate, splay_tree_free): Remove.
1309 (allocno_spill_sort_compare): New function.
1310 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
1311 build and use splay tree. Choose first allocno in uncolorable
1312 allocno bucket to spill. Remove setting spill cost.
1313 (all_conflicting_hard_regs): Remove.
1314 (setup_allocno_available_regs_num): Check only profitable hard
1315 regs. Print info about hard regs nodes.
1316 (setup_allocno_left_conflicts_size): Remove.
1317 (put_allocno_into_bucket): Don't call
1318 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
1319 (improve_allocation): New.
1320 (color_allocnos): Call setup_profitable_hard_regs,
1321 form_object_hard_regs_nodes_forest, improve_allocation,
1322 finish_object_hard_regs_nodes_forest. Setup spill cost.
1323 (print_loop_title): Use pressure classes.
1324 (color_allocnso): Ditto.
1325 (do_coloring): Remove allocation and freeing splay_tree_node_pool
1326 and allocnos_for_spilling.
1327 (ira_sort_regnos_for_alter_reg): Don't setup members
1328 {first,next}_coalesced_allocno.
1329 (color): Remove allocating and freeing removed_splay_allocno_vec.
1330 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
1331 prohibited_class_mode_regs.
1333 * ira-lives.c: Remove mentioning cover classes from the file. Fix
1335 (update_allocno_pressure_excess_length): Use pressure classes.
1336 (inc_register_pressure, dec_register_pressure): Check for pressure
1338 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
1339 pressure class. Use ira_reg_class_nregs instead of
1340 ira_reg_class_max_nregs.
1341 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
1342 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
1343 (single_reg_class): Use ira_reg_class_nregs instead of
1344 ira_reg_class_max_nregs.
1345 (process_bb_node_lives): Use pressure classes.
1347 * ira-emit.c: Remove mentioning cover classes from the file. Use
1348 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
1349 (change_loop): Use pressure classes.
1350 (modify_move_list): Call ira_set_allocno_class instead of
1351 ira_set_allocno_cover_class.
1353 * ira-build.c: Remove mentioning cover classes from the file. Use
1354 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
1355 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
1356 ALLOCNO_UPDATED_CLASS_COST instead of
1357 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
1358 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
1359 (ira_create_allocno): Remove initialization of
1360 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
1361 ALLOCNO_COLORABLE_P.
1362 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
1363 Update conflict regs for the objects.
1364 (create_cap_allocno): Remove assert. Don't propagate
1365 ALLOCNO_AVAILABLE_REGS_NUM.
1366 (ira_free_allocno_costs): New function.
1367 (finish_allocno): Change a part of code into call of
1368 ira_free_allocno_costs.
1369 (low_pressure_loop_node_p): Use pressure classes.
1370 (object_range_compare_func): Don't compare classes.
1371 (setup_min_max_conflict_allocno_ids): Ditto.
1373 * loop-invariant.c: Remove mentioning cover classes from the file.
1374 Use ira_pressure_classes and ira_pressure_classes_num instead of
1375 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
1376 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
1377 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
1378 Use reg_allocno_class instead of reg_cover_class.
1379 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
1380 STACK_REG_COVER_CLASS.
1381 (get_regno_cover_class): Rename to get_regno_pressure_class.
1382 (move_loop_invariants): Initialize and finalize regstat.
1384 * ira.c: Remove mentioning cover classes from the file. Add
1385 comments about coloring without cover classes. Use ALLOCNO_CLASS
1386 instead of ALLOCNO_COVER_CLASS. Fix formatting.
1387 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
1388 setup_class_subset_and_memory_move_costs.
1389 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
1390 (setup_cover_and_important_classes): Rename to
1391 setup_allocno_and_important_classes.
1392 (setup_class_translate_array): New.
1393 (setup_class_translate): Call it for allocno and pressure classes.
1394 (cover_class_order): Rename to allocno_class_order.
1395 (comp_reg_classes_func): Use ira_allocno_class_translate instead
1396 of ira_class_translate.
1397 (reorder_important_classes): Set up ira_important_class_nums.
1398 (setup_reg_class_relations): Set up ira_reg_class_superunion.
1399 (print_class_cover): Rename to print_classes. Add parameter.
1400 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
1401 Print pressure classes too.
1402 (find_reg_class_closure): Rename to find_reg_classes. Don't call
1403 setup_reg_subclasses.
1404 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1405 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
1406 (setup_prohibited_class_mode_regs): Use
1407 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
1408 (clarify_prohibited_class_mode_regs): New function.
1409 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
1410 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
1411 (ira_init_once): Initialize them.
1412 (free_register_move_costs): Process them.
1413 (ira_init): Move calls of find_reg_classes and
1414 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
1415 Call clarify_prohibited_class_mode_regs.
1416 (ira_no_alloc_reg): Remove.
1417 (too_high_register_pressure_p): Use pressure classes.
1419 * sched-deps.c: Remove mentioning cover classes from the file.
1420 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
1421 ira_pressure_classes and ira_pressure_classes_num instead of
1422 ira_reg_class_cover_size and ira_reg_class_cover.
1423 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
1424 sched_regno_pressure_class instead of sched_regno_cover_class.
1425 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
1426 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
1428 * ira.h: Add 2010 to Copyright.
1429 (ira_no_alloc_reg): Remove external.
1430 (struct target_ira): Rename x_ira_hard_regno_cover_class,
1431 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
1432 x_ira_class_translate to x_ira_hard_regno_allocno_class,
1433 x_ira_allocno_classes_num, x_ira_allocno_classes, and
1434 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
1435 x_ira_pressure_classes, x_ira_pressure_class_translate, and
1436 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
1437 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
1438 x_ira_no_alloc_regs.
1439 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1440 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
1441 ira_allocno_classes_num and ira_allocno_classes.
1442 (ira_class_translate): Rename to ira_allocno_class_translate.
1443 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
1444 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
1445 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
1446 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
1447 (ira_no_alloc_regs): New.
1449 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
1450 classes from the file. Use ALLOCNO_CLASS instead of
1451 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
1452 ALLOCNO_COVER_CLASS_COST.
1453 (regno_cover_class): Rename to regno_aclass.
1454 (record_reg_classes): Use ira_reg_class_subunion instead of
1455 ira_reg_class_union.
1456 (record_address_regs): Check overflow.
1457 (scan_one_insn): Ditto.
1458 (print_allocno_costs): Print total mem cost fore regional allocation.
1459 (print_pseudo_costs): Use REG_N_REFS.
1460 (find_costs_and_classes): Use classes intersected with them on the
1461 1st pass. Check overflow. Use ira_reg_class_subunion instead of
1462 ira_reg_class_union. Use ira_allocno_class_translate and
1463 regno_aclass instead of ira_class_translate and regno_cover_class.
1464 Modify code for finding regno_aclass. Setup preferred classes for
1466 (setup_allocno_cover_class_and_costs): Rename to
1467 setup_allocno_class_and_costs. Use regno_aclass instead of
1468 regno_cover_class. Use ira_set_allocno_class instead of
1469 ira_set_allocno_cover_class.
1470 (init_costs, finish_costs): Use regno_aclass instead of
1472 (ira_costs): Use setup_allocno_class_and_costs instead of
1473 setup_allocno_cover_class_and_costs.
1474 (ira_tune_allocno_costs_and_cover_classes): Rename to
1475 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
1476 by processing objects. Use ira_reg_class_max_nregs instead of
1477 ira_reg_class_nregs.
1479 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
1481 * sched-int.h: Remove mentioning cover classes from the file.
1482 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
1484 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
1485 classes from the file.
1486 (struct reg_pref): Rename coverclass into allocnoclass.
1487 (reg_cover_class): Rename to reg_allocno_class.
1489 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
1491 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
1493 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
1495 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
1497 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
1499 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
1501 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
1503 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
1505 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
1507 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
1509 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
1510 (i386_ira_cover_classes): Ditto.
1512 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
1514 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
1516 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
1518 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
1520 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
1522 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
1524 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
1525 (mips_ira_cover_classes): Ditto.
1527 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
1529 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
1531 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
1533 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
1535 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
1537 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
1538 (IRA_COVER_CLASSES_VSX): Ditto.
1540 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
1541 (rs6000_ira_cover_classes): Ditto.
1543 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
1545 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
1547 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
1549 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
1551 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
1553 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
1555 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
1557 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
1559 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
1561 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
1563 2011-03-29 Jakub Jelinek <jakub@redhat.com>
1566 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
1567 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
1568 dw_fde_unlikely_section_end_label, cold_in_std_section,
1569 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
1570 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
1572 (output_fde): Use dw_fde_second_{begin,end} if second is
1573 true, otherwise dw_fde_{begin,end}.
1574 (output_call_frame_info): Test dw_fde_second_begin != NULL
1575 instead of dw_fde_switched_sections.
1576 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
1577 fields, initialize new fields. Initialize in_std_section
1578 unconditionally from the first partition.
1579 (dwarf2out_end_epilogue): Don't override dw_fde_end when
1580 dw_fde_second_begin is non-NULL.
1581 (dwarf2out_switch_text_section): Stop initializing removed
1582 dw_fde_struct fields, initialize new fields, initialize
1583 also dw_fde_end here. Set dw_fde_switch_cfi even when
1584 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
1585 (struct var_loc_list_def): Add last_before_switch field.
1586 (arange_table, arange_table_allocated, arange_table_in_use,
1587 ARANGE_TABLE_INCREMENT, add_arange): Removed.
1588 (size_of_aranges): Count !in_std_section and !second_in_std_section
1589 hunks in fdes, instead of looking at arange_table_in_use.
1590 (output_aranges): Add aranges_length argument, don't call
1591 size_of_aranges here. Instead of using aranges_table*
1592 emit ranges for fdes when !in_std_section resp.
1593 !second_in_std_section.
1594 (dw_loc_list): Break ranges crossing section switch.
1595 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
1596 use dw_fde_second_end instead of dw_fde_end as end of last range.
1597 (gen_subprogram_die): Don't call add_arange. Use
1598 dw_fde_{begin,end} for first partition and if switched
1599 section dw_fde_second_{begin,end} for the second.
1600 (var_location_switch_text_section_1,
1601 var_location_switch_text_section): New functions.
1602 (dwarf2out_begin_function): Initialize cold_text_section even
1603 when function_section () isn't text_section.
1604 (prune_unused_types): Don't walk arange_table.
1605 (dwarf2out_finish): Don't needlessly test
1606 flag_reorder_blocks_and_partition when testing cold_text_section_used.
1607 If info_section_emitted, call size_of_aranges and if it indicates
1608 non-empty .debug_aranges, call output_aranges with the computed
1609 size. Stop using removed dw_fde_struct fields, use
1610 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
1614 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
1615 create ENTRY_VALUE if incoming or address of incoming's MEM
1617 * dwarf2out.c (mem_loc_descriptor): Don't emit
1618 DW_OP_GNU_entry_value of DW_OP_fbreg.
1619 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
1620 on ENTRY_VALUE is able to find the canonical parameter VALUE.
1621 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
1622 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
1624 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
1625 is a REG_P or MEM_P with REG_P address, compute hash directly
1626 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
1627 (preserve_only_constants): Don't clear VALUES forwaring
1628 ENTRY_VALUE to some other VALUE.
1630 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
1632 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
1635 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
1637 * cfgexpand.c (expand_gimple_cond): Always set the source location and
1638 block before expanding the statement.
1639 (expand_gimple_stmt_1): Likewise. Set them here...
1640 (expand_gimple_stmt): ...and not here. Tidy.
1641 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
1644 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
1646 * Makefile.in: New rule for cprop.o.
1647 * gcse.c: Move constant/copy propagation to cprop.c.
1648 (compute_local_properties): Only handle expression tables.
1649 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
1650 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
1651 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
1652 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
1653 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
1654 compute_cprop_data, find_used_regs, try_replace_reg,
1655 find_avail_set, cprop_jump, constprop_register, cprop_insn,
1656 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
1657 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
1658 find_bypass_set, reg_killed_on_edge, bypass_block,
1659 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
1660 execute_rtl_cprop, pass_rtl_cprop): Move to...
1661 * cprop.c: ...here. New file, constant/copy propagation for RTL
1662 moved from gcse.c to here with minor cleanups in duplicated code.
1664 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
1666 * config/i386/i386.c (flag_opts): Fix a typo in
1667 -mavx256-split-unaligned-store.
1669 2011-03-28 Anatoly Sokolov <aesok@post.ru>
1671 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
1672 LIBCALL_VALUE): Remove macros.
1673 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1674 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1675 (h8300_function_value, h8300_libcall_value,
1676 h8300_function_value_regno_p): New functions.
1678 2011-03-28 Anatoly Sokolov <aesok@post.ru>
1680 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
1682 2011-03-28 Jeff Law <law@redhat.com>
1684 * tree-ssa-threadupdate.c (redirect_edges): Call
1685 create_edge_and_update_destination_phis as needed.
1686 (create_edge_and_update_destination_phis): Accept new BB argument.
1687 All callers updated.
1688 (thread_block): Do not update the profile when threading around
1689 intermediate blocks.
1690 (thread_single_edge): Likewise.
1691 (determine_bb_domination_status): If BB is not a successor of the
1692 loop header, return NONDOMINATING.
1693 (register_jump_thread): Note when we register a jump thread around
1694 an intermediate block.
1695 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
1696 (thread_across_edge): Use it.
1698 2011-03-28 Tristan Gingold <gingold@adacore.com>
1700 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
1701 when for_return is 2.
1703 2011-03-28 Jeff Law <law@redhat.com>
1705 * var-tracking.c (canonicalize_values_mark): Delete unused
1707 (canonicalize_values_star, set_variable_part): Likewise.
1708 (clobber_variable_part, delete_variable_part): Likewise.
1710 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
1712 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
1714 2011-03-28 Martin Jambor <mjambor@suse.cz>
1716 * tree-inline.c (expand_call_inline): Do not check that destination
1718 (optimize_inline_calls): Assert that destination node is analyzed.
1719 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
1720 not call tree_lowering_passes.
1721 * cgraph.h (cgraph_analyze_function): Declare.
1722 * cgraphunit.c (cgraph_analyze_function): Make public.
1724 2011-03-28 Joseph Myers <joseph@codesourcery.com>
1726 * config/sparc/sparc-opts.h: New.
1727 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
1728 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
1729 (sparc_option_override): Store processor_type enumeration rather
1730 than string in cpu_default. Remove name and enumeration from
1731 cpu_table. Directly default -mcpu then default -mtune from -mcpu
1732 without using sparc_select. Use target_flags_explicit instead of
1734 * config/sparc/sparc.h (enum processor_type): Move to
1736 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
1737 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
1738 HeaderInclude entry.
1739 (mcpu=, mtune=): Use Var and Enum.
1740 (sparc_processor_type): New Enum and EnumValue entries.
1742 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1743 Iain Sandoe <iains@gcc.gnu.org>
1746 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
1748 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
1750 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
1751 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
1752 Insert new statements at it in lieu of STMT.
1753 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
1754 * tree-vect-stmts.c (vectorizable_store): Likewise.
1755 (vectorizable_load): Likewise.
1757 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
1759 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
1764 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
1766 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
1767 unaligned 256bit load/store.
1768 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
1769 (*avx_movdqu<avxmodesuffix>): Likewise.
1771 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1774 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
1775 * config/pa/pa.md (iordi3): Use new predicate in expander.
1778 2011-03-27 Anatoly Sokolov <aesok@post.ru>
1780 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
1781 FUNCTION_VALUE_REGNO_P): Remove macros.
1782 * config/mips/mips-protos.h (mips_function_value): Remove.
1783 * config/mips/mips.c (mips_function_value): Rename to...
1784 (mips_function_value_1): ... this. Make static. Handle receiving
1785 the function type in 'fn_decl_or_type' argument.
1786 (mips_function_value, mips_libcall_value,
1787 mips_function_value_regno_p): New function.
1788 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1789 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1791 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
1793 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
1794 and -mavx256-split-unaligned-store.
1795 (ix86_option_override_internal): Split 32-byte AVX unaligned
1796 load/store by default.
1797 (ix86_avx256_split_vector_move_misalign): New.
1798 (ix86_expand_vector_move_misalign): Use it.
1800 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
1801 -mavx256-split-unaligned-store.
1803 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
1804 256bit load/store. Generate unaligned store on misaligned memory
1806 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
1808 (*avx_movdqu<avxmodesuffix>): Likewise.
1810 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
1811 -mavx256-split-unaligned-store.
1813 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
1816 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
1819 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
1821 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
1822 opno arguments with an expand_operand. Use create_input_operand.
1823 (mips_prepare_builtin_target): Delete.
1824 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
1826 (mips_expand_builtin_direct): Use create_output_operand and
1827 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
1828 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
1829 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
1831 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
1833 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
1835 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
1837 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
1839 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
1840 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
1841 basic blocks and call commit_edge_insertions directly.
1842 (fixup_abnormal_edges): Move from here to...
1843 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
1844 on the edges and return whether some have actually been inserted.
1845 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
1848 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
1850 PR rtl-optimization/48144
1851 * sel-sched-ir.c (merge_history_vect): Factor out from ...
1852 (merge_expr_data): ... here.
1853 (av_set_intersect): Rename to av_set_code_motion_filter.
1854 Update all callers. Call merge_history_vect when an expression
1855 is found in both sets.
1856 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
1858 2011-03-26 Alan Modra <amodra@gmail.com>
1860 * config/rs6000/predicates.md (word_offset_memref_op): Handle
1861 cmodel medium addresses.
1862 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
1863 64-bit gpr loads and stores.
1864 (rs6000_secondary_reload_ppc64): New function.
1865 * config/rs6000/rs6000-protos.h: Declare it.
1866 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
1868 2011-03-26 Alan Modra <amodra@gmail.com>
1871 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
1872 GNU Go in traceback table.
1874 2011-03-25 Richard Henderson <rth@redhat.com>
1876 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
1877 if there are exactly 6 operands.
1878 (set_storage_via_setmem): Similarly.
1880 2011-03-25 Kai Tietz <ktietz@redhat.com>
1882 * collect2.c (write_c_file_stat): Handle backslash
1883 as right-hand directory separator.
1884 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
1885 checking just for slash.
1886 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
1887 instead of checking for trailing slash.
1888 * gcc.c (record_temp_file): Use filename_cmp instead
1890 (do_spec_1): Likewise.
1891 (replace_outfile_spec_function): Likewise.
1892 (is_directory): Use filename_ncmp instead of strncmp.
1893 (print_multilib_info): Likewise.
1894 * gcov.c (find_source): Use filename_cmp instead
1896 (make_gcov_file_name): Fix order of slash/backslash
1898 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
1899 (add_standard_paths): Likewise.
1900 * mips-tfile.c (saber_stop): Handle backslash.
1901 * prefix.c (update_path): Use filename_ncmp instead of
1903 * profile.c (output_location): Use filename_cmp instead
1905 * read-md.c (handle_toplevel_file): Handle backslash.
1906 * tlink.c (frob_extension): Likewise.
1907 * tree-cfg.c (same_line_p): Use filename_cmp instead of
1909 * tree-dump.c (dequeue_and_dump): Handle backslash.
1910 * tree.c (get_file_function_name): Likewise.
1911 * gengtype.c (read_input_list): Likewise.
1912 (get_file_realbasename): Likewise.
1913 (get_output_file_with_visibility): Use filename_cmp
1916 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
1918 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
1921 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
1923 * fold-const.c (expr_location_or): New function.
1924 (fold_truth_not_expr): Call it.
1926 2011-03-25 Jeff Law <law@redhat.com>
1928 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
1930 * c-family/c-common.c (def_fn_type): Likewise.
1931 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
1932 * emit-rtl.c (gen_rtvec): Likewise.
1933 * lto/lto-lang.c (def_fn_type): Likewise.
1935 2011-03-25 Richard Guenther <rguenther@suse.de>
1937 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
1938 also generate copies.
1939 (fini_copy_prop): Handle constant values properly.
1941 2011-03-25 Jakub Jelinek <jakub@redhat.com>
1943 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
1944 mode size instead of bitsize with DWARF2_ADDR_SIZE.
1945 (hash_loc_operands, compare_loc_operands): Handle
1946 DW_OP_GNU_entry_value.
1948 2011-03-25 Kai Tietz <ktietz@redhat.com>
1950 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
1951 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
1952 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
1953 comment and use macro TARGET_64BIT_MS_ABI instead.
1954 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
1955 and change default behavior for 32-bit MS_ABI.
1956 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
1957 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
1959 (ix86_cfun_abi): Likewise.
1960 (ix86_maybe_switch_abi): Adjust comment.
1961 (init_cumulative_args): Check for bit-ness in MS_ABI case.
1962 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
1963 instead of checking for SYSV_ABI.
1964 (ix86_nsaved_sseregs): Likewise.
1965 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
1967 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
1968 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
1969 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
1970 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
1971 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
1973 2011-03-25 Richard Guenther <rguenther@suse.de>
1975 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
1976 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
1977 (verify_gimple): Remove.
1978 * tree-cfg.c (verify_gimple_call): Merge verification
1980 (verify_gimple_phi): Merge verification from verify_stmts.
1981 (verify_gimple_label): New function.
1982 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
1983 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
1984 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
1985 (verify_stmts): Rename to verify_gimple_in_cfg.
1986 (verify_gimple_in_cfg): New function.
1987 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
1988 * tree-ssa.c (verify_ssa): Likewise.
1989 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
1991 2011-03-25 Richard Guenther <rguenther@suse.de>
1993 * passes.c (init_optimization_passes): Add FRE pass after
1996 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
1997 Andrew Stubbs <ams@codesourcery.com>
1999 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
2001 (arm_movdi_vfp_cortexa8): New pattern.
2002 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
2003 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
2004 instructions when tuning for Cortex-A8. Set attribute "arch".
2005 * config/arm/arm.md: Move include arm-tune.md up a bit.
2006 (define_attr "arch"): Add "onlya8" and "nota8" values.
2007 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
2009 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
2013 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
2015 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
2016 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
2017 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
2018 * passes.c (init_optimization_passes): Move
2019 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
2021 2011-03-25 Kai Tietz <ktietz@redhat.com>
2023 * c-typeck.c (comptypes_internal): Replace target
2024 hook call of comp_type_attributes by version in tree.c file.
2025 * gimple.c (gimple_types_compatible_p_1): Likewise.
2026 * tree-ssa.c (useless_type_conversion_p): Likewise.
2027 * tree.c (build_type_attribute_qual_variant): Likewise.
2028 (attribute_value_equal): New static helper function.
2029 (comp_type_attributes): New function.
2030 (merge_attributes): Use attribute_value_equal for comparison.
2031 (attribute_list_contained): Likewise.
2032 * tree.h (comp_type_attributes): New prototype.
2034 2011-03-25 Richard Guenther <rguenther@suse.de>
2036 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
2037 of complex types at -O0.
2038 (verify_gimple_assign_binary): Likewise.
2039 (verify_gimple_assign_ternary): Likewise.
2041 2011-03-24 Mark Wielaard <mjw@redhat.com>
2043 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
2044 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
2046 2011-03-24 Mark Wielaard <mjw@redhat.com>
2049 * dwarf2out.c (output_abbrev_section): Only write table when
2050 abbrev_die_table_in_use > 1.
2052 2011-02-24 Richard Henderson <rth@redhat.com>
2054 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
2055 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
2056 (alpha_expand_unaligned_load_words): Use extql.
2057 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
2058 (emit_insxl): Handle all modes for consistency.
2060 2011-02-24 Richard Henderson <rth@redhat.com>
2062 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
2063 (alpha_expand_unaligned_load): Likewise.
2064 (alpha_expand_unaligned_store): Likewise.
2065 (alpha_expand_unaligned_load_words): Likewise.
2066 (alpha_expand_unaligned_store_words): Likewise.
2067 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
2068 (alpha_split_lock_test_and_set_12): Likewise.
2069 (print_operand, alpha_fold_builtin_extxx): Likewise.
2070 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
2071 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
2072 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
2073 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
2074 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
2075 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
2076 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
2077 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
2078 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
2079 (extwl, extll, extql): Similarly.
2080 (inswh, inslh, insqh): Similarly.
2081 (mskbl, mskwl, mskll, mskql): Similarly.
2082 (mskwh, msklh, mskqh): Similarly.
2084 2011-02-24 Richard Henderson <rth@redhat.com>
2086 * config/alpha/alpha.md (attribute isa): Add er, ner.
2087 (attribute enabled): Handle them.
2088 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
2090 2011-02-24 Richard Henderson <rth@redhat.com>
2092 * config/alpha/alpha.md (attribute isa): Add vms.
2093 (attribute enabled): Handle it.
2094 (*movsf): Merge *movsf_{nofix,fix,nofp}.
2095 (*movdf): Merge *movdf_{nofix,fix,nofp}.
2096 (*movtf): Rename from *movtf_internal for consistency.
2097 (*movsi): Merge with *movsi_nt_vms.
2098 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
2099 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
2100 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
2101 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
2103 2011-02-24 Richard Henderson <rth@redhat.com>
2105 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
2106 (extendqisi2, extendhisi2): Likewise.
2107 (extendqidi2): Simplify BWX/non-BWX expansions.
2108 (extendhidi2): Similarly.
2110 2011-02-24 Richard Henderson <rth@redhat.com>
2112 * config/alpha/alpha.md (attribute isa): New.
2113 (attribute enabled): New.
2114 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
2115 (zero_extendqisi2, zero_extendqidi2): Similarly.
2116 (zero_extendhisi2, zero_extendhidi2): Similarly.
2117 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
2119 2011-02-24 Richard Henderson <rth@redhat.com>
2121 * config/alpha/predicates.md (input_operand): Revert last change;
2122 update comment to mention 32-bit VMS rather than Windows.
2124 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
2126 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
2127 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
2128 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
2129 * passes.c (init_optimization_passes): Move
2130 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
2132 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
2134 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
2136 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
2138 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
2141 2011-03-24 Jakub Jelinek <jakub@redhat.com>
2144 * simplify-rtx.c (simplify_const_unary_operation): Call
2145 real_convert when changing mode class with FLOAT_EXTEND.
2147 2011-03-24 Nick Clifton <nickc@redhat.com>
2149 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
2150 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
2151 * config/rx/rx.c (rx_option_override): Set align_jumps,
2152 align_loops and align_labels if not set by the user.
2153 (rx_align_for_label): New function.
2154 (rx_max_skip_for_label): New function.
2155 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
2156 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
2157 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
2158 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
2159 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
2161 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
2163 PR rtl-optimization/48263
2164 * optabs.c (expand_binop_directly): Reinstate convert_modes code
2165 and original commutative_p handling. Use maybe_gen_insn.
2167 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2169 * reload.c (find_reloads_subreg_address): Add address_reloaded
2170 parameter and return true there if the full address has been
2172 (find_reloads_toplev): Pass address_reloaded flag.
2173 (find_reloads_address_1): Don't use address_reloaded parameter.
2175 2011-03-24 Jeff Law <law@redhat.com>
2177 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
2178 unused variable "ann".
2179 (remove_unused_locals): Likewise.
2181 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
2184 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
2187 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2189 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
2190 for invalid symbolic addresses.
2191 (s390_secondary_reload): Don't use s390_check_symref_alignment for
2194 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
2196 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
2197 the argument in calls to fold_truth_not_expr.
2199 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
2201 * tree.c (record_node_allocation_statistics): New function.
2202 (make_node_stat, copy_node_stat, build_string): Call it.
2203 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
2204 (build1_stat, build_omp_clause): Likewise.
2206 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
2208 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
2211 2011-03-24 Richard Guenther <rguenther@suse.de>
2213 PR tree-optimization/48271
2214 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
2215 blocks that still exist.
2217 2011-03-24 Richard Guenther <rguenther@suse.de>
2219 PR tree-optimization/48270
2220 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
2221 not free datarefs before ddrs.
2223 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
2225 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
2226 from the address built for a reference with variable offset.
2228 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
2231 * config/i386/i386.md (*movdf_internal_rex64): Do not split
2232 alternatives that can be handled with movq or movabsq insn.
2233 (*movdf_internal): Disable for !TARGET_64BIT.
2234 (*movdf_internal_nointeger): Ditto.
2235 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
2237 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
2239 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
2240 (FUNCTION_ARG_ADVANCE): Likewise.
2241 * tm.texi.in: Change references to them to hook references.
2242 * tm.texi: Regenerate.
2243 * targhooks.c (default_function_arg): Eliminate check for target macro.
2244 (default_function_incoming_arg): Likewise.
2245 (default_function_arg_advance): Likewise.
2246 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
2247 (function_arg_advance): Likewise.
2248 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
2250 2011-03-24 Richard Guenther <rguenther@suse.de>
2253 * tree-object-size.c (addr_object_size): Do not double-account
2254 for MEM_REF offsets.
2256 2011-03-24 Diego Novillo <dnovillo@google.com>
2258 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
2259 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
2260 (lto_input_data_block): Move from lto-opts.c. Make extern.
2262 (lto_input_string): Rename from input_string. Make extern.
2264 * lto-streamer-out.c (lto_output_string_with_length): Rename from
2265 output_string_with_length.
2266 Output 0 to indicate a non-NULL string. Update all callers to
2268 (lto_output_string): Rename from output_string. Make extern.
2270 (lto_output_decl_state_streams): Make extern.
2271 (lto_output_decl_state_refs): Make extern.
2272 * lto-streamer.h (lto_input_string): Declare.
2273 (lto_input_data_block): Declare.
2274 (lto_output_string): Declare.
2275 (lto_output_string_with_length): Declare.
2276 (lto_output_decl_state_streams): Declare.
2277 (lto_output_decl_state_refs): Declare.
2279 2011-03-24 Richard Guenther <rguenther@suse.de>
2281 PR tree-optimization/46562
2282 * tree.c (build_invariant_address): New function.
2283 * tree.h (build_invariant_address): Declare.
2284 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
2285 a renamed function moved ...
2286 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
2287 Take valueization callback parameter.
2288 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
2289 * gimple-fold.h: New file.
2290 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
2291 (ccp_fold, fold_const_aggregate_ref,
2292 fold_ctor_reference, fold_nonarray_ctor_reference,
2293 fold_array_ctor_reference, fold_string_cst_ctor_reference,
2294 get_base_constructor): Move ...
2295 * gimple-fold.c: ... here.
2296 (gimple_fold_stmt_to_constant_1): New function
2297 split out from ccp_fold. Take a valueization callback parameter.
2298 Valueize all operands.
2299 (gimple_fold_stmt_to_constant): New wrapper function.
2300 (fold_const_aggregate_ref_1): New function split out from
2301 fold_const_aggregate_ref. Take a valueization callback parameter.
2302 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
2303 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
2304 invariant POINTER_PLUS_EXPRs to invariant form.
2305 (vn_valueize): New function.
2306 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
2307 * tree-vrp.c (vrp_valueize): New function.
2308 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
2309 to fold statements to constants.
2310 * tree-ssa-pre.c (eliminate): Properly guard propagation of
2311 function declarations.
2312 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
2313 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
2315 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
2317 * config/h8300/predicates.md (jump_address_operand): Fix register
2320 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
2322 * doc/invoke.texi (max-stores-to-sink): Document.
2323 * params.h (MAX_STORES_TO_SINK): Define.
2324 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
2325 if either vectorization or if-conversion is disabled.
2326 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
2327 tree-vect-data-refs.c vect_equal_offsets.
2328 (dr_equal_offsets_p): New function.
2329 (find_data_references_in_bb): Remove static.
2330 * tree-data-ref.h (find_data_references_in_bb): Declare.
2331 (dr_equal_offsets_p): Likewise.
2332 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
2333 (vect_drs_dependent_in_basic_block): Update calls to
2335 (vect_check_interleaving): Likewise.
2336 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
2337 (cond_if_else_store_replacement): Rename to...
2338 (cond_if_else_store_replacement_1): ... this. Change arguments and
2340 (cond_if_else_store_replacement): New function.
2341 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
2342 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
2344 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
2347 * config/arm/arm.md (casesi): Use the gen_int_mode() function
2348 to subtract lower bound instead of GEN_INT().
2350 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
2355 * doc/extend.texi (Alignment): Move section to match order in TOC.
2356 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
2357 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
2359 2011-03-23 Jeff Law <law@redhat.com>
2361 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
2362 before removing the edge.
2364 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
2365 it may have been freed by redirect_branch_edge or
2366 redirect_edge_succ_nodup.
2368 2011-03-23 Richard Guenther <rguenther@suse.de>
2370 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
2371 (check_va_list_escapes): Likewise.
2372 (check_all_va_list_escapes): Likewise.
2374 2011-03-23 Richard Guenther <rguenther@suse.de>
2376 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
2377 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
2378 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
2379 (alias.o): Likewise.
2380 (ipa-type-escape.o): Remove.
2381 (ipa-struct-reorg.o): Likewise.
2382 (GTFILES): Remove ipa-struct-reorg.c.
2383 * alias.c: Do not include ipa-type-escape.h.
2384 * tree-ssa-alias.c: Likewise.
2385 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
2386 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
2387 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
2388 and ipa-type-escape passes.
2389 * tree-pass.h (pass_ipa_type_escape): Remove.
2390 (pass_ipa_struct_reorg): Likewise.
2391 * ipa-struct-reorg.h: Remove.
2392 * ipa-struct-reorg.c: Likewise.
2393 * ipa-type-escape.h: Likewise.
2394 * ipa-type-escape.c: Likewise.
2395 * doc/invoke.texi (-fipa-struct-reorg): Remove.
2396 (--param struct-reorg-cold-struct-ratio): Likewise.
2397 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
2398 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
2399 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
2401 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2403 * config/s390/2084.md: Enable all insn reservations also for z9_ec
2404 cpu attribute value.
2405 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
2406 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
2407 * config/s390/s390.c (processor_flags_table): New constant array.
2408 (s390_handle_arch_option): Remove.
2409 (s390_handle_option): Remove s390_handle_arch_option invocations
2410 and OPT_mwarn_framesize_ handling.
2411 (s390_option_override): Remove s390_handle_arch_option invocation.
2412 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
2414 * config/s390/s390.md (cpu attribute): Add z9_ec value.
2415 * config/s390/s390.opt (s390_tune, s390_arch)
2416 (march=): Replace s390_arch_option enum and values with
2417 processor_type. Set variable name to s390_arch. Set
2418 initialization value.
2419 (mtune=): Replace s390_arch_option with processor_type. Set
2420 variable name to s390_tune. Set initialization value.
2422 2011-03-23 Julian Brown <julian@codesourcery.com>
2424 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
2425 accesses which are not naturally aligned.
2427 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
2430 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
2432 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
2434 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
2435 parameter from "int" to "enum insn_code".
2436 (expand_operand_type): New enum.
2437 (expand_operand): New structure.
2438 (create_expand_operand): New function.
2439 (create_fixed_operand, create_output_operand): Likewise
2440 (create_input_operand, create_convert_operand_to): Likewise.
2441 (create_convert_operand_from, create_address_operand): Likewise.
2442 (create_integer_operand): Likewise.
2443 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
2444 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
2445 (expand_insn, expand_jump_insn): Likewise.
2446 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
2447 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
2448 (expand_movstr, expand_builtin___clear_cache): Likewise.
2449 (expand_builtin_lock_release): Likewise.
2450 * explow.c (allocate_dynamic_stack_space): Likewise.
2451 (probe_stack_range): Likewise. Allow check_stack to FAIL,
2452 and use the default handling in that case.
2453 * expmed.c (check_predicate_volatile_ok): Delete.
2454 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
2455 (emit_cstore): Likewise.
2456 * expr.c (emit_block_move_via_movmem): Likewise.
2457 (set_storage_via_setmem, expand_assignment): Likewise.
2458 (emit_storent_insn, try_casesi): Likewise.
2459 (emit_single_push_insn): Likewise. Allow the expansion to fail.
2460 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
2461 (expand_vec_shift_expr, expand_binop_directly): Likewise.
2462 (expand_twoval_unop, expand_twoval_binop): Likewise.
2463 (expand_unop_direct, emit_indirect_jump): Likewise.
2464 (emit_conditional_move, vector_compare_rtx): Likewise.
2465 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
2466 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
2467 (expand_sync_lock_test_and_set): Likewise.
2468 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
2469 (emit_unop_insn): Likewise.
2470 (expand_copysign_absneg): Change icode to an insn_code.
2471 (create_convert_operand_from_type): New function.
2472 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
2473 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
2474 (expand_insn, expand_jump_insn): Likewise.
2475 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
2476 than const_int_operand for operand 2.
2478 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2480 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
2483 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
2485 * emit-rtl.c (emit_pattern_before_noloc): New function.
2486 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
2487 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
2488 (emit_pattern_after_noloc): New function.
2489 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
2490 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
2492 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
2494 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
2495 (__ffsDI2): Likewise.
2497 2011-03-22 Richard Henderson <rth@redhat.com>
2499 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
2500 of !TARGET_ABI_OPEN_VMS.
2501 (alpha_trampoline_init, alpha_start_function): Likewise.
2502 (alpha_expand_epilogue, alpha_file_start): Likewise.
2503 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
2504 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
2505 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
2506 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
2507 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
2509 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2511 * config/s390/s390-opts.h: New.
2512 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
2513 s390_arch_flags, s390_warn_framesize, s390_stack_size,
2514 s390_stack_guard): Remove.
2515 (s390_handle_arch_option): Return void. Take enum
2516 s390_arch_option value instead of string and searching array.
2517 (s390_handle_option): Don't assert that global structures are in
2518 use. Access variables via opts pointer. Use error_at. Don't use
2519 sscanf for -mstack-guard= or -mstack-size=. Update call to
2520 s390_handle_arch_option.
2521 (s390_option_override): Update call to s390_handle_arch_option.
2522 (s390_emit_prologue): Use %d format for s390_stack_size in
2523 diagnostic. Use %wd for HOST_WIDE_INT.
2524 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
2525 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
2526 * config/s390/s390.opt (config/s390/s390-opts.h): New
2527 HeaderInclude entry.
2528 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
2529 s390_arch_flags, s390_warn_framesize): New Variable entries.
2530 (s390_arch_option): New Enum and EnumValue entries.
2531 (march=): Use Enum instead of Var.
2532 (mstack-guard=, mstack-size=): Use UInteger and Var.
2535 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2537 * config/score/score.c (score_handle_option): Don't assert that
2538 global structures are in use. Access target_flags via opts
2539 pointer. Use value of -march= option to determine target_flags
2541 * config/score/score.opt (march=): Use Enum.
2542 (score_arch): New Enum and EnumValue entries.
2544 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2546 * config/mep/mep.c (option_mtiny_specified): Remove.
2547 (mep_option_override): Move register handling for -mivc2 from
2548 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
2549 instead of option_mtiny_specified.
2550 (mep_handle_option): Access target_flags via opts pointer. Don't
2551 assert that global structures are in use. Defer part of -mivc2
2552 handling and move it to mep_option_override.
2553 * config/mep/mep.opt (IVC2): New Mask entry.
2554 (mivc2): Use Var and Defer instead of Mask.
2556 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2558 * config/v850/v850-opts.h: New.
2559 * config/v850/v850.c (small_memory): Replace with
2560 small_memory_physical_max array. Make that array static const.
2561 (v850_handle_memory_option): Take integer value of argument. Take
2562 gcc_options pointer, option text and location. Return void.
2563 Update for changes to small memory structures.
2564 (v850_handle_option): Access target_flags via opts pointer. Don't
2565 assert that global structures are in use. Update calls to
2566 v850_handle_memory_option.
2567 (v850_encode_data_area): Update references to small memory settings.
2568 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
2569 (enum small_memory_type): Move to v850-opts.h.
2570 * config/v850/v850.opt (config/v850/v850-opts.h): New
2571 HeaderInclude entry.
2572 (small_memory_max): New Variable entry.
2573 (msda): Replace by pair of options msda= and msda-. Use UInteger.
2574 (mtda, mzda): Likewise.
2576 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2578 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
2579 pointer. Don't assert that global structures are in use.
2581 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2583 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
2584 via opts pointer. Don't assert that global structures are in use.
2586 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2588 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
2589 (munix=93): Use Var.
2590 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
2591 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
2592 * config/pa/pa-opts.h: New.
2593 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
2594 (pa_handle_option): Don't assert that global structures are in
2595 use. Access target_flags via opts pointer. Don't handle
2596 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
2598 (pa_option_override): Handle deferred OPT_mfixed_range_.
2600 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2602 * config/mn10300/mn10300-opts.h: New.
2603 * config/mn10300/mn10300.c (mn10300_processor,
2604 mn10300_tune_string): Remove.
2605 (mn10300_handle_option): Don't assert that global structures are
2606 in use. Access mn10300_processor via opts pointer. Don't handle
2608 * config/mn10300/mn10300.h (enum processor_type): Move to
2610 (mn10300_processor): Remove.
2611 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
2612 HeaderInclude entry.
2613 (mn10300_processor): New Variable entry.
2616 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2618 * config/microblaze/microblaze.c: Don't include opts.h.
2619 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
2620 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
2621 (mno-clearbss): Use Var and Warn.
2623 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2625 * config/m32r/m32r-opts.h: New.
2626 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
2627 (m32r_handle_option): Don't assert that global structures are in
2628 use. Access target_flags and m32r_cache_flush_func via opts
2629 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
2630 OPT_mno_flush_trap here.
2631 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
2632 include of m32r-opts.h.
2633 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
2634 HeaderInclude entry.
2635 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
2636 (mmodel=): Use Enum and Var.
2637 (m32r_model): New Enum and EnumValue entries.
2638 (mno-flush-trap): Use Var.
2639 (msdata=): Use Enum and Var.
2640 (m32r_sdata): New Enum and EnumValue entries.
2642 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2644 * config/m32c/m32c.c: Don't include opts.h.
2645 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
2646 m32c_handle_option): Remove.
2647 (m32c_option_override): Check global_options_set.x_target_memregs
2648 instead of target_memregs_set.
2649 * config/m32c/m32c.h (target_memregs): Remove.
2650 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
2653 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2655 * config/iq2000/iq2000-opts.h: New.
2656 * config/iq2000/iq2000.c: Don't include opts.h.
2657 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
2658 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
2659 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
2660 HeaderInclude entry.
2661 (iq2000_tune): New Variable entry.
2662 (march=): Add comment. Use Enum.
2663 (iq2000_arch): New Enum and EnumValue entries.
2664 (mcpu=): Use Enum and Var.
2665 (iq2000_tune): New Enum and EnumValue entries.
2667 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2669 * config/ia64/ia64-opts.h: New.
2670 * config/ia64/ia64.c (ia64_tune): Remove.
2671 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
2673 (ia64_option_override): Handle deferred OPT_mfixed_range_.
2674 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
2675 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
2676 HeaderInclude entry.
2677 (ia64_tune): New Variable entry.
2678 (mfixed-range=): Use Defer and Var.
2679 (mtune=): Use Enum and Var.
2680 (ia64_tune): New Enum and EnumValue entries.
2682 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2684 * config/frv/frv-opts.h: New.
2685 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
2687 (frv_cpu_type): Remove.
2688 * config/frv/frv.c: Don't include opts.h.
2689 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
2690 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
2691 (frv_cpu_type): New Variable entry.
2692 (frv_cpu): New Enum and EnumValue entries.
2694 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2696 * config/cris/cris.c (cris_handle_option): Access target_flags via
2697 opts pointer. Don't assert that global structures are in use.
2698 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
2699 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
2701 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2703 * config/bfin/bfin-opts.h: New.
2704 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
2705 bfin_si_revision, bfin_workarounds): Remove.
2706 (bfin_cpus): Make static const.
2707 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
2708 not bfin_lib_id_given.
2709 (bfin_handle_option): Don't set bfin_lib_id_given. Access
2710 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
2711 pointer. Use error_at. Don't assert that global structures are in use.
2712 * config/bfin/bfin.h: Include bfin-opts.h.
2713 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
2714 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
2715 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
2716 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
2719 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2721 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
2722 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
2723 or -msoft-float here.
2724 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
2725 -msoft-float and -mhard-float.
2726 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
2727 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
2729 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
2731 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
2732 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
2734 (LIBGCC_SPEC): Don't handle -msoft-float.
2735 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
2737 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
2739 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
2740 -mfloat-abi=*, not -msoft-float and -mhard-float.
2741 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
2743 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
2744 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
2745 mhard-float and msoft-float.
2746 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
2747 mfloat-abi=soft in comments, not mhard-float and msoft-float.
2748 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
2749 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
2751 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
2752 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
2754 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
2756 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
2759 2011-03-22 Richard Henderson <rth@redhat.com>
2761 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
2762 TARGET_ABI_WINDOWS_NT.
2763 (alpha_output_function_end_prologue): Likewise.
2764 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
2765 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
2766 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
2767 (trap, *movsi_nt_vms): Likewise.
2768 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
2769 (*tablejump_osf_nt_internal): Remove.
2770 * config/alpha/predicates.md (input_operand): Only test Pmode.
2772 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2774 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
2775 via opts pointer. Use error_at. Don't assert that global
2776 structures are in use.
2778 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2780 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
2781 (ix86_handle_option): Access ix86_isa_flags and
2782 ix86_isa_flags_explicit via opts pointer. Don't assert that
2783 global structures are in use.
2784 (ix86_function_specific_save, ix86_function_specific_restore):
2785 Update ix86_isa_flags_explicit field name.
2786 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
2787 (ix86_isa_flags_explicit): Rename TargetSave entry to
2788 x_ix86_isa_flags_explicit.
2790 2011-03-22 Richard Henderson <rth@redhat.com>
2792 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
2793 (alpha_option_override, direct_return): Likewise.
2794 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
2795 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
2796 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
2797 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
2798 (alpha_expand_epilogue, alpha_end_function): Likewise.
2799 (alpha_init_libfuncs): Likewise.
2800 (struct machine_function): Remove unicosmk members.
2801 (print_operand) ['t']: Remove.
2802 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
2803 unicosmk_output_module_name, unicosmk_output_common,
2804 current_section_align, unicosmk_output_text_section_asm_op,
2805 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
2806 unicosmk_section_type_flags, unicosmk_unique_section,
2807 unicosmk_asm_named_section, unicosmk_insert_attributes,
2808 unicosmk_output_align, unicosmk_defer_case_vector,
2809 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
2810 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
2811 unicosmk_output_ssib, unicosmk_add_call_info_word,
2812 unicosmk_extern_head, unicosmk_output_default_externs,
2813 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
2814 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
2815 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
2816 * config/alpha/alpha-protos.h: Update.
2817 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
2818 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
2819 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
2820 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
2821 (*mulsi_se, mulvsi3): Likewise.
2822 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
2823 (*divmodsi_internal, call, call_value, realign): Likewise.
2824 (moddi3, umoddi3): Likewise; remove duplicate expander.
2825 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
2826 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
2827 (*movdi_nofix): Remove r/U alternative.
2828 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
2829 * config/alpha/constraints.md ("U"): Remove.
2830 * config/alpha/predicates.md (call_operand"): Don't test
2831 TARGET_ABI_UNICOSMK.
2833 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2835 * target.def (handle_option): Take gcc_options and
2836 cl_decoded_option pointers and location_t.
2837 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
2838 * doc/tm.texi: Regenerate.
2839 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
2840 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
2841 * lto-opts.c (lto_reissue_options): Generate option structure for
2842 targetm.handle_option call.
2843 * opts.c (target_handle_option): Update call to
2844 targetm.handle_option. Remove assertions about values now passed
2846 * targhooks.c (default_target_handle_option): New.
2847 * targhooks.h (default_target_handle_option): Declare.
2848 * config/alpha/alpha.c: Include opts.h.
2849 (alpha_handle_option): Update to new hook interface.
2850 * config/arm/arm.c: Include opts.h.
2851 (arm_handle_option): Update to new hook interface.
2852 * config/arm/t-arm (arm.o): Update dependencies.
2853 * config/bfin/bfin.c: Include opts.h.
2854 (bfin_handle_option): Update to new hook interface.
2855 * config/cris/cris.c: Include opts.h.
2856 (cris_handle_option): Update to new hook interface.
2857 * config/frv/frv.c: Include opts.h.
2858 (frv_handle_option): Update to new hook interface.
2859 * config/i386/i386.c: Include opts.h.
2860 (ix86_handle_option): Update to new hook interface.
2861 (ix86_valid_target_attribute_inner_p): Generate option structure
2862 for call to ix86_handle_option.
2863 * config/i386/t-i386 (i386.o): Update dependencies.
2864 * config/ia64/ia64.c: Include opts.h.
2865 (ia64_handle_option): Update to new hook interface.
2866 * config/ia64/t-ia64 (ia64.o): Update dependencies.
2867 * config/iq2000/iq2000.c: Include opts.h.
2868 (iq2000_handle_option): Update to new hook interface.
2869 * config/m32c/m32c.c: Include opts.h.
2870 (m32c_handle_option): Update to new hook interface.
2871 * config/m32r/m32r.c: Include opts.h.
2872 (m32r_handle_option): Update to new hook interface.
2873 * config/m68k/m68k.c: Include opts.h.
2874 (m68k_handle_option): Update to new hook interface.
2875 * config/mep/mep.c: Include opts.h.
2876 (mep_handle_option): Update to new hook interface.
2877 * config/microblaze/microblaze.c: Include opts.h.
2878 (microblaze_handle_option): Update to new hook interface.
2879 * config/mips/mips.c: Include opts.h.
2880 (mips_handle_option): Update to new hook interface.
2881 * config/mn10300/mn10300.c: Include opts.h.
2882 (mn10300_handle_option): Update to new hook interface.
2883 * config/pa/pa.c: Include opts.h.
2884 (pa_handle_option): Update to new hook interface.
2885 * config/pdp11/pdp11.c: Include opts.h.
2886 (pdp11_handle_option): Update to new hook interface.
2887 * config/rs6000/rs6000.c: Include opts.h.
2888 (rs6000_handle_option): Update to new hook interface.
2889 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
2890 * config/rx/rx.c: Include opts.h.
2891 (rx_handle_option): Update to new hook interface.
2892 * config/s390/s390.c: Include opts.h.
2893 (s390_handle_option): Update to new hook interface.
2894 * config/score/score.c: Include opts.h.
2895 (score_handle_option): Update to new hook interface.
2896 * config/sh/sh.c: Include opts.h.
2897 (sh_handle_option): Update to new hook interface.
2898 * config/sparc/sparc.c: Include opts.h.
2899 (sparc_handle_option): Update to new hook interface.
2900 * config/v850/v850.c: Include opts.h.
2901 (v850_handle_option): Update to new hook interface.
2903 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2905 * gcc.c (driver_unknown_option_callback): Only permit and save
2906 unknown -Wno- options.
2907 (driver_wrong_lang_callback): Save options directly instead of via
2908 driver_unknown_option_callback.
2910 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2912 * combine.c (simplify_set): Try harder to find the best CC mode when
2913 simplifying a nested COMPARE on the RHS.
2915 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2917 * config/alpha/gnu.h: Remove.
2918 * config/arc: Remove directory.
2919 * config/arm/netbsd.h: Remove.
2920 * config/arm/t-pe: Remove.
2921 * config/crx: Remove directory.
2922 * config/i386/netbsd.h: Remove.
2923 * config/m68hc11: Remove directory.
2924 * config/m68k/uclinux-oldabi.h: Remove.
2925 * config/mcore/mcore-pe.h: Remove.
2926 * config/mcore/t-mcore-pe: Remove.
2927 * config/netbsd-aout.h: Remove.
2928 * config/rs6000/gnu.h: Remove.
2929 * config/sh/sh-symbian.h: Remove.
2930 * config/sh/symbian-base.c: Remove.
2931 * config/sh/symbian-c.c: Remove.
2932 * config/sh/symbian-cxx.c: Remove.
2933 * config/sh/symbian-post.h: Remove.
2934 * config/sh/symbian-pre.h: Remove.
2935 * config/sh/t-symbian: Remove.
2936 * config/svr3.h: Remove.
2937 * config/vax/netbsd.h: Remove.
2938 * config.build: Don't handle i[34567]86-*-pe.
2939 * config.gcc: Remove handling of deprecations for most deprecated
2941 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
2942 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
2943 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
2944 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
2945 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
2946 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
2948 * config.host: Don't handle i[34567]86-*-pe.
2949 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
2950 (ASM_SPEC32): Don't handle -mcall-gnu.
2951 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
2953 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
2954 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
2955 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
2956 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
2957 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
2958 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
2959 conditional on SYMBIAN.
2960 * configure.ac: Don't handle powerpc*-*-gnu*.
2961 * configure: Regenerate.
2962 * doc/extend.texi (interrupt attribute): Don't mention CRX.
2963 * doc/install-old.texi (m6811, m6812): Don't mention.
2964 * doc/install.texi (arc-*-elf*): Don't document multilib option.
2965 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
2966 (m68k-uclinuxoldabi): Don't mention.
2967 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
2969 (-mcall-gnu): Remove.
2970 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
2971 families): Remove constraint documentation.
2973 2011-03-22 Marius Strobl <marius@FreeBSD.org>
2975 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
2976 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
2977 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
2979 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
2981 * config/avr/avr-protos.h (expand_epilogue): Change prototype
2982 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
2983 * config/avr/avr.c (init_cumulative_args)
2984 (avr_function_arg_advance): Use it.
2985 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
2987 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
2988 (avr_function_ok_for_sibcall): ...this new function.
2989 (avr_lookup_function_attribute1): New static Function.
2990 (avr_naked_function_p, interrupt_function_p)
2991 (signal_function_p, avr_OS_task_function_p)
2992 (avr_OS_main_function_p): Use it.
2993 * config/avr/avr.md ("sibcall", "sibcall_value")
2994 ("sibcall_epilogue"): New expander.
2995 ("*call_insn", "*call_value_insn"): New insn.
2996 ("call_insn", "call_value_insn"): Remove
2997 ("call", "call_value", "epilogue"): Change expander to handle
3000 2011-03-21 Nick Clifton <nickc@redhat.com>
3002 * doc/invoke.texi (Overall Options): Move closing brace to end of
3004 (Optimization Options): Add missing @gol.
3005 (Directory Options): Likewise.
3006 (i386 and x86-64 Options): Likewise.
3007 (RS6000 and PowerPC Options): Likewise.
3008 (i386 and x86-64 Windows Options): Likewise.
3009 (V850 Options): Add text missing from descriptions.
3011 2011-03-22 Richard Henderson <rth@redhat.com>
3013 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
3014 (avr_incoming_return_addr_rtx): New.
3015 (emit_push_byte): New.
3016 (expand_prologue): Use it. Remove incorrect dwarf annotation for
3017 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
3018 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
3019 (emit_pop_byte): New.
3020 (expand_epilogue): Use it. Pop frame pointer by bytes.
3021 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
3022 (INCOMING_RETURN_ADDR_RTX): New.
3023 (INCOMING_FRAME_SP_OFFSET): New.
3024 (ARG_POINTER_CFA_OFFSET): New.
3025 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
3026 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
3029 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
3031 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
3033 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
3034 (FUNCTION_ARG_ADVANCE): Likewise.
3035 * tm.texi.in: Change references to them to hook references.
3036 * tm.texi: Regenerate.
3037 * targhooks.c (default_function_arg): Eliminate check for target
3039 (default_function_incoming_arg): Likewise.
3040 (default_function_arg_advance): Likewise.
3041 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
3042 (function_arg_advance): Likewise.
3043 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
3045 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
3047 * tree.c (build_call_1): New function.
3048 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
3050 2011-03-22 Richard Guenther <rguenther@suse.de>
3052 PR tree-optimization/48228
3053 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
3054 for single-arg PHIs.
3056 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
3058 PR rtl-optimization/48143
3059 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
3060 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
3061 sse2_cvtps2pd): Likewise.
3063 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3065 * recog.c (canonicalize_change_group): Use validate_unshare_change.
3067 2011-03-22 Richard Guenther <rguenther@suse.de>
3069 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
3070 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
3071 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
3072 and REALIGN_LOAD_EXPR.
3073 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
3074 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
3075 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
3076 DOT_PROD_EXPR case ...
3077 (expand_expr_real_2): ... here.
3078 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
3079 and REALIGN_LOAD_EXPR.
3080 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
3081 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
3082 (vect_create_epilog_for_reduction): Likewise.
3083 (vectorizable_reduction): Likewise.
3084 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
3085 * tree-vect-stmts.c (vectorizable_load): Likewise.
3087 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3089 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
3091 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3093 * config/s390/s390.c (s390_delegitimize_address): Fix offset
3094 handling for PLTOFF/GOTOFF.
3096 2011-03-22 Nick Clifton <nickc@redhat.com>
3098 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
3099 trailing backslash from the end of the macro definition.
3101 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3103 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
3106 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
3108 * expr.h (prepare_operand): Move to...
3109 * optabs.h (prepare_operand): ...here and change the insn code
3110 parameter from "int" to "enum insn_code".
3111 (insn_operand_matches): Declare.
3112 * expr.c (init_expr_target): Use insn_operand_matches.
3113 (compress_float_constant): Likewise.
3114 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
3115 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
3116 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
3117 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
3119 (gen_cond_trap): Likewise.
3120 (prepare_operand): Likewise. Change icode to an insn_code.
3121 (insn_operand_matches): New function.
3122 * reload.c (find_reloads_address_1): Use insn_operand_matches.
3123 * reload1.c (gen_reload): Likewise.
3124 * targhooks.c (default_secondary_reload): Likewise.
3126 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
3128 * config/alpha/alpha.md (unspec): New define_c_enum.
3131 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
3134 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
3135 between a call and its CALL_ARG_LOCATION note.
3137 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
3139 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
3141 2011-03-21 Jakub Jelinek <jakub@redhat.com>
3145 * c-common.c (shorten_compare): If primopN is first sign-extended
3146 to opN and then zero-extended to result type, set primopN to opN.
3148 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
3150 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
3151 for barrier handlers.
3153 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3155 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
3156 UNSPEC constants to be in the unspec enumeration, and redefine
3157 all UNSPECV constants to be in the unspecv enumeration, so that
3158 dumps print which unspec/unspec_volatile this is.
3159 * config/rs6000/vector.md (UNSPEC_*): Ditto.
3160 * config/rs6000/paired.md (UNSPEC_*): Ditto.
3161 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
3162 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
3163 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
3165 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
3166 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
3167 UNSPECV_LWSYNC, since these are used as unspec_volatile.
3168 * config/rs6000/sync.md (isync, lwsync): Ditto.
3170 2011-03-21 Richard Guenther <rguenther@suse.de>
3172 * params.def (lto-min-partition): Fix typo.
3174 2011-03-21 Richard Guenther <rguenther@suse.de>
3177 * c-decl.c (grokdeclarator): Drop to the main variant only
3178 for array types. Drop flag_gen_aux_info check.
3180 2011-03-21 Richard Guenther <rguenther@suse.de>
3182 PR translation/47911
3183 * params.def (lto-partitions): Fix typo.
3184 (lto-min-partition): Fix wording.
3186 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
3188 * config/rs6000/t-freebsd: Remove duplication from file.
3190 2011-03-21 Richard Guenther <rguenther@suse.de>
3193 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
3195 2011-03-21 Richard Guenther <rguenther@suse.de>
3198 * params.def (lto-partitions): Require at least 1 partition.
3200 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3202 * gthr-solaris.h: Remove.
3203 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
3204 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
3205 (LIB_SPEC): Likewise.
3206 * config/sol2.opt (threads): Remove.
3207 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
3208 (sparc*-*-solaris2*): Likewise.
3209 * configure.ac (enable_threads): Enable solaris support.
3210 * configure: Regenerate.
3211 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
3212 * doc/install.texi (Configuration, --enable-threads=lib): Remove
3215 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3217 * config.gcc: Obsolete *-*-solaris2.8*.
3218 * doc/install.texi (Specific, *-*-solaris2*): Document it.
3220 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3223 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
3224 reference. Solaris 8 perl works.
3226 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3229 * doc/install.texi (Prerequisites): Move jar etc. up.
3230 Explain support library version requirements.
3232 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3235 * doc/install.texi (Prerequisites): Move Perl to build
3236 requirements. Always necessary on Solaris 2 with Sun ld.
3238 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3240 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
3242 (Specific, i?86-*-solaris2.[89]): Likewise.
3243 (Specific, i?86-*-solaris2.10): Likewise.
3244 (Specific, mips-sgi-irix6): Likewise.
3245 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
3246 Update for binutils 2.21.
3248 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3250 * configure.ac (gcc_cv_lto_plugin): Fix typo.
3251 Allow -fuse-linker-plugin for non-default plugin linker.
3252 * configure: Regenerate.
3254 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
3257 * gengtype.c (files_rules): Added rule for cp/parser.h.
3259 2011-03-21 Jakub Jelinek <jakub@redhat.com>
3262 * config/s390/s390.c (s390_delegitimize_address): Don't call
3263 lowpart_subreg if orig_x has BLKmode.
3265 2011-03-21 Kai Tietz <ktietz@redhat.com>
3268 * doc/plugins.texi: Adjust documentation for plugin register_callback.
3269 * tree.h (attribute_spec): Add new member affects_type_identity.
3270 * attribs.c (empty_attribute_table): Adjust attribute_spec
3272 * config/alpha/alpha.c: Likewise.
3273 * config/arc/arc.c: Likewise.
3274 * config/arm/arm.c: Likewise.
3275 * config/avr/avr.c: Likewise.
3276 * config/bfin/bfin.c: Likewise.
3277 * config/crx/crx.c: Likewise.
3278 * config/darwin.h: Likewise.
3279 * config/h8300/h8300.c: Likewise.
3280 * config/i386/cygming.h: Likewise.
3281 * config/i386/i386.c: Likewise.
3282 * config/ia64/ia64.c: Likewise.
3283 * config/m32c/m32c.c: Likewise.
3284 * config/m32r/m32r.c: Likewise.
3285 * config/m68hc11/m68hc11.c: Likewise.
3286 * config/m68k/m68k.c: Likewise.
3287 * config/mcore/mcore.c: Likewise.
3288 * config/mep/mep.c: Likewise.
3289 * config/microblaze/microblaze.c: Likewise.
3290 * config/mips/mips.c: Likewise.
3291 * config/rs6000/rs6000.c: Likewise.
3292 * config/rx/rx.c: Likewise.
3293 * config/sh/sh.c: Likewise.
3294 * config/sol2.h: Likewise.
3295 * config/sparc/sparc.c: Likewise.
3296 * config/spu/spu.c: Likewise.
3297 * config/stormy16/stormy16.c: Likewise.
3298 * config/v850/v850.c: Likewise.
3300 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
3302 * simplify-rtx.c (simplify_binary_operation_1): Handle
3303 (xor (and A B) C) case when B and C are both constants.
3305 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
3307 * tree-dfa.c (add_referenced_var): Fix typo in comment.
3309 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
3312 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
3314 2011-03-20 Jakub Jelinek <jakub@redhat.com>
3316 PR rtl-optimization/48156
3317 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
3318 assume df and df_lr are not NULL.
3320 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3323 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
3324 between a call and its CALL_ARG_LOCATION note.
3326 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
3329 * config/sh/sh.c (find_barrier): Don't emit a constant pool
3330 between a call and its corresponding CALL_ARG_LOCATION note.
3332 2011-03-19 Anatoly Sokolov <aesok@post.ru>
3334 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
3335 instead of loop. Use HARD_REGISTER_NUM_P predicate.
3336 * haifa-sched.c (setup_ref_regs): Ditto.
3337 * caller-save.c (add_used_regs_1): Ditto.
3338 * dse.c (look_for_hardregs): Ditto.
3339 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
3340 * sched-rgn.c (check_live_1): Ditto.
3342 2011-03-18 Joseph Myers <joseph@codesourcery.com>
3344 * c-decl.c (diagnose_mismatched_decls): Give an error for
3345 redefining a typedef with variably modified type.
3347 2011-03-18 Joseph Myers <joseph@codesourcery.com>
3349 * c-decl.c (grokfield): Don't allow typedefs for structures or
3350 unions with no tag by default.
3351 * doc/extend.texi (Unnamed Fields): Update.
3353 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
3355 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
3356 Rewrite using indirect functions.
3357 (lwp_slwpcb): Ditto.
3358 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
3359 (avx_vinsertf128<mode>): Ditto.
3361 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3363 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
3366 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3368 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
3369 splitting between a call and its corresponding CALL_ARG_LOCATION note.
3371 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
3373 PR rtl-optimization/48170
3374 * gcse.c (hoist_code): Remove bogus asserts.
3376 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
3378 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
3379 computation for prologue/epilogue.
3381 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3383 * Makefile.in (check-consistency): Remove.
3385 2011-03-18 Jakub Jelinek <jakub@redhat.com>
3388 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
3389 arange_table_in_use is 0, but either text_section_used or
3390 cold_text_section_used is true. Don't call it if
3391 !info_section_emitted.
3393 2011-03-18 Anatoly Sokolov <aesok@post.ru>
3395 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
3396 FUNCTION_VALUE_REGNO_P): Remove.
3397 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
3399 * config/avr/avr.c (avr_ret_register): Make static inline.
3400 (avr_function_value_regno_p): New function.
3401 (avr_libcall_value): Make static. Add 'func' argument.
3402 (avr_function_value): Make static. Rename 'func' argument to
3403 'fn_decl_or_type', forward it to avr_libcall_value. Call
3404 avr_ret_register function instead of RET_REGISTER macro.
3405 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
3407 2011-03-18 Jason Merrill <jason@redhat.com>
3410 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
3412 2011-03-18 Richard Guenther <rguenther@suse.de>
3414 * doc/install.texi (--enable-gold): Remove.
3415 (--with-plugin-ld): Document.
3416 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
3418 2011-03-18 Andrew Pinski <pinskia@gmail.com>
3421 * expr.c (optimize_bitfield_assignment_op): Revamp to work
3422 again after expansion changes.
3424 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
3426 * combine.c (try_combine): Do simplification only call of
3427 subst() on i2 even when i1 is present. Update comments.
3429 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
3431 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
3432 and UNSPEC_PCREL_SYMOFF.
3434 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3436 * config/s390/s390.md: Use define_c_enum for the unspec constant
3439 2011-03-18 Richard Henderson <rth@redhat.com>
3440 Jakub Jelinek <jakub@redhat.com>
3443 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
3444 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
3446 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
3449 * combine.c (cant_combine_insn_p): Don't check zero/sign
3450 extended hard registers.
3452 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
3455 * combine.c (cant_combine_insn_p): Check zero/sign extended
3458 2011-03-17 Anatoly Sokolov <aesok@post.ru>
3460 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
3461 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
3462 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
3463 Change return type to bool.
3464 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
3466 2011-03-17 Jakub Jelinek <jakub@redhat.com>
3469 * var-tracking.c (prepare_call_arguments): If CALL target
3470 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
3471 pc instead of looking it up using cselib_lookup and use
3472 Pmode for it if x has VOIDmode.
3473 * dwarf2out.c (gen_subprogram_die): If also both first and
3474 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
3477 * function.c (assign_parms): For data.passed_pointer parms
3478 use MEM of data.entry_parm instead of data.entry_parm itself
3479 as DECL_INCOMING_RTL.
3480 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
3481 also when passed and declared mode is the same, DECL_RTL
3482 is a MEM with pseudo as address and DECL_INCOMING_RTL is
3485 2011-03-16 Jeff Law <law@redhat.com>
3487 PR rtl-optimization/37273
3488 * ira-costs.c (scan_one_insn): Detect constants living in memory and
3489 handle them like argument loads from stack slots. Do not double
3490 count memory for memory constants and argument loads from stack slots.
3492 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
3495 * var-tracking.c (prepare_call_arguments): Check SUBREG.
3497 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
3500 * config/i386/i386.opt: Add Save to -mavx and -mfma.
3502 2011-03-17 Jakub Jelinek <jakub@redhat.com>
3505 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
3507 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
3508 Clear call_arg_locations and call_arg_loc_last always.
3511 * var-tracking.c (prepare_call_arguments): If argument needs to be
3512 passed by reference, adjust argtype and mode.
3514 2011-03-17 Richard Guenther <rguenther@suse.de>
3517 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
3518 a value make sure to fold the statement.
3520 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
3523 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
3524 return condition with !cfun->calls_alloca.
3526 2011-03-17 Richard Guenther <rguenther@suse.de>
3529 * lto-cgraph.c (input_overwrite_node): Clear the abstract
3530 origin for decls in other ltrans units.
3531 (input_varpool_node): Likewise.
3533 2011-03-17 Richard Guenther <rguenther@suse.de>
3536 * tree-object-size.c (compute_object_offset): Properly return
3537 the offset operand of MEM_REFs as sizetype.
3539 2011-03-17 Jakub Jelinek <jakub@redhat.com>
3541 PR rtl-optimization/48141
3542 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
3543 * dse.c: Include params.h.
3544 (active_local_stores_len): New variable.
3545 (add_wild_read, dse_step1): Clear it when setting active_local_stores
3547 (record_store, check_mem_read_rtx): Decrease it when removing
3549 (scan_insn): Likewise. Increase it when adding to chain, if it
3550 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
3551 set active_local_stores to NULL before the addition.
3552 * Makefile.in (dse.o): Depend on $(PARAMS_H).
3554 PR rtl-optimization/48141
3555 * dse.c (record_store): If no positions are needed in an insn
3556 that cannot be deleted, at least unchain it from active_local_stores.
3558 2011-03-16 Dodji Seketeli <dodji@redhat.com>
3561 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
3562 (lookup_type_die_strip_naming_typedef): ... here.
3563 (get_context_die): Use it.
3564 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
3565 the anonymous struct named by the naming typedef.
3567 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
3570 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
3571 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
3573 2011-03-16 Jeff Law <law@redhat.com>
3575 * tree-vrp.c (identify_jump_threads): Slightly simplify type
3576 check for operands of conditional. Allow type to be a pointer.
3578 2011-03-16 Richard Guenther <rguenther@suse.de>
3580 PR tree-optimization/48149
3581 * fold-const.c (fold_binary_loc): Fold
3582 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
3584 2011-03-16 Richard Guenther <rguenther@suse.de>
3586 PR tree-optimization/26134
3587 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
3588 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
3589 (non_rewritable_mem_ref_base): Handle complex type component
3590 accesses, constrain offsets for vector and complex extracts
3593 2011-03-16 Richard Guenther <rguenther@suse.de>
3595 PR tree-optimization/48146
3596 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
3597 operands avoiding the need for renaming.
3599 2011-03-16 Richard Guenther <rguenther@suse.de>
3601 * gimple-fold.c (maybe_fold_reference): Open-code relevant
3602 constant folding. Move MEM_REF canonicalization first.
3603 Rely on fold_const_aggregate_ref for initializer folding.
3604 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
3606 2011-03-16 Jakub Jelinek <jakub@redhat.com>
3609 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
3610 arg0/arg1 or their arguments are always fold converted to matching
3613 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
3616 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3619 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
3620 Handle in-tree gold.
3621 (ld_vers): Extract binutils version for gold.
3622 (gcc_cv_ld_hidden): Handle gold here.
3623 (gcc_cv_lto_plugin): Determine level of linker plugin support.
3624 * configure: Regenerate.
3625 * config.in: Regenerate.
3626 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
3627 -fuse-linker-plugin otherwise.
3628 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
3629 (LINK_COMMAND_SPEC): Use it.
3630 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
3632 2011-03-16 Jakub Jelinek <jakub@redhat.com>
3634 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
3635 * calls.c: Remove debug.h include.
3636 (emit_call_1): Don't call virtual_call_token debug hook.
3637 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
3638 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
3639 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
3640 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
3641 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
3642 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
3643 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
3644 dwarf2out_virtual_call): Remove.
3645 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
3646 copy_call_info and virtual_call hooks.
3647 (dwarf2out_init): Don't initialize vcall_insn_table,
3648 debug_dcall_section and debug_vcall_section.
3649 (prune_unused_types): Don't mark nodes from dcall_table.
3650 (dwarf2out_finish): Don't output dcall or vcall tables.
3651 * final.c (final_scan_insn): Don't call direct_call or
3652 virtual_call debug hooks.
3653 * debug.h (struct gcc_debug_hooks): Remove direct_call,
3654 virtual_call_token, copy_call_info and virtual_call hooks.
3655 (debug_nothing_uid): Remove prototype.
3656 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
3657 copy_call_info and virtual_call hooks.
3658 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3659 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
3660 * debug.c (do_nothing_debug_hooks): Likewise.
3661 (debug_nothing_uid): Remove.
3662 * doc/invoke.texi (-fenable-icf-debug): Remove.
3663 * common.opt (-fenable-icf-debug): Likewise.
3665 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
3666 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
3667 call's MEM. Handle functions returning aggregate through a hidden
3668 first pointer. For virtual calls add clobbered pc to call arguments
3670 * dwarf2out.c (gen_subprogram_die): Emit
3671 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
3675 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
3676 * rtl.h (ENTRY_VALUE_EXP): Define.
3677 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
3678 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
3679 * print-rtl.c (print_rtx): Likewise.
3680 * gengtype.c (adjust_field_rtx_def): Likewise.
3681 * var-tracking.c (vt_add_function_parameter): Adjust
3682 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
3683 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
3684 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
3685 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
3686 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
3688 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
3689 Call var_location debug hook even on CALL_INSNs.
3690 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
3691 * rtl.def (ENTRY_VALUE): New.
3692 * dwarf2out.c: Include cfglayout.h.
3693 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3694 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
3695 (struct call_arg_loc_node): New type.
3696 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
3697 tail_call_site_count): New variables.
3698 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
3699 DW_TAG_GNU_call_site_parameter.
3700 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
3701 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
3702 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
3703 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
3704 and DW_AT_GNU_all_source_call_sites.
3705 (mem_loc_descriptor): Handle ENTRY_VALUE.
3706 (add_src_coords_attributes): Don't add enything if
3707 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
3708 (dwarf2out_abstract_function): Save and clear call_arg_location,
3709 call_site_count and tail_call_site_count around dwarf2out_decl call.
3710 (gen_call_site_die): New function.
3711 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
3712 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
3713 (dwarf2out_function_decl): Clear call_arg_locations,
3714 call_arg_loc_last, set call_site_count and tail_call_site_count
3715 to -1 and free block_map.
3716 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
3717 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
3718 followed by any real instructions.
3719 (dwarf2out_begin_function): Set call_site_count and
3720 tail_call_site_count to 0.
3721 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
3722 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
3723 attempt to force a DIE for it and worst case remove the attribute.
3724 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
3725 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
3727 * var-tracking.c: Include tm_p.h.
3728 (vt_stack_adjustments): For calls call note_register_arguments.
3729 (argument_reg_set): New variable.
3730 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
3731 ensure the VALUE is resolved.
3732 (call_arguments): New variable.
3733 (prepare_call_arguments): New function.
3734 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
3735 (struct expand_loc_callback_data): Add ignore_cur_loc field.
3736 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
3737 always use the best expression.
3738 (vt_expand_loc): Add ignore_cur_loc argument.
3739 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
3740 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
3741 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
3743 (vt_add_function_parameter): Use cselib_lookup_from_insn.
3744 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
3745 argument. Don't call cselib_preserve_only_values and
3747 (note_register_arguments): New function.
3748 (vt_initialize): Compute argument_reg_set. Call
3749 vt_add_function_parameters before processing basic blocks instead of
3750 afterwards. For calls call prepare_call_arguments before calling
3751 cselib_process_insn.
3752 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
3753 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
3754 (var-tracking.o): Depend on $(TM_P_H).
3755 * cfglayout.h (insn_scope): New prototype.
3756 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
3757 * cfglayout.c (insn_scope): No longer static.
3758 * insn-notes.def (CALL_ARG_LOCATION): New.
3759 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
3760 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
3761 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
3762 nothing for DECL_EXTERNAL BLOCK_VARS.
3764 2011-03-16 Alan Modra <amodra@gmail.com>
3767 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
3768 create invalid offset address for vsx splat insn.
3769 * config/rs6000/predicates.md (splat_input_operand): New.
3770 * config/rs6000/vsx.md (vsx_splat_*): Use it.
3772 2011-03-15 Xinliang David Li <davidxl@google.com>
3775 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
3776 (normalize_preds): New function.
3777 (is_use_properly_guarded): Normalize def predicates.
3779 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3782 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
3783 in the output template.
3785 2011-03-15 Richard Guenther <rguenther@suse.de>
3788 * tree-pretty-print.c (dump_function_declaration): Properly
3789 dump unprototyped and varargs function types.
3791 2011-03-15 Richard Guenther <rguenther@suse.de>
3793 PR tree-optimization/13954
3794 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
3797 2011-03-15 Richard Guenther <rguenther@suse.de>
3799 PR tree-optimization/48037
3800 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
3801 selects into BIT_FIELD_REFs.
3802 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
3805 2011-03-15 Jakub Jelinek <jakub@redhat.com>
3807 PR tree-optimization/48129
3808 * builtins.c (fold_builtin_snprintf): Convert to type of
3809 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
3810 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
3812 2011-03-15 Richard Guenther <rguenther@suse.de>
3814 PR tree-optimization/41490
3815 * tree-ssa-dce.c (propagate_necessity): Handle returns without
3816 value but with VUSE.
3817 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
3819 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
3820 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
3821 * tree-tailcall.c (find_tail_calls): Ignore returns.
3823 2011-03-15 Richard Guenther <rguenther@suse.de>
3826 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
3827 or variable-indexed array accesses when in gimple form.
3829 2011-03-15 Richard Guenther <rguenther@suse.de>
3831 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
3833 2011-03-15 Alan Modra <amodra@gmail.com>
3836 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
3837 presume symbol_refs without a symbol_ref_decl are suitably
3838 aligned, nor other trees we may see here. Handle anchor symbols.
3839 (legitimate_constant_pool_address_p): Comment. Add mode param.
3840 Check cmodel=medium addresses. Adjust all calls.
3841 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
3842 creating cmodel=medium optimized access to locals.
3843 * config/rs6000/constraints.md (R): Pass QImode to
3844 legitimate_constant_pool_address_p.
3845 * config/rs6000/predicates.md (input_operand): Pass mode to
3846 legitimate_constant_pool_address_p.
3847 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
3850 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3853 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
3854 64-bit constants being loaded into registers other than GPRs such
3855 as loading 0 into a VSX register.
3857 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3859 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
3861 2011-03-14 Jakub Jelinek <jakub@redhat.com>
3864 * builtins.c (fold_builtin_snprintf): New function.
3865 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
3866 (fold_builtin_4): Likewise.
3869 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
3870 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
3871 and C - X == X also strip nops from +/-/p+ operand.
3872 When optimizing -X == C, fold C to arg0's type.
3875 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
3876 emit it as add_AT_int instead of add_AT_unsigned.
3878 2011-03-14 Tom Tromey <tromey@redhat.com>
3880 * unwind-dw2.c: Include sys/sdt.h if it exists.
3881 (_Unwind_DebugHook): Use STAP_PROBE2.
3882 * config.in, configure: Rebuild.
3883 * configure.ac: Check for sys/sdt.h.
3885 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
3887 * config/i386/i386.md (ROUND_FLOOR): New constant.
3888 (ROUND_CEIL): Ditto.
3889 (ROUND_TRUNC): Ditto.
3890 (ROUND_MXCSR): Ditto.
3891 (ROUND_NO_EXC): Ditto.
3892 (rint<mode>2): Use new defines instead of numerical constants.
3893 (floor<mode>2): Ditto.
3894 (ceil<mode>2): Ditto.
3895 (btrunc<mode>2): Ditto.
3896 * config/i386/i386-builtin-types.def: Define ROUND function type
3898 * config/i386/i386.c (enum ix86_builtins): Add
3899 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
3900 (struct builtin_description): Add
3901 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
3902 (ix86_expand_sse_round): New static function.
3903 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
3905 (ix86_builtin_vectorized_function): Handle
3906 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
3908 2011-03-14 Tom Tromey <tromey@redhat.com>
3910 * c-parser.c (c_parser_asm_string_literal): Clear
3911 warn_overlength_strings.
3913 2011-03-14 Tom Tromey <tromey@redhat.com>
3915 * c-parser.c (disable_extension_diagnostics): Save
3916 warn_overlength_strings.
3917 (restore_extension_diagnostics): Restore warn_overlength_strings.
3919 2011-03-14 Jakub Jelinek <jakub@redhat.com>
3921 * BASE-VER: Change to 4.7.0.
3923 2011-03-14 Richard Guenther <rguenther@suse.de>
3926 * tree.c (build_vector_from_val): Adjust assert to requirements
3929 2011-03-14 Jakub Jelinek <jakub@redhat.com>
3932 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
3934 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
3936 * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
3937 terms of target_flags_explicit. Adjust copyright year.
3939 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
3940 * config/rs6000/t-freebsd: New file. Add override for
3943 2011-03-13 Chris Demetriou <cgd@google.com>
3945 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
3946 (-fno-diagnostics-show-option): this, to reflect current default.
3947 (-Werror=): Update text about -fno-diagnostics-show-option.
3949 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
3952 * config/rs6000/predicates.md (easy_vector_constant_add_self,
3953 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
3954 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
3955 mode is not V2DImode or V2DFmode.
3956 (vspltis_constant): Do not handle V2DImode and V2DFmode.
3957 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
3958 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
3960 (movdi_internal64): Likewise.
3962 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
3964 PR tree-optimization/47127
3965 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
3967 (set_cloog_options): Same.
3968 (scop_to_clast): Same.
3969 (print_clast_stmt): Do not call cloog_state_malloc and
3971 (print_generated_program): Same.
3973 * graphite-clast-to-gimple.h (cloog_state): Declared.
3974 (scop_to_clast): Adjust declaration.
3975 * graphite.c (cloog_state): Defined here.
3976 (graphite_initialize): Call cloog_state_malloc.
3977 (graphite_finalize): Call cloog_state_free.
3979 2011-03-11 Jason Merrill <jason@redhat.com>
3981 * attribs.c (lookup_attribute_spec): Take const_tree.
3984 2011-03-11 Joseph Myers <joseph@codesourcery.com>
3986 * config/sparc/sparc.c (sparc_option_override): Use
3987 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
3989 2011-03-11 Richard Guenther <rguenther@suse.de>
3991 PR tree-optimization/48067
3992 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
3993 multiplication result will be only used once on the target
3996 2011-03-11 Richard Guenther <rguenther@suse.de>
3998 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
4000 2011-03-11 Richard Guenther <rguenther@suse.de>
4003 * tree.c (find_decls_types_r): Do not walk types only reachable
4004 from IDENTIFIER_NODEs.
4006 2011-03-11 Jakub Jelinek <jakub@redhat.com>
4009 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
4010 all vnode->force_output nodes as needed.
4012 2011-03-11 Jason Merrill <jason@redhat.com>
4015 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
4016 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
4018 2011-03-11 Martin Jambor <mjambor@suse.cz>
4020 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
4023 2011-03-11 Jakub Jelinek <jakub@redhat.com>
4025 PR tree-optimization/48063
4026 * ipa-inline.c (cgraph_decide_inlining): Don't try to
4027 inline functions called once if !tree_can_inline_p (node->callers).
4029 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
4031 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
4033 * config/score/score3.c: Delete.
4034 * config/score/score3.h: Delete.
4035 * config/score/mul-div.S: Delete.
4036 * config/score/sfp-machine.h: Add new file.
4037 * config/score/constraints.md: Add new file.
4038 * config/score/t-score-softfp: Add new file.
4039 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
4040 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
4041 (score7_extra_constraint): Delete.
4042 (score7_option_override): Remove unused code.
4043 * config/score/score.c: Remove score3 and score5 define and code.
4044 * config/score/score.h: Remove score3 and score5 define and code.
4045 * config/score/score.md: Remove score3 template and unusual insn.
4046 * config/score/score.opt: Remove score3 and score5 options.
4048 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4050 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
4051 when _HPUX_SOURCE is defined.
4052 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
4054 2011-03-10 Jason Merrill <jason@redhat.com>
4057 * stor-layout.c (layout_type): Don't set structural equality
4058 on arrays of incomplete type.
4059 * tree.c (type_hash_eq): Handle comparing them properly.
4061 2011-03-10 Jakub Jelinek <jakub@redhat.com>
4064 * config/s390/s390.c (s390_delegitimize_address): Make sure the
4065 result mode matches original rtl mode.
4067 2011-03-10 Nick Clifton <nickc@redhat.com>
4069 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
4070 (andsi3, andsi3_flags): Fix timings for three operand alternative.
4072 2011-03-09 Jakub Jelinek <jakub@redhat.com>
4074 PR rtl-optimization/47866
4075 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
4076 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
4077 if target wasn't scalar.
4078 * function.c (assign_stack_temp_for_type): Assert that neither
4079 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
4080 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
4082 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
4084 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4086 * config/s390/s390-protos.h (s390_label_align): New prototype.
4087 * config/s390/s390.c (s390_label_align): New function.
4088 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
4090 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
4093 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
4094 V2DI/V2DF constants. Only all 0's or all 1's are easy.
4095 (output_vec_const_move): Ditto.
4097 2011-03-08 Anatoly Sokolov <aesok@post.ru>
4099 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
4100 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
4101 * config/mips/mips.c (mips_preferred_reload_class): Make static.
4102 Change 'rclass' argument and result type to reg_class_t.
4103 (TARGET_PREFERRED_RELOAD_CLASS): Define.
4105 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
4107 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4108 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
4109 (TARGET_MEMORY_MOVE_COST): Define.
4110 (avr_register_move_cost, avr_memory_move_cost): New Functions.
4112 2011-03-08 Jakub Jelinek <jakub@redhat.com>
4115 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
4118 PR tree-optimization/48022
4119 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
4122 2011-03-07 Jakub Jelinek <jakub@redhat.com>
4125 * var-tracking.c (find_use_val): Return NULL for
4126 cui->sets && cui->store_p BLKmode MEMs.
4128 2011-03-07 Anatoly Sokolov <aesok@post.ru>
4130 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
4132 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
4133 xstormy16_print_operand_address): Remove.
4134 * config/stormy16/stormy16.c (xstormy16_print_operand,
4135 xstormy16_print_operand_address): Make static.
4136 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4138 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
4141 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
4142 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
4145 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
4148 * cfgloopmanip.c (fix_bb_placements): Return immediately
4149 if FROM is BASE_LOOP's header.
4151 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
4153 * gimplify.c (gimplify_function_tree): Fix building calls
4154 to __builtin_return_address.
4156 2011-03-07 Alan Modra <amodra@gmail.com>
4158 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
4159 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
4160 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
4161 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
4163 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
4164 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
4165 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
4166 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
4167 * config/rs6000/rs6000.c
4168 (rs6000_elf_end_indicate_exec_stack): Rename to..
4169 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
4170 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
4171 (rs6000_file_start): ..here.
4172 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
4173 file scope variables.
4174 (call_ABI_of_interest): New function.
4175 (init_cumulative_args): Set above vars when function return value
4176 is a float, vector, or small struct.
4177 (rs6000_function_arg_advance_1): Likewise for function args.
4178 (rs6000_va_start): Set rs6000_passes_float if variable arg function
4179 references float args.
4181 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
4183 * doc/cfg.texi: Remove "See" before @ref.
4184 * doc/invoke.texi: Likewise.
4186 2011-03-05 Jason Merrill <jason@redhat.com>
4188 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
4190 2011-03-05 Anthony Green <green@moxielogic.com>
4192 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
4194 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
4196 PR rtl-optimization/47899
4197 * cfgloopmanip.c (fix_bb_placements): Fix first argument
4198 to flow_loop_nested_p when moving the loop upward.
4200 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
4203 * arm.md (movhi_insn_arch4): Accept any immediate constant.
4205 2011-03-05 Jakub Jelinek <jakub@redhat.com>
4207 PR tree-optimization/47967
4208 * ipa-cp.c (build_const_val): Return NULL instead of creating
4209 VIEW_CONVERT_EXPR for mismatching sizes.
4210 (ipcp_create_replace_map): Return NULL if build_const_val failed.
4211 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
4212 give up on versioning.
4214 2011-03-05 Alan Modra <amodra@gmail.com>
4217 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4218 full cmodel medium/large lo_sum + high addresses.
4220 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4222 * config/s390/s390.c (s390_decompose_address): Reject non-literal
4223 pool references in UNSPEC_LTREL_OFFSET.
4225 2011-03-04 Jan Hubicka <jh@suse.cz>
4228 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
4229 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
4230 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
4232 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
4233 cgraph_add_thunk): Add node pointers.
4234 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
4235 associated to right node.
4236 (input_node): Update use of cgraph_same_body_alias
4237 and cgraph_add_thunk.
4239 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
4241 * config/i386/i386.opt (mprefer-avx128): New flag.
4242 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
4243 modes when the flag -mprefer-avx128 is on.
4245 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
4247 * dwarf2out.c (compare_loc_operands): Fix address handling.
4249 2011-03-04 Alan Modra <amodra@gmail.com>
4251 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
4253 2011-03-04 Richard Guenther <rguenther@suse.de>
4256 * expmed.c (extract_bit_field_1): Prefer vector modes that
4257 vec_extract patterns can handle.
4259 2011-03-04 Richard Guenther <rguenther@suse.de>
4262 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
4264 2011-03-04 Richard Henderson <rth@redhat.com>
4266 * explow.c (emit_stack_save): Remove 'after' parameter.
4267 (emit_stack_restore): Likewise.
4268 * expr.h: Update to match.
4269 * builtins.c, calls.c, stmt.c: Likewise.
4270 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
4271 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
4272 * function.c (expand_function_end): Insert the emit_stack_save
4273 sequence before parm_birth_insn instead of after.
4275 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
4277 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
4278 (ssse3_pmaddubsw128): Ditto.
4279 (ssse3_pmaddubsw): Ditto.
4281 2011-03-03 Steve Ellcey <sje@cup.hp.com>
4283 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
4285 2011-03-03 Jakub Jelinek <jakub@redhat.com>
4288 * gimplify.c (omp_add_variable): Only call omp_notice_variable
4289 on TYPE_SIZE_UNIT if it is a DECL.
4292 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
4293 first operand is not is_gimple_mem_ref_addr, try to fold it.
4294 If the operand still isn't is_gimple_mem_ref_addr, clear
4297 2011-03-03 Richard Guenther <rguenther@suse.de>
4300 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
4302 (refs_may_alias_p_1): For release branches return true if
4303 we are confused by our input.
4305 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4307 * config/s390/s390.c (s390_function_value): Rename to ...
4308 (s390_function_and_libcall_value): ... this.
4309 (s390_function_value): New function.
4310 (s390_libcall_value): New function.
4311 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
4312 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
4313 target macro definitions.
4314 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
4316 2011-03-02 Joseph Myers <joseph@codesourcery.com>
4318 * config/i386/freebsd64.h (CC1_SPEC): Define.
4319 * config/i386/linux64.h (CC1_SPEC): Define.
4320 * config/i386/x86-64.h (CC1_SPEC): Don't define.
4322 2011-03-02 Anatoly Sokolov <aesok@post.ru>
4324 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
4326 * config/stormy16/stormy16.c: Include reload.h.
4327 (xstormy16_memory_move_cost): New function.
4328 (TARGET_MEMORY_MOVE_COST): Define.
4330 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
4332 PR rtl-optimization/47925
4333 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
4334 with side effects. Remove the more-specific check for volatile asms.
4336 2011-03-02 Alan Modra <amodra@gmail.com>
4339 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
4340 toc relative addresses for valid offsets.
4342 2011-03-01 Richard Guenther <rguenther@suse.de>
4344 PR tree-optimization/47890
4345 * tree-vect-loop.c (get_initial_def_for_induction): Set
4346 related stmt properly.
4348 2011-03-01 Richard Guenther <rguenther@suse.de>
4351 * lto-streamer.c (lto_record_common_node): Also register
4354 2011-03-01 Richard Guenther <rguenther@suse.de>
4357 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
4358 Do not stream DECL_ABSTRACT_ORIGIN.
4359 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
4360 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
4361 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
4362 Do not stream DECL_ABSTRACT_ORIGIN.
4363 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
4364 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
4366 2011-02-28 Anatoly Sokolov <aesok@post.ru>
4368 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
4369 FUNCTION_VALUE_REGNO_P): Remove.
4370 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
4371 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
4372 Add 'outgoing' argument.
4373 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
4375 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4376 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4378 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
4381 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
4382 (lookup_filename): Likewise.
4383 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
4385 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
4386 Jakub Jelinek <jakub@redhat.com>
4389 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
4390 (assign_stack_local_1): Change last argument type to int.
4391 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
4392 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
4393 don't record padding space into frame_space_list nor use those areas.
4394 (assign_stack_local): Adjust caller.
4395 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
4396 of assign_stack_local, pass 0 as last argument.
4397 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
4400 2011-02-28 Jakub Jelinek <jakub@redhat.com>
4403 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
4404 Use target address_mode and pointer_mode hooks instead of hardcoded
4405 Pmode and ptr_mode. Handle some simple cases of extending if
4406 POINTERS_EXTEND_UNSIGNED < 0.
4407 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
4408 Call convert_debug_memory_address.
4409 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
4410 convert_debug_memory_address.
4413 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
4414 * configure: Regenerated.
4415 * config.in: Regenerated.
4416 * varasm.c (default_function_section): Return NULL
4417 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
4419 2011-02-28 Martin Jambor <mjambor@suse.cz>
4421 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
4422 the description to match the printed values.
4424 2011-02-28 Richard Guenther <rguenther@suse.de>
4426 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
4427 of the copied scope tree.
4429 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4431 * doc/extend.texi (Function Attributes): Avoid deeply (and
4432 wrongly) nested tables.
4434 2011-02-27 Jakub Jelinek <jakub@redhat.com>
4437 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
4438 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
4439 r isn't op0 nor op1.
4441 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
4443 * config/avr/avr.md: Remove magic comment for emacs.
4445 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
4448 * config/avr/avr.c (avr_option_override): Use error on bad options.
4449 (avr_help): New function.
4450 (TARGET_HELP): Define.
4452 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
4455 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
4456 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
4458 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
4460 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
4461 (ARM Options): Ditto.
4462 (i386 and x86-64 Options): Ditto.
4463 (RX Options): Ditto.
4464 (SPARC Options): Ditto.
4466 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
4468 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
4469 FreeBSD 6 and later. Generally use cpu generic.
4471 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
4473 * doc/cpp.texi: Update copyright years.
4475 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
4478 * config/lm32/lm32.md (ashrsi3): Added needed variable.
4480 2011-02-25 Jon Beniston <jon@beniston.com>
4483 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
4484 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
4485 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
4486 (lm32_block_move_inline): Add type cast to remove warning.
4487 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
4488 (gen_int_relational): Move declarations to start of function.
4490 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
4492 PR tree-optimization/45470
4493 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
4494 can throw internally only.
4495 * tree-vect-stmts.c (vectorizable_call): Likewise.
4497 2011-02-24 Anatoly Sokolov <aesok@post.ru>
4499 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
4500 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
4501 * config/stormy16/stormy16-protos.h
4502 (xstormy16_preferred_reload_class): Remove.
4503 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
4504 static. Change 'rclass' argument and return type to reg_class_t.
4505 (TARGET_PREFERRED_RELOAD_CLASS,
4506 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4508 2011-02-24 Richard Guenther <rguenther@suse.de>
4510 * lto-streamer-in.c (input_bb): Do not find referenced vars
4511 in debug statements.
4513 2011-02-23 Jason Merrill <jason@redhat.com>
4515 * common.opt (fabi-version): Document v5 and v6.
4517 2011-02-23 Richard Guenther <rguenther@suse.de>
4519 PR tree-optimization/47849
4520 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
4522 2011-02-23 Jie Zhang <jie@codesourcery.com>
4524 * opts-common.c (decode_cmdline_option): Print empty string
4525 argument as "" in decoded->orig_option_with_args_text.
4526 * gcc.c (execute): Print empty string argument as ""
4527 in the verbose output.
4528 (do_spec_1): Keep empty string argument.
4530 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
4532 * config.gcc: Declare score-* and crx-* obsolete.
4534 2011-02-23 Jie Zhang <jie@codesourcery.com>
4536 PR rtl-optimization/47763
4537 * web.c (web_main): Ignore naked clobber when replacing register.
4539 2011-02-22 Anatoly Sokolov <aesok@post.ru>
4541 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4544 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
4547 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
4549 2011-02-22 Mike Stump <mikestump@comcast.net>
4551 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
4553 * configure: Regenerate.
4555 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
4557 PR rtl-optimization/46002
4558 * ira-color.c (update_copy_costs): Change class intersection
4559 test to reg_class_contents[] test of 'hard_regno'.
4561 2011-02-21 Joseph Myers <joseph@codesourcery.com>
4563 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
4565 * config/hpux11.opt (mt): Likewise.
4566 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
4567 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
4568 * config/vax/elf.opt (mno-asm-pic): Likewise.
4569 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
4571 2011-02-21 Mike Stump <mikestump@comcast.net>
4574 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
4575 tree so we can get save the type.
4576 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
4577 for CFString instead of trying to use past the end of the builtins.
4578 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
4579 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
4580 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
4581 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
4582 Rename to darwin_builtin_cfstring.
4583 (darwin_init_cfstring_builtins): Return the built type.
4585 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
4588 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
4589 (_mm256_insert_epi64): Use _mm_insert_epi64.
4591 2011-02-21 Anatoly Sokolov <aesok@post.ru>
4593 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
4594 * config/stormy16/stormy16-protos.h
4595 (xstormy16_mode_dependent_address_p): Remove.
4596 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
4597 Make static. Change return type to bool. Change argument type to
4598 const_rtx. Remove dead code.
4599 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
4601 2011-02-21 Richard Guenther <rguenther@suse.de>
4604 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
4605 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
4606 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
4608 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
4609 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
4611 2011-02-20 Richard Guenther <rguenther@suse.de>
4614 * tree.c (free_lang_data_in_decl): Clean builtins from
4615 the TU decl BLOCK_VARS.
4617 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
4621 * haifa-sched.c (fix_tick_ready): Skip tick computation
4624 2011-02-19 Richard Guenther <rguenther@suse.de>
4627 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
4628 Remove lazy BLOCK_VARS streaming.
4629 (lto_input_ts_block_tree_pointers): Likewise.
4630 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
4632 2011-02-19 Joseph Myers <joseph@codesourcery.com>
4634 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
4636 2011-02-19 Joseph Myers <joseph@codesourcery.com>
4638 * config/i386/biarch32.h, config/i386/mach.h,
4639 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
4641 2011-02-19 Jakub Jelinek <jakub@redhat.com>
4644 * config/i386/i386.md (peephole2 for shift and plus): Use
4645 operands[1] original mode in the first insn.
4647 2011-02-18 Mike Stump <mikestump@comcast.net>
4649 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
4651 2011-02-18 Jan Hubicka <jh@suse.cz>
4654 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
4655 to zero when the function is not inlinable at all.
4657 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4659 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
4660 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
4661 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
4662 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
4663 * config/pa/t-pa64: Likewise.
4664 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4666 2011-02-18 Jakub Jelinek <jakub@redhat.com>
4669 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
4671 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4674 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
4676 2011-02-18 Anatoly Sokolov <aesok@post.ru>
4678 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
4679 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
4680 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
4681 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
4682 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
4683 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
4684 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
4685 m32r_load_postinc_p, m32r_store_preinc_predec_p,
4686 m32r_legitimate_address_p): New functions.
4687 * config/m32r/constraints.md (constraint "S"): Don't use
4688 STORE_PREINC_PREDEC_P.
4689 (constraint "U"): Don't use LOAD_POSTINC_P.
4691 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
4693 PR rtl-optimization/46178
4694 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
4695 compute ira_hard_regno_cover_class[].
4697 2011-02-18 Richard Guenther <rguenther@suse.de>
4700 * lto-streamer.h (lto_global_var_decls): Declare.
4701 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
4702 statics for global var processing.
4704 2011-02-18 Richard Guenther <rguenther@suse.de>
4706 PR tree-optimization/47737
4707 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
4708 edge dominance check.
4710 2011-02-18 Jakub Jelinek <jakub@redhat.com>
4713 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
4714 avoid invalid rtx sharing.
4716 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
4718 * doc/cpp.texi (Obsolete Features): Add background on the
4719 origin of assertions.
4721 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
4723 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
4725 * config/darwin.c (output_objc_section_asm_op): Added support for
4727 (is_objc_metadata): New.
4728 (darwin_objc2_section): New.
4729 (darwin_objc1_section): New.
4730 (machopic_select_section): Added support for ABI v1 and v2.
4731 (darwin_emit_objc_zeroed): New.
4732 (darwin_output_aligned_bss): Detect objc metadata and treat it
4734 (darwin_asm_output_aligned_decl_common): Same.
4735 (darwin_asm_output_aligned_decl_local): Same.
4736 * config/darwin-sections.def: Updated for ABI v1 and v2.
4737 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
4738 compiling Objective-C code for the NeXT runtime, default to using
4739 ABI version 0 for 32-bit, and version 2 for 64-bit.
4741 2011-02-17 Joseph Myers <joseph@codesourcery.com>
4743 * common.opt (optimize_fast): New Variable.
4744 * opts.c (default_options_optimization): Use opts->x_optimize_fast
4745 instead of local variable ofast.
4747 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
4749 * doc/invoke.texi (fobjc-abi-version): Documented.
4750 (fobjc-nilcheck): Documented.
4751 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
4754 2011-02-17 Joseph Myers <joseph@codesourcery.com>
4757 * common.opt (export-dynamic): New Driver option.
4758 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
4760 2011-02-17 Joseph Myers <joseph@codesourcery.com>
4762 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
4764 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
4765 Jan Hubicka <jh@suse.cz>
4769 * cfgexpand.c (account_used_vars_for_block): Remove.
4770 (estimated_stack_frame_size): Use referenced vars.
4771 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
4772 that were referenced in the original function. Test src_fn
4773 rather than cfun. Drop redundant get_var_ann.
4774 (setup_one_parameter): Drop redundant get_var_ann.
4775 (declare_return_variable): Likewise.
4776 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
4777 (copy_arguments_for_versioning): Drop redundant get_var_ann.
4778 * ipa-inline.c (compute_inline_parameters): Do not compute
4779 disregard_inline_limits here.
4780 (compute_inlinable_for_current, pass_inlinable): New.
4781 (pass_inline_parameters): Require PROP_referenced_vars.
4782 * cgraphunit.c (cgraph_process_new_functions): Don't run
4783 compute_inline_parameters explicitly unless function is in SSA form.
4784 (cgraph_analyze_function): Set .disregard_inline_limits.
4785 * tree-sra.c (convert_callers): Compute inliner parameters
4786 only for functions already in SSA form.
4788 2011-02-17 Joseph Myers <joseph@codesourcery.com>
4790 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
4791 -mlittle-endian-data.
4793 2011-02-17 Joseph Myers <joseph@codesourcery.com>
4795 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
4796 -mno-fpu, not -fpu and -no-fpu.
4797 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
4798 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
4800 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
4803 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
4804 input reload with PLUS RTX.
4806 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4808 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
4809 of InverseVar(MDMX).
4811 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4813 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
4816 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4818 * config/mn10300/mn10300.opt (mno-crt0): New.
4820 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4822 * config/m68k/uclinux.opt (static-libc): New Driver option.
4824 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4826 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
4828 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4830 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
4831 %{muser-extend-enabled}.
4833 2011-02-16 Richard Guenther <rguenther@suse.de>
4835 PR tree-optimization/47738
4836 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
4837 the TODO from tree_predictive_commoning.
4839 2011-02-15 Jeff Law <law@redhat.com>
4842 2011-01-25 Jeff Law <law@redhat.com>
4844 PR rtl-optimization/37273
4845 * ira-costs.c (scan_one_insn): Detect constants living in memory and
4846 handle them like argument loads from stack slots. Do not double
4847 count memory for memory constants and argument loads from stack slots.
4849 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
4852 * combine.c (cant_combine_insn_p): Revert the last change.
4854 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
4857 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
4858 mode for vector constants. Remove code that checks for TImode.
4860 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
4864 * cgraph.h (compute_inline_parameters): Return void.
4865 * ipa-inline.c (compute_inline_parameters): Adjust.
4867 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
4871 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
4873 * cfgexpand.c (estimated_stack_frame_size): Likewise.
4874 * ipa-inline.c (compute_inline_parameters): Adjust.
4876 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
4880 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
4881 Adjust all users. Pass FN to...
4882 * tree-flow-inline.h (first_referenced_var): ... this. Add
4884 * ipa-struct-reorg.c: Adjust.
4885 * tree-dfa.c: Adjust.
4886 * tree-into-ssa.c: Adjust.
4887 * tree-sra.c: Adjust.
4888 * tree-ssa-alias.c: Adjust.
4889 * tree-ssa-live.c: Adjust.
4890 * tree-ssa.c: Adjust.
4891 * tree-ssanames.c: Adjust.
4892 * tree-tailcall.c: Adjust.
4894 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
4898 * tree-flow.h (referenced_var_lookup): Add fn parameter.
4900 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
4901 * tree-flow-inline.h: Adjust.
4902 * gimple-pretty-print.c: Adjust.
4903 * tree-into-ssa.c: Adjust.
4904 * tree-ssa.c: Adjust.
4905 * cfgexpand.c: Adjust.
4907 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
4909 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
4910 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4911 (EXTRA_CONSTRAINT): Delete.
4912 * config/iq2000/constraints.md: New file.
4913 * config/iq2000/iq2000.md: Include it.
4914 (define_insn ""): Delete.
4915 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
4916 unsupported constraint letters from patterns.
4917 (call_value, call_value_internal1): Likewise.
4918 (call_value_multiple_internal1): Likewise.
4920 2011-02-15 Nick Clifton <nickc@redhat.com>
4922 * config/mn10300/mn10300.c: Include tm-constrs.h.
4923 (struct liw_data): New data structure describing an LIW candidate
4925 (extract_bundle): Use struct liw_data. Allow small integer
4926 operands for some instructions.
4927 (check_liw_constraints): Use struct liw_data. Remove swapped
4928 parameter. Add comments describing the checks. Fix bug when
4929 assigning the source of liw1 to the source of liw2.
4930 (liw_candidate): Delete. Code moved into extract_bundle.
4931 (mn10300_bundle_liw): Use struct liw_data. Check constraints
4933 * config/mn10300/predicates.md (liw_operand): New predicate.
4934 Allows registers and small integer constants.
4935 * config/mn10300/constraints.md (O): New constraint. Accetps
4936 integers in the range -8 to +7 inclusive.
4937 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
4938 for moving a small integer into a register. Give this alternative
4940 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
4941 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
4942 using the J,K,L and M constraints,
4943 (liw): Remove SI mode on second operands to allow for HI and QI
4945 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
4948 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
4951 * combine.c (cant_combine_insn_p): Check zero/sign extended
4954 2011-02-15 Richard Guenther <rguenther@suse.de>
4956 PR tree-optimization/47743
4957 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
4958 for a non-type-compatible VN lookup bail out.
4960 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
4962 * config/fr30/constraints.md: New file.
4963 * config/fr30/fr30.md: Include it.
4964 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
4965 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4966 (EXTRA_CONSTRAINT): Delete.
4968 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
4970 * config/frv/constraints.md: New file.
4971 * config/frv/predicates.md: Include it.
4972 * config/frv/frv.c (reg_class_from_letter): Delete.
4973 (frv_option_override): Don't initialize it.
4974 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
4975 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
4976 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
4977 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
4978 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
4979 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4980 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
4981 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
4982 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
4983 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
4984 (REG_CLASS_FROM_CONSTRAINT): Delete.
4986 2011-02-15 Jakub Jelinek <jakub@redhat.com>
4989 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
4990 if frame size is 0 in a leaf function.
4992 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4995 * config/alpha/host-osf.c: New file.
4996 * config/alpha/x-osf: New file.
4997 * config.host (alpha*-dec-osf*): Use it.
4999 2011-02-14 Anatoly Sokolov <aesok@post.ru>
5001 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5002 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
5003 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
5004 (rx_mode_dependent_address_p): ...this. Make static. Change argument
5006 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5008 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
5010 * config/stormy16/constraints.md: New file.
5011 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
5012 Use satisfies_constraint_Q and satisfies_constraint_R.
5013 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
5015 (xstormy16_legitiamte_address_p): Declare.
5016 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
5017 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5018 (EXTRA_CONSTRAINT): Delete.
5019 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
5021 (xstormy16_extra_constraint_p): Delete.
5023 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
5025 PR tree-optimization/46494
5026 * loop-unroll.c (split_edge_and_insert): Adjust comment.
5027 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
5028 (pass_rtl_loop_done): Add TODO_verify_flow.
5029 * fwprop.c (pass_rtl_fwprop): Likewise.
5030 * modulo-sched.c (pass_sms): Likewise.
5031 * tree-ssa-dom.c (pass_dominator): Likewise.
5032 * tree-ssa-loop-ch.c (pass_ch): Likewise.
5033 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
5034 (pass_tree_loop_done): Likewise.
5035 * tree-ssa-pre.c (execute_pre): Likewise.
5036 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
5037 * tree-ssa-sink.c (pass_sink_code): Likewise.
5038 * tree-vrp.c (pass_vrp): Likewise.
5040 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
5042 * config/v850/constraints.md: New file.
5043 * config/v850/v850.md: Include it.
5044 * config/v850/predicates.md (reg_or_0_operand): Use
5045 satisfies_constraint_G.
5046 (special_symbolref_operand): Use satisfies_constraint_K.
5047 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
5048 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
5049 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
5050 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
5051 (EXTRA_CONSTRAINT): Delete.
5052 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
5053 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
5054 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
5056 2011-02-14 Anatoly Sokolov <aesok@post.ru>
5059 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
5062 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
5064 * config/mcore/constraints.md: New file.
5065 * config/mcore/mcore.md: Include it.
5066 * config/mcore/mcore.c (reg_class_from_letter): Delete.
5067 * config/mcore/mcore.h (reg_class_from_letter): Delete.
5068 (REG_CLASS_FROM_LETTER): Delete.
5069 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
5070 insn_const_int_ok_for_constraint.
5071 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
5072 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
5073 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5074 (EXTRA_CONSTRAINT): Delete.
5076 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5079 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
5080 (IS_SIGHANDLER): Define.
5081 (sparc64_is_sighandler): New function, split off from
5082 sparc64_fallback_frame_state.
5083 (sparc_is_sighandler): New function, split off from
5084 sparc_fallback_frame_state.
5085 (sparc64_fallback_frame_state): Merge with ...
5086 (sparc_fallback_frame_state): ... this into ...
5087 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
5088 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
5089 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
5090 stack instead of hardcoded offsets.
5092 2011-02-14 Andriy Gapon <avg@freebsd.org>
5095 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
5097 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5099 * configure: Regenerate.
5101 2011-02-12 Joseph Myers <joseph@codesourcery.com>
5104 * gcc.c (asm_options): Correct spec matching --target-help.
5106 2011-02-12 Martin Jambor <mjambor@suse.cz>
5108 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
5109 to gimple call error.
5111 2011-02-12 Mike Stump <mikestump@comcast.net>
5113 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
5114 comments in backslash regions.
5116 2011-02-12 Mike Stump <mikestump@comcast.net>
5117 Jakub Jelinek <jakub@redhat.com>
5118 Iain Sandoe <iains@gcc.gnu.org>
5121 * dwarf2out.c (output_cfa_loc): When required, apply the
5122 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
5123 (output_loc_sequence): Likewise.
5124 (output_loc_operands_raw): Likewise.
5125 (output_loc_sequence_raw): Likewise.
5126 (output_cfa_loc): Likewise.
5127 (output_loc_list): Suppress register number adjustment when
5128 calling output_loc_sequence()
5129 (output_die): Likewise.
5131 2011-02-12 Anatoly Sokolov <aesok@post.ru>
5133 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
5135 * config/xtensa/xtensa.c (xtensa_register_move_cost,
5136 xtensa_memory_move_cost): New functions.
5137 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
5139 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
5142 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
5143 in the current directory.
5144 * configure: Rebuilt.
5146 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
5148 * config/darwin.c (darwin_override_options): Add a hunk missed
5149 from the commit of r168571. Trim comment line lengths and
5150 correct indents of the preceding block.
5152 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
5154 * gcc.c (driver_handle_option): Concatenate the argument to -F with
5157 2011-02-11 Joseph Myers <joseph@codesourcery.com>
5159 * common.opt (nostartfiles): New Driver option.
5161 2011-02-11 Xinliang David Li <davidxl@google.com>
5163 PR tree-optimization/47707
5164 * tree-chrec.c (convert_affine_scev): Keep type precision.
5166 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
5168 PR tree-optimization/47420
5169 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
5171 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
5173 PR rtl-optimization/47614
5174 * rtl.h (check_for_inc_dec): Declare.
5175 * dse.c (check_for_inc_dec): Externalize...
5176 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
5177 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
5179 2011-02-11 Joseph Myers <joseph@codesourcery.com>
5182 * gcc.c (main): Do not compile inputs if there were errors in
5184 * opts-common.c (read_cmdline_option): Check for wrong language
5185 after other error checks.
5187 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
5189 * cgraph.c: Fix comment typos.
5190 * cgraph.h: Likewise.
5191 * cgraphunit.c: Likewise.
5192 * ipa-cp.c: Likewise.
5193 * ipa-inline.c: Likewise.
5194 * ipa-prop.c: Likewise.
5195 * ipa-pure-const.c: Likewise.
5196 * ipa-ref.c: Likewise.
5197 * ipa-reference.c: Likewise.
5199 2011-02-11 Jakub Jelinek <jakub@redhat.com>
5202 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
5204 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5207 * doc/sourcebuild.texi (Require Support): Document
5208 dg-require-ascii-locale.
5210 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
5212 * doc/lto.texi (Write summary): Fix missing parentheses.
5214 2011-02-10 DJ Delorie <dj@redhat.com>
5216 * config/m32c/m32c.c (m32c_option_override): Disable
5217 -fcombine-stack-adjustments until flag value tracking and compare
5218 optimization can be rewritten.
5220 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
5222 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
5224 (PROCESSOR_DEFAULT64): Likewise.
5226 2011-02-10 Richard Henderson <rth@redhat.com>
5228 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
5229 change from 2011-02-03.
5230 * config/rx/rx.c (flags_from_code): Likewise.
5231 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
5232 is valid, n/pz otherwise.
5233 (rx_select_cc_mode): Return CCmode if Y is not zero.
5235 2011-02-10 Richard Guenther <rguenther@suse.de>
5237 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
5239 2011-02-10 Richard Guenther <rguenther@suse.de>
5241 PR tree-optimization/47677
5242 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
5244 2011-02-10 Jakub Jelinek <jakub@redhat.com>
5247 * combine.c (make_compound_operation): Only change shifts into
5248 multiplication for SCALAR_INT_MODE_P.
5250 2011-02-10 Jie Zhang <jie@codesourcery.com>
5254 2011-02-05 Jie Zhang <jie@codesourcery.com>
5256 * web.c (entry_register): Don't clobber the number of the
5257 first uninitialized reference in used[].
5259 2011-02-09 Richard Guenther <rguenther@suse.de>
5261 PR tree-optimization/47664
5262 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
5265 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
5269 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
5271 (PROCESSOR_DEFAULT64): Same.
5272 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
5274 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5276 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
5278 2011-02-09 Martin Jambor <mjambor@suse.cz>
5281 * tree-sra.c (struct access): New flags grp_scalar_read and
5282 grp_scalar_write. Changed description of assignment read and write
5284 (dump_access): Dump new flags, reorder all of them.
5285 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
5286 to detect multiple scalar reads.
5287 (analyze_access_subtree): Use the new scalar read write flags instead
5288 of the old flags. Adjusted comments.
5290 2011-02-08 DJ Delorie <dj@redhat.com>
5293 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
5296 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5298 * config/m68k/uclinux.opt: New.
5299 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
5301 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5303 * config/cris/elf.opt (sim): New Driver option.
5305 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5307 * config/xtensa/elf.opt: New.
5308 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
5310 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5312 * config/vax/elf.opt: New.
5313 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
5315 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5317 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
5319 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5321 * config/gnu-user.opt: New.
5322 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
5323 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
5324 *-*-uclinux*): Use gnu-user.opt.
5326 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
5328 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
5329 * config/i386/gnu.h (CPP_SPEC): Likewise.
5331 2011-02-08 Ian Lance Taylor <iant@google.com>
5333 * common.opt (fcx-limited-range): Add SetByCombined flag.
5334 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
5335 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
5336 (fassociative-math, freciprocal-math): Likewise.
5337 (funsafe-math-optimizations): Likewise.
5338 * opth-gen.awk: Handle SetByCombined.
5339 * optc-gen.awk: Likewise.
5340 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5341 (set_unsafe_math_optimizations_flags): Likewise.
5342 * doc/options.texi (Option properties): Document SetByCombined.
5344 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5346 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
5347 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
5348 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
5349 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
5350 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
5352 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
5354 PR tree-optimization/46834
5355 PR tree-optimization/46994
5356 PR tree-optimization/46995
5357 * graphite-sese-to-poly.c (used_outside_reduction): New.
5358 (detect_commutative_reduction): Call used_outside_reduction.
5359 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
5360 translate_scalar_reduction_to_array only when at least one
5361 loop-phi/close-phi tuple has been detected.
5363 2011-02-08 Richard Guenther <rguenther@suse.de>
5366 * tree-vect-generic.c (expand_vector_operations_1): Update
5368 (expand_vector_operations): ... not here. Cleanup EH info
5369 and the CFG if required.
5371 2011-02-08 Richard Guenther <rguenther@suse.de>
5373 PR tree-optimization/47641
5374 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
5375 require type compatibility.
5377 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5379 * gimple-low.c (lower_function_body): Don't remove the location of
5380 the return statement here.
5381 (lower_gimple_return): Do it here instead but only if the return
5382 statement is actually used twice.
5384 2011-02-08 Richard Guenther <rguenther@suse.de>
5386 PR tree-optimization/47632
5387 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
5388 unused up_to_stmt parameter, return whether cfg-cleanup is
5389 necessary, remove EH info properly.
5390 (forward_propagate_into_gimple_cond): Adjust caller.
5391 (forward_propagate_into_cond): Likewise.
5392 (forward_propagate_comparison): Likewise.
5393 (tree_ssa_forward_propagate_single_use_vars): Make
5394 forward_propagate_comparison case similar to the two others.
5396 2011-02-08 Nick Clifton <nickc@redhat.com>
5398 * config/mn10300/mn10300.opt (mliw): New command line option.
5399 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
5400 (liw_bundling): New automaton.
5401 (liw): New attribute.
5402 (liw_op): New attribute.
5403 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
5404 (movsi_internal): Add LIW attributes.
5408 (addsi3): Separate register and immediate alternatives.
5413 (lshrsi3): Likewise.
5414 (ashrsi3): Likewise.
5416 * config/mn10300/mn10300.c (liw_op_names): New
5417 (mn10300_print_operand): Handle 'W' operand descriptor.
5418 (extract_bundle): New function.
5419 (check_liw_constraints): New function.
5420 (liw_candidate): New function.
5421 (mn10300_bundle_liw): New function.
5422 (mn10300_reorg): New function.
5423 (TARGET_MACHINE_DEPENDENT_REORG): Define.
5424 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
5425 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
5426 __LIW__ or __NO_LIW__.
5427 * doc/invoke.texi: Describe the -mliw command line option.
5429 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5431 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
5432 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
5433 pthread_mutex_unlock): Remove.
5434 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
5435 * config/pa/t-pa64: Likewise.
5436 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
5437 shared libc if not linking against libpthread.
5438 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
5440 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
5443 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
5444 on 10.6 and later to ensure that we always use the unwinder from
5445 the system. Only add -no_compact_unwind when tarteting darwin
5448 2011-02-07 Steve Ellcey <sje@cup.hp.com>
5451 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
5452 (vec_interleave_lowv2sf): Ditto.
5453 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
5454 (vec_extract_oddv2sf): Ditto.
5456 2011-02-07 Mike Stump <mikestump@comcast.net>
5459 Add __ieee_divdc3 entry point.
5460 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
5462 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
5463 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
5464 * config/darwin.c (darwin_rename_builtins): Add.
5465 * config/darwin-protos.h (darwin_rename_builtins): Add.
5467 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
5470 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
5473 2011-02-07 Mike Stump <mikestump@comcast.net>
5475 * config/darwin.opt (mmacosx-version-min): Update default OS version.
5477 2011-02-07 Denis Chertykov <chertykov@gmail.com>
5480 * config/avr/libgcc.S (exit): Move .endfunc
5482 2011-02-07 Richard Guenther <rguenther@suse.de>
5484 PR tree-optimization/47615
5485 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
5486 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
5487 (run_scc_vn): Initialize it.
5488 (visit_reference_op_load): Use it.
5489 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
5491 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5493 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
5494 DImode trapping arithmetic libfuncs.
5496 2011-02-07 Richard Guenther <rguenther@suse.de>
5498 PR tree-optimization/47621
5499 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
5501 (execute_update_addresses_taken): ... here. Make it more
5502 conservative in what we accept.
5504 2011-02-06 Joseph Myers <joseph@codesourcery.com>
5506 * config/sparc/freebsd.h (ASM_SPEC): Define.
5507 * config/sparc/vxworks.h (ASM_SPEC): Define.
5509 2011-02-06 Joseph Myers <joseph@codesourcery.com>
5511 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
5513 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
5515 * doc/invoke.texi: Remove reference to compiler internals from
5518 * reg-notes.def: Remove REG_VALUE_PROFILE.
5519 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
5521 2011-02-05 Jakub Jelinek <jakub@redhat.com>
5524 * varasm.c (default_section_type_flags): If decl is NULL,
5525 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
5527 2011-02-05 Jie Zhang <jie@codesourcery.com>
5530 * web.c (entry_register): Don't clobber the number of the
5531 first uninitialized reference in used[].
5533 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
5535 PR tree-optimization/46194
5536 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
5537 (build_classic_dist_vector_1): Do not represent classic distance
5538 vectors when the access functions are variating in different loops.
5540 2011-02-04 Joseph Myers <joseph@codesourcery.com>
5542 * config/mips/iris6.opt: New.
5543 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
5545 2011-02-04 Richard Henderson <rth@redhat.com>
5546 Steve Ellcey <sje@cup.hp.com>
5549 * config/ia64/predicates.md (mux1_brcst_element): New.
5550 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
5551 * config/ia64/ia64.c (ia64_unpack_assemble): New.
5552 (ia64_unpack_sign): New.
5553 (ia64_expand_unpack): Rewrite using new routines.
5554 (ia64_expand_widen_sum): Ditto.
5555 (ia64_expand_dot_prod_v8qi): Ditto.
5556 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
5557 routines, add endian check.
5558 (pmpy2_even): Rename from pmpy2_r, add endian check.
5559 (pmpy2_odd): Rename from pmpy2_l, add endian check.
5560 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
5561 (vec_widen_smult_hi_v4hi): Ditto.
5562 (vec_widen_umult_lo_v4hi): Ditto.
5563 (vec_widen_umult_hi_v4hi): Ditto.
5564 (mulv2si3): Change endian checks.
5565 (sdot_prodv4hi): Rewrite with new calls.
5566 (udot_prodv4hi): New.
5567 (vec_pack_ssat_v4hi): Add endian check.
5568 (vec_pack_usat_v4hi): Ditto.
5569 (vec_pack_ssat_v2si): Ditto.
5570 (max1_even): Rename from max1_r, add endian check.
5571 (max1_odd): Rename from max1_l, add endian check.
5572 (*mux1_rev): Format change.
5574 (*mux1_shuf): Ditto.
5576 (*mux1_brcst_v8qi): Use new predicate.
5577 (vec_extract_evenv8qi): Remove endian check.
5578 (vec_extract_oddv8qi): Ditto.
5579 (vec_interleave_lowv4hi): Format change.
5580 (vec_interleave_highv4hi): Ditto.
5581 (mix2_even): Rename from mix2_r, add endian check.
5582 (mix2_odd): Rename from mux2_l, add endian check.
5583 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
5584 (vec_extract_evenodd_helper): Format change.
5585 (vec_extract_evenv4hi): Remove endian check.
5586 (vec_extract_oddv4hi): Remove endian check.
5587 (vec_interleave_lowv2si): Format change.
5588 (vec_interleave_highv2si): Format change.
5589 (vec_initv2si): Remove endian check.
5590 (vecinit_v2si): Add endian check.
5591 (reduc_splus_v2sf): Add endian check.
5592 (reduc_smax_v2sf): Ditto.
5593 (reduc_smin_v2sf): Ditto.
5594 (vec_initv2sf): Remove endian check.
5595 (fpack): Add endian check.
5596 (fswap): Add endian check.
5597 (vec_interleave_highv2sf): Add endian check.
5598 (vec_interleave_lowv2sf): Add endian check.
5599 (fmix_lr): Add endian check.
5600 (vec_setv2sf): Format change.
5601 (*vec_extractv2sf_0_be): Use shift to extract operand.
5602 (*vec_extractv2sf_1_be): New.
5603 (vec_pack_trunc_v4hi): Add endian check.
5604 (vec_pack_trunc_v2si): Format change.
5606 2011-02-04 Jakub Jelinek <jakub@redhat.com>
5609 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
5610 do bb, locus and block comparison and disallow loads if it is not set.
5611 (stmt_is_replaceable_p): New function.
5612 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
5614 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
5615 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
5617 * tree-flow.h (stmt_is_replaceable_p): New prototype.
5619 2011-02-04 Joseph Myers <joseph@codesourcery.com>
5621 * config/rs6000/xilinx.opt: New.
5622 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
5624 2011-02-04 Joseph Myers <joseph@codesourcery.com>
5626 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
5628 2011-02-03 Anatoly Sokolov <aesok@post.ru>
5630 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
5631 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
5632 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
5633 secondary_reload_info, xtensa_secondary_reload): Remove.
5634 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
5635 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
5636 (xtensa_preferred_reload_class): Make static. Change return and
5637 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
5638 Use CONST_DOUBLE_P predicate.
5639 (xtensa_preferred_output_reload_class): New function.
5640 (xtensa_secondary_reload): Make static.
5642 2011-02-03 Joseph Myers <joseph@codesourcery.com>
5644 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
5645 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
5646 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
5648 2011-02-03 Jakub Jelinek <jakub@redhat.com>
5651 * output.h (SECTION_RELRO): Define.
5652 (SECTION_MACH_DEP): Adjust.
5653 (get_variable_section): New prototype.
5654 * varpool.c (varpool_finalize_named_section_flags): New function.
5655 (varpool_assemble_pending_decls): Call it.
5656 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
5657 * cgraphunit.c (cgraph_output_in_order): Call
5658 varpool_finalize_named_section_flags.
5659 * varasm.c (get_section): Allow section flags conflicts between
5660 relro and read-only sections if the section hasn't been declared yet.
5661 Set SECTION_OVERRIDE after diagnosing section type conflict.
5662 (get_variable_section): No longer static.
5663 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
5664 readonly sections that need relocations.
5665 (decl_readonly_section_1): New function.
5666 (decl_readonly_section): Use it.
5669 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
5670 Steve Ellcey <sje@cup.hp.com>
5673 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
5674 if section attribute used.
5676 2011-02-03 Jakub Jelinek <jakub@redhat.com>
5678 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
5679 * config/darwin.c (SECTION_NO_ANCHOR): Define.
5680 (darwin_init_sections): Remove assertion.
5682 2011-02-03 Nick Clifton <nickc@redhat.com>
5684 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
5686 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
5687 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
5688 instead of "n" and "pz".
5689 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
5692 2011-02-03 Jakub Jelinek <jakub@redhat.com>
5695 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
5696 fma, expand FMA_EXPR as fma{,f,l} call.
5699 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
5700 copy them into a unsigned char variable and pass address of it to
5701 lto_output_data_stream.
5704 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
5705 around backend_init_target and lang_dependent_init_target calls.
5706 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
5707 (verify_cgraph_node): Don't call set_cfun here. Use
5708 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
5709 Set error_found for incorrectly represented calls to thunks.
5711 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
5714 PR rtl-optimization/43494
5715 * rtl.h (for_each_inc_dec_fn): New type.
5716 (for_each_inc_dec): Declare.
5717 * rtlanal.c (struct for_each_inc_dec_ops): New type.
5718 (for_each_inc_dec_find_inc_dec): New fn.
5719 (for_each_inc_dec_find_mem): New fn.
5720 (for_each_inc_dec): New fn.
5721 * dse.c (struct insn_size): Remove.
5722 (replace_inc_dec, replace_inc_dec_mem): Remove.
5723 (emit_inc_dec_insn_before): New fn.
5724 (check_for_inc_dec): Use it, along with for_each_inc_dec.
5725 (canon_address): Pass mem modes to cselib_lookup.
5726 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
5727 (cselib_lookup_from_insn): Likewise.
5728 (cselib_subst_to_values): Likewise.
5729 * cselib.c (find_slot_memmode): New var.
5730 (cselib_find_slot): New fn. Use it instead of
5731 htab_find_slot_with_hash everywhere.
5732 (entry_and_rtx_equal_p): Use find_slot_memmode.
5733 (autoinc_split): New fn.
5734 (rtx_equal_for_cselib_p): Rename and implement in terms of...
5735 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
5736 Deal with autoinc. Special-case recursion into MEMs.
5737 (cselib_hash_rtx): Likewise.
5738 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
5739 address and MEM modes.
5740 (cselib_subst_to_values): Add memmode, pass it on.
5742 (cselib_lookup): Add memmode argument, pass it on.
5743 (cselib_lookup_from_insn): Add memmode.
5744 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
5745 (struct cselib_record_autoinc_data): New.
5746 (cselib_record_autoinc_cb): New fn.
5747 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
5748 mode to cselib_lookup. Reset autoinced REGs here instead of...
5749 (cselib_process_insn): ... here.
5750 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
5752 (add_uses): Likewise, also to cselib_subst_to_values.
5753 (add_stores): Likewise.
5754 * sched-deps.c (add_insn_mem_dependence): Pass mode to
5755 cselib_subst_to_values.
5756 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
5757 * gcse.c (do_local_cprop): Adjusted.
5758 * postreload.c (reload_cse_simplify_set): Adjusted.
5759 (reload_cse_simplify_operands): Adjusted.
5760 * sel-sched-dump (debug_mem_addr_value): Pass mode.
5762 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
5764 PR tree-optimization/45122
5765 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
5766 unsafe assumptions when there's more than one loop exit.
5768 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
5771 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
5772 Document using vector double with the load/store builtins, and
5773 that the load/store builtins always use Altivec instructions.
5775 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
5776 to use altivec memory instructions, even on VSX.
5777 (vector_altivec_store_<mode>): Ditto.
5779 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
5782 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5783 V2DF, V2DI support to load/store overloaded builtins.
5785 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
5786 altivec load/store builtins for V2DF/V2DI types.
5788 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
5789 set avoid indexed addresses on power6 if -maltivec.
5790 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
5791 vector_altivec_load/vector_altivec_store builtins.
5792 (altivec_expand_st_builtin): Ditto.
5793 (altivec_expand_builtin): Add VSX memory builtins.
5794 (rs6000_init_builtins): Add V2DI types to internal types.
5795 (altivec_init_builtins): Add support for V2DF/V2DI altivec
5796 load/store builtins.
5797 (rs6000_address_for_altivec): Insure memory address is appropriate
5800 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
5801 vec_vsx_ld and vec_vsx_st.
5802 (vsx_store_<mode>): Ditto.
5804 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
5805 variables to hold long long types for VSX vector memory builtins.
5806 (RS6000_BTI_unsigned_long_long): Ditto.
5807 (long_long_integer_type_internal_node): Ditti.
5808 (long_long_unsigned_type_internal_node): Ditti.
5810 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
5811 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
5812 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
5814 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
5816 (vec_vsx_st): Ditto.
5818 2011-02-02 Joseph Myers <joseph@codesourcery.com>
5820 * config/pa/pa-hpux10.opt: New.
5821 * config/hpux11.opt (pthread): New Driver option.
5822 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
5823 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
5825 2011-02-02 Joseph Myers <joseph@codesourcery.com>
5827 * config/ia64/vms.opt: New.
5828 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
5830 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
5833 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
5834 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
5835 generator functions.
5836 (vsx_floatuns<VSi><mode>2): Ditto.
5837 (vsx_fix_trunc<mode><VSi>2): Ditto.
5838 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
5840 2011-02-02 Joseph Myers <joseph@codesourcery.com>
5842 * config/i386/djgpp.opt (posix): New Driver option.
5844 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
5846 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
5847 Move to the unsupported targets list.
5849 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
5851 PR rtl-optimization/47525
5852 * df-scan.c: Update copyright years.
5853 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
5854 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
5856 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5858 * config/i386/sysv4.h (TARGET_VERSION): Remove.
5859 (SUBTARGET_RETURN_IN_MEMORY): Remove.
5860 (ASM_OUTPUT_ASCII): Remove.
5861 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
5863 2011-02-02 Jeff Law <law@redhat.com>
5866 * reload.c (find_reloads_address): Handle reg+d address where both
5867 components are invalid by reloading the entire address.
5869 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
5870 Richard Guenther <rguenther@suse.de>
5872 PR tree-optimization/40979
5874 * passes.c (init_optimization_passes): After LIM call copy_prop
5875 and DCE to clean up.
5876 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
5878 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
5880 PR tree-optimization/47576
5881 PR tree-optimization/47555
5882 * doc/invoke.texi (scev-max-expr-complexity): Documented.
5883 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
5884 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
5885 * tree-scalar-evolution.c (follow_ssa_edge): Use
5886 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
5888 2011-02-02 Richard Guenther <rguenther@suse.de>
5890 PR tree-optimization/47566
5891 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
5893 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
5897 * tree-inline.c (declare_return_variable): Remove unused caller
5902 * tree-flow-inline.h (clear_is_used, is_used_p): New.
5903 * cfgexpand.c (account_used_vars_for_block): Use them.
5904 * tree-nrv.c (tree_nrv): Likewise.
5905 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
5906 (dump_scope_block): Likewise.
5907 (remove_unused_locals): Likewise.
5911 * tree-inline.c (declare_return_variable): Add result decl to
5912 local decls only once.
5913 * gimple-low.c (record_vars_into): Mark newly-created variables
5916 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
5922 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
5924 (no_real_insns_p, schedule_block, set_priorities): Drop special
5925 treatment of boundary debug insns.
5926 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
5927 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
5928 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
5929 (BOUNDARY_DEBUG_INSN_P): Likewise.
5930 (SCHEDULE_DEBUG_INSN_P): Likewise.
5931 * sched-rgn.c (init_ready_list): Drop special treatment of
5932 boundary debug insns.
5933 * final.c (rest_of_clean_state): Clear notes' BB.
5935 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5937 * config/openbsd.opt (assert=): New Driver option.
5939 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5941 * config/i386/nto.opt: New.
5942 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
5944 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5946 * config/i386/netware.opt: New.
5947 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
5949 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5951 * config/interix.opt (posix): New Driver option.
5953 2011-02-01 DJ Delorie <dj@redhat.com>
5955 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
5957 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
5960 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
5962 PR tree-optimization/47561
5963 * toplev.c (process_options): Print the Graphite flags. Add
5964 flag_loop_flatten to the list of options requiring Graphite.
5966 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5968 * config/i386/cygming.opt (posix): New Driver option.
5970 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5972 * config/arm/vxworks.opt: New.
5973 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
5975 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5977 * config/alpha/elf.opt: New.
5978 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
5979 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
5981 2011-02-01 Richard Guenther <rguenther@suse.de>
5983 PR tree-optimization/47559
5984 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
5985 store-motion on references that can throw.
5987 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
5989 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
5990 * tree-pass.h (TDF_CSELIB): New macro.
5991 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
5992 cselib_lookup): Check for it rather than for TDF_DETAILS.
5994 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
5997 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
6000 * opts.c (finish_options): Don't add x_aux_base_name if it is
6003 2011-02-01 Richard Guenther <rguenther@suse.de>
6005 PR tree-optimization/47555
6007 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
6009 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
6011 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
6014 * config/lm32/t-lm32: Add multilib for all CPU options.
6016 2011-02-01 Richard Guenther <rguenther@suse.de>
6018 PR tree-optimization/47541
6019 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
6020 sure to have a field at offset zero.
6022 2011-01-31 Joseph Myers <joseph@codesourcery.com>
6024 * config/arc/arc.opt (EB, EL): New Driver options.
6026 2011-01-31 Joseph Myers <joseph@codesourcery.com>
6028 * config/alpha/osf5.opt: New.
6029 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
6031 2011-01-31 Joseph Myers <joseph@codesourcery.com>
6033 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
6035 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
6037 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
6039 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
6040 is an alias of -floop-interchange and that it requires the
6041 Graphite infrastructure.
6042 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
6043 flag_loop_interchange based on the value of flag_tree_loop_linear.
6045 2011-01-31 Jakub Jelinek <jakub@redhat.com>
6046 Richard Guenther <rguenther@suse.de>
6048 PR tree-optimization/47538
6049 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
6050 type instead of r1type, except for comparisons. For right
6051 shifts and comparisons punt if there are mismatches in
6052 sizetype vs. non-sizetype types.
6054 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6056 * doc/sourcebuild.texi (Effective-Target Keywords): Document
6059 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6061 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
6063 * configure: Regenerate.
6065 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6067 * configure.ac (gcc_cv_ld_static_option): Define.
6068 (gcc_cv_ld_dynamic_option): Define.
6069 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
6071 (HAVE_LD_STATIC_DYNAMIC): Update message.
6072 (LD_STATIC_OPTION): Define.
6073 (LD_DYNAMIC_OPTION): Define.
6074 * configure: Regenerate.
6075 * config.in: Regenerate.
6076 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
6077 HAVE_LD_STATIC_DYNAMIC]: Use them.
6079 2011-01-31 Nick Clifton <nickc@redhat.com>
6081 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
6082 registers inside interrupt handlers if the handler is not a leaf
6085 2011-01-31 Nick Clifton <nickc@redhat.com>
6087 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
6088 reg_renumber returning an INVALID_REGNUM.
6090 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
6093 * doc/install.texi: Document host options discarded when cross
6094 configuring target libraries.
6096 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
6099 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
6102 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
6104 (no_real_insns_p, schedule_block, set_priorities): Drop special
6105 treatment of boundary debug insns.
6106 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
6107 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
6108 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
6109 (BOUNDARY_DEBUG_INSN_P): Likewise.
6110 (SCHEDULE_DEBUG_INSN_P): Likewise.
6111 * sched-rgn.c (init_ready_list): Drop special treatment of
6112 boundary debug insns.
6113 * final.c (rest_of_clean-state): Clear notes' BB.
6115 2011-01-31 Alan Modra <amodra@gmail.com>
6117 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
6118 toc relative expressions as we do in print_operand_address.
6120 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
6122 * doc/extend.texi: Follow spelling conventions.
6123 * doc/invoke.texi: Fix a typo.
6125 2011-01-30 Joseph Myers <joseph@codesourcery.com>
6127 * config/hpux11.opt: New.
6128 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
6129 ia64*-*-hpux*): Use hpux11.opt.
6131 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
6133 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
6136 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
6138 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
6141 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
6143 * doc/install.texi (Binaries): Remove outdated reference for
6144 Motorola 68HC11/68HC12 downloads.
6146 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
6148 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
6151 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
6154 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
6157 2011-01-28 Ahmad Sharif <asharif@google.com>
6159 * value-prof.c (check_counter): Corrected error message.
6161 2011-01-29 Jie Zhang <jie@codesourcery.com>
6163 * config/arm/arm.c (arm_legitimize_reload_address): New.
6164 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
6165 arm_legitimize_reload_address.
6166 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
6168 2011-01-28 Ian Lance Taylor <iant@google.com>
6170 * godump.c (go_define): Ignore macros whose definitions include
6171 two adjacent operands.
6173 2011-01-28 Jakub Jelinek <jakub@redhat.com>
6176 * varasm.c (force_const_mem): Store copy of x in desc->constant
6177 instead of x itself.
6178 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
6179 itself into REG_EQUAL note.
6181 2011-01-28 Joseph Myers <joseph@codesourcery.com>
6183 * config/freebsd.opt (posix, rdynamic): New Driver options.
6185 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6187 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
6189 * configure: Regenerate.
6191 2011-01-27 Joseph Myers <joseph@codesourcery.com>
6193 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
6194 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
6196 2011-01-27 Anatoly Sokolov <aesok@post.ru>
6198 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
6199 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
6200 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6201 (s390_preferred_reload_class): Make static. Change return and
6202 'rclass' argument type to reg_class_t.
6204 2011-01-27 Jan Hubicka <jh@suse.cz>
6207 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
6208 (process_function_and_variable_attributes): Check defined weakrefs.
6210 2011-01-27 Martin Jambor <mjambor@suse.cz>
6212 PR tree-optimization/47228
6213 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
6214 build_ref_for_offset.
6216 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6218 * config/spu/spu-elf.h (ASM_SPEC): Remove.
6220 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
6222 PR rtl-optimization/46856
6223 * postreload.c (reload_combine_recognize_const_pattern): Do not
6224 separate cc0 setter and user on cc0 targets.
6226 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
6229 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
6230 passed a VOID_TYPE expression, immediately emit an error and
6231 return error_mark_node.
6233 2011-01-26 Jeff Law <law@redhat.com>
6235 PR rtl-optimization/47464
6236 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
6237 rather than may_trap_p as needed.
6239 2011-01-26 DJ Delorie <dj@redhat.com>
6241 PR rtl-optimization/46878
6242 * combine.c (insn_a_feeds_b): Check for the implicit cc0
6243 setter/user dependency as well.
6245 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
6247 PR rtl-optimization/44469
6248 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
6249 after removing trivially dead basic blocks.
6251 2011-01-26 Joseph Myers <joseph@codesourcery.com>
6253 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
6254 * config/frv/frv.h (LINK_SPEC): Likewise.
6255 * config/i386/netware.h (LINK_SPEC): Likewise.
6256 * config/m68k/linux.h (ASM_SPEC): Likewise.
6257 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
6258 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
6259 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
6260 * config/sparc/linux.h (ASM_SPEC): Likewise.
6261 * config/sparc/linux64.h (ASM_SPEC): Likewise.
6262 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
6264 2011-01-26 Joseph Myers <joseph@codesourcery.com>
6266 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
6267 * config/frv/frv.h (ASM_SPEC): Likewise.
6268 * config/m68k/linux.h (ASM_SPEC): Likewise.
6269 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
6270 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
6271 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
6272 * config/sparc/linux.h (ASM_SPEC): Likewise.
6273 * config/sparc/linux64.h (ASM_SPEC): Likewise.
6274 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
6276 2011-01-26 Joseph Myers <joseph@codesourcery.com>
6278 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
6279 * config/frv/frv.h (LINK_SPEC): Likewise.
6280 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
6282 2011-01-26 Joseph Myers <joseph@codesourcery.com>
6284 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
6285 * config/frv/frv.h (ASM_SPEC): Likewise.
6286 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
6287 * config/m68k/linux.h (ASM_SPEC): Likewise.
6288 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
6289 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
6290 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
6291 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
6292 * config/sparc/linux.h (ASM_SPEC): Likewise.
6293 * config/sparc/linux64.h (ASM_SPEC): Likewise.
6294 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
6295 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
6297 2011-01-26 Steve Ellcey <sje@cup.hp.com>
6300 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
6302 (vec_extract_evenodd_help): Ditto.
6303 (vec_extract_evenv4hi): Ditto.
6304 (vec_extract_oddv4hi): Ditto.
6305 (vec_interleave_lowv2si): Ditto.
6306 (vec_interleave_highv2si): Ditto.
6307 (vec_extract_evenv2si): Ditto.
6308 (vec_extract_oddv2si: Ditto.
6309 (vec_pack_trunc_v2si): Ditto.
6311 2011-01-22 Jan Hubicka <jh@suse.cz>
6314 * cgraph.h (cgraph_local_info): New field can_change_signature.
6315 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
6316 signature can change.
6317 (ipcp_estimate_growth): Call sequence simplify only if calle signature
6319 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
6320 (cgraph_function_versioning): We can not change signature of functions
6321 that don't allow that.
6322 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
6323 (lto_input_node): Likewise.
6324 * ipa-inline.c (compute_inline_parameters): Compute
6325 local.can_change_signature.
6326 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
6327 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
6328 functions that can not change signature.
6329 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
6330 init_cumulative_args): Do not use local calling conventions
6331 for functions that can not change signature.
6333 2011-01-22 Jan Hubicka <jh@suse.cz>
6335 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
6337 2011-01-26 Richard Guenther <rguenther@suse.de>
6339 PR tree-optimization/47190
6340 * cgraphunit.c (process_common_attributes): New function.
6341 (process_function_and_variable_attributes): Use it.
6343 2011-01-26 Richard Guenther <rguenther@suse.de>
6346 * cgraphbuild.c (record_eh_tables): Record reference to personality
6349 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
6352 * sel-sched.c (moveup_expr): Don't let debug insns prevent
6353 non-debug insns from moving up.
6355 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
6358 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
6359 t-dlldir{,-x} fragment for build and add it to tmake_file.
6360 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
6361 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
6362 * config/i386/t-dlldir: New file.
6363 (SHLIB_DLLDIR): Define.
6364 * config/i386/t-dlldir-x: New file.
6365 (SHLIB_DLLDIR): Define.
6366 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
6367 (SHLIB_INSTALL): Use it.
6369 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
6372 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
6373 lower bound of the allowed Thumb-2 coprocessor load/store
6374 index range to -256. Add explaining comment.
6376 2011-01-25 Ian Lance Taylor <iant@google.com>
6378 * godump.c (go_define): Improve lexing of macro expansion to only
6379 accept expressions which match Go spec.
6381 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
6384 * tree.c (handle_dll_attribute): Handle it.
6385 * doc/extend.texi (@item dllexport): Mention it.
6386 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
6388 2011-01-25 Ian Lance Taylor <iant@google.com>
6390 PR tree-optimization/26854
6391 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
6392 (decl_jump_unsafe): Move higher in file, with no other change.
6393 (bind): Set has_jump_unsafe_decl if appropriate.
6394 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
6395 (check_earlier_gotos): Likewise.
6396 (c_check_switch_jump_warnings): Likewise.
6398 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
6400 * doc/invoke.texi (Warning Options): Add missing hyphen.
6401 (-fprofile-dir): Minor grammatical fixes.
6402 (-fbranch-probabilities): Likewise.
6404 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
6408 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
6410 (no_real_insns_p, schedule_block, set_priorities): Drop special
6411 treatment of boundary debug insns.
6412 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
6413 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
6414 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
6415 (BOUNDARY_DEBUG_INSN_P): Likewise.
6416 (SCHEDULE_DEBUG_INSN_P): Likewise.
6417 * sched-rgn.c (init_ready_list): Drop special treatment of
6418 boundary debug insns.
6419 * final.c (rest_of_clean-state): Clear notes' BB.
6421 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6423 * Makefile.in (LAMBDA_H): Removed.
6424 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
6425 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
6426 lambda-trans.o, and tree-loop-linear.o.
6427 (lto-symtab.o): Remove dependence on LAMBDA_H.
6428 (tree-loop-linear.o): Remove rule.
6429 (lambda-mat.o): Same.
6430 (lambda-trans.o): Same.
6431 (lambda-code.o): Same.
6432 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
6433 (tree-vect-slp.o): Same.
6434 * hwint.h (gcd): Moved here.
6435 (least_common_multiple): Same.
6436 * lambda-code.c: Removed.
6437 * lambda-mat.c: Removed.
6438 * lambda-trans.c: Removed.
6439 * lambda.h: Removed.
6440 * tree-loop-linear.c: Removed.
6441 * lto-symtab.c: Do not include lambda.h.
6442 * omega.c (gcd): Removed.
6443 * passes.c (init_optimization_passes): Remove pass_linear_transform.
6444 * tree-data-ref.c (print_lambda_vector): Moved here.
6445 (lambda_vector_copy): Same.
6446 (lambda_matrix_copy): Same.
6447 (lambda_matrix_id): Same.
6448 (lambda_vector_first_nz): Same.
6449 (lambda_matrix_row_add): Same.
6450 (lambda_matrix_row_exchange): Same.
6451 (lambda_vector_mult_const): Same.
6452 (lambda_vector_negate): Same.
6453 (lambda_matrix_row_negate): Same.
6454 (lambda_vector_equal): Same.
6455 (lambda_matrix_right_hermite): Same.
6456 * tree-data-ref.h: Do not include lambda.h.
6457 (lambda_vector): Moved here.
6458 (lambda_matrix): Same.
6459 (dependence_level): Same.
6460 (lambda_transform_legal_p): Removed declaration.
6461 (lambda_collect_parameters): Same.
6462 (lambda_compute_access_matrices): Same.
6463 (lambda_vector_gcd): Same.
6464 (lambda_vector_new): Same.
6465 (lambda_vector_clear): Same.
6466 (lambda_vector_lexico_pos): Same.
6467 (lambda_vector_zerop): Same.
6468 (lambda_matrix_new): Same.
6469 * tree-flow.h (least_common_multiple): Removed declaration.
6470 * tree-parloops.c (lambda_trans_matrix): Moved here.
6472 (LTM_ROWSIZE): Same.
6473 (LTM_COLSIZE): Same.
6474 (LTM_DENOMINATOR): Same.
6475 (lambda_trans_matrix_new): Same.
6476 (lambda_matrix_vector_mult): Same.
6477 (lambda_transform_legal_p): Same.
6478 * tree-pass.h (pass_linear_transform): Removed declaration.
6479 * tree-ssa-loop.c (tree_linear_transform): Removed.
6480 (gate_tree_linear_transform): Removed.
6481 (pass_linear_transform): Removed.
6482 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
6483 flag_loop_interchange.
6485 2011-01-25 Jakub Jelinek <jakub@redhat.com>
6487 PR tree-optimization/47265
6488 PR tree-optimization/47443
6489 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
6490 if name still has some uses.
6492 2011-01-25 Martin Jambor <mjambor@suse.cz>
6494 PR tree-optimization/47382
6495 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
6496 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
6498 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
6500 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
6501 sjlj_except_unwind_info.
6503 2011-01-25 Richard Guenther <rguenther@suse.de>
6505 PR tree-optimization/47426
6506 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
6507 visible functions results escape.
6509 2011-01-25 Jakub Jelinek <jakub@redhat.com>
6512 * config/arm/arm.c (any_sibcall_uses_r3): New function.
6513 (arm_get_frame_offsets): Use it.
6515 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6516 Jakub Jelinek <jakub@redhat.com>
6518 PR tree-optimization/47271
6519 * tree-if-conv.c (bb_postdominates_preds): New.
6520 (if_convertible_bb_p): Call bb_postdominates_preds.
6521 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
6522 (predicate_scalar_phi): Call bb_postdominates_preds.
6524 2011-01-25 Nick Clifton <nickc@redhat.com>
6526 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
6527 * config/rx/rx.c (rx_function_value): Likewise.
6528 (rx_promote_function_mode): Likewise.
6529 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
6530 in order to make it legitimate.
6531 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
6532 make sure that the first operand is the same as the result register.
6533 (addsi3_unspec): Delete.
6534 (subdi3): Do not accept immediate operands.
6535 (subdi3_internal): Likewise.
6537 2011-01-25 Jeff Law <law@redhat.com>
6539 PR rtl-optimization/37273
6540 * ira-costs.c (scan_one_insn): Detect constants living in memory and
6541 handle them like argument loads from stack slots. Do not double
6542 count memory for memory constants and argument loads from stack slots.
6544 2011-01-25 Jakub Jelinek <jakub@redhat.com>
6546 PR tree-optimization/47427
6547 PR tree-optimization/47428
6548 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
6549 coalesce if the new root var would be TREE_READONLY.
6551 2011-01-25 Richard Guenther <rguenther@suse.de>
6554 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
6555 correct type for TBAA.
6557 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6559 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
6560 (close_phi_written_to_memory): Call for_each_index with
6561 dr_indices_valid_in_loop.
6563 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6565 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
6566 when it is initialized.
6568 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6570 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
6571 call to graphite_find_data_references_in_stmt.
6572 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
6573 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
6574 call to graphite_find_data_references_in_stmt.
6575 (analyze_drs_in_stmts): Same.
6576 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
6577 in which the scalar analysis of indices is performed.
6578 (create_data_ref): Same. Update call to dr_analyze_indices.
6579 (find_data_references_in_stmt): Update call to create_data_ref.
6580 (graphite_find_data_references_in_stmt): Same.
6581 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
6583 (create_data_ref): Same.
6584 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
6585 call to create_data_ref.
6587 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6589 * graphite-sese-to-poly.c (build_poly_scop): Move
6590 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
6592 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6594 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
6595 VAR_DECL, PARM_DECL, and RESULT_DECL.
6597 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6599 * graphite-dependences.c (reduction_dr_1): Allow several reductions
6601 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
6602 that have already been marked as PBB_IS_REDUCTION.
6604 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6606 * graphite-scop-detection.c (same_close_phi_node): New.
6607 (remove_duplicate_close_phi): New.
6608 (make_close_phi_nodes_unique): New.
6609 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
6611 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6613 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
6614 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
6615 of both data references to be the same.
6617 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6619 * graphite-dependences.c (build_lexicographical_constraint): Remove
6621 (build_lexicographical_constraint): Adjust call to
6622 ppl_powerset_is_empty.
6623 (dependence_polyhedron): Same.
6624 (graphite_legal_transform_dr): Same.
6625 (graphite_carried_dependence_level_k): Same.
6626 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
6628 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
6630 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6632 * graphite-sese-to-poly.c
6633 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
6634 (close_phi_written_to_memory): New.
6635 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
6638 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6640 * doc/install.texi: Update the expected version number of PPL to 0.11.
6641 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
6642 #if PPL_VERSION_MINOR < 11.
6644 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6646 * graphite-dependences.c: Include graphite-cloog-util.h.
6647 (new_poly_ddr): Inlined into dependence_polyhedron.
6648 (free_poly_ddr): Moved close by new_poly_ddr.
6649 (dependence_polyhedron_1): Renamed dependence_polyhedron.
6650 Early return NULL when ppl_powerset_is_empty returns true.
6651 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
6652 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
6653 (graphite_legal_transform_dr): Call new_poly_ddr.
6654 (graphite_carried_dependence_level_k): Same.
6655 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
6656 (dot_transformed_deps_stmt_1): Removed.
6657 (dot_deps_stmt_1): Call dot_deps_stmt_2.
6658 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
6659 (dot_deps_1): Call dot_deps_2.
6660 * Makefile.in (graphite-dependences.o): Add missing dependence on
6661 graphite-cloog-util.h.
6663 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6665 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
6666 (build_lexicographical_constraint): Same.
6667 (dependence_polyhedron_1): Same.
6668 (graphite_legal_transform_dr): Same.
6669 (graphite_carried_dependence_level_k): Same.
6670 * graphite-ppl.c (ppl_powerset_is_empty): New.
6671 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
6672 * tree-data-ref.c (dump_data_reference): Print the basic block index.
6674 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6676 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
6677 the "a followed by b" relation and document it.
6679 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6681 * graphite-dependences.c (build_lexicographical_constraint): Stop the
6682 iteration when the bag of constraints is empty.
6684 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6686 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
6688 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6690 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
6691 nest and two loop depths as parameters.
6692 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
6693 lst_perfect_nestify.
6695 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6697 * graphite-dependences.c (print_pddr): Call
6698 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
6700 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6702 * graphite-ppl.c (debug_gmp_value): New.
6703 * graphite-ppl.h (debug_gmp_value): Declared.
6705 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
6707 * doc/install.texi: Document availability of cloog-0.16.
6709 2011-01-25 Vladimir Kargov <kargov@gmail.com>
6711 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
6712 invalid postdominance info.
6714 2011-01-24 Jan Hubicka <jh@suse.cz>
6717 * doc/extend.texi (weak pragma): Drop claim that it must
6718 appear before definition.
6719 * varasm.c (merge_weak, declare_weak): Only sanity check
6720 that DECL is not output at a time it is declared weak.
6722 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
6724 * machmode.def: Fixed comments.
6726 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
6728 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
6730 2011-01-24 Paul Koning <ni1d@arrl.net>
6732 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
6735 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
6738 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
6739 (block_info): Add scanned and prev.
6740 (move_or_delete_vzeroupper_2): Return if the basic block
6741 has been scanned and the upper 128bit state is unchanged
6743 (move_or_delete_vzeroupper_1): Return true if the exit
6745 (move_or_delete_vzeroupper): Visit basic blocks using the
6746 work-list based algorithm based on vt_find_locations in
6749 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
6751 2011-01-24 Nick Clifton <nickc@redhat.com>
6753 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
6754 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
6755 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
6756 then define __v850e1__.
6757 * doc/invoke.texi: Document -mv850es.
6759 2011-01-24 Richard Henderson <rth@redhat.com>
6761 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
6762 compound unordered comparisons.
6763 * config/rx/rx.c (rx_split_fp_compare): Remove.
6764 * config/rx/rx-protos.h: Update.
6765 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
6766 (cbranchsf4): Don't call rx_split_fp_compare.
6767 (*cbranchsf4): Use rx_split_cbranch.
6768 (*cmpsf): Don't accept "i" constraint.
6769 (*conditional_branch): Only valid after reload.
6770 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
6772 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6775 * config/rs6000/altivec.md (vector constant splitters): Add
6776 support for creating vector single precision constants if -mvsx is
6777 used and we would create the constant using Altivec primitives.
6779 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
6780 Richard Sandiford <rdsandiford@googlemail.com>
6782 PR rtl-optimization/47166
6783 * reload1.c (emit_reload_insns): Disable the spill_reg_store
6784 mechanism for PRE_MODIFY and POST_MODIFY.
6785 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
6788 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
6790 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
6792 2011-01-22 Jan Hubicka <jh@suse.cz>
6795 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
6797 2011-01-22 Jan Hubicka <jh@suse.cz>
6799 PR tree-optimization/43884
6801 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
6802 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
6804 2011-01-22 Anatoly Sokolov <aesok@post.ru>
6806 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6807 * config/s390/s390.c (s390_register_move_cost,
6808 s390_memory_move_cost): New.
6809 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
6811 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6814 * except.c (sjlj_assign_call_site_values): Move setting the
6815 crtl->uses_eh_lsda flag to ...
6816 (sjlj_mark_call_sites): ... here.
6817 (sjlj_emit_function_enter): Support NULL dispatch label.
6818 (sjlj_build_landing_pads): In a function with no landing pads
6819 that still has must-not-throw regions, generate code to register
6820 a personality function with empty LSDA.
6822 2011-01-21 Richard Henderson <rth@redhat.com>
6824 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
6826 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
6828 * compare-elim.c: New file.
6829 * Makefile.in (OBJS-common): Add it.
6830 (compare-elim.o): New.
6831 * common.opt (fcompare-elim): New.
6832 * opts.c (default_options_table): Add OPT_fcompare_elim.
6833 * tree-pass.h (pass_compare_elim_after_reload): New.
6834 * passes.c (init_optimization_passes): Add it.
6835 * recog.h: Protect against re-inclusion.
6836 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
6837 * doc/invoke.texi (-fcompare-elim): Document it.
6838 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
6839 * doc/tm.texi: Rebuild.
6841 2011-01-22 Nick Clifton <nickc@redhat.com>
6843 * config/rx/rx.md (cstoresf4): Pass comparison operator to
6844 rx_split_fp_compare.
6846 2011-01-22 Nick Clifton <nickc@redhat.com>
6848 * config/rx/rx.md (UNSPEC_CONST): New.
6849 (deallocate_and_return): Wrap the amount popped off the stack in
6850 an UNSPEC_CONST in order to stop it being rejected by
6851 -mmax-constant-size.
6852 (pop_and_return): Add a "(return)" rtx.
6853 (call): Drop the immediate operand.
6854 (call_internal): Likewise.
6855 (call_value): Likewise.
6856 (call_value_internal): Likewise.
6857 (sibcall_internal): Likewise.
6858 (sibcall_value_internal): Likewise.
6859 (sibcall): Likewise. Generate an explicit call using
6861 (sibcall_value): Likewise.
6862 (mov<>): FAIL if a constant operand is not legitimate.
6863 (addsi3_unpsec): New pattern.
6865 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
6866 (ok_for_max_constant): New function.
6867 (gen_safe_add): New function.
6868 (rx_expand_prologue): Use gen_safe_add.
6869 (rx_expand_epilogue): Likewise.
6870 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
6873 2011-01-21 Jeff Law <law@redhat.com>
6875 PR tree-optimization/47053
6876 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
6877 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
6878 statements are deleted.
6879 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
6880 is nonempty, then purge dead edges and cleanup the CFG.
6882 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
6886 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
6888 * tree-dfa.c (create_var_ann): Mark variable as used.
6890 2011-01-21 Jakub Jelinek <jakub@redhat.com>
6893 * except.c (convert_to_eh_region_ranges): Emit queued no-region
6894 notes from other section in hot/cold partitioning even if
6895 last_action is -3. Increment call_site_base.
6897 PR rtl-optimization/47366
6898 * fwprop.c (forward_propagate_into): Return bool. If
6899 any changes are made, -fnon-call-exceptions is used and
6900 REG_EH_REGION note is present, call purge_dead_edges
6901 and return true if it purged anything.
6902 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
6903 any EH edges were purged.
6905 2011-01-21 Jeff Law <law@redhat.com>
6907 PR rtl-optimization/41619
6908 * caller-save.c (setup_save_areas): Break out code to determine
6909 which hard regs are live across calls by examining the reload chains
6910 so that it is always used.
6911 Eliminate code which checked REG_N_CALLS_CROSSED.
6913 2011-01-21 Jakub Jelinek <jakub@redhat.com>
6915 PR tree-optimization/47355
6916 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
6917 NOP has non-debug uses beyond PHIs in new_bb.
6919 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
6922 * cfgexpand.c (account_used_vars_for_block): Only account vars
6923 that are annotated as used.
6924 (estimated_stack_frame_size): Don't set TREE_USED.
6925 * tree-dfa.c (create_var_ann): Mark variable as used.
6927 2011-01-21 Richard Guenther <rguenther@suse.de>
6930 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
6932 2011-01-21 Richard Guenther <rguenther@suse.de>
6934 PR tree-optimization/47365
6935 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
6936 (vn_reference_lookup_pieces): Adjust.
6937 (vn_reference_lookup): Likewise.
6938 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
6939 (vn_reference_lookup_3): Only look through kills if in
6940 VN_WALKREWRITE mode.
6941 (vn_reference_lookup_pieces): Adjust.
6942 (vn_reference_lookup): Likewise.
6943 (visit_reference_op_load): Likewise.
6944 (visit_reference_op_store): Likewise.
6945 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
6946 (compute_avail): Likewise.
6947 (eliminate): Likewise.
6949 2011-01-21 Jakub Jelinek <jakub@redhat.com>
6951 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
6952 DECL_IGNORED_P non-reg vars if they are used.
6954 PR tree-optimization/47391
6955 * varpool.c (const_value_known_p): Return false if
6958 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
6961 * config/i386/i386.c (ix86_local_alignment): Handle
6962 case for va_list_type_node is nil.
6963 (ix86_canonical_va_list_type): Likewise.
6965 2011-01-21 Alan Modra <amodra@gmail.com>
6967 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
6968 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
6970 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6972 * config/arm/arm.md (define_attr type): Rename f_load
6973 and f_store to f_fpa_load and f_fpa_store. Update.
6974 (write_conflict): Deal with rename fallout.
6975 (*push_fp_multi): Likewise.
6976 * config/arm/fpa.md (f_load): Use f_fpa_load.
6977 (f_store): Use f_fpa_store.
6978 (*movsf_fpa): Likewise.
6979 (*movdf_fpa): Likewise.
6980 (*movxf_fpa): Likewise.
6981 (*thumb2_movsf_fpa): Likewise.
6982 (*thumb2_movdf_fpa): Likewise.
6983 (*thumb2_movxf_fpa): Likewise.
6984 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
6985 f_loadd and f_stored.
6986 (*thumb2_movdi_vfp): Likewise.
6987 (*thumb2_movsf_vfp): Fix attribute to f_loads.
6988 (*thumb2_movsi_vfp): Likewise.
6989 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
6990 Use f_loads instead of f_load.
6991 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
6993 2011-01-20 Anatoly Sokolov <aesok@post.ru>
6995 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6996 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
6997 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6998 (xtensa_mode_dependent_address_p): New function.
6999 (constantpool_address_p): Make static. Change return type to bool.
7000 Change argument type to const_rtx. Use CONST_INT_P predicate.
7002 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
7005 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
7007 2011-01-20 Jakub Jelinek <jakub@redhat.com>
7010 * cfgexpand.c (expand_debug_expr): Instead of generating
7011 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
7014 2011-01-20 Richard Guenther <rguenther@suse.de>
7017 * tree-inline.c (remap_gimple_op_r): Recurse manually for
7018 the pointer operand of MEM_REFs.
7020 2011-01-20 Jakub Jelinek <jakub@redhat.com>
7022 PR tree-optimization/46130
7023 * ipa-split.c (consider_split): If return_bb contains non-virtual
7024 PHIs other than for retval or if split_function would not adjust it,
7027 2011-01-20 Richard Guenther <rguenther@suse.de>
7029 PR tree-optimization/47167
7030 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
7031 Revert previous change, only avoid enumeral type changes.
7033 2011-01-19 Mike Stump <mikestump@comcast.net>
7035 * doc/tm.texi.in (BRANCH_COST): Englishify.
7036 * doc/tm.texi (BRANCH_COST): Likewise.
7038 2011-01-19 Dodji Seketeli <dodji@redhat.com>
7041 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
7042 (gen_scheduled_generic_parms_dies): New functions.
7043 (gen_struct_or_union_type_die): Schedule template parameters DIEs
7044 generation for the end of CU compilation.
7045 (dwarf2out_finish): Generate template parameters DIEs here.
7047 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
7050 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
7051 debug bind stmt on merge edges.
7053 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
7057 * function.c (instantiate_expr): Instantiate incoming rtl of
7058 implicit arguments, and recurse on VALUE_EXPRs.
7059 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
7060 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
7062 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
7064 * c-parser.c (c_parser_for_statement): Initialize
7065 collection_expression.
7067 2011-01-19 Joseph Myers <joseph@codesourcery.com>
7069 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
7071 2011-01-19 Joseph Myers <joseph@codesourcery.com>
7073 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
7074 (LINK_SHLIB_SPEC): Don't use %(link_path).
7075 (SUBTARGET_EXTRA_SPECS): Remove link_path.
7077 2011-01-19 Joseph Myers <joseph@codesourcery.com>
7079 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
7080 (NO_SHARED_LIB_SUPPORT): Remove.
7081 (LINK_SHLIB_SPEC): Remove one conditional definition.
7083 2011-01-19 Joseph Myers <joseph@codesourcery.com>
7085 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
7087 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
7088 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
7089 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
7090 %{call_shared} and conditionals on these options not being passed.
7091 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
7094 2011-01-19 Jakub Jelinek <jakub@redhat.com>
7096 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
7099 * ipa-split.c: Spelling fixes.
7101 2011-01-19 Richard Henderson <rth@redhat.com>
7103 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
7104 (*mulsi3): Likewise.
7106 * longlong.h [__mn10300__] (count_leading_zeros): New.
7107 [__mn10300__] (umul_ppmm, smul_ppmm): New.
7108 [__mn10300__] (add_ssaaaa, subddmmss): New.
7109 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
7110 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
7112 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7114 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
7116 2011-01-19 Richard Henderson <rth@redhat.com>
7118 * config/mn10300/mn10300.md (addsi3_flags): New.
7119 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
7120 (subsi3_flags, subc_internal, subdi3): New.
7121 (subdi3_internal, *subdi3_degenerate): New.
7122 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
7124 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
7125 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
7126 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
7127 * config/mn10300/mn10300-protos.h: Update.
7128 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
7129 (return_ret): Likewise. Rename from return_internal_regs.
7130 (return_internal): Remove.
7132 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
7133 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
7134 (mn10300_legitimate_constant_p): Likewise.
7135 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
7136 (mn10300_frame_size): New.
7137 (mn10300_expand_prologue): Use it.
7138 (mn10300_expand_epilogue): Likewise.
7139 (mn10300_initial_offset): Likewise.
7140 * config/mn10300/mn10300-protos.h: Update.
7141 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
7142 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
7143 (prologue, epilogue, return_internal): Tidy output code.
7144 (mn10300_store_multiple_operation, return): Likewise.
7145 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
7146 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
7147 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
7148 (load_pic, am33_load_pic): New.
7149 (mn10300_load_pic0, mn10300_load_pic1): New.
7151 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
7152 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
7153 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
7154 (cc_flags_for_mode, cc_flags_for_code): New.
7155 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
7156 overflow flag is not valid. Validate that the flags we need
7157 for the comparison are valid.
7158 (mn10300_output_cmp): Remove.
7159 (mn10300_output_add): New.
7160 (mn10300_select_cc_mode): Use cc_flags_for_code.
7161 (mn10300_split_cbranch): New.
7162 (mn10300_match_ccmode): New.
7163 (mn10300_split_and_operand_count): New.
7164 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
7166 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
7167 (addsi3): ... here. Use mn10300_output_add.
7168 (*addsi3_flags): New.
7169 (*am33_subsi3, *mn10300_subsi3): Merge...
7170 (subsi3): ... here. Use attribute isa.
7171 (*subsi3_flags): New.
7172 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
7174 (*am33_andsi3, *mn10300_andsi3): Merge...
7176 (*andsi3_flags): New.
7177 (andsi3 splitters): New.
7178 (*am33_iorsi3, *mn10300_iorsi3): Merge...
7180 (*iorsi3_flags): New.
7181 (*am33_xorsi3, *mn10300_xorsi3): Merge...
7183 (*xorsi3_flags): New.
7184 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
7185 (one_cmplsi2): ... here.
7186 (*one_cmplsi2_flags): New.
7187 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
7188 instead of "dax" in constraints. Use mn10300_split_cbranch.
7189 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
7190 use matching constraints to eliminate a self-comparison.
7191 (*integer_conditional_branch): Rename from integer_conditional_branch.
7192 Use int_mode_flags to match CC_REG.
7193 (*cbranchsi4_btst, *btstsi): New.
7194 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
7195 mn10300_split_cbranch.
7196 (*am33_cmpsf): Rename from am33_cmpsf.
7197 (*float_conditional_branch): Rename from float_conditional_branch.
7198 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
7199 (zero_extendqisi2): ... here.
7200 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
7201 (zero_extendhisi2): ... here.
7202 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
7203 (extendqisi2): ... here.
7204 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
7205 (extendhisi2): ... here.
7206 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
7207 (ashlsi3): ... here.
7208 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
7209 (lshrsi3): ... here.
7210 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
7211 (ashrsi3): ... here.
7212 (consecutive add peephole): Remove.
7213 * config/mn10300/predicates.md (label_ref_operand): New.
7214 (int_mode_flags): New.
7215 (CCZN_comparison_operator): New.
7217 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
7218 (throughput_42_latency_43): New reservation.
7219 (mulsidi3, umulsidi3): New expanders.
7220 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
7221 the MDR register to allocation; separately allocate the low and
7222 high parts of the DImode result.
7223 (umulsidi3_internal): Similarly.
7224 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
7225 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
7226 (udivsi3, umodsi3): Remove.
7227 (udivmodsi4, divmodsi4): New expanders.
7228 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
7229 (*divmodsi4): Simiarly.
7230 (ext_internal): New.
7232 * config/mn10300/constraints.md ("z"): New constraint.
7233 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
7234 (FIXED_REGISTERS): Don't fix MDR.
7235 (CALL_USED_REGSITERS): Reformat nicely.
7236 (REG_ALLOC_ORDER): Add MDR.
7237 (enum regclass): Add MDR_REGS.
7238 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
7239 (IRA_COVER_CLASSES): Add MDR_REGS.
7240 (REGNO_REG_CLASS): Handle MDR_REG.
7241 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
7242 (mn10300_register_move_cost): Likewise.
7243 * config/mn10300/mn10300.md (MDR_REG): New.
7244 (*movsi_internal): Handle moves to/from MDR_REGS.
7246 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
7248 (mn10300_secondary_reload): Tidy combination reload classes.
7249 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
7250 addresses for AM33. Allow symbolic offsets for reg+imm.
7251 (mn10300_regno_in_class_p): New.
7252 (mn10300_legitimize_reload_address): New.
7253 * config/mn10300/mn10300.h (enum reg_class): Remove
7254 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
7255 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
7257 (REG_CLASS_NAMES): Update to match.
7258 (REG_CLASS_CONTENTS): Likewise.
7259 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
7260 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
7261 (REGNO_IN_RANGE_P): Remove.
7262 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
7263 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
7264 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
7265 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
7266 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
7267 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
7268 (REGNO_GENERAL_P): New.
7269 (HAVE_POST_MODIFY_DISP): New.
7270 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
7271 (LEGITIMIZE_RELOAD_ADDRESS): New.
7272 * config/mn10300/mn10300-protos.h: Update.
7274 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
7275 DATA_REGS for AM33 stack-pointer destination.
7276 (mn10300_preferred_output_reload_class): Likewise.
7277 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
7278 into a form appropriate for ...
7279 (TARGET_SECONDARY_RELOAD): New.
7280 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
7281 * config/mn10300/mn10300-protos.h: Update.
7282 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
7283 reload_insi; use the "A" constraint for the scratch; handle AM33
7284 moves of sp to non-address registers.
7286 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
7287 (*movqi_internal): ... here.
7288 (*am33_movhi, *mn10300_movhi): Merge into...
7289 (*movhi_internal): ... here.
7290 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
7291 as the source/destination of moves from/to SP.
7292 (movsf): Only allow for AM33-2.
7293 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
7294 any integer constant constraint. Only allow for AM33-2. Tidy
7295 all of the alternative outputs.
7296 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
7297 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
7299 (udivsi3, umodsi3): New patterns for MN103 only.
7301 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
7303 * doc/tm.texi.in: Spell out that a lack of register class unions
7305 * doc/tm.texi: Regenerate.
7307 2011-01-19 Jakub Jelinek <jakub@redhat.com>
7309 PR rtl-optimization/47337
7310 * dce.c (check_argument_store): New function.
7311 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
7313 PR tree-optimization/47290
7314 * tree-eh.c (infinite_empty_loop_p): New function.
7315 (cleanup_empty_eh): Use it.
7317 2011-01-18 Steve Ellcey <sje@cup.hp.com>
7320 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
7321 (a64_expand_widen_sum): Ditto.
7322 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
7323 (vec_extract_evenodd_help): Ditto.
7324 (vec_extract_evenv4hi): Ditto.
7325 (vec_extract_oddv4hi): Ditto.
7326 (vec_extract_evenv2si): Ditto.
7327 (vec_extract_oddv2si): Ditto.
7328 (vec_extract_evenv2sf): Ditto.
7329 (vec_extract_oddv2sf): Ditto.
7330 (vec_pack_trunc_v4hi: Ditto.
7331 (vec_pack_trunc_v2si): Ditto.
7332 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
7333 (vec_interleave_highv8qi): Ditto.
7335 (vec_extract_oddv8qi): Ditto.
7336 (vec_interleave_lowv4hi): Ditto.
7337 (vec_interleave_highv4hi): Ditto.
7338 (vec_interleave_lowv2si): Ditto.
7339 (vec_interleave_highv2si): Ditto.
7341 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7343 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
7344 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
7345 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
7346 (pa_c_mode_for_suffix): New.
7347 (TARGET_EXPAND_BUILTIN): Define.
7348 (TARGET_C_MODE_FOR_SUFFIX): Define.
7349 (pa_builtins): Define.
7350 (pa_init_builtins): Register __float128 type and init new support
7352 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
7353 * config/pa/quadlib.c (_U_Qfcopysign): New.
7355 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
7358 * explow.c (allocate_dynamic_stack_space): Do not assume more than
7359 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
7362 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7364 PR tree-optimization/47179
7365 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
7366 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
7368 2011-01-18 Richard Guenther <rguenther@suse.de>
7370 PR rtl-optimization/47216
7371 * emit-rtl.c: Include tree-flow.h.
7372 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
7373 of replicating it with different semantics.
7374 * Makefile.in (emit-rtl.o): Adjust.
7376 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7378 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
7379 (cortex_a9_dp): Handle neon types correctly.
7381 2011-01-18 Jakub Jelinek <jakub@redhat.com>
7383 PR rtl-optimization/47299
7384 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
7385 subtarget. Use normal multiplication if both operands are constants.
7386 * expmed.c (expand_widening_mult): Don't try to optimize constant
7387 multiplication if op0 has VOIDmode. Convert op1 constant to mode
7390 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7392 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
7393 spacing after 'e.g.', typos, comma, hyphenation.
7395 2011-01-17 Richard Henderson <rth@redhat.com>
7397 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
7398 (rx_restricted_mem_operand): New.
7399 (rx_shift_operand): Use register_operand.
7400 (rx_source_operand, rx_compare_operand): Likewise.
7401 * config/rx/rx.md (addsi3_flags): New expander.
7402 (adddi3): Rewrite as expander.
7403 (adc_internal, *adc_flags, adddi3_internal): New patterns.
7404 (subsi3_flags): New expander.
7405 (subdi3): Rewrite as expander.
7406 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
7408 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
7409 (rx_init_builtins): Remove sat builtin.
7410 (rx_expand_builtin): Likewise.
7411 * config/rx/rx.md (ssaddsi3): New.
7412 (*sat): Rename from sat. Represent the CC_REG input.
7414 * config/rx/predicates.md (rshift_operator): New.
7415 * config/rx/rx.c (rx_expand_insv): Remove.
7416 * config/rx/rx-protos.h: Update.
7417 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
7418 operand to the canonical position.
7419 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
7420 (*bitclr, *bitclr_in_memory): Similarly.
7421 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
7422 (insv): Retain the zero_extract in the expansion.
7424 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
7425 (bswaphi2, bitinvert, revw): Likewise.
7427 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
7428 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
7429 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
7430 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
7431 (bitset, bitset_in_memory): Likewise.
7432 (bitinvert, bitinvert_in_memory): Likewise.
7433 (bitclr, bitclr_in_memory): Likewise.
7434 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
7435 (rx_strend, rx_cmpstrn): Likewise.
7436 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
7437 (bitop peep2 patterns): Remove.
7439 * config/rx/rx.c (rx_match_ccmode): New.
7440 * config/rx/rx-protos.h: Update.
7441 * config/rx/rx.md (abssi2): Clobber, don't set flags.
7442 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
7443 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
7444 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
7445 (fix_truncsfsi2, floatsisf2): Likewise.
7446 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
7447 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
7448 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
7449 (*subsi3_flags, *xorsi3_flags): New.
7451 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
7453 * config/rx/rx.c (rx_print_operand): Remove workaround for
7454 unsplit comparison operations.
7456 * config/rx/rx.md (movsicc): Split after reload.
7457 (*movsicc): Merge *movsieq and *movsine via match_operator.
7458 (*stcc): New pattern.
7460 * config/rx/rx.c (rx_float_compare_mode): Remove.
7461 * config/rx/rx.h (rx_float_compare_mode): Remove.
7462 * config/rx/rx.md (cstoresi4): Split after reload.
7463 (*sccc): New pattern.
7465 * config/rx/predicates.md (label_ref_operand): New.
7466 (rx_z_comparison_operator): New.
7467 (rx_zs_comparison_operator): New.
7468 (rx_fp_comparison_operator): New.
7469 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
7470 Validate that the flags are set properly for the comparison.
7471 (rx_gen_cond_branch_template): Remove.
7472 (rx_cc_modes_compatible): Remove.
7473 (mode_from_flags): New.
7474 (flags_from_code): Rename from flags_needed_for_conditional.
7475 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
7476 (rx_select_cc_mode): Likewise.
7477 (rx_split_fp_compare): New.
7478 (rx_split_cbranch): New.
7479 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
7480 (*cbranchsi4): Use match_operator and rx_split_cbranch.
7481 (*cbranchsf4): Similarly.
7482 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
7483 match_operator and rx_split_cbranch.
7484 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
7485 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
7486 (*cmpsi): Rename from cmpsi.
7487 (*tstsi): Rename from tstsi.
7488 (*cmpsf): Rename from cmpsf; use CC_Fmode.
7489 (*conditional_branch): Rename from conditional_branch.
7490 (*reveresed_conditional_branch): Remove.
7491 (b<code>): Remove expander.
7492 * config/rx/rx-protos.h: Update.
7494 * config/rx/rx.c (rx_compare_redundant): Remove.
7495 * config/rx/rx.md (cmpsi): Don't use it.
7496 * config/rx/rx-protos.h: Update.
7498 * config/rx/rx-modes.def (CC_F): New mode.
7499 * config/rx/rx.c (rx_select_cc_mode): New.
7500 * config/rx/rx.h (SELECT_CC_MODE): Use it.
7501 * config/rx/rx-protos.h: Update.
7503 2011-01-17 Richard Henderson <rth@redhat.com>
7505 * except.c (dump_eh_tree): Fix stray ; after for statement.
7507 2011-01-17 Richard Guenther <rguenther@suse.de>
7509 PR tree-optimization/47313
7510 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
7511 handling before copying the body. Properly deal with
7512 by-reference result in SSA form.
7514 2011-01-17 Ian Lance Taylor <iant@google.com>
7517 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
7518 (struct_value_alias_set): Don't define.
7519 (sparc_option_override): Don't set sparc_sr_alias_set and
7520 struct_value_alias_set.
7521 (save_or_restore_regs): Use gen_frame_mem rather than calling
7523 (sparc_struct_value_rtx): Likewise.
7525 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
7528 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
7529 (_mm_maskstore_pd): Likewise.
7530 (_mm_maskload_ps): Likewise.
7531 (_mm_maskstore_ps): Likewise.
7532 (_mm256_maskload_pd): Change mask to __m256i.
7533 (_mm256_maskstore_pd): Likewise.
7534 (_mm256_maskload_ps): Likewise.
7535 (_mm256_maskstore_ps): Likewise.
7537 * config/i386/i386-builtin-types.def: Updated.
7538 (ix86_expand_special_args_builtin): Likewise.
7540 * config/i386/i386.c (bdesc_special_args): Update
7541 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
7542 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
7543 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
7544 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
7546 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
7547 Use <avxpermvecmode> on mask register.
7548 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
7550 2011-01-17 Olivier Hainque <hainque@adacore.com>
7551 Michael Haubenwallner <michael.haubenwallner@salomon.at>
7552 Eric Botcazou <ebotcazou@adacore.com>
7555 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
7556 if <= USHRT_MAX in 32-bit mode.
7558 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7560 * doc/install.texi (Configuration, Specific): Wrap long
7561 lines in examples. Allow line wrapping in long options
7562 and URLs where beneficial for PDF output.
7564 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
7566 * config/mips/mips.c (mips_classify_symbol): Don't return
7567 SYMBOL_PC_RELATIVE for nonlocal labels.
7569 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
7571 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
7573 2011-01-15 Jan Hubicka <jh@suse.cz>
7575 PR tree-optimization/47276
7576 * ipa.c (function_and_variable_visibility): Do not try to mark alias
7577 declarations as needed.
7579 2011-01-15 Martin Jambor <mjambor@suse.cz>
7581 * common.opt (fdevirtualize): New flag.
7582 * doc/invoke.texi (Option Summary): Document it.
7583 * opts.c (default_options_table): Add devirtualize flag.
7584 * ipa-prop.c (detect_type_change): Return immediately if
7585 devirtualize flag is not set.
7586 (detect_type_change_ssa): Likewise.
7587 (compute_known_type_jump_func): Likewise.
7588 (ipa_analyze_virtual_call_uses): Likewise.
7590 2011-01-14 Martin Jambor <mjambor@suse.cz>
7592 PR tree-optimization/45934
7593 PR tree-optimization/46302
7594 * ipa-prop.c (type_change_info): New type.
7595 (stmt_may_be_vtbl_ptr_store): New function.
7596 (check_stmt_for_type_change): Likewise.
7597 (detect_type_change): Likewise.
7598 (detect_type_change_ssa): Likewise.
7599 (compute_complex_assign_jump_func): Check for dynamic type change.
7600 (compute_complex_ancestor_jump_func): Likewise.
7601 (compute_known_type_jump_func): Likewise.
7602 (compute_scalar_jump_functions): Likewise.
7603 (ipa_analyze_virtual_call_uses): Likewise.
7604 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
7606 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7608 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
7609 * config/i386/i386.opt (msse5): New Alias.
7611 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7613 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
7614 * config/sparc/linux64.h (CC1_SPEC): Likewise.
7615 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
7616 * config/sparc/sparc.h (CC1_SPEC): Likewise.
7618 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7620 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
7622 * config/sparc/linux64.h (CC1_SPEC): Likewise.
7623 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
7624 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
7625 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
7627 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
7629 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7631 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
7633 2011-01-14 Mike Stump <mikestump@comcast.net>
7635 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
7636 * config/fr30/fr30.md: Likweise
7637 (movsi_push): Likewise.
7638 (movsi_pop): Likewise.
7639 (enter_func): Likewise.
7640 * config/moxie/moxie.md (movsi_push): Likewise.
7641 (movsi_pop): Likewise.
7643 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7645 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
7646 %{no_archive} %{exact_version}.
7647 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
7648 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
7649 %{no_archive} %{exact_version}.
7650 * config/mips/openbsd.h (LINK_SPEC): Likewise.
7651 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
7652 * config/mips/vxworks.h: Likewise.
7654 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7656 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
7658 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7660 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
7661 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
7663 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7665 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
7668 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7670 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
7672 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
7673 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
7675 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
7676 Don't handle -shlib.
7678 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7680 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
7681 (CC1_SPEC): Don't handle -profile.
7683 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7685 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
7686 * config/mips/mips.h (CC1_SPEC): Likewise.
7688 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7690 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
7691 * config/mips/mips.h (CC1_SPEC): Likewise.
7693 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7695 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
7696 * config/m32r/linux.h (LINK_SPEC): Likewise.
7697 * config/mips/linux.h (LINK_SPEC): Likewise.
7698 * config/mips/linux64.h (LINK_SPEC): Likewise.
7699 * config/sparc/linux.h (LINK_SPEC): Likewise.
7700 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
7701 LINK_SPEC): Likewise.
7702 * config/xtensa/linux.h (LINK_SPEC): Likewise.
7704 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7706 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
7708 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
7710 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7712 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
7713 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
7715 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7717 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
7719 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7721 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
7722 supports -Bstatic/-Bdynamic.
7723 * configure: Regenerate.
7725 2011-01-14 Jan Hubicka <jh@suse.cz>
7726 Jack Howarth <howarth@bromo.med.uc.edu>
7729 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
7730 when checking debug_info_level. Test write_symbols instead of
7731 debug_hooks->var_location when setting flag_var_tracking_uninit.
7733 2011-01-14 Richard Guenther <rguenther@suse.de>
7735 PR tree-optimization/47179
7736 * target.def (ref_may_alias_errno): New target hook.
7737 * targhooks.h (default_ref_may_alias_errno): Declare.
7738 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
7739 (default_ref_may_alias_errno): New function.
7740 * target.h (struct ao_ref_s): Declare.
7741 * tree-ssa-alias.c: Include target.h.
7742 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
7743 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
7744 (targhooks.o): Likewise.
7745 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
7746 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
7748 2011-01-14 Richard Guenther <rguenther@suse.de>
7750 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
7752 2011-01-14 Richard Guenther <rguenther@suse.de>
7754 PR tree-optimization/47280
7755 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
7757 (tree_ssa_forward_propagate_single_use_vars): Deal with
7758 CFG changes from associate_plusminus.
7760 2011-01-14 Richard Guenther <rguenther@suse.de>
7764 2011-01-11 Richard Guenther <rguenther@suse.de>
7766 PR tree-optimization/46076
7767 * tree-ssa.c (useless_type_conversion_p): Conversions from
7768 unprototyped to empty argument list function types are useless.
7770 2011-01-14 Richard Guenther <rguenther@suse.de>
7772 PR tree-optimization/47286
7773 * tree-ssa-structalias.c (new_var_info): Register variables are global.
7775 2011-01-14 Martin Jambor <mjambor@suse.cz>
7778 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
7780 2011-01-13 Anatoly Sokolov <aesok@post.ru>
7782 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
7783 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7784 * config/xtensa/xtensa.c (xtensa_libcall_value,
7785 xtensa_function_value_regno_p): New functions.
7786 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
7788 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
7791 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
7793 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
7794 New function prototype.
7795 * config/i386/winnt.c (i386_pe_assemble_visibility):
7796 Warn only if attribute was specified by user.
7798 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
7801 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
7803 (floatunsdidf2_fcfidu): Ditto.
7805 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7807 * config/s390/s390.c (print_operand_address): Replace 'error' with
7808 'output_operand_lossage'.
7809 (print_operand): Likewise.
7811 2011-01-13 Jeff Law <law@redhat.com>
7813 PR rtl-optimization/39077
7814 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
7815 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
7816 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
7817 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
7818 * gcse.c (prune_insertions_deletions): New function.
7819 (compute_pre_data): Use it.
7821 2011-01-13 Dodji Seketeli <dodji@redhat.com>
7824 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
7826 (prune_unused_types_mark): Use it.
7828 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
7830 PR rtl-optimization/45352
7831 * sel-sched.c: Update copyright years.
7832 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
7833 in the advancing loop when we have issued issue_rate insns.
7835 2011-01-12 Richard Henderson <rth@redhat.com>
7837 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
7838 (TARGET_MD_ASM_CLOBBERS): New.
7840 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
7841 (TARGET_DELEGITIMIZE_ADDRESS): New.
7843 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
7844 (clzsi2, *bsch): New patterns.
7846 * config/mn10300/mn10300.md (INT): New mode iterator.
7847 (*mov<INT>_clr): New pattern, and peep2 to generate it.
7849 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
7850 flag_split_wide_types.
7852 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
7853 (mn10300_trampoline_init): Rewrite without a template, an immediate
7854 load and a direct branch.
7855 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
7857 2011-01-12 Anatoly Sokolov <aesok@post.ru>
7859 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7860 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
7861 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
7862 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7864 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
7867 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
7870 2011-01-12 Jan Hubicka <jh@suse.cz>
7873 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
7874 (PLUGIN_COND_CLOSE): New macro.
7875 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
7877 2011-01-12 Richard Guenther <rguenther@suse.de>
7880 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
7881 register variables in a MEM_REF.
7883 2011-01-12 Joseph Myers <joseph@codesourcery.com>
7885 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
7886 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
7887 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
7888 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7889 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7890 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
7891 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
7892 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
7893 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
7894 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
7895 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
7896 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
7897 * config/gnu-user.h: New. Copied from linux.h.
7898 (LINUX_TARGET_STARTFILE_SPEC): Rename to
7899 GNU_USER_TARGET_STARTFILE_SPEC.
7900 (LINUX_TARGET_ENDFILE_SPEC): Rename to
7901 GNU_USER_TARGET_ENDFILE_SPEC.
7902 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
7903 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
7904 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
7905 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
7906 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
7907 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
7908 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
7909 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
7910 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
7911 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
7912 * config/arm/linux-eabi.h (CC1_SPEC): Use
7913 GNU_USER_TARGET_CC1_SPEC.
7914 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
7915 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
7916 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
7917 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
7918 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
7919 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
7920 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
7921 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
7923 2011-01-12 Richard Guenther <rguenther@suse.de>
7926 * doc/invoke.texi (ffast-math): Document it is turned on
7929 2011-01-12 Jan Hubicka <jh@suse.cz>
7931 PR tree-optimization/47233
7932 * opts.c (common_handle_option): Disable ipa-reference with profile
7935 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
7937 * c-parser.c (c_parser_objc_at_property_declaration): Improved
7940 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
7942 * c-parser.c (c_lex_one_token): Updated and reindented some
7943 comments. No changes in code.
7945 2011-01-11 Ian Lance Taylor <iant@google.com>
7947 * godump.c (go_output_var): Don't output the variable if there is
7948 already a type with the same name.
7950 2011-01-11 Ian Lance Taylor <iant@google.com>
7952 * godump.c (go_format_type): Don't generate float80.
7954 2011-01-11 Richard Henderson <rth@redhat.com>
7956 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
7957 declaration. Rewrite for both speed and size.
7958 (mn10300_address_cost_1): Remove.
7959 (mn10300_register_move_cost): New.
7960 (mn10300_memory_move_cost): New.
7961 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
7962 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
7963 extensions, shifts, BSWAP, CLZ.
7964 (mn10300_wide_const_load_uses_clr): Remove.
7965 (TARGET_REGISTER_MOVE_COST): New.
7966 (TARGET_MEMORY_MOVE_COST): New.
7967 * config/mn10300/mn10300-protos.h: Update.
7968 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
7970 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
7971 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
7972 * config/mn10300/mn10300-protos.h: Update.
7973 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
7974 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
7975 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
7976 (*test_int_bitfield, *test_byte_bitfield): Remove.
7977 (*bit_test, *subreg_bit_test): Remove.
7978 * config/mn10300/predicates.md (const_8bit_operand): Remove.
7980 * config/mn10300/constraints.md ("c"): Rename from "A".
7981 ("A", "D"): New constraint letters.
7982 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
7983 (fmssf4, fnmasf4, fnmssf4): Likewise.
7985 * config/mn10300/mn10300.md (isa): New attribute.
7986 (enabled): New attribute.
7988 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
7989 (abssf2, negsf2): Define only for hardware fp.
7990 (sqrtsf2): Reformat.
7991 (addsf3, subsf3, mulsf3): Merge expander and insn.
7993 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
7994 (DEBUGGER_AUTO_OFFSET): Remove.
7995 (DEBUGGER_ARG_OFFSET): Remove.
7997 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
7998 Emit register stores with the same offsets as the hardware.
7999 (mn10300_store_multiple_operation): Don't check that the register
8000 save offsets are monotonic.
8001 * config/mn10300/mn10300-protos.h: Update.
8003 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
8005 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
8006 in terms of the value on the stack, not the MDR register.
8008 2011-01-11 Jan Hubicka <jh@suse.cz>
8012 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
8013 (symbol_alias_set_destroy, symbol_alias_set_contains,
8014 propagate_aliases_backward): Declare.
8015 * lto-streamer-out.c (struct sets): New sturcture.
8016 (trivally_defined_alias): New function.
8017 (output_alias_pair_p): Rewrite.
8018 (output_unreferenced_globals): Fix output of alias pairs.
8019 (produce_symtab): Likewise.
8020 * ipa.c (function_and_variable_visibility): Set weak alias destination
8022 * varasm.c (symbol_alias_set_t): Remove.
8023 (symbol_alias_set_destroy): Export.
8024 (propagate_aliases_forward, propagate_aliases_backward): New functions
8026 (compute_visible_aliases): ... this one; remove.
8027 (trivially_visible_alias): New
8028 (trivially_defined_alias): New.
8029 (remove_unreachable_alias_pairs): Rewrite.
8030 (finish_aliases_1): Reorganize code checking if alias is defined.
8031 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
8034 2011-01-11 Richard Guenther <rguenther@suse.de>
8036 PR tree-optimization/46076
8037 * tree-ssa.c (useless_type_conversion_p): Conversions from
8038 unprototyped to empty argument list function types are useless.
8040 2011-01-11 Richard Guenther <rguenther@suse.de>
8043 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
8044 volatile MEMs as MEM_READONLY_P.
8046 2011-01-11 Richard Guenther <rguenther@suse.de>
8048 PR tree-optimization/47239
8049 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
8051 2011-01-11 Jeff Law <law@redhat.com>
8053 PR tree-optimization/47086
8054 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
8055 IVs from statements that might throw.
8057 2011-01-10 Jan Hubicka <jh@suse.cz>
8060 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
8062 2011-01-10 Jan Hubicka <jh@suse.cz>
8065 * profile.c (read_profile_edge_counts): Ignore profile inconistency
8066 when correcting profile.
8068 2011-01-10 Jan Hubicka <jh@suse.cz>
8071 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
8073 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
8074 Restore DECL_FINI_PRIORITY.
8076 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8078 * doc/gimple.texi: Fix quoting of multi-word return values in
8079 @deftypefn statements. Ensure presence of return value. Wrap
8080 overlong @deftypefn lines.
8081 (is_gimple_operand, is_gimple_min_invariant_address): Remove
8082 descriptions of removed functions.
8083 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
8084 of multi-word return value in @deftypefn statement.
8086 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8088 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
8089 (Conditional Expressions, Logical Operators)
8090 (Statement and operand traversals): Do not indent smallexample
8091 code. Fix duplicate function argument in example.
8093 2011-01-10 Jeff Law <law@redhat.com>
8095 PR tree-optimization/47141
8096 * ipa-split.c (split_function): Handle case where we are
8097 returning a value and the return block has a virtual operand phi.
8099 2011-01-10 Jan Hubicka <jh@suse.cz>
8101 PR tree-optimization/47234
8102 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
8103 (pass_feedback_split_functions): Declare.
8104 * passes.c (init_optimization_passes): Add ipa-split as subpass of
8106 * ipa-split.c (gate_split_functions): Update comments; disable
8107 split-functions for profile_arc_flag and branch_probabilities.
8108 (gate_feedback_split_functions): New function.
8109 (execute_feedback_split_functions): New function.
8110 (pass_feedback_split_functions): New global var.
8112 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
8115 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
8116 calling gimple_call_set_cannot_inline.
8118 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
8120 * config/darwin-sections.def: Remove unused section.
8122 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
8125 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
8127 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
8130 * c-parser.c (c_parser_declaration_or_fndef): Improved
8133 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
8135 * config/i386/winnt.c (i386_pe_start_function): Make sure
8136 to switch back to function's section.
8138 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
8142 * plugin.c: Move include of dlfcn.h from here...
8143 * system.h: ... to here.
8145 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8147 * doc/cpp.texi (C++ Named Operators): Fix markup for header
8149 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
8150 two extra empty pages in PDF output.
8152 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
8155 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
8156 for error recovery purposes behave as if it was not specified so
8157 that the default type is usd.
8159 2011-01-07 Jan Hubicka <jh@suse.cz>
8161 PR tree-optmization/46469
8162 * ipa.c (function_and_variable_visibility): Clear needed flags on
8163 nodes with external decls; handle weakrefs merging correctly.
8165 2011-01-07 Joseph Myers <joseph@codesourcery.com>
8167 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
8170 2011-01-07 Jan Hubicka <jh@suse.cz>
8172 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
8173 and no longer claim that gold is required for linker plugin.
8174 * configure: Regenerate.
8175 * gcc.c (PLUGIN_COND): New macro.
8176 (LINK_COMMAND_SPEC): Use it.
8177 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
8178 * config.in (HAVE_LTO_PLUGIN): New.
8179 * configure.ac (--with-lto-plugin): New parameter; autodetect
8182 2011-01-07 Jan Hubicka <jh@suse.cz>
8184 PR tree-optimization/46367
8185 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
8186 when we can update original.
8187 (cgraph_mark_inline_edge): Sanity check.
8188 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
8190 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8192 * config/spu/spu.h (ASM_COMMENT_START): Define.
8194 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
8198 (SWITCH_KEEP_FOR_GCC): Likewise.
8199 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
8200 (do_spec_1): Handle "%>".
8202 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
8204 2011-01-07 Jakub Jelinek <jakub@redhat.com>
8207 * config/i386/i386.c (ix86_delegitimize_address): If
8208 simplify_gen_subreg fails, return orig_x.
8211 * value-prof.c (gimple_stringop_fixed_value): Handle
8212 lhs of the call properly.
8214 2011-01-07 Jan Hubicka <jh@suse.cz>
8217 * lto-opt.c (lto_reissue_options): Set flag_shlib.
8219 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
8221 * target.def (function_switched_text_sections): New hook.
8222 * doc/tm.texi: Regenerated.
8223 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
8224 * final.c (default_function_switched_text_sections): New.
8225 (final_scan_insn): Call function_switched_text_sections when a
8226 mid-function section change occurs.
8227 * output.h (default_function_switched_text_sections): Declare.
8228 * config/darwin-protos.h (darwin_function_switched_text_sections):
8230 * config/darwin.c (darwin_function_switched_text_sections): New.
8231 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
8233 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
8235 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
8236 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
8237 the secondary code fragment when outputting for DWARF == 2.
8239 2011-01-07 Anatoly Sokolov <aesok@post.ru>
8241 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8242 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
8244 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
8245 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8247 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
8250 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
8251 when it is not empty.
8253 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
8256 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
8257 (case ${target}): Add btver1.
8258 * config/i386/driver-i386.c (host_detect_local_cpu): Let
8259 -march=native recognize btver1 processors.
8260 * config/i386/i386-c.c (ix86_target_macros_internal): Add
8261 btver1 def_and_undef
8262 * config/i386/i386.c (struct processor_costs btver1_cost): New
8264 (m_BTVER1): New definition.
8265 (m_AMD_MULTIPLE): Includes m_BTVER1.
8266 (initial_ix86_tune_features): Add btver1 tune.
8267 (processor_target_table): Add btver1 entry.
8268 (static const char *const cpu_names): Add btver1 entry.
8269 (software_prefetching_beneficial_p): Add btver1.
8270 (ix86_option_override_internal): Add btver1 instruction sets.
8271 (ix86_issue_rate): Add btver1.
8272 (ix86_adjust_cost): Add btver1.
8273 * config/i386/i386.h (TARGET_BTVER1): New definition.
8274 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
8275 (enum processor_type): Add PROCESSOR_BTVER1.
8276 * config/i386/i386.md (define_attr "cpu"): Add btver1.
8278 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8281 * config/i386/i386.c (legitimize_tls_address)
8282 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
8283 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
8284 (tls_initial_exec_64_sun): New pattern.
8286 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
8288 * doc/invoke.texi (Overall Options): Improve wording and markup
8289 of the description of -wrapper.
8291 2011-01-06 Joseph Myers <joseph@codesourcery.com>
8293 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
8294 rdynamic, threads): New Driver options.
8296 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8299 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
8300 if coming from .tdata.
8301 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
8303 2011-01-06 Jan Hubicka <jh@suse.cz>
8306 * collect2.c (main): Do not enable LTOmode when plugin is active.
8308 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8311 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
8312 --version output if supported.
8313 * configure: Regenerate.
8315 2011-01-06 Joseph Myers <joseph@codesourcery.com>
8317 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
8320 2011-01-06 Jakub Jelinek <jakub@redhat.com>
8323 * c-convert.c (convert): When converting a complex expression
8324 other than COMPLEX_EXPR to a different complex type, ensure
8325 c_save_expr is called instead of save_expr, unless in_late_binary_op.
8326 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
8327 when converting COMPLEX_TYPE.
8329 2011-01-06 Ira Rosen <irar@il.ibm.com>
8331 PR tree-optimization/47139
8332 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
8333 only the last reduction value is used outside the loop. Update
8336 2011-01-05 Joseph Myers <joseph@codesourcery.com>
8338 * config/rtems.opt: New.
8339 * config.gcc (*-*-rtems*): Use rtems.opt.
8341 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
8343 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
8344 processors do not support 3DNow instructions.
8346 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8348 * config/spu/spu.c (spu_option_override): Set parameter
8349 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
8351 2011-01-05 Jan Hubicka <jh@suse.cz>
8353 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
8354 at the command line.
8356 2011-01-05 Martin Jambor <mjambor@suse.cz>
8359 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
8360 deltas on streamed outgoing edges.
8361 (output_node_opt_summary): Output info for outgoing edges only when
8362 the node is in new parameter set.
8363 (output_cgraph_opt_summary): New parameter set, passed to the two
8364 aforementioned functions. Update its forward declaration and its
8367 2011-01-05 Tom Tromey <tromey@redhat.com>
8369 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
8370 operator to c_finish_omp_atomic.
8371 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
8372 (build_unary_op): Update.
8373 (build_modify_expr): Update.
8374 (build_asm_expr): Update.
8376 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8378 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
8379 newly inserted insns.
8381 (spu_emit_branch_hint): Likewise.
8382 (insert_hbrp_for_ilb_runout): Likewise.
8383 (spu_machine_dependent_reorg): Call df_finish_pass after
8384 schedule_insns returns.
8386 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8388 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
8390 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
8392 PR tree-optimization/47005
8393 * tree-sra.c (struct access): Add 'non_addressable' bit.
8394 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
8395 (decide_one_param_reduction): Return 0 if the parameter is passed by
8396 reference and one of the accesses in the group is non_addressable.
8398 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
8400 PR tree-optimization/47056
8401 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
8402 (mark_load): Likewise. Handle FUNCTION_DECL specially.
8403 (mark_store): Likewise. Pass STMT to ipa_record_reference.
8405 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
8407 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
8408 initializer. Skip view conversions from aggregate types.
8410 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
8413 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
8415 2011-01-04 Philipp Thomas <pth@suse.de>
8417 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
8420 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8422 * function.c (thread_prologue_and_epilogue_insns): Do not crash
8423 on empty epilogue sequences.
8425 2011-01-04 Joseph Myers <joseph@codesourcery.com>
8427 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
8428 non-static): New Driver options.
8430 2011-01-04 Jie Zhang <jie@codesourcery.com>
8433 * gcc.c (default_compilers[]): Set combinable field to 0
8434 for all assembly languages.
8436 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
8438 * config/mips/loongson3a.md: New file.
8439 * config/mips/mips.md: Include loongson3a.md.
8440 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
8443 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
8446 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
8447 instead of convert_memory_address_addr_space on the base expression.
8449 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8451 * config/spu/spu.c (spu_option_override): Update error text
8452 for bad -march= / -mtune= values.
8454 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8456 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
8457 if branch-hint optimization will be performed.
8459 2011-01-03 Jakub Jelinek <jakub@redhat.com>
8461 PR tree-optimization/47148
8462 * ipa-split.c (split_function): Convert arguments to
8463 DECL_ARG_TYPE if possible.
8465 PR tree-optimization/47155
8466 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
8469 PR rtl-optimization/47157
8470 * combine.c (try_combine): If undobuf.other_insn becomes
8471 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
8472 and set *new_direct_jump_p too.
8474 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
8476 PR tree-optimization/47021
8477 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
8479 2011-01-03 Jakub Jelinek <jakub@redhat.com>
8481 * gcc.c (process_command): Update copyright notice dates.
8482 * gcov.c (print_version): Likewise.
8483 * gcov-dump.c (print_version): Likewise.
8484 * mips-tfile.c (main): Likewise.
8485 * mips-tdump.c (main): Likewise.
8487 2011-01-03 Martin Jambor <mjambor@suse.cz>
8489 PR tree-optimization/46801
8490 * tree-sra.c (type_internals_preclude_sra_p): Check whether
8491 aggregate fields start at byte boundary instead of the bit-field flag.
8493 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
8496 * gcc.c (main): Revert revision 168407.
8498 2011-01-03 Martin Jambor <mjambor@suse.cz>
8500 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
8502 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8504 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
8505 vector optab to expand vector/scalar shift, update gimple to vector.
8507 2011-01-03 Martin Jambor <mjambor@suse.cz>
8509 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
8512 2011-01-03 Martin Jambor <mjambor@suse.cz>
8514 PR tree-optimization/46984
8515 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
8517 (cgraph_create_indirect_edge): Fixed line length.
8518 (cgraph_indirect_call_info): Declare.
8519 (cgraph_make_edge_direct) Update declaration.
8520 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
8521 (cgraph_create_indirect_edge): Use it.
8522 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
8524 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
8525 the new thunk_delta representation.
8526 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
8528 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
8529 (ipa_read_indirect_edge_info): Likewise.
8530 * lto-cgraph.c (output_edge_opt_summary): New function.
8531 (output_node_opt_summary): Call it on all outgoing edges.
8532 (input_edge_opt_summary): New function.
8533 (input_node_opt_summary): Call it on all outgoing edges.
8535 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
8538 * gcc.c (main): Don't check have_o when settting combine_inputs.
8540 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
8542 * regrename.c: Add general comment describing the pass.
8543 (struct du_head): Remove 'length' field.
8544 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
8545 (regrename_optimize): Do not sort chains. Rework comments, add others.
8546 Force renaming to the preferred class (if any) in the first pass and do
8547 not consider registers that belong to it in the second pass.
8548 (create_new_chain): Do not set 'length' field.
8549 (scan_rtx_reg): Likewise.
8551 2011-01-02 Jakub Jelinek <jakub@redhat.com>
8553 PR tree-optimization/47140
8554 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
8555 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
8558 PR rtl-optimization/47028
8559 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
8560 parm_birth_insn instead of at the beginning of first bb.
8562 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
8564 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
8565 Remove the word "see" before "@pxref".
8566 * doc/rtl.texi: Remove the word "see" before "@pxref".
8568 2011-01-01 Jan Hubicka <jh@suse.cz>
8570 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
8573 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
8576 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
8579 Copyright (C) 2011 Free Software Foundation, Inc.
8581 Copying and distribution of this file, with or without modification,
8582 are permitted in any medium without royalty provided the copyright
8583 notice and this notice are preserved.