1 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
4 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
7 (debug_free_queue, debug_nesting, symbol_queue_index):
9 * dbxout.c: ...to here. Make static.
11 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13 * gcse.c (modify_pair): Define. Define a VEC of it.
14 (canon_modify_mem_list): Convert to an array of VECs.
15 (free_insn_expr_list_list): Delete.
16 (clear_modify_mem_tables): Call VEC_free instead.
17 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
18 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
19 (canon_list_insert, compute_transp): Likewise.
21 2011-04-05 Tom de Vries <tom@codesourcery.com>
24 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
27 2011-04-05 Tom de Vries <tom@codesourcery.com>
30 * function.c (emit_use_return_register_into_block): New function.
31 (thread_prologue_and_epilogue_insns): Use
32 emit_use_return_register_into_block.
34 2011-04-05 Tom de Vries <tom@codesourcery.com>
37 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
40 2011-04-05 Tom de Vries <tom@codesourcery.com>
42 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
44 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
46 * config/arm/arm.md (define_constants for unspec): Replace with
48 (define_constants for unspecv): Replace with define_c_enum.
49 * config/arm/neon.md (define_constants for unspec): Replace with
52 2011-04-04 Richard Henderson <rth@redhat.com>
55 * dwarf2out.c (output_line_info): Always emit line info from
57 (dwarf2out_init): Create text_section_line_info here ...
58 (set_cur_line_info_table): ... not here.
60 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
63 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
66 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
68 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
70 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
71 (expr_equiv_p): Remove.
72 (insert_set_in_table): Look at <dest, src> pair instead of expr.
73 (hash_scan_set): Update call to insert_set_in_table.
74 (dump_hash_table): Dump <dest, src> pair.
75 (lookup_set): Simplify. Lookup <dest, src> pair.
76 (compute_transp): Remove, fold heavily simplified code into...
77 (compute_local_properties): ...here. Expect COMP and TRANSP
79 (find_avail_set): Take set directly from struct expr.
80 (find_bypass-set): Likewise.
81 (bypass_block): Likewise.
82 (cprop_insn): Likewise. Remove redundant INSN_P test.
84 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
85 checks on form of COND from find_implicit_sets to here.
86 (find_implicit_sets): Cleanup control flow. Split critical edges
87 if it exposes implicit sets. Allocate/resize implicit_sets as
89 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
90 changed something. Run df_analyze after find_implicit_sets if any
91 edges were split. Do not allocate implicit_sets here.
93 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
94 (gcse_obstack): Renamed to cprop_obstack.
95 (GNEW, GNEWVEC, GNEWVAR): Remove.
97 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
98 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
99 (gcse_alloc): Likewise, and rename to cprop_alloc.
100 (alloc_gcse_men, free_gcse_mem): Remove.
101 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
102 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
103 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
105 * cprop.c (oprs_not_set_p): Remove.
106 (mark_set, mark_clobber): Remove.
107 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
108 (reg_not_set_p): New function.
109 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
110 (cprop_insn): Likewise.
111 (cprop_jump): Use FOR_EACH_EDGE.
113 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
116 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
117 (rank_for_schedule): Use scheduled_insns vector instead of
119 (ok_for_early_queue_removal): Likewise.
120 (queue_to_ready): Search forward in nonscheduled_insns_begin if
122 (choose_ready): Likewise.
123 (commit_schedule): Use VEC_iterate.
124 (schedule_block): Initialize nonscheduled_insns_begin. If we have
125 a dbg_cnt, use it and ensure the first insn is in the ready list.
126 (haifa_sched_init): Allocate scheduled_insns.
127 (sched_extend_ready_list): Don't allocate it; reserve space.
128 (haifa_sched_finish): Free it.
130 2011-04-04 Joseph Myers <joseph@codesourcery.com>
132 * optc-gen.awk: Always remove type from Variable entry before
133 recording in var_seen.
135 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
137 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
138 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
139 call to tidy_fallthru_edges.
141 2011-04-04 Joseph Myers <joseph@codesourcery.com>
143 * doc/options.texi (ToLower): Document.
144 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower
146 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
147 * opts.h (cl_option): Add cl_tolower field.
148 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
149 arguments with lowercase strings.
150 * config/rx/rx.opt (mcpu=): Add ToLower.
151 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
154 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
156 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
158 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
160 * config/vax/vax.c: Include reload.h.
162 2011-04-04 Anatoly Sokolov <aesok@post.ru>
164 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
165 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
166 (sparc_preferred_reload_class): New function.
168 2011-04-04 Jakub Jelinek <jakub@redhat.com>
171 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
172 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
174 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
176 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
177 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
179 2011-04-03 Anatoly Sokolov <aesok@post.ru>
181 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
182 (ASM_OUTPUT_ALIGNED_BSS): Define.
184 2011-04-03 Michael Matz <matz@suse.de>
186 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
187 and next_slot members.
188 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
189 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
190 (lto_streamer_cache_append): Declare.
191 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
192 unsigned index, remove offset parameter, ensure that we append
193 or update existing entries.
194 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
195 parameter, update next_slot for append.
196 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
198 (lto_streamer_cache_insert_at): Likewise.
199 (lto_streamer_cache_append): New function.
200 (lto_streamer_cache_lookup): Use unsigned index.
201 (lto_streamer_cache_get): Likewise.
202 (lto_record_common_node): Don't test tree_node_can_be_shared.
203 (preload_common_node): Adjust call to lto_streamer_cache_insert.
204 (lto_streamer_cache_delete): Don't free offsets member.
205 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
206 (lto_output_string_with_length): Use lto_output_data_stream.
207 (lto_output_tree_header): Remove ix parameter, don't write it.
208 (lto_output_builtin_tree): Likewise.
209 (lto_write_tree): Adjust callers to above, don't track and write
210 offset, write unsigned index.
211 (output_unreferenced_globals): Don't emit all global vars.
212 (write_global_references): Use unsigned indices.
213 (lto_output_decl_state_refs): Likewise.
214 (write_symbol): Likewise.
215 * lto-streamer-in.c (lto_input_chain): Move earlier.
216 (input_function): Use unsigned index.
217 (input_alias_pairs): Don't read and then ignore all global vars.
218 (lto_materialize_tree): Remove ix_p parameter, don't read index,
219 don't pass it back, use lto_streamer_cache_append.
220 (lto_register_var_decl_in_symtab): Use unsigned index.
221 (lto_register_function_decl_in_symtab): Likewise.
222 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
224 (lto_get_builtin_tree): Don't read index, use
225 lto_streamer_cache_append.
226 (lto_read_tree): Adjust call to lto_materialize_tree.
228 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
229 don't use function calls in arguments to MIN.
231 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
234 * gimple.c (gimple_type_leader_entry): Mark deletable.
236 2011-04-03 Alan Modra <amodra@gmail.com>
238 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
240 2011-04-03 Michael Matz <matz@suse.de>
242 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
244 * tree.h (tree_decl_non_common.vindex): Adjust comment.
246 2011-04-03 Michael Matz <matz@suse.de>
248 * cgraphbuild.c (record_reference): Canonicalize constructor values.
249 * gimple-fold.c (canonicalize_constructor_val): Accept being called
250 without function context.
251 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
252 current_function_decl and cfun.
254 2011-04-03 Michael Matz <matz@suse.de>
256 * tree.c (decl_init_priority_insert): Don't create entry for
258 (decl_fini_priority_insert): Ditto.
259 (fields_compatible_p, find_compatible_field): Remove.
260 * tree.h (fields_compatible_p, find_compatible_field): Remove.
261 * gimple.c (gimple_compare_field_offset): Adjust block comment.
263 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
265 * combine.c (try_combine): Remove useless local variable.
267 2011-04-03 Richard Guenther <rguenther@suse.de>
268 Ira Rosen <ira.rosen@linaro.org>
270 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
271 non-variable offsets and compare the remaining bases of the two
272 accesses instead of looking for exact same data-ref.
274 2011-04-02 Kai Tietz <ktietz@redhat.com>
277 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
279 * i386.c (ix86_is_msabi_thiscall): New helper function.
280 (ix86_is_type_thiscall): New helper function.
281 (ix86_comp_type_attributes): Handle thiscall for method-functions
283 (init_cumulative_args): Likewise.
284 (find_drap_reg): Likewise.
285 (ix86_static_chain): Likewise.
286 (x86_this_parameter): Likewise.
287 (x86_output_mi_thunk): Likewise.
289 2011-04-01 Olivier Hainque <hainque@adacore.com>
290 Nicolas Setton <setton@adacore.com>
291 Eric Botcazou <ebotcazou@adacore.com>
293 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
294 (add_gnat_descriptive_type_attribute): New function.
295 (gen_array_type_die): Call it.
296 (gen_enumeration_type_die): Likewise.
297 (gen_struct_or_union_type_die): Likewise.
298 (modified_type_die): Likewise.
299 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
300 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
301 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
303 2011-04-01 Jakub Jelinek <jakub@redhat.com>
306 * dwarf2out.c (resolve_addr): Don't call force_decl_die
307 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
310 2011-03-17 Richard Guenther <rguenther@suse.de>
313 * lto-cgraph.c (input_overwrite_node): Clear the abstract
314 origin for decls in other ltrans units.
315 (input_varpool_node): Likewise.
317 2011-04-01 Jakub Jelinek <jakub@redhat.com>
320 * expr.c (expand_assignment): Handle all possibilities
322 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
323 (store_split_bit_field): If SUBREG_REG (op0) or
324 op0 itself has smaller mode than word, return it
325 for offset 0 and const0_rtx for out-of-bounds stores.
326 If word is const0_rtx, skip it.
328 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
330 * config/h8300/h8300.c (print_operand_address): Rename to...
331 (h8300_print_operand_address): ...this. Make static. Adjust comments.
332 Call h8300_print_operand and h8300_print_operand_address instead of
333 print_operand and print_operand_address. Declare.
334 (print_operand): Renake to...
335 (h8300_print_operand): ...this. Make static. Adjust comments.
336 Call h8300_print_operand instead of print_operand. Declare.
337 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
338 (h8300_register_move_cost): Likewise.
339 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
340 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
341 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
342 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
343 * config/h8300/h8300-protos.h (print_operand): Delete.
344 (print_operand_address): Delete.
346 2011-04-01 Richard Henderson <rth@redhat.com>
349 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
350 in strict mode before dwarf4. Re-order tests to early out
351 before switching sections.
353 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
355 * config/h8300/constraints.md: New file.
356 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
357 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
358 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
359 * config/h8300/predicates.md (bit_operand): Likewise.
360 (incdec_operand): Use satisfies_constraint_M and
361 satisfies_constraint_O. Don't use C code block.
362 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
363 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
364 (compute_mov_length): Use satisfies_constraint_G.
365 (fix_bit_operand): Use satisfies_constraint_U.
366 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
367 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
368 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
369 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
370 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
371 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
372 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
373 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
374 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
375 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
376 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
377 (EXTRA_MEMORY_CONSTRAINT): Delete.
379 2011-04-01 Andrew Pinski <pinskia@gmail.com>
380 Michael Meissner <meissner@linux.vnet.ibm.com>
383 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
384 operands, as per the specifications.
386 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
387 (vec_extract_evenv4sf): Ditto.
388 (vec_extract_evenv8hi): Ditto.
389 (vec_extract_evenv16qi): Ditto.
390 (vec_extract_oddv4si): Ditto.
392 2011-03-31 Mark Wielaard <mjw@redhat.com>
394 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
395 high_pc attribute if the CU has no associated code. Only output
396 DW_AT_entry_pc for CU if not generating strict dwarf and
399 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
401 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
402 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
404 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
405 * final.c (final_start_function): Call the new function rather
406 than using a NULL argument for dwarf2out_frame_debug.
408 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
409 that contains the prologue.
411 * haifa-sched.c (queue_insn): New arg REASON. All callers
412 changed. Print it in debugging output.
414 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
416 * sched-ebb.c (begin_schedule_ready): Remove second argument.
417 Split most of the code into...
418 (begin_move_insn): ... here. New function.
419 (ebb_sched_info): Add a pointer to it.
420 * haifa-sched.c (scheduled_insns): New static variable.
421 (sched_extend_ready_list): Allocate it.
422 (schedule_block): Use it to record the order of scheduled insns.
423 Perform RTL changes to move insns only after all scheduling
424 decisions have been made.
425 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
426 begin_move_insn field.
427 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
428 * sched-int.h (struct haifa_sched_info): Remove second argument
429 from begin_schedule_ready hook. Add new member begin_move_insn.
430 * sched-rgn.c (begin_schedule_ready): Remove second argument.
431 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
433 * haifa-sched.c (prune_ready_list): New function, broken out of
435 (schedule_block): Use it.
437 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
439 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
441 2011-04-01 Kai Tietz <ktietz@redhat.com>
443 * config.gcc (*-*-mingw*): Allow as option the
444 posix threading model.
445 * config/i386/mingw32.h ( SPEC_PTHREAD1, SPEC_PTHREAD2):
446 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
448 (CPP_SPEC): Add pthread/no-pthread handling.
449 (LIB_SPEC): Likewise.
450 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
451 (LIB_SPEC): Likewise.
452 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
453 flag to pass -pthread option for shared libgcc build.
454 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
455 for shared libgcc build.
456 * config/i386/t-mingw-pthread: New file.
457 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
458 New define to enable use of library pthread by default.
459 * config/i386/mingw.opt (pthread): New driver option.
460 (no-pthread): New driver option.
461 * config/i386/cygming.opt: Make sure trailing empty line is retained.
462 * config/i386/mingw-w64.opt: Likewise.
464 2011-04-01 Gary Funck <gary@intrepid.com>
466 * c-decl.c (grokdeclarator): Fix formatting.
468 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
470 * expr.c (emit_block_move_via_movmem): Use n_generator_args
471 instead of n_operands.
472 (set_storage_via_setmem): Likewise.
473 * optabs.c (maybe_gen_insn): Likewise.
474 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
475 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
476 (mips_expand_builtin_direct): Likewise.
477 * config/spu/spu.c (expand_builtin_args): Likewise.
479 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
481 * recog.h (insn_data_d): Add n_generator_args.
482 * genoutput.c (data): Likewise.
483 (output_insn_data): Print it.
484 (max_opno, num_dups): Delete.
485 (scan_operands): Just fill in "d->operand[...]".
486 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
488 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
490 * gensupport.h (pattern_stats): New structure.
491 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
492 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
493 (max_operand_1, max_operand_vec): Delete.
494 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
496 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
498 * emit-rtl.c (emit_pattern_after_setloc): New function.
499 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
500 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
501 (emit_pattern_after): New function.
502 (emit_insn_after, emit_jump_insn_after): Call it.
503 (emit_call_insn_after, emit_debug_insn_after): Likewise.
504 (emit_pattern_before_setloc): New function.
505 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
506 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
508 (emit_pattern_before): New function.
509 (emit_insn_before, emit_jump_insn_before): Call it.
510 (emit_call_insn_before, emit_debug_insn_before): Likewise.
512 2011-03-31 Richard Henderson <rth@redhat.com>
514 * dwarf2out.c (dw_separate_line_info_ref): Remove.
515 (dw_separate_line_info_entry): Remove.
516 (enum dw_line_info_opcode): New.
517 (dw_line_info_entry): Use it.
518 (dw_line_info_table, dw_line_info_table_p): New.
519 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
520 (line_info_table, line_info_label_num): Remove.
521 (line_info_table_in_use): Remove.
522 (separate_line_info_table): Remove.
523 (separate_line_info_table_allocated): Remove.
524 (separate_line_info_table_in_use): Remove.
525 (LINE_INFO_TABLE_INCREMENT): Remove.
526 (line_info_label_num): New.
527 (cur_line_info_table): New.
528 (text_section_line_info, cold_text_section_line_info): New.
529 (separate_line_info): New.
530 (SEPARATE_LINE_CODE_LABEL): Remove.
531 (print_dwarf_line_table): Remove.
532 (debug_dwarf): Don't dump it.
533 (output_one_line_info_table): New.
534 (output_line_info): Use it.
535 (new_line_info_table): New.
536 (set_cur_line_info_table): New.
537 (dwarf2out_switch_text_section): Use it.
538 (dwarf2out_begin_function): Likewise.
539 (push_dw_line_info_entry): New.
540 (dwarf2out_source_line): Rewrite for new line info tables.
541 (dwarf2out_init): Remove dead initailizations.
543 2011-03-31 Joseph Myers <joseph@codesourcery.com>
545 * opts.h (cl_option): Add comments to fields. Add bit-fields for
547 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
548 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
549 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
550 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
551 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
552 * opt-functions.awk (flag_init, switch_bit_fields): New.
553 (switch_flags): Don't handle flags moved to bit-fields. Don't
554 generate CL_MISSING_OK or CL_SAVE.
555 * optc-gen.awk: Update to generate bit-field output as well as
557 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
558 bit-field instead of CL_REJECT_DRIVER flag.
559 * opts-common.c (generate_canonical_option,
560 decode_cmdline_option): Use bit-fields instead of CL_* flags.
561 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
562 instead of CL_REJECT_NEGATIVE flag.
563 * toplev.c (print_switch_values): Use cl_report bit-field instead
566 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
568 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
569 a zero minimum index only if it is redundant.
571 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
573 PR rtl-optimization/48381
574 * ira-color.c (assign_hard_reg): Use hard reg set intersection
575 instead of ira_class_hard_reg_index for calculating conflicting
578 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
580 * cprop.c: Clean up hash table building.
581 (reg_avail_info): Remove.
582 (oprs_available_p): Remove.
583 (record_last_reg_set_info): Remove.
584 (record_last_set_info): Remove.
585 (reg_available_p): New function.
586 (gcse_constant_p): Do not treat unfolded conditions as constants.
587 (make_set_regs_unavailable): New function.
588 (hash_scan_set): Simplify with new reg_available_p.
589 (compute_hash_table_work): Traverse insns stream only once.
590 Do not compute reg_avail_info. Traverse insns in reverse order.
591 Record implicit sets after recording explicit sets from the block.
593 2011-03-31 Michael Matz <matz@suse.de>
595 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
597 2011-03-31 Anatoly Sokolov <aesok@post.ru>
599 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
600 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
601 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
602 (h8300_mode_dependent_address_p): New function.
603 (h8300_get_index): Make static.
605 2011-03-31 Jeff Law <law@redhat.com>
607 * reload1.c (elimination_effects): Fix typo in recent change.
609 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
610 typo potentially leading to null pointer dereference.
612 * caller-save.c (new_saved_hard_reg): Eliminate return value.
613 (setup_save_areas): Corresponding changes to avoid useless
616 * jump.c (reversed_comparison_code_parts): Avoid successive return
617 statements when REVERSE_CONDITION is defined.
619 * expr.c (expand_assignment): Avoid useless assignments.
620 (expand_expr_real_1): Likewise.
621 (expand_expr_real_2): Avoid useless statements.
623 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
625 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
627 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
630 * stmt.c (expand_expr_stmt): Avoid useless assignment.
632 2011-03-31 Joseph Myers <joseph@codesourcery.com>
635 * doc/tm.texi.in (TARGET_VERSION): Remove.
636 * doc/tm.texi: Regenerate.
637 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
638 * collect2.c (main): Don't use TARGET_VERSION.
639 * mips-tdump.c (main): Don't use TARGET_VERSION.
640 * mips-tfile.c (main): Don't use TARGET_VERSION.
641 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
642 * config/rs6000/vxworksae.h: Remove.
643 * config/alpha/alpha.h (TARGET_VERSION): Remove.
644 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
645 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
646 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
647 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
648 * config/arm/arm.h (TARGET_VERSION): Remove.
649 * config/arm/coff.h (TARGET_VERSION): Remove.
650 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
651 * config/arm/elf.h (TARGET_VERSION): Remove.
652 * config/arm/freebsd.h (TARGET_VERSION): Remove.
653 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
654 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
655 * config/arm/pe.h (TARGET_VERSION): Remove.
656 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
657 * config/arm/semi.h (TARGET_VERSION): Remove.
658 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
659 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
660 * config/arm/vxworks.h (TARGET_VERSION): Remove.
661 * config/avr/avr.h (TARGET_VERSION): Remove.
662 * config/bfin/bfin.h (TARGET_VERSION): Remove.
663 * config/fr30/fr30.h (TARGET_VERSION): Remove.
664 * config/frv/frv.h (TARGET_VERSION): Remove.
665 * config/h8300/h8300.h (TARGET_VERSION): Remove.
666 * config/i386/cygwin.h (TARGET_VERSION): Remove.
667 * config/i386/darwin.h (TARGET_VERSION): Remove.
668 * config/i386/darwin64.h (TARGET_VERSION): Remove.
669 * config/i386/djgpp.h (TARGET_VERSION): Remove.
670 * config/i386/freebsd.h (TARGET_VERSION): Remove.
671 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
672 * config/i386/gnu.h (TARGET_VERSION): Remove.
673 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
674 * config/i386/i386elf.h (TARGET_VERSION): Remove.
675 * config/i386/linux.h (TARGET_VERSION): Remove.
676 * config/i386/linux64.h (TARGET_VERSION): Remove.
677 * config/i386/lynx.h (TARGET_VERSION): Remove.
678 * config/i386/mingw32.h (TARGET_VERSION): Remove.
679 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
680 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
681 * config/i386/netware.h (TARGET_VERSION): Remove.
682 * config/i386/nto.h (TARGET_VERSION): Remove.
683 * config/i386/openbsd.h (TARGET_VERSION): Remove.
684 * config/i386/vxworks.h (TARGET_VERSION): Remove.
685 * config/ia64/elf.h (TARGET_VERSION): Remove.
686 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
687 * config/ia64/hpux.h (TARGET_VERSION): Remove.
688 * config/ia64/linux.h (TARGET_VERSION): Remove.
689 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
690 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
691 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
692 * config/lm32/lm32.h (TARGET_VERSION): Remove.
693 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
694 * config/m32c/m32c.h (TARGET_VERSION): Remove.
695 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
696 * config/m32r/m32r.h (TARGET_VERSION): Remove.
697 * config/m68k/linux.h (TARGET_VERSION): Remove.
698 * config/m68k/m68k.h (TARGET_VERSION): Remove.
699 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
700 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
701 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
702 * config/mep/mep.h (TARGET_VERSION): Remove.
703 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
704 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
705 * config/mips/iris6.h (MACHINE_TYPE): Remove.
706 * config/mips/linux.h (TARGET_VERSION): Remove.
707 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
708 * config/mips/vxworks.h (TARGET_VERSION): Remove.
709 * config/mmix/mmix.h (TARGET_VERSION): Remove.
710 * config/mn10300/linux.h (TARGET_VERSION): Remove.
711 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
712 * config/pa/pa.h (TARGET_VERSION): Remove.
713 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
714 * config/picochip/picochip.h (TARGET_VERSION): Remove.
715 * config/rs6000/aix.h (TARGET_VERSION): Remove.
716 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
717 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
718 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
719 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
720 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
721 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
722 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
723 * config/rs6000/linux.h (TARGET_VERSION): Remove.
724 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
725 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
726 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
727 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
728 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
729 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
730 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
731 * config/s390/linux.h (TARGET_VERSION): Remove.
732 * config/s390/s390.h (TARGET_VERSION): Remove.
733 * config/s390/tpf.h (TARGET_VERSION): Remove.
734 * config/score/score.h (TARGET_VERSION): Remove.
735 * config/sh/linux.h (TARGET_VERSION): Remove.
736 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
737 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
738 * config/sh/sh.h (TARGET_VERSION): Remove.
739 * config/sh/sh64.h (TARGET_VERSION): Remove.
740 * config/sh/superh.h (TARGET_VERSION): Remove.
741 * config/sh/vxworks.h (TARGET_VERSION): Remove.
742 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
743 * config/sparc/linux.h (TARGET_VERSION): Remove.
744 * config/sparc/linux64.h (TARGET_VERSION): Remove.
745 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
746 TARGET_NAME32, TARGET_NAME): Remove.
747 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
748 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
749 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
750 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
751 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
752 * config/spu/spu.h (TARGET_VERSION): Remove.
753 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
754 * config/v850/v850.h (TARGET_VERSION): Remove.
755 * config/vax/linux.h (TARGET_VERSION): Remove.
756 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
757 * config/xtensa/elf.h (TARGET_VERSION): Remove.
758 * config/xtensa/linux.h (TARGET_VERSION): Remove.
760 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
763 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
764 frame-related from frame-unrelated adjustments to the stack pointer.
766 2011-03-31 Jakub Jelinek <jakub@redhat.com>
768 * common.opt (fdebug-types-section): Move earlier.
769 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
771 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
773 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
776 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
778 * tree.h (CASE_CHAIN): Define.
779 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
780 (gimple_redirect_edge_and_branch): Likewise.
782 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
785 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
788 2011-03-30 Jeff Law <law@redhat.com>
791 * reload1.c (reload): Fix botch in last change.
793 * reload.h (struct reload): Fix typo introduced in last change.
795 2011-03-30 Joseph Myers <joseph@codesourcery.com>
797 * config/arm/arm.opt (mhard-float, msoft-float): Mark
798 Undocumented. Remove help text.
799 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
802 2011-03-30 Joseph Myers <joseph@codesourcery.com>
804 * doc/options.texi (NegativeAlias): Document.
805 (Alias): Mention NegativeAlias.
806 * opt-functions.awk: Handle NegativeAlias.
807 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
808 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
809 * opts.h (CL_NEGATIVE_ALIAS): Define.
810 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
811 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
813 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
815 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
816 mno-spe and mno-isel instead of mspe=no and -misel=no.
818 2011-03-29 Mark Wielaard <mjw@redhat.com>
820 * common.opt (fdebug-types-section): New flag.
821 * doc/invoke.texi: Document new -fno-debug-types-section flag.
822 * dwarf2out.c (use_debug_types): New define.
823 (struct die_struct): Mark die_id with GTY desc use_debug_types.
824 (print_die): Guard output of type unit signatures using
826 (build_abbrev_table): Replace assert of dwarf_version >= 4
827 with assert on use_debug_types.
828 (size_of_die): Likewise.
829 (unmark_dies): Likewise.
830 (value_format): Decide AT_ref_external form on use_debug_types.
831 (output_die): Replace dwarf_version version check guard with
832 use_debug_types where appropriate.
833 (modified_type_die): Likewise.
834 (gen_reference_type_die): Likewise.
835 (dwarf2out_start_source_file): Likewise.
836 (dwarf2out_end_source_file): Likewise.
837 (prune_unused_types_walk_attribs): Likewise.
838 (dwarf2out_finish): Likewise.
840 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
842 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
844 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
846 PR rtl-optimization/48332
847 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
848 mode of input operand N and modeN to its actual mode.
850 2011-03-30 Jeff Law <law@redhat.com>
852 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
853 define accessor macro.
854 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
855 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
856 (reg_equiv_init): Likewise.
857 (reg_equivs_size): New variable.
858 (reg_equiv_init_size): Remove.
859 (allocate_initial_values): Move prototype to here from....
860 * integrate.h (allocate_initial_values): Remove prototype.
861 * integrate.c: Include reload.h.
862 (allocate_initial_values): Corresponding changes.
863 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
864 (fix_reg_equiv_init, no_equiv): Corresponding changes.
865 (update_equiv_regs): Corresponding changes.
866 (ira): Corresponding changes.
867 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
868 (push_secondary_reload): Corresponding changes.
869 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
870 (make_memloc, find_reloads_address): Corresponding changes.
871 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
872 (find_reloads_address_1): Corresponding changes.
873 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
874 (refers_to_regno_for_reload_p): Corresponding changes.
875 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
876 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
877 * reload1.c: Include ggc.h.
878 (grow_reg_equivs): New function.
879 (replace_pseudos_in, reload): Corresponding changes.
880 (calculate_needs_all_insns, alter_regs): Corresponding changes.
881 (eliminate_regs_1, elimination_effects): Corresponding changes.
882 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
883 (delete_output_reload): Likewise.
884 * caller-save.c (mark_referenced_regs): Corresponding changes.
885 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
886 * frv/predicates.md (frv_load_operand): Corresponding changes.
887 * microblaze/microblaze.c (double_memory_operand): Corresponding
889 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
890 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
891 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
892 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
893 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
895 * pa/pa.c (emit_move_sequence): Corresponding changes.
896 * vax/vax.c (nonindexed_address_p): Corresponding changes.
898 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
901 * config/arm/arm.c (coproc_secondary_reload_class): Handle
902 structure modes. Don't check neon_vector_mem_operand for
903 vector or structure modes.
905 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
906 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
909 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
910 operand 1 and reshuffle the operands to match.
911 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
913 2011-03-30 Christian Schüler <cschueler@gmx.de>
916 * config/c.opt (F): Added 'Driver' to -F option.
919 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
921 * config/darwin.opt: Added '-arch' option.
923 2011-03-30 Nick Clifton <nickc@redhat.com>
925 * config/rx/rx.md: Add peepholes and patterns to combine
926 extending loads and simple arithmetic instructions.
927 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
928 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
929 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
930 modes to use pre-decrement and post-increment addressing.
931 (rx_is_restricted_memory_address): Add range checking of REG+INT
933 (rx_print_operand): Add support for %Q. Fix handling of %Q.
934 (rx_memory_move_cost): Adjust cost of stores.
935 (rx_adjust_insn_length): New function.
937 2011-03-30 Jakub Jelinek <jakub@redhat.com>
940 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
941 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
942 matching arg00/arg01 types.
944 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
946 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
947 last_location to UNKNOWN_LOCATION.
949 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
952 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
955 2011-03-30 Joseph Myers <joseph@codesourcery.com>
956 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
959 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
961 (sparc_cpu): Likewise.
962 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
965 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
969 PR rtl-optimization/48345
970 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
971 hard regs for given mode from profitable regs when doing secondary
974 2011-03-29 Jeff Law <law@redhat.com>
977 * tree-ssa-threadupdate.c (struct redirection_data): Remove
978 do_not_duplicate field.
979 (lookup_redirection_data): Corresponding changes.
980 (create_duplicates): Always create a template block.
981 (redirect_edges): Remove code which reused the original block
982 when it was going to become unreachable code.
983 (thread_block): Don't set do_not_duplicate field.
985 2011-03-29 Joseph Myers <joseph@codesourcery.com>
987 * lto-opts.c (register_user_option_p, lto_register_user_option):
988 Make type argument unsigned.
989 * lto-streamer.h (lto_register_user_option): Make type argument
991 * opth-gen.awk: Make CL_* macros unsigned.
992 * opts-common.c (find_opt): Make lang_mask argument unsigned.
993 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
994 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
995 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
996 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
997 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
998 (find_opt): Make lang_mask argument unsigned.
1000 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
1002 PR rtl-optimization/48331
1003 PR rtl-optimization/48334
1004 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
1005 for any used algorithm.
1007 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
1009 * ira-conflicts.c (build_object_conflicts): Add unused attribute
1012 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
1014 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
1015 (alpha_option_override): Don't set alpha_sr_alias_set.
1016 (emit_frame_store_1): Use gen_frame_mem rather than calling
1018 (alpha_expand_epilogue): Ditto.
1020 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
1022 PR tree-optimization/48290
1023 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
1024 vectorization, check that relevant phis in the basic block after
1025 the inner loop are really inner loop's exit phis.
1027 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
1030 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
1031 (cached_dw_loc_list_def): New structure.
1032 (cached_dw_loc_list): New typedef.
1033 (cached_dw_loc_list_table): New variable.
1034 (cached_dw_loc_list_table_hash): New function.
1035 (cached_dw_loc_list_table_eq): Likewise.
1036 (add_location_or_const_value_attribute): Take a bool cache_p.
1037 Cache the list when the parameter is true.
1038 (gen_formal_parameter_die): Update caller.
1039 (gen_variable_die): Likewise.
1040 (dwarf2out_finish): Likewise.
1041 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
1042 while generating debug info for the decl.
1043 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
1044 (dwarf2out_init): Initialize cached_dw_loc_list_table.
1045 (resolve_addr): Cache the result of resolving a chain of
1048 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
1050 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
1051 conflict object hard regset nodes have intersecting hard reg sets.
1053 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
1054 after regstat_init_n_sets_and_refs.
1056 * ira.c: Add more comments at the top.
1057 (setup_stack_reg_pressure_class, setup_pressure_classes):
1058 Add comments how we compute the register pressure classes.
1059 (setup_allocno_and_important_classes): Add more comments.
1060 (setup_class_translate_array, reorder_important_classes)
1061 (setup_reg_class_relations): Add comments.
1063 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
1066 * ira-color.c: Add 2011 to the Copyright line.
1067 (assign_hard_reg): Add more comments.
1068 (improve_allocation): Ditto.
1070 * ira-costs.c: Add 2011 to the Copyright line.
1071 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
1073 (setup_regno_cost_classes_by_mode): Ditto.
1075 Initial patches from ira-improv branch:
1077 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
1079 * ira-build.c: (ira_create_object): Remove initialization of
1080 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
1081 (ira_create_allocno): Remove initialization of
1082 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
1083 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
1084 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
1085 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
1086 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
1087 Initialize ALLOCNO_ADD_DATA.
1088 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
1089 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
1091 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
1092 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
1094 * ira.c (ira_reallocate): Remove.
1095 (setup_pressure_classes): Call
1096 ira_init_register_move_cost_if_necessary. Use
1097 ira_register_move_cost instead of ira_get_register_move_cost.
1098 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
1099 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
1101 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
1102 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
1103 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
1104 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
1105 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
1106 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
1108 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
1109 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1110 (struct allocno_color_data): New.
1111 (allocno_color_data_t): New typedef.
1112 (allocno_color_data): New definition.
1113 (ALLOCNO_COLOR_DATA): New macro.
1114 (struct object_color_data): New.
1115 (object_color_data_t): New typedef.
1116 (object_color_data): New definition.
1117 (OBJECT_COLOR_DATA): New macro.
1118 (update_copy_costs, calculate_allocno_spill_cost): Call
1119 ira_init_register_move_cost_if_necessary. Use
1120 ira_register_move_cost instead of ira_get_register_move_cost.
1121 (move_spill_restore, update_curr_costs): Ditto.
1122 (allocno_spill_priority): Make it inline.
1123 (color_pass): Allocate and free allocno_color_dat and object_color_data.
1124 (struct coalesce_data, coalesce_data_t): New.
1125 (allocno_coalesce_data): New definition.
1126 (ALLOCNO_COALESCE_DATA): New macro.
1127 (merge_allocnos, coalesced_allocno_conflict_p): Use
1128 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
1129 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
1130 (coalesce_allocnos): Ditto.
1131 (setup_coalesced_allocno_costs_and_nums): Ditto.
1132 (collect_spilled_coalesced_allocnos): Ditto.
1133 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
1134 (setup_slot_coalesced_allocno_live_ranges): Ditto.
1135 (coalesce_spill_slots): Ditto.
1136 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
1137 free allocno_coalesce_data.
1139 * ira-conflicts.c: Fix formatting.
1140 (process_regs_for_copy): Call
1141 ira_init_register_move_cost_if_necessary. Use
1142 ira_register_move_cost instead of ira_get_register_move_cost.
1143 (build_object_conflicts): Optimize.
1145 * ira-costs.c (record_reg_classes): Optimize. Call
1146 ira_init_register_move_cost_if_necessary. Use
1147 ira_register_move_cost, ira_may_move_in_cost, and
1148 ira_may_move_out_cost instead of ira_get_register_move_cost and
1149 ira_get_may_move_cost.
1150 (record_address_regs): Ditto.
1151 (scan_one_insn): Optimize.
1152 (find_costs_and_classes): Optimize.
1153 (process_bb_node_for_hard_reg_moves): Call
1154 ira_init_register_move_cost_if_necessary. Use
1155 ira_register_move_cost instead of ira_get_register_move_cost.
1157 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
1158 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
1159 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
1160 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
1162 (ira_initiate_emit_data, ira_finish_emit_data)
1163 (create_new_allocno): New functions.
1164 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
1165 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
1166 Use ira_register_move_cost instead of ira_get_register_move_cost.
1168 * ira-int.h: Fix some comments.
1169 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
1170 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1171 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
1172 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
1174 (struct ira_allocno): Make mode and aclass a bitfield. Move other
1175 bitfield after mode. Make hard_regno a short int. Make
1176 hard_regno short. Remove first_coalesced_allocno and
1177 next_coalesced_allocno. Move mem_optimized_dest_p,
1178 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
1179 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
1180 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
1181 temp, colorable_p. Add new member add_data.
1182 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
1183 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
1184 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
1185 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
1186 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
1187 (ALLOCNO_ADD_DATA): New macro.
1188 (ira_emit_data_t): New typedef.
1189 (struct ira_emit_data): New. Move mem_optimized_dest_p,
1190 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
1191 from struct ira_allocno.
1192 (ALLOCNO_EMIT_DATA): New macro.
1193 (ira_allocno_emit_data, allocno_emit_reg): New.
1194 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
1195 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
1196 (OBJECT_ADD_DATA): New macro.
1197 (ira_reallocate): Remove.
1198 (ira_initiate_emit_data, ira_finish_emit_data): New.
1199 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
1200 (ira_init_register_move_cost_if_necessary): New.
1201 (ira_object_conflict_iter_next): Merge into
1202 ira_object_conflict_iter_cond.
1203 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
1205 * ira-live.c: (process_single_reg_class_operands): Call
1206 ira_init_register_move_cost_if_necessary. Use
1207 ira_register_move_cost instead of ira_get_register_move_cost.
1209 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
1211 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
1213 * ira-costs.c: Fix formatting.
1214 (cost_classes, cost_classes_num): Remove.
1215 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
1216 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
1217 (cost_classes_del, cost_classes_htab): New.
1218 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
1219 (initiate_regno_cost_classes, setup_cost_classes): New.
1220 (setup_regno_cost_classes_by_aclass): New.
1221 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
1222 (record_reg_classes): Use regno_cost_classes instead of
1223 cost_classes. Move checking opposite operand up.
1224 (record_address_regs): Use regno_cost_classes
1225 instead of cost_classes.
1226 (scan_one_insn): Ditto. Use always general register.
1227 (print_allocno_costs): Use regno_cost_classes instead of
1229 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
1230 (find_costs_and_classes): Set up cost classes for each registers.
1231 Use also their mode for this. Use regno_cost_classes instead of
1233 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
1235 (free_ira_costs, ira_init_costs): Don't use cost_classes.
1236 (ira_costs, ira_set_pseudo_classes): Call
1237 initiate_regno_cost_classes and finish_regno_cost_classes.
1239 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
1241 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
1243 * target.def (ira_cover_classes): Remove.
1245 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
1247 * doc/tm.texi.in: Ditto.
1249 * ira-conflicts.c: Remove mentioning cover classes from the file.
1250 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
1251 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
1253 * targhooks.c (default_ira_cover_classes): Remove.
1255 * targhooks.h (default_ira_cover_classes): Ditto.
1257 * haifa-sched.c: Remove mentioning cover classes from the file.
1258 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
1259 ira_pressure_classes and ira_pressure_classes_num instead of
1260 ira_reg_class_cover_size and ira_reg_class_cover. Use
1261 sched_regno_pressure_class instead of sched_regno_cover_class.
1262 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
1263 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
1265 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
1266 classes from the file.
1267 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
1268 (struct object_hard_regs, struct object_hard_regs_node): New.
1269 (struct ira_object): New members profitable_hard_regs,
1270 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
1271 (struct ira_allocno): Rename cover_class to aclass. Rename
1272 cover_class_cost and updated_cover_class_cost to class_cost and
1273 updated_class_cost. Remove splay_removed_p and
1274 left_conflict_size. Add new members colorable_p.
1275 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
1276 (ALLOCNO_COLORABLE_P): New macro.
1277 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
1278 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
1279 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
1280 (OBJECT_...): Rename parameter C to O.
1281 (OBJECT_PROFITABLE_HARD_REGS): New macro.
1282 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
1283 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
1284 (struct target_ira_int): New members x_ira_max_memory_move_cost,
1285 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
1286 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
1287 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
1288 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
1289 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
1290 x_ira_reg_class_subunion.
1291 (ira_max_memory_move_cost, ira_max_register_move_cost)
1292 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
1293 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
1294 (ira_important_class_nums, ira_reg_class_superunion): New macros.
1295 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
1296 (ira_reg_class_union): Rename to ira_reg_class_subunion.
1297 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
1298 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
1299 (ira_tune_allocno_costs_and_cover_classes): Rename to
1300 ira_tune_allocno_costs.
1301 (ira_debug_hard_regs_forest): New.
1302 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
1303 (ira_object_conflict_iter_next): Fix comments.
1304 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
1305 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
1306 cover_class to aclass.
1307 (ira_allocate_and_accumulate_costs): Ditto.
1308 (ira_allocate_and_set_or_copy_costs): Ditto.
1310 * opts.c (decode_options): Remove ira_cover_class check.
1312 * ira-color.c: Remove mentioning cover classes from the file. Use
1313 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
1314 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
1315 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
1316 (splay-tree.h): Remove include.
1317 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
1318 before copy_freq_compare_func.
1319 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
1320 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
1322 (hard_regs_roots, hard_regs_node_vec): Ditto.
1323 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
1324 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
1325 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
1326 (create_new_object_hard_regs_node): Ditto.
1327 (add_new_object_hard_regs_node_to_forest): Ditto.
1328 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
1329 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
1331 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
1332 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
1333 (remove_unused_object_hard_regs_nodes): Ditto.
1334 (enumerate_object_hard_regs_nodes): Ditto.
1335 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
1336 (object_hard_regs_subnode_t): Ditto.
1337 (struct object_hard_regs_subnode): Ditto.
1338 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
1339 (setup_object_hard_regs_subnode_index): Ditto.
1340 (get_object_hard_regs_subnodes_num): Ditto.
1341 (form_object_hard_regs_nodes_forest): Ditto.
1342 (finish_object_hard_regs_nodes_tree): Ditto.
1343 (finish_object_hard_regs_nodes_forest): Ditto.
1344 (allocnos_have_intersected_live_ranges_p): Rename to
1345 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1346 (pseudos_have_intersected_live_ranges_p): Rename to
1347 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1348 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
1349 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
1350 (update_copy_costs): Remove assert. Skip cost update if the hard
1351 reg does not belong the class.
1352 (assign_hard_reg): Process only profitable hard regs.
1353 (uncolorable_allocnos_num): Make it scalar.
1354 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
1355 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
1356 and ira_reg_class_max_nregs.
1357 (bucket_allocno_compare_func): Check frequency first.
1358 (sort_bucket): Add compare function as a parameter.
1359 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
1360 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
1361 (push_allocno_to_stack): Rewrite for checking new allocno
1363 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
1364 (push_only_colorable): Pass new parameter to sort_bucket.
1365 (push_allocno_to_spill): Remove.
1366 (allocno_spill_priority_compare): Make it inline and rewrite.
1367 (splay_tree_allocate, splay_tree_free): Remove.
1368 (allocno_spill_sort_compare): New function.
1369 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
1370 build and use splay tree. Choose first allocno in uncolorable
1371 allocno bucket to spill. Remove setting spill cost.
1372 (all_conflicting_hard_regs): Remove.
1373 (setup_allocno_available_regs_num): Check only profitable hard
1374 regs. Print info about hard regs nodes.
1375 (setup_allocno_left_conflicts_size): Remove.
1376 (put_allocno_into_bucket): Don't call
1377 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
1378 (improve_allocation): New.
1379 (color_allocnos): Call setup_profitable_hard_regs,
1380 form_object_hard_regs_nodes_forest, improve_allocation,
1381 finish_object_hard_regs_nodes_forest. Setup spill cost.
1382 (print_loop_title): Use pressure classes.
1383 (color_allocnso): Ditto.
1384 (do_coloring): Remove allocation and freeing splay_tree_node_pool
1385 and allocnos_for_spilling.
1386 (ira_sort_regnos_for_alter_reg): Don't setup members
1387 {first,next}_coalesced_allocno.
1388 (color): Remove allocating and freeing removed_splay_allocno_vec.
1389 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
1390 prohibited_class_mode_regs.
1392 * ira-lives.c: Remove mentioning cover classes from the file. Fix
1394 (update_allocno_pressure_excess_length): Use pressure classes.
1395 (inc_register_pressure, dec_register_pressure): Check for pressure
1397 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
1398 pressure class. Use ira_reg_class_nregs instead of
1399 ira_reg_class_max_nregs.
1400 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
1401 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
1402 (single_reg_class): Use ira_reg_class_nregs instead of
1403 ira_reg_class_max_nregs.
1404 (process_bb_node_lives): Use pressure classes.
1406 * ira-emit.c: Remove mentioning cover classes from the file. Use
1407 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
1408 (change_loop): Use pressure classes.
1409 (modify_move_list): Call ira_set_allocno_class instead of
1410 ira_set_allocno_cover_class.
1412 * ira-build.c: Remove mentioning cover classes from the file. Use
1413 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
1414 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
1415 ALLOCNO_UPDATED_CLASS_COST instead of
1416 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
1417 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
1418 (ira_create_allocno): Remove initialization of
1419 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
1420 ALLOCNO_COLORABLE_P.
1421 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
1422 Update conflict regs for the objects.
1423 (create_cap_allocno): Remove assert. Don't propagate
1424 ALLOCNO_AVAILABLE_REGS_NUM.
1425 (ira_free_allocno_costs): New function.
1426 (finish_allocno): Change a part of code into call of
1427 ira_free_allocno_costs.
1428 (low_pressure_loop_node_p): Use pressure classes.
1429 (object_range_compare_func): Don't compare classes.
1430 (setup_min_max_conflict_allocno_ids): Ditto.
1432 * loop-invariant.c: Remove mentioning cover classes from the file.
1433 Use ira_pressure_classes and ira_pressure_classes_num instead of
1434 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
1435 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
1436 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
1437 Use reg_allocno_class instead of reg_cover_class.
1438 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
1439 STACK_REG_COVER_CLASS.
1440 (get_regno_cover_class): Rename to get_regno_pressure_class.
1441 (move_loop_invariants): Initialize and finalize regstat.
1443 * ira.c: Remove mentioning cover classes from the file. Add
1444 comments about coloring without cover classes. Use ALLOCNO_CLASS
1445 instead of ALLOCNO_COVER_CLASS. Fix formatting.
1446 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
1447 setup_class_subset_and_memory_move_costs.
1448 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
1449 (setup_cover_and_important_classes): Rename to
1450 setup_allocno_and_important_classes.
1451 (setup_class_translate_array): New.
1452 (setup_class_translate): Call it for allocno and pressure classes.
1453 (cover_class_order): Rename to allocno_class_order.
1454 (comp_reg_classes_func): Use ira_allocno_class_translate instead
1455 of ira_class_translate.
1456 (reorder_important_classes): Set up ira_important_class_nums.
1457 (setup_reg_class_relations): Set up ira_reg_class_superunion.
1458 (print_class_cover): Rename to print_classes. Add parameter.
1459 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
1460 Print pressure classes too.
1461 (find_reg_class_closure): Rename to find_reg_classes. Don't call
1462 setup_reg_subclasses.
1463 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1464 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
1465 (setup_prohibited_class_mode_regs): Use
1466 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
1467 (clarify_prohibited_class_mode_regs): New function.
1468 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
1469 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
1470 (ira_init_once): Initialize them.
1471 (free_register_move_costs): Process them.
1472 (ira_init): Move calls of find_reg_classes and
1473 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
1474 Call clarify_prohibited_class_mode_regs.
1475 (ira_no_alloc_reg): Remove.
1476 (too_high_register_pressure_p): Use pressure classes.
1478 * sched-deps.c: Remove mentioning cover classes from the file.
1479 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
1480 ira_pressure_classes and ira_pressure_classes_num instead of
1481 ira_reg_class_cover_size and ira_reg_class_cover.
1482 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
1483 sched_regno_pressure_class instead of sched_regno_cover_class.
1484 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
1485 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
1487 * ira.h: Add 2010 to Copyright.
1488 (ira_no_alloc_reg): Remove external.
1489 (struct target_ira): Rename x_ira_hard_regno_cover_class,
1490 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
1491 x_ira_class_translate to x_ira_hard_regno_allocno_class,
1492 x_ira_allocno_classes_num, x_ira_allocno_classes, and
1493 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
1494 x_ira_pressure_classes, x_ira_pressure_class_translate, and
1495 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
1496 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
1497 x_ira_no_alloc_regs.
1498 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1499 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
1500 ira_allocno_classes_num and ira_allocno_classes.
1501 (ira_class_translate): Rename to ira_allocno_class_translate.
1502 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
1503 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
1504 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
1505 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
1506 (ira_no_alloc_regs): New.
1508 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
1509 classes from the file. Use ALLOCNO_CLASS instead of
1510 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
1511 ALLOCNO_COVER_CLASS_COST.
1512 (regno_cover_class): Rename to regno_aclass.
1513 (record_reg_classes): Use ira_reg_class_subunion instead of
1514 ira_reg_class_union.
1515 (record_address_regs): Check overflow.
1516 (scan_one_insn): Ditto.
1517 (print_allocno_costs): Print total mem cost fore regional allocation.
1518 (print_pseudo_costs): Use REG_N_REFS.
1519 (find_costs_and_classes): Use classes intersected with them on the
1520 1st pass. Check overflow. Use ira_reg_class_subunion instead of
1521 ira_reg_class_union. Use ira_allocno_class_translate and
1522 regno_aclass instead of ira_class_translate and regno_cover_class.
1523 Modify code for finding regno_aclass. Setup preferred classes for
1525 (setup_allocno_cover_class_and_costs): Rename to
1526 setup_allocno_class_and_costs. Use regno_aclass instead of
1527 regno_cover_class. Use ira_set_allocno_class instead of
1528 ira_set_allocno_cover_class.
1529 (init_costs, finish_costs): Use regno_aclass instead of
1531 (ira_costs): Use setup_allocno_class_and_costs instead of
1532 setup_allocno_cover_class_and_costs.
1533 (ira_tune_allocno_costs_and_cover_classes): Rename to
1534 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
1535 by processing objects. Use ira_reg_class_max_nregs instead of
1536 ira_reg_class_nregs.
1538 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
1540 * sched-int.h: Remove mentioning cover classes from the file.
1541 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
1543 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
1544 classes from the file.
1545 (struct reg_pref): Rename coverclass into allocnoclass.
1546 (reg_cover_class): Rename to reg_allocno_class.
1548 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
1550 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
1552 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
1554 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
1556 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
1558 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
1560 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
1562 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
1564 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
1566 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
1568 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
1569 (i386_ira_cover_classes): Ditto.
1571 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
1573 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
1575 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
1577 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
1579 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
1581 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
1583 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
1584 (mips_ira_cover_classes): Ditto.
1586 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
1588 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
1590 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
1592 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
1594 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
1596 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
1597 (IRA_COVER_CLASSES_VSX): Ditto.
1599 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
1600 (rs6000_ira_cover_classes): Ditto.
1602 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
1604 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
1606 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
1608 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
1610 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
1612 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
1614 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
1616 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
1618 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
1620 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
1622 2011-03-29 Jakub Jelinek <jakub@redhat.com>
1625 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
1626 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
1627 dw_fde_unlikely_section_end_label, cold_in_std_section,
1628 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
1629 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
1631 (output_fde): Use dw_fde_second_{begin,end} if second is
1632 true, otherwise dw_fde_{begin,end}.
1633 (output_call_frame_info): Test dw_fde_second_begin != NULL
1634 instead of dw_fde_switched_sections.
1635 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
1636 fields, initialize new fields. Initialize in_std_section
1637 unconditionally from the first partition.
1638 (dwarf2out_end_epilogue): Don't override dw_fde_end when
1639 dw_fde_second_begin is non-NULL.
1640 (dwarf2out_switch_text_section): Stop initializing removed
1641 dw_fde_struct fields, initialize new fields, initialize
1642 also dw_fde_end here. Set dw_fde_switch_cfi even when
1643 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
1644 (struct var_loc_list_def): Add last_before_switch field.
1645 (arange_table, arange_table_allocated, arange_table_in_use,
1646 ARANGE_TABLE_INCREMENT, add_arange): Removed.
1647 (size_of_aranges): Count !in_std_section and !second_in_std_section
1648 hunks in fdes, instead of looking at arange_table_in_use.
1649 (output_aranges): Add aranges_length argument, don't call
1650 size_of_aranges here. Instead of using aranges_table*
1651 emit ranges for fdes when !in_std_section resp.
1652 !second_in_std_section.
1653 (dw_loc_list): Break ranges crossing section switch.
1654 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
1655 use dw_fde_second_end instead of dw_fde_end as end of last range.
1656 (gen_subprogram_die): Don't call add_arange. Use
1657 dw_fde_{begin,end} for first partition and if switched
1658 section dw_fde_second_{begin,end} for the second.
1659 (var_location_switch_text_section_1,
1660 var_location_switch_text_section): New functions.
1661 (dwarf2out_begin_function): Initialize cold_text_section even
1662 when function_section () isn't text_section.
1663 (prune_unused_types): Don't walk arange_table.
1664 (dwarf2out_finish): Don't needlessly test
1665 flag_reorder_blocks_and_partition when testing cold_text_section_used.
1666 If info_section_emitted, call size_of_aranges and if it indicates
1667 non-empty .debug_aranges, call output_aranges with the computed
1668 size. Stop using removed dw_fde_struct fields, use
1669 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
1673 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
1674 create ENTRY_VALUE if incoming or address of incoming's MEM
1676 * dwarf2out.c (mem_loc_descriptor): Don't emit
1677 DW_OP_GNU_entry_value of DW_OP_fbreg.
1678 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
1679 on ENTRY_VALUE is able to find the canonical parameter VALUE.
1680 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
1681 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
1683 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
1684 is a REG_P or MEM_P with REG_P address, compute hash directly
1685 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
1686 (preserve_only_constants): Don't clear VALUES forwaring
1687 ENTRY_VALUE to some other VALUE.
1689 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
1691 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
1694 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
1696 * cfgexpand.c (expand_gimple_cond): Always set the source location and
1697 block before expanding the statement.
1698 (expand_gimple_stmt_1): Likewise. Set them here...
1699 (expand_gimple_stmt): ...and not here. Tidy.
1700 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
1703 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
1705 * Makefile.in: New rule for cprop.o.
1706 * gcse.c: Move constant/copy propagation to cprop.c.
1707 (compute_local_properties): Only handle expression tables.
1708 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
1709 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
1710 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
1711 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
1712 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
1713 compute_cprop_data, find_used_regs, try_replace_reg,
1714 find_avail_set, cprop_jump, constprop_register, cprop_insn,
1715 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
1716 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
1717 find_bypass_set, reg_killed_on_edge, bypass_block,
1718 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
1719 execute_rtl_cprop, pass_rtl_cprop): Move to...
1720 * cprop.c: ...here. New file, constant/copy propagation for RTL
1721 moved from gcse.c to here with minor cleanups in duplicated code.
1723 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
1725 * config/i386/i386.c (flag_opts): Fix a typo in
1726 -mavx256-split-unaligned-store.
1728 2011-03-28 Anatoly Sokolov <aesok@post.ru>
1730 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
1731 LIBCALL_VALUE): Remove macros.
1732 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1733 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1734 (h8300_function_value, h8300_libcall_value,
1735 h8300_function_value_regno_p): New functions.
1737 2011-03-28 Anatoly Sokolov <aesok@post.ru>
1739 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
1741 2011-03-28 Jeff Law <law@redhat.com>
1743 * tree-ssa-threadupdate.c (redirect_edges): Call
1744 create_edge_and_update_destination_phis as needed.
1745 (create_edge_and_update_destination_phis): Accept new BB argument.
1746 All callers updated.
1747 (thread_block): Do not update the profile when threading around
1748 intermediate blocks.
1749 (thread_single_edge): Likewise.
1750 (determine_bb_domination_status): If BB is not a successor of the
1751 loop header, return NONDOMINATING.
1752 (register_jump_thread): Note when we register a jump thread around
1753 an intermediate block.
1754 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
1755 (thread_across_edge): Use it.
1757 2011-03-28 Tristan Gingold <gingold@adacore.com>
1759 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
1760 when for_return is 2.
1762 2011-03-28 Jeff Law <law@redhat.com>
1764 * var-tracking.c (canonicalize_values_mark): Delete unused
1766 (canonicalize_values_star, set_variable_part): Likewise.
1767 (clobber_variable_part, delete_variable_part): Likewise.
1769 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
1771 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
1773 2011-03-28 Martin Jambor <mjambor@suse.cz>
1775 * tree-inline.c (expand_call_inline): Do not check that destination
1777 (optimize_inline_calls): Assert that destination node is analyzed.
1778 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
1779 not call tree_lowering_passes.
1780 * cgraph.h (cgraph_analyze_function): Declare.
1781 * cgraphunit.c (cgraph_analyze_function): Make public.
1783 2011-03-28 Joseph Myers <joseph@codesourcery.com>
1785 * config/sparc/sparc-opts.h: New.
1786 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
1787 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
1788 (sparc_option_override): Store processor_type enumeration rather
1789 than string in cpu_default. Remove name and enumeration from
1790 cpu_table. Directly default -mcpu then default -mtune from -mcpu
1791 without using sparc_select. Use target_flags_explicit instead of
1793 * config/sparc/sparc.h (enum processor_type): Move to
1795 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
1796 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
1797 HeaderInclude entry.
1798 (mcpu=, mtune=): Use Var and Enum.
1799 (sparc_processor_type): New Enum and EnumValue entries.
1801 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1802 Iain Sandoe <iains@gcc.gnu.org>
1805 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
1807 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
1809 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
1810 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
1811 Insert new statements at it in lieu of STMT.
1812 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
1813 * tree-vect-stmts.c (vectorizable_store): Likewise.
1814 (vectorizable_load): Likewise.
1816 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
1818 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
1823 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
1825 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
1826 unaligned 256bit load/store.
1827 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
1828 (*avx_movdqu<avxmodesuffix>): Likewise.
1830 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1833 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
1834 * config/pa/pa.md (iordi3): Use new predicate in expander.
1837 2011-03-27 Anatoly Sokolov <aesok@post.ru>
1839 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
1840 FUNCTION_VALUE_REGNO_P): Remove macros.
1841 * config/mips/mips-protos.h (mips_function_value): Remove.
1842 * config/mips/mips.c (mips_function_value): Rename to...
1843 (mips_function_value_1): ... this. Make static. Handle receiving
1844 the function type in 'fn_decl_or_type' argument.
1845 (mips_function_value, mips_libcall_value,
1846 mips_function_value_regno_p): New function.
1847 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1848 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1850 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
1852 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
1853 and -mavx256-split-unaligned-store.
1854 (ix86_option_override_internal): Split 32-byte AVX unaligned
1855 load/store by default.
1856 (ix86_avx256_split_vector_move_misalign): New.
1857 (ix86_expand_vector_move_misalign): Use it.
1859 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
1860 -mavx256-split-unaligned-store.
1862 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
1863 256bit load/store. Generate unaligned store on misaligned memory
1865 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
1867 (*avx_movdqu<avxmodesuffix>): Likewise.
1869 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
1870 -mavx256-split-unaligned-store.
1872 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
1875 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
1878 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
1880 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
1881 opno arguments with an expand_operand. Use create_input_operand.
1882 (mips_prepare_builtin_target): Delete.
1883 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
1885 (mips_expand_builtin_direct): Use create_output_operand and
1886 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
1887 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
1888 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
1890 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
1892 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
1894 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
1896 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
1898 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
1899 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
1900 basic blocks and call commit_edge_insertions directly.
1901 (fixup_abnormal_edges): Move from here to...
1902 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
1903 on the edges and return whether some have actually been inserted.
1904 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
1907 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
1909 PR rtl-optimization/48144
1910 * sel-sched-ir.c (merge_history_vect): Factor out from ...
1911 (merge_expr_data): ... here.
1912 (av_set_intersect): Rename to av_set_code_motion_filter.
1913 Update all callers. Call merge_history_vect when an expression
1914 is found in both sets.
1915 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
1917 2011-03-26 Alan Modra <amodra@gmail.com>
1919 * config/rs6000/predicates.md (word_offset_memref_op): Handle
1920 cmodel medium addresses.
1921 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
1922 64-bit gpr loads and stores.
1923 (rs6000_secondary_reload_ppc64): New function.
1924 * config/rs6000/rs6000-protos.h: Declare it.
1925 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
1927 2011-03-26 Alan Modra <amodra@gmail.com>
1930 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
1931 GNU Go in traceback table.
1933 2011-03-25 Richard Henderson <rth@redhat.com>
1935 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
1936 if there are exactly 6 operands.
1937 (set_storage_via_setmem): Similarly.
1939 2011-03-25 Kai Tietz <ktietz@redhat.com>
1941 * collect2.c (write_c_file_stat): Handle backslash
1942 as right-hand directory separator.
1943 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
1944 checking just for slash.
1945 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
1946 instead of checking for trailing slash.
1947 * gcc.c (record_temp_file): Use filename_cmp instead
1949 (do_spec_1): Likewise.
1950 (replace_outfile_spec_function): Likewise.
1951 (is_directory): Use filename_ncmp instead of strncmp.
1952 (print_multilib_info): Likewise.
1953 * gcov.c (find_source): Use filename_cmp instead
1955 (make_gcov_file_name): Fix order of slash/backslash
1957 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
1958 (add_standard_paths): Likewise.
1959 * mips-tfile.c (saber_stop): Handle backslash.
1960 * prefix.c (update_path): Use filename_ncmp instead of
1962 * profile.c (output_location): Use filename_cmp instead
1964 * read-md.c (handle_toplevel_file): Handle backslash.
1965 * tlink.c (frob_extension): Likewise.
1966 * tree-cfg.c (same_line_p): Use filename_cmp instead of
1968 * tree-dump.c (dequeue_and_dump): Handle backslash.
1969 * tree.c (get_file_function_name): Likewise.
1970 * gengtype.c (read_input_list): Likewise.
1971 (get_file_realbasename): Likewise.
1972 (get_output_file_with_visibility): Use filename_cmp
1975 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
1977 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
1980 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
1982 * fold-const.c (expr_location_or): New function.
1983 (fold_truth_not_expr): Call it.
1985 2011-03-25 Jeff Law <law@redhat.com>
1987 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
1989 * c-family/c-common.c (def_fn_type): Likewise.
1990 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
1991 * emit-rtl.c (gen_rtvec): Likewise.
1992 * lto/lto-lang.c (def_fn_type): Likewise.
1994 2011-03-25 Richard Guenther <rguenther@suse.de>
1996 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
1997 also generate copies.
1998 (fini_copy_prop): Handle constant values properly.
2000 2011-03-25 Jakub Jelinek <jakub@redhat.com>
2002 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
2003 mode size instead of bitsize with DWARF2_ADDR_SIZE.
2004 (hash_loc_operands, compare_loc_operands): Handle
2005 DW_OP_GNU_entry_value.
2007 2011-03-25 Kai Tietz <ktietz@redhat.com>
2009 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
2010 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
2011 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
2012 comment and use macro TARGET_64BIT_MS_ABI instead.
2013 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
2014 and change default behavior for 32-bit MS_ABI.
2015 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
2016 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
2018 (ix86_cfun_abi): Likewise.
2019 (ix86_maybe_switch_abi): Adjust comment.
2020 (init_cumulative_args): Check for bit-ness in MS_ABI case.
2021 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
2022 instead of checking for SYSV_ABI.
2023 (ix86_nsaved_sseregs): Likewise.
2024 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
2026 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
2027 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
2028 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
2029 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
2030 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
2032 2011-03-25 Richard Guenther <rguenther@suse.de>
2034 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
2035 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
2036 (verify_gimple): Remove.
2037 * tree-cfg.c (verify_gimple_call): Merge verification
2039 (verify_gimple_phi): Merge verification from verify_stmts.
2040 (verify_gimple_label): New function.
2041 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
2042 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
2043 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
2044 (verify_stmts): Rename to verify_gimple_in_cfg.
2045 (verify_gimple_in_cfg): New function.
2046 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
2047 * tree-ssa.c (verify_ssa): Likewise.
2048 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
2050 2011-03-25 Richard Guenther <rguenther@suse.de>
2052 * passes.c (init_optimization_passes): Add FRE pass after
2055 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
2056 Andrew Stubbs <ams@codesourcery.com>
2058 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
2060 (arm_movdi_vfp_cortexa8): New pattern.
2061 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
2062 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
2063 instructions when tuning for Cortex-A8. Set attribute "arch".
2064 * config/arm/arm.md: Move include arm-tune.md up a bit.
2065 (define_attr "arch"): Add "onlya8" and "nota8" values.
2066 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
2068 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
2072 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
2074 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
2075 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
2076 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
2077 * passes.c (init_optimization_passes): Move
2078 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
2080 2011-03-25 Kai Tietz <ktietz@redhat.com>
2082 * c-typeck.c (comptypes_internal): Replace target
2083 hook call of comp_type_attributes by version in tree.c file.
2084 * gimple.c (gimple_types_compatible_p_1): Likewise.
2085 * tree-ssa.c (useless_type_conversion_p): Likewise.
2086 * tree.c (build_type_attribute_qual_variant): Likewise.
2087 (attribute_value_equal): New static helper function.
2088 (comp_type_attributes): New function.
2089 (merge_attributes): Use attribute_value_equal for comparison.
2090 (attribute_list_contained): Likewise.
2091 * tree.h (comp_type_attributes): New prototype.
2093 2011-03-25 Richard Guenther <rguenther@suse.de>
2095 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
2096 of complex types at -O0.
2097 (verify_gimple_assign_binary): Likewise.
2098 (verify_gimple_assign_ternary): Likewise.
2100 2011-03-24 Mark Wielaard <mjw@redhat.com>
2102 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
2103 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
2105 2011-03-24 Mark Wielaard <mjw@redhat.com>
2108 * dwarf2out.c (output_abbrev_section): Only write table when
2109 abbrev_die_table_in_use > 1.
2111 2011-02-24 Richard Henderson <rth@redhat.com>
2113 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
2114 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
2115 (alpha_expand_unaligned_load_words): Use extql.
2116 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
2117 (emit_insxl): Handle all modes for consistency.
2119 2011-02-24 Richard Henderson <rth@redhat.com>
2121 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
2122 (alpha_expand_unaligned_load): Likewise.
2123 (alpha_expand_unaligned_store): Likewise.
2124 (alpha_expand_unaligned_load_words): Likewise.
2125 (alpha_expand_unaligned_store_words): Likewise.
2126 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
2127 (alpha_split_lock_test_and_set_12): Likewise.
2128 (print_operand, alpha_fold_builtin_extxx): Likewise.
2129 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
2130 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
2131 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
2132 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
2133 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
2134 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
2135 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
2136 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
2137 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
2138 (extwl, extll, extql): Similarly.
2139 (inswh, inslh, insqh): Similarly.
2140 (mskbl, mskwl, mskll, mskql): Similarly.
2141 (mskwh, msklh, mskqh): Similarly.
2143 2011-02-24 Richard Henderson <rth@redhat.com>
2145 * config/alpha/alpha.md (attribute isa): Add er, ner.
2146 (attribute enabled): Handle them.
2147 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
2149 2011-02-24 Richard Henderson <rth@redhat.com>
2151 * config/alpha/alpha.md (attribute isa): Add vms.
2152 (attribute enabled): Handle it.
2153 (*movsf): Merge *movsf_{nofix,fix,nofp}.
2154 (*movdf): Merge *movdf_{nofix,fix,nofp}.
2155 (*movtf): Rename from *movtf_internal for consistency.
2156 (*movsi): Merge with *movsi_nt_vms.
2157 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
2158 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
2159 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
2160 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
2162 2011-02-24 Richard Henderson <rth@redhat.com>
2164 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
2165 (extendqisi2, extendhisi2): Likewise.
2166 (extendqidi2): Simplify BWX/non-BWX expansions.
2167 (extendhidi2): Similarly.
2169 2011-02-24 Richard Henderson <rth@redhat.com>
2171 * config/alpha/alpha.md (attribute isa): New.
2172 (attribute enabled): New.
2173 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
2174 (zero_extendqisi2, zero_extendqidi2): Similarly.
2175 (zero_extendhisi2, zero_extendhidi2): Similarly.
2176 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
2178 2011-02-24 Richard Henderson <rth@redhat.com>
2180 * config/alpha/predicates.md (input_operand): Revert last change;
2181 update comment to mention 32-bit VMS rather than Windows.
2183 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
2185 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
2186 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
2187 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
2188 * passes.c (init_optimization_passes): Move
2189 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
2191 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
2193 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
2195 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
2197 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
2200 2011-03-24 Jakub Jelinek <jakub@redhat.com>
2203 * simplify-rtx.c (simplify_const_unary_operation): Call
2204 real_convert when changing mode class with FLOAT_EXTEND.
2206 2011-03-24 Nick Clifton <nickc@redhat.com>
2208 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
2209 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
2210 * config/rx/rx.c (rx_option_override): Set align_jumps,
2211 align_loops and align_labels if not set by the user.
2212 (rx_align_for_label): New function.
2213 (rx_max_skip_for_label): New function.
2214 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
2215 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
2216 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
2217 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
2218 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
2220 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
2222 PR rtl-optimization/48263
2223 * optabs.c (expand_binop_directly): Reinstate convert_modes code
2224 and original commutative_p handling. Use maybe_gen_insn.
2226 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2228 * reload.c (find_reloads_subreg_address): Add address_reloaded
2229 parameter and return true there if the full address has been
2231 (find_reloads_toplev): Pass address_reloaded flag.
2232 (find_reloads_address_1): Don't use address_reloaded parameter.
2234 2011-03-24 Jeff Law <law@redhat.com>
2236 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
2237 unused variable "ann".
2238 (remove_unused_locals): Likewise.
2240 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
2243 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
2246 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2248 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
2249 for invalid symbolic addresses.
2250 (s390_secondary_reload): Don't use s390_check_symref_alignment for
2253 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
2255 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
2256 the argument in calls to fold_truth_not_expr.
2258 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
2260 * tree.c (record_node_allocation_statistics): New function.
2261 (make_node_stat, copy_node_stat, build_string): Call it.
2262 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
2263 (build1_stat, build_omp_clause): Likewise.
2265 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
2267 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
2270 2011-03-24 Richard Guenther <rguenther@suse.de>
2272 PR tree-optimization/48271
2273 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
2274 blocks that still exist.
2276 2011-03-24 Richard Guenther <rguenther@suse.de>
2278 PR tree-optimization/48270
2279 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
2280 not free datarefs before ddrs.
2282 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
2284 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
2285 from the address built for a reference with variable offset.
2287 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
2290 * config/i386/i386.md (*movdf_internal_rex64): Do not split
2291 alternatives that can be handled with movq or movabsq insn.
2292 (*movdf_internal): Disable for !TARGET_64BIT.
2293 (*movdf_internal_nointeger): Ditto.
2294 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
2296 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
2298 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
2299 (FUNCTION_ARG_ADVANCE): Likewise.
2300 * tm.texi.in: Change references to them to hook references.
2301 * tm.texi: Regenerate.
2302 * targhooks.c (default_function_arg): Eliminate check for target macro.
2303 (default_function_incoming_arg): Likewise.
2304 (default_function_arg_advance): Likewise.
2305 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
2306 (function_arg_advance): Likewise.
2307 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
2309 2011-03-24 Richard Guenther <rguenther@suse.de>
2312 * tree-object-size.c (addr_object_size): Do not double-account
2313 for MEM_REF offsets.
2315 2011-03-24 Diego Novillo <dnovillo@google.com>
2317 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
2318 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
2319 (lto_input_data_block): Move from lto-opts.c. Make extern.
2321 (lto_input_string): Rename from input_string. Make extern.
2323 * lto-streamer-out.c (lto_output_string_with_length): Rename from
2324 output_string_with_length.
2325 Output 0 to indicate a non-NULL string. Update all callers to
2327 (lto_output_string): Rename from output_string. Make extern.
2329 (lto_output_decl_state_streams): Make extern.
2330 (lto_output_decl_state_refs): Make extern.
2331 * lto-streamer.h (lto_input_string): Declare.
2332 (lto_input_data_block): Declare.
2333 (lto_output_string): Declare.
2334 (lto_output_string_with_length): Declare.
2335 (lto_output_decl_state_streams): Declare.
2336 (lto_output_decl_state_refs): Declare.
2338 2011-03-24 Richard Guenther <rguenther@suse.de>
2340 PR tree-optimization/46562
2341 * tree.c (build_invariant_address): New function.
2342 * tree.h (build_invariant_address): Declare.
2343 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
2344 a renamed function moved ...
2345 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
2346 Take valueization callback parameter.
2347 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
2348 * gimple-fold.h: New file.
2349 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
2350 (ccp_fold, fold_const_aggregate_ref,
2351 fold_ctor_reference, fold_nonarray_ctor_reference,
2352 fold_array_ctor_reference, fold_string_cst_ctor_reference,
2353 get_base_constructor): Move ...
2354 * gimple-fold.c: ... here.
2355 (gimple_fold_stmt_to_constant_1): New function
2356 split out from ccp_fold. Take a valueization callback parameter.
2357 Valueize all operands.
2358 (gimple_fold_stmt_to_constant): New wrapper function.
2359 (fold_const_aggregate_ref_1): New function split out from
2360 fold_const_aggregate_ref. Take a valueization callback parameter.
2361 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
2362 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
2363 invariant POINTER_PLUS_EXPRs to invariant form.
2364 (vn_valueize): New function.
2365 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
2366 * tree-vrp.c (vrp_valueize): New function.
2367 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
2368 to fold statements to constants.
2369 * tree-ssa-pre.c (eliminate): Properly guard propagation of
2370 function declarations.
2371 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
2372 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
2374 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
2376 * config/h8300/predicates.md (jump_address_operand): Fix register
2379 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
2381 * doc/invoke.texi (max-stores-to-sink): Document.
2382 * params.h (MAX_STORES_TO_SINK): Define.
2383 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
2384 if either vectorization or if-conversion is disabled.
2385 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
2386 tree-vect-data-refs.c vect_equal_offsets.
2387 (dr_equal_offsets_p): New function.
2388 (find_data_references_in_bb): Remove static.
2389 * tree-data-ref.h (find_data_references_in_bb): Declare.
2390 (dr_equal_offsets_p): Likewise.
2391 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
2392 (vect_drs_dependent_in_basic_block): Update calls to
2394 (vect_check_interleaving): Likewise.
2395 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
2396 (cond_if_else_store_replacement): Rename to...
2397 (cond_if_else_store_replacement_1): ... this. Change arguments and
2399 (cond_if_else_store_replacement): New function.
2400 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
2401 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
2403 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
2406 * config/arm/arm.md (casesi): Use the gen_int_mode() function
2407 to subtract lower bound instead of GEN_INT().
2409 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
2414 * doc/extend.texi (Alignment): Move section to match order in TOC.
2415 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
2416 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
2418 2011-03-23 Jeff Law <law@redhat.com>
2420 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
2421 before removing the edge.
2423 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
2424 it may have been freed by redirect_branch_edge or
2425 redirect_edge_succ_nodup.
2427 2011-03-23 Richard Guenther <rguenther@suse.de>
2429 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
2430 (check_va_list_escapes): Likewise.
2431 (check_all_va_list_escapes): Likewise.
2433 2011-03-23 Richard Guenther <rguenther@suse.de>
2435 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
2436 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
2437 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
2438 (alias.o): Likewise.
2439 (ipa-type-escape.o): Remove.
2440 (ipa-struct-reorg.o): Likewise.
2441 (GTFILES): Remove ipa-struct-reorg.c.
2442 * alias.c: Do not include ipa-type-escape.h.
2443 * tree-ssa-alias.c: Likewise.
2444 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
2445 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
2446 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
2447 and ipa-type-escape passes.
2448 * tree-pass.h (pass_ipa_type_escape): Remove.
2449 (pass_ipa_struct_reorg): Likewise.
2450 * ipa-struct-reorg.h: Remove.
2451 * ipa-struct-reorg.c: Likewise.
2452 * ipa-type-escape.h: Likewise.
2453 * ipa-type-escape.c: Likewise.
2454 * doc/invoke.texi (-fipa-struct-reorg): Remove.
2455 (--param struct-reorg-cold-struct-ratio): Likewise.
2456 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
2457 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
2458 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
2460 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2462 * config/s390/2084.md: Enable all insn reservations also for z9_ec
2463 cpu attribute value.
2464 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
2465 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
2466 * config/s390/s390.c (processor_flags_table): New constant array.
2467 (s390_handle_arch_option): Remove.
2468 (s390_handle_option): Remove s390_handle_arch_option invocations
2469 and OPT_mwarn_framesize_ handling.
2470 (s390_option_override): Remove s390_handle_arch_option invocation.
2471 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
2473 * config/s390/s390.md (cpu attribute): Add z9_ec value.
2474 * config/s390/s390.opt (s390_tune, s390_arch)
2475 (march=): Replace s390_arch_option enum and values with
2476 processor_type. Set variable name to s390_arch. Set
2477 initialization value.
2478 (mtune=): Replace s390_arch_option with processor_type. Set
2479 variable name to s390_tune. Set initialization value.
2481 2011-03-23 Julian Brown <julian@codesourcery.com>
2483 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
2484 accesses which are not naturally aligned.
2486 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
2489 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
2491 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
2493 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
2494 parameter from "int" to "enum insn_code".
2495 (expand_operand_type): New enum.
2496 (expand_operand): New structure.
2497 (create_expand_operand): New function.
2498 (create_fixed_operand, create_output_operand): Likewise
2499 (create_input_operand, create_convert_operand_to): Likewise.
2500 (create_convert_operand_from, create_address_operand): Likewise.
2501 (create_integer_operand): Likewise.
2502 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
2503 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
2504 (expand_insn, expand_jump_insn): Likewise.
2505 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
2506 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
2507 (expand_movstr, expand_builtin___clear_cache): Likewise.
2508 (expand_builtin_lock_release): Likewise.
2509 * explow.c (allocate_dynamic_stack_space): Likewise.
2510 (probe_stack_range): Likewise. Allow check_stack to FAIL,
2511 and use the default handling in that case.
2512 * expmed.c (check_predicate_volatile_ok): Delete.
2513 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
2514 (emit_cstore): Likewise.
2515 * expr.c (emit_block_move_via_movmem): Likewise.
2516 (set_storage_via_setmem, expand_assignment): Likewise.
2517 (emit_storent_insn, try_casesi): Likewise.
2518 (emit_single_push_insn): Likewise. Allow the expansion to fail.
2519 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
2520 (expand_vec_shift_expr, expand_binop_directly): Likewise.
2521 (expand_twoval_unop, expand_twoval_binop): Likewise.
2522 (expand_unop_direct, emit_indirect_jump): Likewise.
2523 (emit_conditional_move, vector_compare_rtx): Likewise.
2524 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
2525 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
2526 (expand_sync_lock_test_and_set): Likewise.
2527 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
2528 (emit_unop_insn): Likewise.
2529 (expand_copysign_absneg): Change icode to an insn_code.
2530 (create_convert_operand_from_type): New function.
2531 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
2532 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
2533 (expand_insn, expand_jump_insn): Likewise.
2534 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
2535 than const_int_operand for operand 2.
2537 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2539 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
2542 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
2544 * emit-rtl.c (emit_pattern_before_noloc): New function.
2545 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
2546 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
2547 (emit_pattern_after_noloc): New function.
2548 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
2549 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
2551 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
2553 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
2554 (__ffsDI2): Likewise.
2556 2011-03-22 Richard Henderson <rth@redhat.com>
2558 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
2559 of !TARGET_ABI_OPEN_VMS.
2560 (alpha_trampoline_init, alpha_start_function): Likewise.
2561 (alpha_expand_epilogue, alpha_file_start): Likewise.
2562 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
2563 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
2564 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
2565 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
2566 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
2568 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2570 * config/s390/s390-opts.h: New.
2571 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
2572 s390_arch_flags, s390_warn_framesize, s390_stack_size,
2573 s390_stack_guard): Remove.
2574 (s390_handle_arch_option): Return void. Take enum
2575 s390_arch_option value instead of string and searching array.
2576 (s390_handle_option): Don't assert that global structures are in
2577 use. Access variables via opts pointer. Use error_at. Don't use
2578 sscanf for -mstack-guard= or -mstack-size=. Update call to
2579 s390_handle_arch_option.
2580 (s390_option_override): Update call to s390_handle_arch_option.
2581 (s390_emit_prologue): Use %d format for s390_stack_size in
2582 diagnostic. Use %wd for HOST_WIDE_INT.
2583 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
2584 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
2585 * config/s390/s390.opt (config/s390/s390-opts.h): New
2586 HeaderInclude entry.
2587 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
2588 s390_arch_flags, s390_warn_framesize): New Variable entries.
2589 (s390_arch_option): New Enum and EnumValue entries.
2590 (march=): Use Enum instead of Var.
2591 (mstack-guard=, mstack-size=): Use UInteger and Var.
2594 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2596 * config/score/score.c (score_handle_option): Don't assert that
2597 global structures are in use. Access target_flags via opts
2598 pointer. Use value of -march= option to determine target_flags
2600 * config/score/score.opt (march=): Use Enum.
2601 (score_arch): New Enum and EnumValue entries.
2603 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2605 * config/mep/mep.c (option_mtiny_specified): Remove.
2606 (mep_option_override): Move register handling for -mivc2 from
2607 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
2608 instead of option_mtiny_specified.
2609 (mep_handle_option): Access target_flags via opts pointer. Don't
2610 assert that global structures are in use. Defer part of -mivc2
2611 handling and move it to mep_option_override.
2612 * config/mep/mep.opt (IVC2): New Mask entry.
2613 (mivc2): Use Var and Defer instead of Mask.
2615 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2617 * config/v850/v850-opts.h: New.
2618 * config/v850/v850.c (small_memory): Replace with
2619 small_memory_physical_max array. Make that array static const.
2620 (v850_handle_memory_option): Take integer value of argument. Take
2621 gcc_options pointer, option text and location. Return void.
2622 Update for changes to small memory structures.
2623 (v850_handle_option): Access target_flags via opts pointer. Don't
2624 assert that global structures are in use. Update calls to
2625 v850_handle_memory_option.
2626 (v850_encode_data_area): Update references to small memory settings.
2627 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
2628 (enum small_memory_type): Move to v850-opts.h.
2629 * config/v850/v850.opt (config/v850/v850-opts.h): New
2630 HeaderInclude entry.
2631 (small_memory_max): New Variable entry.
2632 (msda): Replace by pair of options msda= and msda-. Use UInteger.
2633 (mtda, mzda): Likewise.
2635 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2637 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
2638 pointer. Don't assert that global structures are in use.
2640 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2642 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
2643 via opts pointer. Don't assert that global structures are in use.
2645 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2647 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
2648 (munix=93): Use Var.
2649 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
2650 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
2651 * config/pa/pa-opts.h: New.
2652 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
2653 (pa_handle_option): Don't assert that global structures are in
2654 use. Access target_flags via opts pointer. Don't handle
2655 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
2657 (pa_option_override): Handle deferred OPT_mfixed_range_.
2659 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2661 * config/mn10300/mn10300-opts.h: New.
2662 * config/mn10300/mn10300.c (mn10300_processor,
2663 mn10300_tune_string): Remove.
2664 (mn10300_handle_option): Don't assert that global structures are
2665 in use. Access mn10300_processor via opts pointer. Don't handle
2667 * config/mn10300/mn10300.h (enum processor_type): Move to
2669 (mn10300_processor): Remove.
2670 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
2671 HeaderInclude entry.
2672 (mn10300_processor): New Variable entry.
2675 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2677 * config/microblaze/microblaze.c: Don't include opts.h.
2678 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
2679 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
2680 (mno-clearbss): Use Var and Warn.
2682 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2684 * config/m32r/m32r-opts.h: New.
2685 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
2686 (m32r_handle_option): Don't assert that global structures are in
2687 use. Access target_flags and m32r_cache_flush_func via opts
2688 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
2689 OPT_mno_flush_trap here.
2690 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
2691 include of m32r-opts.h.
2692 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
2693 HeaderInclude entry.
2694 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
2695 (mmodel=): Use Enum and Var.
2696 (m32r_model): New Enum and EnumValue entries.
2697 (mno-flush-trap): Use Var.
2698 (msdata=): Use Enum and Var.
2699 (m32r_sdata): New Enum and EnumValue entries.
2701 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2703 * config/m32c/m32c.c: Don't include opts.h.
2704 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
2705 m32c_handle_option): Remove.
2706 (m32c_option_override): Check global_options_set.x_target_memregs
2707 instead of target_memregs_set.
2708 * config/m32c/m32c.h (target_memregs): Remove.
2709 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
2712 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2714 * config/iq2000/iq2000-opts.h: New.
2715 * config/iq2000/iq2000.c: Don't include opts.h.
2716 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
2717 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
2718 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
2719 HeaderInclude entry.
2720 (iq2000_tune): New Variable entry.
2721 (march=): Add comment. Use Enum.
2722 (iq2000_arch): New Enum and EnumValue entries.
2723 (mcpu=): Use Enum and Var.
2724 (iq2000_tune): New Enum and EnumValue entries.
2726 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2728 * config/ia64/ia64-opts.h: New.
2729 * config/ia64/ia64.c (ia64_tune): Remove.
2730 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
2732 (ia64_option_override): Handle deferred OPT_mfixed_range_.
2733 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
2734 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
2735 HeaderInclude entry.
2736 (ia64_tune): New Variable entry.
2737 (mfixed-range=): Use Defer and Var.
2738 (mtune=): Use Enum and Var.
2739 (ia64_tune): New Enum and EnumValue entries.
2741 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2743 * config/frv/frv-opts.h: New.
2744 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
2746 (frv_cpu_type): Remove.
2747 * config/frv/frv.c: Don't include opts.h.
2748 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
2749 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
2750 (frv_cpu_type): New Variable entry.
2751 (frv_cpu): New Enum and EnumValue entries.
2753 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2755 * config/cris/cris.c (cris_handle_option): Access target_flags via
2756 opts pointer. Don't assert that global structures are in use.
2757 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
2758 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
2760 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2762 * config/bfin/bfin-opts.h: New.
2763 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
2764 bfin_si_revision, bfin_workarounds): Remove.
2765 (bfin_cpus): Make static const.
2766 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
2767 not bfin_lib_id_given.
2768 (bfin_handle_option): Don't set bfin_lib_id_given. Access
2769 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
2770 pointer. Use error_at. Don't assert that global structures are in use.
2771 * config/bfin/bfin.h: Include bfin-opts.h.
2772 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
2773 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
2774 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
2775 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
2778 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2780 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
2781 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
2782 or -msoft-float here.
2783 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
2784 -msoft-float and -mhard-float.
2785 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
2786 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
2788 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
2790 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
2791 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
2793 (LIBGCC_SPEC): Don't handle -msoft-float.
2794 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
2796 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
2798 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
2799 -mfloat-abi=*, not -msoft-float and -mhard-float.
2800 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
2802 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
2803 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
2804 mhard-float and msoft-float.
2805 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
2806 mfloat-abi=soft in comments, not mhard-float and msoft-float.
2807 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
2808 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
2810 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
2811 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
2813 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
2815 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
2818 2011-03-22 Richard Henderson <rth@redhat.com>
2820 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
2821 TARGET_ABI_WINDOWS_NT.
2822 (alpha_output_function_end_prologue): Likewise.
2823 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
2824 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
2825 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
2826 (trap, *movsi_nt_vms): Likewise.
2827 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
2828 (*tablejump_osf_nt_internal): Remove.
2829 * config/alpha/predicates.md (input_operand): Only test Pmode.
2831 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2833 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
2834 via opts pointer. Use error_at. Don't assert that global
2835 structures are in use.
2837 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2839 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
2840 (ix86_handle_option): Access ix86_isa_flags and
2841 ix86_isa_flags_explicit via opts pointer. Don't assert that
2842 global structures are in use.
2843 (ix86_function_specific_save, ix86_function_specific_restore):
2844 Update ix86_isa_flags_explicit field name.
2845 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
2846 (ix86_isa_flags_explicit): Rename TargetSave entry to
2847 x_ix86_isa_flags_explicit.
2849 2011-03-22 Richard Henderson <rth@redhat.com>
2851 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
2852 (alpha_option_override, direct_return): Likewise.
2853 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
2854 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
2855 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
2856 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
2857 (alpha_expand_epilogue, alpha_end_function): Likewise.
2858 (alpha_init_libfuncs): Likewise.
2859 (struct machine_function): Remove unicosmk members.
2860 (print_operand) ['t']: Remove.
2861 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
2862 unicosmk_output_module_name, unicosmk_output_common,
2863 current_section_align, unicosmk_output_text_section_asm_op,
2864 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
2865 unicosmk_section_type_flags, unicosmk_unique_section,
2866 unicosmk_asm_named_section, unicosmk_insert_attributes,
2867 unicosmk_output_align, unicosmk_defer_case_vector,
2868 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
2869 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
2870 unicosmk_output_ssib, unicosmk_add_call_info_word,
2871 unicosmk_extern_head, unicosmk_output_default_externs,
2872 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
2873 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
2874 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
2875 * config/alpha/alpha-protos.h: Update.
2876 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
2877 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
2878 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
2879 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
2880 (*mulsi_se, mulvsi3): Likewise.
2881 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
2882 (*divmodsi_internal, call, call_value, realign): Likewise.
2883 (moddi3, umoddi3): Likewise; remove duplicate expander.
2884 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
2885 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
2886 (*movdi_nofix): Remove r/U alternative.
2887 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
2888 * config/alpha/constraints.md ("U"): Remove.
2889 * config/alpha/predicates.md (call_operand"): Don't test
2890 TARGET_ABI_UNICOSMK.
2892 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2894 * target.def (handle_option): Take gcc_options and
2895 cl_decoded_option pointers and location_t.
2896 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
2897 * doc/tm.texi: Regenerate.
2898 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
2899 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
2900 * lto-opts.c (lto_reissue_options): Generate option structure for
2901 targetm.handle_option call.
2902 * opts.c (target_handle_option): Update call to
2903 targetm.handle_option. Remove assertions about values now passed
2905 * targhooks.c (default_target_handle_option): New.
2906 * targhooks.h (default_target_handle_option): Declare.
2907 * config/alpha/alpha.c: Include opts.h.
2908 (alpha_handle_option): Update to new hook interface.
2909 * config/arm/arm.c: Include opts.h.
2910 (arm_handle_option): Update to new hook interface.
2911 * config/arm/t-arm (arm.o): Update dependencies.
2912 * config/bfin/bfin.c: Include opts.h.
2913 (bfin_handle_option): Update to new hook interface.
2914 * config/cris/cris.c: Include opts.h.
2915 (cris_handle_option): Update to new hook interface.
2916 * config/frv/frv.c: Include opts.h.
2917 (frv_handle_option): Update to new hook interface.
2918 * config/i386/i386.c: Include opts.h.
2919 (ix86_handle_option): Update to new hook interface.
2920 (ix86_valid_target_attribute_inner_p): Generate option structure
2921 for call to ix86_handle_option.
2922 * config/i386/t-i386 (i386.o): Update dependencies.
2923 * config/ia64/ia64.c: Include opts.h.
2924 (ia64_handle_option): Update to new hook interface.
2925 * config/ia64/t-ia64 (ia64.o): Update dependencies.
2926 * config/iq2000/iq2000.c: Include opts.h.
2927 (iq2000_handle_option): Update to new hook interface.
2928 * config/m32c/m32c.c: Include opts.h.
2929 (m32c_handle_option): Update to new hook interface.
2930 * config/m32r/m32r.c: Include opts.h.
2931 (m32r_handle_option): Update to new hook interface.
2932 * config/m68k/m68k.c: Include opts.h.
2933 (m68k_handle_option): Update to new hook interface.
2934 * config/mep/mep.c: Include opts.h.
2935 (mep_handle_option): Update to new hook interface.
2936 * config/microblaze/microblaze.c: Include opts.h.
2937 (microblaze_handle_option): Update to new hook interface.
2938 * config/mips/mips.c: Include opts.h.
2939 (mips_handle_option): Update to new hook interface.
2940 * config/mn10300/mn10300.c: Include opts.h.
2941 (mn10300_handle_option): Update to new hook interface.
2942 * config/pa/pa.c: Include opts.h.
2943 (pa_handle_option): Update to new hook interface.
2944 * config/pdp11/pdp11.c: Include opts.h.
2945 (pdp11_handle_option): Update to new hook interface.
2946 * config/rs6000/rs6000.c: Include opts.h.
2947 (rs6000_handle_option): Update to new hook interface.
2948 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
2949 * config/rx/rx.c: Include opts.h.
2950 (rx_handle_option): Update to new hook interface.
2951 * config/s390/s390.c: Include opts.h.
2952 (s390_handle_option): Update to new hook interface.
2953 * config/score/score.c: Include opts.h.
2954 (score_handle_option): Update to new hook interface.
2955 * config/sh/sh.c: Include opts.h.
2956 (sh_handle_option): Update to new hook interface.
2957 * config/sparc/sparc.c: Include opts.h.
2958 (sparc_handle_option): Update to new hook interface.
2959 * config/v850/v850.c: Include opts.h.
2960 (v850_handle_option): Update to new hook interface.
2962 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2964 * gcc.c (driver_unknown_option_callback): Only permit and save
2965 unknown -Wno- options.
2966 (driver_wrong_lang_callback): Save options directly instead of via
2967 driver_unknown_option_callback.
2969 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2971 * combine.c (simplify_set): Try harder to find the best CC mode when
2972 simplifying a nested COMPARE on the RHS.
2974 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2976 * config/alpha/gnu.h: Remove.
2977 * config/arc: Remove directory.
2978 * config/arm/netbsd.h: Remove.
2979 * config/arm/t-pe: Remove.
2980 * config/crx: Remove directory.
2981 * config/i386/netbsd.h: Remove.
2982 * config/m68hc11: Remove directory.
2983 * config/m68k/uclinux-oldabi.h: Remove.
2984 * config/mcore/mcore-pe.h: Remove.
2985 * config/mcore/t-mcore-pe: Remove.
2986 * config/netbsd-aout.h: Remove.
2987 * config/rs6000/gnu.h: Remove.
2988 * config/sh/sh-symbian.h: Remove.
2989 * config/sh/symbian-base.c: Remove.
2990 * config/sh/symbian-c.c: Remove.
2991 * config/sh/symbian-cxx.c: Remove.
2992 * config/sh/symbian-post.h: Remove.
2993 * config/sh/symbian-pre.h: Remove.
2994 * config/sh/t-symbian: Remove.
2995 * config/svr3.h: Remove.
2996 * config/vax/netbsd.h: Remove.
2997 * config.build: Don't handle i[34567]86-*-pe.
2998 * config.gcc: Remove handling of deprecations for most deprecated
3000 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
3001 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
3002 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
3003 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
3004 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
3005 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
3007 * config.host: Don't handle i[34567]86-*-pe.
3008 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
3009 (ASM_SPEC32): Don't handle -mcall-gnu.
3010 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
3012 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
3013 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
3014 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
3015 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
3016 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
3017 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
3018 conditional on SYMBIAN.
3019 * configure.ac: Don't handle powerpc*-*-gnu*.
3020 * configure: Regenerate.
3021 * doc/extend.texi (interrupt attribute): Don't mention CRX.
3022 * doc/install-old.texi (m6811, m6812): Don't mention.
3023 * doc/install.texi (arc-*-elf*): Don't document multilib option.
3024 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
3025 (m68k-uclinuxoldabi): Don't mention.
3026 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
3028 (-mcall-gnu): Remove.
3029 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
3030 families): Remove constraint documentation.
3032 2011-03-22 Marius Strobl <marius@FreeBSD.org>
3034 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
3035 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
3036 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
3038 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
3040 * config/avr/avr-protos.h (expand_epilogue): Change prototype
3041 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
3042 * config/avr/avr.c (init_cumulative_args)
3043 (avr_function_arg_advance): Use it.
3044 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
3046 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
3047 (avr_function_ok_for_sibcall): ...this new function.
3048 (avr_lookup_function_attribute1): New static Function.
3049 (avr_naked_function_p, interrupt_function_p)
3050 (signal_function_p, avr_OS_task_function_p)
3051 (avr_OS_main_function_p): Use it.
3052 * config/avr/avr.md ("sibcall", "sibcall_value")
3053 ("sibcall_epilogue"): New expander.
3054 ("*call_insn", "*call_value_insn"): New insn.
3055 ("call_insn", "call_value_insn"): Remove
3056 ("call", "call_value", "epilogue"): Change expander to handle
3059 2011-03-21 Nick Clifton <nickc@redhat.com>
3061 * doc/invoke.texi (Overall Options): Move closing brace to end of
3063 (Optimization Options): Add missing @gol.
3064 (Directory Options): Likewise.
3065 (i386 and x86-64 Options): Likewise.
3066 (RS6000 and PowerPC Options): Likewise.
3067 (i386 and x86-64 Windows Options): Likewise.
3068 (V850 Options): Add text missing from descriptions.
3070 2011-03-22 Richard Henderson <rth@redhat.com>
3072 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
3073 (avr_incoming_return_addr_rtx): New.
3074 (emit_push_byte): New.
3075 (expand_prologue): Use it. Remove incorrect dwarf annotation for
3076 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
3077 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
3078 (emit_pop_byte): New.
3079 (expand_epilogue): Use it. Pop frame pointer by bytes.
3080 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
3081 (INCOMING_RETURN_ADDR_RTX): New.
3082 (INCOMING_FRAME_SP_OFFSET): New.
3083 (ARG_POINTER_CFA_OFFSET): New.
3084 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
3085 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
3088 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
3090 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
3092 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
3093 (FUNCTION_ARG_ADVANCE): Likewise.
3094 * tm.texi.in: Change references to them to hook references.
3095 * tm.texi: Regenerate.
3096 * targhooks.c (default_function_arg): Eliminate check for target
3098 (default_function_incoming_arg): Likewise.
3099 (default_function_arg_advance): Likewise.
3100 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
3101 (function_arg_advance): Likewise.
3102 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
3104 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
3106 * tree.c (build_call_1): New function.
3107 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
3109 2011-03-22 Richard Guenther <rguenther@suse.de>
3111 PR tree-optimization/48228
3112 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
3113 for single-arg PHIs.
3115 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
3117 PR rtl-optimization/48143
3118 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
3119 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
3120 sse2_cvtps2pd): Likewise.
3122 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3124 * recog.c (canonicalize_change_group): Use validate_unshare_change.
3126 2011-03-22 Richard Guenther <rguenther@suse.de>
3128 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
3129 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
3130 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
3131 and REALIGN_LOAD_EXPR.
3132 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
3133 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
3134 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
3135 DOT_PROD_EXPR case ...
3136 (expand_expr_real_2): ... here.
3137 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
3138 and REALIGN_LOAD_EXPR.
3139 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
3140 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
3141 (vect_create_epilog_for_reduction): Likewise.
3142 (vectorizable_reduction): Likewise.
3143 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
3144 * tree-vect-stmts.c (vectorizable_load): Likewise.
3146 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3148 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
3150 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3152 * config/s390/s390.c (s390_delegitimize_address): Fix offset
3153 handling for PLTOFF/GOTOFF.
3155 2011-03-22 Nick Clifton <nickc@redhat.com>
3157 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
3158 trailing backslash from the end of the macro definition.
3160 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3162 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
3165 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
3167 * expr.h (prepare_operand): Move to...
3168 * optabs.h (prepare_operand): ...here and change the insn code
3169 parameter from "int" to "enum insn_code".
3170 (insn_operand_matches): Declare.
3171 * expr.c (init_expr_target): Use insn_operand_matches.
3172 (compress_float_constant): Likewise.
3173 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
3174 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
3175 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
3176 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
3178 (gen_cond_trap): Likewise.
3179 (prepare_operand): Likewise. Change icode to an insn_code.
3180 (insn_operand_matches): New function.
3181 * reload.c (find_reloads_address_1): Use insn_operand_matches.
3182 * reload1.c (gen_reload): Likewise.
3183 * targhooks.c (default_secondary_reload): Likewise.
3185 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
3187 * config/alpha/alpha.md (unspec): New define_c_enum.
3190 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
3193 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
3194 between a call and its CALL_ARG_LOCATION note.
3196 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
3198 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
3200 2011-03-21 Jakub Jelinek <jakub@redhat.com>
3204 * c-common.c (shorten_compare): If primopN is first sign-extended
3205 to opN and then zero-extended to result type, set primopN to opN.
3207 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
3209 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
3210 for barrier handlers.
3212 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3214 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
3215 UNSPEC constants to be in the unspec enumeration, and redefine
3216 all UNSPECV constants to be in the unspecv enumeration, so that
3217 dumps print which unspec/unspec_volatile this is.
3218 * config/rs6000/vector.md (UNSPEC_*): Ditto.
3219 * config/rs6000/paired.md (UNSPEC_*): Ditto.
3220 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
3221 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
3222 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
3224 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
3225 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
3226 UNSPECV_LWSYNC, since these are used as unspec_volatile.
3227 * config/rs6000/sync.md (isync, lwsync): Ditto.
3229 2011-03-21 Richard Guenther <rguenther@suse.de>
3231 * params.def (lto-min-partition): Fix typo.
3233 2011-03-21 Richard Guenther <rguenther@suse.de>
3236 * c-decl.c (grokdeclarator): Drop to the main variant only
3237 for array types. Drop flag_gen_aux_info check.
3239 2011-03-21 Richard Guenther <rguenther@suse.de>
3241 PR translation/47911
3242 * params.def (lto-partitions): Fix typo.
3243 (lto-min-partition): Fix wording.
3245 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
3247 * config/rs6000/t-freebsd: Remove duplication from file.
3249 2011-03-21 Richard Guenther <rguenther@suse.de>
3252 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
3254 2011-03-21 Richard Guenther <rguenther@suse.de>
3257 * params.def (lto-partitions): Require at least 1 partition.
3259 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3261 * gthr-solaris.h: Remove.
3262 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
3263 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
3264 (LIB_SPEC): Likewise.
3265 * config/sol2.opt (threads): Remove.
3266 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
3267 (sparc*-*-solaris2*): Likewise.
3268 * configure.ac (enable_threads): Enable solaris support.
3269 * configure: Regenerate.
3270 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
3271 * doc/install.texi (Configuration, --enable-threads=lib): Remove
3274 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3276 * config.gcc: Obsolete *-*-solaris2.8*.
3277 * doc/install.texi (Specific, *-*-solaris2*): Document it.
3279 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3282 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
3283 reference. Solaris 8 perl works.
3285 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3288 * doc/install.texi (Prerequisites): Move jar etc. up.
3289 Explain support library version requirements.
3291 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3294 * doc/install.texi (Prerequisites): Move Perl to build
3295 requirements. Always necessary on Solaris 2 with Sun ld.
3297 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3299 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
3301 (Specific, i?86-*-solaris2.[89]): Likewise.
3302 (Specific, i?86-*-solaris2.10): Likewise.
3303 (Specific, mips-sgi-irix6): Likewise.
3304 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
3305 Update for binutils 2.21.
3307 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3309 * configure.ac (gcc_cv_lto_plugin): Fix typo.
3310 Allow -fuse-linker-plugin for non-default plugin linker.
3311 * configure: Regenerate.
3313 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
3316 * gengtype.c (files_rules): Added rule for cp/parser.h.
3318 2011-03-21 Jakub Jelinek <jakub@redhat.com>
3321 * config/s390/s390.c (s390_delegitimize_address): Don't call
3322 lowpart_subreg if orig_x has BLKmode.
3324 2011-03-21 Kai Tietz <ktietz@redhat.com>
3327 * doc/plugins.texi: Adjust documentation for plugin register_callback.
3328 * tree.h (attribute_spec): Add new member affects_type_identity.
3329 * attribs.c (empty_attribute_table): Adjust attribute_spec
3331 * config/alpha/alpha.c: Likewise.
3332 * config/arc/arc.c: Likewise.
3333 * config/arm/arm.c: Likewise.
3334 * config/avr/avr.c: Likewise.
3335 * config/bfin/bfin.c: Likewise.
3336 * config/crx/crx.c: Likewise.
3337 * config/darwin.h: Likewise.
3338 * config/h8300/h8300.c: Likewise.
3339 * config/i386/cygming.h: Likewise.
3340 * config/i386/i386.c: Likewise.
3341 * config/ia64/ia64.c: Likewise.
3342 * config/m32c/m32c.c: Likewise.
3343 * config/m32r/m32r.c: Likewise.
3344 * config/m68hc11/m68hc11.c: Likewise.
3345 * config/m68k/m68k.c: Likewise.
3346 * config/mcore/mcore.c: Likewise.
3347 * config/mep/mep.c: Likewise.
3348 * config/microblaze/microblaze.c: Likewise.
3349 * config/mips/mips.c: Likewise.
3350 * config/rs6000/rs6000.c: Likewise.
3351 * config/rx/rx.c: Likewise.
3352 * config/sh/sh.c: Likewise.
3353 * config/sol2.h: Likewise.
3354 * config/sparc/sparc.c: Likewise.
3355 * config/spu/spu.c: Likewise.
3356 * config/stormy16/stormy16.c: Likewise.
3357 * config/v850/v850.c: Likewise.
3359 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
3361 * simplify-rtx.c (simplify_binary_operation_1): Handle
3362 (xor (and A B) C) case when B and C are both constants.
3364 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
3366 * tree-dfa.c (add_referenced_var): Fix typo in comment.
3368 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
3371 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
3373 2011-03-20 Jakub Jelinek <jakub@redhat.com>
3375 PR rtl-optimization/48156
3376 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
3377 assume df and df_lr are not NULL.
3379 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3382 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
3383 between a call and its CALL_ARG_LOCATION note.
3385 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
3388 * config/sh/sh.c (find_barrier): Don't emit a constant pool
3389 between a call and its corresponding CALL_ARG_LOCATION note.
3391 2011-03-19 Anatoly Sokolov <aesok@post.ru>
3393 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
3394 instead of loop. Use HARD_REGISTER_NUM_P predicate.
3395 * haifa-sched.c (setup_ref_regs): Ditto.
3396 * caller-save.c (add_used_regs_1): Ditto.
3397 * dse.c (look_for_hardregs): Ditto.
3398 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
3399 * sched-rgn.c (check_live_1): Ditto.
3401 2011-03-18 Joseph Myers <joseph@codesourcery.com>
3403 * c-decl.c (diagnose_mismatched_decls): Give an error for
3404 redefining a typedef with variably modified type.
3406 2011-03-18 Joseph Myers <joseph@codesourcery.com>
3408 * c-decl.c (grokfield): Don't allow typedefs for structures or
3409 unions with no tag by default.
3410 * doc/extend.texi (Unnamed Fields): Update.
3412 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
3414 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
3415 Rewrite using indirect functions.
3416 (lwp_slwpcb): Ditto.
3417 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
3418 (avx_vinsertf128<mode>): Ditto.
3420 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3422 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
3425 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3427 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
3428 splitting between a call and its corresponding CALL_ARG_LOCATION note.
3430 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
3432 PR rtl-optimization/48170
3433 * gcse.c (hoist_code): Remove bogus asserts.
3435 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
3437 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
3438 computation for prologue/epilogue.
3440 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3442 * Makefile.in (check-consistency): Remove.
3444 2011-03-18 Jakub Jelinek <jakub@redhat.com>
3447 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
3448 arange_table_in_use is 0, but either text_section_used or
3449 cold_text_section_used is true. Don't call it if
3450 !info_section_emitted.
3452 2011-03-18 Anatoly Sokolov <aesok@post.ru>
3454 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
3455 FUNCTION_VALUE_REGNO_P): Remove.
3456 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
3458 * config/avr/avr.c (avr_ret_register): Make static inline.
3459 (avr_function_value_regno_p): New function.
3460 (avr_libcall_value): Make static. Add 'func' argument.
3461 (avr_function_value): Make static. Rename 'func' argument to
3462 'fn_decl_or_type', forward it to avr_libcall_value. Call
3463 avr_ret_register function instead of RET_REGISTER macro.
3464 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
3466 2011-03-18 Jason Merrill <jason@redhat.com>
3469 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
3471 2011-03-18 Richard Guenther <rguenther@suse.de>
3473 * doc/install.texi (--enable-gold): Remove.
3474 (--with-plugin-ld): Document.
3475 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
3477 2011-03-18 Andrew Pinski <pinskia@gmail.com>
3480 * expr.c (optimize_bitfield_assignment_op): Revamp to work
3481 again after expansion changes.
3483 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
3485 * combine.c (try_combine): Do simplification only call of
3486 subst() on i2 even when i1 is present. Update comments.
3488 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
3490 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
3491 and UNSPEC_PCREL_SYMOFF.
3493 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3495 * config/s390/s390.md: Use define_c_enum for the unspec constant
3498 2011-03-18 Richard Henderson <rth@redhat.com>
3499 Jakub Jelinek <jakub@redhat.com>
3502 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
3503 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
3505 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
3508 * combine.c (cant_combine_insn_p): Don't check zero/sign
3509 extended hard registers.
3511 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
3514 * combine.c (cant_combine_insn_p): Check zero/sign extended
3517 2011-03-17 Anatoly Sokolov <aesok@post.ru>
3519 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
3520 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
3521 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
3522 Change return type to bool.
3523 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
3525 2011-03-17 Jakub Jelinek <jakub@redhat.com>
3528 * var-tracking.c (prepare_call_arguments): If CALL target
3529 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
3530 pc instead of looking it up using cselib_lookup and use
3531 Pmode for it if x has VOIDmode.
3532 * dwarf2out.c (gen_subprogram_die): If also both first and
3533 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
3536 * function.c (assign_parms): For data.passed_pointer parms
3537 use MEM of data.entry_parm instead of data.entry_parm itself
3538 as DECL_INCOMING_RTL.
3539 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
3540 also when passed and declared mode is the same, DECL_RTL
3541 is a MEM with pseudo as address and DECL_INCOMING_RTL is
3544 2011-03-16 Jeff Law <law@redhat.com>
3546 PR rtl-optimization/37273
3547 * ira-costs.c (scan_one_insn): Detect constants living in memory and
3548 handle them like argument loads from stack slots. Do not double
3549 count memory for memory constants and argument loads from stack slots.
3551 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
3554 * var-tracking.c (prepare_call_arguments): Check SUBREG.
3556 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
3559 * config/i386/i386.opt: Add Save to -mavx and -mfma.
3561 2011-03-17 Jakub Jelinek <jakub@redhat.com>
3564 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
3566 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
3567 Clear call_arg_locations and call_arg_loc_last always.
3570 * var-tracking.c (prepare_call_arguments): If argument needs to be
3571 passed by reference, adjust argtype and mode.
3573 2011-03-17 Richard Guenther <rguenther@suse.de>
3576 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
3577 a value make sure to fold the statement.
3579 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
3582 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
3583 return condition with !cfun->calls_alloca.
3585 2011-03-17 Richard Guenther <rguenther@suse.de>
3588 * lto-cgraph.c (input_overwrite_node): Clear the abstract
3589 origin for decls in other ltrans units.
3590 (input_varpool_node): Likewise.
3592 2011-03-17 Richard Guenther <rguenther@suse.de>
3595 * tree-object-size.c (compute_object_offset): Properly return
3596 the offset operand of MEM_REFs as sizetype.
3598 2011-03-17 Jakub Jelinek <jakub@redhat.com>
3600 PR rtl-optimization/48141
3601 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
3602 * dse.c: Include params.h.
3603 (active_local_stores_len): New variable.
3604 (add_wild_read, dse_step1): Clear it when setting active_local_stores
3606 (record_store, check_mem_read_rtx): Decrease it when removing
3608 (scan_insn): Likewise. Increase it when adding to chain, if it
3609 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
3610 set active_local_stores to NULL before the addition.
3611 * Makefile.in (dse.o): Depend on $(PARAMS_H).
3613 PR rtl-optimization/48141
3614 * dse.c (record_store): If no positions are needed in an insn
3615 that cannot be deleted, at least unchain it from active_local_stores.
3617 2011-03-16 Dodji Seketeli <dodji@redhat.com>
3620 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
3621 (lookup_type_die_strip_naming_typedef): ... here.
3622 (get_context_die): Use it.
3623 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
3624 the anonymous struct named by the naming typedef.
3626 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
3629 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
3630 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
3632 2011-03-16 Jeff Law <law@redhat.com>
3634 * tree-vrp.c (identify_jump_threads): Slightly simplify type
3635 check for operands of conditional. Allow type to be a pointer.
3637 2011-03-16 Richard Guenther <rguenther@suse.de>
3639 PR tree-optimization/48149
3640 * fold-const.c (fold_binary_loc): Fold
3641 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
3643 2011-03-16 Richard Guenther <rguenther@suse.de>
3645 PR tree-optimization/26134
3646 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
3647 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
3648 (non_rewritable_mem_ref_base): Handle complex type component
3649 accesses, constrain offsets for vector and complex extracts
3652 2011-03-16 Richard Guenther <rguenther@suse.de>
3654 PR tree-optimization/48146
3655 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
3656 operands avoiding the need for renaming.
3658 2011-03-16 Richard Guenther <rguenther@suse.de>
3660 * gimple-fold.c (maybe_fold_reference): Open-code relevant
3661 constant folding. Move MEM_REF canonicalization first.
3662 Rely on fold_const_aggregate_ref for initializer folding.
3663 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
3665 2011-03-16 Jakub Jelinek <jakub@redhat.com>
3668 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
3669 arg0/arg1 or their arguments are always fold converted to matching
3672 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
3675 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3678 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
3679 Handle in-tree gold.
3680 (ld_vers): Extract binutils version for gold.
3681 (gcc_cv_ld_hidden): Handle gold here.
3682 (gcc_cv_lto_plugin): Determine level of linker plugin support.
3683 * configure: Regenerate.
3684 * config.in: Regenerate.
3685 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
3686 -fuse-linker-plugin otherwise.
3687 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
3688 (LINK_COMMAND_SPEC): Use it.
3689 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
3691 2011-03-16 Jakub Jelinek <jakub@redhat.com>
3693 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
3694 * calls.c: Remove debug.h include.
3695 (emit_call_1): Don't call virtual_call_token debug hook.
3696 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
3697 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
3698 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
3699 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
3700 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
3701 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
3702 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
3703 dwarf2out_virtual_call): Remove.
3704 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
3705 copy_call_info and virtual_call hooks.
3706 (dwarf2out_init): Don't initialize vcall_insn_table,
3707 debug_dcall_section and debug_vcall_section.
3708 (prune_unused_types): Don't mark nodes from dcall_table.
3709 (dwarf2out_finish): Don't output dcall or vcall tables.
3710 * final.c (final_scan_insn): Don't call direct_call or
3711 virtual_call debug hooks.
3712 * debug.h (struct gcc_debug_hooks): Remove direct_call,
3713 virtual_call_token, copy_call_info and virtual_call hooks.
3714 (debug_nothing_uid): Remove prototype.
3715 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
3716 copy_call_info and virtual_call hooks.
3717 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3718 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
3719 * debug.c (do_nothing_debug_hooks): Likewise.
3720 (debug_nothing_uid): Remove.
3721 * doc/invoke.texi (-fenable-icf-debug): Remove.
3722 * common.opt (-fenable-icf-debug): Likewise.
3724 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
3725 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
3726 call's MEM. Handle functions returning aggregate through a hidden
3727 first pointer. For virtual calls add clobbered pc to call arguments
3729 * dwarf2out.c (gen_subprogram_die): Emit
3730 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
3734 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
3735 * rtl.h (ENTRY_VALUE_EXP): Define.
3736 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
3737 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
3738 * print-rtl.c (print_rtx): Likewise.
3739 * gengtype.c (adjust_field_rtx_def): Likewise.
3740 * var-tracking.c (vt_add_function_parameter): Adjust
3741 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
3742 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
3743 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
3744 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
3745 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
3747 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
3748 Call var_location debug hook even on CALL_INSNs.
3749 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
3750 * rtl.def (ENTRY_VALUE): New.
3751 * dwarf2out.c: Include cfglayout.h.
3752 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3753 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
3754 (struct call_arg_loc_node): New type.
3755 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
3756 tail_call_site_count): New variables.
3757 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
3758 DW_TAG_GNU_call_site_parameter.
3759 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
3760 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
3761 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
3762 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
3763 and DW_AT_GNU_all_source_call_sites.
3764 (mem_loc_descriptor): Handle ENTRY_VALUE.
3765 (add_src_coords_attributes): Don't add enything if
3766 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
3767 (dwarf2out_abstract_function): Save and clear call_arg_location,
3768 call_site_count and tail_call_site_count around dwarf2out_decl call.
3769 (gen_call_site_die): New function.
3770 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
3771 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
3772 (dwarf2out_function_decl): Clear call_arg_locations,
3773 call_arg_loc_last, set call_site_count and tail_call_site_count
3774 to -1 and free block_map.
3775 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
3776 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
3777 followed by any real instructions.
3778 (dwarf2out_begin_function): Set call_site_count and
3779 tail_call_site_count to 0.
3780 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
3781 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
3782 attempt to force a DIE for it and worst case remove the attribute.
3783 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
3784 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
3786 * var-tracking.c: Include tm_p.h.
3787 (vt_stack_adjustments): For calls call note_register_arguments.
3788 (argument_reg_set): New variable.
3789 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
3790 ensure the VALUE is resolved.
3791 (call_arguments): New variable.
3792 (prepare_call_arguments): New function.
3793 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
3794 (struct expand_loc_callback_data): Add ignore_cur_loc field.
3795 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
3796 always use the best expression.
3797 (vt_expand_loc): Add ignore_cur_loc argument.
3798 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
3799 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
3800 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
3802 (vt_add_function_parameter): Use cselib_lookup_from_insn.
3803 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
3804 argument. Don't call cselib_preserve_only_values and
3806 (note_register_arguments): New function.
3807 (vt_initialize): Compute argument_reg_set. Call
3808 vt_add_function_parameters before processing basic blocks instead of
3809 afterwards. For calls call prepare_call_arguments before calling
3810 cselib_process_insn.
3811 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
3812 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
3813 (var-tracking.o): Depend on $(TM_P_H).
3814 * cfglayout.h (insn_scope): New prototype.
3815 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
3816 * cfglayout.c (insn_scope): No longer static.
3817 * insn-notes.def (CALL_ARG_LOCATION): New.
3818 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
3819 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
3820 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
3821 nothing for DECL_EXTERNAL BLOCK_VARS.
3823 2011-03-16 Alan Modra <amodra@gmail.com>
3826 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
3827 create invalid offset address for vsx splat insn.
3828 * config/rs6000/predicates.md (splat_input_operand): New.
3829 * config/rs6000/vsx.md (vsx_splat_*): Use it.
3831 2011-03-15 Xinliang David Li <davidxl@google.com>
3834 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
3835 (normalize_preds): New function.
3836 (is_use_properly_guarded): Normalize def predicates.
3838 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3841 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
3842 in the output template.
3844 2011-03-15 Richard Guenther <rguenther@suse.de>
3847 * tree-pretty-print.c (dump_function_declaration): Properly
3848 dump unprototyped and varargs function types.
3850 2011-03-15 Richard Guenther <rguenther@suse.de>
3852 PR tree-optimization/13954
3853 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
3856 2011-03-15 Richard Guenther <rguenther@suse.de>
3858 PR tree-optimization/48037
3859 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
3860 selects into BIT_FIELD_REFs.
3861 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
3864 2011-03-15 Jakub Jelinek <jakub@redhat.com>
3866 PR tree-optimization/48129
3867 * builtins.c (fold_builtin_snprintf): Convert to type of
3868 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
3869 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
3871 2011-03-15 Richard Guenther <rguenther@suse.de>
3873 PR tree-optimization/41490
3874 * tree-ssa-dce.c (propagate_necessity): Handle returns without
3875 value but with VUSE.
3876 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
3878 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
3879 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
3880 * tree-tailcall.c (find_tail_calls): Ignore returns.
3882 2011-03-15 Richard Guenther <rguenther@suse.de>
3885 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
3886 or variable-indexed array accesses when in gimple form.
3888 2011-03-15 Richard Guenther <rguenther@suse.de>
3890 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
3892 2011-03-15 Alan Modra <amodra@gmail.com>
3895 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
3896 presume symbol_refs without a symbol_ref_decl are suitably
3897 aligned, nor other trees we may see here. Handle anchor symbols.
3898 (legitimate_constant_pool_address_p): Comment. Add mode param.
3899 Check cmodel=medium addresses. Adjust all calls.
3900 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
3901 creating cmodel=medium optimized access to locals.
3902 * config/rs6000/constraints.md (R): Pass QImode to
3903 legitimate_constant_pool_address_p.
3904 * config/rs6000/predicates.md (input_operand): Pass mode to
3905 legitimate_constant_pool_address_p.
3906 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
3909 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3912 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
3913 64-bit constants being loaded into registers other than GPRs such
3914 as loading 0 into a VSX register.
3916 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3918 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
3920 2011-03-14 Jakub Jelinek <jakub@redhat.com>
3923 * builtins.c (fold_builtin_snprintf): New function.
3924 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
3925 (fold_builtin_4): Likewise.
3928 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
3929 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
3930 and C - X == X also strip nops from +/-/p+ operand.
3931 When optimizing -X == C, fold C to arg0's type.
3934 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
3935 emit it as add_AT_int instead of add_AT_unsigned.
3937 2011-03-14 Tom Tromey <tromey@redhat.com>
3939 * unwind-dw2.c: Include sys/sdt.h if it exists.
3940 (_Unwind_DebugHook): Use STAP_PROBE2.
3941 * config.in, configure: Rebuild.
3942 * configure.ac: Check for sys/sdt.h.
3944 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
3946 * config/i386/i386.md (ROUND_FLOOR): New constant.
3947 (ROUND_CEIL): Ditto.
3948 (ROUND_TRUNC): Ditto.
3949 (ROUND_MXCSR): Ditto.
3950 (ROUND_NO_EXC): Ditto.
3951 (rint<mode>2): Use new defines instead of numerical constants.
3952 (floor<mode>2): Ditto.
3953 (ceil<mode>2): Ditto.
3954 (btrunc<mode>2): Ditto.
3955 * config/i386/i386-builtin-types.def: Define ROUND function type
3957 * config/i386/i386.c (enum ix86_builtins): Add
3958 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
3959 (struct builtin_description): Add
3960 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
3961 (ix86_expand_sse_round): New static function.
3962 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
3964 (ix86_builtin_vectorized_function): Handle
3965 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
3967 2011-03-14 Tom Tromey <tromey@redhat.com>
3969 * c-parser.c (c_parser_asm_string_literal): Clear
3970 warn_overlength_strings.
3972 2011-03-14 Tom Tromey <tromey@redhat.com>
3974 * c-parser.c (disable_extension_diagnostics): Save
3975 warn_overlength_strings.
3976 (restore_extension_diagnostics): Restore warn_overlength_strings.
3978 2011-03-14 Jakub Jelinek <jakub@redhat.com>
3980 * BASE-VER: Change to 4.7.0.
3982 2011-03-14 Richard Guenther <rguenther@suse.de>
3985 * tree.c (build_vector_from_val): Adjust assert to requirements
3988 2011-03-14 Jakub Jelinek <jakub@redhat.com>
3991 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
3993 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
3995 * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
3996 terms of target_flags_explicit. Adjust copyright year.
3998 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
3999 * config/rs6000/t-freebsd: New file. Add override for
4002 2011-03-13 Chris Demetriou <cgd@google.com>
4004 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
4005 (-fno-diagnostics-show-option): this, to reflect current default.
4006 (-Werror=): Update text about -fno-diagnostics-show-option.
4008 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
4011 * config/rs6000/predicates.md (easy_vector_constant_add_self,
4012 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
4013 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
4014 mode is not V2DImode or V2DFmode.
4015 (vspltis_constant): Do not handle V2DImode and V2DFmode.
4016 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
4017 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
4019 (movdi_internal64): Likewise.
4021 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
4023 PR tree-optimization/47127
4024 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
4026 (set_cloog_options): Same.
4027 (scop_to_clast): Same.
4028 (print_clast_stmt): Do not call cloog_state_malloc and
4030 (print_generated_program): Same.
4032 * graphite-clast-to-gimple.h (cloog_state): Declared.
4033 (scop_to_clast): Adjust declaration.
4034 * graphite.c (cloog_state): Defined here.
4035 (graphite_initialize): Call cloog_state_malloc.
4036 (graphite_finalize): Call cloog_state_free.
4038 2011-03-11 Jason Merrill <jason@redhat.com>
4040 * attribs.c (lookup_attribute_spec): Take const_tree.
4043 2011-03-11 Joseph Myers <joseph@codesourcery.com>
4045 * config/sparc/sparc.c (sparc_option_override): Use
4046 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
4048 2011-03-11 Richard Guenther <rguenther@suse.de>
4050 PR tree-optimization/48067
4051 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
4052 multiplication result will be only used once on the target
4055 2011-03-11 Richard Guenther <rguenther@suse.de>
4057 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
4059 2011-03-11 Richard Guenther <rguenther@suse.de>
4062 * tree.c (find_decls_types_r): Do not walk types only reachable
4063 from IDENTIFIER_NODEs.
4065 2011-03-11 Jakub Jelinek <jakub@redhat.com>
4068 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
4069 all vnode->force_output nodes as needed.
4071 2011-03-11 Jason Merrill <jason@redhat.com>
4074 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
4075 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
4077 2011-03-11 Martin Jambor <mjambor@suse.cz>
4079 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
4082 2011-03-11 Jakub Jelinek <jakub@redhat.com>
4084 PR tree-optimization/48063
4085 * ipa-inline.c (cgraph_decide_inlining): Don't try to
4086 inline functions called once if !tree_can_inline_p (node->callers).
4088 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
4090 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
4092 * config/score/score3.c: Delete.
4093 * config/score/score3.h: Delete.
4094 * config/score/mul-div.S: Delete.
4095 * config/score/sfp-machine.h: Add new file.
4096 * config/score/constraints.md: Add new file.
4097 * config/score/t-score-softfp: Add new file.
4098 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
4099 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
4100 (score7_extra_constraint): Delete.
4101 (score7_option_override): Remove unused code.
4102 * config/score/score.c: Remove score3 and score5 define and code.
4103 * config/score/score.h: Remove score3 and score5 define and code.
4104 * config/score/score.md: Remove score3 template and unusual insn.
4105 * config/score/score.opt: Remove score3 and score5 options.
4107 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4109 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
4110 when _HPUX_SOURCE is defined.
4111 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
4113 2011-03-10 Jason Merrill <jason@redhat.com>
4116 * stor-layout.c (layout_type): Don't set structural equality
4117 on arrays of incomplete type.
4118 * tree.c (type_hash_eq): Handle comparing them properly.
4120 2011-03-10 Jakub Jelinek <jakub@redhat.com>
4123 * config/s390/s390.c (s390_delegitimize_address): Make sure the
4124 result mode matches original rtl mode.
4126 2011-03-10 Nick Clifton <nickc@redhat.com>
4128 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
4129 (andsi3, andsi3_flags): Fix timings for three operand alternative.
4131 2011-03-09 Jakub Jelinek <jakub@redhat.com>
4133 PR rtl-optimization/47866
4134 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
4135 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
4136 if target wasn't scalar.
4137 * function.c (assign_stack_temp_for_type): Assert that neither
4138 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
4139 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
4141 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
4143 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4145 * config/s390/s390-protos.h (s390_label_align): New prototype.
4146 * config/s390/s390.c (s390_label_align): New function.
4147 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
4149 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
4152 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
4153 V2DI/V2DF constants. Only all 0's or all 1's are easy.
4154 (output_vec_const_move): Ditto.
4156 2011-03-08 Anatoly Sokolov <aesok@post.ru>
4158 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
4159 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
4160 * config/mips/mips.c (mips_preferred_reload_class): Make static.
4161 Change 'rclass' argument and result type to reg_class_t.
4162 (TARGET_PREFERRED_RELOAD_CLASS): Define.
4164 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
4166 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4167 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
4168 (TARGET_MEMORY_MOVE_COST): Define.
4169 (avr_register_move_cost, avr_memory_move_cost): New Functions.
4171 2011-03-08 Jakub Jelinek <jakub@redhat.com>
4174 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
4177 PR tree-optimization/48022
4178 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
4181 2011-03-07 Jakub Jelinek <jakub@redhat.com>
4184 * var-tracking.c (find_use_val): Return NULL for
4185 cui->sets && cui->store_p BLKmode MEMs.
4187 2011-03-07 Anatoly Sokolov <aesok@post.ru>
4189 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
4191 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
4192 xstormy16_print_operand_address): Remove.
4193 * config/stormy16/stormy16.c (xstormy16_print_operand,
4194 xstormy16_print_operand_address): Make static.
4195 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4197 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
4200 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
4201 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
4204 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
4207 * cfgloopmanip.c (fix_bb_placements): Return immediately
4208 if FROM is BASE_LOOP's header.
4210 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
4212 * gimplify.c (gimplify_function_tree): Fix building calls
4213 to __builtin_return_address.
4215 2011-03-07 Alan Modra <amodra@gmail.com>
4217 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
4218 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
4219 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
4220 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
4222 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
4223 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
4224 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
4225 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
4226 * config/rs6000/rs6000.c
4227 (rs6000_elf_end_indicate_exec_stack): Rename to..
4228 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
4229 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
4230 (rs6000_file_start): ..here.
4231 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
4232 file scope variables.
4233 (call_ABI_of_interest): New function.
4234 (init_cumulative_args): Set above vars when function return value
4235 is a float, vector, or small struct.
4236 (rs6000_function_arg_advance_1): Likewise for function args.
4237 (rs6000_va_start): Set rs6000_passes_float if variable arg function
4238 references float args.
4240 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
4242 * doc/cfg.texi: Remove "See" before @ref.
4243 * doc/invoke.texi: Likewise.
4245 2011-03-05 Jason Merrill <jason@redhat.com>
4247 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
4249 2011-03-05 Anthony Green <green@moxielogic.com>
4251 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
4253 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
4255 PR rtl-optimization/47899
4256 * cfgloopmanip.c (fix_bb_placements): Fix first argument
4257 to flow_loop_nested_p when moving the loop upward.
4259 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
4262 * arm.md (movhi_insn_arch4): Accept any immediate constant.
4264 2011-03-05 Jakub Jelinek <jakub@redhat.com>
4266 PR tree-optimization/47967
4267 * ipa-cp.c (build_const_val): Return NULL instead of creating
4268 VIEW_CONVERT_EXPR for mismatching sizes.
4269 (ipcp_create_replace_map): Return NULL if build_const_val failed.
4270 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
4271 give up on versioning.
4273 2011-03-05 Alan Modra <amodra@gmail.com>
4276 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4277 full cmodel medium/large lo_sum + high addresses.
4279 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4281 * config/s390/s390.c (s390_decompose_address): Reject non-literal
4282 pool references in UNSPEC_LTREL_OFFSET.
4284 2011-03-04 Jan Hubicka <jh@suse.cz>
4287 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
4288 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
4289 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
4291 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
4292 cgraph_add_thunk): Add node pointers.
4293 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
4294 associated to right node.
4295 (input_node): Update use of cgraph_same_body_alias
4296 and cgraph_add_thunk.
4298 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
4300 * config/i386/i386.opt (mprefer-avx128): New flag.
4301 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
4302 modes when the flag -mprefer-avx128 is on.
4304 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
4306 * dwarf2out.c (compare_loc_operands): Fix address handling.
4308 2011-03-04 Alan Modra <amodra@gmail.com>
4310 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
4312 2011-03-04 Richard Guenther <rguenther@suse.de>
4315 * expmed.c (extract_bit_field_1): Prefer vector modes that
4316 vec_extract patterns can handle.
4318 2011-03-04 Richard Guenther <rguenther@suse.de>
4321 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
4323 2011-03-04 Richard Henderson <rth@redhat.com>
4325 * explow.c (emit_stack_save): Remove 'after' parameter.
4326 (emit_stack_restore): Likewise.
4327 * expr.h: Update to match.
4328 * builtins.c, calls.c, stmt.c: Likewise.
4329 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
4330 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
4331 * function.c (expand_function_end): Insert the emit_stack_save
4332 sequence before parm_birth_insn instead of after.
4334 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
4336 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
4337 (ssse3_pmaddubsw128): Ditto.
4338 (ssse3_pmaddubsw): Ditto.
4340 2011-03-03 Steve Ellcey <sje@cup.hp.com>
4342 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
4344 2011-03-03 Jakub Jelinek <jakub@redhat.com>
4347 * gimplify.c (omp_add_variable): Only call omp_notice_variable
4348 on TYPE_SIZE_UNIT if it is a DECL.
4351 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
4352 first operand is not is_gimple_mem_ref_addr, try to fold it.
4353 If the operand still isn't is_gimple_mem_ref_addr, clear
4356 2011-03-03 Richard Guenther <rguenther@suse.de>
4359 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
4361 (refs_may_alias_p_1): For release branches return true if
4362 we are confused by our input.
4364 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4366 * config/s390/s390.c (s390_function_value): Rename to ...
4367 (s390_function_and_libcall_value): ... this.
4368 (s390_function_value): New function.
4369 (s390_libcall_value): New function.
4370 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
4371 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
4372 target macro definitions.
4373 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
4375 2011-03-02 Joseph Myers <joseph@codesourcery.com>
4377 * config/i386/freebsd64.h (CC1_SPEC): Define.
4378 * config/i386/linux64.h (CC1_SPEC): Define.
4379 * config/i386/x86-64.h (CC1_SPEC): Don't define.
4381 2011-03-02 Anatoly Sokolov <aesok@post.ru>
4383 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
4385 * config/stormy16/stormy16.c: Include reload.h.
4386 (xstormy16_memory_move_cost): New function.
4387 (TARGET_MEMORY_MOVE_COST): Define.
4389 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
4391 PR rtl-optimization/47925
4392 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
4393 with side effects. Remove the more-specific check for volatile asms.
4395 2011-03-02 Alan Modra <amodra@gmail.com>
4398 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
4399 toc relative addresses for valid offsets.
4401 2011-03-01 Richard Guenther <rguenther@suse.de>
4403 PR tree-optimization/47890
4404 * tree-vect-loop.c (get_initial_def_for_induction): Set
4405 related stmt properly.
4407 2011-03-01 Richard Guenther <rguenther@suse.de>
4410 * lto-streamer.c (lto_record_common_node): Also register
4413 2011-03-01 Richard Guenther <rguenther@suse.de>
4416 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
4417 Do not stream DECL_ABSTRACT_ORIGIN.
4418 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
4419 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
4420 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
4421 Do not stream DECL_ABSTRACT_ORIGIN.
4422 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
4423 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
4425 2011-02-28 Anatoly Sokolov <aesok@post.ru>
4427 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
4428 FUNCTION_VALUE_REGNO_P): Remove.
4429 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
4430 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
4431 Add 'outgoing' argument.
4432 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
4434 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4435 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4437 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
4440 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
4441 (lookup_filename): Likewise.
4442 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
4444 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
4445 Jakub Jelinek <jakub@redhat.com>
4448 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
4449 (assign_stack_local_1): Change last argument type to int.
4450 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
4451 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
4452 don't record padding space into frame_space_list nor use those areas.
4453 (assign_stack_local): Adjust caller.
4454 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
4455 of assign_stack_local, pass 0 as last argument.
4456 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
4459 2011-02-28 Jakub Jelinek <jakub@redhat.com>
4462 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
4463 Use target address_mode and pointer_mode hooks instead of hardcoded
4464 Pmode and ptr_mode. Handle some simple cases of extending if
4465 POINTERS_EXTEND_UNSIGNED < 0.
4466 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
4467 Call convert_debug_memory_address.
4468 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
4469 convert_debug_memory_address.
4472 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
4473 * configure: Regenerated.
4474 * config.in: Regenerated.
4475 * varasm.c (default_function_section): Return NULL
4476 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
4478 2011-02-28 Martin Jambor <mjambor@suse.cz>
4480 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
4481 the description to match the printed values.
4483 2011-02-28 Richard Guenther <rguenther@suse.de>
4485 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
4486 of the copied scope tree.
4488 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4490 * doc/extend.texi (Function Attributes): Avoid deeply (and
4491 wrongly) nested tables.
4493 2011-02-27 Jakub Jelinek <jakub@redhat.com>
4496 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
4497 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
4498 r isn't op0 nor op1.
4500 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
4502 * config/avr/avr.md: Remove magic comment for emacs.
4504 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
4507 * config/avr/avr.c (avr_option_override): Use error on bad options.
4508 (avr_help): New function.
4509 (TARGET_HELP): Define.
4511 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
4514 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
4515 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
4517 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
4519 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
4520 (ARM Options): Ditto.
4521 (i386 and x86-64 Options): Ditto.
4522 (RX Options): Ditto.
4523 (SPARC Options): Ditto.
4525 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
4527 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
4528 FreeBSD 6 and later. Generally use cpu generic.
4530 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
4532 * doc/cpp.texi: Update copyright years.
4534 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
4537 * config/lm32/lm32.md (ashrsi3): Added needed variable.
4539 2011-02-25 Jon Beniston <jon@beniston.com>
4542 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
4543 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
4544 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
4545 (lm32_block_move_inline): Add type cast to remove warning.
4546 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
4547 (gen_int_relational): Move declarations to start of function.
4549 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
4551 PR tree-optimization/45470
4552 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
4553 can throw internally only.
4554 * tree-vect-stmts.c (vectorizable_call): Likewise.
4556 2011-02-24 Anatoly Sokolov <aesok@post.ru>
4558 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
4559 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
4560 * config/stormy16/stormy16-protos.h
4561 (xstormy16_preferred_reload_class): Remove.
4562 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
4563 static. Change 'rclass' argument and return type to reg_class_t.
4564 (TARGET_PREFERRED_RELOAD_CLASS,
4565 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4567 2011-02-24 Richard Guenther <rguenther@suse.de>
4569 * lto-streamer-in.c (input_bb): Do not find referenced vars
4570 in debug statements.
4572 2011-02-23 Jason Merrill <jason@redhat.com>
4574 * common.opt (fabi-version): Document v5 and v6.
4576 2011-02-23 Richard Guenther <rguenther@suse.de>
4578 PR tree-optimization/47849
4579 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
4581 2011-02-23 Jie Zhang <jie@codesourcery.com>
4583 * opts-common.c (decode_cmdline_option): Print empty string
4584 argument as "" in decoded->orig_option_with_args_text.
4585 * gcc.c (execute): Print empty string argument as ""
4586 in the verbose output.
4587 (do_spec_1): Keep empty string argument.
4589 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
4591 * config.gcc: Declare score-* and crx-* obsolete.
4593 2011-02-23 Jie Zhang <jie@codesourcery.com>
4595 PR rtl-optimization/47763
4596 * web.c (web_main): Ignore naked clobber when replacing register.
4598 2011-02-22 Anatoly Sokolov <aesok@post.ru>
4600 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4603 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
4606 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
4608 2011-02-22 Mike Stump <mikestump@comcast.net>
4610 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
4612 * configure: Regenerate.
4614 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
4616 PR rtl-optimization/46002
4617 * ira-color.c (update_copy_costs): Change class intersection
4618 test to reg_class_contents[] test of 'hard_regno'.
4620 2011-02-21 Joseph Myers <joseph@codesourcery.com>
4622 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
4624 * config/hpux11.opt (mt): Likewise.
4625 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
4626 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
4627 * config/vax/elf.opt (mno-asm-pic): Likewise.
4628 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
4630 2011-02-21 Mike Stump <mikestump@comcast.net>
4633 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
4634 tree so we can get save the type.
4635 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
4636 for CFString instead of trying to use past the end of the builtins.
4637 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
4638 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
4639 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
4640 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
4641 Rename to darwin_builtin_cfstring.
4642 (darwin_init_cfstring_builtins): Return the built type.
4644 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
4647 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
4648 (_mm256_insert_epi64): Use _mm_insert_epi64.
4650 2011-02-21 Anatoly Sokolov <aesok@post.ru>
4652 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
4653 * config/stormy16/stormy16-protos.h
4654 (xstormy16_mode_dependent_address_p): Remove.
4655 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
4656 Make static. Change return type to bool. Change argument type to
4657 const_rtx. Remove dead code.
4658 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
4660 2011-02-21 Richard Guenther <rguenther@suse.de>
4663 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
4664 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
4665 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
4667 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
4668 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
4670 2011-02-20 Richard Guenther <rguenther@suse.de>
4673 * tree.c (free_lang_data_in_decl): Clean builtins from
4674 the TU decl BLOCK_VARS.
4676 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
4680 * haifa-sched.c (fix_tick_ready): Skip tick computation
4683 2011-02-19 Richard Guenther <rguenther@suse.de>
4686 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
4687 Remove lazy BLOCK_VARS streaming.
4688 (lto_input_ts_block_tree_pointers): Likewise.
4689 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
4691 2011-02-19 Joseph Myers <joseph@codesourcery.com>
4693 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
4695 2011-02-19 Joseph Myers <joseph@codesourcery.com>
4697 * config/i386/biarch32.h, config/i386/mach.h,
4698 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
4700 2011-02-19 Jakub Jelinek <jakub@redhat.com>
4703 * config/i386/i386.md (peephole2 for shift and plus): Use
4704 operands[1] original mode in the first insn.
4706 2011-02-18 Mike Stump <mikestump@comcast.net>
4708 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
4710 2011-02-18 Jan Hubicka <jh@suse.cz>
4713 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
4714 to zero when the function is not inlinable at all.
4716 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4718 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
4719 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
4720 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
4721 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
4722 * config/pa/t-pa64: Likewise.
4723 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4725 2011-02-18 Jakub Jelinek <jakub@redhat.com>
4728 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
4730 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4733 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
4735 2011-02-18 Anatoly Sokolov <aesok@post.ru>
4737 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
4738 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
4739 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
4740 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
4741 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
4742 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
4743 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
4744 m32r_load_postinc_p, m32r_store_preinc_predec_p,
4745 m32r_legitimate_address_p): New functions.
4746 * config/m32r/constraints.md (constraint "S"): Don't use
4747 STORE_PREINC_PREDEC_P.
4748 (constraint "U"): Don't use LOAD_POSTINC_P.
4750 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
4752 PR rtl-optimization/46178
4753 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
4754 compute ira_hard_regno_cover_class[].
4756 2011-02-18 Richard Guenther <rguenther@suse.de>
4759 * lto-streamer.h (lto_global_var_decls): Declare.
4760 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
4761 statics for global var processing.
4763 2011-02-18 Richard Guenther <rguenther@suse.de>
4765 PR tree-optimization/47737
4766 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
4767 edge dominance check.
4769 2011-02-18 Jakub Jelinek <jakub@redhat.com>
4772 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
4773 avoid invalid rtx sharing.
4775 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
4777 * doc/cpp.texi (Obsolete Features): Add background on the
4778 origin of assertions.
4780 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
4782 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
4784 * config/darwin.c (output_objc_section_asm_op): Added support for
4786 (is_objc_metadata): New.
4787 (darwin_objc2_section): New.
4788 (darwin_objc1_section): New.
4789 (machopic_select_section): Added support for ABI v1 and v2.
4790 (darwin_emit_objc_zeroed): New.
4791 (darwin_output_aligned_bss): Detect objc metadata and treat it
4793 (darwin_asm_output_aligned_decl_common): Same.
4794 (darwin_asm_output_aligned_decl_local): Same.
4795 * config/darwin-sections.def: Updated for ABI v1 and v2.
4796 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
4797 compiling Objective-C code for the NeXT runtime, default to using
4798 ABI version 0 for 32-bit, and version 2 for 64-bit.
4800 2011-02-17 Joseph Myers <joseph@codesourcery.com>
4802 * common.opt (optimize_fast): New Variable.
4803 * opts.c (default_options_optimization): Use opts->x_optimize_fast
4804 instead of local variable ofast.
4806 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
4808 * doc/invoke.texi (fobjc-abi-version): Documented.
4809 (fobjc-nilcheck): Documented.
4810 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
4813 2011-02-17 Joseph Myers <joseph@codesourcery.com>
4816 * common.opt (export-dynamic): New Driver option.
4817 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
4819 2011-02-17 Joseph Myers <joseph@codesourcery.com>
4821 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
4823 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
4824 Jan Hubicka <jh@suse.cz>
4828 * cfgexpand.c (account_used_vars_for_block): Remove.
4829 (estimated_stack_frame_size): Use referenced vars.
4830 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
4831 that were referenced in the original function. Test src_fn
4832 rather than cfun. Drop redundant get_var_ann.
4833 (setup_one_parameter): Drop redundant get_var_ann.
4834 (declare_return_variable): Likewise.
4835 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
4836 (copy_arguments_for_versioning): Drop redundant get_var_ann.
4837 * ipa-inline.c (compute_inline_parameters): Do not compute
4838 disregard_inline_limits here.
4839 (compute_inlinable_for_current, pass_inlinable): New.
4840 (pass_inline_parameters): Require PROP_referenced_vars.
4841 * cgraphunit.c (cgraph_process_new_functions): Don't run
4842 compute_inline_parameters explicitly unless function is in SSA form.
4843 (cgraph_analyze_function): Set .disregard_inline_limits.
4844 * tree-sra.c (convert_callers): Compute inliner parameters
4845 only for functions already in SSA form.
4847 2011-02-17 Joseph Myers <joseph@codesourcery.com>
4849 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
4850 -mlittle-endian-data.
4852 2011-02-17 Joseph Myers <joseph@codesourcery.com>
4854 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
4855 -mno-fpu, not -fpu and -no-fpu.
4856 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
4857 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
4859 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
4862 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
4863 input reload with PLUS RTX.
4865 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4867 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
4868 of InverseVar(MDMX).
4870 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4872 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
4875 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4877 * config/mn10300/mn10300.opt (mno-crt0): New.
4879 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4881 * config/m68k/uclinux.opt (static-libc): New Driver option.
4883 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4885 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
4887 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4889 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
4890 %{muser-extend-enabled}.
4892 2011-02-16 Richard Guenther <rguenther@suse.de>
4894 PR tree-optimization/47738
4895 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
4896 the TODO from tree_predictive_commoning.
4898 2011-02-15 Jeff Law <law@redhat.com>
4901 2011-01-25 Jeff Law <law@redhat.com>
4903 PR rtl-optimization/37273
4904 * ira-costs.c (scan_one_insn): Detect constants living in memory and
4905 handle them like argument loads from stack slots. Do not double
4906 count memory for memory constants and argument loads from stack slots.
4908 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
4911 * combine.c (cant_combine_insn_p): Revert the last change.
4913 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
4916 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
4917 mode for vector constants. Remove code that checks for TImode.
4919 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
4923 * cgraph.h (compute_inline_parameters): Return void.
4924 * ipa-inline.c (compute_inline_parameters): Adjust.
4926 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
4930 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
4932 * cfgexpand.c (estimated_stack_frame_size): Likewise.
4933 * ipa-inline.c (compute_inline_parameters): Adjust.
4935 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
4939 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
4940 Adjust all users. Pass FN to...
4941 * tree-flow-inline.h (first_referenced_var): ... this. Add
4943 * ipa-struct-reorg.c: Adjust.
4944 * tree-dfa.c: Adjust.
4945 * tree-into-ssa.c: Adjust.
4946 * tree-sra.c: Adjust.
4947 * tree-ssa-alias.c: Adjust.
4948 * tree-ssa-live.c: Adjust.
4949 * tree-ssa.c: Adjust.
4950 * tree-ssanames.c: Adjust.
4951 * tree-tailcall.c: Adjust.
4953 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
4957 * tree-flow.h (referenced_var_lookup): Add fn parameter.
4959 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
4960 * tree-flow-inline.h: Adjust.
4961 * gimple-pretty-print.c: Adjust.
4962 * tree-into-ssa.c: Adjust.
4963 * tree-ssa.c: Adjust.
4964 * cfgexpand.c: Adjust.
4966 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
4968 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
4969 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4970 (EXTRA_CONSTRAINT): Delete.
4971 * config/iq2000/constraints.md: New file.
4972 * config/iq2000/iq2000.md: Include it.
4973 (define_insn ""): Delete.
4974 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
4975 unsupported constraint letters from patterns.
4976 (call_value, call_value_internal1): Likewise.
4977 (call_value_multiple_internal1): Likewise.
4979 2011-02-15 Nick Clifton <nickc@redhat.com>
4981 * config/mn10300/mn10300.c: Include tm-constrs.h.
4982 (struct liw_data): New data structure describing an LIW candidate
4984 (extract_bundle): Use struct liw_data. Allow small integer
4985 operands for some instructions.
4986 (check_liw_constraints): Use struct liw_data. Remove swapped
4987 parameter. Add comments describing the checks. Fix bug when
4988 assigning the source of liw1 to the source of liw2.
4989 (liw_candidate): Delete. Code moved into extract_bundle.
4990 (mn10300_bundle_liw): Use struct liw_data. Check constraints
4992 * config/mn10300/predicates.md (liw_operand): New predicate.
4993 Allows registers and small integer constants.
4994 * config/mn10300/constraints.md (O): New constraint. Accetps
4995 integers in the range -8 to +7 inclusive.
4996 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
4997 for moving a small integer into a register. Give this alternative
4999 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
5000 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
5001 using the J,K,L and M constraints,
5002 (liw): Remove SI mode on second operands to allow for HI and QI
5004 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
5007 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
5010 * combine.c (cant_combine_insn_p): Check zero/sign extended
5013 2011-02-15 Richard Guenther <rguenther@suse.de>
5015 PR tree-optimization/47743
5016 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
5017 for a non-type-compatible VN lookup bail out.
5019 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
5021 * config/fr30/constraints.md: New file.
5022 * config/fr30/fr30.md: Include it.
5023 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
5024 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5025 (EXTRA_CONSTRAINT): Delete.
5027 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
5029 * config/frv/constraints.md: New file.
5030 * config/frv/predicates.md: Include it.
5031 * config/frv/frv.c (reg_class_from_letter): Delete.
5032 (frv_option_override): Don't initialize it.
5033 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
5034 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
5035 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
5036 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
5037 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
5038 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5039 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
5040 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
5041 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
5042 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
5043 (REG_CLASS_FROM_CONSTRAINT): Delete.
5045 2011-02-15 Jakub Jelinek <jakub@redhat.com>
5048 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
5049 if frame size is 0 in a leaf function.
5051 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5054 * config/alpha/host-osf.c: New file.
5055 * config/alpha/x-osf: New file.
5056 * config.host (alpha*-dec-osf*): Use it.
5058 2011-02-14 Anatoly Sokolov <aesok@post.ru>
5060 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5061 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
5062 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
5063 (rx_mode_dependent_address_p): ...this. Make static. Change argument
5065 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5067 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
5069 * config/stormy16/constraints.md: New file.
5070 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
5071 Use satisfies_constraint_Q and satisfies_constraint_R.
5072 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
5074 (xstormy16_legitiamte_address_p): Declare.
5075 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
5076 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5077 (EXTRA_CONSTRAINT): Delete.
5078 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
5080 (xstormy16_extra_constraint_p): Delete.
5082 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
5084 PR tree-optimization/46494
5085 * loop-unroll.c (split_edge_and_insert): Adjust comment.
5086 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
5087 (pass_rtl_loop_done): Add TODO_verify_flow.
5088 * fwprop.c (pass_rtl_fwprop): Likewise.
5089 * modulo-sched.c (pass_sms): Likewise.
5090 * tree-ssa-dom.c (pass_dominator): Likewise.
5091 * tree-ssa-loop-ch.c (pass_ch): Likewise.
5092 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
5093 (pass_tree_loop_done): Likewise.
5094 * tree-ssa-pre.c (execute_pre): Likewise.
5095 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
5096 * tree-ssa-sink.c (pass_sink_code): Likewise.
5097 * tree-vrp.c (pass_vrp): Likewise.
5099 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
5101 * config/v850/constraints.md: New file.
5102 * config/v850/v850.md: Include it.
5103 * config/v850/predicates.md (reg_or_0_operand): Use
5104 satisfies_constraint_G.
5105 (special_symbolref_operand): Use satisfies_constraint_K.
5106 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
5107 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
5108 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
5109 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
5110 (EXTRA_CONSTRAINT): Delete.
5111 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
5112 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
5113 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
5115 2011-02-14 Anatoly Sokolov <aesok@post.ru>
5118 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
5121 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
5123 * config/mcore/constraints.md: New file.
5124 * config/mcore/mcore.md: Include it.
5125 * config/mcore/mcore.c (reg_class_from_letter): Delete.
5126 * config/mcore/mcore.h (reg_class_from_letter): Delete.
5127 (REG_CLASS_FROM_LETTER): Delete.
5128 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
5129 insn_const_int_ok_for_constraint.
5130 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
5131 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
5132 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5133 (EXTRA_CONSTRAINT): Delete.
5135 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5138 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
5139 (IS_SIGHANDLER): Define.
5140 (sparc64_is_sighandler): New function, split off from
5141 sparc64_fallback_frame_state.
5142 (sparc_is_sighandler): New function, split off from
5143 sparc_fallback_frame_state.
5144 (sparc64_fallback_frame_state): Merge with ...
5145 (sparc_fallback_frame_state): ... this into ...
5146 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
5147 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
5148 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
5149 stack instead of hardcoded offsets.
5151 2011-02-14 Andriy Gapon <avg@freebsd.org>
5154 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
5156 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5158 * configure: Regenerate.
5160 2011-02-12 Joseph Myers <joseph@codesourcery.com>
5163 * gcc.c (asm_options): Correct spec matching --target-help.
5165 2011-02-12 Martin Jambor <mjambor@suse.cz>
5167 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
5168 to gimple call error.
5170 2011-02-12 Mike Stump <mikestump@comcast.net>
5172 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
5173 comments in backslash regions.
5175 2011-02-12 Mike Stump <mikestump@comcast.net>
5176 Jakub Jelinek <jakub@redhat.com>
5177 Iain Sandoe <iains@gcc.gnu.org>
5180 * dwarf2out.c (output_cfa_loc): When required, apply the
5181 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
5182 (output_loc_sequence): Likewise.
5183 (output_loc_operands_raw): Likewise.
5184 (output_loc_sequence_raw): Likewise.
5185 (output_cfa_loc): Likewise.
5186 (output_loc_list): Suppress register number adjustment when
5187 calling output_loc_sequence()
5188 (output_die): Likewise.
5190 2011-02-12 Anatoly Sokolov <aesok@post.ru>
5192 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
5194 * config/xtensa/xtensa.c (xtensa_register_move_cost,
5195 xtensa_memory_move_cost): New functions.
5196 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
5198 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
5201 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
5202 in the current directory.
5203 * configure: Rebuilt.
5205 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
5207 * config/darwin.c (darwin_override_options): Add a hunk missed
5208 from the commit of r168571. Trim comment line lengths and
5209 correct indents of the preceding block.
5211 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
5213 * gcc.c (driver_handle_option): Concatenate the argument to -F with
5216 2011-02-11 Joseph Myers <joseph@codesourcery.com>
5218 * common.opt (nostartfiles): New Driver option.
5220 2011-02-11 Xinliang David Li <davidxl@google.com>
5222 PR tree-optimization/47707
5223 * tree-chrec.c (convert_affine_scev): Keep type precision.
5225 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
5227 PR tree-optimization/47420
5228 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
5230 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
5232 PR rtl-optimization/47614
5233 * rtl.h (check_for_inc_dec): Declare.
5234 * dse.c (check_for_inc_dec): Externalize...
5235 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
5236 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
5238 2011-02-11 Joseph Myers <joseph@codesourcery.com>
5241 * gcc.c (main): Do not compile inputs if there were errors in
5243 * opts-common.c (read_cmdline_option): Check for wrong language
5244 after other error checks.
5246 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
5248 * cgraph.c: Fix comment typos.
5249 * cgraph.h: Likewise.
5250 * cgraphunit.c: Likewise.
5251 * ipa-cp.c: Likewise.
5252 * ipa-inline.c: Likewise.
5253 * ipa-prop.c: Likewise.
5254 * ipa-pure-const.c: Likewise.
5255 * ipa-ref.c: Likewise.
5256 * ipa-reference.c: Likewise.
5258 2011-02-11 Jakub Jelinek <jakub@redhat.com>
5261 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
5263 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5266 * doc/sourcebuild.texi (Require Support): Document
5267 dg-require-ascii-locale.
5269 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
5271 * doc/lto.texi (Write summary): Fix missing parentheses.
5273 2011-02-10 DJ Delorie <dj@redhat.com>
5275 * config/m32c/m32c.c (m32c_option_override): Disable
5276 -fcombine-stack-adjustments until flag value tracking and compare
5277 optimization can be rewritten.
5279 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
5281 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
5283 (PROCESSOR_DEFAULT64): Likewise.
5285 2011-02-10 Richard Henderson <rth@redhat.com>
5287 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
5288 change from 2011-02-03.
5289 * config/rx/rx.c (flags_from_code): Likewise.
5290 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
5291 is valid, n/pz otherwise.
5292 (rx_select_cc_mode): Return CCmode if Y is not zero.
5294 2011-02-10 Richard Guenther <rguenther@suse.de>
5296 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
5298 2011-02-10 Richard Guenther <rguenther@suse.de>
5300 PR tree-optimization/47677
5301 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
5303 2011-02-10 Jakub Jelinek <jakub@redhat.com>
5306 * combine.c (make_compound_operation): Only change shifts into
5307 multiplication for SCALAR_INT_MODE_P.
5309 2011-02-10 Jie Zhang <jie@codesourcery.com>
5313 2011-02-05 Jie Zhang <jie@codesourcery.com>
5315 * web.c (entry_register): Don't clobber the number of the
5316 first uninitialized reference in used[].
5318 2011-02-09 Richard Guenther <rguenther@suse.de>
5320 PR tree-optimization/47664
5321 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
5324 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
5328 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
5330 (PROCESSOR_DEFAULT64): Same.
5331 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
5333 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5335 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
5337 2011-02-09 Martin Jambor <mjambor@suse.cz>
5340 * tree-sra.c (struct access): New flags grp_scalar_read and
5341 grp_scalar_write. Changed description of assignment read and write
5343 (dump_access): Dump new flags, reorder all of them.
5344 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
5345 to detect multiple scalar reads.
5346 (analyze_access_subtree): Use the new scalar read write flags instead
5347 of the old flags. Adjusted comments.
5349 2011-02-08 DJ Delorie <dj@redhat.com>
5352 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
5355 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5357 * config/m68k/uclinux.opt: New.
5358 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
5360 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5362 * config/cris/elf.opt (sim): New Driver option.
5364 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5366 * config/xtensa/elf.opt: New.
5367 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
5369 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5371 * config/vax/elf.opt: New.
5372 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
5374 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5376 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
5378 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5380 * config/gnu-user.opt: New.
5381 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
5382 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
5383 *-*-uclinux*): Use gnu-user.opt.
5385 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
5387 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
5388 * config/i386/gnu.h (CPP_SPEC): Likewise.
5390 2011-02-08 Ian Lance Taylor <iant@google.com>
5392 * common.opt (fcx-limited-range): Add SetByCombined flag.
5393 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
5394 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
5395 (fassociative-math, freciprocal-math): Likewise.
5396 (funsafe-math-optimizations): Likewise.
5397 * opth-gen.awk: Handle SetByCombined.
5398 * optc-gen.awk: Likewise.
5399 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5400 (set_unsafe_math_optimizations_flags): Likewise.
5401 * doc/options.texi (Option properties): Document SetByCombined.
5403 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5405 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
5406 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
5407 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
5408 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
5409 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
5411 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
5413 PR tree-optimization/46834
5414 PR tree-optimization/46994
5415 PR tree-optimization/46995
5416 * graphite-sese-to-poly.c (used_outside_reduction): New.
5417 (detect_commutative_reduction): Call used_outside_reduction.
5418 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
5419 translate_scalar_reduction_to_array only when at least one
5420 loop-phi/close-phi tuple has been detected.
5422 2011-02-08 Richard Guenther <rguenther@suse.de>
5425 * tree-vect-generic.c (expand_vector_operations_1): Update
5427 (expand_vector_operations): ... not here. Cleanup EH info
5428 and the CFG if required.
5430 2011-02-08 Richard Guenther <rguenther@suse.de>
5432 PR tree-optimization/47641
5433 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
5434 require type compatibility.
5436 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5438 * gimple-low.c (lower_function_body): Don't remove the location of
5439 the return statement here.
5440 (lower_gimple_return): Do it here instead but only if the return
5441 statement is actually used twice.
5443 2011-02-08 Richard Guenther <rguenther@suse.de>
5445 PR tree-optimization/47632
5446 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
5447 unused up_to_stmt parameter, return whether cfg-cleanup is
5448 necessary, remove EH info properly.
5449 (forward_propagate_into_gimple_cond): Adjust caller.
5450 (forward_propagate_into_cond): Likewise.
5451 (forward_propagate_comparison): Likewise.
5452 (tree_ssa_forward_propagate_single_use_vars): Make
5453 forward_propagate_comparison case similar to the two others.
5455 2011-02-08 Nick Clifton <nickc@redhat.com>
5457 * config/mn10300/mn10300.opt (mliw): New command line option.
5458 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
5459 (liw_bundling): New automaton.
5460 (liw): New attribute.
5461 (liw_op): New attribute.
5462 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
5463 (movsi_internal): Add LIW attributes.
5467 (addsi3): Separate register and immediate alternatives.
5472 (lshrsi3): Likewise.
5473 (ashrsi3): Likewise.
5475 * config/mn10300/mn10300.c (liw_op_names): New
5476 (mn10300_print_operand): Handle 'W' operand descriptor.
5477 (extract_bundle): New function.
5478 (check_liw_constraints): New function.
5479 (liw_candidate): New function.
5480 (mn10300_bundle_liw): New function.
5481 (mn10300_reorg): New function.
5482 (TARGET_MACHINE_DEPENDENT_REORG): Define.
5483 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
5484 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
5485 __LIW__ or __NO_LIW__.
5486 * doc/invoke.texi: Describe the -mliw command line option.
5488 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5490 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
5491 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
5492 pthread_mutex_unlock): Remove.
5493 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
5494 * config/pa/t-pa64: Likewise.
5495 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
5496 shared libc if not linking against libpthread.
5497 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
5499 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
5502 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
5503 on 10.6 and later to ensure that we always use the unwinder from
5504 the system. Only add -no_compact_unwind when tarteting darwin
5507 2011-02-07 Steve Ellcey <sje@cup.hp.com>
5510 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
5511 (vec_interleave_lowv2sf): Ditto.
5512 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
5513 (vec_extract_oddv2sf): Ditto.
5515 2011-02-07 Mike Stump <mikestump@comcast.net>
5518 Add __ieee_divdc3 entry point.
5519 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
5521 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
5522 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
5523 * config/darwin.c (darwin_rename_builtins): Add.
5524 * config/darwin-protos.h (darwin_rename_builtins): Add.
5526 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
5529 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
5532 2011-02-07 Mike Stump <mikestump@comcast.net>
5534 * config/darwin.opt (mmacosx-version-min): Update default OS version.
5536 2011-02-07 Denis Chertykov <chertykov@gmail.com>
5539 * config/avr/libgcc.S (exit): Move .endfunc
5541 2011-02-07 Richard Guenther <rguenther@suse.de>
5543 PR tree-optimization/47615
5544 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
5545 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
5546 (run_scc_vn): Initialize it.
5547 (visit_reference_op_load): Use it.
5548 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
5550 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5552 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
5553 DImode trapping arithmetic libfuncs.
5555 2011-02-07 Richard Guenther <rguenther@suse.de>
5557 PR tree-optimization/47621
5558 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
5560 (execute_update_addresses_taken): ... here. Make it more
5561 conservative in what we accept.
5563 2011-02-06 Joseph Myers <joseph@codesourcery.com>
5565 * config/sparc/freebsd.h (ASM_SPEC): Define.
5566 * config/sparc/vxworks.h (ASM_SPEC): Define.
5568 2011-02-06 Joseph Myers <joseph@codesourcery.com>
5570 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
5572 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
5574 * doc/invoke.texi: Remove reference to compiler internals from
5577 * reg-notes.def: Remove REG_VALUE_PROFILE.
5578 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
5580 2011-02-05 Jakub Jelinek <jakub@redhat.com>
5583 * varasm.c (default_section_type_flags): If decl is NULL,
5584 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
5586 2011-02-05 Jie Zhang <jie@codesourcery.com>
5589 * web.c (entry_register): Don't clobber the number of the
5590 first uninitialized reference in used[].
5592 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
5594 PR tree-optimization/46194
5595 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
5596 (build_classic_dist_vector_1): Do not represent classic distance
5597 vectors when the access functions are variating in different loops.
5599 2011-02-04 Joseph Myers <joseph@codesourcery.com>
5601 * config/mips/iris6.opt: New.
5602 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
5604 2011-02-04 Richard Henderson <rth@redhat.com>
5605 Steve Ellcey <sje@cup.hp.com>
5608 * config/ia64/predicates.md (mux1_brcst_element): New.
5609 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
5610 * config/ia64/ia64.c (ia64_unpack_assemble): New.
5611 (ia64_unpack_sign): New.
5612 (ia64_expand_unpack): Rewrite using new routines.
5613 (ia64_expand_widen_sum): Ditto.
5614 (ia64_expand_dot_prod_v8qi): Ditto.
5615 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
5616 routines, add endian check.
5617 (pmpy2_even): Rename from pmpy2_r, add endian check.
5618 (pmpy2_odd): Rename from pmpy2_l, add endian check.
5619 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
5620 (vec_widen_smult_hi_v4hi): Ditto.
5621 (vec_widen_umult_lo_v4hi): Ditto.
5622 (vec_widen_umult_hi_v4hi): Ditto.
5623 (mulv2si3): Change endian checks.
5624 (sdot_prodv4hi): Rewrite with new calls.
5625 (udot_prodv4hi): New.
5626 (vec_pack_ssat_v4hi): Add endian check.
5627 (vec_pack_usat_v4hi): Ditto.
5628 (vec_pack_ssat_v2si): Ditto.
5629 (max1_even): Rename from max1_r, add endian check.
5630 (max1_odd): Rename from max1_l, add endian check.
5631 (*mux1_rev): Format change.
5633 (*mux1_shuf): Ditto.
5635 (*mux1_brcst_v8qi): Use new predicate.
5636 (vec_extract_evenv8qi): Remove endian check.
5637 (vec_extract_oddv8qi): Ditto.
5638 (vec_interleave_lowv4hi): Format change.
5639 (vec_interleave_highv4hi): Ditto.
5640 (mix2_even): Rename from mix2_r, add endian check.
5641 (mix2_odd): Rename from mux2_l, add endian check.
5642 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
5643 (vec_extract_evenodd_helper): Format change.
5644 (vec_extract_evenv4hi): Remove endian check.
5645 (vec_extract_oddv4hi): Remove endian check.
5646 (vec_interleave_lowv2si): Format change.
5647 (vec_interleave_highv2si): Format change.
5648 (vec_initv2si): Remove endian check.
5649 (vecinit_v2si): Add endian check.
5650 (reduc_splus_v2sf): Add endian check.
5651 (reduc_smax_v2sf): Ditto.
5652 (reduc_smin_v2sf): Ditto.
5653 (vec_initv2sf): Remove endian check.
5654 (fpack): Add endian check.
5655 (fswap): Add endian check.
5656 (vec_interleave_highv2sf): Add endian check.
5657 (vec_interleave_lowv2sf): Add endian check.
5658 (fmix_lr): Add endian check.
5659 (vec_setv2sf): Format change.
5660 (*vec_extractv2sf_0_be): Use shift to extract operand.
5661 (*vec_extractv2sf_1_be): New.
5662 (vec_pack_trunc_v4hi): Add endian check.
5663 (vec_pack_trunc_v2si): Format change.
5665 2011-02-04 Jakub Jelinek <jakub@redhat.com>
5668 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
5669 do bb, locus and block comparison and disallow loads if it is not set.
5670 (stmt_is_replaceable_p): New function.
5671 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
5673 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
5674 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
5676 * tree-flow.h (stmt_is_replaceable_p): New prototype.
5678 2011-02-04 Joseph Myers <joseph@codesourcery.com>
5680 * config/rs6000/xilinx.opt: New.
5681 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
5683 2011-02-04 Joseph Myers <joseph@codesourcery.com>
5685 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
5687 2011-02-03 Anatoly Sokolov <aesok@post.ru>
5689 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
5690 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
5691 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
5692 secondary_reload_info, xtensa_secondary_reload): Remove.
5693 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
5694 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
5695 (xtensa_preferred_reload_class): Make static. Change return and
5696 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
5697 Use CONST_DOUBLE_P predicate.
5698 (xtensa_preferred_output_reload_class): New function.
5699 (xtensa_secondary_reload): Make static.
5701 2011-02-03 Joseph Myers <joseph@codesourcery.com>
5703 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
5704 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
5705 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
5707 2011-02-03 Jakub Jelinek <jakub@redhat.com>
5710 * output.h (SECTION_RELRO): Define.
5711 (SECTION_MACH_DEP): Adjust.
5712 (get_variable_section): New prototype.
5713 * varpool.c (varpool_finalize_named_section_flags): New function.
5714 (varpool_assemble_pending_decls): Call it.
5715 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
5716 * cgraphunit.c (cgraph_output_in_order): Call
5717 varpool_finalize_named_section_flags.
5718 * varasm.c (get_section): Allow section flags conflicts between
5719 relro and read-only sections if the section hasn't been declared yet.
5720 Set SECTION_OVERRIDE after diagnosing section type conflict.
5721 (get_variable_section): No longer static.
5722 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
5723 readonly sections that need relocations.
5724 (decl_readonly_section_1): New function.
5725 (decl_readonly_section): Use it.
5728 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
5729 Steve Ellcey <sje@cup.hp.com>
5732 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
5733 if section attribute used.
5735 2011-02-03 Jakub Jelinek <jakub@redhat.com>
5737 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
5738 * config/darwin.c (SECTION_NO_ANCHOR): Define.
5739 (darwin_init_sections): Remove assertion.
5741 2011-02-03 Nick Clifton <nickc@redhat.com>
5743 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
5745 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
5746 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
5747 instead of "n" and "pz".
5748 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
5751 2011-02-03 Jakub Jelinek <jakub@redhat.com>
5754 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
5755 fma, expand FMA_EXPR as fma{,f,l} call.
5758 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
5759 copy them into a unsigned char variable and pass address of it to
5760 lto_output_data_stream.
5763 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
5764 around backend_init_target and lang_dependent_init_target calls.
5765 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
5766 (verify_cgraph_node): Don't call set_cfun here. Use
5767 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
5768 Set error_found for incorrectly represented calls to thunks.
5770 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
5773 PR rtl-optimization/43494
5774 * rtl.h (for_each_inc_dec_fn): New type.
5775 (for_each_inc_dec): Declare.
5776 * rtlanal.c (struct for_each_inc_dec_ops): New type.
5777 (for_each_inc_dec_find_inc_dec): New fn.
5778 (for_each_inc_dec_find_mem): New fn.
5779 (for_each_inc_dec): New fn.
5780 * dse.c (struct insn_size): Remove.
5781 (replace_inc_dec, replace_inc_dec_mem): Remove.
5782 (emit_inc_dec_insn_before): New fn.
5783 (check_for_inc_dec): Use it, along with for_each_inc_dec.
5784 (canon_address): Pass mem modes to cselib_lookup.
5785 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
5786 (cselib_lookup_from_insn): Likewise.
5787 (cselib_subst_to_values): Likewise.
5788 * cselib.c (find_slot_memmode): New var.
5789 (cselib_find_slot): New fn. Use it instead of
5790 htab_find_slot_with_hash everywhere.
5791 (entry_and_rtx_equal_p): Use find_slot_memmode.
5792 (autoinc_split): New fn.
5793 (rtx_equal_for_cselib_p): Rename and implement in terms of...
5794 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
5795 Deal with autoinc. Special-case recursion into MEMs.
5796 (cselib_hash_rtx): Likewise.
5797 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
5798 address and MEM modes.
5799 (cselib_subst_to_values): Add memmode, pass it on.
5801 (cselib_lookup): Add memmode argument, pass it on.
5802 (cselib_lookup_from_insn): Add memmode.
5803 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
5804 (struct cselib_record_autoinc_data): New.
5805 (cselib_record_autoinc_cb): New fn.
5806 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
5807 mode to cselib_lookup. Reset autoinced REGs here instead of...
5808 (cselib_process_insn): ... here.
5809 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
5811 (add_uses): Likewise, also to cselib_subst_to_values.
5812 (add_stores): Likewise.
5813 * sched-deps.c (add_insn_mem_dependence): Pass mode to
5814 cselib_subst_to_values.
5815 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
5816 * gcse.c (do_local_cprop): Adjusted.
5817 * postreload.c (reload_cse_simplify_set): Adjusted.
5818 (reload_cse_simplify_operands): Adjusted.
5819 * sel-sched-dump (debug_mem_addr_value): Pass mode.
5821 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
5823 PR tree-optimization/45122
5824 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
5825 unsafe assumptions when there's more than one loop exit.
5827 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
5830 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
5831 Document using vector double with the load/store builtins, and
5832 that the load/store builtins always use Altivec instructions.
5834 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
5835 to use altivec memory instructions, even on VSX.
5836 (vector_altivec_store_<mode>): Ditto.
5838 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
5841 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5842 V2DF, V2DI support to load/store overloaded builtins.
5844 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
5845 altivec load/store builtins for V2DF/V2DI types.
5847 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
5848 set avoid indexed addresses on power6 if -maltivec.
5849 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
5850 vector_altivec_load/vector_altivec_store builtins.
5851 (altivec_expand_st_builtin): Ditto.
5852 (altivec_expand_builtin): Add VSX memory builtins.
5853 (rs6000_init_builtins): Add V2DI types to internal types.
5854 (altivec_init_builtins): Add support for V2DF/V2DI altivec
5855 load/store builtins.
5856 (rs6000_address_for_altivec): Insure memory address is appropriate
5859 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
5860 vec_vsx_ld and vec_vsx_st.
5861 (vsx_store_<mode>): Ditto.
5863 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
5864 variables to hold long long types for VSX vector memory builtins.
5865 (RS6000_BTI_unsigned_long_long): Ditto.
5866 (long_long_integer_type_internal_node): Ditti.
5867 (long_long_unsigned_type_internal_node): Ditti.
5869 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
5870 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
5871 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
5873 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
5875 (vec_vsx_st): Ditto.
5877 2011-02-02 Joseph Myers <joseph@codesourcery.com>
5879 * config/pa/pa-hpux10.opt: New.
5880 * config/hpux11.opt (pthread): New Driver option.
5881 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
5882 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
5884 2011-02-02 Joseph Myers <joseph@codesourcery.com>
5886 * config/ia64/vms.opt: New.
5887 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
5889 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
5892 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
5893 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
5894 generator functions.
5895 (vsx_floatuns<VSi><mode>2): Ditto.
5896 (vsx_fix_trunc<mode><VSi>2): Ditto.
5897 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
5899 2011-02-02 Joseph Myers <joseph@codesourcery.com>
5901 * config/i386/djgpp.opt (posix): New Driver option.
5903 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
5905 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
5906 Move to the unsupported targets list.
5908 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
5910 PR rtl-optimization/47525
5911 * df-scan.c: Update copyright years.
5912 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
5913 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
5915 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5917 * config/i386/sysv4.h (TARGET_VERSION): Remove.
5918 (SUBTARGET_RETURN_IN_MEMORY): Remove.
5919 (ASM_OUTPUT_ASCII): Remove.
5920 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
5922 2011-02-02 Jeff Law <law@redhat.com>
5925 * reload.c (find_reloads_address): Handle reg+d address where both
5926 components are invalid by reloading the entire address.
5928 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
5929 Richard Guenther <rguenther@suse.de>
5931 PR tree-optimization/40979
5933 * passes.c (init_optimization_passes): After LIM call copy_prop
5934 and DCE to clean up.
5935 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
5937 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
5939 PR tree-optimization/47576
5940 PR tree-optimization/47555
5941 * doc/invoke.texi (scev-max-expr-complexity): Documented.
5942 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
5943 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
5944 * tree-scalar-evolution.c (follow_ssa_edge): Use
5945 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
5947 2011-02-02 Richard Guenther <rguenther@suse.de>
5949 PR tree-optimization/47566
5950 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
5952 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
5956 * tree-inline.c (declare_return_variable): Remove unused caller
5961 * tree-flow-inline.h (clear_is_used, is_used_p): New.
5962 * cfgexpand.c (account_used_vars_for_block): Use them.
5963 * tree-nrv.c (tree_nrv): Likewise.
5964 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
5965 (dump_scope_block): Likewise.
5966 (remove_unused_locals): Likewise.
5970 * tree-inline.c (declare_return_variable): Add result decl to
5971 local decls only once.
5972 * gimple-low.c (record_vars_into): Mark newly-created variables
5975 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
5981 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
5983 (no_real_insns_p, schedule_block, set_priorities): Drop special
5984 treatment of boundary debug insns.
5985 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
5986 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
5987 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
5988 (BOUNDARY_DEBUG_INSN_P): Likewise.
5989 (SCHEDULE_DEBUG_INSN_P): Likewise.
5990 * sched-rgn.c (init_ready_list): Drop special treatment of
5991 boundary debug insns.
5992 * final.c (rest_of_clean_state): Clear notes' BB.
5994 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5996 * config/openbsd.opt (assert=): New Driver option.
5998 2011-02-01 Joseph Myers <joseph@codesourcery.com>
6000 * config/i386/nto.opt: New.
6001 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
6003 2011-02-01 Joseph Myers <joseph@codesourcery.com>
6005 * config/i386/netware.opt: New.
6006 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
6008 2011-02-01 Joseph Myers <joseph@codesourcery.com>
6010 * config/interix.opt (posix): New Driver option.
6012 2011-02-01 DJ Delorie <dj@redhat.com>
6014 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
6016 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
6019 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
6021 PR tree-optimization/47561
6022 * toplev.c (process_options): Print the Graphite flags. Add
6023 flag_loop_flatten to the list of options requiring Graphite.
6025 2011-02-01 Joseph Myers <joseph@codesourcery.com>
6027 * config/i386/cygming.opt (posix): New Driver option.
6029 2011-02-01 Joseph Myers <joseph@codesourcery.com>
6031 * config/arm/vxworks.opt: New.
6032 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
6034 2011-02-01 Joseph Myers <joseph@codesourcery.com>
6036 * config/alpha/elf.opt: New.
6037 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
6038 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
6040 2011-02-01 Richard Guenther <rguenther@suse.de>
6042 PR tree-optimization/47559
6043 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
6044 store-motion on references that can throw.
6046 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
6048 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
6049 * tree-pass.h (TDF_CSELIB): New macro.
6050 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
6051 cselib_lookup): Check for it rather than for TDF_DETAILS.
6053 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
6056 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
6059 * opts.c (finish_options): Don't add x_aux_base_name if it is
6062 2011-02-01 Richard Guenther <rguenther@suse.de>
6064 PR tree-optimization/47555
6066 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
6068 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
6070 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
6073 * config/lm32/t-lm32: Add multilib for all CPU options.
6075 2011-02-01 Richard Guenther <rguenther@suse.de>
6077 PR tree-optimization/47541
6078 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
6079 sure to have a field at offset zero.
6081 2011-01-31 Joseph Myers <joseph@codesourcery.com>
6083 * config/arc/arc.opt (EB, EL): New Driver options.
6085 2011-01-31 Joseph Myers <joseph@codesourcery.com>
6087 * config/alpha/osf5.opt: New.
6088 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
6090 2011-01-31 Joseph Myers <joseph@codesourcery.com>
6092 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
6094 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
6096 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
6098 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
6099 is an alias of -floop-interchange and that it requires the
6100 Graphite infrastructure.
6101 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
6102 flag_loop_interchange based on the value of flag_tree_loop_linear.
6104 2011-01-31 Jakub Jelinek <jakub@redhat.com>
6105 Richard Guenther <rguenther@suse.de>
6107 PR tree-optimization/47538
6108 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
6109 type instead of r1type, except for comparisons. For right
6110 shifts and comparisons punt if there are mismatches in
6111 sizetype vs. non-sizetype types.
6113 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6115 * doc/sourcebuild.texi (Effective-Target Keywords): Document
6118 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6120 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
6122 * configure: Regenerate.
6124 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6126 * configure.ac (gcc_cv_ld_static_option): Define.
6127 (gcc_cv_ld_dynamic_option): Define.
6128 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
6130 (HAVE_LD_STATIC_DYNAMIC): Update message.
6131 (LD_STATIC_OPTION): Define.
6132 (LD_DYNAMIC_OPTION): Define.
6133 * configure: Regenerate.
6134 * config.in: Regenerate.
6135 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
6136 HAVE_LD_STATIC_DYNAMIC]: Use them.
6138 2011-01-31 Nick Clifton <nickc@redhat.com>
6140 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
6141 registers inside interrupt handlers if the handler is not a leaf
6144 2011-01-31 Nick Clifton <nickc@redhat.com>
6146 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
6147 reg_renumber returning an INVALID_REGNUM.
6149 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
6152 * doc/install.texi: Document host options discarded when cross
6153 configuring target libraries.
6155 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
6158 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
6161 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
6163 (no_real_insns_p, schedule_block, set_priorities): Drop special
6164 treatment of boundary debug insns.
6165 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
6166 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
6167 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
6168 (BOUNDARY_DEBUG_INSN_P): Likewise.
6169 (SCHEDULE_DEBUG_INSN_P): Likewise.
6170 * sched-rgn.c (init_ready_list): Drop special treatment of
6171 boundary debug insns.
6172 * final.c (rest_of_clean-state): Clear notes' BB.
6174 2011-01-31 Alan Modra <amodra@gmail.com>
6176 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
6177 toc relative expressions as we do in print_operand_address.
6179 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
6181 * doc/extend.texi: Follow spelling conventions.
6182 * doc/invoke.texi: Fix a typo.
6184 2011-01-30 Joseph Myers <joseph@codesourcery.com>
6186 * config/hpux11.opt: New.
6187 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
6188 ia64*-*-hpux*): Use hpux11.opt.
6190 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
6192 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
6195 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
6197 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
6200 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
6202 * doc/install.texi (Binaries): Remove outdated reference for
6203 Motorola 68HC11/68HC12 downloads.
6205 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
6207 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
6210 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
6213 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
6216 2011-01-28 Ahmad Sharif <asharif@google.com>
6218 * value-prof.c (check_counter): Corrected error message.
6220 2011-01-29 Jie Zhang <jie@codesourcery.com>
6222 * config/arm/arm.c (arm_legitimize_reload_address): New.
6223 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
6224 arm_legitimize_reload_address.
6225 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
6227 2011-01-28 Ian Lance Taylor <iant@google.com>
6229 * godump.c (go_define): Ignore macros whose definitions include
6230 two adjacent operands.
6232 2011-01-28 Jakub Jelinek <jakub@redhat.com>
6235 * varasm.c (force_const_mem): Store copy of x in desc->constant
6236 instead of x itself.
6237 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
6238 itself into REG_EQUAL note.
6240 2011-01-28 Joseph Myers <joseph@codesourcery.com>
6242 * config/freebsd.opt (posix, rdynamic): New Driver options.
6244 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6246 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
6248 * configure: Regenerate.
6250 2011-01-27 Joseph Myers <joseph@codesourcery.com>
6252 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
6253 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
6255 2011-01-27 Anatoly Sokolov <aesok@post.ru>
6257 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
6258 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
6259 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6260 (s390_preferred_reload_class): Make static. Change return and
6261 'rclass' argument type to reg_class_t.
6263 2011-01-27 Jan Hubicka <jh@suse.cz>
6266 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
6267 (process_function_and_variable_attributes): Check defined weakrefs.
6269 2011-01-27 Martin Jambor <mjambor@suse.cz>
6271 PR tree-optimization/47228
6272 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
6273 build_ref_for_offset.
6275 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6277 * config/spu/spu-elf.h (ASM_SPEC): Remove.
6279 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
6281 PR rtl-optimization/46856
6282 * postreload.c (reload_combine_recognize_const_pattern): Do not
6283 separate cc0 setter and user on cc0 targets.
6285 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
6288 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
6289 passed a VOID_TYPE expression, immediately emit an error and
6290 return error_mark_node.
6292 2011-01-26 Jeff Law <law@redhat.com>
6294 PR rtl-optimization/47464
6295 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
6296 rather than may_trap_p as needed.
6298 2011-01-26 DJ Delorie <dj@redhat.com>
6300 PR rtl-optimization/46878
6301 * combine.c (insn_a_feeds_b): Check for the implicit cc0
6302 setter/user dependency as well.
6304 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
6306 PR rtl-optimization/44469
6307 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
6308 after removing trivially dead basic blocks.
6310 2011-01-26 Joseph Myers <joseph@codesourcery.com>
6312 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
6313 * config/frv/frv.h (LINK_SPEC): Likewise.
6314 * config/i386/netware.h (LINK_SPEC): Likewise.
6315 * config/m68k/linux.h (ASM_SPEC): Likewise.
6316 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
6317 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
6318 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
6319 * config/sparc/linux.h (ASM_SPEC): Likewise.
6320 * config/sparc/linux64.h (ASM_SPEC): Likewise.
6321 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
6323 2011-01-26 Joseph Myers <joseph@codesourcery.com>
6325 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
6326 * config/frv/frv.h (ASM_SPEC): Likewise.
6327 * config/m68k/linux.h (ASM_SPEC): Likewise.
6328 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
6329 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
6330 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
6331 * config/sparc/linux.h (ASM_SPEC): Likewise.
6332 * config/sparc/linux64.h (ASM_SPEC): Likewise.
6333 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
6335 2011-01-26 Joseph Myers <joseph@codesourcery.com>
6337 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
6338 * config/frv/frv.h (LINK_SPEC): Likewise.
6339 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
6341 2011-01-26 Joseph Myers <joseph@codesourcery.com>
6343 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
6344 * config/frv/frv.h (ASM_SPEC): Likewise.
6345 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
6346 * config/m68k/linux.h (ASM_SPEC): Likewise.
6347 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
6348 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
6349 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
6350 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
6351 * config/sparc/linux.h (ASM_SPEC): Likewise.
6352 * config/sparc/linux64.h (ASM_SPEC): Likewise.
6353 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
6354 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
6356 2011-01-26 Steve Ellcey <sje@cup.hp.com>
6359 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
6361 (vec_extract_evenodd_help): Ditto.
6362 (vec_extract_evenv4hi): Ditto.
6363 (vec_extract_oddv4hi): Ditto.
6364 (vec_interleave_lowv2si): Ditto.
6365 (vec_interleave_highv2si): Ditto.
6366 (vec_extract_evenv2si): Ditto.
6367 (vec_extract_oddv2si: Ditto.
6368 (vec_pack_trunc_v2si): Ditto.
6370 2011-01-22 Jan Hubicka <jh@suse.cz>
6373 * cgraph.h (cgraph_local_info): New field can_change_signature.
6374 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
6375 signature can change.
6376 (ipcp_estimate_growth): Call sequence simplify only if calle signature
6378 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
6379 (cgraph_function_versioning): We can not change signature of functions
6380 that don't allow that.
6381 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
6382 (lto_input_node): Likewise.
6383 * ipa-inline.c (compute_inline_parameters): Compute
6384 local.can_change_signature.
6385 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
6386 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
6387 functions that can not change signature.
6388 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
6389 init_cumulative_args): Do not use local calling conventions
6390 for functions that can not change signature.
6392 2011-01-22 Jan Hubicka <jh@suse.cz>
6394 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
6396 2011-01-26 Richard Guenther <rguenther@suse.de>
6398 PR tree-optimization/47190
6399 * cgraphunit.c (process_common_attributes): New function.
6400 (process_function_and_variable_attributes): Use it.
6402 2011-01-26 Richard Guenther <rguenther@suse.de>
6405 * cgraphbuild.c (record_eh_tables): Record reference to personality
6408 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
6411 * sel-sched.c (moveup_expr): Don't let debug insns prevent
6412 non-debug insns from moving up.
6414 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
6417 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
6418 t-dlldir{,-x} fragment for build and add it to tmake_file.
6419 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
6420 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
6421 * config/i386/t-dlldir: New file.
6422 (SHLIB_DLLDIR): Define.
6423 * config/i386/t-dlldir-x: New file.
6424 (SHLIB_DLLDIR): Define.
6425 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
6426 (SHLIB_INSTALL): Use it.
6428 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
6431 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
6432 lower bound of the allowed Thumb-2 coprocessor load/store
6433 index range to -256. Add explaining comment.
6435 2011-01-25 Ian Lance Taylor <iant@google.com>
6437 * godump.c (go_define): Improve lexing of macro expansion to only
6438 accept expressions which match Go spec.
6440 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
6443 * tree.c (handle_dll_attribute): Handle it.
6444 * doc/extend.texi (@item dllexport): Mention it.
6445 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
6447 2011-01-25 Ian Lance Taylor <iant@google.com>
6449 PR tree-optimization/26854
6450 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
6451 (decl_jump_unsafe): Move higher in file, with no other change.
6452 (bind): Set has_jump_unsafe_decl if appropriate.
6453 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
6454 (check_earlier_gotos): Likewise.
6455 (c_check_switch_jump_warnings): Likewise.
6457 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
6459 * doc/invoke.texi (Warning Options): Add missing hyphen.
6460 (-fprofile-dir): Minor grammatical fixes.
6461 (-fbranch-probabilities): Likewise.
6463 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
6467 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
6469 (no_real_insns_p, schedule_block, set_priorities): Drop special
6470 treatment of boundary debug insns.
6471 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
6472 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
6473 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
6474 (BOUNDARY_DEBUG_INSN_P): Likewise.
6475 (SCHEDULE_DEBUG_INSN_P): Likewise.
6476 * sched-rgn.c (init_ready_list): Drop special treatment of
6477 boundary debug insns.
6478 * final.c (rest_of_clean-state): Clear notes' BB.
6480 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6482 * Makefile.in (LAMBDA_H): Removed.
6483 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
6484 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
6485 lambda-trans.o, and tree-loop-linear.o.
6486 (lto-symtab.o): Remove dependence on LAMBDA_H.
6487 (tree-loop-linear.o): Remove rule.
6488 (lambda-mat.o): Same.
6489 (lambda-trans.o): Same.
6490 (lambda-code.o): Same.
6491 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
6492 (tree-vect-slp.o): Same.
6493 * hwint.h (gcd): Moved here.
6494 (least_common_multiple): Same.
6495 * lambda-code.c: Removed.
6496 * lambda-mat.c: Removed.
6497 * lambda-trans.c: Removed.
6498 * lambda.h: Removed.
6499 * tree-loop-linear.c: Removed.
6500 * lto-symtab.c: Do not include lambda.h.
6501 * omega.c (gcd): Removed.
6502 * passes.c (init_optimization_passes): Remove pass_linear_transform.
6503 * tree-data-ref.c (print_lambda_vector): Moved here.
6504 (lambda_vector_copy): Same.
6505 (lambda_matrix_copy): Same.
6506 (lambda_matrix_id): Same.
6507 (lambda_vector_first_nz): Same.
6508 (lambda_matrix_row_add): Same.
6509 (lambda_matrix_row_exchange): Same.
6510 (lambda_vector_mult_const): Same.
6511 (lambda_vector_negate): Same.
6512 (lambda_matrix_row_negate): Same.
6513 (lambda_vector_equal): Same.
6514 (lambda_matrix_right_hermite): Same.
6515 * tree-data-ref.h: Do not include lambda.h.
6516 (lambda_vector): Moved here.
6517 (lambda_matrix): Same.
6518 (dependence_level): Same.
6519 (lambda_transform_legal_p): Removed declaration.
6520 (lambda_collect_parameters): Same.
6521 (lambda_compute_access_matrices): Same.
6522 (lambda_vector_gcd): Same.
6523 (lambda_vector_new): Same.
6524 (lambda_vector_clear): Same.
6525 (lambda_vector_lexico_pos): Same.
6526 (lambda_vector_zerop): Same.
6527 (lambda_matrix_new): Same.
6528 * tree-flow.h (least_common_multiple): Removed declaration.
6529 * tree-parloops.c (lambda_trans_matrix): Moved here.
6531 (LTM_ROWSIZE): Same.
6532 (LTM_COLSIZE): Same.
6533 (LTM_DENOMINATOR): Same.
6534 (lambda_trans_matrix_new): Same.
6535 (lambda_matrix_vector_mult): Same.
6536 (lambda_transform_legal_p): Same.
6537 * tree-pass.h (pass_linear_transform): Removed declaration.
6538 * tree-ssa-loop.c (tree_linear_transform): Removed.
6539 (gate_tree_linear_transform): Removed.
6540 (pass_linear_transform): Removed.
6541 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
6542 flag_loop_interchange.
6544 2011-01-25 Jakub Jelinek <jakub@redhat.com>
6546 PR tree-optimization/47265
6547 PR tree-optimization/47443
6548 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
6549 if name still has some uses.
6551 2011-01-25 Martin Jambor <mjambor@suse.cz>
6553 PR tree-optimization/47382
6554 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
6555 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
6557 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
6559 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
6560 sjlj_except_unwind_info.
6562 2011-01-25 Richard Guenther <rguenther@suse.de>
6564 PR tree-optimization/47426
6565 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
6566 visible functions results escape.
6568 2011-01-25 Jakub Jelinek <jakub@redhat.com>
6571 * config/arm/arm.c (any_sibcall_uses_r3): New function.
6572 (arm_get_frame_offsets): Use it.
6574 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6575 Jakub Jelinek <jakub@redhat.com>
6577 PR tree-optimization/47271
6578 * tree-if-conv.c (bb_postdominates_preds): New.
6579 (if_convertible_bb_p): Call bb_postdominates_preds.
6580 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
6581 (predicate_scalar_phi): Call bb_postdominates_preds.
6583 2011-01-25 Nick Clifton <nickc@redhat.com>
6585 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
6586 * config/rx/rx.c (rx_function_value): Likewise.
6587 (rx_promote_function_mode): Likewise.
6588 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
6589 in order to make it legitimate.
6590 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
6591 make sure that the first operand is the same as the result register.
6592 (addsi3_unspec): Delete.
6593 (subdi3): Do not accept immediate operands.
6594 (subdi3_internal): Likewise.
6596 2011-01-25 Jeff Law <law@redhat.com>
6598 PR rtl-optimization/37273
6599 * ira-costs.c (scan_one_insn): Detect constants living in memory and
6600 handle them like argument loads from stack slots. Do not double
6601 count memory for memory constants and argument loads from stack slots.
6603 2011-01-25 Jakub Jelinek <jakub@redhat.com>
6605 PR tree-optimization/47427
6606 PR tree-optimization/47428
6607 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
6608 coalesce if the new root var would be TREE_READONLY.
6610 2011-01-25 Richard Guenther <rguenther@suse.de>
6613 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
6614 correct type for TBAA.
6616 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6618 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
6619 (close_phi_written_to_memory): Call for_each_index with
6620 dr_indices_valid_in_loop.
6622 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6624 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
6625 when it is initialized.
6627 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6629 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
6630 call to graphite_find_data_references_in_stmt.
6631 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
6632 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
6633 call to graphite_find_data_references_in_stmt.
6634 (analyze_drs_in_stmts): Same.
6635 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
6636 in which the scalar analysis of indices is performed.
6637 (create_data_ref): Same. Update call to dr_analyze_indices.
6638 (find_data_references_in_stmt): Update call to create_data_ref.
6639 (graphite_find_data_references_in_stmt): Same.
6640 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
6642 (create_data_ref): Same.
6643 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
6644 call to create_data_ref.
6646 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6648 * graphite-sese-to-poly.c (build_poly_scop): Move
6649 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
6651 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6653 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
6654 VAR_DECL, PARM_DECL, and RESULT_DECL.
6656 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6658 * graphite-dependences.c (reduction_dr_1): Allow several reductions
6660 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
6661 that have already been marked as PBB_IS_REDUCTION.
6663 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6665 * graphite-scop-detection.c (same_close_phi_node): New.
6666 (remove_duplicate_close_phi): New.
6667 (make_close_phi_nodes_unique): New.
6668 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
6670 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6672 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
6673 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
6674 of both data references to be the same.
6676 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6678 * graphite-dependences.c (build_lexicographical_constraint): Remove
6680 (build_lexicographical_constraint): Adjust call to
6681 ppl_powerset_is_empty.
6682 (dependence_polyhedron): Same.
6683 (graphite_legal_transform_dr): Same.
6684 (graphite_carried_dependence_level_k): Same.
6685 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
6687 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
6689 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6691 * graphite-sese-to-poly.c
6692 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
6693 (close_phi_written_to_memory): New.
6694 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
6697 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6699 * doc/install.texi: Update the expected version number of PPL to 0.11.
6700 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
6701 #if PPL_VERSION_MINOR < 11.
6703 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6705 * graphite-dependences.c: Include graphite-cloog-util.h.
6706 (new_poly_ddr): Inlined into dependence_polyhedron.
6707 (free_poly_ddr): Moved close by new_poly_ddr.
6708 (dependence_polyhedron_1): Renamed dependence_polyhedron.
6709 Early return NULL when ppl_powerset_is_empty returns true.
6710 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
6711 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
6712 (graphite_legal_transform_dr): Call new_poly_ddr.
6713 (graphite_carried_dependence_level_k): Same.
6714 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
6715 (dot_transformed_deps_stmt_1): Removed.
6716 (dot_deps_stmt_1): Call dot_deps_stmt_2.
6717 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
6718 (dot_deps_1): Call dot_deps_2.
6719 * Makefile.in (graphite-dependences.o): Add missing dependence on
6720 graphite-cloog-util.h.
6722 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6724 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
6725 (build_lexicographical_constraint): Same.
6726 (dependence_polyhedron_1): Same.
6727 (graphite_legal_transform_dr): Same.
6728 (graphite_carried_dependence_level_k): Same.
6729 * graphite-ppl.c (ppl_powerset_is_empty): New.
6730 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
6731 * tree-data-ref.c (dump_data_reference): Print the basic block index.
6733 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6735 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
6736 the "a followed by b" relation and document it.
6738 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6740 * graphite-dependences.c (build_lexicographical_constraint): Stop the
6741 iteration when the bag of constraints is empty.
6743 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6745 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
6747 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6749 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
6750 nest and two loop depths as parameters.
6751 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
6752 lst_perfect_nestify.
6754 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6756 * graphite-dependences.c (print_pddr): Call
6757 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
6759 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6761 * graphite-ppl.c (debug_gmp_value): New.
6762 * graphite-ppl.h (debug_gmp_value): Declared.
6764 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
6766 * doc/install.texi: Document availability of cloog-0.16.
6768 2011-01-25 Vladimir Kargov <kargov@gmail.com>
6770 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
6771 invalid postdominance info.
6773 2011-01-24 Jan Hubicka <jh@suse.cz>
6776 * doc/extend.texi (weak pragma): Drop claim that it must
6777 appear before definition.
6778 * varasm.c (merge_weak, declare_weak): Only sanity check
6779 that DECL is not output at a time it is declared weak.
6781 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
6783 * machmode.def: Fixed comments.
6785 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
6787 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
6789 2011-01-24 Paul Koning <ni1d@arrl.net>
6791 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
6794 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
6797 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
6798 (block_info): Add scanned and prev.
6799 (move_or_delete_vzeroupper_2): Return if the basic block
6800 has been scanned and the upper 128bit state is unchanged
6802 (move_or_delete_vzeroupper_1): Return true if the exit
6804 (move_or_delete_vzeroupper): Visit basic blocks using the
6805 work-list based algorithm based on vt_find_locations in
6808 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
6810 2011-01-24 Nick Clifton <nickc@redhat.com>
6812 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
6813 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
6814 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
6815 then define __v850e1__.
6816 * doc/invoke.texi: Document -mv850es.
6818 2011-01-24 Richard Henderson <rth@redhat.com>
6820 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
6821 compound unordered comparisons.
6822 * config/rx/rx.c (rx_split_fp_compare): Remove.
6823 * config/rx/rx-protos.h: Update.
6824 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
6825 (cbranchsf4): Don't call rx_split_fp_compare.
6826 (*cbranchsf4): Use rx_split_cbranch.
6827 (*cmpsf): Don't accept "i" constraint.
6828 (*conditional_branch): Only valid after reload.
6829 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
6831 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6834 * config/rs6000/altivec.md (vector constant splitters): Add
6835 support for creating vector single precision constants if -mvsx is
6836 used and we would create the constant using Altivec primitives.
6838 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
6839 Richard Sandiford <rdsandiford@googlemail.com>
6841 PR rtl-optimization/47166
6842 * reload1.c (emit_reload_insns): Disable the spill_reg_store
6843 mechanism for PRE_MODIFY and POST_MODIFY.
6844 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
6847 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
6849 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
6851 2011-01-22 Jan Hubicka <jh@suse.cz>
6854 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
6856 2011-01-22 Jan Hubicka <jh@suse.cz>
6858 PR tree-optimization/43884
6860 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
6861 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
6863 2011-01-22 Anatoly Sokolov <aesok@post.ru>
6865 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6866 * config/s390/s390.c (s390_register_move_cost,
6867 s390_memory_move_cost): New.
6868 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
6870 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6873 * except.c (sjlj_assign_call_site_values): Move setting the
6874 crtl->uses_eh_lsda flag to ...
6875 (sjlj_mark_call_sites): ... here.
6876 (sjlj_emit_function_enter): Support NULL dispatch label.
6877 (sjlj_build_landing_pads): In a function with no landing pads
6878 that still has must-not-throw regions, generate code to register
6879 a personality function with empty LSDA.
6881 2011-01-21 Richard Henderson <rth@redhat.com>
6883 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
6885 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
6887 * compare-elim.c: New file.
6888 * Makefile.in (OBJS-common): Add it.
6889 (compare-elim.o): New.
6890 * common.opt (fcompare-elim): New.
6891 * opts.c (default_options_table): Add OPT_fcompare_elim.
6892 * tree-pass.h (pass_compare_elim_after_reload): New.
6893 * passes.c (init_optimization_passes): Add it.
6894 * recog.h: Protect against re-inclusion.
6895 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
6896 * doc/invoke.texi (-fcompare-elim): Document it.
6897 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
6898 * doc/tm.texi: Rebuild.
6900 2011-01-22 Nick Clifton <nickc@redhat.com>
6902 * config/rx/rx.md (cstoresf4): Pass comparison operator to
6903 rx_split_fp_compare.
6905 2011-01-22 Nick Clifton <nickc@redhat.com>
6907 * config/rx/rx.md (UNSPEC_CONST): New.
6908 (deallocate_and_return): Wrap the amount popped off the stack in
6909 an UNSPEC_CONST in order to stop it being rejected by
6910 -mmax-constant-size.
6911 (pop_and_return): Add a "(return)" rtx.
6912 (call): Drop the immediate operand.
6913 (call_internal): Likewise.
6914 (call_value): Likewise.
6915 (call_value_internal): Likewise.
6916 (sibcall_internal): Likewise.
6917 (sibcall_value_internal): Likewise.
6918 (sibcall): Likewise. Generate an explicit call using
6920 (sibcall_value): Likewise.
6921 (mov<>): FAIL if a constant operand is not legitimate.
6922 (addsi3_unpsec): New pattern.
6924 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
6925 (ok_for_max_constant): New function.
6926 (gen_safe_add): New function.
6927 (rx_expand_prologue): Use gen_safe_add.
6928 (rx_expand_epilogue): Likewise.
6929 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
6932 2011-01-21 Jeff Law <law@redhat.com>
6934 PR tree-optimization/47053
6935 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
6936 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
6937 statements are deleted.
6938 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
6939 is nonempty, then purge dead edges and cleanup the CFG.
6941 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
6945 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
6947 * tree-dfa.c (create_var_ann): Mark variable as used.
6949 2011-01-21 Jakub Jelinek <jakub@redhat.com>
6952 * except.c (convert_to_eh_region_ranges): Emit queued no-region
6953 notes from other section in hot/cold partitioning even if
6954 last_action is -3. Increment call_site_base.
6956 PR rtl-optimization/47366
6957 * fwprop.c (forward_propagate_into): Return bool. If
6958 any changes are made, -fnon-call-exceptions is used and
6959 REG_EH_REGION note is present, call purge_dead_edges
6960 and return true if it purged anything.
6961 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
6962 any EH edges were purged.
6964 2011-01-21 Jeff Law <law@redhat.com>
6966 PR rtl-optimization/41619
6967 * caller-save.c (setup_save_areas): Break out code to determine
6968 which hard regs are live across calls by examining the reload chains
6969 so that it is always used.
6970 Eliminate code which checked REG_N_CALLS_CROSSED.
6972 2011-01-21 Jakub Jelinek <jakub@redhat.com>
6974 PR tree-optimization/47355
6975 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
6976 NOP has non-debug uses beyond PHIs in new_bb.
6978 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
6981 * cfgexpand.c (account_used_vars_for_block): Only account vars
6982 that are annotated as used.
6983 (estimated_stack_frame_size): Don't set TREE_USED.
6984 * tree-dfa.c (create_var_ann): Mark variable as used.
6986 2011-01-21 Richard Guenther <rguenther@suse.de>
6989 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
6991 2011-01-21 Richard Guenther <rguenther@suse.de>
6993 PR tree-optimization/47365
6994 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
6995 (vn_reference_lookup_pieces): Adjust.
6996 (vn_reference_lookup): Likewise.
6997 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
6998 (vn_reference_lookup_3): Only look through kills if in
6999 VN_WALKREWRITE mode.
7000 (vn_reference_lookup_pieces): Adjust.
7001 (vn_reference_lookup): Likewise.
7002 (visit_reference_op_load): Likewise.
7003 (visit_reference_op_store): Likewise.
7004 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
7005 (compute_avail): Likewise.
7006 (eliminate): Likewise.
7008 2011-01-21 Jakub Jelinek <jakub@redhat.com>
7010 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
7011 DECL_IGNORED_P non-reg vars if they are used.
7013 PR tree-optimization/47391
7014 * varpool.c (const_value_known_p): Return false if
7017 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
7020 * config/i386/i386.c (ix86_local_alignment): Handle
7021 case for va_list_type_node is nil.
7022 (ix86_canonical_va_list_type): Likewise.
7024 2011-01-21 Alan Modra <amodra@gmail.com>
7026 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
7027 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
7029 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7031 * config/arm/arm.md (define_attr type): Rename f_load
7032 and f_store to f_fpa_load and f_fpa_store. Update.
7033 (write_conflict): Deal with rename fallout.
7034 (*push_fp_multi): Likewise.
7035 * config/arm/fpa.md (f_load): Use f_fpa_load.
7036 (f_store): Use f_fpa_store.
7037 (*movsf_fpa): Likewise.
7038 (*movdf_fpa): Likewise.
7039 (*movxf_fpa): Likewise.
7040 (*thumb2_movsf_fpa): Likewise.
7041 (*thumb2_movdf_fpa): Likewise.
7042 (*thumb2_movxf_fpa): Likewise.
7043 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
7044 f_loadd and f_stored.
7045 (*thumb2_movdi_vfp): Likewise.
7046 (*thumb2_movsf_vfp): Fix attribute to f_loads.
7047 (*thumb2_movsi_vfp): Likewise.
7048 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
7049 Use f_loads instead of f_load.
7050 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
7052 2011-01-20 Anatoly Sokolov <aesok@post.ru>
7054 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7055 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
7056 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7057 (xtensa_mode_dependent_address_p): New function.
7058 (constantpool_address_p): Make static. Change return type to bool.
7059 Change argument type to const_rtx. Use CONST_INT_P predicate.
7061 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
7064 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
7066 2011-01-20 Jakub Jelinek <jakub@redhat.com>
7069 * cfgexpand.c (expand_debug_expr): Instead of generating
7070 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
7073 2011-01-20 Richard Guenther <rguenther@suse.de>
7076 * tree-inline.c (remap_gimple_op_r): Recurse manually for
7077 the pointer operand of MEM_REFs.
7079 2011-01-20 Jakub Jelinek <jakub@redhat.com>
7081 PR tree-optimization/46130
7082 * ipa-split.c (consider_split): If return_bb contains non-virtual
7083 PHIs other than for retval or if split_function would not adjust it,
7086 2011-01-20 Richard Guenther <rguenther@suse.de>
7088 PR tree-optimization/47167
7089 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
7090 Revert previous change, only avoid enumeral type changes.
7092 2011-01-19 Mike Stump <mikestump@comcast.net>
7094 * doc/tm.texi.in (BRANCH_COST): Englishify.
7095 * doc/tm.texi (BRANCH_COST): Likewise.
7097 2011-01-19 Dodji Seketeli <dodji@redhat.com>
7100 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
7101 (gen_scheduled_generic_parms_dies): New functions.
7102 (gen_struct_or_union_type_die): Schedule template parameters DIEs
7103 generation for the end of CU compilation.
7104 (dwarf2out_finish): Generate template parameters DIEs here.
7106 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
7109 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
7110 debug bind stmt on merge edges.
7112 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
7116 * function.c (instantiate_expr): Instantiate incoming rtl of
7117 implicit arguments, and recurse on VALUE_EXPRs.
7118 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
7119 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
7121 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
7123 * c-parser.c (c_parser_for_statement): Initialize
7124 collection_expression.
7126 2011-01-19 Joseph Myers <joseph@codesourcery.com>
7128 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
7130 2011-01-19 Joseph Myers <joseph@codesourcery.com>
7132 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
7133 (LINK_SHLIB_SPEC): Don't use %(link_path).
7134 (SUBTARGET_EXTRA_SPECS): Remove link_path.
7136 2011-01-19 Joseph Myers <joseph@codesourcery.com>
7138 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
7139 (NO_SHARED_LIB_SUPPORT): Remove.
7140 (LINK_SHLIB_SPEC): Remove one conditional definition.
7142 2011-01-19 Joseph Myers <joseph@codesourcery.com>
7144 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
7146 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
7147 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
7148 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
7149 %{call_shared} and conditionals on these options not being passed.
7150 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
7153 2011-01-19 Jakub Jelinek <jakub@redhat.com>
7155 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
7158 * ipa-split.c: Spelling fixes.
7160 2011-01-19 Richard Henderson <rth@redhat.com>
7162 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
7163 (*mulsi3): Likewise.
7165 * longlong.h [__mn10300__] (count_leading_zeros): New.
7166 [__mn10300__] (umul_ppmm, smul_ppmm): New.
7167 [__mn10300__] (add_ssaaaa, subddmmss): New.
7168 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
7169 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
7171 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7173 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
7175 2011-01-19 Richard Henderson <rth@redhat.com>
7177 * config/mn10300/mn10300.md (addsi3_flags): New.
7178 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
7179 (subsi3_flags, subc_internal, subdi3): New.
7180 (subdi3_internal, *subdi3_degenerate): New.
7181 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
7183 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
7184 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
7185 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
7186 * config/mn10300/mn10300-protos.h: Update.
7187 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
7188 (return_ret): Likewise. Rename from return_internal_regs.
7189 (return_internal): Remove.
7191 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
7192 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
7193 (mn10300_legitimate_constant_p): Likewise.
7194 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
7195 (mn10300_frame_size): New.
7196 (mn10300_expand_prologue): Use it.
7197 (mn10300_expand_epilogue): Likewise.
7198 (mn10300_initial_offset): Likewise.
7199 * config/mn10300/mn10300-protos.h: Update.
7200 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
7201 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
7202 (prologue, epilogue, return_internal): Tidy output code.
7203 (mn10300_store_multiple_operation, return): Likewise.
7204 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
7205 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
7206 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
7207 (load_pic, am33_load_pic): New.
7208 (mn10300_load_pic0, mn10300_load_pic1): New.
7210 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
7211 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
7212 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
7213 (cc_flags_for_mode, cc_flags_for_code): New.
7214 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
7215 overflow flag is not valid. Validate that the flags we need
7216 for the comparison are valid.
7217 (mn10300_output_cmp): Remove.
7218 (mn10300_output_add): New.
7219 (mn10300_select_cc_mode): Use cc_flags_for_code.
7220 (mn10300_split_cbranch): New.
7221 (mn10300_match_ccmode): New.
7222 (mn10300_split_and_operand_count): New.
7223 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
7225 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
7226 (addsi3): ... here. Use mn10300_output_add.
7227 (*addsi3_flags): New.
7228 (*am33_subsi3, *mn10300_subsi3): Merge...
7229 (subsi3): ... here. Use attribute isa.
7230 (*subsi3_flags): New.
7231 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
7233 (*am33_andsi3, *mn10300_andsi3): Merge...
7235 (*andsi3_flags): New.
7236 (andsi3 splitters): New.
7237 (*am33_iorsi3, *mn10300_iorsi3): Merge...
7239 (*iorsi3_flags): New.
7240 (*am33_xorsi3, *mn10300_xorsi3): Merge...
7242 (*xorsi3_flags): New.
7243 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
7244 (one_cmplsi2): ... here.
7245 (*one_cmplsi2_flags): New.
7246 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
7247 instead of "dax" in constraints. Use mn10300_split_cbranch.
7248 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
7249 use matching constraints to eliminate a self-comparison.
7250 (*integer_conditional_branch): Rename from integer_conditional_branch.
7251 Use int_mode_flags to match CC_REG.
7252 (*cbranchsi4_btst, *btstsi): New.
7253 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
7254 mn10300_split_cbranch.
7255 (*am33_cmpsf): Rename from am33_cmpsf.
7256 (*float_conditional_branch): Rename from float_conditional_branch.
7257 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
7258 (zero_extendqisi2): ... here.
7259 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
7260 (zero_extendhisi2): ... here.
7261 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
7262 (extendqisi2): ... here.
7263 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
7264 (extendhisi2): ... here.
7265 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
7266 (ashlsi3): ... here.
7267 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
7268 (lshrsi3): ... here.
7269 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
7270 (ashrsi3): ... here.
7271 (consecutive add peephole): Remove.
7272 * config/mn10300/predicates.md (label_ref_operand): New.
7273 (int_mode_flags): New.
7274 (CCZN_comparison_operator): New.
7276 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
7277 (throughput_42_latency_43): New reservation.
7278 (mulsidi3, umulsidi3): New expanders.
7279 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
7280 the MDR register to allocation; separately allocate the low and
7281 high parts of the DImode result.
7282 (umulsidi3_internal): Similarly.
7283 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
7284 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
7285 (udivsi3, umodsi3): Remove.
7286 (udivmodsi4, divmodsi4): New expanders.
7287 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
7288 (*divmodsi4): Simiarly.
7289 (ext_internal): New.
7291 * config/mn10300/constraints.md ("z"): New constraint.
7292 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
7293 (FIXED_REGISTERS): Don't fix MDR.
7294 (CALL_USED_REGSITERS): Reformat nicely.
7295 (REG_ALLOC_ORDER): Add MDR.
7296 (enum regclass): Add MDR_REGS.
7297 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
7298 (IRA_COVER_CLASSES): Add MDR_REGS.
7299 (REGNO_REG_CLASS): Handle MDR_REG.
7300 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
7301 (mn10300_register_move_cost): Likewise.
7302 * config/mn10300/mn10300.md (MDR_REG): New.
7303 (*movsi_internal): Handle moves to/from MDR_REGS.
7305 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
7307 (mn10300_secondary_reload): Tidy combination reload classes.
7308 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
7309 addresses for AM33. Allow symbolic offsets for reg+imm.
7310 (mn10300_regno_in_class_p): New.
7311 (mn10300_legitimize_reload_address): New.
7312 * config/mn10300/mn10300.h (enum reg_class): Remove
7313 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
7314 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
7316 (REG_CLASS_NAMES): Update to match.
7317 (REG_CLASS_CONTENTS): Likewise.
7318 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
7319 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
7320 (REGNO_IN_RANGE_P): Remove.
7321 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
7322 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
7323 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
7324 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
7325 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
7326 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
7327 (REGNO_GENERAL_P): New.
7328 (HAVE_POST_MODIFY_DISP): New.
7329 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
7330 (LEGITIMIZE_RELOAD_ADDRESS): New.
7331 * config/mn10300/mn10300-protos.h: Update.
7333 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
7334 DATA_REGS for AM33 stack-pointer destination.
7335 (mn10300_preferred_output_reload_class): Likewise.
7336 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
7337 into a form appropriate for ...
7338 (TARGET_SECONDARY_RELOAD): New.
7339 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
7340 * config/mn10300/mn10300-protos.h: Update.
7341 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
7342 reload_insi; use the "A" constraint for the scratch; handle AM33
7343 moves of sp to non-address registers.
7345 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
7346 (*movqi_internal): ... here.
7347 (*am33_movhi, *mn10300_movhi): Merge into...
7348 (*movhi_internal): ... here.
7349 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
7350 as the source/destination of moves from/to SP.
7351 (movsf): Only allow for AM33-2.
7352 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
7353 any integer constant constraint. Only allow for AM33-2. Tidy
7354 all of the alternative outputs.
7355 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
7356 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
7358 (udivsi3, umodsi3): New patterns for MN103 only.
7360 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
7362 * doc/tm.texi.in: Spell out that a lack of register class unions
7364 * doc/tm.texi: Regenerate.
7366 2011-01-19 Jakub Jelinek <jakub@redhat.com>
7368 PR rtl-optimization/47337
7369 * dce.c (check_argument_store): New function.
7370 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
7372 PR tree-optimization/47290
7373 * tree-eh.c (infinite_empty_loop_p): New function.
7374 (cleanup_empty_eh): Use it.
7376 2011-01-18 Steve Ellcey <sje@cup.hp.com>
7379 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
7380 (a64_expand_widen_sum): Ditto.
7381 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
7382 (vec_extract_evenodd_help): Ditto.
7383 (vec_extract_evenv4hi): Ditto.
7384 (vec_extract_oddv4hi): Ditto.
7385 (vec_extract_evenv2si): Ditto.
7386 (vec_extract_oddv2si): Ditto.
7387 (vec_extract_evenv2sf): Ditto.
7388 (vec_extract_oddv2sf): Ditto.
7389 (vec_pack_trunc_v4hi: Ditto.
7390 (vec_pack_trunc_v2si): Ditto.
7391 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
7392 (vec_interleave_highv8qi): Ditto.
7394 (vec_extract_oddv8qi): Ditto.
7395 (vec_interleave_lowv4hi): Ditto.
7396 (vec_interleave_highv4hi): Ditto.
7397 (vec_interleave_lowv2si): Ditto.
7398 (vec_interleave_highv2si): Ditto.
7400 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7402 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
7403 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
7404 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
7405 (pa_c_mode_for_suffix): New.
7406 (TARGET_EXPAND_BUILTIN): Define.
7407 (TARGET_C_MODE_FOR_SUFFIX): Define.
7408 (pa_builtins): Define.
7409 (pa_init_builtins): Register __float128 type and init new support
7411 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
7412 * config/pa/quadlib.c (_U_Qfcopysign): New.
7414 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
7417 * explow.c (allocate_dynamic_stack_space): Do not assume more than
7418 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
7421 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7423 PR tree-optimization/47179
7424 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
7425 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
7427 2011-01-18 Richard Guenther <rguenther@suse.de>
7429 PR rtl-optimization/47216
7430 * emit-rtl.c: Include tree-flow.h.
7431 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
7432 of replicating it with different semantics.
7433 * Makefile.in (emit-rtl.o): Adjust.
7435 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7437 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
7438 (cortex_a9_dp): Handle neon types correctly.
7440 2011-01-18 Jakub Jelinek <jakub@redhat.com>
7442 PR rtl-optimization/47299
7443 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
7444 subtarget. Use normal multiplication if both operands are constants.
7445 * expmed.c (expand_widening_mult): Don't try to optimize constant
7446 multiplication if op0 has VOIDmode. Convert op1 constant to mode
7449 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7451 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
7452 spacing after 'e.g.', typos, comma, hyphenation.
7454 2011-01-17 Richard Henderson <rth@redhat.com>
7456 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
7457 (rx_restricted_mem_operand): New.
7458 (rx_shift_operand): Use register_operand.
7459 (rx_source_operand, rx_compare_operand): Likewise.
7460 * config/rx/rx.md (addsi3_flags): New expander.
7461 (adddi3): Rewrite as expander.
7462 (adc_internal, *adc_flags, adddi3_internal): New patterns.
7463 (subsi3_flags): New expander.
7464 (subdi3): Rewrite as expander.
7465 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
7467 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
7468 (rx_init_builtins): Remove sat builtin.
7469 (rx_expand_builtin): Likewise.
7470 * config/rx/rx.md (ssaddsi3): New.
7471 (*sat): Rename from sat. Represent the CC_REG input.
7473 * config/rx/predicates.md (rshift_operator): New.
7474 * config/rx/rx.c (rx_expand_insv): Remove.
7475 * config/rx/rx-protos.h: Update.
7476 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
7477 operand to the canonical position.
7478 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
7479 (*bitclr, *bitclr_in_memory): Similarly.
7480 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
7481 (insv): Retain the zero_extract in the expansion.
7483 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
7484 (bswaphi2, bitinvert, revw): Likewise.
7486 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
7487 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
7488 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
7489 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
7490 (bitset, bitset_in_memory): Likewise.
7491 (bitinvert, bitinvert_in_memory): Likewise.
7492 (bitclr, bitclr_in_memory): Likewise.
7493 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
7494 (rx_strend, rx_cmpstrn): Likewise.
7495 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
7496 (bitop peep2 patterns): Remove.
7498 * config/rx/rx.c (rx_match_ccmode): New.
7499 * config/rx/rx-protos.h: Update.
7500 * config/rx/rx.md (abssi2): Clobber, don't set flags.
7501 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
7502 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
7503 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
7504 (fix_truncsfsi2, floatsisf2): Likewise.
7505 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
7506 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
7507 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
7508 (*subsi3_flags, *xorsi3_flags): New.
7510 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
7512 * config/rx/rx.c (rx_print_operand): Remove workaround for
7513 unsplit comparison operations.
7515 * config/rx/rx.md (movsicc): Split after reload.
7516 (*movsicc): Merge *movsieq and *movsine via match_operator.
7517 (*stcc): New pattern.
7519 * config/rx/rx.c (rx_float_compare_mode): Remove.
7520 * config/rx/rx.h (rx_float_compare_mode): Remove.
7521 * config/rx/rx.md (cstoresi4): Split after reload.
7522 (*sccc): New pattern.
7524 * config/rx/predicates.md (label_ref_operand): New.
7525 (rx_z_comparison_operator): New.
7526 (rx_zs_comparison_operator): New.
7527 (rx_fp_comparison_operator): New.
7528 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
7529 Validate that the flags are set properly for the comparison.
7530 (rx_gen_cond_branch_template): Remove.
7531 (rx_cc_modes_compatible): Remove.
7532 (mode_from_flags): New.
7533 (flags_from_code): Rename from flags_needed_for_conditional.
7534 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
7535 (rx_select_cc_mode): Likewise.
7536 (rx_split_fp_compare): New.
7537 (rx_split_cbranch): New.
7538 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
7539 (*cbranchsi4): Use match_operator and rx_split_cbranch.
7540 (*cbranchsf4): Similarly.
7541 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
7542 match_operator and rx_split_cbranch.
7543 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
7544 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
7545 (*cmpsi): Rename from cmpsi.
7546 (*tstsi): Rename from tstsi.
7547 (*cmpsf): Rename from cmpsf; use CC_Fmode.
7548 (*conditional_branch): Rename from conditional_branch.
7549 (*reveresed_conditional_branch): Remove.
7550 (b<code>): Remove expander.
7551 * config/rx/rx-protos.h: Update.
7553 * config/rx/rx.c (rx_compare_redundant): Remove.
7554 * config/rx/rx.md (cmpsi): Don't use it.
7555 * config/rx/rx-protos.h: Update.
7557 * config/rx/rx-modes.def (CC_F): New mode.
7558 * config/rx/rx.c (rx_select_cc_mode): New.
7559 * config/rx/rx.h (SELECT_CC_MODE): Use it.
7560 * config/rx/rx-protos.h: Update.
7562 2011-01-17 Richard Henderson <rth@redhat.com>
7564 * except.c (dump_eh_tree): Fix stray ; after for statement.
7566 2011-01-17 Richard Guenther <rguenther@suse.de>
7568 PR tree-optimization/47313
7569 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
7570 handling before copying the body. Properly deal with
7571 by-reference result in SSA form.
7573 2011-01-17 Ian Lance Taylor <iant@google.com>
7576 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
7577 (struct_value_alias_set): Don't define.
7578 (sparc_option_override): Don't set sparc_sr_alias_set and
7579 struct_value_alias_set.
7580 (save_or_restore_regs): Use gen_frame_mem rather than calling
7582 (sparc_struct_value_rtx): Likewise.
7584 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
7587 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
7588 (_mm_maskstore_pd): Likewise.
7589 (_mm_maskload_ps): Likewise.
7590 (_mm_maskstore_ps): Likewise.
7591 (_mm256_maskload_pd): Change mask to __m256i.
7592 (_mm256_maskstore_pd): Likewise.
7593 (_mm256_maskload_ps): Likewise.
7594 (_mm256_maskstore_ps): Likewise.
7596 * config/i386/i386-builtin-types.def: Updated.
7597 (ix86_expand_special_args_builtin): Likewise.
7599 * config/i386/i386.c (bdesc_special_args): Update
7600 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
7601 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
7602 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
7603 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
7605 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
7606 Use <avxpermvecmode> on mask register.
7607 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
7609 2011-01-17 Olivier Hainque <hainque@adacore.com>
7610 Michael Haubenwallner <michael.haubenwallner@salomon.at>
7611 Eric Botcazou <ebotcazou@adacore.com>
7614 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
7615 if <= USHRT_MAX in 32-bit mode.
7617 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7619 * doc/install.texi (Configuration, Specific): Wrap long
7620 lines in examples. Allow line wrapping in long options
7621 and URLs where beneficial for PDF output.
7623 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
7625 * config/mips/mips.c (mips_classify_symbol): Don't return
7626 SYMBOL_PC_RELATIVE for nonlocal labels.
7628 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
7630 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
7632 2011-01-15 Jan Hubicka <jh@suse.cz>
7634 PR tree-optimization/47276
7635 * ipa.c (function_and_variable_visibility): Do not try to mark alias
7636 declarations as needed.
7638 2011-01-15 Martin Jambor <mjambor@suse.cz>
7640 * common.opt (fdevirtualize): New flag.
7641 * doc/invoke.texi (Option Summary): Document it.
7642 * opts.c (default_options_table): Add devirtualize flag.
7643 * ipa-prop.c (detect_type_change): Return immediately if
7644 devirtualize flag is not set.
7645 (detect_type_change_ssa): Likewise.
7646 (compute_known_type_jump_func): Likewise.
7647 (ipa_analyze_virtual_call_uses): Likewise.
7649 2011-01-14 Martin Jambor <mjambor@suse.cz>
7651 PR tree-optimization/45934
7652 PR tree-optimization/46302
7653 * ipa-prop.c (type_change_info): New type.
7654 (stmt_may_be_vtbl_ptr_store): New function.
7655 (check_stmt_for_type_change): Likewise.
7656 (detect_type_change): Likewise.
7657 (detect_type_change_ssa): Likewise.
7658 (compute_complex_assign_jump_func): Check for dynamic type change.
7659 (compute_complex_ancestor_jump_func): Likewise.
7660 (compute_known_type_jump_func): Likewise.
7661 (compute_scalar_jump_functions): Likewise.
7662 (ipa_analyze_virtual_call_uses): Likewise.
7663 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
7665 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7667 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
7668 * config/i386/i386.opt (msse5): New Alias.
7670 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7672 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
7673 * config/sparc/linux64.h (CC1_SPEC): Likewise.
7674 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
7675 * config/sparc/sparc.h (CC1_SPEC): Likewise.
7677 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7679 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
7681 * config/sparc/linux64.h (CC1_SPEC): Likewise.
7682 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
7683 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
7684 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
7686 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
7688 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7690 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
7692 2011-01-14 Mike Stump <mikestump@comcast.net>
7694 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
7695 * config/fr30/fr30.md: Likweise
7696 (movsi_push): Likewise.
7697 (movsi_pop): Likewise.
7698 (enter_func): Likewise.
7699 * config/moxie/moxie.md (movsi_push): Likewise.
7700 (movsi_pop): Likewise.
7702 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7704 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
7705 %{no_archive} %{exact_version}.
7706 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
7707 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
7708 %{no_archive} %{exact_version}.
7709 * config/mips/openbsd.h (LINK_SPEC): Likewise.
7710 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
7711 * config/mips/vxworks.h: Likewise.
7713 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7715 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
7717 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7719 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
7720 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
7722 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7724 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
7727 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7729 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
7731 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
7732 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
7734 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
7735 Don't handle -shlib.
7737 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7739 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
7740 (CC1_SPEC): Don't handle -profile.
7742 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7744 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
7745 * config/mips/mips.h (CC1_SPEC): Likewise.
7747 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7749 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
7750 * config/mips/mips.h (CC1_SPEC): Likewise.
7752 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7754 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
7755 * config/m32r/linux.h (LINK_SPEC): Likewise.
7756 * config/mips/linux.h (LINK_SPEC): Likewise.
7757 * config/mips/linux64.h (LINK_SPEC): Likewise.
7758 * config/sparc/linux.h (LINK_SPEC): Likewise.
7759 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
7760 LINK_SPEC): Likewise.
7761 * config/xtensa/linux.h (LINK_SPEC): Likewise.
7763 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7765 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
7767 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
7769 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7771 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
7772 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
7774 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7776 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
7778 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7780 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
7781 supports -Bstatic/-Bdynamic.
7782 * configure: Regenerate.
7784 2011-01-14 Jan Hubicka <jh@suse.cz>
7785 Jack Howarth <howarth@bromo.med.uc.edu>
7788 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
7789 when checking debug_info_level. Test write_symbols instead of
7790 debug_hooks->var_location when setting flag_var_tracking_uninit.
7792 2011-01-14 Richard Guenther <rguenther@suse.de>
7794 PR tree-optimization/47179
7795 * target.def (ref_may_alias_errno): New target hook.
7796 * targhooks.h (default_ref_may_alias_errno): Declare.
7797 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
7798 (default_ref_may_alias_errno): New function.
7799 * target.h (struct ao_ref_s): Declare.
7800 * tree-ssa-alias.c: Include target.h.
7801 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
7802 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
7803 (targhooks.o): Likewise.
7804 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
7805 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
7807 2011-01-14 Richard Guenther <rguenther@suse.de>
7809 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
7811 2011-01-14 Richard Guenther <rguenther@suse.de>
7813 PR tree-optimization/47280
7814 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
7816 (tree_ssa_forward_propagate_single_use_vars): Deal with
7817 CFG changes from associate_plusminus.
7819 2011-01-14 Richard Guenther <rguenther@suse.de>
7823 2011-01-11 Richard Guenther <rguenther@suse.de>
7825 PR tree-optimization/46076
7826 * tree-ssa.c (useless_type_conversion_p): Conversions from
7827 unprototyped to empty argument list function types are useless.
7829 2011-01-14 Richard Guenther <rguenther@suse.de>
7831 PR tree-optimization/47286
7832 * tree-ssa-structalias.c (new_var_info): Register variables are global.
7834 2011-01-14 Martin Jambor <mjambor@suse.cz>
7837 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
7839 2011-01-13 Anatoly Sokolov <aesok@post.ru>
7841 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
7842 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7843 * config/xtensa/xtensa.c (xtensa_libcall_value,
7844 xtensa_function_value_regno_p): New functions.
7845 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
7847 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
7850 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
7852 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
7853 New function prototype.
7854 * config/i386/winnt.c (i386_pe_assemble_visibility):
7855 Warn only if attribute was specified by user.
7857 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
7860 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
7862 (floatunsdidf2_fcfidu): Ditto.
7864 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7866 * config/s390/s390.c (print_operand_address): Replace 'error' with
7867 'output_operand_lossage'.
7868 (print_operand): Likewise.
7870 2011-01-13 Jeff Law <law@redhat.com>
7872 PR rtl-optimization/39077
7873 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
7874 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
7875 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
7876 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
7877 * gcse.c (prune_insertions_deletions): New function.
7878 (compute_pre_data): Use it.
7880 2011-01-13 Dodji Seketeli <dodji@redhat.com>
7883 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
7885 (prune_unused_types_mark): Use it.
7887 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
7889 PR rtl-optimization/45352
7890 * sel-sched.c: Update copyright years.
7891 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
7892 in the advancing loop when we have issued issue_rate insns.
7894 2011-01-12 Richard Henderson <rth@redhat.com>
7896 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
7897 (TARGET_MD_ASM_CLOBBERS): New.
7899 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
7900 (TARGET_DELEGITIMIZE_ADDRESS): New.
7902 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
7903 (clzsi2, *bsch): New patterns.
7905 * config/mn10300/mn10300.md (INT): New mode iterator.
7906 (*mov<INT>_clr): New pattern, and peep2 to generate it.
7908 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
7909 flag_split_wide_types.
7911 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
7912 (mn10300_trampoline_init): Rewrite without a template, an immediate
7913 load and a direct branch.
7914 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
7916 2011-01-12 Anatoly Sokolov <aesok@post.ru>
7918 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7919 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
7920 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
7921 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7923 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
7926 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
7929 2011-01-12 Jan Hubicka <jh@suse.cz>
7932 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
7933 (PLUGIN_COND_CLOSE): New macro.
7934 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
7936 2011-01-12 Richard Guenther <rguenther@suse.de>
7939 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
7940 register variables in a MEM_REF.
7942 2011-01-12 Joseph Myers <joseph@codesourcery.com>
7944 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
7945 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
7946 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
7947 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7948 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7949 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
7950 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
7951 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
7952 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
7953 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
7954 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
7955 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
7956 * config/gnu-user.h: New. Copied from linux.h.
7957 (LINUX_TARGET_STARTFILE_SPEC): Rename to
7958 GNU_USER_TARGET_STARTFILE_SPEC.
7959 (LINUX_TARGET_ENDFILE_SPEC): Rename to
7960 GNU_USER_TARGET_ENDFILE_SPEC.
7961 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
7962 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
7963 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
7964 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
7965 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
7966 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
7967 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
7968 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
7969 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
7970 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
7971 * config/arm/linux-eabi.h (CC1_SPEC): Use
7972 GNU_USER_TARGET_CC1_SPEC.
7973 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
7974 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
7975 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
7976 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
7977 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
7978 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
7979 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
7980 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
7982 2011-01-12 Richard Guenther <rguenther@suse.de>
7985 * doc/invoke.texi (ffast-math): Document it is turned on
7988 2011-01-12 Jan Hubicka <jh@suse.cz>
7990 PR tree-optimization/47233
7991 * opts.c (common_handle_option): Disable ipa-reference with profile
7994 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
7996 * c-parser.c (c_parser_objc_at_property_declaration): Improved
7999 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
8001 * c-parser.c (c_lex_one_token): Updated and reindented some
8002 comments. No changes in code.
8004 2011-01-11 Ian Lance Taylor <iant@google.com>
8006 * godump.c (go_output_var): Don't output the variable if there is
8007 already a type with the same name.
8009 2011-01-11 Ian Lance Taylor <iant@google.com>
8011 * godump.c (go_format_type): Don't generate float80.
8013 2011-01-11 Richard Henderson <rth@redhat.com>
8015 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
8016 declaration. Rewrite for both speed and size.
8017 (mn10300_address_cost_1): Remove.
8018 (mn10300_register_move_cost): New.
8019 (mn10300_memory_move_cost): New.
8020 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
8021 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
8022 extensions, shifts, BSWAP, CLZ.
8023 (mn10300_wide_const_load_uses_clr): Remove.
8024 (TARGET_REGISTER_MOVE_COST): New.
8025 (TARGET_MEMORY_MOVE_COST): New.
8026 * config/mn10300/mn10300-protos.h: Update.
8027 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
8029 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
8030 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
8031 * config/mn10300/mn10300-protos.h: Update.
8032 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
8033 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
8034 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
8035 (*test_int_bitfield, *test_byte_bitfield): Remove.
8036 (*bit_test, *subreg_bit_test): Remove.
8037 * config/mn10300/predicates.md (const_8bit_operand): Remove.
8039 * config/mn10300/constraints.md ("c"): Rename from "A".
8040 ("A", "D"): New constraint letters.
8041 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
8042 (fmssf4, fnmasf4, fnmssf4): Likewise.
8044 * config/mn10300/mn10300.md (isa): New attribute.
8045 (enabled): New attribute.
8047 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
8048 (abssf2, negsf2): Define only for hardware fp.
8049 (sqrtsf2): Reformat.
8050 (addsf3, subsf3, mulsf3): Merge expander and insn.
8052 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
8053 (DEBUGGER_AUTO_OFFSET): Remove.
8054 (DEBUGGER_ARG_OFFSET): Remove.
8056 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
8057 Emit register stores with the same offsets as the hardware.
8058 (mn10300_store_multiple_operation): Don't check that the register
8059 save offsets are monotonic.
8060 * config/mn10300/mn10300-protos.h: Update.
8062 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
8064 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
8065 in terms of the value on the stack, not the MDR register.
8067 2011-01-11 Jan Hubicka <jh@suse.cz>
8071 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
8072 (symbol_alias_set_destroy, symbol_alias_set_contains,
8073 propagate_aliases_backward): Declare.
8074 * lto-streamer-out.c (struct sets): New sturcture.
8075 (trivally_defined_alias): New function.
8076 (output_alias_pair_p): Rewrite.
8077 (output_unreferenced_globals): Fix output of alias pairs.
8078 (produce_symtab): Likewise.
8079 * ipa.c (function_and_variable_visibility): Set weak alias destination
8081 * varasm.c (symbol_alias_set_t): Remove.
8082 (symbol_alias_set_destroy): Export.
8083 (propagate_aliases_forward, propagate_aliases_backward): New functions
8085 (compute_visible_aliases): ... this one; remove.
8086 (trivially_visible_alias): New
8087 (trivially_defined_alias): New.
8088 (remove_unreachable_alias_pairs): Rewrite.
8089 (finish_aliases_1): Reorganize code checking if alias is defined.
8090 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
8093 2011-01-11 Richard Guenther <rguenther@suse.de>
8095 PR tree-optimization/46076
8096 * tree-ssa.c (useless_type_conversion_p): Conversions from
8097 unprototyped to empty argument list function types are useless.
8099 2011-01-11 Richard Guenther <rguenther@suse.de>
8102 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
8103 volatile MEMs as MEM_READONLY_P.
8105 2011-01-11 Richard Guenther <rguenther@suse.de>
8107 PR tree-optimization/47239
8108 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
8110 2011-01-11 Jeff Law <law@redhat.com>
8112 PR tree-optimization/47086
8113 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
8114 IVs from statements that might throw.
8116 2011-01-10 Jan Hubicka <jh@suse.cz>
8119 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
8121 2011-01-10 Jan Hubicka <jh@suse.cz>
8124 * profile.c (read_profile_edge_counts): Ignore profile inconistency
8125 when correcting profile.
8127 2011-01-10 Jan Hubicka <jh@suse.cz>
8130 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
8132 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
8133 Restore DECL_FINI_PRIORITY.
8135 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8137 * doc/gimple.texi: Fix quoting of multi-word return values in
8138 @deftypefn statements. Ensure presence of return value. Wrap
8139 overlong @deftypefn lines.
8140 (is_gimple_operand, is_gimple_min_invariant_address): Remove
8141 descriptions of removed functions.
8142 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
8143 of multi-word return value in @deftypefn statement.
8145 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8147 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
8148 (Conditional Expressions, Logical Operators)
8149 (Statement and operand traversals): Do not indent smallexample
8150 code. Fix duplicate function argument in example.
8152 2011-01-10 Jeff Law <law@redhat.com>
8154 PR tree-optimization/47141
8155 * ipa-split.c (split_function): Handle case where we are
8156 returning a value and the return block has a virtual operand phi.
8158 2011-01-10 Jan Hubicka <jh@suse.cz>
8160 PR tree-optimization/47234
8161 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
8162 (pass_feedback_split_functions): Declare.
8163 * passes.c (init_optimization_passes): Add ipa-split as subpass of
8165 * ipa-split.c (gate_split_functions): Update comments; disable
8166 split-functions for profile_arc_flag and branch_probabilities.
8167 (gate_feedback_split_functions): New function.
8168 (execute_feedback_split_functions): New function.
8169 (pass_feedback_split_functions): New global var.
8171 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
8174 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
8175 calling gimple_call_set_cannot_inline.
8177 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
8179 * config/darwin-sections.def: Remove unused section.
8181 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
8184 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
8186 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
8189 * c-parser.c (c_parser_declaration_or_fndef): Improved
8192 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
8194 * config/i386/winnt.c (i386_pe_start_function): Make sure
8195 to switch back to function's section.
8197 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
8201 * plugin.c: Move include of dlfcn.h from here...
8202 * system.h: ... to here.
8204 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8206 * doc/cpp.texi (C++ Named Operators): Fix markup for header
8208 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
8209 two extra empty pages in PDF output.
8211 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
8214 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
8215 for error recovery purposes behave as if it was not specified so
8216 that the default type is usd.
8218 2011-01-07 Jan Hubicka <jh@suse.cz>
8220 PR tree-optmization/46469
8221 * ipa.c (function_and_variable_visibility): Clear needed flags on
8222 nodes with external decls; handle weakrefs merging correctly.
8224 2011-01-07 Joseph Myers <joseph@codesourcery.com>
8226 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
8229 2011-01-07 Jan Hubicka <jh@suse.cz>
8231 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
8232 and no longer claim that gold is required for linker plugin.
8233 * configure: Regenerate.
8234 * gcc.c (PLUGIN_COND): New macro.
8235 (LINK_COMMAND_SPEC): Use it.
8236 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
8237 * config.in (HAVE_LTO_PLUGIN): New.
8238 * configure.ac (--with-lto-plugin): New parameter; autodetect
8241 2011-01-07 Jan Hubicka <jh@suse.cz>
8243 PR tree-optimization/46367
8244 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
8245 when we can update original.
8246 (cgraph_mark_inline_edge): Sanity check.
8247 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
8249 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8251 * config/spu/spu.h (ASM_COMMENT_START): Define.
8253 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
8257 (SWITCH_KEEP_FOR_GCC): Likewise.
8258 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
8259 (do_spec_1): Handle "%>".
8261 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
8263 2011-01-07 Jakub Jelinek <jakub@redhat.com>
8266 * config/i386/i386.c (ix86_delegitimize_address): If
8267 simplify_gen_subreg fails, return orig_x.
8270 * value-prof.c (gimple_stringop_fixed_value): Handle
8271 lhs of the call properly.
8273 2011-01-07 Jan Hubicka <jh@suse.cz>
8276 * lto-opt.c (lto_reissue_options): Set flag_shlib.
8278 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
8280 * target.def (function_switched_text_sections): New hook.
8281 * doc/tm.texi: Regenerated.
8282 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
8283 * final.c (default_function_switched_text_sections): New.
8284 (final_scan_insn): Call function_switched_text_sections when a
8285 mid-function section change occurs.
8286 * output.h (default_function_switched_text_sections): Declare.
8287 * config/darwin-protos.h (darwin_function_switched_text_sections):
8289 * config/darwin.c (darwin_function_switched_text_sections): New.
8290 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
8292 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
8294 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
8295 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
8296 the secondary code fragment when outputting for DWARF == 2.
8298 2011-01-07 Anatoly Sokolov <aesok@post.ru>
8300 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8301 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
8303 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
8304 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8306 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
8309 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
8310 when it is not empty.
8312 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
8315 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
8316 (case ${target}): Add btver1.
8317 * config/i386/driver-i386.c (host_detect_local_cpu): Let
8318 -march=native recognize btver1 processors.
8319 * config/i386/i386-c.c (ix86_target_macros_internal): Add
8320 btver1 def_and_undef
8321 * config/i386/i386.c (struct processor_costs btver1_cost): New
8323 (m_BTVER1): New definition.
8324 (m_AMD_MULTIPLE): Includes m_BTVER1.
8325 (initial_ix86_tune_features): Add btver1 tune.
8326 (processor_target_table): Add btver1 entry.
8327 (static const char *const cpu_names): Add btver1 entry.
8328 (software_prefetching_beneficial_p): Add btver1.
8329 (ix86_option_override_internal): Add btver1 instruction sets.
8330 (ix86_issue_rate): Add btver1.
8331 (ix86_adjust_cost): Add btver1.
8332 * config/i386/i386.h (TARGET_BTVER1): New definition.
8333 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
8334 (enum processor_type): Add PROCESSOR_BTVER1.
8335 * config/i386/i386.md (define_attr "cpu"): Add btver1.
8337 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8340 * config/i386/i386.c (legitimize_tls_address)
8341 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
8342 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
8343 (tls_initial_exec_64_sun): New pattern.
8345 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
8347 * doc/invoke.texi (Overall Options): Improve wording and markup
8348 of the description of -wrapper.
8350 2011-01-06 Joseph Myers <joseph@codesourcery.com>
8352 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
8353 rdynamic, threads): New Driver options.
8355 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8358 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
8359 if coming from .tdata.
8360 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
8362 2011-01-06 Jan Hubicka <jh@suse.cz>
8365 * collect2.c (main): Do not enable LTOmode when plugin is active.
8367 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8370 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
8371 --version output if supported.
8372 * configure: Regenerate.
8374 2011-01-06 Joseph Myers <joseph@codesourcery.com>
8376 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
8379 2011-01-06 Jakub Jelinek <jakub@redhat.com>
8382 * c-convert.c (convert): When converting a complex expression
8383 other than COMPLEX_EXPR to a different complex type, ensure
8384 c_save_expr is called instead of save_expr, unless in_late_binary_op.
8385 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
8386 when converting COMPLEX_TYPE.
8388 2011-01-06 Ira Rosen <irar@il.ibm.com>
8390 PR tree-optimization/47139
8391 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
8392 only the last reduction value is used outside the loop. Update
8395 2011-01-05 Joseph Myers <joseph@codesourcery.com>
8397 * config/rtems.opt: New.
8398 * config.gcc (*-*-rtems*): Use rtems.opt.
8400 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
8402 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
8403 processors do not support 3DNow instructions.
8405 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8407 * config/spu/spu.c (spu_option_override): Set parameter
8408 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
8410 2011-01-05 Jan Hubicka <jh@suse.cz>
8412 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
8413 at the command line.
8415 2011-01-05 Martin Jambor <mjambor@suse.cz>
8418 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
8419 deltas on streamed outgoing edges.
8420 (output_node_opt_summary): Output info for outgoing edges only when
8421 the node is in new parameter set.
8422 (output_cgraph_opt_summary): New parameter set, passed to the two
8423 aforementioned functions. Update its forward declaration and its
8426 2011-01-05 Tom Tromey <tromey@redhat.com>
8428 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
8429 operator to c_finish_omp_atomic.
8430 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
8431 (build_unary_op): Update.
8432 (build_modify_expr): Update.
8433 (build_asm_expr): Update.
8435 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8437 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
8438 newly inserted insns.
8440 (spu_emit_branch_hint): Likewise.
8441 (insert_hbrp_for_ilb_runout): Likewise.
8442 (spu_machine_dependent_reorg): Call df_finish_pass after
8443 schedule_insns returns.
8445 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8447 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
8449 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
8451 PR tree-optimization/47005
8452 * tree-sra.c (struct access): Add 'non_addressable' bit.
8453 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
8454 (decide_one_param_reduction): Return 0 if the parameter is passed by
8455 reference and one of the accesses in the group is non_addressable.
8457 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
8459 PR tree-optimization/47056
8460 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
8461 (mark_load): Likewise. Handle FUNCTION_DECL specially.
8462 (mark_store): Likewise. Pass STMT to ipa_record_reference.
8464 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
8466 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
8467 initializer. Skip view conversions from aggregate types.
8469 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
8472 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
8474 2011-01-04 Philipp Thomas <pth@suse.de>
8476 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
8479 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8481 * function.c (thread_prologue_and_epilogue_insns): Do not crash
8482 on empty epilogue sequences.
8484 2011-01-04 Joseph Myers <joseph@codesourcery.com>
8486 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
8487 non-static): New Driver options.
8489 2011-01-04 Jie Zhang <jie@codesourcery.com>
8492 * gcc.c (default_compilers[]): Set combinable field to 0
8493 for all assembly languages.
8495 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
8497 * config/mips/loongson3a.md: New file.
8498 * config/mips/mips.md: Include loongson3a.md.
8499 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
8502 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
8505 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
8506 instead of convert_memory_address_addr_space on the base expression.
8508 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8510 * config/spu/spu.c (spu_option_override): Update error text
8511 for bad -march= / -mtune= values.
8513 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8515 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
8516 if branch-hint optimization will be performed.
8518 2011-01-03 Jakub Jelinek <jakub@redhat.com>
8520 PR tree-optimization/47148
8521 * ipa-split.c (split_function): Convert arguments to
8522 DECL_ARG_TYPE if possible.
8524 PR tree-optimization/47155
8525 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
8528 PR rtl-optimization/47157
8529 * combine.c (try_combine): If undobuf.other_insn becomes
8530 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
8531 and set *new_direct_jump_p too.
8533 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
8535 PR tree-optimization/47021
8536 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
8538 2011-01-03 Jakub Jelinek <jakub@redhat.com>
8540 * gcc.c (process_command): Update copyright notice dates.
8541 * gcov.c (print_version): Likewise.
8542 * gcov-dump.c (print_version): Likewise.
8543 * mips-tfile.c (main): Likewise.
8544 * mips-tdump.c (main): Likewise.
8546 2011-01-03 Martin Jambor <mjambor@suse.cz>
8548 PR tree-optimization/46801
8549 * tree-sra.c (type_internals_preclude_sra_p): Check whether
8550 aggregate fields start at byte boundary instead of the bit-field flag.
8552 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
8555 * gcc.c (main): Revert revision 168407.
8557 2011-01-03 Martin Jambor <mjambor@suse.cz>
8559 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
8561 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8563 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
8564 vector optab to expand vector/scalar shift, update gimple to vector.
8566 2011-01-03 Martin Jambor <mjambor@suse.cz>
8568 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
8571 2011-01-03 Martin Jambor <mjambor@suse.cz>
8573 PR tree-optimization/46984
8574 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
8576 (cgraph_create_indirect_edge): Fixed line length.
8577 (cgraph_indirect_call_info): Declare.
8578 (cgraph_make_edge_direct) Update declaration.
8579 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
8580 (cgraph_create_indirect_edge): Use it.
8581 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
8583 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
8584 the new thunk_delta representation.
8585 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
8587 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
8588 (ipa_read_indirect_edge_info): Likewise.
8589 * lto-cgraph.c (output_edge_opt_summary): New function.
8590 (output_node_opt_summary): Call it on all outgoing edges.
8591 (input_edge_opt_summary): New function.
8592 (input_node_opt_summary): Call it on all outgoing edges.
8594 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
8597 * gcc.c (main): Don't check have_o when settting combine_inputs.
8599 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
8601 * regrename.c: Add general comment describing the pass.
8602 (struct du_head): Remove 'length' field.
8603 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
8604 (regrename_optimize): Do not sort chains. Rework comments, add others.
8605 Force renaming to the preferred class (if any) in the first pass and do
8606 not consider registers that belong to it in the second pass.
8607 (create_new_chain): Do not set 'length' field.
8608 (scan_rtx_reg): Likewise.
8610 2011-01-02 Jakub Jelinek <jakub@redhat.com>
8612 PR tree-optimization/47140
8613 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
8614 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
8617 PR rtl-optimization/47028
8618 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
8619 parm_birth_insn instead of at the beginning of first bb.
8621 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
8623 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
8624 Remove the word "see" before "@pxref".
8625 * doc/rtl.texi: Remove the word "see" before "@pxref".
8627 2011-01-01 Jan Hubicka <jh@suse.cz>
8629 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
8632 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
8635 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
8638 Copyright (C) 2011 Free Software Foundation, Inc.
8640 Copying and distribution of this file, with or without modification,
8641 are permitted in any medium without royalty provided the copyright
8642 notice and this notice are preserved.