1 2011-04-04 Jakub Jelinek <jakub@redhat.com>
4 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
7 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
9 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
10 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
12 2011-04-03 Anatoly Sokolov <aesok@post.ru>
14 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
15 (ASM_OUTPUT_ALIGNED_BSS): Define.
17 2011-04-03 Michael Matz <matz@suse.de>
19 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
20 and next_slot members.
21 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
22 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
23 (lto_streamer_cache_append): Declare.
24 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
25 unsigned index, remove offset parameter, ensure that we append
26 or update existing entries.
27 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
28 parameter, update next_slot for append.
29 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
31 (lto_streamer_cache_insert_at): Likewise.
32 (lto_streamer_cache_append): New function.
33 (lto_streamer_cache_lookup): Use unsigned index.
34 (lto_streamer_cache_get): Likewise.
35 (lto_record_common_node): Don't test tree_node_can_be_shared.
36 (preload_common_node): Adjust call to lto_streamer_cache_insert.
37 (lto_streamer_cache_delete): Don't free offsets member.
38 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
39 (lto_output_string_with_length): Use lto_output_data_stream.
40 (lto_output_tree_header): Remove ix parameter, don't write it.
41 (lto_output_builtin_tree): Likewise.
42 (lto_write_tree): Adjust callers to above, don't track and write
43 offset, write unsigned index.
44 (output_unreferenced_globals): Don't emit all global vars.
45 (write_global_references): Use unsigned indices.
46 (lto_output_decl_state_refs): Likewise.
47 (write_symbol): Likewise.
48 * lto-streamer-in.c (lto_input_chain): Move earlier.
49 (input_function): Use unsigned index.
50 (input_alias_pairs): Don't read and then ignore all global vars.
51 (lto_materialize_tree): Remove ix_p parameter, don't read index,
52 don't pass it back, use lto_streamer_cache_append.
53 (lto_register_var_decl_in_symtab): Use unsigned index.
54 (lto_register_function_decl_in_symtab): Likewise.
55 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
57 (lto_get_builtin_tree): Don't read index, use
58 lto_streamer_cache_append.
59 (lto_read_tree): Adjust call to lto_materialize_tree.
61 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
62 don't use function calls in arguments to MIN.
64 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
67 * gimple.c (gimple_type_leader_entry): Mark deletable.
69 2011-04-03 Alan Modra <amodra@gmail.com>
71 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
73 2011-04-03 Michael Matz <matz@suse.de>
75 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
77 * tree.h (tree_decl_non_common.vindex): Adjust comment.
79 2011-04-03 Michael Matz <matz@suse.de>
81 * cgraphbuild.c (record_reference): Canonicalize constructor
83 * gimple-fold.c (canonicalize_constructor_val): Accept being called
84 without function context.
85 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
86 current_function_decl and cfun.
88 2011-04-03 Michael Matz <matz@suse.de>
90 * tree.c (decl_init_priority_insert): Don't create entry for
92 (decl_fini_priority_insert): Ditto.
93 (fields_compatible_p, find_compatible_field): Remove.
94 * tree.h (fields_compatible_p, find_compatible_field): Remove.
95 * gimple.c (gimple_compare_field_offset): Adjust block comment.
97 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
99 * combine.c (try_combine): Remove useless local variable.
101 2011-04-03 Richard Guenther <rguenther@suse.de>
102 Ira Rosen <ira.rosen@linaro.org>
104 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
105 non-variable offsets and compare the remaining bases of the two
106 accesses instead of looking for exact same data-ref.
108 2011-04-02 Kai Tietz <ktietz@redhat.com>
111 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
113 * i386.c (ix86_is_msabi_thiscall): New helper function.
114 (ix86_is_type_thiscall): New helper function.
115 (ix86_comp_type_attributes): Handle thiscall for method-functions
117 (init_cumulative_args): Likewise.
118 (find_drap_reg): Likewise.
119 (ix86_static_chain): Likewise.
120 (x86_this_parameter): Likewise.
121 (x86_output_mi_thunk): Likewise.
123 2011-04-01 Olivier Hainque <hainque@adacore.com>
124 Nicolas Setton <setton@adacore.com>
125 Eric Botcazou <ebotcazou@adacore.com>
127 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
128 (add_gnat_descriptive_type_attribute): New function.
129 (gen_array_type_die): Call it.
130 (gen_enumeration_type_die): Likewise.
131 (gen_struct_or_union_type_die): Likewise.
132 (modified_type_die): Likewise.
133 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
134 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
135 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
137 2011-04-01 Jakub Jelinek <jakub@redhat.com>
140 * dwarf2out.c (resolve_addr): Don't call force_decl_die
141 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
144 2011-03-17 Richard Guenther <rguenther@suse.de>
147 * lto-cgraph.c (input_overwrite_node): Clear the abstract
148 origin for decls in other ltrans units.
149 (input_varpool_node): Likewise.
151 2011-04-01 Jakub Jelinek <jakub@redhat.com>
154 * expr.c (expand_assignment): Handle all possibilities
156 * expmed.c (store_bit_field_1): Avoid trying to create
158 (store_split_bit_field): If SUBREG_REG (op0) or
159 op0 itself has smaller mode than word, return it
160 for offset 0 and const0_rtx for out-of-bounds stores.
161 If word is const0_rtx, skip it.
163 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
165 * config/h8300/h8300.c (print_operand_address): Rename to...
166 (h8300_print_operand_address): ...this. Make static. Adjust comments.
167 Call h8300_print_operand and h8300_print_operand_address instead of
168 print_operand and print_operand_address. Declare.
169 (print_operand): Renake to...
170 (h8300_print_operand): ...this. Make static. Adjust comments.
171 Call h8300_print_operand instead of print_operand. Declare.
172 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
173 (h8300_register_move_cost): Likewise.
174 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
175 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
176 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
177 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
178 * config/h8300/h8300-protos.h (print_operand): Delete.
179 (print_operand_address): Delete.
181 2011-04-01 Richard Henderson <rth@redhat.com>
184 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
185 in strict mode before dwarf4. Re-order tests to early out
186 before switching sections.
188 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
190 * config/h8300/constraints.md: New file.
191 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
192 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
193 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
194 * config/h8300/predicates.md (bit_operand): Likewise.
195 (incdec_operand): Use satisfies_constraint_M and
196 satisfies_constraint_O. Don't use C code block.
197 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
198 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
199 (compute_mov_length): Use satisfies_constraint_G.
200 (fix_bit_operand): Use satisfies_constraint_U.
201 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
202 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
203 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
204 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
205 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
206 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
207 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
208 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
209 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
210 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
211 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
212 (EXTRA_MEMORY_CONSTRAINT): Delete.
214 2011-04-01 Andrew Pinski <pinskia@gmail.com>
215 Michael Meissner <meissner@linux.vnet.ibm.com>
218 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
219 operands, as per the specifications.
221 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
222 (vec_extract_evenv4sf): Ditto.
223 (vec_extract_evenv8hi): Ditto.
224 (vec_extract_evenv16qi): Ditto.
225 (vec_extract_oddv4si): Ditto.
227 2011-03-31 Mark Wielaard <mjw@redhat.com>
229 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
230 high_pc attribute if the CU has no associated code. Only output
231 DW_AT_entry_pc for CU if not generating strict dwarf and
234 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
236 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
237 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
239 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
240 * final.c (final_start_function): Call the new function rather
241 than using a NULL argument for dwarf2out_frame_debug.
243 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
244 that contains the prologue.
246 * haifa-sched.c (queue_insn): New arg REASON. All callers
247 changed. Print it in debugging output.
249 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
251 * sched-ebb.c (begin_schedule_ready): Remove second argument.
252 Split most of the code into...
253 (begin_move_insn): ... here. New function.
254 (ebb_sched_info): Add a pointer to it.
255 * haifa-sched.c (scheduled_insns): New static variable.
256 (sched_extend_ready_list): Allocate it.
257 (schedule_block): Use it to record the order of scheduled insns.
258 Perform RTL changes to move insns only after all scheduling
259 decisions have been made.
260 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
261 begin_move_insn field.
262 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
263 * sched-int.h (struct haifa_sched_info): Remove second argument
264 from begin_schedule_ready hook. Add new member begin_move_insn.
265 * sched-rgn.c (begin_schedule_ready): Remove second argument.
266 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
268 * haifa-sched.c (prune_ready_list): New function, broken out of
270 (schedule_block): Use it.
272 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
274 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
276 2011-04-01 Kai Tietz <ktietz@redhat.com>
278 * config.gcc (*-*-mingw*): Allow as option the
279 posix threading model.
280 * config/i386/mingw32.h ( SPEC_PTHREAD1, SPEC_PTHREAD2):
281 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
283 (CPP_SPEC): Add pthread/no-pthread handling.
284 (LIB_SPEC): Likewise.
285 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
286 (LIB_SPEC): Likewise.
287 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
288 flag to pass -pthread option for shared libgcc build.
289 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
290 for shared libgcc build.
291 * config/i386/t-mingw-pthread: New file.
292 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
293 New define to enable use of library pthread by default.
294 * config/i386/mingw.opt (pthread): New driver option.
295 (no-pthread): New driver option.
296 * config/i386/cygming.opt: Make sure trailing empty line
298 * config/i386/mingw-w64.opt: Likewise.
300 2011-04-01 Gary Funck <gary@intrepid.com>
302 * c-decl.c (grokdeclarator): Fix formatting.
304 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
306 * expr.c (emit_block_move_via_movmem): Use n_generator_args
307 instead of n_operands.
308 (set_storage_via_setmem): Likewise.
309 * optabs.c (maybe_gen_insn): Likewise.
310 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
311 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
312 (mips_expand_builtin_direct): Likewise.
313 * config/spu/spu.c (expand_builtin_args): Likewise.
315 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
317 * recog.h (insn_data_d): Add n_generator_args.
318 * genoutput.c (data): Likewise.
319 (output_insn_data): Print it.
320 (max_opno, num_dups): Delete.
321 (scan_operands): Just fill in "d->operand[...]".
322 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
324 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
326 * gensupport.h (pattern_stats): New structure.
327 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
328 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
329 (max_operand_1, max_operand_vec): Delete.
330 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
332 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
334 * emit-rtl.c (emit_pattern_after_setloc): New function.
335 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
336 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
337 (emit_pattern_after): New function.
338 (emit_insn_after, emit_jump_insn_after): Call it.
339 (emit_call_insn_after, emit_debug_insn_after): Likewise.
340 (emit_pattern_before_setloc): New function.
341 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
342 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
344 (emit_pattern_before): New function.
345 (emit_insn_before, emit_jump_insn_before): Call it.
346 (emit_call_insn_before, emit_debug_insn_before): Likewise.
348 2011-03-31 Richard Henderson <rth@redhat.com>
350 * dwarf2out.c (dw_separate_line_info_ref): Remove.
351 (dw_separate_line_info_entry): Remove.
352 (enum dw_line_info_opcode): New.
353 (dw_line_info_entry): Use it.
354 (dw_line_info_table, dw_line_info_table_p): New.
355 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
356 (line_info_table, line_info_label_num): Remove.
357 (line_info_table_in_use): Remove.
358 (separate_line_info_table): Remove.
359 (separate_line_info_table_allocated): Remove.
360 (separate_line_info_table_in_use): Remove.
361 (LINE_INFO_TABLE_INCREMENT): Remove.
362 (line_info_label_num): New.
363 (cur_line_info_table): New.
364 (text_section_line_info, cold_text_section_line_info): New.
365 (separate_line_info): New.
366 (SEPARATE_LINE_CODE_LABEL): Remove.
367 (print_dwarf_line_table): Remove.
368 (debug_dwarf): Don't dump it.
369 (output_one_line_info_table): New.
370 (output_line_info): Use it.
371 (new_line_info_table): New.
372 (set_cur_line_info_table): New.
373 (dwarf2out_switch_text_section): Use it.
374 (dwarf2out_begin_function): Likewise.
375 (push_dw_line_info_entry): New.
376 (dwarf2out_source_line): Rewrite for new line info tables.
377 (dwarf2out_init): Remove dead initailizations.
379 2011-03-31 Joseph Myers <joseph@codesourcery.com>
381 * opts.h (cl_option): Add comments to fields. Add bit-fields for
383 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
384 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
385 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
386 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
387 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
388 * opt-functions.awk (flag_init, switch_bit_fields): New.
389 (switch_flags): Don't handle flags moved to bit-fields. Don't
390 generate CL_MISSING_OK or CL_SAVE.
391 * optc-gen.awk: Update to generate bit-field output as well as
393 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
394 bit-field instead of CL_REJECT_DRIVER flag.
395 * opts-common.c (generate_canonical_option,
396 decode_cmdline_option): Use bit-fields instead of CL_* flags.
397 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
398 instead of CL_REJECT_NEGATIVE flag.
399 * toplev.c (print_switch_values): Use cl_report bit-field instead
402 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
404 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
405 a zero minimum index only if it is redundant.
407 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
409 PR rtl-optimization/48381
410 * ira-color.c (assign_hard_reg): Use hard reg set intersection
411 instead of ira_class_hard_reg_index for calculating conflicting
414 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
416 * cprop.c: Clean up hash table building.
417 (reg_avail_info): Remove.
418 (oprs_available_p): Remove.
419 (record_last_reg_set_info): Remove.
420 (record_last_set_info): Remove.
421 (reg_available_p): New function.
422 (gcse_constant_p): Do not treat unfolded conditions as constants.
423 (make_set_regs_unavailable): New function.
424 (hash_scan_set): Simplify with new reg_available_p.
425 (compute_hash_table_work): Traverse insns stream only once.
426 Do not compute reg_avail_info. Traverse insns in reverse order.
427 Record implicit sets after recording explicit sets from the block.
429 2011-03-31 Michael Matz <matz@suse.de>
431 * builtins.c (build_va_arg_indirect_ref): Use
432 build_simple_mem_ref_loc.
434 2011-03-31 Anatoly Sokolov <aesok@post.ru>
436 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
437 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
438 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
439 (h8300_mode_dependent_address_p): New function.
440 (h8300_get_index): Make static.
442 2011-03-31 Jeff Law <law@redhat.com>
444 * reload1.c (elimination_effects): Fix typo in recent change.
446 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
447 typo potentially leading to null pointer dereference.
449 * caller-save.c (new_saved_hard_reg): Eliminate return value.
450 (setup_save_areas): Corresponding changes to avoid useless
453 * jump.c (reversed_comparison_code_parts): Avoid successive return
454 statements when REVERSE_CONDITION is defined.
456 * expr.c (expand_assignment): Avoid useless assignments.
457 (expand_expr_real_1): Likewise.
458 (expand_expr_real_2): Avoid useless statements.
460 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
462 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
464 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
467 * stmt.c (expand_expr_stmt): Avoid useless assignment.
469 2011-03-31 Joseph Myers <joseph@codesourcery.com>
472 * doc/tm.texi.in (TARGET_VERSION): Remove.
473 * doc/tm.texi: Regenerate.
474 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
475 * collect2.c (main): Don't use TARGET_VERSION.
476 * mips-tdump.c (main): Don't use TARGET_VERSION.
477 * mips-tfile.c (main): Don't use TARGET_VERSION.
478 * config.gcc (powerpc-wrs-vxworksae): Don't use
480 * config/rs6000/vxworksae.h: Remove.
481 * config/alpha/alpha.h (TARGET_VERSION): Remove.
482 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
483 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
484 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
485 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
486 * config/arm/arm.h (TARGET_VERSION): Remove.
487 * config/arm/coff.h (TARGET_VERSION): Remove.
488 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
489 * config/arm/elf.h (TARGET_VERSION): Remove.
490 * config/arm/freebsd.h (TARGET_VERSION): Remove.
491 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
492 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
493 * config/arm/pe.h (TARGET_VERSION): Remove.
494 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
495 * config/arm/semi.h (TARGET_VERSION): Remove.
496 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
497 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
498 * config/arm/vxworks.h (TARGET_VERSION): Remove.
499 * config/avr/avr.h (TARGET_VERSION): Remove.
500 * config/bfin/bfin.h (TARGET_VERSION): Remove.
501 * config/fr30/fr30.h (TARGET_VERSION): Remove.
502 * config/frv/frv.h (TARGET_VERSION): Remove.
503 * config/h8300/h8300.h (TARGET_VERSION): Remove.
504 * config/i386/cygwin.h (TARGET_VERSION): Remove.
505 * config/i386/darwin.h (TARGET_VERSION): Remove.
506 * config/i386/darwin64.h (TARGET_VERSION): Remove.
507 * config/i386/djgpp.h (TARGET_VERSION): Remove.
508 * config/i386/freebsd.h (TARGET_VERSION): Remove.
509 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
510 * config/i386/gnu.h (TARGET_VERSION): Remove.
511 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
512 * config/i386/i386elf.h (TARGET_VERSION): Remove.
513 * config/i386/linux.h (TARGET_VERSION): Remove.
514 * config/i386/linux64.h (TARGET_VERSION): Remove.
515 * config/i386/lynx.h (TARGET_VERSION): Remove.
516 * config/i386/mingw32.h (TARGET_VERSION): Remove.
517 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
518 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
519 * config/i386/netware.h (TARGET_VERSION): Remove.
520 * config/i386/nto.h (TARGET_VERSION): Remove.
521 * config/i386/openbsd.h (TARGET_VERSION): Remove.
522 * config/i386/vxworks.h (TARGET_VERSION): Remove.
523 * config/ia64/elf.h (TARGET_VERSION): Remove.
524 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
525 * config/ia64/hpux.h (TARGET_VERSION): Remove.
526 * config/ia64/linux.h (TARGET_VERSION): Remove.
527 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
528 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
529 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
530 * config/lm32/lm32.h (TARGET_VERSION): Remove.
531 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
532 * config/m32c/m32c.h (TARGET_VERSION): Remove.
533 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
534 * config/m32r/m32r.h (TARGET_VERSION): Remove.
535 * config/m68k/linux.h (TARGET_VERSION): Remove.
536 * config/m68k/m68k.h (TARGET_VERSION): Remove.
537 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
538 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
539 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
540 * config/mep/mep.h (TARGET_VERSION): Remove.
541 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
542 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
543 * config/mips/iris6.h (MACHINE_TYPE): Remove.
544 * config/mips/linux.h (TARGET_VERSION): Remove.
545 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
546 * config/mips/vxworks.h (TARGET_VERSION): Remove.
547 * config/mmix/mmix.h (TARGET_VERSION): Remove.
548 * config/mn10300/linux.h (TARGET_VERSION): Remove.
549 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
550 * config/pa/pa.h (TARGET_VERSION): Remove.
551 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
552 * config/picochip/picochip.h (TARGET_VERSION): Remove.
553 * config/rs6000/aix.h (TARGET_VERSION): Remove.
554 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
555 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
556 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
557 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
558 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
559 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
560 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
561 * config/rs6000/linux.h (TARGET_VERSION): Remove.
562 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
563 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
564 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
565 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
566 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
567 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
568 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
569 * config/s390/linux.h (TARGET_VERSION): Remove.
570 * config/s390/s390.h (TARGET_VERSION): Remove.
571 * config/s390/tpf.h (TARGET_VERSION): Remove.
572 * config/score/score.h (TARGET_VERSION): Remove.
573 * config/sh/linux.h (TARGET_VERSION): Remove.
574 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
575 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
576 * config/sh/sh.h (TARGET_VERSION): Remove.
577 * config/sh/sh64.h (TARGET_VERSION): Remove.
578 * config/sh/superh.h (TARGET_VERSION): Remove.
579 * config/sh/vxworks.h (TARGET_VERSION): Remove.
580 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
581 * config/sparc/linux.h (TARGET_VERSION): Remove.
582 * config/sparc/linux64.h (TARGET_VERSION): Remove.
583 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
584 TARGET_NAME32, TARGET_NAME): Remove.
585 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
586 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
587 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
588 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
589 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
590 * config/spu/spu.h (TARGET_VERSION): Remove.
591 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
592 * config/v850/v850.h (TARGET_VERSION): Remove.
593 * config/vax/linux.h (TARGET_VERSION): Remove.
594 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
595 * config/xtensa/elf.h (TARGET_VERSION): Remove.
596 * config/xtensa/linux.h (TARGET_VERSION): Remove.
598 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
601 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
602 frame-related from frame-unrelated adjustments to the stack pointer.
604 2011-03-31 Jakub Jelinek <jakub@redhat.com>
606 * common.opt (fdebug-types-section): Move earlier.
607 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
609 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
611 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
614 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
616 * tree.h (CASE_CHAIN): Define.
617 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
618 (gimple_redirect_edge_and_branch): Likewise.
620 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
623 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
626 2011-03-30 Jeff Law <law@redhat.com>
629 * reload1.c (reload): Fix botch in last change.
631 * reload.h (struct reload): Fix typo introduced in last change.
633 2011-03-30 Joseph Myers <joseph@codesourcery.com>
635 * config/arm/arm.opt (mhard-float, msoft-float): Mark
636 Undocumented. Remove help text.
637 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
640 2011-03-30 Joseph Myers <joseph@codesourcery.com>
642 * doc/options.texi (NegativeAlias): Document.
643 (Alias): Mention NegativeAlias.
644 * opt-functions.awk: Handle NegativeAlias.
645 * optc-gen.awk: Disallow NegativeAlias with multiple Alias
647 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
648 * opts.h (CL_NEGATIVE_ALIAS): Define.
649 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
650 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
652 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
654 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
655 mno-spe and mno-isel instead of mspe=no and -misel=no.
657 2011-03-29 Mark Wielaard <mjw@redhat.com>
659 * common.opt (fdebug-types-section): New flag.
660 * doc/invoke.texi: Document new -fno-debug-types-section flag.
661 * dwarf2out.c (use_debug_types): New define.
662 (struct die_struct): Mark die_id with GTY desc use_debug_types.
663 (print_die): Guard output of type unit signatures using
665 (build_abbrev_table): Replace assert of dwarf_version >= 4
666 with assert on use_debug_types.
667 (size_of_die): Likewise.
668 (unmark_dies): Likewise.
669 (value_format): Decide AT_ref_external form on use_debug_types.
670 (output_die): Replace dwarf_version version check guard with
671 use_debug_types where appropriate.
672 (modified_type_die): Likewise.
673 (gen_reference_type_die): Likewise.
674 (dwarf2out_start_source_file): Likewise.
675 (dwarf2out_end_source_file): Likewise.
676 (prune_unused_types_walk_attribs): Likewise.
677 (dwarf2out_finish): Likewise.
679 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
681 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
683 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
685 PR rtl-optimization/48332
686 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
687 mode of input operand N and modeN to its actual mode.
689 2011-03-30 Jeff Law <law@redhat.com>
691 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
692 define accessor macro.
693 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
694 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
695 (reg_equiv_init): Likewise.
696 (reg_equivs_size): New variable.
697 (reg_equiv_init_size): Remove.
698 (allocate_initial_values): Move prototype to here from....
699 * integrate.h (allocate_initial_values): Remove prototype.
700 * integrate.c: Include reload.h.
701 (allocate_initial_values): Corresponding changes.
702 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
703 (fix_reg_equiv_init, no_equiv): Corresponding changes.
704 (update_equiv_regs): Corresponding changes.
705 (ira): Corresponding changes.
706 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
707 (push_secondary_reload): Corresponding changes.
708 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
709 (make_memloc, find_reloads_address): Corresponding changes.
710 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
711 (find_reloads_address_1): Corresponding changes.
712 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
713 (refers_to_regno_for_reload_p): Corresponding changes.
714 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
715 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
716 * reload1.c: Include ggc.h.
717 (grow_reg_equivs): New function.
718 (replace_pseudos_in, reload): Corresponding changes.
719 (calculate_needs_all_insns, alter_regs): Corresponding changes.
720 (eliminate_regs_1, elimination_effects): Corresponding changes.
721 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
722 (delete_output_reload): Likewise.
723 * caller-save.c (mark_referenced_regs): Corresponding changes.
724 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
725 * frv/predicates.md (frv_load_operand): Corresponding changes.
726 * microblaze/microblaze.c (double_memory_operand): Corresponding
728 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
729 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
730 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding
732 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
733 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
735 * pa/pa.c (emit_move_sequence): Corresponding changes.
736 * vax/vax.c (nonindexed_address_p): Corresponding changes.
738 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
741 * config/arm/arm.c (coproc_secondary_reload_class): Handle
742 structure modes. Don't check neon_vector_mem_operand for
743 vector or structure modes.
745 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
746 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
749 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
750 operand 1 and reshuffle the operands to match.
751 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
753 2011-03-30 Christian Schüler <cschueler@gmx.de>
756 * config/c.opt (F): Added 'Driver' to -F option.
758 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
760 * config/darwin.opt: Added '-arch' option.
762 2011-03-30 Nick Clifton <nickc@redhat.com>
764 * config/rx/rx.md: Add peepholes and patterns to combine
765 extending loads and simple arithmetic instructions.
766 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
767 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
768 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
769 modes to use pre-decrement and post-increment addressing.
770 (rx_is_restricted_memory_address): Add range checking of REG+INT
772 (rx_print_operand): Add support for %Q.
774 (rx_memory_move_cost): Adjust cost of stores.
775 (rx_adjust_insn_length): New function.
777 2011-03-30 Jakub Jelinek <jakub@redhat.com>
780 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
781 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
782 matching arg00/arg01 types.
784 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
786 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
787 last_location to UNKNOWN_LOCATION.
789 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
792 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
795 2011-03-30 Joseph Myers <joseph@codesourcery.com>
796 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
799 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
801 (sparc_cpu): Likewise.
802 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
805 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
809 PR rtl-optimization/48345
810 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
811 hard regs for given mode from profitable regs when doing secondary
814 2011-03-29 Jeff Law <law@redhat.com>
817 * tree-ssa-threadupdate.c (struct redirection_data): Remove
818 do_not_duplicate field.
819 (lookup_redirection_data): Corresponding changes.
820 (create_duplicates): Always create a template block.
821 (redirect_edges): Remove code which reused the original block
822 when it was going to become unreachable code.
823 (thread_block): Don't set do_not_duplicate field.
825 2011-03-29 Joseph Myers <joseph@codesourcery.com>
827 * lto-opts.c (register_user_option_p, lto_register_user_option):
828 Make type argument unsigned.
829 * lto-streamer.h (lto_register_user_option): Make type argument
831 * opth-gen.awk: Make CL_* macros unsigned.
832 * opts-common.c (find_opt): Make lang_mask argument unsigned.
833 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
834 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
835 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
836 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
837 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
838 (find_opt): Make lang_mask argument unsigned.
840 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
842 PR rtl-optimization/48331
843 PR rtl-optimization/48334
844 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
845 for any used algorithm.
847 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
849 * ira-conflicts.c (build_object_conflicts): Add unused attribute
852 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
854 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
855 (alpha_option_override): Don't set alpha_sr_alias_set.
856 (emit_frame_store_1): Use gen_frame_mem rather than calling
858 (alpha_expand_epilogue): Ditto.
860 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
862 PR tree-optimization/48290
863 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
864 vectorization, check that relevant phis in the basic block after
865 the inner loop are really inner loop's exit phis.
867 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
870 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
871 (cached_dw_loc_list_def): New structure.
872 (cached_dw_loc_list): New typedef.
873 (cached_dw_loc_list_table): New variable.
874 (cached_dw_loc_list_table_hash): New function.
875 (cached_dw_loc_list_table_eq): Likewise.
876 (add_location_or_const_value_attribute): Take a bool cache_p.
877 Cache the list when the parameter is true.
878 (gen_formal_parameter_die): Update caller.
879 (gen_variable_die): Likewise.
880 (dwarf2out_finish): Likewise.
881 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
882 while generating debug info for the decl.
883 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
884 (dwarf2out_init): Initialize cached_dw_loc_list_table.
885 (resolve_addr): Cache the result of resolving a chain of
888 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
890 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
891 conflict object hard regset nodes have intersecting hard reg sets.
893 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
894 after regstat_init_n_sets_and_refs.
896 * ira.c: Add more comments at the top.
897 (setup_stack_reg_pressure_class, setup_pressure_classes):
898 Add comments how we compute the register pressure classes.
899 (setup_allocno_and_important_classes): Add more comments.
900 (setup_class_translate_array, reorder_important_classes)
901 (setup_reg_class_relations): Add comments.
903 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
906 * ira-color.c: Add 2011 to the Copyright line.
907 (assign_hard_reg): Add more comments.
908 (improve_allocation): Ditto.
910 * ira-costs.c: Add 2011 to the Copyright line.
911 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
913 (setup_regno_cost_classes_by_mode): Ditto.
915 Initial patches from ira-improv branch:
917 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
919 * ira-build.c: (ira_create_object): Remove initialization of
920 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
921 (ira_create_allocno): Remove initialization of
922 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
923 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
924 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
925 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
926 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
927 Initialize ALLOCNO_ADD_DATA.
928 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
929 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
931 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
932 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
934 * ira.c (ira_reallocate): Remove.
935 (setup_pressure_classes): Call
936 ira_init_register_move_cost_if_necessary. Use
937 ira_register_move_cost instead of ira_get_register_move_cost.
938 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
939 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
941 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
942 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
943 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
944 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
945 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
946 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
948 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
949 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
950 (struct allocno_color_data): New.
951 (allocno_color_data_t): New typedef.
952 (allocno_color_data): New definition.
953 (ALLOCNO_COLOR_DATA): New macro.
954 (struct object_color_data): New.
955 (object_color_data_t): New typedef.
956 (object_color_data): New definition.
957 (OBJECT_COLOR_DATA): New macro.
958 (update_copy_costs, calculate_allocno_spill_cost): Call
959 ira_init_register_move_cost_if_necessary. Use
960 ira_register_move_cost instead of ira_get_register_move_cost.
961 (move_spill_restore, update_curr_costs): Ditto.
962 (allocno_spill_priority): Make it inline.
963 (color_pass): Allocate and free allocno_color_dat and object_color_data.
964 (struct coalesce_data, coalesce_data_t): New.
965 (allocno_coalesce_data): New definition.
966 (ALLOCNO_COALESCE_DATA): New macro.
967 (merge_allocnos, coalesced_allocno_conflict_p): Use
968 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
969 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
970 (coalesce_allocnos): Ditto.
971 (setup_coalesced_allocno_costs_and_nums): Ditto.
972 (collect_spilled_coalesced_allocnos): Ditto.
973 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
974 (setup_slot_coalesced_allocno_live_ranges): Ditto.
975 (coalesce_spill_slots): Ditto.
976 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
977 free allocno_coalesce_data.
979 * ira-conflicts.c: Fix formatting.
980 (process_regs_for_copy): Call
981 ira_init_register_move_cost_if_necessary. Use
982 ira_register_move_cost instead of ira_get_register_move_cost.
983 (build_object_conflicts): Optimize.
985 * ira-costs.c (record_reg_classes): Optimize. Call
986 ira_init_register_move_cost_if_necessary. Use
987 ira_register_move_cost, ira_may_move_in_cost, and
988 ira_may_move_out_cost instead of ira_get_register_move_cost and
989 ira_get_may_move_cost.
990 (record_address_regs): Ditto.
991 (scan_one_insn): Optimize.
992 (find_costs_and_classes): Optimize.
993 (process_bb_node_for_hard_reg_moves): Call
994 ira_init_register_move_cost_if_necessary. Use
995 ira_register_move_cost instead of ira_get_register_move_cost.
997 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
998 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
999 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
1000 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
1002 (ira_initiate_emit_data, ira_finish_emit_data)
1003 (create_new_allocno): New functions.
1004 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
1005 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
1006 Use ira_register_move_cost instead of ira_get_register_move_cost.
1008 * ira-int.h: Fix some comments.
1009 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
1010 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1011 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
1012 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
1014 (struct ira_allocno): Make mode and aclass a bitfield. Move other
1015 bitfield after mode. Make hard_regno a short int. Make
1016 hard_regno short. Remove first_coalesced_allocno and
1017 next_coalesced_allocno. Move mem_optimized_dest_p,
1018 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
1019 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
1020 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
1021 temp, colorable_p. Add new member add_data.
1022 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
1023 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
1024 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
1025 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
1026 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
1027 (ALLOCNO_ADD_DATA): New macro.
1028 (ira_emit_data_t): New typedef.
1029 (struct ira_emit_data): New. Move mem_optimized_dest_p,
1030 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
1031 from struct ira_allocno.
1032 (ALLOCNO_EMIT_DATA): New macro.
1033 (ira_allocno_emit_data, allocno_emit_reg): New.
1034 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
1035 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
1036 (OBJECT_ADD_DATA): New macro.
1037 (ira_reallocate): Remove.
1038 (ira_initiate_emit_data, ira_finish_emit_data): New.
1039 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
1040 (ira_init_register_move_cost_if_necessary): New.
1041 (ira_object_conflict_iter_next): Merge into
1042 ira_object_conflict_iter_cond.
1043 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
1045 * ira-live.c: (process_single_reg_class_operands): Call
1046 ira_init_register_move_cost_if_necessary. Use
1047 ira_register_move_cost instead of ira_get_register_move_cost.
1049 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
1051 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
1053 * ira-costs.c: Fix formatting.
1054 (cost_classes, cost_classes_num): Remove.
1055 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
1056 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
1057 (cost_classes_del, cost_classes_htab): New.
1058 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
1059 (initiate_regno_cost_classes, setup_cost_classes): New.
1060 (setup_regno_cost_classes_by_aclass): New.
1061 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
1062 (record_reg_classes): Use regno_cost_classes instead of
1063 cost_classes. Move checking opposite operand up.
1064 (record_address_regs): Use regno_cost_classes
1065 instead of cost_classes.
1066 (scan_one_insn): Ditto. Use always general register.
1067 (print_allocno_costs): Use regno_cost_classes instead of
1069 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
1070 (find_costs_and_classes): Set up cost classes for each registers.
1071 Use also their mode for this. Use regno_cost_classes instead of
1073 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
1075 (free_ira_costs, ira_init_costs): Don't use cost_classes.
1076 (ira_costs, ira_set_pseudo_classes): Call
1077 initiate_regno_cost_classes and finish_regno_cost_classes.
1079 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
1081 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
1083 * target.def (ira_cover_classes): Remove.
1085 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
1087 * doc/tm.texi.in: Ditto.
1089 * ira-conflicts.c: Remove mentioning cover classes from the file.
1090 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
1091 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
1093 * targhooks.c (default_ira_cover_classes): Remove.
1095 * targhooks.h (default_ira_cover_classes): Ditto.
1097 * haifa-sched.c: Remove mentioning cover classes from the file.
1098 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
1099 ira_pressure_classes and ira_pressure_classes_num instead of
1100 ira_reg_class_cover_size and ira_reg_class_cover. Use
1101 sched_regno_pressure_class instead of sched_regno_cover_class.
1102 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
1103 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
1105 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
1106 classes from the file.
1107 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
1108 (struct object_hard_regs, struct object_hard_regs_node): New.
1109 (struct ira_object): New members profitable_hard_regs,
1110 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
1111 (struct ira_allocno): Rename cover_class to aclass. Rename
1112 cover_class_cost and updated_cover_class_cost to class_cost and
1113 updated_class_cost. Remove splay_removed_p and
1114 left_conflict_size. Add new members colorable_p.
1115 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
1116 (ALLOCNO_COLORABLE_P): New macro.
1117 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
1118 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
1119 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
1120 (OBJECT_...): Rename parameter C to O.
1121 (OBJECT_PROFITABLE_HARD_REGS): New macro.
1122 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
1123 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
1124 (struct target_ira_int): New members x_ira_max_memory_move_cost,
1125 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
1126 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
1127 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
1128 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
1129 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
1130 x_ira_reg_class_subunion.
1131 (ira_max_memory_move_cost, ira_max_register_move_cost)
1132 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
1133 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
1134 (ira_important_class_nums, ira_reg_class_superunion): New macros.
1135 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
1136 (ira_reg_class_union): Rename to ira_reg_class_subunion.
1137 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
1138 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
1139 (ira_tune_allocno_costs_and_cover_classes): Rename to
1140 ira_tune_allocno_costs.
1141 (ira_debug_hard_regs_forest): New.
1142 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
1143 (ira_object_conflict_iter_next): Fix comments.
1144 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
1145 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
1146 cover_class to aclass.
1147 (ira_allocate_and_accumulate_costs): Ditto.
1148 (ira_allocate_and_set_or_copy_costs): Ditto.
1150 * opts.c (decode_options): Remove ira_cover_class check.
1152 * ira-color.c: Remove mentioning cover classes from the file. Use
1153 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
1154 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
1155 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
1156 (splay-tree.h): Remove include.
1157 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
1158 before copy_freq_compare_func.
1159 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
1160 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
1162 (hard_regs_roots, hard_regs_node_vec): Ditto.
1163 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
1164 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
1165 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
1166 (create_new_object_hard_regs_node): Ditto.
1167 (add_new_object_hard_regs_node_to_forest): Ditto.
1168 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
1169 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
1171 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
1172 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
1173 (remove_unused_object_hard_regs_nodes): Ditto.
1174 (enumerate_object_hard_regs_nodes): Ditto.
1175 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
1176 (object_hard_regs_subnode_t): Ditto.
1177 (struct object_hard_regs_subnode): Ditto.
1178 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
1179 (setup_object_hard_regs_subnode_index): Ditto.
1180 (get_object_hard_regs_subnodes_num): Ditto.
1181 (form_object_hard_regs_nodes_forest): Ditto.
1182 (finish_object_hard_regs_nodes_tree): Ditto.
1183 (finish_object_hard_regs_nodes_forest): Ditto.
1184 (allocnos_have_intersected_live_ranges_p): Rename to
1185 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1186 (pseudos_have_intersected_live_ranges_p): Rename to
1187 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1188 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
1189 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
1190 (update_copy_costs): Remove assert. Skip cost update if the hard
1191 reg does not belong the class.
1192 (assign_hard_reg): Process only profitable hard regs.
1193 (uncolorable_allocnos_num): Make it scalar.
1194 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
1195 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
1196 and ira_reg_class_max_nregs.
1197 (bucket_allocno_compare_func): Check frequency first.
1198 (sort_bucket): Add compare function as a parameter.
1199 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
1200 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
1201 (push_allocno_to_stack): Rewrite for checking new allocno
1203 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
1204 (push_only_colorable): Pass new parameter to sort_bucket.
1205 (push_allocno_to_spill): Remove.
1206 (allocno_spill_priority_compare): Make it inline and rewrite.
1207 (splay_tree_allocate, splay_tree_free): Remove.
1208 (allocno_spill_sort_compare): New function.
1209 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
1210 build and use splay tree. Choose first allocno in uncolorable
1211 allocno bucket to spill. Remove setting spill cost.
1212 (all_conflicting_hard_regs): Remove.
1213 (setup_allocno_available_regs_num): Check only profitable hard
1214 regs. Print info about hard regs nodes.
1215 (setup_allocno_left_conflicts_size): Remove.
1216 (put_allocno_into_bucket): Don't call
1217 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
1218 (improve_allocation): New.
1219 (color_allocnos): Call setup_profitable_hard_regs,
1220 form_object_hard_regs_nodes_forest, improve_allocation,
1221 finish_object_hard_regs_nodes_forest. Setup spill cost.
1222 (print_loop_title): Use pressure classes.
1223 (color_allocnso): Ditto.
1224 (do_coloring): Remove allocation and freeing splay_tree_node_pool
1225 and allocnos_for_spilling.
1226 (ira_sort_regnos_for_alter_reg): Don't setup members
1227 {first,next}_coalesced_allocno.
1228 (color): Remove allocating and freeing removed_splay_allocno_vec.
1229 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
1230 prohibited_class_mode_regs.
1232 * ira-lives.c: Remove mentioning cover classes from the file. Fix
1234 (update_allocno_pressure_excess_length): Use pressure classes.
1235 (inc_register_pressure, dec_register_pressure): Check for pressure
1237 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
1238 pressure class. Use ira_reg_class_nregs instead of
1239 ira_reg_class_max_nregs.
1240 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
1241 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
1242 (single_reg_class): Use ira_reg_class_nregs instead of
1243 ira_reg_class_max_nregs.
1244 (process_bb_node_lives): Use pressure classes.
1246 * ira-emit.c: Remove mentioning cover classes from the file. Use
1247 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
1248 (change_loop): Use pressure classes.
1249 (modify_move_list): Call ira_set_allocno_class instead of
1250 ira_set_allocno_cover_class.
1252 * ira-build.c: Remove mentioning cover classes from the file. Use
1253 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
1254 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
1255 ALLOCNO_UPDATED_CLASS_COST instead of
1256 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
1257 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
1258 (ira_create_allocno): Remove initialization of
1259 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
1260 ALLOCNO_COLORABLE_P.
1261 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
1262 Update conflict regs for the objects.
1263 (create_cap_allocno): Remove assert. Don't propagate
1264 ALLOCNO_AVAILABLE_REGS_NUM.
1265 (ira_free_allocno_costs): New function.
1266 (finish_allocno): Change a part of code into call of
1267 ira_free_allocno_costs.
1268 (low_pressure_loop_node_p): Use pressure classes.
1269 (object_range_compare_func): Don't compare classes.
1270 (setup_min_max_conflict_allocno_ids): Ditto.
1272 * loop-invariant.c: Remove mentioning cover classes from the file.
1273 Use ira_pressure_classes and ira_pressure_classes_num instead of
1274 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
1275 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
1276 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
1277 Use reg_allocno_class instead of reg_cover_class.
1278 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
1279 STACK_REG_COVER_CLASS.
1280 (get_regno_cover_class): Rename to get_regno_pressure_class.
1281 (move_loop_invariants): Initialize and finalize regstat.
1283 * ira.c: Remove mentioning cover classes from the file. Add
1284 comments about coloring without cover classes. Use ALLOCNO_CLASS
1285 instead of ALLOCNO_COVER_CLASS. Fix formatting.
1286 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
1287 setup_class_subset_and_memory_move_costs.
1288 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
1289 (setup_cover_and_important_classes): Rename to
1290 setup_allocno_and_important_classes.
1291 (setup_class_translate_array): New.
1292 (setup_class_translate): Call it for allocno and pressure classes.
1293 (cover_class_order): Rename to allocno_class_order.
1294 (comp_reg_classes_func): Use ira_allocno_class_translate instead
1295 of ira_class_translate.
1296 (reorder_important_classes): Set up ira_important_class_nums.
1297 (setup_reg_class_relations): Set up ira_reg_class_superunion.
1298 (print_class_cover): Rename to print_classes. Add parameter.
1299 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
1300 Print pressure classes too.
1301 (find_reg_class_closure): Rename to find_reg_classes. Don't call
1302 setup_reg_subclasses.
1303 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1304 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
1305 (setup_prohibited_class_mode_regs): Use
1306 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
1307 (clarify_prohibited_class_mode_regs): New function.
1308 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
1309 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
1310 (ira_init_once): Initialize them.
1311 (free_register_move_costs): Process them.
1312 (ira_init): Move calls of find_reg_classes and
1313 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
1314 Call clarify_prohibited_class_mode_regs.
1315 (ira_no_alloc_reg): Remove.
1316 (too_high_register_pressure_p): Use pressure classes.
1318 * sched-deps.c: Remove mentioning cover classes from the file.
1319 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
1320 ira_pressure_classes and ira_pressure_classes_num instead of
1321 ira_reg_class_cover_size and ira_reg_class_cover.
1322 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
1323 sched_regno_pressure_class instead of sched_regno_cover_class.
1324 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
1325 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
1327 * ira.h: Add 2010 to Copyright.
1328 (ira_no_alloc_reg): Remove external.
1329 (struct target_ira): Rename x_ira_hard_regno_cover_class,
1330 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
1331 x_ira_class_translate to x_ira_hard_regno_allocno_class,
1332 x_ira_allocno_classes_num, x_ira_allocno_classes, and
1333 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
1334 x_ira_pressure_classes, x_ira_pressure_class_translate, and
1335 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
1336 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
1337 x_ira_no_alloc_regs.
1338 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1339 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
1340 ira_allocno_classes_num and ira_allocno_classes.
1341 (ira_class_translate): Rename to ira_allocno_class_translate.
1342 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
1343 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
1344 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
1345 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
1346 (ira_no_alloc_regs): New.
1348 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
1349 classes from the file. Use ALLOCNO_CLASS instead of
1350 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
1351 ALLOCNO_COVER_CLASS_COST.
1352 (regno_cover_class): Rename to regno_aclass.
1353 (record_reg_classes): Use ira_reg_class_subunion instead of
1354 ira_reg_class_union.
1355 (record_address_regs): Check overflow.
1356 (scan_one_insn): Ditto.
1357 (print_allocno_costs): Print total mem cost fore regional allocation.
1358 (print_pseudo_costs): Use REG_N_REFS.
1359 (find_costs_and_classes): Use classes intersected with them on the
1360 1st pass. Check overflow. Use ira_reg_class_subunion instead of
1361 ira_reg_class_union. Use ira_allocno_class_translate and
1362 regno_aclass instead of ira_class_translate and regno_cover_class.
1363 Modify code for finding regno_aclass. Setup preferred classes for
1365 (setup_allocno_cover_class_and_costs): Rename to
1366 setup_allocno_class_and_costs. Use regno_aclass instead of
1367 regno_cover_class. Use ira_set_allocno_class instead of
1368 ira_set_allocno_cover_class.
1369 (init_costs, finish_costs): Use regno_aclass instead of
1371 (ira_costs): Use setup_allocno_class_and_costs instead of
1372 setup_allocno_cover_class_and_costs.
1373 (ira_tune_allocno_costs_and_cover_classes): Rename to
1374 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
1375 by processing objects. Use ira_reg_class_max_nregs instead of
1376 ira_reg_class_nregs.
1378 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
1380 * sched-int.h: Remove mentioning cover classes from the file.
1381 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
1383 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
1384 classes from the file.
1385 (struct reg_pref): Rename coverclass into allocnoclass.
1386 (reg_cover_class): Rename to reg_allocno_class.
1388 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
1390 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
1392 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
1394 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
1396 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
1398 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
1400 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
1402 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
1404 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
1406 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
1408 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
1409 (i386_ira_cover_classes): Ditto.
1411 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
1413 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
1415 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
1417 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
1419 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
1421 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
1423 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
1424 (mips_ira_cover_classes): Ditto.
1426 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
1428 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
1430 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
1432 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
1434 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
1436 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
1437 (IRA_COVER_CLASSES_VSX): Ditto.
1439 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
1440 (rs6000_ira_cover_classes): Ditto.
1442 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
1444 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
1446 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
1448 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
1450 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
1452 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
1454 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
1456 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
1458 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
1460 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
1462 2011-03-29 Jakub Jelinek <jakub@redhat.com>
1465 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
1466 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
1467 dw_fde_unlikely_section_end_label, cold_in_std_section,
1468 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
1469 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
1471 (output_fde): Use dw_fde_second_{begin,end} if second is
1472 true, otherwise dw_fde_{begin,end}.
1473 (output_call_frame_info): Test dw_fde_second_begin != NULL
1474 instead of dw_fde_switched_sections.
1475 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
1476 fields, initialize new fields. Initialize in_std_section
1477 unconditionally from the first partition.
1478 (dwarf2out_end_epilogue): Don't override dw_fde_end when
1479 dw_fde_second_begin is non-NULL.
1480 (dwarf2out_switch_text_section): Stop initializing removed
1481 dw_fde_struct fields, initialize new fields, initialize
1482 also dw_fde_end here. Set dw_fde_switch_cfi even when
1483 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
1484 (struct var_loc_list_def): Add last_before_switch field.
1485 (arange_table, arange_table_allocated, arange_table_in_use,
1486 ARANGE_TABLE_INCREMENT, add_arange): Removed.
1487 (size_of_aranges): Count !in_std_section and !second_in_std_section
1488 hunks in fdes, instead of looking at arange_table_in_use.
1489 (output_aranges): Add aranges_length argument, don't call
1490 size_of_aranges here. Instead of using aranges_table*
1491 emit ranges for fdes when !in_std_section resp.
1492 !second_in_std_section.
1493 (dw_loc_list): Break ranges crossing section switch.
1494 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
1495 use dw_fde_second_end instead of dw_fde_end as end of last range.
1496 (gen_subprogram_die): Don't call add_arange. Use
1497 dw_fde_{begin,end} for first partition and if switched
1498 section dw_fde_second_{begin,end} for the second.
1499 (var_location_switch_text_section_1,
1500 var_location_switch_text_section): New functions.
1501 (dwarf2out_begin_function): Initialize cold_text_section even
1502 when function_section () isn't text_section.
1503 (prune_unused_types): Don't walk arange_table.
1504 (dwarf2out_finish): Don't needlessly test
1505 flag_reorder_blocks_and_partition when testing cold_text_section_used.
1506 If info_section_emitted, call size_of_aranges and if it indicates
1507 non-empty .debug_aranges, call output_aranges with the computed
1508 size. Stop using removed dw_fde_struct fields, use
1509 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
1513 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
1514 create ENTRY_VALUE if incoming or address of incoming's MEM
1516 * dwarf2out.c (mem_loc_descriptor): Don't emit
1517 DW_OP_GNU_entry_value of DW_OP_fbreg.
1518 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
1519 on ENTRY_VALUE is able to find the canonical parameter VALUE.
1520 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
1521 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
1523 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
1524 is a REG_P or MEM_P with REG_P address, compute hash directly
1525 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
1526 (preserve_only_constants): Don't clear VALUES forwaring
1527 ENTRY_VALUE to some other VALUE.
1529 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
1531 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
1534 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
1536 * cfgexpand.c (expand_gimple_cond): Always set the source location and
1537 block before expanding the statement.
1538 (expand_gimple_stmt_1): Likewise. Set them here...
1539 (expand_gimple_stmt): ...and not here. Tidy.
1540 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
1543 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
1545 * Makefile.in: New rule for cprop.o.
1546 * gcse.c: Move constant/copy propagation to cprop.c.
1547 (compute_local_properties): Only handle expression tables.
1548 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
1549 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
1550 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
1551 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
1552 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
1553 compute_cprop_data, find_used_regs, try_replace_reg,
1554 find_avail_set, cprop_jump, constprop_register, cprop_insn,
1555 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
1556 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
1557 find_bypass_set, reg_killed_on_edge, bypass_block,
1558 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
1559 execute_rtl_cprop, pass_rtl_cprop): Move to...
1560 * cprop.c: ...here. New file, constant/copy propagation for RTL
1561 moved from gcse.c to here with minor cleanups in duplicated code.
1563 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
1565 * config/i386/i386.c (flag_opts): Fix a typo in
1566 -mavx256-split-unaligned-store.
1568 2011-03-28 Anatoly Sokolov <aesok@post.ru>
1570 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
1571 LIBCALL_VALUE): Remove macros.
1572 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1573 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1574 (h8300_function_value, h8300_libcall_value,
1575 h8300_function_value_regno_p): New functions.
1577 2011-03-28 Anatoly Sokolov <aesok@post.ru>
1579 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
1581 2011-03-28 Jeff Law <law@redhat.com>
1583 * tree-ssa-threadupdate.c (redirect_edges): Call
1584 create_edge_and_update_destination_phis as needed.
1585 (create_edge_and_update_destination_phis): Accept new BB argument.
1586 All callers updated.
1587 (thread_block): Do not update the profile when threading around
1588 intermediate blocks.
1589 (thread_single_edge): Likewise.
1590 (determine_bb_domination_status): If BB is not a successor of the
1591 loop header, return NONDOMINATING.
1592 (register_jump_thread): Note when we register a jump thread around
1593 an intermediate block.
1594 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
1595 (thread_across_edge): Use it.
1597 2011-03-28 Tristan Gingold <gingold@adacore.com>
1599 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
1600 when for_return is 2.
1602 2011-03-28 Jeff Law <law@redhat.com>
1604 * var-tracking.c (canonicalize_values_mark): Delete unused
1606 (canonicalize_values_star, set_variable_part): Likewise.
1607 (clobber_variable_part, delete_variable_part): Likewise.
1609 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
1611 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
1613 2011-03-28 Martin Jambor <mjambor@suse.cz>
1615 * tree-inline.c (expand_call_inline): Do not check that destination
1617 (optimize_inline_calls): Assert that destination node is analyzed.
1618 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
1619 not call tree_lowering_passes.
1620 * cgraph.h (cgraph_analyze_function): Declare.
1621 * cgraphunit.c (cgraph_analyze_function): Make public.
1623 2011-03-28 Joseph Myers <joseph@codesourcery.com>
1625 * config/sparc/sparc-opts.h: New.
1626 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
1627 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
1628 (sparc_option_override): Store processor_type enumeration rather
1629 than string in cpu_default. Remove name and enumeration from
1630 cpu_table. Directly default -mcpu then default -mtune from -mcpu
1631 without using sparc_select. Use target_flags_explicit instead of
1633 * config/sparc/sparc.h (enum processor_type): Move to
1635 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
1636 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
1637 HeaderInclude entry.
1638 (mcpu=, mtune=): Use Var and Enum.
1639 (sparc_processor_type): New Enum and EnumValue entries.
1641 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1642 Iain Sandoe <iains@gcc.gnu.org>
1645 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
1647 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
1649 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
1650 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
1651 Insert new statements at it in lieu of STMT.
1652 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
1653 * tree-vect-stmts.c (vectorizable_store): Likewise.
1654 (vectorizable_load): Likewise.
1656 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
1658 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
1663 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
1665 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
1666 unaligned 256bit load/store.
1667 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
1668 (*avx_movdqu<avxmodesuffix>): Likewise.
1670 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1673 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
1674 * config/pa/pa.md (iordi3): Use new predicate in expander.
1677 2011-03-27 Anatoly Sokolov <aesok@post.ru>
1679 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
1680 FUNCTION_VALUE_REGNO_P): Remove macros.
1681 * config/mips/mips-protos.h (mips_function_value): Remove.
1682 * config/mips/mips.c (mips_function_value): Rename to...
1683 (mips_function_value_1): ... this. Make static. Handle receiving
1684 the function type in 'fn_decl_or_type' argument.
1685 (mips_function_value, mips_libcall_value,
1686 mips_function_value_regno_p): New function.
1687 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1688 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1690 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
1692 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
1693 and -mavx256-split-unaligned-store.
1694 (ix86_option_override_internal): Split 32-byte AVX unaligned
1695 load/store by default.
1696 (ix86_avx256_split_vector_move_misalign): New.
1697 (ix86_expand_vector_move_misalign): Use it.
1699 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
1700 -mavx256-split-unaligned-store.
1702 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
1703 256bit load/store. Generate unaligned store on misaligned memory
1705 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
1707 (*avx_movdqu<avxmodesuffix>): Likewise.
1709 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
1710 -mavx256-split-unaligned-store.
1712 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
1715 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
1718 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
1720 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
1721 opno arguments with an expand_operand. Use create_input_operand.
1722 (mips_prepare_builtin_target): Delete.
1723 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
1725 (mips_expand_builtin_direct): Use create_output_operand and
1726 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
1727 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
1728 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
1730 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
1732 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
1734 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
1736 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
1738 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
1739 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
1740 basic blocks and call commit_edge_insertions directly.
1741 (fixup_abnormal_edges): Move from here to...
1742 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
1743 on the edges and return whether some have actually been inserted.
1744 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
1747 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
1749 PR rtl-optimization/48144
1750 * sel-sched-ir.c (merge_history_vect): Factor out from ...
1751 (merge_expr_data): ... here.
1752 (av_set_intersect): Rename to av_set_code_motion_filter.
1753 Update all callers. Call merge_history_vect when an expression
1754 is found in both sets.
1755 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
1757 2011-03-26 Alan Modra <amodra@gmail.com>
1759 * config/rs6000/predicates.md (word_offset_memref_op): Handle
1760 cmodel medium addresses.
1761 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
1762 64-bit gpr loads and stores.
1763 (rs6000_secondary_reload_ppc64): New function.
1764 * config/rs6000/rs6000-protos.h: Declare it.
1765 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
1767 2011-03-26 Alan Modra <amodra@gmail.com>
1770 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
1771 GNU Go in traceback table.
1773 2011-03-25 Richard Henderson <rth@redhat.com>
1775 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
1776 if there are exactly 6 operands.
1777 (set_storage_via_setmem): Similarly.
1779 2011-03-25 Kai Tietz <ktietz@redhat.com>
1781 * collect2.c (write_c_file_stat): Handle backslash
1782 as right-hand directory separator.
1783 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
1784 checking just for slash.
1785 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
1786 instead of checking for trailing slash.
1787 * gcc.c (record_temp_file): Use filename_cmp instead
1789 (do_spec_1): Likewise.
1790 (replace_outfile_spec_function): Likewise.
1791 (is_directory): Use filename_ncmp instead of strncmp.
1792 (print_multilib_info): Likewise.
1793 * gcov.c (find_source): Use filename_cmp instead
1795 (make_gcov_file_name): Fix order of slash/backslash
1797 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
1798 (add_standard_paths): Likewise.
1799 * mips-tfile.c (saber_stop): Handle backslash.
1800 * prefix.c (update_path): Use filename_ncmp instead of
1802 * profile.c (output_location): Use filename_cmp instead
1804 * read-md.c (handle_toplevel_file): Handle backslash.
1805 * tlink.c (frob_extension): Likewise.
1806 * tree-cfg.c (same_line_p): Use filename_cmp instead of
1808 * tree-dump.c (dequeue_and_dump): Handle backslash.
1809 * tree.c (get_file_function_name): Likewise.
1810 * gengtype.c (read_input_list): Likewise.
1811 (get_file_realbasename): Likewise.
1812 (get_output_file_with_visibility): Use filename_cmp
1815 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
1817 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
1820 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
1822 * fold-const.c (expr_location_or): New function.
1823 (fold_truth_not_expr): Call it.
1825 2011-03-25 Jeff Law <law@redhat.com>
1827 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
1829 * c-family/c-common.c (def_fn_type): Likewise.
1830 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
1831 * emit-rtl.c (gen_rtvec): Likewise.
1832 * lto/lto-lang.c (def_fn_type): Likewise.
1834 2011-03-25 Richard Guenther <rguenther@suse.de>
1836 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
1837 also generate copies.
1838 (fini_copy_prop): Handle constant values properly.
1840 2011-03-25 Jakub Jelinek <jakub@redhat.com>
1842 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
1843 mode size instead of bitsize with DWARF2_ADDR_SIZE.
1844 (hash_loc_operands, compare_loc_operands): Handle
1845 DW_OP_GNU_entry_value.
1847 2011-03-25 Kai Tietz <ktietz@redhat.com>
1849 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
1850 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
1851 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
1852 comment and use macro TARGET_64BIT_MS_ABI instead.
1853 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
1854 and change default behavior for 32-bit MS_ABI.
1855 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
1856 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
1858 (ix86_cfun_abi): Likewise.
1859 (ix86_maybe_switch_abi): Adjust comment.
1860 (init_cumulative_args): Check for bit-ness in MS_ABI case.
1861 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
1862 instead of checking for SYSV_ABI.
1863 (ix86_nsaved_sseregs): Likewise.
1864 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
1866 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
1867 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
1868 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
1869 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
1870 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
1872 2011-03-25 Richard Guenther <rguenther@suse.de>
1874 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
1875 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
1876 (verify_gimple): Remove.
1877 * tree-cfg.c (verify_gimple_call): Merge verification
1879 (verify_gimple_phi): Merge verification from verify_stmts.
1880 (verify_gimple_label): New function.
1881 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
1882 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
1883 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
1884 (verify_stmts): Rename to verify_gimple_in_cfg.
1885 (verify_gimple_in_cfg): New function.
1886 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
1887 * tree-ssa.c (verify_ssa): Likewise.
1888 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
1890 2011-03-25 Richard Guenther <rguenther@suse.de>
1892 * passes.c (init_optimization_passes): Add FRE pass after
1895 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
1896 Andrew Stubbs <ams@codesourcery.com>
1898 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
1900 (arm_movdi_vfp_cortexa8): New pattern.
1901 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
1902 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
1903 instructions when tuning for Cortex-A8. Set attribute "arch".
1904 * config/arm/arm.md: Move include arm-tune.md up a bit.
1905 (define_attr "arch"): Add "onlya8" and "nota8" values.
1906 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
1908 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
1912 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
1914 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
1915 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
1916 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
1917 * passes.c (init_optimization_passes): Move
1918 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
1920 2011-03-25 Kai Tietz <ktietz@redhat.com>
1922 * c-typeck.c (comptypes_internal): Replace target
1923 hook call of comp_type_attributes by version in tree.c file.
1924 * gimple.c (gimple_types_compatible_p_1): Likewise.
1925 * tree-ssa.c (useless_type_conversion_p): Likewise.
1926 * tree.c (build_type_attribute_qual_variant): Likewise.
1927 (attribute_value_equal): New static helper function.
1928 (comp_type_attributes): New function.
1929 (merge_attributes): Use attribute_value_equal for comparison.
1930 (attribute_list_contained): Likewise.
1931 * tree.h (comp_type_attributes): New prototype.
1933 2011-03-25 Richard Guenther <rguenther@suse.de>
1935 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
1936 of complex types at -O0.
1937 (verify_gimple_assign_binary): Likewise.
1938 (verify_gimple_assign_ternary): Likewise.
1940 2011-03-24 Mark Wielaard <mjw@redhat.com>
1942 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
1943 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
1945 2011-03-24 Mark Wielaard <mjw@redhat.com>
1948 * dwarf2out.c (output_abbrev_section): Only write table when
1949 abbrev_die_table_in_use > 1.
1951 2011-02-24 Richard Henderson <rth@redhat.com>
1953 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
1954 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
1955 (alpha_expand_unaligned_load_words): Use extql.
1956 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
1957 (emit_insxl): Handle all modes for consistency.
1959 2011-02-24 Richard Henderson <rth@redhat.com>
1961 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
1962 (alpha_expand_unaligned_load): Likewise.
1963 (alpha_expand_unaligned_store): Likewise.
1964 (alpha_expand_unaligned_load_words): Likewise.
1965 (alpha_expand_unaligned_store_words): Likewise.
1966 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
1967 (alpha_split_lock_test_and_set_12): Likewise.
1968 (print_operand, alpha_fold_builtin_extxx): Likewise.
1969 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
1970 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
1971 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
1972 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
1973 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
1974 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
1975 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
1976 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
1977 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
1978 (extwl, extll, extql): Similarly.
1979 (inswh, inslh, insqh): Similarly.
1980 (mskbl, mskwl, mskll, mskql): Similarly.
1981 (mskwh, msklh, mskqh): Similarly.
1983 2011-02-24 Richard Henderson <rth@redhat.com>
1985 * config/alpha/alpha.md (attribute isa): Add er, ner.
1986 (attribute enabled): Handle them.
1987 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
1989 2011-02-24 Richard Henderson <rth@redhat.com>
1991 * config/alpha/alpha.md (attribute isa): Add vms.
1992 (attribute enabled): Handle it.
1993 (*movsf): Merge *movsf_{nofix,fix,nofp}.
1994 (*movdf): Merge *movdf_{nofix,fix,nofp}.
1995 (*movtf): Rename from *movtf_internal for consistency.
1996 (*movsi): Merge with *movsi_nt_vms.
1997 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
1998 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
1999 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
2000 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
2002 2011-02-24 Richard Henderson <rth@redhat.com>
2004 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
2005 (extendqisi2, extendhisi2): Likewise.
2006 (extendqidi2): Simplify BWX/non-BWX expansions.
2007 (extendhidi2): Similarly.
2009 2011-02-24 Richard Henderson <rth@redhat.com>
2011 * config/alpha/alpha.md (attribute isa): New.
2012 (attribute enabled): New.
2013 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
2014 (zero_extendqisi2, zero_extendqidi2): Similarly.
2015 (zero_extendhisi2, zero_extendhidi2): Similarly.
2016 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
2018 2011-02-24 Richard Henderson <rth@redhat.com>
2020 * config/alpha/predicates.md (input_operand): Revert last change;
2021 update comment to mention 32-bit VMS rather than Windows.
2023 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
2025 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
2026 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
2027 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
2028 * passes.c (init_optimization_passes): Move
2029 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
2031 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
2033 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
2035 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
2037 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
2040 2011-03-24 Jakub Jelinek <jakub@redhat.com>
2043 * simplify-rtx.c (simplify_const_unary_operation): Call
2044 real_convert when changing mode class with FLOAT_EXTEND.
2046 2011-03-24 Nick Clifton <nickc@redhat.com>
2048 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
2049 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
2050 * config/rx/rx.c (rx_option_override): Set align_jumps,
2051 align_loops and align_labels if not set by the user.
2052 (rx_align_for_label): New function.
2053 (rx_max_skip_for_label): New function.
2054 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
2055 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
2056 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
2057 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
2058 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
2060 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
2062 PR rtl-optimization/48263
2063 * optabs.c (expand_binop_directly): Reinstate convert_modes code
2064 and original commutative_p handling. Use maybe_gen_insn.
2066 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2068 * reload.c (find_reloads_subreg_address): Add address_reloaded
2069 parameter and return true there if the full address has been
2071 (find_reloads_toplev): Pass address_reloaded flag.
2072 (find_reloads_address_1): Don't use address_reloaded parameter.
2074 2011-03-24 Jeff Law <law@redhat.com>
2076 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
2077 unused variable "ann".
2078 (remove_unused_locals): Likewise.
2080 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
2083 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
2086 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2088 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
2089 for invalid symbolic addresses.
2090 (s390_secondary_reload): Don't use s390_check_symref_alignment for
2093 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
2095 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
2096 the argument in calls to fold_truth_not_expr.
2098 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
2100 * tree.c (record_node_allocation_statistics): New function.
2101 (make_node_stat, copy_node_stat, build_string): Call it.
2102 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
2103 (build1_stat, build_omp_clause): Likewise.
2105 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
2107 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
2110 2011-03-24 Richard Guenther <rguenther@suse.de>
2112 PR tree-optimization/48271
2113 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
2114 blocks that still exist.
2116 2011-03-24 Richard Guenther <rguenther@suse.de>
2118 PR tree-optimization/48270
2119 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
2120 not free datarefs before ddrs.
2122 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
2124 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
2125 from the address built for a reference with variable offset.
2127 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
2130 * config/i386/i386.md (*movdf_internal_rex64): Do not split
2131 alternatives that can be handled with movq or movabsq insn.
2132 (*movdf_internal): Disable for !TARGET_64BIT.
2133 (*movdf_internal_nointeger): Ditto.
2134 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
2136 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
2138 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
2139 (FUNCTION_ARG_ADVANCE): Likewise.
2140 * tm.texi.in: Change references to them to hook references.
2141 * tm.texi: Regenerate.
2142 * targhooks.c (default_function_arg): Eliminate check for target macro.
2143 (default_function_incoming_arg): Likewise.
2144 (default_function_arg_advance): Likewise.
2145 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
2146 (function_arg_advance): Likewise.
2147 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
2149 2011-03-24 Richard Guenther <rguenther@suse.de>
2152 * tree-object-size.c (addr_object_size): Do not double-account
2153 for MEM_REF offsets.
2155 2011-03-24 Diego Novillo <dnovillo@google.com>
2157 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
2158 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
2159 (lto_input_data_block): Move from lto-opts.c. Make extern.
2161 (lto_input_string): Rename from input_string. Make extern.
2163 * lto-streamer-out.c (lto_output_string_with_length): Rename from
2164 output_string_with_length.
2165 Output 0 to indicate a non-NULL string. Update all callers to
2167 (lto_output_string): Rename from output_string. Make extern.
2169 (lto_output_decl_state_streams): Make extern.
2170 (lto_output_decl_state_refs): Make extern.
2171 * lto-streamer.h (lto_input_string): Declare.
2172 (lto_input_data_block): Declare.
2173 (lto_output_string): Declare.
2174 (lto_output_string_with_length): Declare.
2175 (lto_output_decl_state_streams): Declare.
2176 (lto_output_decl_state_refs): Declare.
2178 2011-03-24 Richard Guenther <rguenther@suse.de>
2180 PR tree-optimization/46562
2181 * tree.c (build_invariant_address): New function.
2182 * tree.h (build_invariant_address): Declare.
2183 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
2184 a renamed function moved ...
2185 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
2186 Take valueization callback parameter.
2187 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
2188 * gimple-fold.h: New file.
2189 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
2190 (ccp_fold, fold_const_aggregate_ref,
2191 fold_ctor_reference, fold_nonarray_ctor_reference,
2192 fold_array_ctor_reference, fold_string_cst_ctor_reference,
2193 get_base_constructor): Move ...
2194 * gimple-fold.c: ... here.
2195 (gimple_fold_stmt_to_constant_1): New function
2196 split out from ccp_fold. Take a valueization callback parameter.
2197 Valueize all operands.
2198 (gimple_fold_stmt_to_constant): New wrapper function.
2199 (fold_const_aggregate_ref_1): New function split out from
2200 fold_const_aggregate_ref. Take a valueization callback parameter.
2201 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
2202 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
2203 invariant POINTER_PLUS_EXPRs to invariant form.
2204 (vn_valueize): New function.
2205 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
2206 * tree-vrp.c (vrp_valueize): New function.
2207 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
2208 to fold statements to constants.
2209 * tree-ssa-pre.c (eliminate): Properly guard propagation of
2210 function declarations.
2211 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
2212 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
2214 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
2216 * config/h8300/predicates.md (jump_address_operand): Fix register
2219 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
2221 * doc/invoke.texi (max-stores-to-sink): Document.
2222 * params.h (MAX_STORES_TO_SINK): Define.
2223 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
2224 if either vectorization or if-conversion is disabled.
2225 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
2226 tree-vect-data-refs.c vect_equal_offsets.
2227 (dr_equal_offsets_p): New function.
2228 (find_data_references_in_bb): Remove static.
2229 * tree-data-ref.h (find_data_references_in_bb): Declare.
2230 (dr_equal_offsets_p): Likewise.
2231 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
2232 (vect_drs_dependent_in_basic_block): Update calls to
2234 (vect_check_interleaving): Likewise.
2235 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
2236 (cond_if_else_store_replacement): Rename to...
2237 (cond_if_else_store_replacement_1): ... this. Change arguments and
2239 (cond_if_else_store_replacement): New function.
2240 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
2241 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
2243 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
2246 * config/arm/arm.md (casesi): Use the gen_int_mode() function
2247 to subtract lower bound instead of GEN_INT().
2249 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
2254 * doc/extend.texi (Alignment): Move section to match order in TOC.
2255 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
2256 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
2258 2011-03-23 Jeff Law <law@redhat.com>
2260 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
2261 before removing the edge.
2263 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
2264 it may have been freed by redirect_branch_edge or
2265 redirect_edge_succ_nodup.
2267 2011-03-23 Richard Guenther <rguenther@suse.de>
2269 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
2270 (check_va_list_escapes): Likewise.
2271 (check_all_va_list_escapes): Likewise.
2273 2011-03-23 Richard Guenther <rguenther@suse.de>
2275 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
2276 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
2277 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
2278 (alias.o): Likewise.
2279 (ipa-type-escape.o): Remove.
2280 (ipa-struct-reorg.o): Likewise.
2281 (GTFILES): Remove ipa-struct-reorg.c.
2282 * alias.c: Do not include ipa-type-escape.h.
2283 * tree-ssa-alias.c: Likewise.
2284 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
2285 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
2286 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
2287 and ipa-type-escape passes.
2288 * tree-pass.h (pass_ipa_type_escape): Remove.
2289 (pass_ipa_struct_reorg): Likewise.
2290 * ipa-struct-reorg.h: Remove.
2291 * ipa-struct-reorg.c: Likewise.
2292 * ipa-type-escape.h: Likewise.
2293 * ipa-type-escape.c: Likewise.
2294 * doc/invoke.texi (-fipa-struct-reorg): Remove.
2295 (--param struct-reorg-cold-struct-ratio): Likewise.
2296 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
2297 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
2298 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
2300 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2302 * config/s390/2084.md: Enable all insn reservations also for z9_ec
2303 cpu attribute value.
2304 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
2305 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
2306 * config/s390/s390.c (processor_flags_table): New constant array.
2307 (s390_handle_arch_option): Remove.
2308 (s390_handle_option): Remove s390_handle_arch_option invocations
2309 and OPT_mwarn_framesize_ handling.
2310 (s390_option_override): Remove s390_handle_arch_option invocation.
2311 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
2313 * config/s390/s390.md (cpu attribute): Add z9_ec value.
2314 * config/s390/s390.opt (s390_tune, s390_arch)
2315 (march=): Replace s390_arch_option enum and values with
2316 processor_type. Set variable name to s390_arch. Set
2317 initialization value.
2318 (mtune=): Replace s390_arch_option with processor_type. Set
2319 variable name to s390_tune. Set initialization value.
2321 2011-03-23 Julian Brown <julian@codesourcery.com>
2323 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
2324 accesses which are not naturally aligned.
2326 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
2329 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
2331 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
2333 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
2334 parameter from "int" to "enum insn_code".
2335 (expand_operand_type): New enum.
2336 (expand_operand): New structure.
2337 (create_expand_operand): New function.
2338 (create_fixed_operand, create_output_operand): Likewise
2339 (create_input_operand, create_convert_operand_to): Likewise.
2340 (create_convert_operand_from, create_address_operand): Likewise.
2341 (create_integer_operand): Likewise.
2342 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
2343 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
2344 (expand_insn, expand_jump_insn): Likewise.
2345 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
2346 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
2347 (expand_movstr, expand_builtin___clear_cache): Likewise.
2348 (expand_builtin_lock_release): Likewise.
2349 * explow.c (allocate_dynamic_stack_space): Likewise.
2350 (probe_stack_range): Likewise. Allow check_stack to FAIL,
2351 and use the default handling in that case.
2352 * expmed.c (check_predicate_volatile_ok): Delete.
2353 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
2354 (emit_cstore): Likewise.
2355 * expr.c (emit_block_move_via_movmem): Likewise.
2356 (set_storage_via_setmem, expand_assignment): Likewise.
2357 (emit_storent_insn, try_casesi): Likewise.
2358 (emit_single_push_insn): Likewise. Allow the expansion to fail.
2359 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
2360 (expand_vec_shift_expr, expand_binop_directly): Likewise.
2361 (expand_twoval_unop, expand_twoval_binop): Likewise.
2362 (expand_unop_direct, emit_indirect_jump): Likewise.
2363 (emit_conditional_move, vector_compare_rtx): Likewise.
2364 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
2365 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
2366 (expand_sync_lock_test_and_set): Likewise.
2367 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
2368 (emit_unop_insn): Likewise.
2369 (expand_copysign_absneg): Change icode to an insn_code.
2370 (create_convert_operand_from_type): New function.
2371 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
2372 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
2373 (expand_insn, expand_jump_insn): Likewise.
2374 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
2375 than const_int_operand for operand 2.
2377 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2379 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
2382 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
2384 * emit-rtl.c (emit_pattern_before_noloc): New function.
2385 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
2386 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
2387 (emit_pattern_after_noloc): New function.
2388 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
2389 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
2391 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
2393 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
2394 (__ffsDI2): Likewise.
2396 2011-03-22 Richard Henderson <rth@redhat.com>
2398 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
2399 of !TARGET_ABI_OPEN_VMS.
2400 (alpha_trampoline_init, alpha_start_function): Likewise.
2401 (alpha_expand_epilogue, alpha_file_start): Likewise.
2402 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
2403 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
2404 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
2405 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
2406 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
2408 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2410 * config/s390/s390-opts.h: New.
2411 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
2412 s390_arch_flags, s390_warn_framesize, s390_stack_size,
2413 s390_stack_guard): Remove.
2414 (s390_handle_arch_option): Return void. Take enum
2415 s390_arch_option value instead of string and searching array.
2416 (s390_handle_option): Don't assert that global structures are in
2417 use. Access variables via opts pointer. Use error_at. Don't use
2418 sscanf for -mstack-guard= or -mstack-size=. Update call to
2419 s390_handle_arch_option.
2420 (s390_option_override): Update call to s390_handle_arch_option.
2421 (s390_emit_prologue): Use %d format for s390_stack_size in
2422 diagnostic. Use %wd for HOST_WIDE_INT.
2423 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
2424 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
2425 * config/s390/s390.opt (config/s390/s390-opts.h): New
2426 HeaderInclude entry.
2427 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
2428 s390_arch_flags, s390_warn_framesize): New Variable entries.
2429 (s390_arch_option): New Enum and EnumValue entries.
2430 (march=): Use Enum instead of Var.
2431 (mstack-guard=, mstack-size=): Use UInteger and Var.
2434 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2436 * config/score/score.c (score_handle_option): Don't assert that
2437 global structures are in use. Access target_flags via opts
2438 pointer. Use value of -march= option to determine target_flags
2440 * config/score/score.opt (march=): Use Enum.
2441 (score_arch): New Enum and EnumValue entries.
2443 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2445 * config/mep/mep.c (option_mtiny_specified): Remove.
2446 (mep_option_override): Move register handling for -mivc2 from
2447 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
2448 instead of option_mtiny_specified.
2449 (mep_handle_option): Access target_flags via opts pointer. Don't
2450 assert that global structures are in use. Defer part of -mivc2
2451 handling and move it to mep_option_override.
2452 * config/mep/mep.opt (IVC2): New Mask entry.
2453 (mivc2): Use Var and Defer instead of Mask.
2455 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2457 * config/v850/v850-opts.h: New.
2458 * config/v850/v850.c (small_memory): Replace with
2459 small_memory_physical_max array. Make that array static const.
2460 (v850_handle_memory_option): Take integer value of argument. Take
2461 gcc_options pointer, option text and location. Return void.
2462 Update for changes to small memory structures.
2463 (v850_handle_option): Access target_flags via opts pointer. Don't
2464 assert that global structures are in use. Update calls to
2465 v850_handle_memory_option.
2466 (v850_encode_data_area): Update references to small memory settings.
2467 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
2468 (enum small_memory_type): Move to v850-opts.h.
2469 * config/v850/v850.opt (config/v850/v850-opts.h): New
2470 HeaderInclude entry.
2471 (small_memory_max): New Variable entry.
2472 (msda): Replace by pair of options msda= and msda-. Use UInteger.
2473 (mtda, mzda): Likewise.
2475 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2477 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
2478 pointer. Don't assert that global structures are in use.
2480 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2482 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
2483 via opts pointer. Don't assert that global structures are in use.
2485 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2487 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
2488 (munix=93): Use Var.
2489 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
2490 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
2491 * config/pa/pa-opts.h: New.
2492 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
2493 (pa_handle_option): Don't assert that global structures are in
2494 use. Access target_flags via opts pointer. Don't handle
2495 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
2497 (pa_option_override): Handle deferred OPT_mfixed_range_.
2499 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2501 * config/mn10300/mn10300-opts.h: New.
2502 * config/mn10300/mn10300.c (mn10300_processor,
2503 mn10300_tune_string): Remove.
2504 (mn10300_handle_option): Don't assert that global structures are
2505 in use. Access mn10300_processor via opts pointer. Don't handle
2507 * config/mn10300/mn10300.h (enum processor_type): Move to
2509 (mn10300_processor): Remove.
2510 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
2511 HeaderInclude entry.
2512 (mn10300_processor): New Variable entry.
2515 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2517 * config/microblaze/microblaze.c: Don't include opts.h.
2518 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
2519 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
2520 (mno-clearbss): Use Var and Warn.
2522 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2524 * config/m32r/m32r-opts.h: New.
2525 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
2526 (m32r_handle_option): Don't assert that global structures are in
2527 use. Access target_flags and m32r_cache_flush_func via opts
2528 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
2529 OPT_mno_flush_trap here.
2530 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
2531 include of m32r-opts.h.
2532 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
2533 HeaderInclude entry.
2534 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
2535 (mmodel=): Use Enum and Var.
2536 (m32r_model): New Enum and EnumValue entries.
2537 (mno-flush-trap): Use Var.
2538 (msdata=): Use Enum and Var.
2539 (m32r_sdata): New Enum and EnumValue entries.
2541 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2543 * config/m32c/m32c.c: Don't include opts.h.
2544 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
2545 m32c_handle_option): Remove.
2546 (m32c_option_override): Check global_options_set.x_target_memregs
2547 instead of target_memregs_set.
2548 * config/m32c/m32c.h (target_memregs): Remove.
2549 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
2552 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2554 * config/iq2000/iq2000-opts.h: New.
2555 * config/iq2000/iq2000.c: Don't include opts.h.
2556 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
2557 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
2558 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
2559 HeaderInclude entry.
2560 (iq2000_tune): New Variable entry.
2561 (march=): Add comment. Use Enum.
2562 (iq2000_arch): New Enum and EnumValue entries.
2563 (mcpu=): Use Enum and Var.
2564 (iq2000_tune): New Enum and EnumValue entries.
2566 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2568 * config/ia64/ia64-opts.h: New.
2569 * config/ia64/ia64.c (ia64_tune): Remove.
2570 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
2572 (ia64_option_override): Handle deferred OPT_mfixed_range_.
2573 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
2574 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
2575 HeaderInclude entry.
2576 (ia64_tune): New Variable entry.
2577 (mfixed-range=): Use Defer and Var.
2578 (mtune=): Use Enum and Var.
2579 (ia64_tune): New Enum and EnumValue entries.
2581 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2583 * config/frv/frv-opts.h: New.
2584 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
2586 (frv_cpu_type): Remove.
2587 * config/frv/frv.c: Don't include opts.h.
2588 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
2589 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
2590 (frv_cpu_type): New Variable entry.
2591 (frv_cpu): New Enum and EnumValue entries.
2593 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2595 * config/cris/cris.c (cris_handle_option): Access target_flags via
2596 opts pointer. Don't assert that global structures are in use.
2597 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
2598 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
2600 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2602 * config/bfin/bfin-opts.h: New.
2603 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
2604 bfin_si_revision, bfin_workarounds): Remove.
2605 (bfin_cpus): Make static const.
2606 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
2607 not bfin_lib_id_given.
2608 (bfin_handle_option): Don't set bfin_lib_id_given. Access
2609 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
2610 pointer. Use error_at. Don't assert that global structures are in use.
2611 * config/bfin/bfin.h: Include bfin-opts.h.
2612 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
2613 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
2614 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
2615 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
2618 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2620 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
2621 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
2622 or -msoft-float here.
2623 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
2624 -msoft-float and -mhard-float.
2625 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
2626 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
2628 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
2630 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
2631 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
2633 (LIBGCC_SPEC): Don't handle -msoft-float.
2634 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
2636 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
2638 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
2639 -mfloat-abi=*, not -msoft-float and -mhard-float.
2640 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
2642 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
2643 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
2644 mhard-float and msoft-float.
2645 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
2646 mfloat-abi=soft in comments, not mhard-float and msoft-float.
2647 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
2648 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
2650 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
2651 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
2653 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
2655 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
2658 2011-03-22 Richard Henderson <rth@redhat.com>
2660 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
2661 TARGET_ABI_WINDOWS_NT.
2662 (alpha_output_function_end_prologue): Likewise.
2663 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
2664 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
2665 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
2666 (trap, *movsi_nt_vms): Likewise.
2667 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
2668 (*tablejump_osf_nt_internal): Remove.
2669 * config/alpha/predicates.md (input_operand): Only test Pmode.
2671 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2673 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
2674 via opts pointer. Use error_at. Don't assert that global
2675 structures are in use.
2677 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2679 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
2680 (ix86_handle_option): Access ix86_isa_flags and
2681 ix86_isa_flags_explicit via opts pointer. Don't assert that
2682 global structures are in use.
2683 (ix86_function_specific_save, ix86_function_specific_restore):
2684 Update ix86_isa_flags_explicit field name.
2685 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
2686 (ix86_isa_flags_explicit): Rename TargetSave entry to
2687 x_ix86_isa_flags_explicit.
2689 2011-03-22 Richard Henderson <rth@redhat.com>
2691 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
2692 (alpha_option_override, direct_return): Likewise.
2693 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
2694 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
2695 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
2696 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
2697 (alpha_expand_epilogue, alpha_end_function): Likewise.
2698 (alpha_init_libfuncs): Likewise.
2699 (struct machine_function): Remove unicosmk members.
2700 (print_operand) ['t']: Remove.
2701 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
2702 unicosmk_output_module_name, unicosmk_output_common,
2703 current_section_align, unicosmk_output_text_section_asm_op,
2704 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
2705 unicosmk_section_type_flags, unicosmk_unique_section,
2706 unicosmk_asm_named_section, unicosmk_insert_attributes,
2707 unicosmk_output_align, unicosmk_defer_case_vector,
2708 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
2709 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
2710 unicosmk_output_ssib, unicosmk_add_call_info_word,
2711 unicosmk_extern_head, unicosmk_output_default_externs,
2712 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
2713 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
2714 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
2715 * config/alpha/alpha-protos.h: Update.
2716 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
2717 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
2718 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
2719 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
2720 (*mulsi_se, mulvsi3): Likewise.
2721 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
2722 (*divmodsi_internal, call, call_value, realign): Likewise.
2723 (moddi3, umoddi3): Likewise; remove duplicate expander.
2724 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
2725 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
2726 (*movdi_nofix): Remove r/U alternative.
2727 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
2728 * config/alpha/constraints.md ("U"): Remove.
2729 * config/alpha/predicates.md (call_operand"): Don't test
2730 TARGET_ABI_UNICOSMK.
2732 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2734 * target.def (handle_option): Take gcc_options and
2735 cl_decoded_option pointers and location_t.
2736 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
2737 * doc/tm.texi: Regenerate.
2738 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
2739 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
2740 * lto-opts.c (lto_reissue_options): Generate option structure for
2741 targetm.handle_option call.
2742 * opts.c (target_handle_option): Update call to
2743 targetm.handle_option. Remove assertions about values now passed
2745 * targhooks.c (default_target_handle_option): New.
2746 * targhooks.h (default_target_handle_option): Declare.
2747 * config/alpha/alpha.c: Include opts.h.
2748 (alpha_handle_option): Update to new hook interface.
2749 * config/arm/arm.c: Include opts.h.
2750 (arm_handle_option): Update to new hook interface.
2751 * config/arm/t-arm (arm.o): Update dependencies.
2752 * config/bfin/bfin.c: Include opts.h.
2753 (bfin_handle_option): Update to new hook interface.
2754 * config/cris/cris.c: Include opts.h.
2755 (cris_handle_option): Update to new hook interface.
2756 * config/frv/frv.c: Include opts.h.
2757 (frv_handle_option): Update to new hook interface.
2758 * config/i386/i386.c: Include opts.h.
2759 (ix86_handle_option): Update to new hook interface.
2760 (ix86_valid_target_attribute_inner_p): Generate option structure
2761 for call to ix86_handle_option.
2762 * config/i386/t-i386 (i386.o): Update dependencies.
2763 * config/ia64/ia64.c: Include opts.h.
2764 (ia64_handle_option): Update to new hook interface.
2765 * config/ia64/t-ia64 (ia64.o): Update dependencies.
2766 * config/iq2000/iq2000.c: Include opts.h.
2767 (iq2000_handle_option): Update to new hook interface.
2768 * config/m32c/m32c.c: Include opts.h.
2769 (m32c_handle_option): Update to new hook interface.
2770 * config/m32r/m32r.c: Include opts.h.
2771 (m32r_handle_option): Update to new hook interface.
2772 * config/m68k/m68k.c: Include opts.h.
2773 (m68k_handle_option): Update to new hook interface.
2774 * config/mep/mep.c: Include opts.h.
2775 (mep_handle_option): Update to new hook interface.
2776 * config/microblaze/microblaze.c: Include opts.h.
2777 (microblaze_handle_option): Update to new hook interface.
2778 * config/mips/mips.c: Include opts.h.
2779 (mips_handle_option): Update to new hook interface.
2780 * config/mn10300/mn10300.c: Include opts.h.
2781 (mn10300_handle_option): Update to new hook interface.
2782 * config/pa/pa.c: Include opts.h.
2783 (pa_handle_option): Update to new hook interface.
2784 * config/pdp11/pdp11.c: Include opts.h.
2785 (pdp11_handle_option): Update to new hook interface.
2786 * config/rs6000/rs6000.c: Include opts.h.
2787 (rs6000_handle_option): Update to new hook interface.
2788 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
2789 * config/rx/rx.c: Include opts.h.
2790 (rx_handle_option): Update to new hook interface.
2791 * config/s390/s390.c: Include opts.h.
2792 (s390_handle_option): Update to new hook interface.
2793 * config/score/score.c: Include opts.h.
2794 (score_handle_option): Update to new hook interface.
2795 * config/sh/sh.c: Include opts.h.
2796 (sh_handle_option): Update to new hook interface.
2797 * config/sparc/sparc.c: Include opts.h.
2798 (sparc_handle_option): Update to new hook interface.
2799 * config/v850/v850.c: Include opts.h.
2800 (v850_handle_option): Update to new hook interface.
2802 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2804 * gcc.c (driver_unknown_option_callback): Only permit and save
2805 unknown -Wno- options.
2806 (driver_wrong_lang_callback): Save options directly instead of via
2807 driver_unknown_option_callback.
2809 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2811 * combine.c (simplify_set): Try harder to find the best CC mode when
2812 simplifying a nested COMPARE on the RHS.
2814 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2816 * config/alpha/gnu.h: Remove.
2817 * config/arc: Remove directory.
2818 * config/arm/netbsd.h: Remove.
2819 * config/arm/t-pe: Remove.
2820 * config/crx: Remove directory.
2821 * config/i386/netbsd.h: Remove.
2822 * config/m68hc11: Remove directory.
2823 * config/m68k/uclinux-oldabi.h: Remove.
2824 * config/mcore/mcore-pe.h: Remove.
2825 * config/mcore/t-mcore-pe: Remove.
2826 * config/netbsd-aout.h: Remove.
2827 * config/rs6000/gnu.h: Remove.
2828 * config/sh/sh-symbian.h: Remove.
2829 * config/sh/symbian-base.c: Remove.
2830 * config/sh/symbian-c.c: Remove.
2831 * config/sh/symbian-cxx.c: Remove.
2832 * config/sh/symbian-post.h: Remove.
2833 * config/sh/symbian-pre.h: Remove.
2834 * config/sh/t-symbian: Remove.
2835 * config/svr3.h: Remove.
2836 * config/vax/netbsd.h: Remove.
2837 * config.build: Don't handle i[34567]86-*-pe.
2838 * config.gcc: Remove handling of deprecations for most deprecated
2840 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
2841 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
2842 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
2843 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
2844 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
2845 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
2847 * config.host: Don't handle i[34567]86-*-pe.
2848 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
2849 (ASM_SPEC32): Don't handle -mcall-gnu.
2850 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
2852 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
2853 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
2854 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
2855 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
2856 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
2857 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
2858 conditional on SYMBIAN.
2859 * configure.ac: Don't handle powerpc*-*-gnu*.
2860 * configure: Regenerate.
2861 * doc/extend.texi (interrupt attribute): Don't mention CRX.
2862 * doc/install-old.texi (m6811, m6812): Don't mention.
2863 * doc/install.texi (arc-*-elf*): Don't document multilib option.
2864 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
2865 (m68k-uclinuxoldabi): Don't mention.
2866 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
2868 (-mcall-gnu): Remove.
2869 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
2870 families): Remove constraint documentation.
2872 2011-03-22 Marius Strobl <marius@FreeBSD.org>
2874 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
2875 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
2876 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
2878 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
2880 * config/avr/avr-protos.h (expand_epilogue): Change prototype
2881 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
2882 * config/avr/avr.c (init_cumulative_args)
2883 (avr_function_arg_advance): Use it.
2884 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
2886 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
2887 (avr_function_ok_for_sibcall): ...this new function.
2888 (avr_lookup_function_attribute1): New static Function.
2889 (avr_naked_function_p, interrupt_function_p)
2890 (signal_function_p, avr_OS_task_function_p)
2891 (avr_OS_main_function_p): Use it.
2892 * config/avr/avr.md ("sibcall", "sibcall_value")
2893 ("sibcall_epilogue"): New expander.
2894 ("*call_insn", "*call_value_insn"): New insn.
2895 ("call_insn", "call_value_insn"): Remove
2896 ("call", "call_value", "epilogue"): Change expander to handle
2899 2011-03-21 Nick Clifton <nickc@redhat.com>
2901 * doc/invoke.texi (Overall Options): Move closing brace to end of
2903 (Optimization Options): Add missing @gol.
2904 (Directory Options): Likewise.
2905 (i386 and x86-64 Options): Likewise.
2906 (RS6000 and PowerPC Options): Likewise.
2907 (i386 and x86-64 Windows Options): Likewise.
2908 (V850 Options): Add text missing from descriptions.
2910 2011-03-22 Richard Henderson <rth@redhat.com>
2912 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
2913 (avr_incoming_return_addr_rtx): New.
2914 (emit_push_byte): New.
2915 (expand_prologue): Use it. Remove incorrect dwarf annotation for
2916 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
2917 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
2918 (emit_pop_byte): New.
2919 (expand_epilogue): Use it. Pop frame pointer by bytes.
2920 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
2921 (INCOMING_RETURN_ADDR_RTX): New.
2922 (INCOMING_FRAME_SP_OFFSET): New.
2923 (ARG_POINTER_CFA_OFFSET): New.
2924 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
2925 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
2928 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
2930 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
2932 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
2933 (FUNCTION_ARG_ADVANCE): Likewise.
2934 * tm.texi.in: Change references to them to hook references.
2935 * tm.texi: Regenerate.
2936 * targhooks.c (default_function_arg): Eliminate check for target
2938 (default_function_incoming_arg): Likewise.
2939 (default_function_arg_advance): Likewise.
2940 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
2941 (function_arg_advance): Likewise.
2942 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
2944 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
2946 * tree.c (build_call_1): New function.
2947 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
2949 2011-03-22 Richard Guenther <rguenther@suse.de>
2951 PR tree-optimization/48228
2952 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
2953 for single-arg PHIs.
2955 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
2957 PR rtl-optimization/48143
2958 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
2959 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
2960 sse2_cvtps2pd): Likewise.
2962 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2964 * recog.c (canonicalize_change_group): Use validate_unshare_change.
2966 2011-03-22 Richard Guenther <rguenther@suse.de>
2968 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
2969 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
2970 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
2971 and REALIGN_LOAD_EXPR.
2972 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
2973 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
2974 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
2975 DOT_PROD_EXPR case ...
2976 (expand_expr_real_2): ... here.
2977 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
2978 and REALIGN_LOAD_EXPR.
2979 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
2980 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
2981 (vect_create_epilog_for_reduction): Likewise.
2982 (vectorizable_reduction): Likewise.
2983 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
2984 * tree-vect-stmts.c (vectorizable_load): Likewise.
2986 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2988 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
2990 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2992 * config/s390/s390.c (s390_delegitimize_address): Fix offset
2993 handling for PLTOFF/GOTOFF.
2995 2011-03-22 Nick Clifton <nickc@redhat.com>
2997 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
2998 trailing backslash from the end of the macro definition.
3000 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3002 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
3005 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
3007 * expr.h (prepare_operand): Move to...
3008 * optabs.h (prepare_operand): ...here and change the insn code
3009 parameter from "int" to "enum insn_code".
3010 (insn_operand_matches): Declare.
3011 * expr.c (init_expr_target): Use insn_operand_matches.
3012 (compress_float_constant): Likewise.
3013 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
3014 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
3015 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
3016 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
3018 (gen_cond_trap): Likewise.
3019 (prepare_operand): Likewise. Change icode to an insn_code.
3020 (insn_operand_matches): New function.
3021 * reload.c (find_reloads_address_1): Use insn_operand_matches.
3022 * reload1.c (gen_reload): Likewise.
3023 * targhooks.c (default_secondary_reload): Likewise.
3025 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
3027 * config/alpha/alpha.md (unspec): New define_c_enum.
3030 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
3033 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
3034 between a call and its CALL_ARG_LOCATION note.
3036 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
3038 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
3040 2011-03-21 Jakub Jelinek <jakub@redhat.com>
3044 * c-common.c (shorten_compare): If primopN is first sign-extended
3045 to opN and then zero-extended to result type, set primopN to opN.
3047 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
3049 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
3050 for barrier handlers.
3052 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3054 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
3055 UNSPEC constants to be in the unspec enumeration, and redefine
3056 all UNSPECV constants to be in the unspecv enumeration, so that
3057 dumps print which unspec/unspec_volatile this is.
3058 * config/rs6000/vector.md (UNSPEC_*): Ditto.
3059 * config/rs6000/paired.md (UNSPEC_*): Ditto.
3060 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
3061 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
3062 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
3064 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
3065 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
3066 UNSPECV_LWSYNC, since these are used as unspec_volatile.
3067 * config/rs6000/sync.md (isync, lwsync): Ditto.
3069 2011-03-21 Richard Guenther <rguenther@suse.de>
3071 * params.def (lto-min-partition): Fix typo.
3073 2011-03-21 Richard Guenther <rguenther@suse.de>
3076 * c-decl.c (grokdeclarator): Drop to the main variant only
3077 for array types. Drop flag_gen_aux_info check.
3079 2011-03-21 Richard Guenther <rguenther@suse.de>
3081 PR translation/47911
3082 * params.def (lto-partitions): Fix typo.
3083 (lto-min-partition): Fix wording.
3085 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
3087 * config/rs6000/t-freebsd: Remove duplication from file.
3089 2011-03-21 Richard Guenther <rguenther@suse.de>
3092 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
3094 2011-03-21 Richard Guenther <rguenther@suse.de>
3097 * params.def (lto-partitions): Require at least 1 partition.
3099 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3101 * gthr-solaris.h: Remove.
3102 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
3103 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
3104 (LIB_SPEC): Likewise.
3105 * config/sol2.opt (threads): Remove.
3106 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
3107 (sparc*-*-solaris2*): Likewise.
3108 * configure.ac (enable_threads): Enable solaris support.
3109 * configure: Regenerate.
3110 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
3111 * doc/install.texi (Configuration, --enable-threads=lib): Remove
3114 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3116 * config.gcc: Obsolete *-*-solaris2.8*.
3117 * doc/install.texi (Specific, *-*-solaris2*): Document it.
3119 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3122 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
3123 reference. Solaris 8 perl works.
3125 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3128 * doc/install.texi (Prerequisites): Move jar etc. up.
3129 Explain support library version requirements.
3131 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3134 * doc/install.texi (Prerequisites): Move Perl to build
3135 requirements. Always necessary on Solaris 2 with Sun ld.
3137 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3139 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
3141 (Specific, i?86-*-solaris2.[89]): Likewise.
3142 (Specific, i?86-*-solaris2.10): Likewise.
3143 (Specific, mips-sgi-irix6): Likewise.
3144 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
3145 Update for binutils 2.21.
3147 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3149 * configure.ac (gcc_cv_lto_plugin): Fix typo.
3150 Allow -fuse-linker-plugin for non-default plugin linker.
3151 * configure: Regenerate.
3153 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
3156 * gengtype.c (files_rules): Added rule for cp/parser.h.
3158 2011-03-21 Jakub Jelinek <jakub@redhat.com>
3161 * config/s390/s390.c (s390_delegitimize_address): Don't call
3162 lowpart_subreg if orig_x has BLKmode.
3164 2011-03-21 Kai Tietz <ktietz@redhat.com>
3167 * doc/plugins.texi: Adjust documentation for plugin register_callback.
3168 * tree.h (attribute_spec): Add new member affects_type_identity.
3169 * attribs.c (empty_attribute_table): Adjust attribute_spec
3171 * config/alpha/alpha.c: Likewise.
3172 * config/arc/arc.c: Likewise.
3173 * config/arm/arm.c: Likewise.
3174 * config/avr/avr.c: Likewise.
3175 * config/bfin/bfin.c: Likewise.
3176 * config/crx/crx.c: Likewise.
3177 * config/darwin.h: Likewise.
3178 * config/h8300/h8300.c: Likewise.
3179 * config/i386/cygming.h: Likewise.
3180 * config/i386/i386.c: Likewise.
3181 * config/ia64/ia64.c: Likewise.
3182 * config/m32c/m32c.c: Likewise.
3183 * config/m32r/m32r.c: Likewise.
3184 * config/m68hc11/m68hc11.c: Likewise.
3185 * config/m68k/m68k.c: Likewise.
3186 * config/mcore/mcore.c: Likewise.
3187 * config/mep/mep.c: Likewise.
3188 * config/microblaze/microblaze.c: Likewise.
3189 * config/mips/mips.c: Likewise.
3190 * config/rs6000/rs6000.c: Likewise.
3191 * config/rx/rx.c: Likewise.
3192 * config/sh/sh.c: Likewise.
3193 * config/sol2.h: Likewise.
3194 * config/sparc/sparc.c: Likewise.
3195 * config/spu/spu.c: Likewise.
3196 * config/stormy16/stormy16.c: Likewise.
3197 * config/v850/v850.c: Likewise.
3199 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
3201 * simplify-rtx.c (simplify_binary_operation_1): Handle
3202 (xor (and A B) C) case when B and C are both constants.
3204 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
3206 * tree-dfa.c (add_referenced_var): Fix typo in comment.
3208 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
3211 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
3213 2011-03-20 Jakub Jelinek <jakub@redhat.com>
3215 PR rtl-optimization/48156
3216 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
3217 assume df and df_lr are not NULL.
3219 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3222 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
3223 between a call and its CALL_ARG_LOCATION note.
3225 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
3228 * config/sh/sh.c (find_barrier): Don't emit a constant pool
3229 between a call and its corresponding CALL_ARG_LOCATION note.
3231 2011-03-19 Anatoly Sokolov <aesok@post.ru>
3233 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
3234 instead of loop. Use HARD_REGISTER_NUM_P predicate.
3235 * haifa-sched.c (setup_ref_regs): Ditto.
3236 * caller-save.c (add_used_regs_1): Ditto.
3237 * dse.c (look_for_hardregs): Ditto.
3238 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
3239 * sched-rgn.c (check_live_1): Ditto.
3241 2011-03-18 Joseph Myers <joseph@codesourcery.com>
3243 * c-decl.c (diagnose_mismatched_decls): Give an error for
3244 redefining a typedef with variably modified type.
3246 2011-03-18 Joseph Myers <joseph@codesourcery.com>
3248 * c-decl.c (grokfield): Don't allow typedefs for structures or
3249 unions with no tag by default.
3250 * doc/extend.texi (Unnamed Fields): Update.
3252 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
3254 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
3255 Rewrite using indirect functions.
3256 (lwp_slwpcb): Ditto.
3257 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
3258 (avx_vinsertf128<mode>): Ditto.
3260 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3262 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
3265 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3267 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
3268 splitting between a call and its corresponding CALL_ARG_LOCATION note.
3270 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
3272 PR rtl-optimization/48170
3273 * gcse.c (hoist_code): Remove bogus asserts.
3275 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
3277 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
3278 computation for prologue/epilogue.
3280 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3282 * Makefile.in (check-consistency): Remove.
3284 2011-03-18 Jakub Jelinek <jakub@redhat.com>
3287 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
3288 arange_table_in_use is 0, but either text_section_used or
3289 cold_text_section_used is true. Don't call it if
3290 !info_section_emitted.
3292 2011-03-18 Anatoly Sokolov <aesok@post.ru>
3294 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
3295 FUNCTION_VALUE_REGNO_P): Remove.
3296 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
3298 * config/avr/avr.c (avr_ret_register): Make static inline.
3299 (avr_function_value_regno_p): New function.
3300 (avr_libcall_value): Make static. Add 'func' argument.
3301 (avr_function_value): Make static. Rename 'func' argument to
3302 'fn_decl_or_type', forward it to avr_libcall_value. Call
3303 avr_ret_register function instead of RET_REGISTER macro.
3304 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
3306 2011-03-18 Jason Merrill <jason@redhat.com>
3309 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
3311 2011-03-18 Richard Guenther <rguenther@suse.de>
3313 * doc/install.texi (--enable-gold): Remove.
3314 (--with-plugin-ld): Document.
3315 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
3317 2011-03-18 Andrew Pinski <pinskia@gmail.com>
3320 * expr.c (optimize_bitfield_assignment_op): Revamp to work
3321 again after expansion changes.
3323 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
3325 * combine.c (try_combine): Do simplification only call of
3326 subst() on i2 even when i1 is present. Update comments.
3328 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
3330 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
3331 and UNSPEC_PCREL_SYMOFF.
3333 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3335 * config/s390/s390.md: Use define_c_enum for the unspec constant
3338 2011-03-18 Richard Henderson <rth@redhat.com>
3339 Jakub Jelinek <jakub@redhat.com>
3342 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
3343 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
3345 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
3348 * combine.c (cant_combine_insn_p): Don't check zero/sign
3349 extended hard registers.
3351 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
3354 * combine.c (cant_combine_insn_p): Check zero/sign extended
3357 2011-03-17 Anatoly Sokolov <aesok@post.ru>
3359 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
3360 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
3361 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
3362 Change return type to bool.
3363 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
3365 2011-03-17 Jakub Jelinek <jakub@redhat.com>
3368 * var-tracking.c (prepare_call_arguments): If CALL target
3369 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
3370 pc instead of looking it up using cselib_lookup and use
3371 Pmode for it if x has VOIDmode.
3372 * dwarf2out.c (gen_subprogram_die): If also both first and
3373 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
3376 * function.c (assign_parms): For data.passed_pointer parms
3377 use MEM of data.entry_parm instead of data.entry_parm itself
3378 as DECL_INCOMING_RTL.
3379 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
3380 also when passed and declared mode is the same, DECL_RTL
3381 is a MEM with pseudo as address and DECL_INCOMING_RTL is
3384 2011-03-16 Jeff Law <law@redhat.com>
3386 PR rtl-optimization/37273
3387 * ira-costs.c (scan_one_insn): Detect constants living in memory and
3388 handle them like argument loads from stack slots. Do not double
3389 count memory for memory constants and argument loads from stack slots.
3391 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
3394 * var-tracking.c (prepare_call_arguments): Check SUBREG.
3396 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
3399 * config/i386/i386.opt: Add Save to -mavx and -mfma.
3401 2011-03-17 Jakub Jelinek <jakub@redhat.com>
3404 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
3406 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
3407 Clear call_arg_locations and call_arg_loc_last always.
3410 * var-tracking.c (prepare_call_arguments): If argument needs to be
3411 passed by reference, adjust argtype and mode.
3413 2011-03-17 Richard Guenther <rguenther@suse.de>
3416 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
3417 a value make sure to fold the statement.
3419 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
3422 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
3423 return condition with !cfun->calls_alloca.
3425 2011-03-17 Richard Guenther <rguenther@suse.de>
3428 * lto-cgraph.c (input_overwrite_node): Clear the abstract
3429 origin for decls in other ltrans units.
3430 (input_varpool_node): Likewise.
3432 2011-03-17 Richard Guenther <rguenther@suse.de>
3435 * tree-object-size.c (compute_object_offset): Properly return
3436 the offset operand of MEM_REFs as sizetype.
3438 2011-03-17 Jakub Jelinek <jakub@redhat.com>
3440 PR rtl-optimization/48141
3441 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
3442 * dse.c: Include params.h.
3443 (active_local_stores_len): New variable.
3444 (add_wild_read, dse_step1): Clear it when setting active_local_stores
3446 (record_store, check_mem_read_rtx): Decrease it when removing
3448 (scan_insn): Likewise. Increase it when adding to chain, if it
3449 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
3450 set active_local_stores to NULL before the addition.
3451 * Makefile.in (dse.o): Depend on $(PARAMS_H).
3453 PR rtl-optimization/48141
3454 * dse.c (record_store): If no positions are needed in an insn
3455 that cannot be deleted, at least unchain it from active_local_stores.
3457 2011-03-16 Dodji Seketeli <dodji@redhat.com>
3460 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
3461 (lookup_type_die_strip_naming_typedef): ... here.
3462 (get_context_die): Use it.
3463 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
3464 the anonymous struct named by the naming typedef.
3466 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
3469 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
3470 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
3472 2011-03-16 Jeff Law <law@redhat.com>
3474 * tree-vrp.c (identify_jump_threads): Slightly simplify type
3475 check for operands of conditional. Allow type to be a pointer.
3477 2011-03-16 Richard Guenther <rguenther@suse.de>
3479 PR tree-optimization/48149
3480 * fold-const.c (fold_binary_loc): Fold
3481 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
3483 2011-03-16 Richard Guenther <rguenther@suse.de>
3485 PR tree-optimization/26134
3486 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
3487 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
3488 (non_rewritable_mem_ref_base): Handle complex type component
3489 accesses, constrain offsets for vector and complex extracts
3492 2011-03-16 Richard Guenther <rguenther@suse.de>
3494 PR tree-optimization/48146
3495 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
3496 operands avoiding the need for renaming.
3498 2011-03-16 Richard Guenther <rguenther@suse.de>
3500 * gimple-fold.c (maybe_fold_reference): Open-code relevant
3501 constant folding. Move MEM_REF canonicalization first.
3502 Rely on fold_const_aggregate_ref for initializer folding.
3503 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
3505 2011-03-16 Jakub Jelinek <jakub@redhat.com>
3508 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
3509 arg0/arg1 or their arguments are always fold converted to matching
3512 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
3515 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3518 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
3519 Handle in-tree gold.
3520 (ld_vers): Extract binutils version for gold.
3521 (gcc_cv_ld_hidden): Handle gold here.
3522 (gcc_cv_lto_plugin): Determine level of linker plugin support.
3523 * configure: Regenerate.
3524 * config.in: Regenerate.
3525 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
3526 -fuse-linker-plugin otherwise.
3527 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
3528 (LINK_COMMAND_SPEC): Use it.
3529 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
3531 2011-03-16 Jakub Jelinek <jakub@redhat.com>
3533 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
3534 * calls.c: Remove debug.h include.
3535 (emit_call_1): Don't call virtual_call_token debug hook.
3536 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
3537 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
3538 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
3539 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
3540 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
3541 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
3542 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
3543 dwarf2out_virtual_call): Remove.
3544 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
3545 copy_call_info and virtual_call hooks.
3546 (dwarf2out_init): Don't initialize vcall_insn_table,
3547 debug_dcall_section and debug_vcall_section.
3548 (prune_unused_types): Don't mark nodes from dcall_table.
3549 (dwarf2out_finish): Don't output dcall or vcall tables.
3550 * final.c (final_scan_insn): Don't call direct_call or
3551 virtual_call debug hooks.
3552 * debug.h (struct gcc_debug_hooks): Remove direct_call,
3553 virtual_call_token, copy_call_info and virtual_call hooks.
3554 (debug_nothing_uid): Remove prototype.
3555 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
3556 copy_call_info and virtual_call hooks.
3557 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3558 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
3559 * debug.c (do_nothing_debug_hooks): Likewise.
3560 (debug_nothing_uid): Remove.
3561 * doc/invoke.texi (-fenable-icf-debug): Remove.
3562 * common.opt (-fenable-icf-debug): Likewise.
3564 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
3565 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
3566 call's MEM. Handle functions returning aggregate through a hidden
3567 first pointer. For virtual calls add clobbered pc to call arguments
3569 * dwarf2out.c (gen_subprogram_die): Emit
3570 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
3574 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
3575 * rtl.h (ENTRY_VALUE_EXP): Define.
3576 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
3577 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
3578 * print-rtl.c (print_rtx): Likewise.
3579 * gengtype.c (adjust_field_rtx_def): Likewise.
3580 * var-tracking.c (vt_add_function_parameter): Adjust
3581 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
3582 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
3583 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
3584 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
3585 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
3587 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
3588 Call var_location debug hook even on CALL_INSNs.
3589 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
3590 * rtl.def (ENTRY_VALUE): New.
3591 * dwarf2out.c: Include cfglayout.h.
3592 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3593 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
3594 (struct call_arg_loc_node): New type.
3595 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
3596 tail_call_site_count): New variables.
3597 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
3598 DW_TAG_GNU_call_site_parameter.
3599 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
3600 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
3601 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
3602 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
3603 and DW_AT_GNU_all_source_call_sites.
3604 (mem_loc_descriptor): Handle ENTRY_VALUE.
3605 (add_src_coords_attributes): Don't add enything if
3606 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
3607 (dwarf2out_abstract_function): Save and clear call_arg_location,
3608 call_site_count and tail_call_site_count around dwarf2out_decl call.
3609 (gen_call_site_die): New function.
3610 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
3611 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
3612 (dwarf2out_function_decl): Clear call_arg_locations,
3613 call_arg_loc_last, set call_site_count and tail_call_site_count
3614 to -1 and free block_map.
3615 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
3616 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
3617 followed by any real instructions.
3618 (dwarf2out_begin_function): Set call_site_count and
3619 tail_call_site_count to 0.
3620 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
3621 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
3622 attempt to force a DIE for it and worst case remove the attribute.
3623 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
3624 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
3626 * var-tracking.c: Include tm_p.h.
3627 (vt_stack_adjustments): For calls call note_register_arguments.
3628 (argument_reg_set): New variable.
3629 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
3630 ensure the VALUE is resolved.
3631 (call_arguments): New variable.
3632 (prepare_call_arguments): New function.
3633 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
3634 (struct expand_loc_callback_data): Add ignore_cur_loc field.
3635 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
3636 always use the best expression.
3637 (vt_expand_loc): Add ignore_cur_loc argument.
3638 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
3639 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
3640 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
3642 (vt_add_function_parameter): Use cselib_lookup_from_insn.
3643 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
3644 argument. Don't call cselib_preserve_only_values and
3646 (note_register_arguments): New function.
3647 (vt_initialize): Compute argument_reg_set. Call
3648 vt_add_function_parameters before processing basic blocks instead of
3649 afterwards. For calls call prepare_call_arguments before calling
3650 cselib_process_insn.
3651 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
3652 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
3653 (var-tracking.o): Depend on $(TM_P_H).
3654 * cfglayout.h (insn_scope): New prototype.
3655 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
3656 * cfglayout.c (insn_scope): No longer static.
3657 * insn-notes.def (CALL_ARG_LOCATION): New.
3658 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
3659 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
3660 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
3661 nothing for DECL_EXTERNAL BLOCK_VARS.
3663 2011-03-16 Alan Modra <amodra@gmail.com>
3666 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
3667 create invalid offset address for vsx splat insn.
3668 * config/rs6000/predicates.md (splat_input_operand): New.
3669 * config/rs6000/vsx.md (vsx_splat_*): Use it.
3671 2011-03-15 Xinliang David Li <davidxl@google.com>
3674 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
3675 (normalize_preds): New function.
3676 (is_use_properly_guarded): Normalize def predicates.
3678 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3681 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
3682 in the output template.
3684 2011-03-15 Richard Guenther <rguenther@suse.de>
3687 * tree-pretty-print.c (dump_function_declaration): Properly
3688 dump unprototyped and varargs function types.
3690 2011-03-15 Richard Guenther <rguenther@suse.de>
3692 PR tree-optimization/13954
3693 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
3696 2011-03-15 Richard Guenther <rguenther@suse.de>
3698 PR tree-optimization/48037
3699 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
3700 selects into BIT_FIELD_REFs.
3701 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
3704 2011-03-15 Jakub Jelinek <jakub@redhat.com>
3706 PR tree-optimization/48129
3707 * builtins.c (fold_builtin_snprintf): Convert to type of
3708 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
3709 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
3711 2011-03-15 Richard Guenther <rguenther@suse.de>
3713 PR tree-optimization/41490
3714 * tree-ssa-dce.c (propagate_necessity): Handle returns without
3715 value but with VUSE.
3716 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
3718 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
3719 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
3720 * tree-tailcall.c (find_tail_calls): Ignore returns.
3722 2011-03-15 Richard Guenther <rguenther@suse.de>
3725 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
3726 or variable-indexed array accesses when in gimple form.
3728 2011-03-15 Richard Guenther <rguenther@suse.de>
3730 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
3732 2011-03-15 Alan Modra <amodra@gmail.com>
3735 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
3736 presume symbol_refs without a symbol_ref_decl are suitably
3737 aligned, nor other trees we may see here. Handle anchor symbols.
3738 (legitimate_constant_pool_address_p): Comment. Add mode param.
3739 Check cmodel=medium addresses. Adjust all calls.
3740 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
3741 creating cmodel=medium optimized access to locals.
3742 * config/rs6000/constraints.md (R): Pass QImode to
3743 legitimate_constant_pool_address_p.
3744 * config/rs6000/predicates.md (input_operand): Pass mode to
3745 legitimate_constant_pool_address_p.
3746 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
3749 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3752 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
3753 64-bit constants being loaded into registers other than GPRs such
3754 as loading 0 into a VSX register.
3756 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3758 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
3760 2011-03-14 Jakub Jelinek <jakub@redhat.com>
3763 * builtins.c (fold_builtin_snprintf): New function.
3764 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
3765 (fold_builtin_4): Likewise.
3768 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
3769 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
3770 and C - X == X also strip nops from +/-/p+ operand.
3771 When optimizing -X == C, fold C to arg0's type.
3774 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
3775 emit it as add_AT_int instead of add_AT_unsigned.
3777 2011-03-14 Tom Tromey <tromey@redhat.com>
3779 * unwind-dw2.c: Include sys/sdt.h if it exists.
3780 (_Unwind_DebugHook): Use STAP_PROBE2.
3781 * config.in, configure: Rebuild.
3782 * configure.ac: Check for sys/sdt.h.
3784 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
3786 * config/i386/i386.md (ROUND_FLOOR): New constant.
3787 (ROUND_CEIL): Ditto.
3788 (ROUND_TRUNC): Ditto.
3789 (ROUND_MXCSR): Ditto.
3790 (ROUND_NO_EXC): Ditto.
3791 (rint<mode>2): Use new defines instead of numerical constants.
3792 (floor<mode>2): Ditto.
3793 (ceil<mode>2): Ditto.
3794 (btrunc<mode>2): Ditto.
3795 * config/i386/i386-builtin-types.def: Define ROUND function type
3797 * config/i386/i386.c (enum ix86_builtins): Add
3798 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
3799 (struct builtin_description): Add
3800 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
3801 (ix86_expand_sse_round): New static function.
3802 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
3804 (ix86_builtin_vectorized_function): Handle
3805 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
3807 2011-03-14 Tom Tromey <tromey@redhat.com>
3809 * c-parser.c (c_parser_asm_string_literal): Clear
3810 warn_overlength_strings.
3812 2011-03-14 Tom Tromey <tromey@redhat.com>
3814 * c-parser.c (disable_extension_diagnostics): Save
3815 warn_overlength_strings.
3816 (restore_extension_diagnostics): Restore warn_overlength_strings.
3818 2011-03-14 Jakub Jelinek <jakub@redhat.com>
3820 * BASE-VER: Change to 4.7.0.
3822 2011-03-14 Richard Guenther <rguenther@suse.de>
3825 * tree.c (build_vector_from_val): Adjust assert to requirements
3828 2011-03-14 Jakub Jelinek <jakub@redhat.com>
3831 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
3833 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
3835 * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
3836 terms of target_flags_explicit. Adjust copyright year.
3838 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
3839 * config/rs6000/t-freebsd: New file. Add override for
3842 2011-03-13 Chris Demetriou <cgd@google.com>
3844 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
3845 (-fno-diagnostics-show-option): this, to reflect current default.
3846 (-Werror=): Update text about -fno-diagnostics-show-option.
3848 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
3851 * config/rs6000/predicates.md (easy_vector_constant_add_self,
3852 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
3853 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
3854 mode is not V2DImode or V2DFmode.
3855 (vspltis_constant): Do not handle V2DImode and V2DFmode.
3856 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
3857 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
3859 (movdi_internal64): Likewise.
3861 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
3863 PR tree-optimization/47127
3864 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
3866 (set_cloog_options): Same.
3867 (scop_to_clast): Same.
3868 (print_clast_stmt): Do not call cloog_state_malloc and
3870 (print_generated_program): Same.
3872 * graphite-clast-to-gimple.h (cloog_state): Declared.
3873 (scop_to_clast): Adjust declaration.
3874 * graphite.c (cloog_state): Defined here.
3875 (graphite_initialize): Call cloog_state_malloc.
3876 (graphite_finalize): Call cloog_state_free.
3878 2011-03-11 Jason Merrill <jason@redhat.com>
3880 * attribs.c (lookup_attribute_spec): Take const_tree.
3883 2011-03-11 Joseph Myers <joseph@codesourcery.com>
3885 * config/sparc/sparc.c (sparc_option_override): Use
3886 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
3888 2011-03-11 Richard Guenther <rguenther@suse.de>
3890 PR tree-optimization/48067
3891 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
3892 multiplication result will be only used once on the target
3895 2011-03-11 Richard Guenther <rguenther@suse.de>
3897 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
3899 2011-03-11 Richard Guenther <rguenther@suse.de>
3902 * tree.c (find_decls_types_r): Do not walk types only reachable
3903 from IDENTIFIER_NODEs.
3905 2011-03-11 Jakub Jelinek <jakub@redhat.com>
3908 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
3909 all vnode->force_output nodes as needed.
3911 2011-03-11 Jason Merrill <jason@redhat.com>
3914 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
3915 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
3917 2011-03-11 Martin Jambor <mjambor@suse.cz>
3919 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
3922 2011-03-11 Jakub Jelinek <jakub@redhat.com>
3924 PR tree-optimization/48063
3925 * ipa-inline.c (cgraph_decide_inlining): Don't try to
3926 inline functions called once if !tree_can_inline_p (node->callers).
3928 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
3930 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
3932 * config/score/score3.c: Delete.
3933 * config/score/score3.h: Delete.
3934 * config/score/mul-div.S: Delete.
3935 * config/score/sfp-machine.h: Add new file.
3936 * config/score/constraints.md: Add new file.
3937 * config/score/t-score-softfp: Add new file.
3938 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
3939 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
3940 (score7_extra_constraint): Delete.
3941 (score7_option_override): Remove unused code.
3942 * config/score/score.c: Remove score3 and score5 define and code.
3943 * config/score/score.h: Remove score3 and score5 define and code.
3944 * config/score/score.md: Remove score3 template and unusual insn.
3945 * config/score/score.opt: Remove score3 and score5 options.
3947 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3949 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
3950 when _HPUX_SOURCE is defined.
3951 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
3953 2011-03-10 Jason Merrill <jason@redhat.com>
3956 * stor-layout.c (layout_type): Don't set structural equality
3957 on arrays of incomplete type.
3958 * tree.c (type_hash_eq): Handle comparing them properly.
3960 2011-03-10 Jakub Jelinek <jakub@redhat.com>
3963 * config/s390/s390.c (s390_delegitimize_address): Make sure the
3964 result mode matches original rtl mode.
3966 2011-03-10 Nick Clifton <nickc@redhat.com>
3968 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
3969 (andsi3, andsi3_flags): Fix timings for three operand alternative.
3971 2011-03-09 Jakub Jelinek <jakub@redhat.com>
3973 PR rtl-optimization/47866
3974 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
3975 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
3976 if target wasn't scalar.
3977 * function.c (assign_stack_temp_for_type): Assert that neither
3978 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
3979 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
3981 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
3983 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3985 * config/s390/s390-protos.h (s390_label_align): New prototype.
3986 * config/s390/s390.c (s390_label_align): New function.
3987 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
3989 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
3992 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
3993 V2DI/V2DF constants. Only all 0's or all 1's are easy.
3994 (output_vec_const_move): Ditto.
3996 2011-03-08 Anatoly Sokolov <aesok@post.ru>
3998 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
3999 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
4000 * config/mips/mips.c (mips_preferred_reload_class): Make static.
4001 Change 'rclass' argument and result type to reg_class_t.
4002 (TARGET_PREFERRED_RELOAD_CLASS): Define.
4004 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
4006 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4007 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
4008 (TARGET_MEMORY_MOVE_COST): Define.
4009 (avr_register_move_cost, avr_memory_move_cost): New Functions.
4011 2011-03-08 Jakub Jelinek <jakub@redhat.com>
4014 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
4017 PR tree-optimization/48022
4018 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
4021 2011-03-07 Jakub Jelinek <jakub@redhat.com>
4024 * var-tracking.c (find_use_val): Return NULL for
4025 cui->sets && cui->store_p BLKmode MEMs.
4027 2011-03-07 Anatoly Sokolov <aesok@post.ru>
4029 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
4031 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
4032 xstormy16_print_operand_address): Remove.
4033 * config/stormy16/stormy16.c (xstormy16_print_operand,
4034 xstormy16_print_operand_address): Make static.
4035 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4037 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
4040 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
4041 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
4044 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
4047 * cfgloopmanip.c (fix_bb_placements): Return immediately
4048 if FROM is BASE_LOOP's header.
4050 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
4052 * gimplify.c (gimplify_function_tree): Fix building calls
4053 to __builtin_return_address.
4055 2011-03-07 Alan Modra <amodra@gmail.com>
4057 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
4058 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
4059 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
4060 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
4062 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
4063 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
4064 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
4065 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
4066 * config/rs6000/rs6000.c
4067 (rs6000_elf_end_indicate_exec_stack): Rename to..
4068 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
4069 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
4070 (rs6000_file_start): ..here.
4071 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
4072 file scope variables.
4073 (call_ABI_of_interest): New function.
4074 (init_cumulative_args): Set above vars when function return value
4075 is a float, vector, or small struct.
4076 (rs6000_function_arg_advance_1): Likewise for function args.
4077 (rs6000_va_start): Set rs6000_passes_float if variable arg function
4078 references float args.
4080 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
4082 * doc/cfg.texi: Remove "See" before @ref.
4083 * doc/invoke.texi: Likewise.
4085 2011-03-05 Jason Merrill <jason@redhat.com>
4087 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
4089 2011-03-05 Anthony Green <green@moxielogic.com>
4091 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
4093 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
4095 PR rtl-optimization/47899
4096 * cfgloopmanip.c (fix_bb_placements): Fix first argument
4097 to flow_loop_nested_p when moving the loop upward.
4099 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
4102 * arm.md (movhi_insn_arch4): Accept any immediate constant.
4104 2011-03-05 Jakub Jelinek <jakub@redhat.com>
4106 PR tree-optimization/47967
4107 * ipa-cp.c (build_const_val): Return NULL instead of creating
4108 VIEW_CONVERT_EXPR for mismatching sizes.
4109 (ipcp_create_replace_map): Return NULL if build_const_val failed.
4110 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
4111 give up on versioning.
4113 2011-03-05 Alan Modra <amodra@gmail.com>
4116 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4117 full cmodel medium/large lo_sum + high addresses.
4119 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4121 * config/s390/s390.c (s390_decompose_address): Reject non-literal
4122 pool references in UNSPEC_LTREL_OFFSET.
4124 2011-03-04 Jan Hubicka <jh@suse.cz>
4127 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
4128 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
4129 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
4131 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
4132 cgraph_add_thunk): Add node pointers.
4133 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
4134 associated to right node.
4135 (input_node): Update use of cgraph_same_body_alias
4136 and cgraph_add_thunk.
4138 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
4140 * config/i386/i386.opt (mprefer-avx128): New flag.
4141 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
4142 modes when the flag -mprefer-avx128 is on.
4144 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
4146 * dwarf2out.c (compare_loc_operands): Fix address handling.
4148 2011-03-04 Alan Modra <amodra@gmail.com>
4150 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
4152 2011-03-04 Richard Guenther <rguenther@suse.de>
4155 * expmed.c (extract_bit_field_1): Prefer vector modes that
4156 vec_extract patterns can handle.
4158 2011-03-04 Richard Guenther <rguenther@suse.de>
4161 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
4163 2011-03-04 Richard Henderson <rth@redhat.com>
4165 * explow.c (emit_stack_save): Remove 'after' parameter.
4166 (emit_stack_restore): Likewise.
4167 * expr.h: Update to match.
4168 * builtins.c, calls.c, stmt.c: Likewise.
4169 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
4170 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
4171 * function.c (expand_function_end): Insert the emit_stack_save
4172 sequence before parm_birth_insn instead of after.
4174 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
4176 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
4177 (ssse3_pmaddubsw128): Ditto.
4178 (ssse3_pmaddubsw): Ditto.
4180 2011-03-03 Steve Ellcey <sje@cup.hp.com>
4182 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
4184 2011-03-03 Jakub Jelinek <jakub@redhat.com>
4187 * gimplify.c (omp_add_variable): Only call omp_notice_variable
4188 on TYPE_SIZE_UNIT if it is a DECL.
4191 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
4192 first operand is not is_gimple_mem_ref_addr, try to fold it.
4193 If the operand still isn't is_gimple_mem_ref_addr, clear
4196 2011-03-03 Richard Guenther <rguenther@suse.de>
4199 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
4201 (refs_may_alias_p_1): For release branches return true if
4202 we are confused by our input.
4204 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4206 * config/s390/s390.c (s390_function_value): Rename to ...
4207 (s390_function_and_libcall_value): ... this.
4208 (s390_function_value): New function.
4209 (s390_libcall_value): New function.
4210 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
4211 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
4212 target macro definitions.
4213 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
4215 2011-03-02 Joseph Myers <joseph@codesourcery.com>
4217 * config/i386/freebsd64.h (CC1_SPEC): Define.
4218 * config/i386/linux64.h (CC1_SPEC): Define.
4219 * config/i386/x86-64.h (CC1_SPEC): Don't define.
4221 2011-03-02 Anatoly Sokolov <aesok@post.ru>
4223 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
4225 * config/stormy16/stormy16.c: Include reload.h.
4226 (xstormy16_memory_move_cost): New function.
4227 (TARGET_MEMORY_MOVE_COST): Define.
4229 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
4231 PR rtl-optimization/47925
4232 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
4233 with side effects. Remove the more-specific check for volatile asms.
4235 2011-03-02 Alan Modra <amodra@gmail.com>
4238 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
4239 toc relative addresses for valid offsets.
4241 2011-03-01 Richard Guenther <rguenther@suse.de>
4243 PR tree-optimization/47890
4244 * tree-vect-loop.c (get_initial_def_for_induction): Set
4245 related stmt properly.
4247 2011-03-01 Richard Guenther <rguenther@suse.de>
4250 * lto-streamer.c (lto_record_common_node): Also register
4253 2011-03-01 Richard Guenther <rguenther@suse.de>
4256 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
4257 Do not stream DECL_ABSTRACT_ORIGIN.
4258 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
4259 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
4260 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
4261 Do not stream DECL_ABSTRACT_ORIGIN.
4262 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
4263 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
4265 2011-02-28 Anatoly Sokolov <aesok@post.ru>
4267 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
4268 FUNCTION_VALUE_REGNO_P): Remove.
4269 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
4270 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
4271 Add 'outgoing' argument.
4272 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
4274 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4275 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4277 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
4280 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
4281 (lookup_filename): Likewise.
4282 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
4284 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
4285 Jakub Jelinek <jakub@redhat.com>
4288 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
4289 (assign_stack_local_1): Change last argument type to int.
4290 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
4291 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
4292 don't record padding space into frame_space_list nor use those areas.
4293 (assign_stack_local): Adjust caller.
4294 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
4295 of assign_stack_local, pass 0 as last argument.
4296 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
4299 2011-02-28 Jakub Jelinek <jakub@redhat.com>
4302 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
4303 Use target address_mode and pointer_mode hooks instead of hardcoded
4304 Pmode and ptr_mode. Handle some simple cases of extending if
4305 POINTERS_EXTEND_UNSIGNED < 0.
4306 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
4307 Call convert_debug_memory_address.
4308 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
4309 convert_debug_memory_address.
4312 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
4313 * configure: Regenerated.
4314 * config.in: Regenerated.
4315 * varasm.c (default_function_section): Return NULL
4316 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
4318 2011-02-28 Martin Jambor <mjambor@suse.cz>
4320 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
4321 the description to match the printed values.
4323 2011-02-28 Richard Guenther <rguenther@suse.de>
4325 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
4326 of the copied scope tree.
4328 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4330 * doc/extend.texi (Function Attributes): Avoid deeply (and
4331 wrongly) nested tables.
4333 2011-02-27 Jakub Jelinek <jakub@redhat.com>
4336 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
4337 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
4338 r isn't op0 nor op1.
4340 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
4342 * config/avr/avr.md: Remove magic comment for emacs.
4344 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
4347 * config/avr/avr.c (avr_option_override): Use error on bad options.
4348 (avr_help): New function.
4349 (TARGET_HELP): Define.
4351 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
4354 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
4355 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
4357 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
4359 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
4360 (ARM Options): Ditto.
4361 (i386 and x86-64 Options): Ditto.
4362 (RX Options): Ditto.
4363 (SPARC Options): Ditto.
4365 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
4367 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
4368 FreeBSD 6 and later. Generally use cpu generic.
4370 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
4372 * doc/cpp.texi: Update copyright years.
4374 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
4377 * config/lm32/lm32.md (ashrsi3): Added needed variable.
4379 2011-02-25 Jon Beniston <jon@beniston.com>
4382 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
4383 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
4384 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
4385 (lm32_block_move_inline): Add type cast to remove warning.
4386 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
4387 (gen_int_relational): Move declarations to start of function.
4389 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
4391 PR tree-optimization/45470
4392 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
4393 can throw internally only.
4394 * tree-vect-stmts.c (vectorizable_call): Likewise.
4396 2011-02-24 Anatoly Sokolov <aesok@post.ru>
4398 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
4399 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
4400 * config/stormy16/stormy16-protos.h
4401 (xstormy16_preferred_reload_class): Remove.
4402 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
4403 static. Change 'rclass' argument and return type to reg_class_t.
4404 (TARGET_PREFERRED_RELOAD_CLASS,
4405 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4407 2011-02-24 Richard Guenther <rguenther@suse.de>
4409 * lto-streamer-in.c (input_bb): Do not find referenced vars
4410 in debug statements.
4412 2011-02-23 Jason Merrill <jason@redhat.com>
4414 * common.opt (fabi-version): Document v5 and v6.
4416 2011-02-23 Richard Guenther <rguenther@suse.de>
4418 PR tree-optimization/47849
4419 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
4421 2011-02-23 Jie Zhang <jie@codesourcery.com>
4423 * opts-common.c (decode_cmdline_option): Print empty string
4424 argument as "" in decoded->orig_option_with_args_text.
4425 * gcc.c (execute): Print empty string argument as ""
4426 in the verbose output.
4427 (do_spec_1): Keep empty string argument.
4429 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
4431 * config.gcc: Declare score-* and crx-* obsolete.
4433 2011-02-23 Jie Zhang <jie@codesourcery.com>
4435 PR rtl-optimization/47763
4436 * web.c (web_main): Ignore naked clobber when replacing register.
4438 2011-02-22 Anatoly Sokolov <aesok@post.ru>
4440 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4443 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
4446 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
4448 2011-02-22 Mike Stump <mikestump@comcast.net>
4450 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
4452 * configure: Regenerate.
4454 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
4456 PR rtl-optimization/46002
4457 * ira-color.c (update_copy_costs): Change class intersection
4458 test to reg_class_contents[] test of 'hard_regno'.
4460 2011-02-21 Joseph Myers <joseph@codesourcery.com>
4462 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
4464 * config/hpux11.opt (mt): Likewise.
4465 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
4466 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
4467 * config/vax/elf.opt (mno-asm-pic): Likewise.
4468 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
4470 2011-02-21 Mike Stump <mikestump@comcast.net>
4473 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
4474 tree so we can get save the type.
4475 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
4476 for CFString instead of trying to use past the end of the builtins.
4477 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
4478 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
4479 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
4480 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
4481 Rename to darwin_builtin_cfstring.
4482 (darwin_init_cfstring_builtins): Return the built type.
4484 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
4487 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
4488 (_mm256_insert_epi64): Use _mm_insert_epi64.
4490 2011-02-21 Anatoly Sokolov <aesok@post.ru>
4492 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
4493 * config/stormy16/stormy16-protos.h
4494 (xstormy16_mode_dependent_address_p): Remove.
4495 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
4496 Make static. Change return type to bool. Change argument type to
4497 const_rtx. Remove dead code.
4498 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
4500 2011-02-21 Richard Guenther <rguenther@suse.de>
4503 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
4504 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
4505 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
4507 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
4508 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
4510 2011-02-20 Richard Guenther <rguenther@suse.de>
4513 * tree.c (free_lang_data_in_decl): Clean builtins from
4514 the TU decl BLOCK_VARS.
4516 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
4520 * haifa-sched.c (fix_tick_ready): Skip tick computation
4523 2011-02-19 Richard Guenther <rguenther@suse.de>
4526 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
4527 Remove lazy BLOCK_VARS streaming.
4528 (lto_input_ts_block_tree_pointers): Likewise.
4529 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
4531 2011-02-19 Joseph Myers <joseph@codesourcery.com>
4533 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
4535 2011-02-19 Joseph Myers <joseph@codesourcery.com>
4537 * config/i386/biarch32.h, config/i386/mach.h,
4538 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
4540 2011-02-19 Jakub Jelinek <jakub@redhat.com>
4543 * config/i386/i386.md (peephole2 for shift and plus): Use
4544 operands[1] original mode in the first insn.
4546 2011-02-18 Mike Stump <mikestump@comcast.net>
4548 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
4550 2011-02-18 Jan Hubicka <jh@suse.cz>
4553 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
4554 to zero when the function is not inlinable at all.
4556 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4558 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
4559 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
4560 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
4561 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
4562 * config/pa/t-pa64: Likewise.
4563 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4565 2011-02-18 Jakub Jelinek <jakub@redhat.com>
4568 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
4570 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4573 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
4575 2011-02-18 Anatoly Sokolov <aesok@post.ru>
4577 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
4578 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
4579 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
4580 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
4581 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
4582 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
4583 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
4584 m32r_load_postinc_p, m32r_store_preinc_predec_p,
4585 m32r_legitimate_address_p): New functions.
4586 * config/m32r/constraints.md (constraint "S"): Don't use
4587 STORE_PREINC_PREDEC_P.
4588 (constraint "U"): Don't use LOAD_POSTINC_P.
4590 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
4592 PR rtl-optimization/46178
4593 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
4594 compute ira_hard_regno_cover_class[].
4596 2011-02-18 Richard Guenther <rguenther@suse.de>
4599 * lto-streamer.h (lto_global_var_decls): Declare.
4600 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
4601 statics for global var processing.
4603 2011-02-18 Richard Guenther <rguenther@suse.de>
4605 PR tree-optimization/47737
4606 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
4607 edge dominance check.
4609 2011-02-18 Jakub Jelinek <jakub@redhat.com>
4612 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
4613 avoid invalid rtx sharing.
4615 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
4617 * doc/cpp.texi (Obsolete Features): Add background on the
4618 origin of assertions.
4620 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
4622 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
4624 * config/darwin.c (output_objc_section_asm_op): Added support for
4626 (is_objc_metadata): New.
4627 (darwin_objc2_section): New.
4628 (darwin_objc1_section): New.
4629 (machopic_select_section): Added support for ABI v1 and v2.
4630 (darwin_emit_objc_zeroed): New.
4631 (darwin_output_aligned_bss): Detect objc metadata and treat it
4633 (darwin_asm_output_aligned_decl_common): Same.
4634 (darwin_asm_output_aligned_decl_local): Same.
4635 * config/darwin-sections.def: Updated for ABI v1 and v2.
4636 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
4637 compiling Objective-C code for the NeXT runtime, default to using
4638 ABI version 0 for 32-bit, and version 2 for 64-bit.
4640 2011-02-17 Joseph Myers <joseph@codesourcery.com>
4642 * common.opt (optimize_fast): New Variable.
4643 * opts.c (default_options_optimization): Use opts->x_optimize_fast
4644 instead of local variable ofast.
4646 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
4648 * doc/invoke.texi (fobjc-abi-version): Documented.
4649 (fobjc-nilcheck): Documented.
4650 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
4653 2011-02-17 Joseph Myers <joseph@codesourcery.com>
4656 * common.opt (export-dynamic): New Driver option.
4657 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
4659 2011-02-17 Joseph Myers <joseph@codesourcery.com>
4661 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
4663 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
4664 Jan Hubicka <jh@suse.cz>
4668 * cfgexpand.c (account_used_vars_for_block): Remove.
4669 (estimated_stack_frame_size): Use referenced vars.
4670 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
4671 that were referenced in the original function. Test src_fn
4672 rather than cfun. Drop redundant get_var_ann.
4673 (setup_one_parameter): Drop redundant get_var_ann.
4674 (declare_return_variable): Likewise.
4675 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
4676 (copy_arguments_for_versioning): Drop redundant get_var_ann.
4677 * ipa-inline.c (compute_inline_parameters): Do not compute
4678 disregard_inline_limits here.
4679 (compute_inlinable_for_current, pass_inlinable): New.
4680 (pass_inline_parameters): Require PROP_referenced_vars.
4681 * cgraphunit.c (cgraph_process_new_functions): Don't run
4682 compute_inline_parameters explicitly unless function is in SSA form.
4683 (cgraph_analyze_function): Set .disregard_inline_limits.
4684 * tree-sra.c (convert_callers): Compute inliner parameters
4685 only for functions already in SSA form.
4687 2011-02-17 Joseph Myers <joseph@codesourcery.com>
4689 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
4690 -mlittle-endian-data.
4692 2011-02-17 Joseph Myers <joseph@codesourcery.com>
4694 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
4695 -mno-fpu, not -fpu and -no-fpu.
4696 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
4697 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
4699 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
4702 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
4703 input reload with PLUS RTX.
4705 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4707 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
4708 of InverseVar(MDMX).
4710 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4712 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
4715 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4717 * config/mn10300/mn10300.opt (mno-crt0): New.
4719 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4721 * config/m68k/uclinux.opt (static-libc): New Driver option.
4723 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4725 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
4727 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4729 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
4730 %{muser-extend-enabled}.
4732 2011-02-16 Richard Guenther <rguenther@suse.de>
4734 PR tree-optimization/47738
4735 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
4736 the TODO from tree_predictive_commoning.
4738 2011-02-15 Jeff Law <law@redhat.com>
4741 2011-01-25 Jeff Law <law@redhat.com>
4743 PR rtl-optimization/37273
4744 * ira-costs.c (scan_one_insn): Detect constants living in memory and
4745 handle them like argument loads from stack slots. Do not double
4746 count memory for memory constants and argument loads from stack slots.
4748 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
4751 * combine.c (cant_combine_insn_p): Revert the last change.
4753 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
4756 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
4757 mode for vector constants. Remove code that checks for TImode.
4759 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
4763 * cgraph.h (compute_inline_parameters): Return void.
4764 * ipa-inline.c (compute_inline_parameters): Adjust.
4766 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
4770 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
4772 * cfgexpand.c (estimated_stack_frame_size): Likewise.
4773 * ipa-inline.c (compute_inline_parameters): Adjust.
4775 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
4779 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
4780 Adjust all users. Pass FN to...
4781 * tree-flow-inline.h (first_referenced_var): ... this. Add
4783 * ipa-struct-reorg.c: Adjust.
4784 * tree-dfa.c: Adjust.
4785 * tree-into-ssa.c: Adjust.
4786 * tree-sra.c: Adjust.
4787 * tree-ssa-alias.c: Adjust.
4788 * tree-ssa-live.c: Adjust.
4789 * tree-ssa.c: Adjust.
4790 * tree-ssanames.c: Adjust.
4791 * tree-tailcall.c: Adjust.
4793 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
4797 * tree-flow.h (referenced_var_lookup): Add fn parameter.
4799 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
4800 * tree-flow-inline.h: Adjust.
4801 * gimple-pretty-print.c: Adjust.
4802 * tree-into-ssa.c: Adjust.
4803 * tree-ssa.c: Adjust.
4804 * cfgexpand.c: Adjust.
4806 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
4808 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
4809 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4810 (EXTRA_CONSTRAINT): Delete.
4811 * config/iq2000/constraints.md: New file.
4812 * config/iq2000/iq2000.md: Include it.
4813 (define_insn ""): Delete.
4814 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
4815 unsupported constraint letters from patterns.
4816 (call_value, call_value_internal1): Likewise.
4817 (call_value_multiple_internal1): Likewise.
4819 2011-02-15 Nick Clifton <nickc@redhat.com>
4821 * config/mn10300/mn10300.c: Include tm-constrs.h.
4822 (struct liw_data): New data structure describing an LIW candidate
4824 (extract_bundle): Use struct liw_data. Allow small integer
4825 operands for some instructions.
4826 (check_liw_constraints): Use struct liw_data. Remove swapped
4827 parameter. Add comments describing the checks. Fix bug when
4828 assigning the source of liw1 to the source of liw2.
4829 (liw_candidate): Delete. Code moved into extract_bundle.
4830 (mn10300_bundle_liw): Use struct liw_data. Check constraints
4832 * config/mn10300/predicates.md (liw_operand): New predicate.
4833 Allows registers and small integer constants.
4834 * config/mn10300/constraints.md (O): New constraint. Accetps
4835 integers in the range -8 to +7 inclusive.
4836 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
4837 for moving a small integer into a register. Give this alternative
4839 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
4840 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
4841 using the J,K,L and M constraints,
4842 (liw): Remove SI mode on second operands to allow for HI and QI
4844 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
4847 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
4850 * combine.c (cant_combine_insn_p): Check zero/sign extended
4853 2011-02-15 Richard Guenther <rguenther@suse.de>
4855 PR tree-optimization/47743
4856 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
4857 for a non-type-compatible VN lookup bail out.
4859 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
4861 * config/fr30/constraints.md: New file.
4862 * config/fr30/fr30.md: Include it.
4863 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
4864 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4865 (EXTRA_CONSTRAINT): Delete.
4867 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
4869 * config/frv/constraints.md: New file.
4870 * config/frv/predicates.md: Include it.
4871 * config/frv/frv.c (reg_class_from_letter): Delete.
4872 (frv_option_override): Don't initialize it.
4873 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
4874 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
4875 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
4876 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
4877 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
4878 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4879 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
4880 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
4881 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
4882 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
4883 (REG_CLASS_FROM_CONSTRAINT): Delete.
4885 2011-02-15 Jakub Jelinek <jakub@redhat.com>
4888 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
4889 if frame size is 0 in a leaf function.
4891 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4894 * config/alpha/host-osf.c: New file.
4895 * config/alpha/x-osf: New file.
4896 * config.host (alpha*-dec-osf*): Use it.
4898 2011-02-14 Anatoly Sokolov <aesok@post.ru>
4900 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
4901 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
4902 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
4903 (rx_mode_dependent_address_p): ...this. Make static. Change argument
4905 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
4907 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
4909 * config/stormy16/constraints.md: New file.
4910 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
4911 Use satisfies_constraint_Q and satisfies_constraint_R.
4912 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
4914 (xstormy16_legitiamte_address_p): Declare.
4915 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
4916 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4917 (EXTRA_CONSTRAINT): Delete.
4918 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
4920 (xstormy16_extra_constraint_p): Delete.
4922 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
4924 PR tree-optimization/46494
4925 * loop-unroll.c (split_edge_and_insert): Adjust comment.
4926 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
4927 (pass_rtl_loop_done): Add TODO_verify_flow.
4928 * fwprop.c (pass_rtl_fwprop): Likewise.
4929 * modulo-sched.c (pass_sms): Likewise.
4930 * tree-ssa-dom.c (pass_dominator): Likewise.
4931 * tree-ssa-loop-ch.c (pass_ch): Likewise.
4932 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
4933 (pass_tree_loop_done): Likewise.
4934 * tree-ssa-pre.c (execute_pre): Likewise.
4935 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
4936 * tree-ssa-sink.c (pass_sink_code): Likewise.
4937 * tree-vrp.c (pass_vrp): Likewise.
4939 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
4941 * config/v850/constraints.md: New file.
4942 * config/v850/v850.md: Include it.
4943 * config/v850/predicates.md (reg_or_0_operand): Use
4944 satisfies_constraint_G.
4945 (special_symbolref_operand): Use satisfies_constraint_K.
4946 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
4947 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
4948 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
4949 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
4950 (EXTRA_CONSTRAINT): Delete.
4951 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
4952 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
4953 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
4955 2011-02-14 Anatoly Sokolov <aesok@post.ru>
4958 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
4961 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
4963 * config/mcore/constraints.md: New file.
4964 * config/mcore/mcore.md: Include it.
4965 * config/mcore/mcore.c (reg_class_from_letter): Delete.
4966 * config/mcore/mcore.h (reg_class_from_letter): Delete.
4967 (REG_CLASS_FROM_LETTER): Delete.
4968 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
4969 insn_const_int_ok_for_constraint.
4970 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
4971 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
4972 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4973 (EXTRA_CONSTRAINT): Delete.
4975 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4978 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
4979 (IS_SIGHANDLER): Define.
4980 (sparc64_is_sighandler): New function, split off from
4981 sparc64_fallback_frame_state.
4982 (sparc_is_sighandler): New function, split off from
4983 sparc_fallback_frame_state.
4984 (sparc64_fallback_frame_state): Merge with ...
4985 (sparc_fallback_frame_state): ... this into ...
4986 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
4987 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
4988 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
4989 stack instead of hardcoded offsets.
4991 2011-02-14 Andriy Gapon <avg@freebsd.org>
4994 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
4996 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4998 * configure: Regenerate.
5000 2011-02-12 Joseph Myers <joseph@codesourcery.com>
5003 * gcc.c (asm_options): Correct spec matching --target-help.
5005 2011-02-12 Martin Jambor <mjambor@suse.cz>
5007 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
5008 to gimple call error.
5010 2011-02-12 Mike Stump <mikestump@comcast.net>
5012 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
5013 comments in backslash regions.
5015 2011-02-12 Mike Stump <mikestump@comcast.net>
5016 Jakub Jelinek <jakub@redhat.com>
5017 Iain Sandoe <iains@gcc.gnu.org>
5020 * dwarf2out.c (output_cfa_loc): When required, apply the
5021 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
5022 (output_loc_sequence): Likewise.
5023 (output_loc_operands_raw): Likewise.
5024 (output_loc_sequence_raw): Likewise.
5025 (output_cfa_loc): Likewise.
5026 (output_loc_list): Suppress register number adjustment when
5027 calling output_loc_sequence()
5028 (output_die): Likewise.
5030 2011-02-12 Anatoly Sokolov <aesok@post.ru>
5032 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
5034 * config/xtensa/xtensa.c (xtensa_register_move_cost,
5035 xtensa_memory_move_cost): New functions.
5036 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
5038 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
5041 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
5042 in the current directory.
5043 * configure: Rebuilt.
5045 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
5047 * config/darwin.c (darwin_override_options): Add a hunk missed
5048 from the commit of r168571. Trim comment line lengths and
5049 correct indents of the preceding block.
5051 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
5053 * gcc.c (driver_handle_option): Concatenate the argument to -F with
5056 2011-02-11 Joseph Myers <joseph@codesourcery.com>
5058 * common.opt (nostartfiles): New Driver option.
5060 2011-02-11 Xinliang David Li <davidxl@google.com>
5062 PR tree-optimization/47707
5063 * tree-chrec.c (convert_affine_scev): Keep type precision.
5065 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
5067 PR tree-optimization/47420
5068 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
5070 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
5072 PR rtl-optimization/47614
5073 * rtl.h (check_for_inc_dec): Declare.
5074 * dse.c (check_for_inc_dec): Externalize...
5075 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
5076 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
5078 2011-02-11 Joseph Myers <joseph@codesourcery.com>
5081 * gcc.c (main): Do not compile inputs if there were errors in
5083 * opts-common.c (read_cmdline_option): Check for wrong language
5084 after other error checks.
5086 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
5088 * cgraph.c: Fix comment typos.
5089 * cgraph.h: Likewise.
5090 * cgraphunit.c: Likewise.
5091 * ipa-cp.c: Likewise.
5092 * ipa-inline.c: Likewise.
5093 * ipa-prop.c: Likewise.
5094 * ipa-pure-const.c: Likewise.
5095 * ipa-ref.c: Likewise.
5096 * ipa-reference.c: Likewise.
5098 2011-02-11 Jakub Jelinek <jakub@redhat.com>
5101 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
5103 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5106 * doc/sourcebuild.texi (Require Support): Document
5107 dg-require-ascii-locale.
5109 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
5111 * doc/lto.texi (Write summary): Fix missing parentheses.
5113 2011-02-10 DJ Delorie <dj@redhat.com>
5115 * config/m32c/m32c.c (m32c_option_override): Disable
5116 -fcombine-stack-adjustments until flag value tracking and compare
5117 optimization can be rewritten.
5119 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
5121 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
5123 (PROCESSOR_DEFAULT64): Likewise.
5125 2011-02-10 Richard Henderson <rth@redhat.com>
5127 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
5128 change from 2011-02-03.
5129 * config/rx/rx.c (flags_from_code): Likewise.
5130 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
5131 is valid, n/pz otherwise.
5132 (rx_select_cc_mode): Return CCmode if Y is not zero.
5134 2011-02-10 Richard Guenther <rguenther@suse.de>
5136 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
5138 2011-02-10 Richard Guenther <rguenther@suse.de>
5140 PR tree-optimization/47677
5141 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
5143 2011-02-10 Jakub Jelinek <jakub@redhat.com>
5146 * combine.c (make_compound_operation): Only change shifts into
5147 multiplication for SCALAR_INT_MODE_P.
5149 2011-02-10 Jie Zhang <jie@codesourcery.com>
5153 2011-02-05 Jie Zhang <jie@codesourcery.com>
5155 * web.c (entry_register): Don't clobber the number of the
5156 first uninitialized reference in used[].
5158 2011-02-09 Richard Guenther <rguenther@suse.de>
5160 PR tree-optimization/47664
5161 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
5164 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
5168 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
5170 (PROCESSOR_DEFAULT64): Same.
5171 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
5173 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5175 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
5177 2011-02-09 Martin Jambor <mjambor@suse.cz>
5180 * tree-sra.c (struct access): New flags grp_scalar_read and
5181 grp_scalar_write. Changed description of assignment read and write
5183 (dump_access): Dump new flags, reorder all of them.
5184 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
5185 to detect multiple scalar reads.
5186 (analyze_access_subtree): Use the new scalar read write flags instead
5187 of the old flags. Adjusted comments.
5189 2011-02-08 DJ Delorie <dj@redhat.com>
5192 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
5195 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5197 * config/m68k/uclinux.opt: New.
5198 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
5200 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5202 * config/cris/elf.opt (sim): New Driver option.
5204 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5206 * config/xtensa/elf.opt: New.
5207 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
5209 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5211 * config/vax/elf.opt: New.
5212 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
5214 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5216 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
5218 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5220 * config/gnu-user.opt: New.
5221 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
5222 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
5223 *-*-uclinux*): Use gnu-user.opt.
5225 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
5227 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
5228 * config/i386/gnu.h (CPP_SPEC): Likewise.
5230 2011-02-08 Ian Lance Taylor <iant@google.com>
5232 * common.opt (fcx-limited-range): Add SetByCombined flag.
5233 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
5234 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
5235 (fassociative-math, freciprocal-math): Likewise.
5236 (funsafe-math-optimizations): Likewise.
5237 * opth-gen.awk: Handle SetByCombined.
5238 * optc-gen.awk: Likewise.
5239 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5240 (set_unsafe_math_optimizations_flags): Likewise.
5241 * doc/options.texi (Option properties): Document SetByCombined.
5243 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5245 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
5246 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
5247 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
5248 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
5249 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
5251 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
5253 PR tree-optimization/46834
5254 PR tree-optimization/46994
5255 PR tree-optimization/46995
5256 * graphite-sese-to-poly.c (used_outside_reduction): New.
5257 (detect_commutative_reduction): Call used_outside_reduction.
5258 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
5259 translate_scalar_reduction_to_array only when at least one
5260 loop-phi/close-phi tuple has been detected.
5262 2011-02-08 Richard Guenther <rguenther@suse.de>
5265 * tree-vect-generic.c (expand_vector_operations_1): Update
5267 (expand_vector_operations): ... not here. Cleanup EH info
5268 and the CFG if required.
5270 2011-02-08 Richard Guenther <rguenther@suse.de>
5272 PR tree-optimization/47641
5273 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
5274 require type compatibility.
5276 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5278 * gimple-low.c (lower_function_body): Don't remove the location of
5279 the return statement here.
5280 (lower_gimple_return): Do it here instead but only if the return
5281 statement is actually used twice.
5283 2011-02-08 Richard Guenther <rguenther@suse.de>
5285 PR tree-optimization/47632
5286 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
5287 unused up_to_stmt parameter, return whether cfg-cleanup is
5288 necessary, remove EH info properly.
5289 (forward_propagate_into_gimple_cond): Adjust caller.
5290 (forward_propagate_into_cond): Likewise.
5291 (forward_propagate_comparison): Likewise.
5292 (tree_ssa_forward_propagate_single_use_vars): Make
5293 forward_propagate_comparison case similar to the two others.
5295 2011-02-08 Nick Clifton <nickc@redhat.com>
5297 * config/mn10300/mn10300.opt (mliw): New command line option.
5298 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
5299 (liw_bundling): New automaton.
5300 (liw): New attribute.
5301 (liw_op): New attribute.
5302 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
5303 (movsi_internal): Add LIW attributes.
5307 (addsi3): Separate register and immediate alternatives.
5312 (lshrsi3): Likewise.
5313 (ashrsi3): Likewise.
5315 * config/mn10300/mn10300.c (liw_op_names): New
5316 (mn10300_print_operand): Handle 'W' operand descriptor.
5317 (extract_bundle): New function.
5318 (check_liw_constraints): New function.
5319 (liw_candidate): New function.
5320 (mn10300_bundle_liw): New function.
5321 (mn10300_reorg): New function.
5322 (TARGET_MACHINE_DEPENDENT_REORG): Define.
5323 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
5324 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
5325 __LIW__ or __NO_LIW__.
5326 * doc/invoke.texi: Describe the -mliw command line option.
5328 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5330 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
5331 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
5332 pthread_mutex_unlock): Remove.
5333 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
5334 * config/pa/t-pa64: Likewise.
5335 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
5336 shared libc if not linking against libpthread.
5337 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
5339 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
5342 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
5343 on 10.6 and later to ensure that we always use the unwinder from
5344 the system. Only add -no_compact_unwind when tarteting darwin
5347 2011-02-07 Steve Ellcey <sje@cup.hp.com>
5350 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
5351 (vec_interleave_lowv2sf): Ditto.
5352 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
5353 (vec_extract_oddv2sf): Ditto.
5355 2011-02-07 Mike Stump <mikestump@comcast.net>
5358 Add __ieee_divdc3 entry point.
5359 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
5361 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
5362 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
5363 * config/darwin.c (darwin_rename_builtins): Add.
5364 * config/darwin-protos.h (darwin_rename_builtins): Add.
5366 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
5369 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
5372 2011-02-07 Mike Stump <mikestump@comcast.net>
5374 * config/darwin.opt (mmacosx-version-min): Update default OS version.
5376 2011-02-07 Denis Chertykov <chertykov@gmail.com>
5379 * config/avr/libgcc.S (exit): Move .endfunc
5381 2011-02-07 Richard Guenther <rguenther@suse.de>
5383 PR tree-optimization/47615
5384 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
5385 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
5386 (run_scc_vn): Initialize it.
5387 (visit_reference_op_load): Use it.
5388 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
5390 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5392 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
5393 DImode trapping arithmetic libfuncs.
5395 2011-02-07 Richard Guenther <rguenther@suse.de>
5397 PR tree-optimization/47621
5398 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
5400 (execute_update_addresses_taken): ... here. Make it more
5401 conservative in what we accept.
5403 2011-02-06 Joseph Myers <joseph@codesourcery.com>
5405 * config/sparc/freebsd.h (ASM_SPEC): Define.
5406 * config/sparc/vxworks.h (ASM_SPEC): Define.
5408 2011-02-06 Joseph Myers <joseph@codesourcery.com>
5410 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
5412 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
5414 * doc/invoke.texi: Remove reference to compiler internals from
5417 * reg-notes.def: Remove REG_VALUE_PROFILE.
5418 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
5420 2011-02-05 Jakub Jelinek <jakub@redhat.com>
5423 * varasm.c (default_section_type_flags): If decl is NULL,
5424 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
5426 2011-02-05 Jie Zhang <jie@codesourcery.com>
5429 * web.c (entry_register): Don't clobber the number of the
5430 first uninitialized reference in used[].
5432 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
5434 PR tree-optimization/46194
5435 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
5436 (build_classic_dist_vector_1): Do not represent classic distance
5437 vectors when the access functions are variating in different loops.
5439 2011-02-04 Joseph Myers <joseph@codesourcery.com>
5441 * config/mips/iris6.opt: New.
5442 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
5444 2011-02-04 Richard Henderson <rth@redhat.com>
5445 Steve Ellcey <sje@cup.hp.com>
5448 * config/ia64/predicates.md (mux1_brcst_element): New.
5449 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
5450 * config/ia64/ia64.c (ia64_unpack_assemble): New.
5451 (ia64_unpack_sign): New.
5452 (ia64_expand_unpack): Rewrite using new routines.
5453 (ia64_expand_widen_sum): Ditto.
5454 (ia64_expand_dot_prod_v8qi): Ditto.
5455 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
5456 routines, add endian check.
5457 (pmpy2_even): Rename from pmpy2_r, add endian check.
5458 (pmpy2_odd): Rename from pmpy2_l, add endian check.
5459 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
5460 (vec_widen_smult_hi_v4hi): Ditto.
5461 (vec_widen_umult_lo_v4hi): Ditto.
5462 (vec_widen_umult_hi_v4hi): Ditto.
5463 (mulv2si3): Change endian checks.
5464 (sdot_prodv4hi): Rewrite with new calls.
5465 (udot_prodv4hi): New.
5466 (vec_pack_ssat_v4hi): Add endian check.
5467 (vec_pack_usat_v4hi): Ditto.
5468 (vec_pack_ssat_v2si): Ditto.
5469 (max1_even): Rename from max1_r, add endian check.
5470 (max1_odd): Rename from max1_l, add endian check.
5471 (*mux1_rev): Format change.
5473 (*mux1_shuf): Ditto.
5475 (*mux1_brcst_v8qi): Use new predicate.
5476 (vec_extract_evenv8qi): Remove endian check.
5477 (vec_extract_oddv8qi): Ditto.
5478 (vec_interleave_lowv4hi): Format change.
5479 (vec_interleave_highv4hi): Ditto.
5480 (mix2_even): Rename from mix2_r, add endian check.
5481 (mix2_odd): Rename from mux2_l, add endian check.
5482 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
5483 (vec_extract_evenodd_helper): Format change.
5484 (vec_extract_evenv4hi): Remove endian check.
5485 (vec_extract_oddv4hi): Remove endian check.
5486 (vec_interleave_lowv2si): Format change.
5487 (vec_interleave_highv2si): Format change.
5488 (vec_initv2si): Remove endian check.
5489 (vecinit_v2si): Add endian check.
5490 (reduc_splus_v2sf): Add endian check.
5491 (reduc_smax_v2sf): Ditto.
5492 (reduc_smin_v2sf): Ditto.
5493 (vec_initv2sf): Remove endian check.
5494 (fpack): Add endian check.
5495 (fswap): Add endian check.
5496 (vec_interleave_highv2sf): Add endian check.
5497 (vec_interleave_lowv2sf): Add endian check.
5498 (fmix_lr): Add endian check.
5499 (vec_setv2sf): Format change.
5500 (*vec_extractv2sf_0_be): Use shift to extract operand.
5501 (*vec_extractv2sf_1_be): New.
5502 (vec_pack_trunc_v4hi): Add endian check.
5503 (vec_pack_trunc_v2si): Format change.
5505 2011-02-04 Jakub Jelinek <jakub@redhat.com>
5508 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
5509 do bb, locus and block comparison and disallow loads if it is not set.
5510 (stmt_is_replaceable_p): New function.
5511 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
5513 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
5514 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
5516 * tree-flow.h (stmt_is_replaceable_p): New prototype.
5518 2011-02-04 Joseph Myers <joseph@codesourcery.com>
5520 * config/rs6000/xilinx.opt: New.
5521 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
5523 2011-02-04 Joseph Myers <joseph@codesourcery.com>
5525 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
5527 2011-02-03 Anatoly Sokolov <aesok@post.ru>
5529 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
5530 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
5531 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
5532 secondary_reload_info, xtensa_secondary_reload): Remove.
5533 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
5534 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
5535 (xtensa_preferred_reload_class): Make static. Change return and
5536 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
5537 Use CONST_DOUBLE_P predicate.
5538 (xtensa_preferred_output_reload_class): New function.
5539 (xtensa_secondary_reload): Make static.
5541 2011-02-03 Joseph Myers <joseph@codesourcery.com>
5543 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
5544 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
5545 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
5547 2011-02-03 Jakub Jelinek <jakub@redhat.com>
5550 * output.h (SECTION_RELRO): Define.
5551 (SECTION_MACH_DEP): Adjust.
5552 (get_variable_section): New prototype.
5553 * varpool.c (varpool_finalize_named_section_flags): New function.
5554 (varpool_assemble_pending_decls): Call it.
5555 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
5556 * cgraphunit.c (cgraph_output_in_order): Call
5557 varpool_finalize_named_section_flags.
5558 * varasm.c (get_section): Allow section flags conflicts between
5559 relro and read-only sections if the section hasn't been declared yet.
5560 Set SECTION_OVERRIDE after diagnosing section type conflict.
5561 (get_variable_section): No longer static.
5562 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
5563 readonly sections that need relocations.
5564 (decl_readonly_section_1): New function.
5565 (decl_readonly_section): Use it.
5568 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
5569 Steve Ellcey <sje@cup.hp.com>
5572 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
5573 if section attribute used.
5575 2011-02-03 Jakub Jelinek <jakub@redhat.com>
5577 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
5578 * config/darwin.c (SECTION_NO_ANCHOR): Define.
5579 (darwin_init_sections): Remove assertion.
5581 2011-02-03 Nick Clifton <nickc@redhat.com>
5583 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
5585 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
5586 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
5587 instead of "n" and "pz".
5588 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
5591 2011-02-03 Jakub Jelinek <jakub@redhat.com>
5594 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
5595 fma, expand FMA_EXPR as fma{,f,l} call.
5598 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
5599 copy them into a unsigned char variable and pass address of it to
5600 lto_output_data_stream.
5603 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
5604 around backend_init_target and lang_dependent_init_target calls.
5605 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
5606 (verify_cgraph_node): Don't call set_cfun here. Use
5607 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
5608 Set error_found for incorrectly represented calls to thunks.
5610 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
5613 PR rtl-optimization/43494
5614 * rtl.h (for_each_inc_dec_fn): New type.
5615 (for_each_inc_dec): Declare.
5616 * rtlanal.c (struct for_each_inc_dec_ops): New type.
5617 (for_each_inc_dec_find_inc_dec): New fn.
5618 (for_each_inc_dec_find_mem): New fn.
5619 (for_each_inc_dec): New fn.
5620 * dse.c (struct insn_size): Remove.
5621 (replace_inc_dec, replace_inc_dec_mem): Remove.
5622 (emit_inc_dec_insn_before): New fn.
5623 (check_for_inc_dec): Use it, along with for_each_inc_dec.
5624 (canon_address): Pass mem modes to cselib_lookup.
5625 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
5626 (cselib_lookup_from_insn): Likewise.
5627 (cselib_subst_to_values): Likewise.
5628 * cselib.c (find_slot_memmode): New var.
5629 (cselib_find_slot): New fn. Use it instead of
5630 htab_find_slot_with_hash everywhere.
5631 (entry_and_rtx_equal_p): Use find_slot_memmode.
5632 (autoinc_split): New fn.
5633 (rtx_equal_for_cselib_p): Rename and implement in terms of...
5634 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
5635 Deal with autoinc. Special-case recursion into MEMs.
5636 (cselib_hash_rtx): Likewise.
5637 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
5638 address and MEM modes.
5639 (cselib_subst_to_values): Add memmode, pass it on.
5641 (cselib_lookup): Add memmode argument, pass it on.
5642 (cselib_lookup_from_insn): Add memmode.
5643 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
5644 (struct cselib_record_autoinc_data): New.
5645 (cselib_record_autoinc_cb): New fn.
5646 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
5647 mode to cselib_lookup. Reset autoinced REGs here instead of...
5648 (cselib_process_insn): ... here.
5649 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
5651 (add_uses): Likewise, also to cselib_subst_to_values.
5652 (add_stores): Likewise.
5653 * sched-deps.c (add_insn_mem_dependence): Pass mode to
5654 cselib_subst_to_values.
5655 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
5656 * gcse.c (do_local_cprop): Adjusted.
5657 * postreload.c (reload_cse_simplify_set): Adjusted.
5658 (reload_cse_simplify_operands): Adjusted.
5659 * sel-sched-dump (debug_mem_addr_value): Pass mode.
5661 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
5663 PR tree-optimization/45122
5664 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
5665 unsafe assumptions when there's more than one loop exit.
5667 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
5670 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
5671 Document using vector double with the load/store builtins, and
5672 that the load/store builtins always use Altivec instructions.
5674 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
5675 to use altivec memory instructions, even on VSX.
5676 (vector_altivec_store_<mode>): Ditto.
5678 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
5681 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5682 V2DF, V2DI support to load/store overloaded builtins.
5684 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
5685 altivec load/store builtins for V2DF/V2DI types.
5687 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
5688 set avoid indexed addresses on power6 if -maltivec.
5689 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
5690 vector_altivec_load/vector_altivec_store builtins.
5691 (altivec_expand_st_builtin): Ditto.
5692 (altivec_expand_builtin): Add VSX memory builtins.
5693 (rs6000_init_builtins): Add V2DI types to internal types.
5694 (altivec_init_builtins): Add support for V2DF/V2DI altivec
5695 load/store builtins.
5696 (rs6000_address_for_altivec): Insure memory address is appropriate
5699 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
5700 vec_vsx_ld and vec_vsx_st.
5701 (vsx_store_<mode>): Ditto.
5703 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
5704 variables to hold long long types for VSX vector memory builtins.
5705 (RS6000_BTI_unsigned_long_long): Ditto.
5706 (long_long_integer_type_internal_node): Ditti.
5707 (long_long_unsigned_type_internal_node): Ditti.
5709 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
5710 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
5711 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
5713 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
5715 (vec_vsx_st): Ditto.
5717 2011-02-02 Joseph Myers <joseph@codesourcery.com>
5719 * config/pa/pa-hpux10.opt: New.
5720 * config/hpux11.opt (pthread): New Driver option.
5721 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
5722 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
5724 2011-02-02 Joseph Myers <joseph@codesourcery.com>
5726 * config/ia64/vms.opt: New.
5727 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
5729 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
5732 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
5733 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
5734 generator functions.
5735 (vsx_floatuns<VSi><mode>2): Ditto.
5736 (vsx_fix_trunc<mode><VSi>2): Ditto.
5737 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
5739 2011-02-02 Joseph Myers <joseph@codesourcery.com>
5741 * config/i386/djgpp.opt (posix): New Driver option.
5743 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
5745 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
5746 Move to the unsupported targets list.
5748 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
5750 PR rtl-optimization/47525
5751 * df-scan.c: Update copyright years.
5752 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
5753 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
5755 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5757 * config/i386/sysv4.h (TARGET_VERSION): Remove.
5758 (SUBTARGET_RETURN_IN_MEMORY): Remove.
5759 (ASM_OUTPUT_ASCII): Remove.
5760 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
5762 2011-02-02 Jeff Law <law@redhat.com>
5765 * reload.c (find_reloads_address): Handle reg+d address where both
5766 components are invalid by reloading the entire address.
5768 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
5769 Richard Guenther <rguenther@suse.de>
5771 PR tree-optimization/40979
5773 * passes.c (init_optimization_passes): After LIM call copy_prop
5774 and DCE to clean up.
5775 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
5777 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
5779 PR tree-optimization/47576
5780 PR tree-optimization/47555
5781 * doc/invoke.texi (scev-max-expr-complexity): Documented.
5782 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
5783 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
5784 * tree-scalar-evolution.c (follow_ssa_edge): Use
5785 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
5787 2011-02-02 Richard Guenther <rguenther@suse.de>
5789 PR tree-optimization/47566
5790 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
5792 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
5796 * tree-inline.c (declare_return_variable): Remove unused caller
5801 * tree-flow-inline.h (clear_is_used, is_used_p): New.
5802 * cfgexpand.c (account_used_vars_for_block): Use them.
5803 * tree-nrv.c (tree_nrv): Likewise.
5804 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
5805 (dump_scope_block): Likewise.
5806 (remove_unused_locals): Likewise.
5810 * tree-inline.c (declare_return_variable): Add result decl to
5811 local decls only once.
5812 * gimple-low.c (record_vars_into): Mark newly-created variables
5815 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
5821 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
5823 (no_real_insns_p, schedule_block, set_priorities): Drop special
5824 treatment of boundary debug insns.
5825 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
5826 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
5827 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
5828 (BOUNDARY_DEBUG_INSN_P): Likewise.
5829 (SCHEDULE_DEBUG_INSN_P): Likewise.
5830 * sched-rgn.c (init_ready_list): Drop special treatment of
5831 boundary debug insns.
5832 * final.c (rest_of_clean_state): Clear notes' BB.
5834 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5836 * config/openbsd.opt (assert=): New Driver option.
5838 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5840 * config/i386/nto.opt: New.
5841 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
5843 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5845 * config/i386/netware.opt: New.
5846 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
5848 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5850 * config/interix.opt (posix): New Driver option.
5852 2011-02-01 DJ Delorie <dj@redhat.com>
5854 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
5856 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
5859 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
5861 PR tree-optimization/47561
5862 * toplev.c (process_options): Print the Graphite flags. Add
5863 flag_loop_flatten to the list of options requiring Graphite.
5865 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5867 * config/i386/cygming.opt (posix): New Driver option.
5869 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5871 * config/arm/vxworks.opt: New.
5872 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
5874 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5876 * config/alpha/elf.opt: New.
5877 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
5878 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
5880 2011-02-01 Richard Guenther <rguenther@suse.de>
5882 PR tree-optimization/47559
5883 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
5884 store-motion on references that can throw.
5886 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
5888 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
5889 * tree-pass.h (TDF_CSELIB): New macro.
5890 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
5891 cselib_lookup): Check for it rather than for TDF_DETAILS.
5893 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
5896 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
5899 * opts.c (finish_options): Don't add x_aux_base_name if it is
5902 2011-02-01 Richard Guenther <rguenther@suse.de>
5904 PR tree-optimization/47555
5906 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
5908 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
5910 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
5913 * config/lm32/t-lm32: Add multilib for all CPU options.
5915 2011-02-01 Richard Guenther <rguenther@suse.de>
5917 PR tree-optimization/47541
5918 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
5919 sure to have a field at offset zero.
5921 2011-01-31 Joseph Myers <joseph@codesourcery.com>
5923 * config/arc/arc.opt (EB, EL): New Driver options.
5925 2011-01-31 Joseph Myers <joseph@codesourcery.com>
5927 * config/alpha/osf5.opt: New.
5928 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
5930 2011-01-31 Joseph Myers <joseph@codesourcery.com>
5932 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
5934 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
5936 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
5938 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
5939 is an alias of -floop-interchange and that it requires the
5940 Graphite infrastructure.
5941 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
5942 flag_loop_interchange based on the value of flag_tree_loop_linear.
5944 2011-01-31 Jakub Jelinek <jakub@redhat.com>
5945 Richard Guenther <rguenther@suse.de>
5947 PR tree-optimization/47538
5948 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
5949 type instead of r1type, except for comparisons. For right
5950 shifts and comparisons punt if there are mismatches in
5951 sizetype vs. non-sizetype types.
5953 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5955 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5958 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5960 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
5962 * configure: Regenerate.
5964 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5966 * configure.ac (gcc_cv_ld_static_option): Define.
5967 (gcc_cv_ld_dynamic_option): Define.
5968 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
5970 (HAVE_LD_STATIC_DYNAMIC): Update message.
5971 (LD_STATIC_OPTION): Define.
5972 (LD_DYNAMIC_OPTION): Define.
5973 * configure: Regenerate.
5974 * config.in: Regenerate.
5975 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
5976 HAVE_LD_STATIC_DYNAMIC]: Use them.
5978 2011-01-31 Nick Clifton <nickc@redhat.com>
5980 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
5981 registers inside interrupt handlers if the handler is not a leaf
5984 2011-01-31 Nick Clifton <nickc@redhat.com>
5986 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
5987 reg_renumber returning an INVALID_REGNUM.
5989 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
5992 * doc/install.texi: Document host options discarded when cross
5993 configuring target libraries.
5995 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
5998 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
6001 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
6003 (no_real_insns_p, schedule_block, set_priorities): Drop special
6004 treatment of boundary debug insns.
6005 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
6006 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
6007 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
6008 (BOUNDARY_DEBUG_INSN_P): Likewise.
6009 (SCHEDULE_DEBUG_INSN_P): Likewise.
6010 * sched-rgn.c (init_ready_list): Drop special treatment of
6011 boundary debug insns.
6012 * final.c (rest_of_clean-state): Clear notes' BB.
6014 2011-01-31 Alan Modra <amodra@gmail.com>
6016 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
6017 toc relative expressions as we do in print_operand_address.
6019 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
6021 * doc/extend.texi: Follow spelling conventions.
6022 * doc/invoke.texi: Fix a typo.
6024 2011-01-30 Joseph Myers <joseph@codesourcery.com>
6026 * config/hpux11.opt: New.
6027 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
6028 ia64*-*-hpux*): Use hpux11.opt.
6030 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
6032 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
6035 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
6037 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
6040 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
6042 * doc/install.texi (Binaries): Remove outdated reference for
6043 Motorola 68HC11/68HC12 downloads.
6045 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
6047 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
6050 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
6053 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
6056 2011-01-28 Ahmad Sharif <asharif@google.com>
6058 * value-prof.c (check_counter): Corrected error message.
6060 2011-01-29 Jie Zhang <jie@codesourcery.com>
6062 * config/arm/arm.c (arm_legitimize_reload_address): New.
6063 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
6064 arm_legitimize_reload_address.
6065 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
6067 2011-01-28 Ian Lance Taylor <iant@google.com>
6069 * godump.c (go_define): Ignore macros whose definitions include
6070 two adjacent operands.
6072 2011-01-28 Jakub Jelinek <jakub@redhat.com>
6075 * varasm.c (force_const_mem): Store copy of x in desc->constant
6076 instead of x itself.
6077 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
6078 itself into REG_EQUAL note.
6080 2011-01-28 Joseph Myers <joseph@codesourcery.com>
6082 * config/freebsd.opt (posix, rdynamic): New Driver options.
6084 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6086 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
6088 * configure: Regenerate.
6090 2011-01-27 Joseph Myers <joseph@codesourcery.com>
6092 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
6093 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
6095 2011-01-27 Anatoly Sokolov <aesok@post.ru>
6097 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
6098 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
6099 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6100 (s390_preferred_reload_class): Make static. Change return and
6101 'rclass' argument type to reg_class_t.
6103 2011-01-27 Jan Hubicka <jh@suse.cz>
6106 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
6107 (process_function_and_variable_attributes): Check defined weakrefs.
6109 2011-01-27 Martin Jambor <mjambor@suse.cz>
6111 PR tree-optimization/47228
6112 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
6113 build_ref_for_offset.
6115 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6117 * config/spu/spu-elf.h (ASM_SPEC): Remove.
6119 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
6121 PR rtl-optimization/46856
6122 * postreload.c (reload_combine_recognize_const_pattern): Do not
6123 separate cc0 setter and user on cc0 targets.
6125 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
6128 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
6129 passed a VOID_TYPE expression, immediately emit an error and
6130 return error_mark_node.
6132 2011-01-26 Jeff Law <law@redhat.com>
6134 PR rtl-optimization/47464
6135 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
6136 rather than may_trap_p as needed.
6138 2011-01-26 DJ Delorie <dj@redhat.com>
6140 PR rtl-optimization/46878
6141 * combine.c (insn_a_feeds_b): Check for the implicit cc0
6142 setter/user dependency as well.
6144 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
6146 PR rtl-optimization/44469
6147 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
6148 after removing trivially dead basic blocks.
6150 2011-01-26 Joseph Myers <joseph@codesourcery.com>
6152 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
6153 * config/frv/frv.h (LINK_SPEC): Likewise.
6154 * config/i386/netware.h (LINK_SPEC): Likewise.
6155 * config/m68k/linux.h (ASM_SPEC): Likewise.
6156 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
6157 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
6158 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
6159 * config/sparc/linux.h (ASM_SPEC): Likewise.
6160 * config/sparc/linux64.h (ASM_SPEC): Likewise.
6161 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
6163 2011-01-26 Joseph Myers <joseph@codesourcery.com>
6165 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
6166 * config/frv/frv.h (ASM_SPEC): Likewise.
6167 * config/m68k/linux.h (ASM_SPEC): Likewise.
6168 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
6169 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
6170 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
6171 * config/sparc/linux.h (ASM_SPEC): Likewise.
6172 * config/sparc/linux64.h (ASM_SPEC): Likewise.
6173 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
6175 2011-01-26 Joseph Myers <joseph@codesourcery.com>
6177 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
6178 * config/frv/frv.h (LINK_SPEC): Likewise.
6179 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
6181 2011-01-26 Joseph Myers <joseph@codesourcery.com>
6183 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
6184 * config/frv/frv.h (ASM_SPEC): Likewise.
6185 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
6186 * config/m68k/linux.h (ASM_SPEC): Likewise.
6187 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
6188 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
6189 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
6190 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
6191 * config/sparc/linux.h (ASM_SPEC): Likewise.
6192 * config/sparc/linux64.h (ASM_SPEC): Likewise.
6193 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
6194 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
6196 2011-01-26 Steve Ellcey <sje@cup.hp.com>
6199 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
6201 (vec_extract_evenodd_help): Ditto.
6202 (vec_extract_evenv4hi): Ditto.
6203 (vec_extract_oddv4hi): Ditto.
6204 (vec_interleave_lowv2si): Ditto.
6205 (vec_interleave_highv2si): Ditto.
6206 (vec_extract_evenv2si): Ditto.
6207 (vec_extract_oddv2si: Ditto.
6208 (vec_pack_trunc_v2si): Ditto.
6210 2011-01-22 Jan Hubicka <jh@suse.cz>
6213 * cgraph.h (cgraph_local_info): New field can_change_signature.
6214 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
6215 signature can change.
6216 (ipcp_estimate_growth): Call sequence simplify only if calle signature
6218 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
6219 (cgraph_function_versioning): We can not change signature of functions
6220 that don't allow that.
6221 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
6222 (lto_input_node): Likewise.
6223 * ipa-inline.c (compute_inline_parameters): Compute
6224 local.can_change_signature.
6225 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
6226 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
6227 functions that can not change signature.
6228 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
6229 init_cumulative_args): Do not use local calling conventions
6230 for functions that can not change signature.
6232 2011-01-22 Jan Hubicka <jh@suse.cz>
6234 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
6236 2011-01-26 Richard Guenther <rguenther@suse.de>
6238 PR tree-optimization/47190
6239 * cgraphunit.c (process_common_attributes): New function.
6240 (process_function_and_variable_attributes): Use it.
6242 2011-01-26 Richard Guenther <rguenther@suse.de>
6245 * cgraphbuild.c (record_eh_tables): Record reference to personality
6248 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
6251 * sel-sched.c (moveup_expr): Don't let debug insns prevent
6252 non-debug insns from moving up.
6254 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
6257 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
6258 t-dlldir{,-x} fragment for build and add it to tmake_file.
6259 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
6260 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
6261 * config/i386/t-dlldir: New file.
6262 (SHLIB_DLLDIR): Define.
6263 * config/i386/t-dlldir-x: New file.
6264 (SHLIB_DLLDIR): Define.
6265 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
6266 (SHLIB_INSTALL): Use it.
6268 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
6271 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
6272 lower bound of the allowed Thumb-2 coprocessor load/store
6273 index range to -256. Add explaining comment.
6275 2011-01-25 Ian Lance Taylor <iant@google.com>
6277 * godump.c (go_define): Improve lexing of macro expansion to only
6278 accept expressions which match Go spec.
6280 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
6283 * tree.c (handle_dll_attribute): Handle it.
6284 * doc/extend.texi (@item dllexport): Mention it.
6285 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
6287 2011-01-25 Ian Lance Taylor <iant@google.com>
6289 PR tree-optimization/26854
6290 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
6291 (decl_jump_unsafe): Move higher in file, with no other change.
6292 (bind): Set has_jump_unsafe_decl if appropriate.
6293 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
6294 (check_earlier_gotos): Likewise.
6295 (c_check_switch_jump_warnings): Likewise.
6297 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
6299 * doc/invoke.texi (Warning Options): Add missing hyphen.
6300 (-fprofile-dir): Minor grammatical fixes.
6301 (-fbranch-probabilities): Likewise.
6303 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
6307 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
6309 (no_real_insns_p, schedule_block, set_priorities): Drop special
6310 treatment of boundary debug insns.
6311 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
6312 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
6313 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
6314 (BOUNDARY_DEBUG_INSN_P): Likewise.
6315 (SCHEDULE_DEBUG_INSN_P): Likewise.
6316 * sched-rgn.c (init_ready_list): Drop special treatment of
6317 boundary debug insns.
6318 * final.c (rest_of_clean-state): Clear notes' BB.
6320 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6322 * Makefile.in (LAMBDA_H): Removed.
6323 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
6324 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
6325 lambda-trans.o, and tree-loop-linear.o.
6326 (lto-symtab.o): Remove dependence on LAMBDA_H.
6327 (tree-loop-linear.o): Remove rule.
6328 (lambda-mat.o): Same.
6329 (lambda-trans.o): Same.
6330 (lambda-code.o): Same.
6331 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
6332 (tree-vect-slp.o): Same.
6333 * hwint.h (gcd): Moved here.
6334 (least_common_multiple): Same.
6335 * lambda-code.c: Removed.
6336 * lambda-mat.c: Removed.
6337 * lambda-trans.c: Removed.
6338 * lambda.h: Removed.
6339 * tree-loop-linear.c: Removed.
6340 * lto-symtab.c: Do not include lambda.h.
6341 * omega.c (gcd): Removed.
6342 * passes.c (init_optimization_passes): Remove pass_linear_transform.
6343 * tree-data-ref.c (print_lambda_vector): Moved here.
6344 (lambda_vector_copy): Same.
6345 (lambda_matrix_copy): Same.
6346 (lambda_matrix_id): Same.
6347 (lambda_vector_first_nz): Same.
6348 (lambda_matrix_row_add): Same.
6349 (lambda_matrix_row_exchange): Same.
6350 (lambda_vector_mult_const): Same.
6351 (lambda_vector_negate): Same.
6352 (lambda_matrix_row_negate): Same.
6353 (lambda_vector_equal): Same.
6354 (lambda_matrix_right_hermite): Same.
6355 * tree-data-ref.h: Do not include lambda.h.
6356 (lambda_vector): Moved here.
6357 (lambda_matrix): Same.
6358 (dependence_level): Same.
6359 (lambda_transform_legal_p): Removed declaration.
6360 (lambda_collect_parameters): Same.
6361 (lambda_compute_access_matrices): Same.
6362 (lambda_vector_gcd): Same.
6363 (lambda_vector_new): Same.
6364 (lambda_vector_clear): Same.
6365 (lambda_vector_lexico_pos): Same.
6366 (lambda_vector_zerop): Same.
6367 (lambda_matrix_new): Same.
6368 * tree-flow.h (least_common_multiple): Removed declaration.
6369 * tree-parloops.c (lambda_trans_matrix): Moved here.
6371 (LTM_ROWSIZE): Same.
6372 (LTM_COLSIZE): Same.
6373 (LTM_DENOMINATOR): Same.
6374 (lambda_trans_matrix_new): Same.
6375 (lambda_matrix_vector_mult): Same.
6376 (lambda_transform_legal_p): Same.
6377 * tree-pass.h (pass_linear_transform): Removed declaration.
6378 * tree-ssa-loop.c (tree_linear_transform): Removed.
6379 (gate_tree_linear_transform): Removed.
6380 (pass_linear_transform): Removed.
6381 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
6382 flag_loop_interchange.
6384 2011-01-25 Jakub Jelinek <jakub@redhat.com>
6386 PR tree-optimization/47265
6387 PR tree-optimization/47443
6388 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
6389 if name still has some uses.
6391 2011-01-25 Martin Jambor <mjambor@suse.cz>
6393 PR tree-optimization/47382
6394 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
6395 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
6397 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
6399 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
6400 sjlj_except_unwind_info.
6402 2011-01-25 Richard Guenther <rguenther@suse.de>
6404 PR tree-optimization/47426
6405 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
6406 visible functions results escape.
6408 2011-01-25 Jakub Jelinek <jakub@redhat.com>
6411 * config/arm/arm.c (any_sibcall_uses_r3): New function.
6412 (arm_get_frame_offsets): Use it.
6414 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6415 Jakub Jelinek <jakub@redhat.com>
6417 PR tree-optimization/47271
6418 * tree-if-conv.c (bb_postdominates_preds): New.
6419 (if_convertible_bb_p): Call bb_postdominates_preds.
6420 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
6421 (predicate_scalar_phi): Call bb_postdominates_preds.
6423 2011-01-25 Nick Clifton <nickc@redhat.com>
6425 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
6426 * config/rx/rx.c (rx_function_value): Likewise.
6427 (rx_promote_function_mode): Likewise.
6428 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
6429 in order to make it legitimate.
6430 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
6431 make sure that the first operand is the same as the result register.
6432 (addsi3_unspec): Delete.
6433 (subdi3): Do not accept immediate operands.
6434 (subdi3_internal): Likewise.
6436 2011-01-25 Jeff Law <law@redhat.com>
6438 PR rtl-optimization/37273
6439 * ira-costs.c (scan_one_insn): Detect constants living in memory and
6440 handle them like argument loads from stack slots. Do not double
6441 count memory for memory constants and argument loads from stack slots.
6443 2011-01-25 Jakub Jelinek <jakub@redhat.com>
6445 PR tree-optimization/47427
6446 PR tree-optimization/47428
6447 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
6448 coalesce if the new root var would be TREE_READONLY.
6450 2011-01-25 Richard Guenther <rguenther@suse.de>
6453 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
6454 correct type for TBAA.
6456 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6458 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
6459 (close_phi_written_to_memory): Call for_each_index with
6460 dr_indices_valid_in_loop.
6462 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6464 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
6465 when it is initialized.
6467 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6469 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
6470 call to graphite_find_data_references_in_stmt.
6471 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
6472 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
6473 call to graphite_find_data_references_in_stmt.
6474 (analyze_drs_in_stmts): Same.
6475 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
6476 in which the scalar analysis of indices is performed.
6477 (create_data_ref): Same. Update call to dr_analyze_indices.
6478 (find_data_references_in_stmt): Update call to create_data_ref.
6479 (graphite_find_data_references_in_stmt): Same.
6480 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
6482 (create_data_ref): Same.
6483 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
6484 call to create_data_ref.
6486 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6488 * graphite-sese-to-poly.c (build_poly_scop): Move
6489 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
6491 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6493 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
6494 VAR_DECL, PARM_DECL, and RESULT_DECL.
6496 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6498 * graphite-dependences.c (reduction_dr_1): Allow several reductions
6500 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
6501 that have already been marked as PBB_IS_REDUCTION.
6503 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6505 * graphite-scop-detection.c (same_close_phi_node): New.
6506 (remove_duplicate_close_phi): New.
6507 (make_close_phi_nodes_unique): New.
6508 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
6510 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6512 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
6513 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
6514 of both data references to be the same.
6516 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6518 * graphite-dependences.c (build_lexicographical_constraint): Remove
6520 (build_lexicographical_constraint): Adjust call to
6521 ppl_powerset_is_empty.
6522 (dependence_polyhedron): Same.
6523 (graphite_legal_transform_dr): Same.
6524 (graphite_carried_dependence_level_k): Same.
6525 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
6527 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
6529 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6531 * graphite-sese-to-poly.c
6532 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
6533 (close_phi_written_to_memory): New.
6534 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
6537 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6539 * doc/install.texi: Update the expected version number of PPL to 0.11.
6540 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
6541 #if PPL_VERSION_MINOR < 11.
6543 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6545 * graphite-dependences.c: Include graphite-cloog-util.h.
6546 (new_poly_ddr): Inlined into dependence_polyhedron.
6547 (free_poly_ddr): Moved close by new_poly_ddr.
6548 (dependence_polyhedron_1): Renamed dependence_polyhedron.
6549 Early return NULL when ppl_powerset_is_empty returns true.
6550 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
6551 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
6552 (graphite_legal_transform_dr): Call new_poly_ddr.
6553 (graphite_carried_dependence_level_k): Same.
6554 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
6555 (dot_transformed_deps_stmt_1): Removed.
6556 (dot_deps_stmt_1): Call dot_deps_stmt_2.
6557 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
6558 (dot_deps_1): Call dot_deps_2.
6559 * Makefile.in (graphite-dependences.o): Add missing dependence on
6560 graphite-cloog-util.h.
6562 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6564 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
6565 (build_lexicographical_constraint): Same.
6566 (dependence_polyhedron_1): Same.
6567 (graphite_legal_transform_dr): Same.
6568 (graphite_carried_dependence_level_k): Same.
6569 * graphite-ppl.c (ppl_powerset_is_empty): New.
6570 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
6571 * tree-data-ref.c (dump_data_reference): Print the basic block index.
6573 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6575 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
6576 the "a followed by b" relation and document it.
6578 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6580 * graphite-dependences.c (build_lexicographical_constraint): Stop the
6581 iteration when the bag of constraints is empty.
6583 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6585 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
6587 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6589 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
6590 nest and two loop depths as parameters.
6591 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
6592 lst_perfect_nestify.
6594 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6596 * graphite-dependences.c (print_pddr): Call
6597 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
6599 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6601 * graphite-ppl.c (debug_gmp_value): New.
6602 * graphite-ppl.h (debug_gmp_value): Declared.
6604 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
6606 * doc/install.texi: Document availability of cloog-0.16.
6608 2011-01-25 Vladimir Kargov <kargov@gmail.com>
6610 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
6611 invalid postdominance info.
6613 2011-01-24 Jan Hubicka <jh@suse.cz>
6616 * doc/extend.texi (weak pragma): Drop claim that it must
6617 appear before definition.
6618 * varasm.c (merge_weak, declare_weak): Only sanity check
6619 that DECL is not output at a time it is declared weak.
6621 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
6623 * machmode.def: Fixed comments.
6625 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
6627 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
6629 2011-01-24 Paul Koning <ni1d@arrl.net>
6631 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
6634 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
6637 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
6638 (block_info): Add scanned and prev.
6639 (move_or_delete_vzeroupper_2): Return if the basic block
6640 has been scanned and the upper 128bit state is unchanged
6642 (move_or_delete_vzeroupper_1): Return true if the exit
6644 (move_or_delete_vzeroupper): Visit basic blocks using the
6645 work-list based algorithm based on vt_find_locations in
6648 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
6650 2011-01-24 Nick Clifton <nickc@redhat.com>
6652 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
6653 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
6654 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
6655 then define __v850e1__.
6656 * doc/invoke.texi: Document -mv850es.
6658 2011-01-24 Richard Henderson <rth@redhat.com>
6660 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
6661 compound unordered comparisons.
6662 * config/rx/rx.c (rx_split_fp_compare): Remove.
6663 * config/rx/rx-protos.h: Update.
6664 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
6665 (cbranchsf4): Don't call rx_split_fp_compare.
6666 (*cbranchsf4): Use rx_split_cbranch.
6667 (*cmpsf): Don't accept "i" constraint.
6668 (*conditional_branch): Only valid after reload.
6669 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
6671 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6674 * config/rs6000/altivec.md (vector constant splitters): Add
6675 support for creating vector single precision constants if -mvsx is
6676 used and we would create the constant using Altivec primitives.
6678 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
6679 Richard Sandiford <rdsandiford@googlemail.com>
6681 PR rtl-optimization/47166
6682 * reload1.c (emit_reload_insns): Disable the spill_reg_store
6683 mechanism for PRE_MODIFY and POST_MODIFY.
6684 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
6687 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
6689 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
6691 2011-01-22 Jan Hubicka <jh@suse.cz>
6694 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
6696 2011-01-22 Jan Hubicka <jh@suse.cz>
6698 PR tree-optimization/43884
6700 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
6701 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
6703 2011-01-22 Anatoly Sokolov <aesok@post.ru>
6705 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6706 * config/s390/s390.c (s390_register_move_cost,
6707 s390_memory_move_cost): New.
6708 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
6710 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6713 * except.c (sjlj_assign_call_site_values): Move setting the
6714 crtl->uses_eh_lsda flag to ...
6715 (sjlj_mark_call_sites): ... here.
6716 (sjlj_emit_function_enter): Support NULL dispatch label.
6717 (sjlj_build_landing_pads): In a function with no landing pads
6718 that still has must-not-throw regions, generate code to register
6719 a personality function with empty LSDA.
6721 2011-01-21 Richard Henderson <rth@redhat.com>
6723 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
6725 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
6727 * compare-elim.c: New file.
6728 * Makefile.in (OBJS-common): Add it.
6729 (compare-elim.o): New.
6730 * common.opt (fcompare-elim): New.
6731 * opts.c (default_options_table): Add OPT_fcompare_elim.
6732 * tree-pass.h (pass_compare_elim_after_reload): New.
6733 * passes.c (init_optimization_passes): Add it.
6734 * recog.h: Protect against re-inclusion.
6735 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
6736 * doc/invoke.texi (-fcompare-elim): Document it.
6737 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
6738 * doc/tm.texi: Rebuild.
6740 2011-01-22 Nick Clifton <nickc@redhat.com>
6742 * config/rx/rx.md (cstoresf4): Pass comparison operator to
6743 rx_split_fp_compare.
6745 2011-01-22 Nick Clifton <nickc@redhat.com>
6747 * config/rx/rx.md (UNSPEC_CONST): New.
6748 (deallocate_and_return): Wrap the amount popped off the stack in
6749 an UNSPEC_CONST in order to stop it being rejected by
6750 -mmax-constant-size.
6751 (pop_and_return): Add a "(return)" rtx.
6752 (call): Drop the immediate operand.
6753 (call_internal): Likewise.
6754 (call_value): Likewise.
6755 (call_value_internal): Likewise.
6756 (sibcall_internal): Likewise.
6757 (sibcall_value_internal): Likewise.
6758 (sibcall): Likewise. Generate an explicit call using
6760 (sibcall_value): Likewise.
6761 (mov<>): FAIL if a constant operand is not legitimate.
6762 (addsi3_unpsec): New pattern.
6764 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
6765 (ok_for_max_constant): New function.
6766 (gen_safe_add): New function.
6767 (rx_expand_prologue): Use gen_safe_add.
6768 (rx_expand_epilogue): Likewise.
6769 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
6772 2011-01-21 Jeff Law <law@redhat.com>
6774 PR tree-optimization/47053
6775 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
6776 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
6777 statements are deleted.
6778 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
6779 is nonempty, then purge dead edges and cleanup the CFG.
6781 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
6785 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
6787 * tree-dfa.c (create_var_ann): Mark variable as used.
6789 2011-01-21 Jakub Jelinek <jakub@redhat.com>
6792 * except.c (convert_to_eh_region_ranges): Emit queued no-region
6793 notes from other section in hot/cold partitioning even if
6794 last_action is -3. Increment call_site_base.
6796 PR rtl-optimization/47366
6797 * fwprop.c (forward_propagate_into): Return bool. If
6798 any changes are made, -fnon-call-exceptions is used and
6799 REG_EH_REGION note is present, call purge_dead_edges
6800 and return true if it purged anything.
6801 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
6802 any EH edges were purged.
6804 2011-01-21 Jeff Law <law@redhat.com>
6806 PR rtl-optimization/41619
6807 * caller-save.c (setup_save_areas): Break out code to determine
6808 which hard regs are live across calls by examining the reload chains
6809 so that it is always used.
6810 Eliminate code which checked REG_N_CALLS_CROSSED.
6812 2011-01-21 Jakub Jelinek <jakub@redhat.com>
6814 PR tree-optimization/47355
6815 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
6816 NOP has non-debug uses beyond PHIs in new_bb.
6818 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
6821 * cfgexpand.c (account_used_vars_for_block): Only account vars
6822 that are annotated as used.
6823 (estimated_stack_frame_size): Don't set TREE_USED.
6824 * tree-dfa.c (create_var_ann): Mark variable as used.
6826 2011-01-21 Richard Guenther <rguenther@suse.de>
6829 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
6831 2011-01-21 Richard Guenther <rguenther@suse.de>
6833 PR tree-optimization/47365
6834 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
6835 (vn_reference_lookup_pieces): Adjust.
6836 (vn_reference_lookup): Likewise.
6837 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
6838 (vn_reference_lookup_3): Only look through kills if in
6839 VN_WALKREWRITE mode.
6840 (vn_reference_lookup_pieces): Adjust.
6841 (vn_reference_lookup): Likewise.
6842 (visit_reference_op_load): Likewise.
6843 (visit_reference_op_store): Likewise.
6844 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
6845 (compute_avail): Likewise.
6846 (eliminate): Likewise.
6848 2011-01-21 Jakub Jelinek <jakub@redhat.com>
6850 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
6851 DECL_IGNORED_P non-reg vars if they are used.
6853 PR tree-optimization/47391
6854 * varpool.c (const_value_known_p): Return false if
6857 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
6860 * config/i386/i386.c (ix86_local_alignment): Handle
6861 case for va_list_type_node is nil.
6862 (ix86_canonical_va_list_type): Likewise.
6864 2011-01-21 Alan Modra <amodra@gmail.com>
6866 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
6867 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
6869 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6871 * config/arm/arm.md (define_attr type): Rename f_load
6872 and f_store to f_fpa_load and f_fpa_store. Update.
6873 (write_conflict): Deal with rename fallout.
6874 (*push_fp_multi): Likewise.
6875 * config/arm/fpa.md (f_load): Use f_fpa_load.
6876 (f_store): Use f_fpa_store.
6877 (*movsf_fpa): Likewise.
6878 (*movdf_fpa): Likewise.
6879 (*movxf_fpa): Likewise.
6880 (*thumb2_movsf_fpa): Likewise.
6881 (*thumb2_movdf_fpa): Likewise.
6882 (*thumb2_movxf_fpa): Likewise.
6883 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
6884 f_loadd and f_stored.
6885 (*thumb2_movdi_vfp): Likewise.
6886 (*thumb2_movsf_vfp): Fix attribute to f_loads.
6887 (*thumb2_movsi_vfp): Likewise.
6888 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
6889 Use f_loads instead of f_load.
6890 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
6892 2011-01-20 Anatoly Sokolov <aesok@post.ru>
6894 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6895 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
6896 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6897 (xtensa_mode_dependent_address_p): New function.
6898 (constantpool_address_p): Make static. Change return type to bool.
6899 Change argument type to const_rtx. Use CONST_INT_P predicate.
6901 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
6904 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
6906 2011-01-20 Jakub Jelinek <jakub@redhat.com>
6909 * cfgexpand.c (expand_debug_expr): Instead of generating
6910 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
6913 2011-01-20 Richard Guenther <rguenther@suse.de>
6916 * tree-inline.c (remap_gimple_op_r): Recurse manually for
6917 the pointer operand of MEM_REFs.
6919 2011-01-20 Jakub Jelinek <jakub@redhat.com>
6921 PR tree-optimization/46130
6922 * ipa-split.c (consider_split): If return_bb contains non-virtual
6923 PHIs other than for retval or if split_function would not adjust it,
6926 2011-01-20 Richard Guenther <rguenther@suse.de>
6928 PR tree-optimization/47167
6929 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
6930 Revert previous change, only avoid enumeral type changes.
6932 2011-01-19 Mike Stump <mikestump@comcast.net>
6934 * doc/tm.texi.in (BRANCH_COST): Englishify.
6935 * doc/tm.texi (BRANCH_COST): Likewise.
6937 2011-01-19 Dodji Seketeli <dodji@redhat.com>
6940 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
6941 (gen_scheduled_generic_parms_dies): New functions.
6942 (gen_struct_or_union_type_die): Schedule template parameters DIEs
6943 generation for the end of CU compilation.
6944 (dwarf2out_finish): Generate template parameters DIEs here.
6946 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
6949 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
6950 debug bind stmt on merge edges.
6952 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
6956 * function.c (instantiate_expr): Instantiate incoming rtl of
6957 implicit arguments, and recurse on VALUE_EXPRs.
6958 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
6959 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
6961 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
6963 * c-parser.c (c_parser_for_statement): Initialize
6964 collection_expression.
6966 2011-01-19 Joseph Myers <joseph@codesourcery.com>
6968 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
6970 2011-01-19 Joseph Myers <joseph@codesourcery.com>
6972 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
6973 (LINK_SHLIB_SPEC): Don't use %(link_path).
6974 (SUBTARGET_EXTRA_SPECS): Remove link_path.
6976 2011-01-19 Joseph Myers <joseph@codesourcery.com>
6978 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
6979 (NO_SHARED_LIB_SUPPORT): Remove.
6980 (LINK_SHLIB_SPEC): Remove one conditional definition.
6982 2011-01-19 Joseph Myers <joseph@codesourcery.com>
6984 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
6986 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
6987 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
6988 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
6989 %{call_shared} and conditionals on these options not being passed.
6990 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
6993 2011-01-19 Jakub Jelinek <jakub@redhat.com>
6995 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
6998 * ipa-split.c: Spelling fixes.
7000 2011-01-19 Richard Henderson <rth@redhat.com>
7002 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
7003 (*mulsi3): Likewise.
7005 * longlong.h [__mn10300__] (count_leading_zeros): New.
7006 [__mn10300__] (umul_ppmm, smul_ppmm): New.
7007 [__mn10300__] (add_ssaaaa, subddmmss): New.
7008 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
7009 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
7011 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7013 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
7015 2011-01-19 Richard Henderson <rth@redhat.com>
7017 * config/mn10300/mn10300.md (addsi3_flags): New.
7018 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
7019 (subsi3_flags, subc_internal, subdi3): New.
7020 (subdi3_internal, *subdi3_degenerate): New.
7021 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
7023 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
7024 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
7025 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
7026 * config/mn10300/mn10300-protos.h: Update.
7027 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
7028 (return_ret): Likewise. Rename from return_internal_regs.
7029 (return_internal): Remove.
7031 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
7032 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
7033 (mn10300_legitimate_constant_p): Likewise.
7034 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
7035 (mn10300_frame_size): New.
7036 (mn10300_expand_prologue): Use it.
7037 (mn10300_expand_epilogue): Likewise.
7038 (mn10300_initial_offset): Likewise.
7039 * config/mn10300/mn10300-protos.h: Update.
7040 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
7041 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
7042 (prologue, epilogue, return_internal): Tidy output code.
7043 (mn10300_store_multiple_operation, return): Likewise.
7044 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
7045 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
7046 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
7047 (load_pic, am33_load_pic): New.
7048 (mn10300_load_pic0, mn10300_load_pic1): New.
7050 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
7051 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
7052 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
7053 (cc_flags_for_mode, cc_flags_for_code): New.
7054 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
7055 overflow flag is not valid. Validate that the flags we need
7056 for the comparison are valid.
7057 (mn10300_output_cmp): Remove.
7058 (mn10300_output_add): New.
7059 (mn10300_select_cc_mode): Use cc_flags_for_code.
7060 (mn10300_split_cbranch): New.
7061 (mn10300_match_ccmode): New.
7062 (mn10300_split_and_operand_count): New.
7063 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
7065 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
7066 (addsi3): ... here. Use mn10300_output_add.
7067 (*addsi3_flags): New.
7068 (*am33_subsi3, *mn10300_subsi3): Merge...
7069 (subsi3): ... here. Use attribute isa.
7070 (*subsi3_flags): New.
7071 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
7073 (*am33_andsi3, *mn10300_andsi3): Merge...
7075 (*andsi3_flags): New.
7076 (andsi3 splitters): New.
7077 (*am33_iorsi3, *mn10300_iorsi3): Merge...
7079 (*iorsi3_flags): New.
7080 (*am33_xorsi3, *mn10300_xorsi3): Merge...
7082 (*xorsi3_flags): New.
7083 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
7084 (one_cmplsi2): ... here.
7085 (*one_cmplsi2_flags): New.
7086 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
7087 instead of "dax" in constraints. Use mn10300_split_cbranch.
7088 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
7089 use matching constraints to eliminate a self-comparison.
7090 (*integer_conditional_branch): Rename from integer_conditional_branch.
7091 Use int_mode_flags to match CC_REG.
7092 (*cbranchsi4_btst, *btstsi): New.
7093 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
7094 mn10300_split_cbranch.
7095 (*am33_cmpsf): Rename from am33_cmpsf.
7096 (*float_conditional_branch): Rename from float_conditional_branch.
7097 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
7098 (zero_extendqisi2): ... here.
7099 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
7100 (zero_extendhisi2): ... here.
7101 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
7102 (extendqisi2): ... here.
7103 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
7104 (extendhisi2): ... here.
7105 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
7106 (ashlsi3): ... here.
7107 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
7108 (lshrsi3): ... here.
7109 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
7110 (ashrsi3): ... here.
7111 (consecutive add peephole): Remove.
7112 * config/mn10300/predicates.md (label_ref_operand): New.
7113 (int_mode_flags): New.
7114 (CCZN_comparison_operator): New.
7116 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
7117 (throughput_42_latency_43): New reservation.
7118 (mulsidi3, umulsidi3): New expanders.
7119 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
7120 the MDR register to allocation; separately allocate the low and
7121 high parts of the DImode result.
7122 (umulsidi3_internal): Similarly.
7123 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
7124 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
7125 (udivsi3, umodsi3): Remove.
7126 (udivmodsi4, divmodsi4): New expanders.
7127 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
7128 (*divmodsi4): Simiarly.
7129 (ext_internal): New.
7131 * config/mn10300/constraints.md ("z"): New constraint.
7132 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
7133 (FIXED_REGISTERS): Don't fix MDR.
7134 (CALL_USED_REGSITERS): Reformat nicely.
7135 (REG_ALLOC_ORDER): Add MDR.
7136 (enum regclass): Add MDR_REGS.
7137 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
7138 (IRA_COVER_CLASSES): Add MDR_REGS.
7139 (REGNO_REG_CLASS): Handle MDR_REG.
7140 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
7141 (mn10300_register_move_cost): Likewise.
7142 * config/mn10300/mn10300.md (MDR_REG): New.
7143 (*movsi_internal): Handle moves to/from MDR_REGS.
7145 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
7147 (mn10300_secondary_reload): Tidy combination reload classes.
7148 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
7149 addresses for AM33. Allow symbolic offsets for reg+imm.
7150 (mn10300_regno_in_class_p): New.
7151 (mn10300_legitimize_reload_address): New.
7152 * config/mn10300/mn10300.h (enum reg_class): Remove
7153 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
7154 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
7156 (REG_CLASS_NAMES): Update to match.
7157 (REG_CLASS_CONTENTS): Likewise.
7158 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
7159 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
7160 (REGNO_IN_RANGE_P): Remove.
7161 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
7162 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
7163 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
7164 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
7165 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
7166 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
7167 (REGNO_GENERAL_P): New.
7168 (HAVE_POST_MODIFY_DISP): New.
7169 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
7170 (LEGITIMIZE_RELOAD_ADDRESS): New.
7171 * config/mn10300/mn10300-protos.h: Update.
7173 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
7174 DATA_REGS for AM33 stack-pointer destination.
7175 (mn10300_preferred_output_reload_class): Likewise.
7176 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
7177 into a form appropriate for ...
7178 (TARGET_SECONDARY_RELOAD): New.
7179 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
7180 * config/mn10300/mn10300-protos.h: Update.
7181 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
7182 reload_insi; use the "A" constraint for the scratch; handle AM33
7183 moves of sp to non-address registers.
7185 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
7186 (*movqi_internal): ... here.
7187 (*am33_movhi, *mn10300_movhi): Merge into...
7188 (*movhi_internal): ... here.
7189 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
7190 as the source/destination of moves from/to SP.
7191 (movsf): Only allow for AM33-2.
7192 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
7193 any integer constant constraint. Only allow for AM33-2. Tidy
7194 all of the alternative outputs.
7195 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
7196 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
7198 (udivsi3, umodsi3): New patterns for MN103 only.
7200 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
7202 * doc/tm.texi.in: Spell out that a lack of register class unions
7204 * doc/tm.texi: Regenerate.
7206 2011-01-19 Jakub Jelinek <jakub@redhat.com>
7208 PR rtl-optimization/47337
7209 * dce.c (check_argument_store): New function.
7210 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
7212 PR tree-optimization/47290
7213 * tree-eh.c (infinite_empty_loop_p): New function.
7214 (cleanup_empty_eh): Use it.
7216 2011-01-18 Steve Ellcey <sje@cup.hp.com>
7219 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
7220 (a64_expand_widen_sum): Ditto.
7221 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
7222 (vec_extract_evenodd_help): Ditto.
7223 (vec_extract_evenv4hi): Ditto.
7224 (vec_extract_oddv4hi): Ditto.
7225 (vec_extract_evenv2si): Ditto.
7226 (vec_extract_oddv2si): Ditto.
7227 (vec_extract_evenv2sf): Ditto.
7228 (vec_extract_oddv2sf): Ditto.
7229 (vec_pack_trunc_v4hi: Ditto.
7230 (vec_pack_trunc_v2si): Ditto.
7231 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
7232 (vec_interleave_highv8qi): Ditto.
7234 (vec_extract_oddv8qi): Ditto.
7235 (vec_interleave_lowv4hi): Ditto.
7236 (vec_interleave_highv4hi): Ditto.
7237 (vec_interleave_lowv2si): Ditto.
7238 (vec_interleave_highv2si): Ditto.
7240 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7242 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
7243 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
7244 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
7245 (pa_c_mode_for_suffix): New.
7246 (TARGET_EXPAND_BUILTIN): Define.
7247 (TARGET_C_MODE_FOR_SUFFIX): Define.
7248 (pa_builtins): Define.
7249 (pa_init_builtins): Register __float128 type and init new support
7251 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
7252 * config/pa/quadlib.c (_U_Qfcopysign): New.
7254 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
7257 * explow.c (allocate_dynamic_stack_space): Do not assume more than
7258 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
7261 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7263 PR tree-optimization/47179
7264 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
7265 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
7267 2011-01-18 Richard Guenther <rguenther@suse.de>
7269 PR rtl-optimization/47216
7270 * emit-rtl.c: Include tree-flow.h.
7271 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
7272 of replicating it with different semantics.
7273 * Makefile.in (emit-rtl.o): Adjust.
7275 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7277 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
7278 (cortex_a9_dp): Handle neon types correctly.
7280 2011-01-18 Jakub Jelinek <jakub@redhat.com>
7282 PR rtl-optimization/47299
7283 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
7284 subtarget. Use normal multiplication if both operands are constants.
7285 * expmed.c (expand_widening_mult): Don't try to optimize constant
7286 multiplication if op0 has VOIDmode. Convert op1 constant to mode
7289 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7291 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
7292 spacing after 'e.g.', typos, comma, hyphenation.
7294 2011-01-17 Richard Henderson <rth@redhat.com>
7296 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
7297 (rx_restricted_mem_operand): New.
7298 (rx_shift_operand): Use register_operand.
7299 (rx_source_operand, rx_compare_operand): Likewise.
7300 * config/rx/rx.md (addsi3_flags): New expander.
7301 (adddi3): Rewrite as expander.
7302 (adc_internal, *adc_flags, adddi3_internal): New patterns.
7303 (subsi3_flags): New expander.
7304 (subdi3): Rewrite as expander.
7305 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
7307 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
7308 (rx_init_builtins): Remove sat builtin.
7309 (rx_expand_builtin): Likewise.
7310 * config/rx/rx.md (ssaddsi3): New.
7311 (*sat): Rename from sat. Represent the CC_REG input.
7313 * config/rx/predicates.md (rshift_operator): New.
7314 * config/rx/rx.c (rx_expand_insv): Remove.
7315 * config/rx/rx-protos.h: Update.
7316 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
7317 operand to the canonical position.
7318 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
7319 (*bitclr, *bitclr_in_memory): Similarly.
7320 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
7321 (insv): Retain the zero_extract in the expansion.
7323 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
7324 (bswaphi2, bitinvert, revw): Likewise.
7326 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
7327 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
7328 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
7329 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
7330 (bitset, bitset_in_memory): Likewise.
7331 (bitinvert, bitinvert_in_memory): Likewise.
7332 (bitclr, bitclr_in_memory): Likewise.
7333 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
7334 (rx_strend, rx_cmpstrn): Likewise.
7335 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
7336 (bitop peep2 patterns): Remove.
7338 * config/rx/rx.c (rx_match_ccmode): New.
7339 * config/rx/rx-protos.h: Update.
7340 * config/rx/rx.md (abssi2): Clobber, don't set flags.
7341 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
7342 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
7343 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
7344 (fix_truncsfsi2, floatsisf2): Likewise.
7345 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
7346 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
7347 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
7348 (*subsi3_flags, *xorsi3_flags): New.
7350 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
7352 * config/rx/rx.c (rx_print_operand): Remove workaround for
7353 unsplit comparison operations.
7355 * config/rx/rx.md (movsicc): Split after reload.
7356 (*movsicc): Merge *movsieq and *movsine via match_operator.
7357 (*stcc): New pattern.
7359 * config/rx/rx.c (rx_float_compare_mode): Remove.
7360 * config/rx/rx.h (rx_float_compare_mode): Remove.
7361 * config/rx/rx.md (cstoresi4): Split after reload.
7362 (*sccc): New pattern.
7364 * config/rx/predicates.md (label_ref_operand): New.
7365 (rx_z_comparison_operator): New.
7366 (rx_zs_comparison_operator): New.
7367 (rx_fp_comparison_operator): New.
7368 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
7369 Validate that the flags are set properly for the comparison.
7370 (rx_gen_cond_branch_template): Remove.
7371 (rx_cc_modes_compatible): Remove.
7372 (mode_from_flags): New.
7373 (flags_from_code): Rename from flags_needed_for_conditional.
7374 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
7375 (rx_select_cc_mode): Likewise.
7376 (rx_split_fp_compare): New.
7377 (rx_split_cbranch): New.
7378 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
7379 (*cbranchsi4): Use match_operator and rx_split_cbranch.
7380 (*cbranchsf4): Similarly.
7381 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
7382 match_operator and rx_split_cbranch.
7383 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
7384 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
7385 (*cmpsi): Rename from cmpsi.
7386 (*tstsi): Rename from tstsi.
7387 (*cmpsf): Rename from cmpsf; use CC_Fmode.
7388 (*conditional_branch): Rename from conditional_branch.
7389 (*reveresed_conditional_branch): Remove.
7390 (b<code>): Remove expander.
7391 * config/rx/rx-protos.h: Update.
7393 * config/rx/rx.c (rx_compare_redundant): Remove.
7394 * config/rx/rx.md (cmpsi): Don't use it.
7395 * config/rx/rx-protos.h: Update.
7397 * config/rx/rx-modes.def (CC_F): New mode.
7398 * config/rx/rx.c (rx_select_cc_mode): New.
7399 * config/rx/rx.h (SELECT_CC_MODE): Use it.
7400 * config/rx/rx-protos.h: Update.
7402 2011-01-17 Richard Henderson <rth@redhat.com>
7404 * except.c (dump_eh_tree): Fix stray ; after for statement.
7406 2011-01-17 Richard Guenther <rguenther@suse.de>
7408 PR tree-optimization/47313
7409 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
7410 handling before copying the body. Properly deal with
7411 by-reference result in SSA form.
7413 2011-01-17 Ian Lance Taylor <iant@google.com>
7416 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
7417 (struct_value_alias_set): Don't define.
7418 (sparc_option_override): Don't set sparc_sr_alias_set and
7419 struct_value_alias_set.
7420 (save_or_restore_regs): Use gen_frame_mem rather than calling
7422 (sparc_struct_value_rtx): Likewise.
7424 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
7427 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
7428 (_mm_maskstore_pd): Likewise.
7429 (_mm_maskload_ps): Likewise.
7430 (_mm_maskstore_ps): Likewise.
7431 (_mm256_maskload_pd): Change mask to __m256i.
7432 (_mm256_maskstore_pd): Likewise.
7433 (_mm256_maskload_ps): Likewise.
7434 (_mm256_maskstore_ps): Likewise.
7436 * config/i386/i386-builtin-types.def: Updated.
7437 (ix86_expand_special_args_builtin): Likewise.
7439 * config/i386/i386.c (bdesc_special_args): Update
7440 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
7441 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
7442 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
7443 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
7445 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
7446 Use <avxpermvecmode> on mask register.
7447 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
7449 2011-01-17 Olivier Hainque <hainque@adacore.com>
7450 Michael Haubenwallner <michael.haubenwallner@salomon.at>
7451 Eric Botcazou <ebotcazou@adacore.com>
7454 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
7455 if <= USHRT_MAX in 32-bit mode.
7457 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7459 * doc/install.texi (Configuration, Specific): Wrap long
7460 lines in examples. Allow line wrapping in long options
7461 and URLs where beneficial for PDF output.
7463 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
7465 * config/mips/mips.c (mips_classify_symbol): Don't return
7466 SYMBOL_PC_RELATIVE for nonlocal labels.
7468 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
7470 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
7472 2011-01-15 Jan Hubicka <jh@suse.cz>
7474 PR tree-optimization/47276
7475 * ipa.c (function_and_variable_visibility): Do not try to mark alias
7476 declarations as needed.
7478 2011-01-15 Martin Jambor <mjambor@suse.cz>
7480 * common.opt (fdevirtualize): New flag.
7481 * doc/invoke.texi (Option Summary): Document it.
7482 * opts.c (default_options_table): Add devirtualize flag.
7483 * ipa-prop.c (detect_type_change): Return immediately if
7484 devirtualize flag is not set.
7485 (detect_type_change_ssa): Likewise.
7486 (compute_known_type_jump_func): Likewise.
7487 (ipa_analyze_virtual_call_uses): Likewise.
7489 2011-01-14 Martin Jambor <mjambor@suse.cz>
7491 PR tree-optimization/45934
7492 PR tree-optimization/46302
7493 * ipa-prop.c (type_change_info): New type.
7494 (stmt_may_be_vtbl_ptr_store): New function.
7495 (check_stmt_for_type_change): Likewise.
7496 (detect_type_change): Likewise.
7497 (detect_type_change_ssa): Likewise.
7498 (compute_complex_assign_jump_func): Check for dynamic type change.
7499 (compute_complex_ancestor_jump_func): Likewise.
7500 (compute_known_type_jump_func): Likewise.
7501 (compute_scalar_jump_functions): Likewise.
7502 (ipa_analyze_virtual_call_uses): Likewise.
7503 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
7505 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7507 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
7508 * config/i386/i386.opt (msse5): New Alias.
7510 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7512 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
7513 * config/sparc/linux64.h (CC1_SPEC): Likewise.
7514 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
7515 * config/sparc/sparc.h (CC1_SPEC): Likewise.
7517 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7519 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
7521 * config/sparc/linux64.h (CC1_SPEC): Likewise.
7522 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
7523 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
7524 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
7526 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
7528 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7530 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
7532 2011-01-14 Mike Stump <mikestump@comcast.net>
7534 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
7535 * config/fr30/fr30.md: Likweise
7536 (movsi_push): Likewise.
7537 (movsi_pop): Likewise.
7538 (enter_func): Likewise.
7539 * config/moxie/moxie.md (movsi_push): Likewise.
7540 (movsi_pop): Likewise.
7542 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7544 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
7545 %{no_archive} %{exact_version}.
7546 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
7547 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
7548 %{no_archive} %{exact_version}.
7549 * config/mips/openbsd.h (LINK_SPEC): Likewise.
7550 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
7551 * config/mips/vxworks.h: Likewise.
7553 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7555 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
7557 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7559 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
7560 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
7562 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7564 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
7567 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7569 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
7571 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
7572 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
7574 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
7575 Don't handle -shlib.
7577 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7579 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
7580 (CC1_SPEC): Don't handle -profile.
7582 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7584 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
7585 * config/mips/mips.h (CC1_SPEC): Likewise.
7587 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7589 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
7590 * config/mips/mips.h (CC1_SPEC): Likewise.
7592 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7594 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
7595 * config/m32r/linux.h (LINK_SPEC): Likewise.
7596 * config/mips/linux.h (LINK_SPEC): Likewise.
7597 * config/mips/linux64.h (LINK_SPEC): Likewise.
7598 * config/sparc/linux.h (LINK_SPEC): Likewise.
7599 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
7600 LINK_SPEC): Likewise.
7601 * config/xtensa/linux.h (LINK_SPEC): Likewise.
7603 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7605 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
7607 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
7609 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7611 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
7612 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
7614 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7616 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
7618 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7620 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
7621 supports -Bstatic/-Bdynamic.
7622 * configure: Regenerate.
7624 2011-01-14 Jan Hubicka <jh@suse.cz>
7625 Jack Howarth <howarth@bromo.med.uc.edu>
7628 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
7629 when checking debug_info_level. Test write_symbols instead of
7630 debug_hooks->var_location when setting flag_var_tracking_uninit.
7632 2011-01-14 Richard Guenther <rguenther@suse.de>
7634 PR tree-optimization/47179
7635 * target.def (ref_may_alias_errno): New target hook.
7636 * targhooks.h (default_ref_may_alias_errno): Declare.
7637 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
7638 (default_ref_may_alias_errno): New function.
7639 * target.h (struct ao_ref_s): Declare.
7640 * tree-ssa-alias.c: Include target.h.
7641 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
7642 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
7643 (targhooks.o): Likewise.
7644 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
7645 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
7647 2011-01-14 Richard Guenther <rguenther@suse.de>
7649 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
7651 2011-01-14 Richard Guenther <rguenther@suse.de>
7653 PR tree-optimization/47280
7654 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
7656 (tree_ssa_forward_propagate_single_use_vars): Deal with
7657 CFG changes from associate_plusminus.
7659 2011-01-14 Richard Guenther <rguenther@suse.de>
7663 2011-01-11 Richard Guenther <rguenther@suse.de>
7665 PR tree-optimization/46076
7666 * tree-ssa.c (useless_type_conversion_p): Conversions from
7667 unprototyped to empty argument list function types are useless.
7669 2011-01-14 Richard Guenther <rguenther@suse.de>
7671 PR tree-optimization/47286
7672 * tree-ssa-structalias.c (new_var_info): Register variables are global.
7674 2011-01-14 Martin Jambor <mjambor@suse.cz>
7677 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
7679 2011-01-13 Anatoly Sokolov <aesok@post.ru>
7681 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
7682 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7683 * config/xtensa/xtensa.c (xtensa_libcall_value,
7684 xtensa_function_value_regno_p): New functions.
7685 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
7687 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
7690 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
7692 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
7693 New function prototype.
7694 * config/i386/winnt.c (i386_pe_assemble_visibility):
7695 Warn only if attribute was specified by user.
7697 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
7700 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
7702 (floatunsdidf2_fcfidu): Ditto.
7704 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7706 * config/s390/s390.c (print_operand_address): Replace 'error' with
7707 'output_operand_lossage'.
7708 (print_operand): Likewise.
7710 2011-01-13 Jeff Law <law@redhat.com>
7712 PR rtl-optimization/39077
7713 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
7714 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
7715 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
7716 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
7717 * gcse.c (prune_insertions_deletions): New function.
7718 (compute_pre_data): Use it.
7720 2011-01-13 Dodji Seketeli <dodji@redhat.com>
7723 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
7725 (prune_unused_types_mark): Use it.
7727 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
7729 PR rtl-optimization/45352
7730 * sel-sched.c: Update copyright years.
7731 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
7732 in the advancing loop when we have issued issue_rate insns.
7734 2011-01-12 Richard Henderson <rth@redhat.com>
7736 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
7737 (TARGET_MD_ASM_CLOBBERS): New.
7739 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
7740 (TARGET_DELEGITIMIZE_ADDRESS): New.
7742 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
7743 (clzsi2, *bsch): New patterns.
7745 * config/mn10300/mn10300.md (INT): New mode iterator.
7746 (*mov<INT>_clr): New pattern, and peep2 to generate it.
7748 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
7749 flag_split_wide_types.
7751 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
7752 (mn10300_trampoline_init): Rewrite without a template, an immediate
7753 load and a direct branch.
7754 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
7756 2011-01-12 Anatoly Sokolov <aesok@post.ru>
7758 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7759 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
7760 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
7761 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7763 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
7766 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
7769 2011-01-12 Jan Hubicka <jh@suse.cz>
7772 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
7773 (PLUGIN_COND_CLOSE): New macro.
7774 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
7776 2011-01-12 Richard Guenther <rguenther@suse.de>
7779 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
7780 register variables in a MEM_REF.
7782 2011-01-12 Joseph Myers <joseph@codesourcery.com>
7784 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
7785 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
7786 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
7787 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7788 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7789 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
7790 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
7791 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
7792 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
7793 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
7794 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
7795 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
7796 * config/gnu-user.h: New. Copied from linux.h.
7797 (LINUX_TARGET_STARTFILE_SPEC): Rename to
7798 GNU_USER_TARGET_STARTFILE_SPEC.
7799 (LINUX_TARGET_ENDFILE_SPEC): Rename to
7800 GNU_USER_TARGET_ENDFILE_SPEC.
7801 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
7802 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
7803 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
7804 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
7805 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
7806 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
7807 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
7808 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
7809 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
7810 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
7811 * config/arm/linux-eabi.h (CC1_SPEC): Use
7812 GNU_USER_TARGET_CC1_SPEC.
7813 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
7814 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
7815 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
7816 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
7817 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
7818 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
7819 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
7820 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
7822 2011-01-12 Richard Guenther <rguenther@suse.de>
7825 * doc/invoke.texi (ffast-math): Document it is turned on
7828 2011-01-12 Jan Hubicka <jh@suse.cz>
7830 PR tree-optimization/47233
7831 * opts.c (common_handle_option): Disable ipa-reference with profile
7834 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
7836 * c-parser.c (c_parser_objc_at_property_declaration): Improved
7839 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
7841 * c-parser.c (c_lex_one_token): Updated and reindented some
7842 comments. No changes in code.
7844 2011-01-11 Ian Lance Taylor <iant@google.com>
7846 * godump.c (go_output_var): Don't output the variable if there is
7847 already a type with the same name.
7849 2011-01-11 Ian Lance Taylor <iant@google.com>
7851 * godump.c (go_format_type): Don't generate float80.
7853 2011-01-11 Richard Henderson <rth@redhat.com>
7855 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
7856 declaration. Rewrite for both speed and size.
7857 (mn10300_address_cost_1): Remove.
7858 (mn10300_register_move_cost): New.
7859 (mn10300_memory_move_cost): New.
7860 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
7861 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
7862 extensions, shifts, BSWAP, CLZ.
7863 (mn10300_wide_const_load_uses_clr): Remove.
7864 (TARGET_REGISTER_MOVE_COST): New.
7865 (TARGET_MEMORY_MOVE_COST): New.
7866 * config/mn10300/mn10300-protos.h: Update.
7867 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
7869 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
7870 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
7871 * config/mn10300/mn10300-protos.h: Update.
7872 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
7873 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
7874 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
7875 (*test_int_bitfield, *test_byte_bitfield): Remove.
7876 (*bit_test, *subreg_bit_test): Remove.
7877 * config/mn10300/predicates.md (const_8bit_operand): Remove.
7879 * config/mn10300/constraints.md ("c"): Rename from "A".
7880 ("A", "D"): New constraint letters.
7881 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
7882 (fmssf4, fnmasf4, fnmssf4): Likewise.
7884 * config/mn10300/mn10300.md (isa): New attribute.
7885 (enabled): New attribute.
7887 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
7888 (abssf2, negsf2): Define only for hardware fp.
7889 (sqrtsf2): Reformat.
7890 (addsf3, subsf3, mulsf3): Merge expander and insn.
7892 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
7893 (DEBUGGER_AUTO_OFFSET): Remove.
7894 (DEBUGGER_ARG_OFFSET): Remove.
7896 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
7897 Emit register stores with the same offsets as the hardware.
7898 (mn10300_store_multiple_operation): Don't check that the register
7899 save offsets are monotonic.
7900 * config/mn10300/mn10300-protos.h: Update.
7902 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
7904 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
7905 in terms of the value on the stack, not the MDR register.
7907 2011-01-11 Jan Hubicka <jh@suse.cz>
7911 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
7912 (symbol_alias_set_destroy, symbol_alias_set_contains,
7913 propagate_aliases_backward): Declare.
7914 * lto-streamer-out.c (struct sets): New sturcture.
7915 (trivally_defined_alias): New function.
7916 (output_alias_pair_p): Rewrite.
7917 (output_unreferenced_globals): Fix output of alias pairs.
7918 (produce_symtab): Likewise.
7919 * ipa.c (function_and_variable_visibility): Set weak alias destination
7921 * varasm.c (symbol_alias_set_t): Remove.
7922 (symbol_alias_set_destroy): Export.
7923 (propagate_aliases_forward, propagate_aliases_backward): New functions
7925 (compute_visible_aliases): ... this one; remove.
7926 (trivially_visible_alias): New
7927 (trivially_defined_alias): New.
7928 (remove_unreachable_alias_pairs): Rewrite.
7929 (finish_aliases_1): Reorganize code checking if alias is defined.
7930 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
7933 2011-01-11 Richard Guenther <rguenther@suse.de>
7935 PR tree-optimization/46076
7936 * tree-ssa.c (useless_type_conversion_p): Conversions from
7937 unprototyped to empty argument list function types are useless.
7939 2011-01-11 Richard Guenther <rguenther@suse.de>
7942 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
7943 volatile MEMs as MEM_READONLY_P.
7945 2011-01-11 Richard Guenther <rguenther@suse.de>
7947 PR tree-optimization/47239
7948 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
7950 2011-01-11 Jeff Law <law@redhat.com>
7952 PR tree-optimization/47086
7953 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
7954 IVs from statements that might throw.
7956 2011-01-10 Jan Hubicka <jh@suse.cz>
7959 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
7961 2011-01-10 Jan Hubicka <jh@suse.cz>
7964 * profile.c (read_profile_edge_counts): Ignore profile inconistency
7965 when correcting profile.
7967 2011-01-10 Jan Hubicka <jh@suse.cz>
7970 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
7972 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
7973 Restore DECL_FINI_PRIORITY.
7975 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7977 * doc/gimple.texi: Fix quoting of multi-word return values in
7978 @deftypefn statements. Ensure presence of return value. Wrap
7979 overlong @deftypefn lines.
7980 (is_gimple_operand, is_gimple_min_invariant_address): Remove
7981 descriptions of removed functions.
7982 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
7983 of multi-word return value in @deftypefn statement.
7985 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7987 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
7988 (Conditional Expressions, Logical Operators)
7989 (Statement and operand traversals): Do not indent smallexample
7990 code. Fix duplicate function argument in example.
7992 2011-01-10 Jeff Law <law@redhat.com>
7994 PR tree-optimization/47141
7995 * ipa-split.c (split_function): Handle case where we are
7996 returning a value and the return block has a virtual operand phi.
7998 2011-01-10 Jan Hubicka <jh@suse.cz>
8000 PR tree-optimization/47234
8001 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
8002 (pass_feedback_split_functions): Declare.
8003 * passes.c (init_optimization_passes): Add ipa-split as subpass of
8005 * ipa-split.c (gate_split_functions): Update comments; disable
8006 split-functions for profile_arc_flag and branch_probabilities.
8007 (gate_feedback_split_functions): New function.
8008 (execute_feedback_split_functions): New function.
8009 (pass_feedback_split_functions): New global var.
8011 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
8014 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
8015 calling gimple_call_set_cannot_inline.
8017 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
8019 * config/darwin-sections.def: Remove unused section.
8021 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
8024 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
8026 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
8029 * c-parser.c (c_parser_declaration_or_fndef): Improved
8032 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
8034 * config/i386/winnt.c (i386_pe_start_function): Make sure
8035 to switch back to function's section.
8037 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
8041 * plugin.c: Move include of dlfcn.h from here...
8042 * system.h: ... to here.
8044 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8046 * doc/cpp.texi (C++ Named Operators): Fix markup for header
8048 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
8049 two extra empty pages in PDF output.
8051 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
8054 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
8055 for error recovery purposes behave as if it was not specified so
8056 that the default type is usd.
8058 2011-01-07 Jan Hubicka <jh@suse.cz>
8060 PR tree-optmization/46469
8061 * ipa.c (function_and_variable_visibility): Clear needed flags on
8062 nodes with external decls; handle weakrefs merging correctly.
8064 2011-01-07 Joseph Myers <joseph@codesourcery.com>
8066 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
8069 2011-01-07 Jan Hubicka <jh@suse.cz>
8071 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
8072 and no longer claim that gold is required for linker plugin.
8073 * configure: Regenerate.
8074 * gcc.c (PLUGIN_COND): New macro.
8075 (LINK_COMMAND_SPEC): Use it.
8076 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
8077 * config.in (HAVE_LTO_PLUGIN): New.
8078 * configure.ac (--with-lto-plugin): New parameter; autodetect
8081 2011-01-07 Jan Hubicka <jh@suse.cz>
8083 PR tree-optimization/46367
8084 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
8085 when we can update original.
8086 (cgraph_mark_inline_edge): Sanity check.
8087 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
8089 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8091 * config/spu/spu.h (ASM_COMMENT_START): Define.
8093 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
8097 (SWITCH_KEEP_FOR_GCC): Likewise.
8098 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
8099 (do_spec_1): Handle "%>".
8101 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
8103 2011-01-07 Jakub Jelinek <jakub@redhat.com>
8106 * config/i386/i386.c (ix86_delegitimize_address): If
8107 simplify_gen_subreg fails, return orig_x.
8110 * value-prof.c (gimple_stringop_fixed_value): Handle
8111 lhs of the call properly.
8113 2011-01-07 Jan Hubicka <jh@suse.cz>
8116 * lto-opt.c (lto_reissue_options): Set flag_shlib.
8118 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
8120 * target.def (function_switched_text_sections): New hook.
8121 * doc/tm.texi: Regenerated.
8122 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
8123 * final.c (default_function_switched_text_sections): New.
8124 (final_scan_insn): Call function_switched_text_sections when a
8125 mid-function section change occurs.
8126 * output.h (default_function_switched_text_sections): Declare.
8127 * config/darwin-protos.h (darwin_function_switched_text_sections):
8129 * config/darwin.c (darwin_function_switched_text_sections): New.
8130 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
8132 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
8134 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
8135 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
8136 the secondary code fragment when outputting for DWARF == 2.
8138 2011-01-07 Anatoly Sokolov <aesok@post.ru>
8140 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8141 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
8143 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
8144 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8146 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
8149 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
8150 when it is not empty.
8152 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
8155 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
8156 (case ${target}): Add btver1.
8157 * config/i386/driver-i386.c (host_detect_local_cpu): Let
8158 -march=native recognize btver1 processors.
8159 * config/i386/i386-c.c (ix86_target_macros_internal): Add
8160 btver1 def_and_undef
8161 * config/i386/i386.c (struct processor_costs btver1_cost): New
8163 (m_BTVER1): New definition.
8164 (m_AMD_MULTIPLE): Includes m_BTVER1.
8165 (initial_ix86_tune_features): Add btver1 tune.
8166 (processor_target_table): Add btver1 entry.
8167 (static const char *const cpu_names): Add btver1 entry.
8168 (software_prefetching_beneficial_p): Add btver1.
8169 (ix86_option_override_internal): Add btver1 instruction sets.
8170 (ix86_issue_rate): Add btver1.
8171 (ix86_adjust_cost): Add btver1.
8172 * config/i386/i386.h (TARGET_BTVER1): New definition.
8173 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
8174 (enum processor_type): Add PROCESSOR_BTVER1.
8175 * config/i386/i386.md (define_attr "cpu"): Add btver1.
8177 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8180 * config/i386/i386.c (legitimize_tls_address)
8181 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
8182 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
8183 (tls_initial_exec_64_sun): New pattern.
8185 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
8187 * doc/invoke.texi (Overall Options): Improve wording and markup
8188 of the description of -wrapper.
8190 2011-01-06 Joseph Myers <joseph@codesourcery.com>
8192 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
8193 rdynamic, threads): New Driver options.
8195 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8198 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
8199 if coming from .tdata.
8200 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
8202 2011-01-06 Jan Hubicka <jh@suse.cz>
8205 * collect2.c (main): Do not enable LTOmode when plugin is active.
8207 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8210 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
8211 --version output if supported.
8212 * configure: Regenerate.
8214 2011-01-06 Joseph Myers <joseph@codesourcery.com>
8216 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
8219 2011-01-06 Jakub Jelinek <jakub@redhat.com>
8222 * c-convert.c (convert): When converting a complex expression
8223 other than COMPLEX_EXPR to a different complex type, ensure
8224 c_save_expr is called instead of save_expr, unless in_late_binary_op.
8225 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
8226 when converting COMPLEX_TYPE.
8228 2011-01-06 Ira Rosen <irar@il.ibm.com>
8230 PR tree-optimization/47139
8231 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
8232 only the last reduction value is used outside the loop. Update
8235 2011-01-05 Joseph Myers <joseph@codesourcery.com>
8237 * config/rtems.opt: New.
8238 * config.gcc (*-*-rtems*): Use rtems.opt.
8240 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
8242 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
8243 processors do not support 3DNow instructions.
8245 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8247 * config/spu/spu.c (spu_option_override): Set parameter
8248 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
8250 2011-01-05 Jan Hubicka <jh@suse.cz>
8252 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
8253 at the command line.
8255 2011-01-05 Martin Jambor <mjambor@suse.cz>
8258 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
8259 deltas on streamed outgoing edges.
8260 (output_node_opt_summary): Output info for outgoing edges only when
8261 the node is in new parameter set.
8262 (output_cgraph_opt_summary): New parameter set, passed to the two
8263 aforementioned functions. Update its forward declaration and its
8266 2011-01-05 Tom Tromey <tromey@redhat.com>
8268 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
8269 operator to c_finish_omp_atomic.
8270 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
8271 (build_unary_op): Update.
8272 (build_modify_expr): Update.
8273 (build_asm_expr): Update.
8275 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8277 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
8278 newly inserted insns.
8280 (spu_emit_branch_hint): Likewise.
8281 (insert_hbrp_for_ilb_runout): Likewise.
8282 (spu_machine_dependent_reorg): Call df_finish_pass after
8283 schedule_insns returns.
8285 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8287 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
8289 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
8291 PR tree-optimization/47005
8292 * tree-sra.c (struct access): Add 'non_addressable' bit.
8293 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
8294 (decide_one_param_reduction): Return 0 if the parameter is passed by
8295 reference and one of the accesses in the group is non_addressable.
8297 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
8299 PR tree-optimization/47056
8300 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
8301 (mark_load): Likewise. Handle FUNCTION_DECL specially.
8302 (mark_store): Likewise. Pass STMT to ipa_record_reference.
8304 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
8306 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
8307 initializer. Skip view conversions from aggregate types.
8309 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
8312 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
8314 2011-01-04 Philipp Thomas <pth@suse.de>
8316 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
8319 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8321 * function.c (thread_prologue_and_epilogue_insns): Do not crash
8322 on empty epilogue sequences.
8324 2011-01-04 Joseph Myers <joseph@codesourcery.com>
8326 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
8327 non-static): New Driver options.
8329 2011-01-04 Jie Zhang <jie@codesourcery.com>
8332 * gcc.c (default_compilers[]): Set combinable field to 0
8333 for all assembly languages.
8335 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
8337 * config/mips/loongson3a.md: New file.
8338 * config/mips/mips.md: Include loongson3a.md.
8339 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
8342 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
8345 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
8346 instead of convert_memory_address_addr_space on the base expression.
8348 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8350 * config/spu/spu.c (spu_option_override): Update error text
8351 for bad -march= / -mtune= values.
8353 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8355 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
8356 if branch-hint optimization will be performed.
8358 2011-01-03 Jakub Jelinek <jakub@redhat.com>
8360 PR tree-optimization/47148
8361 * ipa-split.c (split_function): Convert arguments to
8362 DECL_ARG_TYPE if possible.
8364 PR tree-optimization/47155
8365 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
8368 PR rtl-optimization/47157
8369 * combine.c (try_combine): If undobuf.other_insn becomes
8370 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
8371 and set *new_direct_jump_p too.
8373 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
8375 PR tree-optimization/47021
8376 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
8378 2011-01-03 Jakub Jelinek <jakub@redhat.com>
8380 * gcc.c (process_command): Update copyright notice dates.
8381 * gcov.c (print_version): Likewise.
8382 * gcov-dump.c (print_version): Likewise.
8383 * mips-tfile.c (main): Likewise.
8384 * mips-tdump.c (main): Likewise.
8386 2011-01-03 Martin Jambor <mjambor@suse.cz>
8388 PR tree-optimization/46801
8389 * tree-sra.c (type_internals_preclude_sra_p): Check whether
8390 aggregate fields start at byte boundary instead of the bit-field flag.
8392 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
8395 * gcc.c (main): Revert revision 168407.
8397 2011-01-03 Martin Jambor <mjambor@suse.cz>
8399 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
8401 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8403 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
8404 vector optab to expand vector/scalar shift, update gimple to vector.
8406 2011-01-03 Martin Jambor <mjambor@suse.cz>
8408 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
8411 2011-01-03 Martin Jambor <mjambor@suse.cz>
8413 PR tree-optimization/46984
8414 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
8416 (cgraph_create_indirect_edge): Fixed line length.
8417 (cgraph_indirect_call_info): Declare.
8418 (cgraph_make_edge_direct) Update declaration.
8419 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
8420 (cgraph_create_indirect_edge): Use it.
8421 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
8423 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
8424 the new thunk_delta representation.
8425 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
8427 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
8428 (ipa_read_indirect_edge_info): Likewise.
8429 * lto-cgraph.c (output_edge_opt_summary): New function.
8430 (output_node_opt_summary): Call it on all outgoing edges.
8431 (input_edge_opt_summary): New function.
8432 (input_node_opt_summary): Call it on all outgoing edges.
8434 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
8437 * gcc.c (main): Don't check have_o when settting combine_inputs.
8439 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
8441 * regrename.c: Add general comment describing the pass.
8442 (struct du_head): Remove 'length' field.
8443 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
8444 (regrename_optimize): Do not sort chains. Rework comments, add others.
8445 Force renaming to the preferred class (if any) in the first pass and do
8446 not consider registers that belong to it in the second pass.
8447 (create_new_chain): Do not set 'length' field.
8448 (scan_rtx_reg): Likewise.
8450 2011-01-02 Jakub Jelinek <jakub@redhat.com>
8452 PR tree-optimization/47140
8453 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
8454 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
8457 PR rtl-optimization/47028
8458 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
8459 parm_birth_insn instead of at the beginning of first bb.
8461 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
8463 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
8464 Remove the word "see" before "@pxref".
8465 * doc/rtl.texi: Remove the word "see" before "@pxref".
8467 2011-01-01 Jan Hubicka <jh@suse.cz>
8469 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
8472 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
8475 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
8478 Copyright (C) 2011 Free Software Foundation, Inc.
8480 Copying and distribution of this file, with or without modification,
8481 are permitted in any medium without royalty provided the copyright
8482 notice and this notice are preserved.