1 2011-04-03 Alan Modra <amodra@gmail.com>
3 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5 2011-04-03 Michael Matz <matz@suse.de>
7 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
9 * tree.h (tree_decl_non_common.vindex): Adjust comment.
11 2011-04-03 Michael Matz <matz@suse.de>
13 * cgraphbuild.c (record_reference): Canonicalize constructor
15 * gimple-fold.c (canonicalize_constructor_val): Accept being called
16 without function context.
17 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
18 current_function_decl and cfun.
20 2011-04-03 Michael Matz <matz@suse.de>
22 * tree.c (decl_init_priority_insert): Don't create entry for
24 (decl_fini_priority_insert): Ditto.
25 (fields_compatible_p, find_compatible_field): Remove.
26 * tree.h (fields_compatible_p, find_compatible_field): Remove.
27 * gimple.c (gimple_compare_field_offset): Adjust block comment.
29 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
31 * combine.c (try_combine): Remove useless local variable.
33 2011-04-03 Richard Guenther <rguenther@suse.de>
34 Ira Rosen <ira.rosen@linaro.org>
36 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
37 non-variable offsets and compare the remaining bases of the two
38 accesses instead of looking for exact same data-ref.
40 2011-04-02 Kai Tietz <ktietz@redhat.com>
43 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
45 * i386.c (ix86_is_msabi_thiscall): New helper function.
46 (ix86_is_type_thiscall): New helper function.
47 (ix86_comp_type_attributes): Handle thiscall for method-functions
49 (init_cumulative_args): Likewise.
50 (find_drap_reg): Likewise.
51 (ix86_static_chain): Likewise.
52 (x86_this_parameter): Likewise.
53 (x86_output_mi_thunk): Likewise.
55 2011-04-01 Olivier Hainque <hainque@adacore.com>
56 Nicolas Setton <setton@adacore.com>
57 Eric Botcazou <ebotcazou@adacore.com>
59 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
60 (add_gnat_descriptive_type_attribute): New function.
61 (gen_array_type_die): Call it.
62 (gen_enumeration_type_die): Likewise.
63 (gen_struct_or_union_type_die): Likewise.
64 (modified_type_die): Likewise.
65 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
66 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
67 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
69 2011-04-01 Jakub Jelinek <jakub@redhat.com>
72 * dwarf2out.c (resolve_addr): Don't call force_decl_die
73 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
76 2011-03-17 Richard Guenther <rguenther@suse.de>
79 * lto-cgraph.c (input_overwrite_node): Clear the abstract
80 origin for decls in other ltrans units.
81 (input_varpool_node): Likewise.
83 2011-04-01 Jakub Jelinek <jakub@redhat.com>
86 * expr.c (expand_assignment): Handle all possibilities
88 * expmed.c (store_bit_field_1): Avoid trying to create
90 (store_split_bit_field): If SUBREG_REG (op0) or
91 op0 itself has smaller mode than word, return it
92 for offset 0 and const0_rtx for out-of-bounds stores.
93 If word is const0_rtx, skip it.
95 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
97 * config/h8300/h8300.c (print_operand_address): Rename to...
98 (h8300_print_operand_address): ...this. Make static. Adjust comments.
99 Call h8300_print_operand and h8300_print_operand_address instead of
100 print_operand and print_operand_address. Declare.
101 (print_operand): Renake to...
102 (h8300_print_operand): ...this. Make static. Adjust comments.
103 Call h8300_print_operand instead of print_operand. Declare.
104 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
105 (h8300_register_move_cost): Likewise.
106 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
107 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
108 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
109 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
110 * config/h8300/h8300-protos.h (print_operand): Delete.
111 (print_operand_address): Delete.
113 2011-04-01 Richard Henderson <rth@redhat.com>
116 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
117 in strict mode before dwarf4. Re-order tests to early out
118 before switching sections.
120 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
122 * config/h8300/constraints.md: New file.
123 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
124 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
125 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
126 * config/h8300/predicates.md (bit_operand): Likewise.
127 (incdec_operand): Use satisfies_constraint_M and
128 satisfies_constraint_O. Don't use C code block.
129 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
130 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
131 (compute_mov_length): Use satisfies_constraint_G.
132 (fix_bit_operand): Use satisfies_constraint_U.
133 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
134 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
135 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
136 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
137 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
138 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
139 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
140 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
141 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
142 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
143 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
144 (EXTRA_MEMORY_CONSTRAINT): Delete.
146 2011-04-01 Andrew Pinski <pinskia@gmail.com>
147 Michael Meissner <meissner@linux.vnet.ibm.com>
150 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
151 operands, as per the specifications.
153 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
154 (vec_extract_evenv4sf): Ditto.
155 (vec_extract_evenv8hi): Ditto.
156 (vec_extract_evenv16qi): Ditto.
157 (vec_extract_oddv4si): Ditto.
159 2011-03-31 Mark Wielaard <mjw@redhat.com>
161 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
162 high_pc attribute if the CU has no associated code. Only output
163 DW_AT_entry_pc for CU if not generating strict dwarf and
166 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
168 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
169 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
171 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
172 * final.c (final_start_function): Call the new function rather
173 than using a NULL argument for dwarf2out_frame_debug.
175 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
176 that contains the prologue.
178 * haifa-sched.c (queue_insn): New arg REASON. All callers
179 changed. Print it in debugging output.
181 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
183 * sched-ebb.c (begin_schedule_ready): Remove second argument.
184 Split most of the code into...
185 (begin_move_insn): ... here. New function.
186 (ebb_sched_info): Add a pointer to it.
187 * haifa-sched.c (scheduled_insns): New static variable.
188 (sched_extend_ready_list): Allocate it.
189 (schedule_block): Use it to record the order of scheduled insns.
190 Perform RTL changes to move insns only after all scheduling
191 decisions have been made.
192 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
193 begin_move_insn field.
194 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
195 * sched-int.h (struct haifa_sched_info): Remove second argument
196 from begin_schedule_ready hook. Add new member begin_move_insn.
197 * sched-rgn.c (begin_schedule_ready): Remove second argument.
198 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
200 * haifa-sched.c (prune_ready_list): New function, broken out of
202 (schedule_block): Use it.
204 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
206 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
208 2011-04-01 Kai Tietz <ktietz@redhat.com>
210 * config.gcc (*-*-mingw*): Allow as option the
211 posix threading model.
212 * config/i386/mingw32.h ( SPEC_PTHREAD1, SPEC_PTHREAD2):
213 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
215 (CPP_SPEC): Add pthread/no-pthread handling.
216 (LIB_SPEC): Likewise.
217 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
218 (LIB_SPEC): Likewise.
219 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
220 flag to pass -pthread option for shared libgcc build.
221 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
222 for shared libgcc build.
223 * config/i386/t-mingw-pthread: New file.
224 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
225 New define to enable use of library pthread by default.
226 * config/i386/mingw.opt (pthread): New driver option.
227 (no-pthread): New driver option.
228 * config/i386/cygming.opt: Make sure trailing empty line
230 * config/i386/mingw-w64.opt: Likewise.
232 2011-04-01 Gary Funck <gary@intrepid.com>
234 * c-decl.c (grokdeclarator): Fix formatting.
236 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
238 * expr.c (emit_block_move_via_movmem): Use n_generator_args
239 instead of n_operands.
240 (set_storage_via_setmem): Likewise.
241 * optabs.c (maybe_gen_insn): Likewise.
242 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
243 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
244 (mips_expand_builtin_direct): Likewise.
245 * config/spu/spu.c (expand_builtin_args): Likewise.
247 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
249 * recog.h (insn_data_d): Add n_generator_args.
250 * genoutput.c (data): Likewise.
251 (output_insn_data): Print it.
252 (max_opno, num_dups): Delete.
253 (scan_operands): Just fill in "d->operand[...]".
254 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
256 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
258 * gensupport.h (pattern_stats): New structure.
259 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
260 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
261 (max_operand_1, max_operand_vec): Delete.
262 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
264 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
266 * emit-rtl.c (emit_pattern_after_setloc): New function.
267 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
268 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
269 (emit_pattern_after): New function.
270 (emit_insn_after, emit_jump_insn_after): Call it.
271 (emit_call_insn_after, emit_debug_insn_after): Likewise.
272 (emit_pattern_before_setloc): New function.
273 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
274 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
276 (emit_pattern_before): New function.
277 (emit_insn_before, emit_jump_insn_before): Call it.
278 (emit_call_insn_before, emit_debug_insn_before): Likewise.
280 2011-03-31 Richard Henderson <rth@redhat.com>
282 * dwarf2out.c (dw_separate_line_info_ref): Remove.
283 (dw_separate_line_info_entry): Remove.
284 (enum dw_line_info_opcode): New.
285 (dw_line_info_entry): Use it.
286 (dw_line_info_table, dw_line_info_table_p): New.
287 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
288 (line_info_table, line_info_label_num): Remove.
289 (line_info_table_in_use): Remove.
290 (separate_line_info_table): Remove.
291 (separate_line_info_table_allocated): Remove.
292 (separate_line_info_table_in_use): Remove.
293 (LINE_INFO_TABLE_INCREMENT): Remove.
294 (line_info_label_num): New.
295 (cur_line_info_table): New.
296 (text_section_line_info, cold_text_section_line_info): New.
297 (separate_line_info): New.
298 (SEPARATE_LINE_CODE_LABEL): Remove.
299 (print_dwarf_line_table): Remove.
300 (debug_dwarf): Don't dump it.
301 (output_one_line_info_table): New.
302 (output_line_info): Use it.
303 (new_line_info_table): New.
304 (set_cur_line_info_table): New.
305 (dwarf2out_switch_text_section): Use it.
306 (dwarf2out_begin_function): Likewise.
307 (push_dw_line_info_entry): New.
308 (dwarf2out_source_line): Rewrite for new line info tables.
309 (dwarf2out_init): Remove dead initailizations.
311 2011-03-31 Joseph Myers <joseph@codesourcery.com>
313 * opts.h (cl_option): Add comments to fields. Add bit-fields for
315 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
316 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
317 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
318 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
319 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
320 * opt-functions.awk (flag_init, switch_bit_fields): New.
321 (switch_flags): Don't handle flags moved to bit-fields. Don't
322 generate CL_MISSING_OK or CL_SAVE.
323 * optc-gen.awk: Update to generate bit-field output as well as
325 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
326 bit-field instead of CL_REJECT_DRIVER flag.
327 * opts-common.c (generate_canonical_option,
328 decode_cmdline_option): Use bit-fields instead of CL_* flags.
329 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
330 instead of CL_REJECT_NEGATIVE flag.
331 * toplev.c (print_switch_values): Use cl_report bit-field instead
334 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
336 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
337 a zero minimum index only if it is redundant.
339 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
341 PR rtl-optimization/48381
342 * ira-color.c (assign_hard_reg): Use hard reg set intersection
343 instead of ira_class_hard_reg_index for calculating conflicting
346 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
348 * cprop.c: Clean up hash table building.
349 (reg_avail_info): Remove.
350 (oprs_available_p): Remove.
351 (record_last_reg_set_info): Remove.
352 (record_last_set_info): Remove.
353 (reg_available_p): New function.
354 (gcse_constant_p): Do not treat unfolded conditions as constants.
355 (make_set_regs_unavailable): New function.
356 (hash_scan_set): Simplify with new reg_available_p.
357 (compute_hash_table_work): Traverse insns stream only once.
358 Do not compute reg_avail_info. Traverse insns in reverse order.
359 Record implicit sets after recording explicit sets from the block.
361 2011-03-31 Michael Matz <matz@suse.de>
363 * builtins.c (build_va_arg_indirect_ref): Use
364 build_simple_mem_ref_loc.
366 2011-03-31 Anatoly Sokolov <aesok@post.ru>
368 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
369 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
370 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
371 (h8300_mode_dependent_address_p): New function.
372 (h8300_get_index): Make static.
374 2011-03-31 Jeff Law <law@redhat.com>
376 * reload1.c (elimination_effects): Fix typo in recent change.
378 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
379 typo potentially leading to null pointer dereference.
381 * caller-save.c (new_saved_hard_reg): Eliminate return value.
382 (setup_save_areas): Corresponding changes to avoid useless
385 * jump.c (reversed_comparison_code_parts): Avoid successive return
386 statements when REVERSE_CONDITION is defined.
388 * expr.c (expand_assignment): Avoid useless assignments.
389 (expand_expr_real_1): Likewise.
390 (expand_expr_real_2): Avoid useless statements.
392 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
394 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
396 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
399 * stmt.c (expand_expr_stmt): Avoid useless assignment.
401 2011-03-31 Joseph Myers <joseph@codesourcery.com>
404 * doc/tm.texi.in (TARGET_VERSION): Remove.
405 * doc/tm.texi: Regenerate.
406 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
407 * collect2.c (main): Don't use TARGET_VERSION.
408 * mips-tdump.c (main): Don't use TARGET_VERSION.
409 * mips-tfile.c (main): Don't use TARGET_VERSION.
410 * config.gcc (powerpc-wrs-vxworksae): Don't use
412 * config/rs6000/vxworksae.h: Remove.
413 * config/alpha/alpha.h (TARGET_VERSION): Remove.
414 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
415 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
416 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
417 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
418 * config/arm/arm.h (TARGET_VERSION): Remove.
419 * config/arm/coff.h (TARGET_VERSION): Remove.
420 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
421 * config/arm/elf.h (TARGET_VERSION): Remove.
422 * config/arm/freebsd.h (TARGET_VERSION): Remove.
423 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
424 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
425 * config/arm/pe.h (TARGET_VERSION): Remove.
426 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
427 * config/arm/semi.h (TARGET_VERSION): Remove.
428 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
429 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
430 * config/arm/vxworks.h (TARGET_VERSION): Remove.
431 * config/avr/avr.h (TARGET_VERSION): Remove.
432 * config/bfin/bfin.h (TARGET_VERSION): Remove.
433 * config/fr30/fr30.h (TARGET_VERSION): Remove.
434 * config/frv/frv.h (TARGET_VERSION): Remove.
435 * config/h8300/h8300.h (TARGET_VERSION): Remove.
436 * config/i386/cygwin.h (TARGET_VERSION): Remove.
437 * config/i386/darwin.h (TARGET_VERSION): Remove.
438 * config/i386/darwin64.h (TARGET_VERSION): Remove.
439 * config/i386/djgpp.h (TARGET_VERSION): Remove.
440 * config/i386/freebsd.h (TARGET_VERSION): Remove.
441 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
442 * config/i386/gnu.h (TARGET_VERSION): Remove.
443 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
444 * config/i386/i386elf.h (TARGET_VERSION): Remove.
445 * config/i386/linux.h (TARGET_VERSION): Remove.
446 * config/i386/linux64.h (TARGET_VERSION): Remove.
447 * config/i386/lynx.h (TARGET_VERSION): Remove.
448 * config/i386/mingw32.h (TARGET_VERSION): Remove.
449 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
450 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
451 * config/i386/netware.h (TARGET_VERSION): Remove.
452 * config/i386/nto.h (TARGET_VERSION): Remove.
453 * config/i386/openbsd.h (TARGET_VERSION): Remove.
454 * config/i386/vxworks.h (TARGET_VERSION): Remove.
455 * config/ia64/elf.h (TARGET_VERSION): Remove.
456 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
457 * config/ia64/hpux.h (TARGET_VERSION): Remove.
458 * config/ia64/linux.h (TARGET_VERSION): Remove.
459 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
460 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
461 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
462 * config/lm32/lm32.h (TARGET_VERSION): Remove.
463 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
464 * config/m32c/m32c.h (TARGET_VERSION): Remove.
465 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
466 * config/m32r/m32r.h (TARGET_VERSION): Remove.
467 * config/m68k/linux.h (TARGET_VERSION): Remove.
468 * config/m68k/m68k.h (TARGET_VERSION): Remove.
469 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
470 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
471 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
472 * config/mep/mep.h (TARGET_VERSION): Remove.
473 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
474 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
475 * config/mips/iris6.h (MACHINE_TYPE): Remove.
476 * config/mips/linux.h (TARGET_VERSION): Remove.
477 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
478 * config/mips/vxworks.h (TARGET_VERSION): Remove.
479 * config/mmix/mmix.h (TARGET_VERSION): Remove.
480 * config/mn10300/linux.h (TARGET_VERSION): Remove.
481 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
482 * config/pa/pa.h (TARGET_VERSION): Remove.
483 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
484 * config/picochip/picochip.h (TARGET_VERSION): Remove.
485 * config/rs6000/aix.h (TARGET_VERSION): Remove.
486 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
487 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
488 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
489 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
490 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
491 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
492 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
493 * config/rs6000/linux.h (TARGET_VERSION): Remove.
494 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
495 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
496 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
497 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
498 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
499 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
500 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
501 * config/s390/linux.h (TARGET_VERSION): Remove.
502 * config/s390/s390.h (TARGET_VERSION): Remove.
503 * config/s390/tpf.h (TARGET_VERSION): Remove.
504 * config/score/score.h (TARGET_VERSION): Remove.
505 * config/sh/linux.h (TARGET_VERSION): Remove.
506 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
507 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
508 * config/sh/sh.h (TARGET_VERSION): Remove.
509 * config/sh/sh64.h (TARGET_VERSION): Remove.
510 * config/sh/superh.h (TARGET_VERSION): Remove.
511 * config/sh/vxworks.h (TARGET_VERSION): Remove.
512 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
513 * config/sparc/linux.h (TARGET_VERSION): Remove.
514 * config/sparc/linux64.h (TARGET_VERSION): Remove.
515 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
516 TARGET_NAME32, TARGET_NAME): Remove.
517 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
518 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
519 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
520 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
521 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
522 * config/spu/spu.h (TARGET_VERSION): Remove.
523 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
524 * config/v850/v850.h (TARGET_VERSION): Remove.
525 * config/vax/linux.h (TARGET_VERSION): Remove.
526 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
527 * config/xtensa/elf.h (TARGET_VERSION): Remove.
528 * config/xtensa/linux.h (TARGET_VERSION): Remove.
530 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
533 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
534 frame-related from frame-unrelated adjustments to the stack pointer.
536 2011-03-31 Jakub Jelinek <jakub@redhat.com>
538 * common.opt (fdebug-types-section): Move earlier.
539 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
541 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
543 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
546 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
548 * tree.h (CASE_CHAIN): Define.
549 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
550 (gimple_redirect_edge_and_branch): Likewise.
552 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
555 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
558 2011-03-30 Jeff Law <law@redhat.com>
561 * reload1.c (reload): Fix botch in last change.
563 * reload.h (struct reload): Fix typo introduced in last change.
565 2011-03-30 Joseph Myers <joseph@codesourcery.com>
567 * config/arm/arm.opt (mhard-float, msoft-float): Mark
568 Undocumented. Remove help text.
569 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
572 2011-03-30 Joseph Myers <joseph@codesourcery.com>
574 * doc/options.texi (NegativeAlias): Document.
575 (Alias): Mention NegativeAlias.
576 * opt-functions.awk: Handle NegativeAlias.
577 * optc-gen.awk: Disallow NegativeAlias with multiple Alias
579 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
580 * opts.h (CL_NEGATIVE_ALIAS): Define.
581 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
582 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
584 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
586 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
587 mno-spe and mno-isel instead of mspe=no and -misel=no.
589 2011-03-29 Mark Wielaard <mjw@redhat.com>
591 * common.opt (fdebug-types-section): New flag.
592 * doc/invoke.texi: Document new -fno-debug-types-section flag.
593 * dwarf2out.c (use_debug_types): New define.
594 (struct die_struct): Mark die_id with GTY desc use_debug_types.
595 (print_die): Guard output of type unit signatures using
597 (build_abbrev_table): Replace assert of dwarf_version >= 4
598 with assert on use_debug_types.
599 (size_of_die): Likewise.
600 (unmark_dies): Likewise.
601 (value_format): Decide AT_ref_external form on use_debug_types.
602 (output_die): Replace dwarf_version version check guard with
603 use_debug_types where appropriate.
604 (modified_type_die): Likewise.
605 (gen_reference_type_die): Likewise.
606 (dwarf2out_start_source_file): Likewise.
607 (dwarf2out_end_source_file): Likewise.
608 (prune_unused_types_walk_attribs): Likewise.
609 (dwarf2out_finish): Likewise.
611 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
613 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
615 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
617 PR rtl-optimization/48332
618 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
619 mode of input operand N and modeN to its actual mode.
621 2011-03-30 Jeff Law <law@redhat.com>
623 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
624 define accessor macro.
625 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
626 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
627 (reg_equiv_init): Likewise.
628 (reg_equivs_size): New variable.
629 (reg_equiv_init_size): Remove.
630 (allocate_initial_values): Move prototype to here from....
631 * integrate.h (allocate_initial_values): Remove prototype.
632 * integrate.c: Include reload.h.
633 (allocate_initial_values): Corresponding changes.
634 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
635 (fix_reg_equiv_init, no_equiv): Corresponding changes.
636 (update_equiv_regs): Corresponding changes.
637 (ira): Corresponding changes.
638 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
639 (push_secondary_reload): Corresponding changes.
640 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
641 (make_memloc, find_reloads_address): Corresponding changes.
642 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
643 (find_reloads_address_1): Corresponding changes.
644 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
645 (refers_to_regno_for_reload_p): Corresponding changes.
646 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
647 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
648 * reload1.c: Include ggc.h.
649 (grow_reg_equivs): New function.
650 (replace_pseudos_in, reload): Corresponding changes.
651 (calculate_needs_all_insns, alter_regs): Corresponding changes.
652 (eliminate_regs_1, elimination_effects): Corresponding changes.
653 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
654 (delete_output_reload): Likewise.
655 * caller-save.c (mark_referenced_regs): Corresponding changes.
656 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
657 * frv/predicates.md (frv_load_operand): Corresponding changes.
658 * microblaze/microblaze.c (double_memory_operand): Corresponding
660 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
661 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
662 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding
664 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
665 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
667 * pa/pa.c (emit_move_sequence): Corresponding changes.
668 * vax/vax.c (nonindexed_address_p): Corresponding changes.
670 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
673 * config/arm/arm.c (coproc_secondary_reload_class): Handle
674 structure modes. Don't check neon_vector_mem_operand for
675 vector or structure modes.
677 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
678 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
681 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
682 operand 1 and reshuffle the operands to match.
683 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
685 2011-03-30 Christian Schüler <cschueler@gmx.de>
688 * config/c.opt (F): Added 'Driver' to -F option.
690 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
692 * config/darwin.opt: Added '-arch' option.
694 2011-03-30 Nick Clifton <nickc@redhat.com>
696 * config/rx/rx.md: Add peepholes and patterns to combine
697 extending loads and simple arithmetic instructions.
698 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
699 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
700 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
701 modes to use pre-decrement and post-increment addressing.
702 (rx_is_restricted_memory_address): Add range checking of REG+INT
704 (rx_print_operand): Add support for %Q.
706 (rx_memory_move_cost): Adjust cost of stores.
707 (rx_adjust_insn_length): New function.
709 2011-03-30 Jakub Jelinek <jakub@redhat.com>
712 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
713 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
714 matching arg00/arg01 types.
716 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
718 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
719 last_location to UNKNOWN_LOCATION.
721 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
724 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
727 2011-03-30 Joseph Myers <joseph@codesourcery.com>
728 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
731 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
733 (sparc_cpu): Likewise.
734 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
737 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
741 PR rtl-optimization/48345
742 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
743 hard regs for given mode from profitable regs when doing secondary
746 2011-03-29 Jeff Law <law@redhat.com>
749 * tree-ssa-threadupdate.c (struct redirection_data): Remove
750 do_not_duplicate field.
751 (lookup_redirection_data): Corresponding changes.
752 (create_duplicates): Always create a template block.
753 (redirect_edges): Remove code which reused the original block
754 when it was going to become unreachable code.
755 (thread_block): Don't set do_not_duplicate field.
757 2011-03-29 Joseph Myers <joseph@codesourcery.com>
759 * lto-opts.c (register_user_option_p, lto_register_user_option):
760 Make type argument unsigned.
761 * lto-streamer.h (lto_register_user_option): Make type argument
763 * opth-gen.awk: Make CL_* macros unsigned.
764 * opts-common.c (find_opt): Make lang_mask argument unsigned.
765 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
766 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
767 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
768 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
769 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
770 (find_opt): Make lang_mask argument unsigned.
772 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
774 PR rtl-optimization/48331
775 PR rtl-optimization/48334
776 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
777 for any used algorithm.
779 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
781 * ira-conflicts.c (build_object_conflicts): Add unused attribute
784 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
786 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
787 (alpha_option_override): Don't set alpha_sr_alias_set.
788 (emit_frame_store_1): Use gen_frame_mem rather than calling
790 (alpha_expand_epilogue): Ditto.
792 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
794 PR tree-optimization/48290
795 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
796 vectorization, check that relevant phis in the basic block after
797 the inner loop are really inner loop's exit phis.
799 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
802 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
803 (cached_dw_loc_list_def): New structure.
804 (cached_dw_loc_list): New typedef.
805 (cached_dw_loc_list_table): New variable.
806 (cached_dw_loc_list_table_hash): New function.
807 (cached_dw_loc_list_table_eq): Likewise.
808 (add_location_or_const_value_attribute): Take a bool cache_p.
809 Cache the list when the parameter is true.
810 (gen_formal_parameter_die): Update caller.
811 (gen_variable_die): Likewise.
812 (dwarf2out_finish): Likewise.
813 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
814 while generating debug info for the decl.
815 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
816 (dwarf2out_init): Initialize cached_dw_loc_list_table.
817 (resolve_addr): Cache the result of resolving a chain of
820 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
822 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
823 conflict object hard regset nodes have intersecting hard reg sets.
825 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
826 after regstat_init_n_sets_and_refs.
828 * ira.c: Add more comments at the top.
829 (setup_stack_reg_pressure_class, setup_pressure_classes):
830 Add comments how we compute the register pressure classes.
831 (setup_allocno_and_important_classes): Add more comments.
832 (setup_class_translate_array, reorder_important_classes)
833 (setup_reg_class_relations): Add comments.
835 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
838 * ira-color.c: Add 2011 to the Copyright line.
839 (assign_hard_reg): Add more comments.
840 (improve_allocation): Ditto.
842 * ira-costs.c: Add 2011 to the Copyright line.
843 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
845 (setup_regno_cost_classes_by_mode): Ditto.
847 Initial patches from ira-improv branch:
849 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
851 * ira-build.c: (ira_create_object): Remove initialization of
852 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
853 (ira_create_allocno): Remove initialization of
854 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
855 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
856 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
857 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
858 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
859 Initialize ALLOCNO_ADD_DATA.
860 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
861 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
863 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
864 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
866 * ira.c (ira_reallocate): Remove.
867 (setup_pressure_classes): Call
868 ira_init_register_move_cost_if_necessary. Use
869 ira_register_move_cost instead of ira_get_register_move_cost.
870 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
871 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
873 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
874 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
875 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
876 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
877 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
878 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
880 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
881 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
882 (struct allocno_color_data): New.
883 (allocno_color_data_t): New typedef.
884 (allocno_color_data): New definition.
885 (ALLOCNO_COLOR_DATA): New macro.
886 (struct object_color_data): New.
887 (object_color_data_t): New typedef.
888 (object_color_data): New definition.
889 (OBJECT_COLOR_DATA): New macro.
890 (update_copy_costs, calculate_allocno_spill_cost): Call
891 ira_init_register_move_cost_if_necessary. Use
892 ira_register_move_cost instead of ira_get_register_move_cost.
893 (move_spill_restore, update_curr_costs): Ditto.
894 (allocno_spill_priority): Make it inline.
895 (color_pass): Allocate and free allocno_color_dat and object_color_data.
896 (struct coalesce_data, coalesce_data_t): New.
897 (allocno_coalesce_data): New definition.
898 (ALLOCNO_COALESCE_DATA): New macro.
899 (merge_allocnos, coalesced_allocno_conflict_p): Use
900 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
901 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
902 (coalesce_allocnos): Ditto.
903 (setup_coalesced_allocno_costs_and_nums): Ditto.
904 (collect_spilled_coalesced_allocnos): Ditto.
905 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
906 (setup_slot_coalesced_allocno_live_ranges): Ditto.
907 (coalesce_spill_slots): Ditto.
908 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
909 free allocno_coalesce_data.
911 * ira-conflicts.c: Fix formatting.
912 (process_regs_for_copy): Call
913 ira_init_register_move_cost_if_necessary. Use
914 ira_register_move_cost instead of ira_get_register_move_cost.
915 (build_object_conflicts): Optimize.
917 * ira-costs.c (record_reg_classes): Optimize. Call
918 ira_init_register_move_cost_if_necessary. Use
919 ira_register_move_cost, ira_may_move_in_cost, and
920 ira_may_move_out_cost instead of ira_get_register_move_cost and
921 ira_get_may_move_cost.
922 (record_address_regs): Ditto.
923 (scan_one_insn): Optimize.
924 (find_costs_and_classes): Optimize.
925 (process_bb_node_for_hard_reg_moves): Call
926 ira_init_register_move_cost_if_necessary. Use
927 ira_register_move_cost instead of ira_get_register_move_cost.
929 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
930 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
931 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
932 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
934 (ira_initiate_emit_data, ira_finish_emit_data)
935 (create_new_allocno): New functions.
936 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
937 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
938 Use ira_register_move_cost instead of ira_get_register_move_cost.
940 * ira-int.h: Fix some comments.
941 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
942 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
943 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
944 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
946 (struct ira_allocno): Make mode and aclass a bitfield. Move other
947 bitfield after mode. Make hard_regno a short int. Make
948 hard_regno short. Remove first_coalesced_allocno and
949 next_coalesced_allocno. Move mem_optimized_dest_p,
950 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
951 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
952 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
953 temp, colorable_p. Add new member add_data.
954 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
955 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
956 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
957 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
958 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
959 (ALLOCNO_ADD_DATA): New macro.
960 (ira_emit_data_t): New typedef.
961 (struct ira_emit_data): New. Move mem_optimized_dest_p,
962 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
963 from struct ira_allocno.
964 (ALLOCNO_EMIT_DATA): New macro.
965 (ira_allocno_emit_data, allocno_emit_reg): New.
966 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
967 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
968 (OBJECT_ADD_DATA): New macro.
969 (ira_reallocate): Remove.
970 (ira_initiate_emit_data, ira_finish_emit_data): New.
971 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
972 (ira_init_register_move_cost_if_necessary): New.
973 (ira_object_conflict_iter_next): Merge into
974 ira_object_conflict_iter_cond.
975 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
977 * ira-live.c: (process_single_reg_class_operands): Call
978 ira_init_register_move_cost_if_necessary. Use
979 ira_register_move_cost instead of ira_get_register_move_cost.
981 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
983 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
985 * ira-costs.c: Fix formatting.
986 (cost_classes, cost_classes_num): Remove.
987 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
988 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
989 (cost_classes_del, cost_classes_htab): New.
990 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
991 (initiate_regno_cost_classes, setup_cost_classes): New.
992 (setup_regno_cost_classes_by_aclass): New.
993 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
994 (record_reg_classes): Use regno_cost_classes instead of
995 cost_classes. Move checking opposite operand up.
996 (record_address_regs): Use regno_cost_classes
997 instead of cost_classes.
998 (scan_one_insn): Ditto. Use always general register.
999 (print_allocno_costs): Use regno_cost_classes instead of
1001 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
1002 (find_costs_and_classes): Set up cost classes for each registers.
1003 Use also their mode for this. Use regno_cost_classes instead of
1005 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
1007 (free_ira_costs, ira_init_costs): Don't use cost_classes.
1008 (ira_costs, ira_set_pseudo_classes): Call
1009 initiate_regno_cost_classes and finish_regno_cost_classes.
1011 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
1013 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
1015 * target.def (ira_cover_classes): Remove.
1017 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
1019 * doc/tm.texi.in: Ditto.
1021 * ira-conflicts.c: Remove mentioning cover classes from the file.
1022 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
1023 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
1025 * targhooks.c (default_ira_cover_classes): Remove.
1027 * targhooks.h (default_ira_cover_classes): Ditto.
1029 * haifa-sched.c: Remove mentioning cover classes from the file.
1030 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
1031 ira_pressure_classes and ira_pressure_classes_num instead of
1032 ira_reg_class_cover_size and ira_reg_class_cover. Use
1033 sched_regno_pressure_class instead of sched_regno_cover_class.
1034 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
1035 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
1037 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
1038 classes from the file.
1039 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
1040 (struct object_hard_regs, struct object_hard_regs_node): New.
1041 (struct ira_object): New members profitable_hard_regs,
1042 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
1043 (struct ira_allocno): Rename cover_class to aclass. Rename
1044 cover_class_cost and updated_cover_class_cost to class_cost and
1045 updated_class_cost. Remove splay_removed_p and
1046 left_conflict_size. Add new members colorable_p.
1047 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
1048 (ALLOCNO_COLORABLE_P): New macro.
1049 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
1050 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
1051 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
1052 (OBJECT_...): Rename parameter C to O.
1053 (OBJECT_PROFITABLE_HARD_REGS): New macro.
1054 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
1055 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
1056 (struct target_ira_int): New members x_ira_max_memory_move_cost,
1057 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
1058 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
1059 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
1060 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
1061 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
1062 x_ira_reg_class_subunion.
1063 (ira_max_memory_move_cost, ira_max_register_move_cost)
1064 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
1065 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
1066 (ira_important_class_nums, ira_reg_class_superunion): New macros.
1067 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
1068 (ira_reg_class_union): Rename to ira_reg_class_subunion.
1069 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
1070 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
1071 (ira_tune_allocno_costs_and_cover_classes): Rename to
1072 ira_tune_allocno_costs.
1073 (ira_debug_hard_regs_forest): New.
1074 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
1075 (ira_object_conflict_iter_next): Fix comments.
1076 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
1077 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
1078 cover_class to aclass.
1079 (ira_allocate_and_accumulate_costs): Ditto.
1080 (ira_allocate_and_set_or_copy_costs): Ditto.
1082 * opts.c (decode_options): Remove ira_cover_class check.
1084 * ira-color.c: Remove mentioning cover classes from the file. Use
1085 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
1086 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
1087 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
1088 (splay-tree.h): Remove include.
1089 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
1090 before copy_freq_compare_func.
1091 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
1092 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
1094 (hard_regs_roots, hard_regs_node_vec): Ditto.
1095 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
1096 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
1097 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
1098 (create_new_object_hard_regs_node): Ditto.
1099 (add_new_object_hard_regs_node_to_forest): Ditto.
1100 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
1101 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
1103 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
1104 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
1105 (remove_unused_object_hard_regs_nodes): Ditto.
1106 (enumerate_object_hard_regs_nodes): Ditto.
1107 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
1108 (object_hard_regs_subnode_t): Ditto.
1109 (struct object_hard_regs_subnode): Ditto.
1110 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
1111 (setup_object_hard_regs_subnode_index): Ditto.
1112 (get_object_hard_regs_subnodes_num): Ditto.
1113 (form_object_hard_regs_nodes_forest): Ditto.
1114 (finish_object_hard_regs_nodes_tree): Ditto.
1115 (finish_object_hard_regs_nodes_forest): Ditto.
1116 (allocnos_have_intersected_live_ranges_p): Rename to
1117 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1118 (pseudos_have_intersected_live_ranges_p): Rename to
1119 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1120 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
1121 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
1122 (update_copy_costs): Remove assert. Skip cost update if the hard
1123 reg does not belong the class.
1124 (assign_hard_reg): Process only profitable hard regs.
1125 (uncolorable_allocnos_num): Make it scalar.
1126 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
1127 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
1128 and ira_reg_class_max_nregs.
1129 (bucket_allocno_compare_func): Check frequency first.
1130 (sort_bucket): Add compare function as a parameter.
1131 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
1132 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
1133 (push_allocno_to_stack): Rewrite for checking new allocno
1135 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
1136 (push_only_colorable): Pass new parameter to sort_bucket.
1137 (push_allocno_to_spill): Remove.
1138 (allocno_spill_priority_compare): Make it inline and rewrite.
1139 (splay_tree_allocate, splay_tree_free): Remove.
1140 (allocno_spill_sort_compare): New function.
1141 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
1142 build and use splay tree. Choose first allocno in uncolorable
1143 allocno bucket to spill. Remove setting spill cost.
1144 (all_conflicting_hard_regs): Remove.
1145 (setup_allocno_available_regs_num): Check only profitable hard
1146 regs. Print info about hard regs nodes.
1147 (setup_allocno_left_conflicts_size): Remove.
1148 (put_allocno_into_bucket): Don't call
1149 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
1150 (improve_allocation): New.
1151 (color_allocnos): Call setup_profitable_hard_regs,
1152 form_object_hard_regs_nodes_forest, improve_allocation,
1153 finish_object_hard_regs_nodes_forest. Setup spill cost.
1154 (print_loop_title): Use pressure classes.
1155 (color_allocnso): Ditto.
1156 (do_coloring): Remove allocation and freeing splay_tree_node_pool
1157 and allocnos_for_spilling.
1158 (ira_sort_regnos_for_alter_reg): Don't setup members
1159 {first,next}_coalesced_allocno.
1160 (color): Remove allocating and freeing removed_splay_allocno_vec.
1161 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
1162 prohibited_class_mode_regs.
1164 * ira-lives.c: Remove mentioning cover classes from the file. Fix
1166 (update_allocno_pressure_excess_length): Use pressure classes.
1167 (inc_register_pressure, dec_register_pressure): Check for pressure
1169 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
1170 pressure class. Use ira_reg_class_nregs instead of
1171 ira_reg_class_max_nregs.
1172 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
1173 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
1174 (single_reg_class): Use ira_reg_class_nregs instead of
1175 ira_reg_class_max_nregs.
1176 (process_bb_node_lives): Use pressure classes.
1178 * ira-emit.c: Remove mentioning cover classes from the file. Use
1179 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
1180 (change_loop): Use pressure classes.
1181 (modify_move_list): Call ira_set_allocno_class instead of
1182 ira_set_allocno_cover_class.
1184 * ira-build.c: Remove mentioning cover classes from the file. Use
1185 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
1186 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
1187 ALLOCNO_UPDATED_CLASS_COST instead of
1188 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
1189 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
1190 (ira_create_allocno): Remove initialization of
1191 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
1192 ALLOCNO_COLORABLE_P.
1193 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
1194 Update conflict regs for the objects.
1195 (create_cap_allocno): Remove assert. Don't propagate
1196 ALLOCNO_AVAILABLE_REGS_NUM.
1197 (ira_free_allocno_costs): New function.
1198 (finish_allocno): Change a part of code into call of
1199 ira_free_allocno_costs.
1200 (low_pressure_loop_node_p): Use pressure classes.
1201 (object_range_compare_func): Don't compare classes.
1202 (setup_min_max_conflict_allocno_ids): Ditto.
1204 * loop-invariant.c: Remove mentioning cover classes from the file.
1205 Use ira_pressure_classes and ira_pressure_classes_num instead of
1206 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
1207 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
1208 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
1209 Use reg_allocno_class instead of reg_cover_class.
1210 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
1211 STACK_REG_COVER_CLASS.
1212 (get_regno_cover_class): Rename to get_regno_pressure_class.
1213 (move_loop_invariants): Initialize and finalize regstat.
1215 * ira.c: Remove mentioning cover classes from the file. Add
1216 comments about coloring without cover classes. Use ALLOCNO_CLASS
1217 instead of ALLOCNO_COVER_CLASS. Fix formatting.
1218 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
1219 setup_class_subset_and_memory_move_costs.
1220 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
1221 (setup_cover_and_important_classes): Rename to
1222 setup_allocno_and_important_classes.
1223 (setup_class_translate_array): New.
1224 (setup_class_translate): Call it for allocno and pressure classes.
1225 (cover_class_order): Rename to allocno_class_order.
1226 (comp_reg_classes_func): Use ira_allocno_class_translate instead
1227 of ira_class_translate.
1228 (reorder_important_classes): Set up ira_important_class_nums.
1229 (setup_reg_class_relations): Set up ira_reg_class_superunion.
1230 (print_class_cover): Rename to print_classes. Add parameter.
1231 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
1232 Print pressure classes too.
1233 (find_reg_class_closure): Rename to find_reg_classes. Don't call
1234 setup_reg_subclasses.
1235 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1236 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
1237 (setup_prohibited_class_mode_regs): Use
1238 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
1239 (clarify_prohibited_class_mode_regs): New function.
1240 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
1241 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
1242 (ira_init_once): Initialize them.
1243 (free_register_move_costs): Process them.
1244 (ira_init): Move calls of find_reg_classes and
1245 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
1246 Call clarify_prohibited_class_mode_regs.
1247 (ira_no_alloc_reg): Remove.
1248 (too_high_register_pressure_p): Use pressure classes.
1250 * sched-deps.c: Remove mentioning cover classes from the file.
1251 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
1252 ira_pressure_classes and ira_pressure_classes_num instead of
1253 ira_reg_class_cover_size and ira_reg_class_cover.
1254 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
1255 sched_regno_pressure_class instead of sched_regno_cover_class.
1256 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
1257 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
1259 * ira.h: Add 2010 to Copyright.
1260 (ira_no_alloc_reg): Remove external.
1261 (struct target_ira): Rename x_ira_hard_regno_cover_class,
1262 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
1263 x_ira_class_translate to x_ira_hard_regno_allocno_class,
1264 x_ira_allocno_classes_num, x_ira_allocno_classes, and
1265 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
1266 x_ira_pressure_classes, x_ira_pressure_class_translate, and
1267 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
1268 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
1269 x_ira_no_alloc_regs.
1270 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1271 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
1272 ira_allocno_classes_num and ira_allocno_classes.
1273 (ira_class_translate): Rename to ira_allocno_class_translate.
1274 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
1275 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
1276 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
1277 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
1278 (ira_no_alloc_regs): New.
1280 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
1281 classes from the file. Use ALLOCNO_CLASS instead of
1282 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
1283 ALLOCNO_COVER_CLASS_COST.
1284 (regno_cover_class): Rename to regno_aclass.
1285 (record_reg_classes): Use ira_reg_class_subunion instead of
1286 ira_reg_class_union.
1287 (record_address_regs): Check overflow.
1288 (scan_one_insn): Ditto.
1289 (print_allocno_costs): Print total mem cost fore regional allocation.
1290 (print_pseudo_costs): Use REG_N_REFS.
1291 (find_costs_and_classes): Use classes intersected with them on the
1292 1st pass. Check overflow. Use ira_reg_class_subunion instead of
1293 ira_reg_class_union. Use ira_allocno_class_translate and
1294 regno_aclass instead of ira_class_translate and regno_cover_class.
1295 Modify code for finding regno_aclass. Setup preferred classes for
1297 (setup_allocno_cover_class_and_costs): Rename to
1298 setup_allocno_class_and_costs. Use regno_aclass instead of
1299 regno_cover_class. Use ira_set_allocno_class instead of
1300 ira_set_allocno_cover_class.
1301 (init_costs, finish_costs): Use regno_aclass instead of
1303 (ira_costs): Use setup_allocno_class_and_costs instead of
1304 setup_allocno_cover_class_and_costs.
1305 (ira_tune_allocno_costs_and_cover_classes): Rename to
1306 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
1307 by processing objects. Use ira_reg_class_max_nregs instead of
1308 ira_reg_class_nregs.
1310 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
1312 * sched-int.h: Remove mentioning cover classes from the file.
1313 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
1315 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
1316 classes from the file.
1317 (struct reg_pref): Rename coverclass into allocnoclass.
1318 (reg_cover_class): Rename to reg_allocno_class.
1320 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
1322 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
1324 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
1326 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
1328 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
1330 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
1332 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
1334 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
1336 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
1338 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
1340 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
1341 (i386_ira_cover_classes): Ditto.
1343 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
1345 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
1347 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
1349 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
1351 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
1353 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
1355 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
1356 (mips_ira_cover_classes): Ditto.
1358 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
1360 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
1362 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
1364 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
1366 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
1368 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
1369 (IRA_COVER_CLASSES_VSX): Ditto.
1371 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
1372 (rs6000_ira_cover_classes): Ditto.
1374 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
1376 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
1378 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
1380 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
1382 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
1384 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
1386 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
1388 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
1390 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
1392 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
1394 2011-03-29 Jakub Jelinek <jakub@redhat.com>
1397 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
1398 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
1399 dw_fde_unlikely_section_end_label, cold_in_std_section,
1400 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
1401 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
1403 (output_fde): Use dw_fde_second_{begin,end} if second is
1404 true, otherwise dw_fde_{begin,end}.
1405 (output_call_frame_info): Test dw_fde_second_begin != NULL
1406 instead of dw_fde_switched_sections.
1407 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
1408 fields, initialize new fields. Initialize in_std_section
1409 unconditionally from the first partition.
1410 (dwarf2out_end_epilogue): Don't override dw_fde_end when
1411 dw_fde_second_begin is non-NULL.
1412 (dwarf2out_switch_text_section): Stop initializing removed
1413 dw_fde_struct fields, initialize new fields, initialize
1414 also dw_fde_end here. Set dw_fde_switch_cfi even when
1415 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
1416 (struct var_loc_list_def): Add last_before_switch field.
1417 (arange_table, arange_table_allocated, arange_table_in_use,
1418 ARANGE_TABLE_INCREMENT, add_arange): Removed.
1419 (size_of_aranges): Count !in_std_section and !second_in_std_section
1420 hunks in fdes, instead of looking at arange_table_in_use.
1421 (output_aranges): Add aranges_length argument, don't call
1422 size_of_aranges here. Instead of using aranges_table*
1423 emit ranges for fdes when !in_std_section resp.
1424 !second_in_std_section.
1425 (dw_loc_list): Break ranges crossing section switch.
1426 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
1427 use dw_fde_second_end instead of dw_fde_end as end of last range.
1428 (gen_subprogram_die): Don't call add_arange. Use
1429 dw_fde_{begin,end} for first partition and if switched
1430 section dw_fde_second_{begin,end} for the second.
1431 (var_location_switch_text_section_1,
1432 var_location_switch_text_section): New functions.
1433 (dwarf2out_begin_function): Initialize cold_text_section even
1434 when function_section () isn't text_section.
1435 (prune_unused_types): Don't walk arange_table.
1436 (dwarf2out_finish): Don't needlessly test
1437 flag_reorder_blocks_and_partition when testing cold_text_section_used.
1438 If info_section_emitted, call size_of_aranges and if it indicates
1439 non-empty .debug_aranges, call output_aranges with the computed
1440 size. Stop using removed dw_fde_struct fields, use
1441 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
1445 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
1446 create ENTRY_VALUE if incoming or address of incoming's MEM
1448 * dwarf2out.c (mem_loc_descriptor): Don't emit
1449 DW_OP_GNU_entry_value of DW_OP_fbreg.
1450 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
1451 on ENTRY_VALUE is able to find the canonical parameter VALUE.
1452 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
1453 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
1455 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
1456 is a REG_P or MEM_P with REG_P address, compute hash directly
1457 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
1458 (preserve_only_constants): Don't clear VALUES forwaring
1459 ENTRY_VALUE to some other VALUE.
1461 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
1463 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
1466 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
1468 * cfgexpand.c (expand_gimple_cond): Always set the source location and
1469 block before expanding the statement.
1470 (expand_gimple_stmt_1): Likewise. Set them here...
1471 (expand_gimple_stmt): ...and not here. Tidy.
1472 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
1475 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
1477 * Makefile.in: New rule for cprop.o.
1478 * gcse.c: Move constant/copy propagation to cprop.c.
1479 (compute_local_properties): Only handle expression tables.
1480 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
1481 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
1482 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
1483 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
1484 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
1485 compute_cprop_data, find_used_regs, try_replace_reg,
1486 find_avail_set, cprop_jump, constprop_register, cprop_insn,
1487 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
1488 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
1489 find_bypass_set, reg_killed_on_edge, bypass_block,
1490 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
1491 execute_rtl_cprop, pass_rtl_cprop): Move to...
1492 * cprop.c: ...here. New file, constant/copy propagation for RTL
1493 moved from gcse.c to here with minor cleanups in duplicated code.
1495 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
1497 * config/i386/i386.c (flag_opts): Fix a typo in
1498 -mavx256-split-unaligned-store.
1500 2011-03-28 Anatoly Sokolov <aesok@post.ru>
1502 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
1503 LIBCALL_VALUE): Remove macros.
1504 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1505 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1506 (h8300_function_value, h8300_libcall_value,
1507 h8300_function_value_regno_p): New functions.
1509 2011-03-28 Anatoly Sokolov <aesok@post.ru>
1511 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
1513 2011-03-28 Jeff Law <law@redhat.com>
1515 * tree-ssa-threadupdate.c (redirect_edges): Call
1516 create_edge_and_update_destination_phis as needed.
1517 (create_edge_and_update_destination_phis): Accept new BB argument.
1518 All callers updated.
1519 (thread_block): Do not update the profile when threading around
1520 intermediate blocks.
1521 (thread_single_edge): Likewise.
1522 (determine_bb_domination_status): If BB is not a successor of the
1523 loop header, return NONDOMINATING.
1524 (register_jump_thread): Note when we register a jump thread around
1525 an intermediate block.
1526 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
1527 (thread_across_edge): Use it.
1529 2011-03-28 Tristan Gingold <gingold@adacore.com>
1531 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
1532 when for_return is 2.
1534 2011-03-28 Jeff Law <law@redhat.com>
1536 * var-tracking.c (canonicalize_values_mark): Delete unused
1538 (canonicalize_values_star, set_variable_part): Likewise.
1539 (clobber_variable_part, delete_variable_part): Likewise.
1541 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
1543 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
1545 2011-03-28 Martin Jambor <mjambor@suse.cz>
1547 * tree-inline.c (expand_call_inline): Do not check that destination
1549 (optimize_inline_calls): Assert that destination node is analyzed.
1550 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
1551 not call tree_lowering_passes.
1552 * cgraph.h (cgraph_analyze_function): Declare.
1553 * cgraphunit.c (cgraph_analyze_function): Make public.
1555 2011-03-28 Joseph Myers <joseph@codesourcery.com>
1557 * config/sparc/sparc-opts.h: New.
1558 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
1559 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
1560 (sparc_option_override): Store processor_type enumeration rather
1561 than string in cpu_default. Remove name and enumeration from
1562 cpu_table. Directly default -mcpu then default -mtune from -mcpu
1563 without using sparc_select. Use target_flags_explicit instead of
1565 * config/sparc/sparc.h (enum processor_type): Move to
1567 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
1568 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
1569 HeaderInclude entry.
1570 (mcpu=, mtune=): Use Var and Enum.
1571 (sparc_processor_type): New Enum and EnumValue entries.
1573 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1574 Iain Sandoe <iains@gcc.gnu.org>
1577 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
1579 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
1581 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
1582 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
1583 Insert new statements at it in lieu of STMT.
1584 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
1585 * tree-vect-stmts.c (vectorizable_store): Likewise.
1586 (vectorizable_load): Likewise.
1588 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
1590 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
1595 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
1597 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
1598 unaligned 256bit load/store.
1599 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
1600 (*avx_movdqu<avxmodesuffix>): Likewise.
1602 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1605 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
1606 * config/pa/pa.md (iordi3): Use new predicate in expander.
1609 2011-03-27 Anatoly Sokolov <aesok@post.ru>
1611 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
1612 FUNCTION_VALUE_REGNO_P): Remove macros.
1613 * config/mips/mips-protos.h (mips_function_value): Remove.
1614 * config/mips/mips.c (mips_function_value): Rename to...
1615 (mips_function_value_1): ... this. Make static. Handle receiving
1616 the function type in 'fn_decl_or_type' argument.
1617 (mips_function_value, mips_libcall_value,
1618 mips_function_value_regno_p): New function.
1619 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1620 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1622 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
1624 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
1625 and -mavx256-split-unaligned-store.
1626 (ix86_option_override_internal): Split 32-byte AVX unaligned
1627 load/store by default.
1628 (ix86_avx256_split_vector_move_misalign): New.
1629 (ix86_expand_vector_move_misalign): Use it.
1631 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
1632 -mavx256-split-unaligned-store.
1634 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
1635 256bit load/store. Generate unaligned store on misaligned memory
1637 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
1639 (*avx_movdqu<avxmodesuffix>): Likewise.
1641 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
1642 -mavx256-split-unaligned-store.
1644 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
1647 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
1650 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
1652 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
1653 opno arguments with an expand_operand. Use create_input_operand.
1654 (mips_prepare_builtin_target): Delete.
1655 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
1657 (mips_expand_builtin_direct): Use create_output_operand and
1658 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
1659 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
1660 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
1662 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
1664 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
1666 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
1668 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
1670 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
1671 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
1672 basic blocks and call commit_edge_insertions directly.
1673 (fixup_abnormal_edges): Move from here to...
1674 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
1675 on the edges and return whether some have actually been inserted.
1676 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
1679 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
1681 PR rtl-optimization/48144
1682 * sel-sched-ir.c (merge_history_vect): Factor out from ...
1683 (merge_expr_data): ... here.
1684 (av_set_intersect): Rename to av_set_code_motion_filter.
1685 Update all callers. Call merge_history_vect when an expression
1686 is found in both sets.
1687 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
1689 2011-03-26 Alan Modra <amodra@gmail.com>
1691 * config/rs6000/predicates.md (word_offset_memref_op): Handle
1692 cmodel medium addresses.
1693 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
1694 64-bit gpr loads and stores.
1695 (rs6000_secondary_reload_ppc64): New function.
1696 * config/rs6000/rs6000-protos.h: Declare it.
1697 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
1699 2011-03-26 Alan Modra <amodra@gmail.com>
1702 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
1703 GNU Go in traceback table.
1705 2011-03-25 Richard Henderson <rth@redhat.com>
1707 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
1708 if there are exactly 6 operands.
1709 (set_storage_via_setmem): Similarly.
1711 2011-03-25 Kai Tietz <ktietz@redhat.com>
1713 * collect2.c (write_c_file_stat): Handle backslash
1714 as right-hand directory separator.
1715 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
1716 checking just for slash.
1717 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
1718 instead of checking for trailing slash.
1719 * gcc.c (record_temp_file): Use filename_cmp instead
1721 (do_spec_1): Likewise.
1722 (replace_outfile_spec_function): Likewise.
1723 (is_directory): Use filename_ncmp instead of strncmp.
1724 (print_multilib_info): Likewise.
1725 * gcov.c (find_source): Use filename_cmp instead
1727 (make_gcov_file_name): Fix order of slash/backslash
1729 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
1730 (add_standard_paths): Likewise.
1731 * mips-tfile.c (saber_stop): Handle backslash.
1732 * prefix.c (update_path): Use filename_ncmp instead of
1734 * profile.c (output_location): Use filename_cmp instead
1736 * read-md.c (handle_toplevel_file): Handle backslash.
1737 * tlink.c (frob_extension): Likewise.
1738 * tree-cfg.c (same_line_p): Use filename_cmp instead of
1740 * tree-dump.c (dequeue_and_dump): Handle backslash.
1741 * tree.c (get_file_function_name): Likewise.
1742 * gengtype.c (read_input_list): Likewise.
1743 (get_file_realbasename): Likewise.
1744 (get_output_file_with_visibility): Use filename_cmp
1747 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
1749 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
1752 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
1754 * fold-const.c (expr_location_or): New function.
1755 (fold_truth_not_expr): Call it.
1757 2011-03-25 Jeff Law <law@redhat.com>
1759 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
1761 * c-family/c-common.c (def_fn_type): Likewise.
1762 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
1763 * emit-rtl.c (gen_rtvec): Likewise.
1764 * lto/lto-lang.c (def_fn_type): Likewise.
1766 2011-03-25 Richard Guenther <rguenther@suse.de>
1768 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
1769 also generate copies.
1770 (fini_copy_prop): Handle constant values properly.
1772 2011-03-25 Jakub Jelinek <jakub@redhat.com>
1774 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
1775 mode size instead of bitsize with DWARF2_ADDR_SIZE.
1776 (hash_loc_operands, compare_loc_operands): Handle
1777 DW_OP_GNU_entry_value.
1779 2011-03-25 Kai Tietz <ktietz@redhat.com>
1781 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
1782 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
1783 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
1784 comment and use macro TARGET_64BIT_MS_ABI instead.
1785 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
1786 and change default behavior for 32-bit MS_ABI.
1787 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
1788 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
1790 (ix86_cfun_abi): Likewise.
1791 (ix86_maybe_switch_abi): Adjust comment.
1792 (init_cumulative_args): Check for bit-ness in MS_ABI case.
1793 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
1794 instead of checking for SYSV_ABI.
1795 (ix86_nsaved_sseregs): Likewise.
1796 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
1798 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
1799 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
1800 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
1801 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
1802 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
1804 2011-03-25 Richard Guenther <rguenther@suse.de>
1806 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
1807 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
1808 (verify_gimple): Remove.
1809 * tree-cfg.c (verify_gimple_call): Merge verification
1811 (verify_gimple_phi): Merge verification from verify_stmts.
1812 (verify_gimple_label): New function.
1813 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
1814 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
1815 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
1816 (verify_stmts): Rename to verify_gimple_in_cfg.
1817 (verify_gimple_in_cfg): New function.
1818 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
1819 * tree-ssa.c (verify_ssa): Likewise.
1820 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
1822 2011-03-25 Richard Guenther <rguenther@suse.de>
1824 * passes.c (init_optimization_passes): Add FRE pass after
1827 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
1828 Andrew Stubbs <ams@codesourcery.com>
1830 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
1832 (arm_movdi_vfp_cortexa8): New pattern.
1833 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
1834 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
1835 instructions when tuning for Cortex-A8. Set attribute "arch".
1836 * config/arm/arm.md: Move include arm-tune.md up a bit.
1837 (define_attr "arch"): Add "onlya8" and "nota8" values.
1838 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
1840 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
1844 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
1846 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
1847 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
1848 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
1849 * passes.c (init_optimization_passes): Move
1850 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
1852 2011-03-25 Kai Tietz <ktietz@redhat.com>
1854 * c-typeck.c (comptypes_internal): Replace target
1855 hook call of comp_type_attributes by version in tree.c file.
1856 * gimple.c (gimple_types_compatible_p_1): Likewise.
1857 * tree-ssa.c (useless_type_conversion_p): Likewise.
1858 * tree.c (build_type_attribute_qual_variant): Likewise.
1859 (attribute_value_equal): New static helper function.
1860 (comp_type_attributes): New function.
1861 (merge_attributes): Use attribute_value_equal for comparison.
1862 (attribute_list_contained): Likewise.
1863 * tree.h (comp_type_attributes): New prototype.
1865 2011-03-25 Richard Guenther <rguenther@suse.de>
1867 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
1868 of complex types at -O0.
1869 (verify_gimple_assign_binary): Likewise.
1870 (verify_gimple_assign_ternary): Likewise.
1872 2011-03-24 Mark Wielaard <mjw@redhat.com>
1874 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
1875 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
1877 2011-03-24 Mark Wielaard <mjw@redhat.com>
1880 * dwarf2out.c (output_abbrev_section): Only write table when
1881 abbrev_die_table_in_use > 1.
1883 2011-02-24 Richard Henderson <rth@redhat.com>
1885 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
1886 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
1887 (alpha_expand_unaligned_load_words): Use extql.
1888 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
1889 (emit_insxl): Handle all modes for consistency.
1891 2011-02-24 Richard Henderson <rth@redhat.com>
1893 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
1894 (alpha_expand_unaligned_load): Likewise.
1895 (alpha_expand_unaligned_store): Likewise.
1896 (alpha_expand_unaligned_load_words): Likewise.
1897 (alpha_expand_unaligned_store_words): Likewise.
1898 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
1899 (alpha_split_lock_test_and_set_12): Likewise.
1900 (print_operand, alpha_fold_builtin_extxx): Likewise.
1901 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
1902 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
1903 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
1904 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
1905 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
1906 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
1907 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
1908 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
1909 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
1910 (extwl, extll, extql): Similarly.
1911 (inswh, inslh, insqh): Similarly.
1912 (mskbl, mskwl, mskll, mskql): Similarly.
1913 (mskwh, msklh, mskqh): Similarly.
1915 2011-02-24 Richard Henderson <rth@redhat.com>
1917 * config/alpha/alpha.md (attribute isa): Add er, ner.
1918 (attribute enabled): Handle them.
1919 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
1921 2011-02-24 Richard Henderson <rth@redhat.com>
1923 * config/alpha/alpha.md (attribute isa): Add vms.
1924 (attribute enabled): Handle it.
1925 (*movsf): Merge *movsf_{nofix,fix,nofp}.
1926 (*movdf): Merge *movdf_{nofix,fix,nofp}.
1927 (*movtf): Rename from *movtf_internal for consistency.
1928 (*movsi): Merge with *movsi_nt_vms.
1929 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
1930 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
1931 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
1932 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
1934 2011-02-24 Richard Henderson <rth@redhat.com>
1936 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
1937 (extendqisi2, extendhisi2): Likewise.
1938 (extendqidi2): Simplify BWX/non-BWX expansions.
1939 (extendhidi2): Similarly.
1941 2011-02-24 Richard Henderson <rth@redhat.com>
1943 * config/alpha/alpha.md (attribute isa): New.
1944 (attribute enabled): New.
1945 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
1946 (zero_extendqisi2, zero_extendqidi2): Similarly.
1947 (zero_extendhisi2, zero_extendhidi2): Similarly.
1948 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
1950 2011-02-24 Richard Henderson <rth@redhat.com>
1952 * config/alpha/predicates.md (input_operand): Revert last change;
1953 update comment to mention 32-bit VMS rather than Windows.
1955 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
1957 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
1958 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
1959 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
1960 * passes.c (init_optimization_passes): Move
1961 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
1963 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
1965 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
1967 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
1969 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
1972 2011-03-24 Jakub Jelinek <jakub@redhat.com>
1975 * simplify-rtx.c (simplify_const_unary_operation): Call
1976 real_convert when changing mode class with FLOAT_EXTEND.
1978 2011-03-24 Nick Clifton <nickc@redhat.com>
1980 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
1981 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
1982 * config/rx/rx.c (rx_option_override): Set align_jumps,
1983 align_loops and align_labels if not set by the user.
1984 (rx_align_for_label): New function.
1985 (rx_max_skip_for_label): New function.
1986 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
1987 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
1988 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
1989 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
1990 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
1992 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
1994 PR rtl-optimization/48263
1995 * optabs.c (expand_binop_directly): Reinstate convert_modes code
1996 and original commutative_p handling. Use maybe_gen_insn.
1998 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2000 * reload.c (find_reloads_subreg_address): Add address_reloaded
2001 parameter and return true there if the full address has been
2003 (find_reloads_toplev): Pass address_reloaded flag.
2004 (find_reloads_address_1): Don't use address_reloaded parameter.
2006 2011-03-24 Jeff Law <law@redhat.com>
2008 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
2009 unused variable "ann".
2010 (remove_unused_locals): Likewise.
2012 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
2015 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
2018 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2020 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
2021 for invalid symbolic addresses.
2022 (s390_secondary_reload): Don't use s390_check_symref_alignment for
2025 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
2027 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
2028 the argument in calls to fold_truth_not_expr.
2030 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
2032 * tree.c (record_node_allocation_statistics): New function.
2033 (make_node_stat, copy_node_stat, build_string): Call it.
2034 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
2035 (build1_stat, build_omp_clause): Likewise.
2037 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
2039 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
2042 2011-03-24 Richard Guenther <rguenther@suse.de>
2044 PR tree-optimization/48271
2045 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
2046 blocks that still exist.
2048 2011-03-24 Richard Guenther <rguenther@suse.de>
2050 PR tree-optimization/48270
2051 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
2052 not free datarefs before ddrs.
2054 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
2056 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
2057 from the address built for a reference with variable offset.
2059 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
2062 * config/i386/i386.md (*movdf_internal_rex64): Do not split
2063 alternatives that can be handled with movq or movabsq insn.
2064 (*movdf_internal): Disable for !TARGET_64BIT.
2065 (*movdf_internal_nointeger): Ditto.
2066 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
2068 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
2070 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
2071 (FUNCTION_ARG_ADVANCE): Likewise.
2072 * tm.texi.in: Change references to them to hook references.
2073 * tm.texi: Regenerate.
2074 * targhooks.c (default_function_arg): Eliminate check for target macro.
2075 (default_function_incoming_arg): Likewise.
2076 (default_function_arg_advance): Likewise.
2077 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
2078 (function_arg_advance): Likewise.
2079 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
2081 2011-03-24 Richard Guenther <rguenther@suse.de>
2084 * tree-object-size.c (addr_object_size): Do not double-account
2085 for MEM_REF offsets.
2087 2011-03-24 Diego Novillo <dnovillo@google.com>
2089 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
2090 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
2091 (lto_input_data_block): Move from lto-opts.c. Make extern.
2093 (lto_input_string): Rename from input_string. Make extern.
2095 * lto-streamer-out.c (lto_output_string_with_length): Rename from
2096 output_string_with_length.
2097 Output 0 to indicate a non-NULL string. Update all callers to
2099 (lto_output_string): Rename from output_string. Make extern.
2101 (lto_output_decl_state_streams): Make extern.
2102 (lto_output_decl_state_refs): Make extern.
2103 * lto-streamer.h (lto_input_string): Declare.
2104 (lto_input_data_block): Declare.
2105 (lto_output_string): Declare.
2106 (lto_output_string_with_length): Declare.
2107 (lto_output_decl_state_streams): Declare.
2108 (lto_output_decl_state_refs): Declare.
2110 2011-03-24 Richard Guenther <rguenther@suse.de>
2112 PR tree-optimization/46562
2113 * tree.c (build_invariant_address): New function.
2114 * tree.h (build_invariant_address): Declare.
2115 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
2116 a renamed function moved ...
2117 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
2118 Take valueization callback parameter.
2119 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
2120 * gimple-fold.h: New file.
2121 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
2122 (ccp_fold, fold_const_aggregate_ref,
2123 fold_ctor_reference, fold_nonarray_ctor_reference,
2124 fold_array_ctor_reference, fold_string_cst_ctor_reference,
2125 get_base_constructor): Move ...
2126 * gimple-fold.c: ... here.
2127 (gimple_fold_stmt_to_constant_1): New function
2128 split out from ccp_fold. Take a valueization callback parameter.
2129 Valueize all operands.
2130 (gimple_fold_stmt_to_constant): New wrapper function.
2131 (fold_const_aggregate_ref_1): New function split out from
2132 fold_const_aggregate_ref. Take a valueization callback parameter.
2133 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
2134 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
2135 invariant POINTER_PLUS_EXPRs to invariant form.
2136 (vn_valueize): New function.
2137 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
2138 * tree-vrp.c (vrp_valueize): New function.
2139 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
2140 to fold statements to constants.
2141 * tree-ssa-pre.c (eliminate): Properly guard propagation of
2142 function declarations.
2143 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
2144 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
2146 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
2148 * config/h8300/predicates.md (jump_address_operand): Fix register
2151 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
2153 * doc/invoke.texi (max-stores-to-sink): Document.
2154 * params.h (MAX_STORES_TO_SINK): Define.
2155 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
2156 if either vectorization or if-conversion is disabled.
2157 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
2158 tree-vect-data-refs.c vect_equal_offsets.
2159 (dr_equal_offsets_p): New function.
2160 (find_data_references_in_bb): Remove static.
2161 * tree-data-ref.h (find_data_references_in_bb): Declare.
2162 (dr_equal_offsets_p): Likewise.
2163 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
2164 (vect_drs_dependent_in_basic_block): Update calls to
2166 (vect_check_interleaving): Likewise.
2167 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
2168 (cond_if_else_store_replacement): Rename to...
2169 (cond_if_else_store_replacement_1): ... this. Change arguments and
2171 (cond_if_else_store_replacement): New function.
2172 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
2173 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
2175 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
2178 * config/arm/arm.md (casesi): Use the gen_int_mode() function
2179 to subtract lower bound instead of GEN_INT().
2181 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
2186 * doc/extend.texi (Alignment): Move section to match order in TOC.
2187 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
2188 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
2190 2011-03-23 Jeff Law <law@redhat.com>
2192 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
2193 before removing the edge.
2195 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
2196 it may have been freed by redirect_branch_edge or
2197 redirect_edge_succ_nodup.
2199 2011-03-23 Richard Guenther <rguenther@suse.de>
2201 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
2202 (check_va_list_escapes): Likewise.
2203 (check_all_va_list_escapes): Likewise.
2205 2011-03-23 Richard Guenther <rguenther@suse.de>
2207 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
2208 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
2209 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
2210 (alias.o): Likewise.
2211 (ipa-type-escape.o): Remove.
2212 (ipa-struct-reorg.o): Likewise.
2213 (GTFILES): Remove ipa-struct-reorg.c.
2214 * alias.c: Do not include ipa-type-escape.h.
2215 * tree-ssa-alias.c: Likewise.
2216 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
2217 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
2218 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
2219 and ipa-type-escape passes.
2220 * tree-pass.h (pass_ipa_type_escape): Remove.
2221 (pass_ipa_struct_reorg): Likewise.
2222 * ipa-struct-reorg.h: Remove.
2223 * ipa-struct-reorg.c: Likewise.
2224 * ipa-type-escape.h: Likewise.
2225 * ipa-type-escape.c: Likewise.
2226 * doc/invoke.texi (-fipa-struct-reorg): Remove.
2227 (--param struct-reorg-cold-struct-ratio): Likewise.
2228 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
2229 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
2230 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
2232 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2234 * config/s390/2084.md: Enable all insn reservations also for z9_ec
2235 cpu attribute value.
2236 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
2237 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
2238 * config/s390/s390.c (processor_flags_table): New constant array.
2239 (s390_handle_arch_option): Remove.
2240 (s390_handle_option): Remove s390_handle_arch_option invocations
2241 and OPT_mwarn_framesize_ handling.
2242 (s390_option_override): Remove s390_handle_arch_option invocation.
2243 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
2245 * config/s390/s390.md (cpu attribute): Add z9_ec value.
2246 * config/s390/s390.opt (s390_tune, s390_arch)
2247 (march=): Replace s390_arch_option enum and values with
2248 processor_type. Set variable name to s390_arch. Set
2249 initialization value.
2250 (mtune=): Replace s390_arch_option with processor_type. Set
2251 variable name to s390_tune. Set initialization value.
2253 2011-03-23 Julian Brown <julian@codesourcery.com>
2255 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
2256 accesses which are not naturally aligned.
2258 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
2261 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
2263 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
2265 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
2266 parameter from "int" to "enum insn_code".
2267 (expand_operand_type): New enum.
2268 (expand_operand): New structure.
2269 (create_expand_operand): New function.
2270 (create_fixed_operand, create_output_operand): Likewise
2271 (create_input_operand, create_convert_operand_to): Likewise.
2272 (create_convert_operand_from, create_address_operand): Likewise.
2273 (create_integer_operand): Likewise.
2274 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
2275 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
2276 (expand_insn, expand_jump_insn): Likewise.
2277 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
2278 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
2279 (expand_movstr, expand_builtin___clear_cache): Likewise.
2280 (expand_builtin_lock_release): Likewise.
2281 * explow.c (allocate_dynamic_stack_space): Likewise.
2282 (probe_stack_range): Likewise. Allow check_stack to FAIL,
2283 and use the default handling in that case.
2284 * expmed.c (check_predicate_volatile_ok): Delete.
2285 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
2286 (emit_cstore): Likewise.
2287 * expr.c (emit_block_move_via_movmem): Likewise.
2288 (set_storage_via_setmem, expand_assignment): Likewise.
2289 (emit_storent_insn, try_casesi): Likewise.
2290 (emit_single_push_insn): Likewise. Allow the expansion to fail.
2291 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
2292 (expand_vec_shift_expr, expand_binop_directly): Likewise.
2293 (expand_twoval_unop, expand_twoval_binop): Likewise.
2294 (expand_unop_direct, emit_indirect_jump): Likewise.
2295 (emit_conditional_move, vector_compare_rtx): Likewise.
2296 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
2297 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
2298 (expand_sync_lock_test_and_set): Likewise.
2299 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
2300 (emit_unop_insn): Likewise.
2301 (expand_copysign_absneg): Change icode to an insn_code.
2302 (create_convert_operand_from_type): New function.
2303 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
2304 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
2305 (expand_insn, expand_jump_insn): Likewise.
2306 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
2307 than const_int_operand for operand 2.
2309 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2311 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
2314 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
2316 * emit-rtl.c (emit_pattern_before_noloc): New function.
2317 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
2318 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
2319 (emit_pattern_after_noloc): New function.
2320 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
2321 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
2323 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
2325 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
2326 (__ffsDI2): Likewise.
2328 2011-03-22 Richard Henderson <rth@redhat.com>
2330 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
2331 of !TARGET_ABI_OPEN_VMS.
2332 (alpha_trampoline_init, alpha_start_function): Likewise.
2333 (alpha_expand_epilogue, alpha_file_start): Likewise.
2334 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
2335 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
2336 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
2337 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
2338 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
2340 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2342 * config/s390/s390-opts.h: New.
2343 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
2344 s390_arch_flags, s390_warn_framesize, s390_stack_size,
2345 s390_stack_guard): Remove.
2346 (s390_handle_arch_option): Return void. Take enum
2347 s390_arch_option value instead of string and searching array.
2348 (s390_handle_option): Don't assert that global structures are in
2349 use. Access variables via opts pointer. Use error_at. Don't use
2350 sscanf for -mstack-guard= or -mstack-size=. Update call to
2351 s390_handle_arch_option.
2352 (s390_option_override): Update call to s390_handle_arch_option.
2353 (s390_emit_prologue): Use %d format for s390_stack_size in
2354 diagnostic. Use %wd for HOST_WIDE_INT.
2355 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
2356 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
2357 * config/s390/s390.opt (config/s390/s390-opts.h): New
2358 HeaderInclude entry.
2359 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
2360 s390_arch_flags, s390_warn_framesize): New Variable entries.
2361 (s390_arch_option): New Enum and EnumValue entries.
2362 (march=): Use Enum instead of Var.
2363 (mstack-guard=, mstack-size=): Use UInteger and Var.
2366 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2368 * config/score/score.c (score_handle_option): Don't assert that
2369 global structures are in use. Access target_flags via opts
2370 pointer. Use value of -march= option to determine target_flags
2372 * config/score/score.opt (march=): Use Enum.
2373 (score_arch): New Enum and EnumValue entries.
2375 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2377 * config/mep/mep.c (option_mtiny_specified): Remove.
2378 (mep_option_override): Move register handling for -mivc2 from
2379 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
2380 instead of option_mtiny_specified.
2381 (mep_handle_option): Access target_flags via opts pointer. Don't
2382 assert that global structures are in use. Defer part of -mivc2
2383 handling and move it to mep_option_override.
2384 * config/mep/mep.opt (IVC2): New Mask entry.
2385 (mivc2): Use Var and Defer instead of Mask.
2387 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2389 * config/v850/v850-opts.h: New.
2390 * config/v850/v850.c (small_memory): Replace with
2391 small_memory_physical_max array. Make that array static const.
2392 (v850_handle_memory_option): Take integer value of argument. Take
2393 gcc_options pointer, option text and location. Return void.
2394 Update for changes to small memory structures.
2395 (v850_handle_option): Access target_flags via opts pointer. Don't
2396 assert that global structures are in use. Update calls to
2397 v850_handle_memory_option.
2398 (v850_encode_data_area): Update references to small memory settings.
2399 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
2400 (enum small_memory_type): Move to v850-opts.h.
2401 * config/v850/v850.opt (config/v850/v850-opts.h): New
2402 HeaderInclude entry.
2403 (small_memory_max): New Variable entry.
2404 (msda): Replace by pair of options msda= and msda-. Use UInteger.
2405 (mtda, mzda): Likewise.
2407 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2409 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
2410 pointer. Don't assert that global structures are in use.
2412 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2414 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
2415 via opts pointer. Don't assert that global structures are in use.
2417 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2419 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
2420 (munix=93): Use Var.
2421 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
2422 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
2423 * config/pa/pa-opts.h: New.
2424 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
2425 (pa_handle_option): Don't assert that global structures are in
2426 use. Access target_flags via opts pointer. Don't handle
2427 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
2429 (pa_option_override): Handle deferred OPT_mfixed_range_.
2431 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2433 * config/mn10300/mn10300-opts.h: New.
2434 * config/mn10300/mn10300.c (mn10300_processor,
2435 mn10300_tune_string): Remove.
2436 (mn10300_handle_option): Don't assert that global structures are
2437 in use. Access mn10300_processor via opts pointer. Don't handle
2439 * config/mn10300/mn10300.h (enum processor_type): Move to
2441 (mn10300_processor): Remove.
2442 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
2443 HeaderInclude entry.
2444 (mn10300_processor): New Variable entry.
2447 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2449 * config/microblaze/microblaze.c: Don't include opts.h.
2450 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
2451 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
2452 (mno-clearbss): Use Var and Warn.
2454 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2456 * config/m32r/m32r-opts.h: New.
2457 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
2458 (m32r_handle_option): Don't assert that global structures are in
2459 use. Access target_flags and m32r_cache_flush_func via opts
2460 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
2461 OPT_mno_flush_trap here.
2462 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
2463 include of m32r-opts.h.
2464 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
2465 HeaderInclude entry.
2466 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
2467 (mmodel=): Use Enum and Var.
2468 (m32r_model): New Enum and EnumValue entries.
2469 (mno-flush-trap): Use Var.
2470 (msdata=): Use Enum and Var.
2471 (m32r_sdata): New Enum and EnumValue entries.
2473 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2475 * config/m32c/m32c.c: Don't include opts.h.
2476 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
2477 m32c_handle_option): Remove.
2478 (m32c_option_override): Check global_options_set.x_target_memregs
2479 instead of target_memregs_set.
2480 * config/m32c/m32c.h (target_memregs): Remove.
2481 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
2484 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2486 * config/iq2000/iq2000-opts.h: New.
2487 * config/iq2000/iq2000.c: Don't include opts.h.
2488 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
2489 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
2490 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
2491 HeaderInclude entry.
2492 (iq2000_tune): New Variable entry.
2493 (march=): Add comment. Use Enum.
2494 (iq2000_arch): New Enum and EnumValue entries.
2495 (mcpu=): Use Enum and Var.
2496 (iq2000_tune): New Enum and EnumValue entries.
2498 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2500 * config/ia64/ia64-opts.h: New.
2501 * config/ia64/ia64.c (ia64_tune): Remove.
2502 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
2504 (ia64_option_override): Handle deferred OPT_mfixed_range_.
2505 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
2506 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
2507 HeaderInclude entry.
2508 (ia64_tune): New Variable entry.
2509 (mfixed-range=): Use Defer and Var.
2510 (mtune=): Use Enum and Var.
2511 (ia64_tune): New Enum and EnumValue entries.
2513 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2515 * config/frv/frv-opts.h: New.
2516 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
2518 (frv_cpu_type): Remove.
2519 * config/frv/frv.c: Don't include opts.h.
2520 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
2521 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
2522 (frv_cpu_type): New Variable entry.
2523 (frv_cpu): New Enum and EnumValue entries.
2525 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2527 * config/cris/cris.c (cris_handle_option): Access target_flags via
2528 opts pointer. Don't assert that global structures are in use.
2529 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
2530 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
2532 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2534 * config/bfin/bfin-opts.h: New.
2535 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
2536 bfin_si_revision, bfin_workarounds): Remove.
2537 (bfin_cpus): Make static const.
2538 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
2539 not bfin_lib_id_given.
2540 (bfin_handle_option): Don't set bfin_lib_id_given. Access
2541 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
2542 pointer. Use error_at. Don't assert that global structures are in use.
2543 * config/bfin/bfin.h: Include bfin-opts.h.
2544 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
2545 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
2546 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
2547 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
2550 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2552 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
2553 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
2554 or -msoft-float here.
2555 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
2556 -msoft-float and -mhard-float.
2557 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
2558 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
2560 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
2562 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
2563 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
2565 (LIBGCC_SPEC): Don't handle -msoft-float.
2566 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
2568 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
2570 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
2571 -mfloat-abi=*, not -msoft-float and -mhard-float.
2572 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
2574 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
2575 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
2576 mhard-float and msoft-float.
2577 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
2578 mfloat-abi=soft in comments, not mhard-float and msoft-float.
2579 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
2580 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
2582 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
2583 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
2585 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
2587 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
2590 2011-03-22 Richard Henderson <rth@redhat.com>
2592 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
2593 TARGET_ABI_WINDOWS_NT.
2594 (alpha_output_function_end_prologue): Likewise.
2595 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
2596 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
2597 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
2598 (trap, *movsi_nt_vms): Likewise.
2599 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
2600 (*tablejump_osf_nt_internal): Remove.
2601 * config/alpha/predicates.md (input_operand): Only test Pmode.
2603 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2605 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
2606 via opts pointer. Use error_at. Don't assert that global
2607 structures are in use.
2609 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2611 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
2612 (ix86_handle_option): Access ix86_isa_flags and
2613 ix86_isa_flags_explicit via opts pointer. Don't assert that
2614 global structures are in use.
2615 (ix86_function_specific_save, ix86_function_specific_restore):
2616 Update ix86_isa_flags_explicit field name.
2617 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
2618 (ix86_isa_flags_explicit): Rename TargetSave entry to
2619 x_ix86_isa_flags_explicit.
2621 2011-03-22 Richard Henderson <rth@redhat.com>
2623 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
2624 (alpha_option_override, direct_return): Likewise.
2625 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
2626 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
2627 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
2628 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
2629 (alpha_expand_epilogue, alpha_end_function): Likewise.
2630 (alpha_init_libfuncs): Likewise.
2631 (struct machine_function): Remove unicosmk members.
2632 (print_operand) ['t']: Remove.
2633 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
2634 unicosmk_output_module_name, unicosmk_output_common,
2635 current_section_align, unicosmk_output_text_section_asm_op,
2636 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
2637 unicosmk_section_type_flags, unicosmk_unique_section,
2638 unicosmk_asm_named_section, unicosmk_insert_attributes,
2639 unicosmk_output_align, unicosmk_defer_case_vector,
2640 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
2641 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
2642 unicosmk_output_ssib, unicosmk_add_call_info_word,
2643 unicosmk_extern_head, unicosmk_output_default_externs,
2644 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
2645 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
2646 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
2647 * config/alpha/alpha-protos.h: Update.
2648 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
2649 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
2650 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
2651 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
2652 (*mulsi_se, mulvsi3): Likewise.
2653 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
2654 (*divmodsi_internal, call, call_value, realign): Likewise.
2655 (moddi3, umoddi3): Likewise; remove duplicate expander.
2656 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
2657 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
2658 (*movdi_nofix): Remove r/U alternative.
2659 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
2660 * config/alpha/constraints.md ("U"): Remove.
2661 * config/alpha/predicates.md (call_operand"): Don't test
2662 TARGET_ABI_UNICOSMK.
2664 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2666 * target.def (handle_option): Take gcc_options and
2667 cl_decoded_option pointers and location_t.
2668 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
2669 * doc/tm.texi: Regenerate.
2670 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
2671 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
2672 * lto-opts.c (lto_reissue_options): Generate option structure for
2673 targetm.handle_option call.
2674 * opts.c (target_handle_option): Update call to
2675 targetm.handle_option. Remove assertions about values now passed
2677 * targhooks.c (default_target_handle_option): New.
2678 * targhooks.h (default_target_handle_option): Declare.
2679 * config/alpha/alpha.c: Include opts.h.
2680 (alpha_handle_option): Update to new hook interface.
2681 * config/arm/arm.c: Include opts.h.
2682 (arm_handle_option): Update to new hook interface.
2683 * config/arm/t-arm (arm.o): Update dependencies.
2684 * config/bfin/bfin.c: Include opts.h.
2685 (bfin_handle_option): Update to new hook interface.
2686 * config/cris/cris.c: Include opts.h.
2687 (cris_handle_option): Update to new hook interface.
2688 * config/frv/frv.c: Include opts.h.
2689 (frv_handle_option): Update to new hook interface.
2690 * config/i386/i386.c: Include opts.h.
2691 (ix86_handle_option): Update to new hook interface.
2692 (ix86_valid_target_attribute_inner_p): Generate option structure
2693 for call to ix86_handle_option.
2694 * config/i386/t-i386 (i386.o): Update dependencies.
2695 * config/ia64/ia64.c: Include opts.h.
2696 (ia64_handle_option): Update to new hook interface.
2697 * config/ia64/t-ia64 (ia64.o): Update dependencies.
2698 * config/iq2000/iq2000.c: Include opts.h.
2699 (iq2000_handle_option): Update to new hook interface.
2700 * config/m32c/m32c.c: Include opts.h.
2701 (m32c_handle_option): Update to new hook interface.
2702 * config/m32r/m32r.c: Include opts.h.
2703 (m32r_handle_option): Update to new hook interface.
2704 * config/m68k/m68k.c: Include opts.h.
2705 (m68k_handle_option): Update to new hook interface.
2706 * config/mep/mep.c: Include opts.h.
2707 (mep_handle_option): Update to new hook interface.
2708 * config/microblaze/microblaze.c: Include opts.h.
2709 (microblaze_handle_option): Update to new hook interface.
2710 * config/mips/mips.c: Include opts.h.
2711 (mips_handle_option): Update to new hook interface.
2712 * config/mn10300/mn10300.c: Include opts.h.
2713 (mn10300_handle_option): Update to new hook interface.
2714 * config/pa/pa.c: Include opts.h.
2715 (pa_handle_option): Update to new hook interface.
2716 * config/pdp11/pdp11.c: Include opts.h.
2717 (pdp11_handle_option): Update to new hook interface.
2718 * config/rs6000/rs6000.c: Include opts.h.
2719 (rs6000_handle_option): Update to new hook interface.
2720 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
2721 * config/rx/rx.c: Include opts.h.
2722 (rx_handle_option): Update to new hook interface.
2723 * config/s390/s390.c: Include opts.h.
2724 (s390_handle_option): Update to new hook interface.
2725 * config/score/score.c: Include opts.h.
2726 (score_handle_option): Update to new hook interface.
2727 * config/sh/sh.c: Include opts.h.
2728 (sh_handle_option): Update to new hook interface.
2729 * config/sparc/sparc.c: Include opts.h.
2730 (sparc_handle_option): Update to new hook interface.
2731 * config/v850/v850.c: Include opts.h.
2732 (v850_handle_option): Update to new hook interface.
2734 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2736 * gcc.c (driver_unknown_option_callback): Only permit and save
2737 unknown -Wno- options.
2738 (driver_wrong_lang_callback): Save options directly instead of via
2739 driver_unknown_option_callback.
2741 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2743 * combine.c (simplify_set): Try harder to find the best CC mode when
2744 simplifying a nested COMPARE on the RHS.
2746 2011-03-22 Joseph Myers <joseph@codesourcery.com>
2748 * config/alpha/gnu.h: Remove.
2749 * config/arc: Remove directory.
2750 * config/arm/netbsd.h: Remove.
2751 * config/arm/t-pe: Remove.
2752 * config/crx: Remove directory.
2753 * config/i386/netbsd.h: Remove.
2754 * config/m68hc11: Remove directory.
2755 * config/m68k/uclinux-oldabi.h: Remove.
2756 * config/mcore/mcore-pe.h: Remove.
2757 * config/mcore/t-mcore-pe: Remove.
2758 * config/netbsd-aout.h: Remove.
2759 * config/rs6000/gnu.h: Remove.
2760 * config/sh/sh-symbian.h: Remove.
2761 * config/sh/symbian-base.c: Remove.
2762 * config/sh/symbian-c.c: Remove.
2763 * config/sh/symbian-cxx.c: Remove.
2764 * config/sh/symbian-post.h: Remove.
2765 * config/sh/symbian-pre.h: Remove.
2766 * config/sh/t-symbian: Remove.
2767 * config/svr3.h: Remove.
2768 * config/vax/netbsd.h: Remove.
2769 * config.build: Don't handle i[34567]86-*-pe.
2770 * config.gcc: Remove handling of deprecations for most deprecated
2772 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
2773 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
2774 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
2775 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
2776 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
2777 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
2779 * config.host: Don't handle i[34567]86-*-pe.
2780 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
2781 (ASM_SPEC32): Don't handle -mcall-gnu.
2782 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
2784 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
2785 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
2786 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
2787 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
2788 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
2789 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
2790 conditional on SYMBIAN.
2791 * configure.ac: Don't handle powerpc*-*-gnu*.
2792 * configure: Regenerate.
2793 * doc/extend.texi (interrupt attribute): Don't mention CRX.
2794 * doc/install-old.texi (m6811, m6812): Don't mention.
2795 * doc/install.texi (arc-*-elf*): Don't document multilib option.
2796 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
2797 (m68k-uclinuxoldabi): Don't mention.
2798 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
2800 (-mcall-gnu): Remove.
2801 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
2802 families): Remove constraint documentation.
2804 2011-03-22 Marius Strobl <marius@FreeBSD.org>
2806 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
2807 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
2808 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
2810 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
2812 * config/avr/avr-protos.h (expand_epilogue): Change prototype
2813 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
2814 * config/avr/avr.c (init_cumulative_args)
2815 (avr_function_arg_advance): Use it.
2816 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
2818 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
2819 (avr_function_ok_for_sibcall): ...this new function.
2820 (avr_lookup_function_attribute1): New static Function.
2821 (avr_naked_function_p, interrupt_function_p)
2822 (signal_function_p, avr_OS_task_function_p)
2823 (avr_OS_main_function_p): Use it.
2824 * config/avr/avr.md ("sibcall", "sibcall_value")
2825 ("sibcall_epilogue"): New expander.
2826 ("*call_insn", "*call_value_insn"): New insn.
2827 ("call_insn", "call_value_insn"): Remove
2828 ("call", "call_value", "epilogue"): Change expander to handle
2831 2011-03-21 Nick Clifton <nickc@redhat.com>
2833 * doc/invoke.texi (Overall Options): Move closing brace to end of
2835 (Optimization Options): Add missing @gol.
2836 (Directory Options): Likewise.
2837 (i386 and x86-64 Options): Likewise.
2838 (RS6000 and PowerPC Options): Likewise.
2839 (i386 and x86-64 Windows Options): Likewise.
2840 (V850 Options): Add text missing from descriptions.
2842 2011-03-22 Richard Henderson <rth@redhat.com>
2844 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
2845 (avr_incoming_return_addr_rtx): New.
2846 (emit_push_byte): New.
2847 (expand_prologue): Use it. Remove incorrect dwarf annotation for
2848 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
2849 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
2850 (emit_pop_byte): New.
2851 (expand_epilogue): Use it. Pop frame pointer by bytes.
2852 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
2853 (INCOMING_RETURN_ADDR_RTX): New.
2854 (INCOMING_FRAME_SP_OFFSET): New.
2855 (ARG_POINTER_CFA_OFFSET): New.
2856 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
2857 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
2860 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
2862 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
2864 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
2865 (FUNCTION_ARG_ADVANCE): Likewise.
2866 * tm.texi.in: Change references to them to hook references.
2867 * tm.texi: Regenerate.
2868 * targhooks.c (default_function_arg): Eliminate check for target
2870 (default_function_incoming_arg): Likewise.
2871 (default_function_arg_advance): Likewise.
2872 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
2873 (function_arg_advance): Likewise.
2874 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
2876 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
2878 * tree.c (build_call_1): New function.
2879 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
2881 2011-03-22 Richard Guenther <rguenther@suse.de>
2883 PR tree-optimization/48228
2884 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
2885 for single-arg PHIs.
2887 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
2889 PR rtl-optimization/48143
2890 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
2891 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
2892 sse2_cvtps2pd): Likewise.
2894 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2896 * recog.c (canonicalize_change_group): Use validate_unshare_change.
2898 2011-03-22 Richard Guenther <rguenther@suse.de>
2900 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
2901 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
2902 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
2903 and REALIGN_LOAD_EXPR.
2904 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
2905 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
2906 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
2907 DOT_PROD_EXPR case ...
2908 (expand_expr_real_2): ... here.
2909 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
2910 and REALIGN_LOAD_EXPR.
2911 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
2912 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
2913 (vect_create_epilog_for_reduction): Likewise.
2914 (vectorizable_reduction): Likewise.
2915 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
2916 * tree-vect-stmts.c (vectorizable_load): Likewise.
2918 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2920 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
2922 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2924 * config/s390/s390.c (s390_delegitimize_address): Fix offset
2925 handling for PLTOFF/GOTOFF.
2927 2011-03-22 Nick Clifton <nickc@redhat.com>
2929 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
2930 trailing backslash from the end of the macro definition.
2932 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2934 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
2937 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
2939 * expr.h (prepare_operand): Move to...
2940 * optabs.h (prepare_operand): ...here and change the insn code
2941 parameter from "int" to "enum insn_code".
2942 (insn_operand_matches): Declare.
2943 * expr.c (init_expr_target): Use insn_operand_matches.
2944 (compress_float_constant): Likewise.
2945 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
2946 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
2947 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
2948 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
2950 (gen_cond_trap): Likewise.
2951 (prepare_operand): Likewise. Change icode to an insn_code.
2952 (insn_operand_matches): New function.
2953 * reload.c (find_reloads_address_1): Use insn_operand_matches.
2954 * reload1.c (gen_reload): Likewise.
2955 * targhooks.c (default_secondary_reload): Likewise.
2957 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
2959 * config/alpha/alpha.md (unspec): New define_c_enum.
2962 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
2965 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
2966 between a call and its CALL_ARG_LOCATION note.
2968 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
2970 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
2972 2011-03-21 Jakub Jelinek <jakub@redhat.com>
2976 * c-common.c (shorten_compare): If primopN is first sign-extended
2977 to opN and then zero-extended to result type, set primopN to opN.
2979 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
2981 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
2982 for barrier handlers.
2984 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
2986 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
2987 UNSPEC constants to be in the unspec enumeration, and redefine
2988 all UNSPECV constants to be in the unspecv enumeration, so that
2989 dumps print which unspec/unspec_volatile this is.
2990 * config/rs6000/vector.md (UNSPEC_*): Ditto.
2991 * config/rs6000/paired.md (UNSPEC_*): Ditto.
2992 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
2993 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
2994 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
2996 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
2997 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
2998 UNSPECV_LWSYNC, since these are used as unspec_volatile.
2999 * config/rs6000/sync.md (isync, lwsync): Ditto.
3001 2011-03-21 Richard Guenther <rguenther@suse.de>
3003 * params.def (lto-min-partition): Fix typo.
3005 2011-03-21 Richard Guenther <rguenther@suse.de>
3008 * c-decl.c (grokdeclarator): Drop to the main variant only
3009 for array types. Drop flag_gen_aux_info check.
3011 2011-03-21 Richard Guenther <rguenther@suse.de>
3013 PR translation/47911
3014 * params.def (lto-partitions): Fix typo.
3015 (lto-min-partition): Fix wording.
3017 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
3019 * config/rs6000/t-freebsd: Remove duplication from file.
3021 2011-03-21 Richard Guenther <rguenther@suse.de>
3024 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
3026 2011-03-21 Richard Guenther <rguenther@suse.de>
3029 * params.def (lto-partitions): Require at least 1 partition.
3031 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3033 * gthr-solaris.h: Remove.
3034 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
3035 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
3036 (LIB_SPEC): Likewise.
3037 * config/sol2.opt (threads): Remove.
3038 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
3039 (sparc*-*-solaris2*): Likewise.
3040 * configure.ac (enable_threads): Enable solaris support.
3041 * configure: Regenerate.
3042 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
3043 * doc/install.texi (Configuration, --enable-threads=lib): Remove
3046 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3048 * config.gcc: Obsolete *-*-solaris2.8*.
3049 * doc/install.texi (Specific, *-*-solaris2*): Document it.
3051 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3054 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
3055 reference. Solaris 8 perl works.
3057 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3060 * doc/install.texi (Prerequisites): Move jar etc. up.
3061 Explain support library version requirements.
3063 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3066 * doc/install.texi (Prerequisites): Move Perl to build
3067 requirements. Always necessary on Solaris 2 with Sun ld.
3069 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3071 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
3073 (Specific, i?86-*-solaris2.[89]): Likewise.
3074 (Specific, i?86-*-solaris2.10): Likewise.
3075 (Specific, mips-sgi-irix6): Likewise.
3076 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
3077 Update for binutils 2.21.
3079 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3081 * configure.ac (gcc_cv_lto_plugin): Fix typo.
3082 Allow -fuse-linker-plugin for non-default plugin linker.
3083 * configure: Regenerate.
3085 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
3088 * gengtype.c (files_rules): Added rule for cp/parser.h.
3090 2011-03-21 Jakub Jelinek <jakub@redhat.com>
3093 * config/s390/s390.c (s390_delegitimize_address): Don't call
3094 lowpart_subreg if orig_x has BLKmode.
3096 2011-03-21 Kai Tietz <ktietz@redhat.com>
3099 * doc/plugins.texi: Adjust documentation for plugin register_callback.
3100 * tree.h (attribute_spec): Add new member affects_type_identity.
3101 * attribs.c (empty_attribute_table): Adjust attribute_spec
3103 * config/alpha/alpha.c: Likewise.
3104 * config/arc/arc.c: Likewise.
3105 * config/arm/arm.c: Likewise.
3106 * config/avr/avr.c: Likewise.
3107 * config/bfin/bfin.c: Likewise.
3108 * config/crx/crx.c: Likewise.
3109 * config/darwin.h: Likewise.
3110 * config/h8300/h8300.c: Likewise.
3111 * config/i386/cygming.h: Likewise.
3112 * config/i386/i386.c: Likewise.
3113 * config/ia64/ia64.c: Likewise.
3114 * config/m32c/m32c.c: Likewise.
3115 * config/m32r/m32r.c: Likewise.
3116 * config/m68hc11/m68hc11.c: Likewise.
3117 * config/m68k/m68k.c: Likewise.
3118 * config/mcore/mcore.c: Likewise.
3119 * config/mep/mep.c: Likewise.
3120 * config/microblaze/microblaze.c: Likewise.
3121 * config/mips/mips.c: Likewise.
3122 * config/rs6000/rs6000.c: Likewise.
3123 * config/rx/rx.c: Likewise.
3124 * config/sh/sh.c: Likewise.
3125 * config/sol2.h: Likewise.
3126 * config/sparc/sparc.c: Likewise.
3127 * config/spu/spu.c: Likewise.
3128 * config/stormy16/stormy16.c: Likewise.
3129 * config/v850/v850.c: Likewise.
3131 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
3133 * simplify-rtx.c (simplify_binary_operation_1): Handle
3134 (xor (and A B) C) case when B and C are both constants.
3136 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
3138 * tree-dfa.c (add_referenced_var): Fix typo in comment.
3140 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
3143 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
3145 2011-03-20 Jakub Jelinek <jakub@redhat.com>
3147 PR rtl-optimization/48156
3148 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
3149 assume df and df_lr are not NULL.
3151 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3154 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
3155 between a call and its CALL_ARG_LOCATION note.
3157 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
3160 * config/sh/sh.c (find_barrier): Don't emit a constant pool
3161 between a call and its corresponding CALL_ARG_LOCATION note.
3163 2011-03-19 Anatoly Sokolov <aesok@post.ru>
3165 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
3166 instead of loop. Use HARD_REGISTER_NUM_P predicate.
3167 * haifa-sched.c (setup_ref_regs): Ditto.
3168 * caller-save.c (add_used_regs_1): Ditto.
3169 * dse.c (look_for_hardregs): Ditto.
3170 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
3171 * sched-rgn.c (check_live_1): Ditto.
3173 2011-03-18 Joseph Myers <joseph@codesourcery.com>
3175 * c-decl.c (diagnose_mismatched_decls): Give an error for
3176 redefining a typedef with variably modified type.
3178 2011-03-18 Joseph Myers <joseph@codesourcery.com>
3180 * c-decl.c (grokfield): Don't allow typedefs for structures or
3181 unions with no tag by default.
3182 * doc/extend.texi (Unnamed Fields): Update.
3184 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
3186 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
3187 Rewrite using indirect functions.
3188 (lwp_slwpcb): Ditto.
3189 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
3190 (avx_vinsertf128<mode>): Ditto.
3192 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3194 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
3197 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3199 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
3200 splitting between a call and its corresponding CALL_ARG_LOCATION note.
3202 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
3204 PR rtl-optimization/48170
3205 * gcse.c (hoist_code): Remove bogus asserts.
3207 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
3209 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
3210 computation for prologue/epilogue.
3212 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3214 * Makefile.in (check-consistency): Remove.
3216 2011-03-18 Jakub Jelinek <jakub@redhat.com>
3219 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
3220 arange_table_in_use is 0, but either text_section_used or
3221 cold_text_section_used is true. Don't call it if
3222 !info_section_emitted.
3224 2011-03-18 Anatoly Sokolov <aesok@post.ru>
3226 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
3227 FUNCTION_VALUE_REGNO_P): Remove.
3228 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
3230 * config/avr/avr.c (avr_ret_register): Make static inline.
3231 (avr_function_value_regno_p): New function.
3232 (avr_libcall_value): Make static. Add 'func' argument.
3233 (avr_function_value): Make static. Rename 'func' argument to
3234 'fn_decl_or_type', forward it to avr_libcall_value. Call
3235 avr_ret_register function instead of RET_REGISTER macro.
3236 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
3238 2011-03-18 Jason Merrill <jason@redhat.com>
3241 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
3243 2011-03-18 Richard Guenther <rguenther@suse.de>
3245 * doc/install.texi (--enable-gold): Remove.
3246 (--with-plugin-ld): Document.
3247 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
3249 2011-03-18 Andrew Pinski <pinskia@gmail.com>
3252 * expr.c (optimize_bitfield_assignment_op): Revamp to work
3253 again after expansion changes.
3255 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
3257 * combine.c (try_combine): Do simplification only call of
3258 subst() on i2 even when i1 is present. Update comments.
3260 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
3262 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
3263 and UNSPEC_PCREL_SYMOFF.
3265 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3267 * config/s390/s390.md: Use define_c_enum for the unspec constant
3270 2011-03-18 Richard Henderson <rth@redhat.com>
3271 Jakub Jelinek <jakub@redhat.com>
3274 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
3275 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
3277 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
3280 * combine.c (cant_combine_insn_p): Don't check zero/sign
3281 extended hard registers.
3283 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
3286 * combine.c (cant_combine_insn_p): Check zero/sign extended
3289 2011-03-17 Anatoly Sokolov <aesok@post.ru>
3291 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
3292 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
3293 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
3294 Change return type to bool.
3295 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
3297 2011-03-17 Jakub Jelinek <jakub@redhat.com>
3300 * var-tracking.c (prepare_call_arguments): If CALL target
3301 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
3302 pc instead of looking it up using cselib_lookup and use
3303 Pmode for it if x has VOIDmode.
3304 * dwarf2out.c (gen_subprogram_die): If also both first and
3305 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
3308 * function.c (assign_parms): For data.passed_pointer parms
3309 use MEM of data.entry_parm instead of data.entry_parm itself
3310 as DECL_INCOMING_RTL.
3311 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
3312 also when passed and declared mode is the same, DECL_RTL
3313 is a MEM with pseudo as address and DECL_INCOMING_RTL is
3316 2011-03-16 Jeff Law <law@redhat.com>
3318 PR rtl-optimization/37273
3319 * ira-costs.c (scan_one_insn): Detect constants living in memory and
3320 handle them like argument loads from stack slots. Do not double
3321 count memory for memory constants and argument loads from stack slots.
3323 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
3326 * var-tracking.c (prepare_call_arguments): Check SUBREG.
3328 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
3331 * config/i386/i386.opt: Add Save to -mavx and -mfma.
3333 2011-03-17 Jakub Jelinek <jakub@redhat.com>
3336 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
3338 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
3339 Clear call_arg_locations and call_arg_loc_last always.
3342 * var-tracking.c (prepare_call_arguments): If argument needs to be
3343 passed by reference, adjust argtype and mode.
3345 2011-03-17 Richard Guenther <rguenther@suse.de>
3348 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
3349 a value make sure to fold the statement.
3351 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
3354 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
3355 return condition with !cfun->calls_alloca.
3357 2011-03-17 Richard Guenther <rguenther@suse.de>
3360 * lto-cgraph.c (input_overwrite_node): Clear the abstract
3361 origin for decls in other ltrans units.
3362 (input_varpool_node): Likewise.
3364 2011-03-17 Richard Guenther <rguenther@suse.de>
3367 * tree-object-size.c (compute_object_offset): Properly return
3368 the offset operand of MEM_REFs as sizetype.
3370 2011-03-17 Jakub Jelinek <jakub@redhat.com>
3372 PR rtl-optimization/48141
3373 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
3374 * dse.c: Include params.h.
3375 (active_local_stores_len): New variable.
3376 (add_wild_read, dse_step1): Clear it when setting active_local_stores
3378 (record_store, check_mem_read_rtx): Decrease it when removing
3380 (scan_insn): Likewise. Increase it when adding to chain, if it
3381 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
3382 set active_local_stores to NULL before the addition.
3383 * Makefile.in (dse.o): Depend on $(PARAMS_H).
3385 PR rtl-optimization/48141
3386 * dse.c (record_store): If no positions are needed in an insn
3387 that cannot be deleted, at least unchain it from active_local_stores.
3389 2011-03-16 Dodji Seketeli <dodji@redhat.com>
3392 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
3393 (lookup_type_die_strip_naming_typedef): ... here.
3394 (get_context_die): Use it.
3395 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
3396 the anonymous struct named by the naming typedef.
3398 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
3401 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
3402 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
3404 2011-03-16 Jeff Law <law@redhat.com>
3406 * tree-vrp.c (identify_jump_threads): Slightly simplify type
3407 check for operands of conditional. Allow type to be a pointer.
3409 2011-03-16 Richard Guenther <rguenther@suse.de>
3411 PR tree-optimization/48149
3412 * fold-const.c (fold_binary_loc): Fold
3413 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
3415 2011-03-16 Richard Guenther <rguenther@suse.de>
3417 PR tree-optimization/26134
3418 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
3419 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
3420 (non_rewritable_mem_ref_base): Handle complex type component
3421 accesses, constrain offsets for vector and complex extracts
3424 2011-03-16 Richard Guenther <rguenther@suse.de>
3426 PR tree-optimization/48146
3427 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
3428 operands avoiding the need for renaming.
3430 2011-03-16 Richard Guenther <rguenther@suse.de>
3432 * gimple-fold.c (maybe_fold_reference): Open-code relevant
3433 constant folding. Move MEM_REF canonicalization first.
3434 Rely on fold_const_aggregate_ref for initializer folding.
3435 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
3437 2011-03-16 Jakub Jelinek <jakub@redhat.com>
3440 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
3441 arg0/arg1 or their arguments are always fold converted to matching
3444 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
3447 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3450 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
3451 Handle in-tree gold.
3452 (ld_vers): Extract binutils version for gold.
3453 (gcc_cv_ld_hidden): Handle gold here.
3454 (gcc_cv_lto_plugin): Determine level of linker plugin support.
3455 * configure: Regenerate.
3456 * config.in: Regenerate.
3457 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
3458 -fuse-linker-plugin otherwise.
3459 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
3460 (LINK_COMMAND_SPEC): Use it.
3461 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
3463 2011-03-16 Jakub Jelinek <jakub@redhat.com>
3465 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
3466 * calls.c: Remove debug.h include.
3467 (emit_call_1): Don't call virtual_call_token debug hook.
3468 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
3469 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
3470 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
3471 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
3472 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
3473 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
3474 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
3475 dwarf2out_virtual_call): Remove.
3476 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
3477 copy_call_info and virtual_call hooks.
3478 (dwarf2out_init): Don't initialize vcall_insn_table,
3479 debug_dcall_section and debug_vcall_section.
3480 (prune_unused_types): Don't mark nodes from dcall_table.
3481 (dwarf2out_finish): Don't output dcall or vcall tables.
3482 * final.c (final_scan_insn): Don't call direct_call or
3483 virtual_call debug hooks.
3484 * debug.h (struct gcc_debug_hooks): Remove direct_call,
3485 virtual_call_token, copy_call_info and virtual_call hooks.
3486 (debug_nothing_uid): Remove prototype.
3487 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
3488 copy_call_info and virtual_call hooks.
3489 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3490 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
3491 * debug.c (do_nothing_debug_hooks): Likewise.
3492 (debug_nothing_uid): Remove.
3493 * doc/invoke.texi (-fenable-icf-debug): Remove.
3494 * common.opt (-fenable-icf-debug): Likewise.
3496 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
3497 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
3498 call's MEM. Handle functions returning aggregate through a hidden
3499 first pointer. For virtual calls add clobbered pc to call arguments
3501 * dwarf2out.c (gen_subprogram_die): Emit
3502 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
3506 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
3507 * rtl.h (ENTRY_VALUE_EXP): Define.
3508 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
3509 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
3510 * print-rtl.c (print_rtx): Likewise.
3511 * gengtype.c (adjust_field_rtx_def): Likewise.
3512 * var-tracking.c (vt_add_function_parameter): Adjust
3513 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
3514 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
3515 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
3516 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
3517 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
3519 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
3520 Call var_location debug hook even on CALL_INSNs.
3521 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
3522 * rtl.def (ENTRY_VALUE): New.
3523 * dwarf2out.c: Include cfglayout.h.
3524 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3525 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
3526 (struct call_arg_loc_node): New type.
3527 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
3528 tail_call_site_count): New variables.
3529 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
3530 DW_TAG_GNU_call_site_parameter.
3531 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
3532 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
3533 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
3534 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
3535 and DW_AT_GNU_all_source_call_sites.
3536 (mem_loc_descriptor): Handle ENTRY_VALUE.
3537 (add_src_coords_attributes): Don't add enything if
3538 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
3539 (dwarf2out_abstract_function): Save and clear call_arg_location,
3540 call_site_count and tail_call_site_count around dwarf2out_decl call.
3541 (gen_call_site_die): New function.
3542 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
3543 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
3544 (dwarf2out_function_decl): Clear call_arg_locations,
3545 call_arg_loc_last, set call_site_count and tail_call_site_count
3546 to -1 and free block_map.
3547 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
3548 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
3549 followed by any real instructions.
3550 (dwarf2out_begin_function): Set call_site_count and
3551 tail_call_site_count to 0.
3552 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
3553 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
3554 attempt to force a DIE for it and worst case remove the attribute.
3555 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
3556 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
3558 * var-tracking.c: Include tm_p.h.
3559 (vt_stack_adjustments): For calls call note_register_arguments.
3560 (argument_reg_set): New variable.
3561 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
3562 ensure the VALUE is resolved.
3563 (call_arguments): New variable.
3564 (prepare_call_arguments): New function.
3565 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
3566 (struct expand_loc_callback_data): Add ignore_cur_loc field.
3567 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
3568 always use the best expression.
3569 (vt_expand_loc): Add ignore_cur_loc argument.
3570 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
3571 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
3572 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
3574 (vt_add_function_parameter): Use cselib_lookup_from_insn.
3575 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
3576 argument. Don't call cselib_preserve_only_values and
3578 (note_register_arguments): New function.
3579 (vt_initialize): Compute argument_reg_set. Call
3580 vt_add_function_parameters before processing basic blocks instead of
3581 afterwards. For calls call prepare_call_arguments before calling
3582 cselib_process_insn.
3583 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
3584 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
3585 (var-tracking.o): Depend on $(TM_P_H).
3586 * cfglayout.h (insn_scope): New prototype.
3587 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
3588 * cfglayout.c (insn_scope): No longer static.
3589 * insn-notes.def (CALL_ARG_LOCATION): New.
3590 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
3591 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
3592 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
3593 nothing for DECL_EXTERNAL BLOCK_VARS.
3595 2011-03-16 Alan Modra <amodra@gmail.com>
3598 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
3599 create invalid offset address for vsx splat insn.
3600 * config/rs6000/predicates.md (splat_input_operand): New.
3601 * config/rs6000/vsx.md (vsx_splat_*): Use it.
3603 2011-03-15 Xinliang David Li <davidxl@google.com>
3606 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
3607 (normalize_preds): New function.
3608 (is_use_properly_guarded): Normalize def predicates.
3610 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3613 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
3614 in the output template.
3616 2011-03-15 Richard Guenther <rguenther@suse.de>
3619 * tree-pretty-print.c (dump_function_declaration): Properly
3620 dump unprototyped and varargs function types.
3622 2011-03-15 Richard Guenther <rguenther@suse.de>
3624 PR tree-optimization/13954
3625 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
3628 2011-03-15 Richard Guenther <rguenther@suse.de>
3630 PR tree-optimization/48037
3631 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
3632 selects into BIT_FIELD_REFs.
3633 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
3636 2011-03-15 Jakub Jelinek <jakub@redhat.com>
3638 PR tree-optimization/48129
3639 * builtins.c (fold_builtin_snprintf): Convert to type of
3640 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
3641 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
3643 2011-03-15 Richard Guenther <rguenther@suse.de>
3645 PR tree-optimization/41490
3646 * tree-ssa-dce.c (propagate_necessity): Handle returns without
3647 value but with VUSE.
3648 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
3650 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
3651 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
3652 * tree-tailcall.c (find_tail_calls): Ignore returns.
3654 2011-03-15 Richard Guenther <rguenther@suse.de>
3657 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
3658 or variable-indexed array accesses when in gimple form.
3660 2011-03-15 Richard Guenther <rguenther@suse.de>
3662 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
3664 2011-03-15 Alan Modra <amodra@gmail.com>
3667 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
3668 presume symbol_refs without a symbol_ref_decl are suitably
3669 aligned, nor other trees we may see here. Handle anchor symbols.
3670 (legitimate_constant_pool_address_p): Comment. Add mode param.
3671 Check cmodel=medium addresses. Adjust all calls.
3672 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
3673 creating cmodel=medium optimized access to locals.
3674 * config/rs6000/constraints.md (R): Pass QImode to
3675 legitimate_constant_pool_address_p.
3676 * config/rs6000/predicates.md (input_operand): Pass mode to
3677 legitimate_constant_pool_address_p.
3678 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
3681 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3684 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
3685 64-bit constants being loaded into registers other than GPRs such
3686 as loading 0 into a VSX register.
3688 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3690 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
3692 2011-03-14 Jakub Jelinek <jakub@redhat.com>
3695 * builtins.c (fold_builtin_snprintf): New function.
3696 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
3697 (fold_builtin_4): Likewise.
3700 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
3701 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
3702 and C - X == X also strip nops from +/-/p+ operand.
3703 When optimizing -X == C, fold C to arg0's type.
3706 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
3707 emit it as add_AT_int instead of add_AT_unsigned.
3709 2011-03-14 Tom Tromey <tromey@redhat.com>
3711 * unwind-dw2.c: Include sys/sdt.h if it exists.
3712 (_Unwind_DebugHook): Use STAP_PROBE2.
3713 * config.in, configure: Rebuild.
3714 * configure.ac: Check for sys/sdt.h.
3716 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
3718 * config/i386/i386.md (ROUND_FLOOR): New constant.
3719 (ROUND_CEIL): Ditto.
3720 (ROUND_TRUNC): Ditto.
3721 (ROUND_MXCSR): Ditto.
3722 (ROUND_NO_EXC): Ditto.
3723 (rint<mode>2): Use new defines instead of numerical constants.
3724 (floor<mode>2): Ditto.
3725 (ceil<mode>2): Ditto.
3726 (btrunc<mode>2): Ditto.
3727 * config/i386/i386-builtin-types.def: Define ROUND function type
3729 * config/i386/i386.c (enum ix86_builtins): Add
3730 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
3731 (struct builtin_description): Add
3732 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
3733 (ix86_expand_sse_round): New static function.
3734 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
3736 (ix86_builtin_vectorized_function): Handle
3737 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
3739 2011-03-14 Tom Tromey <tromey@redhat.com>
3741 * c-parser.c (c_parser_asm_string_literal): Clear
3742 warn_overlength_strings.
3744 2011-03-14 Tom Tromey <tromey@redhat.com>
3746 * c-parser.c (disable_extension_diagnostics): Save
3747 warn_overlength_strings.
3748 (restore_extension_diagnostics): Restore warn_overlength_strings.
3750 2011-03-14 Jakub Jelinek <jakub@redhat.com>
3752 * BASE-VER: Change to 4.7.0.
3754 2011-03-14 Richard Guenther <rguenther@suse.de>
3757 * tree.c (build_vector_from_val): Adjust assert to requirements
3760 2011-03-14 Jakub Jelinek <jakub@redhat.com>
3763 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
3765 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
3767 * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
3768 terms of target_flags_explicit. Adjust copyright year.
3770 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
3771 * config/rs6000/t-freebsd: New file. Add override for
3774 2011-03-13 Chris Demetriou <cgd@google.com>
3776 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
3777 (-fno-diagnostics-show-option): this, to reflect current default.
3778 (-Werror=): Update text about -fno-diagnostics-show-option.
3780 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
3783 * config/rs6000/predicates.md (easy_vector_constant_add_self,
3784 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
3785 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
3786 mode is not V2DImode or V2DFmode.
3787 (vspltis_constant): Do not handle V2DImode and V2DFmode.
3788 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
3789 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
3791 (movdi_internal64): Likewise.
3793 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
3795 PR tree-optimization/47127
3796 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
3798 (set_cloog_options): Same.
3799 (scop_to_clast): Same.
3800 (print_clast_stmt): Do not call cloog_state_malloc and
3802 (print_generated_program): Same.
3804 * graphite-clast-to-gimple.h (cloog_state): Declared.
3805 (scop_to_clast): Adjust declaration.
3806 * graphite.c (cloog_state): Defined here.
3807 (graphite_initialize): Call cloog_state_malloc.
3808 (graphite_finalize): Call cloog_state_free.
3810 2011-03-11 Jason Merrill <jason@redhat.com>
3812 * attribs.c (lookup_attribute_spec): Take const_tree.
3815 2011-03-11 Joseph Myers <joseph@codesourcery.com>
3817 * config/sparc/sparc.c (sparc_option_override): Use
3818 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
3820 2011-03-11 Richard Guenther <rguenther@suse.de>
3822 PR tree-optimization/48067
3823 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
3824 multiplication result will be only used once on the target
3827 2011-03-11 Richard Guenther <rguenther@suse.de>
3829 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
3831 2011-03-11 Richard Guenther <rguenther@suse.de>
3834 * tree.c (find_decls_types_r): Do not walk types only reachable
3835 from IDENTIFIER_NODEs.
3837 2011-03-11 Jakub Jelinek <jakub@redhat.com>
3840 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
3841 all vnode->force_output nodes as needed.
3843 2011-03-11 Jason Merrill <jason@redhat.com>
3846 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
3847 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
3849 2011-03-11 Martin Jambor <mjambor@suse.cz>
3851 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
3854 2011-03-11 Jakub Jelinek <jakub@redhat.com>
3856 PR tree-optimization/48063
3857 * ipa-inline.c (cgraph_decide_inlining): Don't try to
3858 inline functions called once if !tree_can_inline_p (node->callers).
3860 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
3862 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
3864 * config/score/score3.c: Delete.
3865 * config/score/score3.h: Delete.
3866 * config/score/mul-div.S: Delete.
3867 * config/score/sfp-machine.h: Add new file.
3868 * config/score/constraints.md: Add new file.
3869 * config/score/t-score-softfp: Add new file.
3870 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
3871 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
3872 (score7_extra_constraint): Delete.
3873 (score7_option_override): Remove unused code.
3874 * config/score/score.c: Remove score3 and score5 define and code.
3875 * config/score/score.h: Remove score3 and score5 define and code.
3876 * config/score/score.md: Remove score3 template and unusual insn.
3877 * config/score/score.opt: Remove score3 and score5 options.
3879 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3881 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
3882 when _HPUX_SOURCE is defined.
3883 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
3885 2011-03-10 Jason Merrill <jason@redhat.com>
3888 * stor-layout.c (layout_type): Don't set structural equality
3889 on arrays of incomplete type.
3890 * tree.c (type_hash_eq): Handle comparing them properly.
3892 2011-03-10 Jakub Jelinek <jakub@redhat.com>
3895 * config/s390/s390.c (s390_delegitimize_address): Make sure the
3896 result mode matches original rtl mode.
3898 2011-03-10 Nick Clifton <nickc@redhat.com>
3900 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
3901 (andsi3, andsi3_flags): Fix timings for three operand alternative.
3903 2011-03-09 Jakub Jelinek <jakub@redhat.com>
3905 PR rtl-optimization/47866
3906 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
3907 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
3908 if target wasn't scalar.
3909 * function.c (assign_stack_temp_for_type): Assert that neither
3910 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
3911 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
3913 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
3915 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3917 * config/s390/s390-protos.h (s390_label_align): New prototype.
3918 * config/s390/s390.c (s390_label_align): New function.
3919 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
3921 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
3924 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
3925 V2DI/V2DF constants. Only all 0's or all 1's are easy.
3926 (output_vec_const_move): Ditto.
3928 2011-03-08 Anatoly Sokolov <aesok@post.ru>
3930 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
3931 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
3932 * config/mips/mips.c (mips_preferred_reload_class): Make static.
3933 Change 'rclass' argument and result type to reg_class_t.
3934 (TARGET_PREFERRED_RELOAD_CLASS): Define.
3936 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
3938 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3939 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
3940 (TARGET_MEMORY_MOVE_COST): Define.
3941 (avr_register_move_cost, avr_memory_move_cost): New Functions.
3943 2011-03-08 Jakub Jelinek <jakub@redhat.com>
3946 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
3949 PR tree-optimization/48022
3950 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
3953 2011-03-07 Jakub Jelinek <jakub@redhat.com>
3956 * var-tracking.c (find_use_val): Return NULL for
3957 cui->sets && cui->store_p BLKmode MEMs.
3959 2011-03-07 Anatoly Sokolov <aesok@post.ru>
3961 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
3963 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
3964 xstormy16_print_operand_address): Remove.
3965 * config/stormy16/stormy16.c (xstormy16_print_operand,
3966 xstormy16_print_operand_address): Make static.
3967 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3969 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
3972 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3973 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
3976 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
3979 * cfgloopmanip.c (fix_bb_placements): Return immediately
3980 if FROM is BASE_LOOP's header.
3982 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
3984 * gimplify.c (gimplify_function_tree): Fix building calls
3985 to __builtin_return_address.
3987 2011-03-07 Alan Modra <amodra@gmail.com>
3989 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
3990 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
3991 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
3992 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
3994 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
3995 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
3996 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
3997 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
3998 * config/rs6000/rs6000.c
3999 (rs6000_elf_end_indicate_exec_stack): Rename to..
4000 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
4001 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
4002 (rs6000_file_start): ..here.
4003 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
4004 file scope variables.
4005 (call_ABI_of_interest): New function.
4006 (init_cumulative_args): Set above vars when function return value
4007 is a float, vector, or small struct.
4008 (rs6000_function_arg_advance_1): Likewise for function args.
4009 (rs6000_va_start): Set rs6000_passes_float if variable arg function
4010 references float args.
4012 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
4014 * doc/cfg.texi: Remove "See" before @ref.
4015 * doc/invoke.texi: Likewise.
4017 2011-03-05 Jason Merrill <jason@redhat.com>
4019 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
4021 2011-03-05 Anthony Green <green@moxielogic.com>
4023 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
4025 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
4027 PR rtl-optimization/47899
4028 * cfgloopmanip.c (fix_bb_placements): Fix first argument
4029 to flow_loop_nested_p when moving the loop upward.
4031 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
4034 * arm.md (movhi_insn_arch4): Accept any immediate constant.
4036 2011-03-05 Jakub Jelinek <jakub@redhat.com>
4038 PR tree-optimization/47967
4039 * ipa-cp.c (build_const_val): Return NULL instead of creating
4040 VIEW_CONVERT_EXPR for mismatching sizes.
4041 (ipcp_create_replace_map): Return NULL if build_const_val failed.
4042 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
4043 give up on versioning.
4045 2011-03-05 Alan Modra <amodra@gmail.com>
4048 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4049 full cmodel medium/large lo_sum + high addresses.
4051 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4053 * config/s390/s390.c (s390_decompose_address): Reject non-literal
4054 pool references in UNSPEC_LTREL_OFFSET.
4056 2011-03-04 Jan Hubicka <jh@suse.cz>
4059 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
4060 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
4061 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
4063 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
4064 cgraph_add_thunk): Add node pointers.
4065 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
4066 associated to right node.
4067 (input_node): Update use of cgraph_same_body_alias
4068 and cgraph_add_thunk.
4070 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
4072 * config/i386/i386.opt (mprefer-avx128): New flag.
4073 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
4074 modes when the flag -mprefer-avx128 is on.
4076 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
4078 * dwarf2out.c (compare_loc_operands): Fix address handling.
4080 2011-03-04 Alan Modra <amodra@gmail.com>
4082 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
4084 2011-03-04 Richard Guenther <rguenther@suse.de>
4087 * expmed.c (extract_bit_field_1): Prefer vector modes that
4088 vec_extract patterns can handle.
4090 2011-03-04 Richard Guenther <rguenther@suse.de>
4093 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
4095 2011-03-04 Richard Henderson <rth@redhat.com>
4097 * explow.c (emit_stack_save): Remove 'after' parameter.
4098 (emit_stack_restore): Likewise.
4099 * expr.h: Update to match.
4100 * builtins.c, calls.c, stmt.c: Likewise.
4101 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
4102 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
4103 * function.c (expand_function_end): Insert the emit_stack_save
4104 sequence before parm_birth_insn instead of after.
4106 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
4108 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
4109 (ssse3_pmaddubsw128): Ditto.
4110 (ssse3_pmaddubsw): Ditto.
4112 2011-03-03 Steve Ellcey <sje@cup.hp.com>
4114 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
4116 2011-03-03 Jakub Jelinek <jakub@redhat.com>
4119 * gimplify.c (omp_add_variable): Only call omp_notice_variable
4120 on TYPE_SIZE_UNIT if it is a DECL.
4123 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
4124 first operand is not is_gimple_mem_ref_addr, try to fold it.
4125 If the operand still isn't is_gimple_mem_ref_addr, clear
4128 2011-03-03 Richard Guenther <rguenther@suse.de>
4131 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
4133 (refs_may_alias_p_1): For release branches return true if
4134 we are confused by our input.
4136 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4138 * config/s390/s390.c (s390_function_value): Rename to ...
4139 (s390_function_and_libcall_value): ... this.
4140 (s390_function_value): New function.
4141 (s390_libcall_value): New function.
4142 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
4143 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
4144 target macro definitions.
4145 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
4147 2011-03-02 Joseph Myers <joseph@codesourcery.com>
4149 * config/i386/freebsd64.h (CC1_SPEC): Define.
4150 * config/i386/linux64.h (CC1_SPEC): Define.
4151 * config/i386/x86-64.h (CC1_SPEC): Don't define.
4153 2011-03-02 Anatoly Sokolov <aesok@post.ru>
4155 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
4157 * config/stormy16/stormy16.c: Include reload.h.
4158 (xstormy16_memory_move_cost): New function.
4159 (TARGET_MEMORY_MOVE_COST): Define.
4161 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
4163 PR rtl-optimization/47925
4164 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
4165 with side effects. Remove the more-specific check for volatile asms.
4167 2011-03-02 Alan Modra <amodra@gmail.com>
4170 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
4171 toc relative addresses for valid offsets.
4173 2011-03-01 Richard Guenther <rguenther@suse.de>
4175 PR tree-optimization/47890
4176 * tree-vect-loop.c (get_initial_def_for_induction): Set
4177 related stmt properly.
4179 2011-03-01 Richard Guenther <rguenther@suse.de>
4182 * lto-streamer.c (lto_record_common_node): Also register
4185 2011-03-01 Richard Guenther <rguenther@suse.de>
4188 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
4189 Do not stream DECL_ABSTRACT_ORIGIN.
4190 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
4191 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
4192 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
4193 Do not stream DECL_ABSTRACT_ORIGIN.
4194 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
4195 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
4197 2011-02-28 Anatoly Sokolov <aesok@post.ru>
4199 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
4200 FUNCTION_VALUE_REGNO_P): Remove.
4201 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
4202 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
4203 Add 'outgoing' argument.
4204 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
4206 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4207 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4209 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
4212 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
4213 (lookup_filename): Likewise.
4214 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
4216 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
4217 Jakub Jelinek <jakub@redhat.com>
4220 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
4221 (assign_stack_local_1): Change last argument type to int.
4222 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
4223 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
4224 don't record padding space into frame_space_list nor use those areas.
4225 (assign_stack_local): Adjust caller.
4226 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
4227 of assign_stack_local, pass 0 as last argument.
4228 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
4231 2011-02-28 Jakub Jelinek <jakub@redhat.com>
4234 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
4235 Use target address_mode and pointer_mode hooks instead of hardcoded
4236 Pmode and ptr_mode. Handle some simple cases of extending if
4237 POINTERS_EXTEND_UNSIGNED < 0.
4238 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
4239 Call convert_debug_memory_address.
4240 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
4241 convert_debug_memory_address.
4244 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
4245 * configure: Regenerated.
4246 * config.in: Regenerated.
4247 * varasm.c (default_function_section): Return NULL
4248 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
4250 2011-02-28 Martin Jambor <mjambor@suse.cz>
4252 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
4253 the description to match the printed values.
4255 2011-02-28 Richard Guenther <rguenther@suse.de>
4257 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
4258 of the copied scope tree.
4260 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4262 * doc/extend.texi (Function Attributes): Avoid deeply (and
4263 wrongly) nested tables.
4265 2011-02-27 Jakub Jelinek <jakub@redhat.com>
4268 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
4269 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
4270 r isn't op0 nor op1.
4272 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
4274 * config/avr/avr.md: Remove magic comment for emacs.
4276 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
4279 * config/avr/avr.c (avr_option_override): Use error on bad options.
4280 (avr_help): New function.
4281 (TARGET_HELP): Define.
4283 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
4286 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
4287 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
4289 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
4291 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
4292 (ARM Options): Ditto.
4293 (i386 and x86-64 Options): Ditto.
4294 (RX Options): Ditto.
4295 (SPARC Options): Ditto.
4297 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
4299 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
4300 FreeBSD 6 and later. Generally use cpu generic.
4302 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
4304 * doc/cpp.texi: Update copyright years.
4306 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
4309 * config/lm32/lm32.md (ashrsi3): Added needed variable.
4311 2011-02-25 Jon Beniston <jon@beniston.com>
4314 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
4315 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
4316 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
4317 (lm32_block_move_inline): Add type cast to remove warning.
4318 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
4319 (gen_int_relational): Move declarations to start of function.
4321 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
4323 PR tree-optimization/45470
4324 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
4325 can throw internally only.
4326 * tree-vect-stmts.c (vectorizable_call): Likewise.
4328 2011-02-24 Anatoly Sokolov <aesok@post.ru>
4330 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
4331 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
4332 * config/stormy16/stormy16-protos.h
4333 (xstormy16_preferred_reload_class): Remove.
4334 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
4335 static. Change 'rclass' argument and return type to reg_class_t.
4336 (TARGET_PREFERRED_RELOAD_CLASS,
4337 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4339 2011-02-24 Richard Guenther <rguenther@suse.de>
4341 * lto-streamer-in.c (input_bb): Do not find referenced vars
4342 in debug statements.
4344 2011-02-23 Jason Merrill <jason@redhat.com>
4346 * common.opt (fabi-version): Document v5 and v6.
4348 2011-02-23 Richard Guenther <rguenther@suse.de>
4350 PR tree-optimization/47849
4351 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
4353 2011-02-23 Jie Zhang <jie@codesourcery.com>
4355 * opts-common.c (decode_cmdline_option): Print empty string
4356 argument as "" in decoded->orig_option_with_args_text.
4357 * gcc.c (execute): Print empty string argument as ""
4358 in the verbose output.
4359 (do_spec_1): Keep empty string argument.
4361 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
4363 * config.gcc: Declare score-* and crx-* obsolete.
4365 2011-02-23 Jie Zhang <jie@codesourcery.com>
4367 PR rtl-optimization/47763
4368 * web.c (web_main): Ignore naked clobber when replacing register.
4370 2011-02-22 Anatoly Sokolov <aesok@post.ru>
4372 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4375 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
4378 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
4380 2011-02-22 Mike Stump <mikestump@comcast.net>
4382 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
4384 * configure: Regenerate.
4386 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
4388 PR rtl-optimization/46002
4389 * ira-color.c (update_copy_costs): Change class intersection
4390 test to reg_class_contents[] test of 'hard_regno'.
4392 2011-02-21 Joseph Myers <joseph@codesourcery.com>
4394 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
4396 * config/hpux11.opt (mt): Likewise.
4397 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
4398 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
4399 * config/vax/elf.opt (mno-asm-pic): Likewise.
4400 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
4402 2011-02-21 Mike Stump <mikestump@comcast.net>
4405 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
4406 tree so we can get save the type.
4407 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
4408 for CFString instead of trying to use past the end of the builtins.
4409 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
4410 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
4411 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
4412 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
4413 Rename to darwin_builtin_cfstring.
4414 (darwin_init_cfstring_builtins): Return the built type.
4416 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
4419 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
4420 (_mm256_insert_epi64): Use _mm_insert_epi64.
4422 2011-02-21 Anatoly Sokolov <aesok@post.ru>
4424 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
4425 * config/stormy16/stormy16-protos.h
4426 (xstormy16_mode_dependent_address_p): Remove.
4427 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
4428 Make static. Change return type to bool. Change argument type to
4429 const_rtx. Remove dead code.
4430 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
4432 2011-02-21 Richard Guenther <rguenther@suse.de>
4435 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
4436 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
4437 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
4439 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
4440 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
4442 2011-02-20 Richard Guenther <rguenther@suse.de>
4445 * tree.c (free_lang_data_in_decl): Clean builtins from
4446 the TU decl BLOCK_VARS.
4448 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
4452 * haifa-sched.c (fix_tick_ready): Skip tick computation
4455 2011-02-19 Richard Guenther <rguenther@suse.de>
4458 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
4459 Remove lazy BLOCK_VARS streaming.
4460 (lto_input_ts_block_tree_pointers): Likewise.
4461 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
4463 2011-02-19 Joseph Myers <joseph@codesourcery.com>
4465 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
4467 2011-02-19 Joseph Myers <joseph@codesourcery.com>
4469 * config/i386/biarch32.h, config/i386/mach.h,
4470 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
4472 2011-02-19 Jakub Jelinek <jakub@redhat.com>
4475 * config/i386/i386.md (peephole2 for shift and plus): Use
4476 operands[1] original mode in the first insn.
4478 2011-02-18 Mike Stump <mikestump@comcast.net>
4480 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
4482 2011-02-18 Jan Hubicka <jh@suse.cz>
4485 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
4486 to zero when the function is not inlinable at all.
4488 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4490 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
4491 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
4492 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
4493 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
4494 * config/pa/t-pa64: Likewise.
4495 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4497 2011-02-18 Jakub Jelinek <jakub@redhat.com>
4500 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
4502 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4505 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
4507 2011-02-18 Anatoly Sokolov <aesok@post.ru>
4509 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
4510 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
4511 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
4512 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
4513 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
4514 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
4515 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
4516 m32r_load_postinc_p, m32r_store_preinc_predec_p,
4517 m32r_legitimate_address_p): New functions.
4518 * config/m32r/constraints.md (constraint "S"): Don't use
4519 STORE_PREINC_PREDEC_P.
4520 (constraint "U"): Don't use LOAD_POSTINC_P.
4522 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
4524 PR rtl-optimization/46178
4525 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
4526 compute ira_hard_regno_cover_class[].
4528 2011-02-18 Richard Guenther <rguenther@suse.de>
4531 * lto-streamer.h (lto_global_var_decls): Declare.
4532 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
4533 statics for global var processing.
4535 2011-02-18 Richard Guenther <rguenther@suse.de>
4537 PR tree-optimization/47737
4538 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
4539 edge dominance check.
4541 2011-02-18 Jakub Jelinek <jakub@redhat.com>
4544 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
4545 avoid invalid rtx sharing.
4547 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
4549 * doc/cpp.texi (Obsolete Features): Add background on the
4550 origin of assertions.
4552 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
4554 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
4556 * config/darwin.c (output_objc_section_asm_op): Added support for
4558 (is_objc_metadata): New.
4559 (darwin_objc2_section): New.
4560 (darwin_objc1_section): New.
4561 (machopic_select_section): Added support for ABI v1 and v2.
4562 (darwin_emit_objc_zeroed): New.
4563 (darwin_output_aligned_bss): Detect objc metadata and treat it
4565 (darwin_asm_output_aligned_decl_common): Same.
4566 (darwin_asm_output_aligned_decl_local): Same.
4567 * config/darwin-sections.def: Updated for ABI v1 and v2.
4568 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
4569 compiling Objective-C code for the NeXT runtime, default to using
4570 ABI version 0 for 32-bit, and version 2 for 64-bit.
4572 2011-02-17 Joseph Myers <joseph@codesourcery.com>
4574 * common.opt (optimize_fast): New Variable.
4575 * opts.c (default_options_optimization): Use opts->x_optimize_fast
4576 instead of local variable ofast.
4578 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
4580 * doc/invoke.texi (fobjc-abi-version): Documented.
4581 (fobjc-nilcheck): Documented.
4582 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
4585 2011-02-17 Joseph Myers <joseph@codesourcery.com>
4588 * common.opt (export-dynamic): New Driver option.
4589 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
4591 2011-02-17 Joseph Myers <joseph@codesourcery.com>
4593 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
4595 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
4596 Jan Hubicka <jh@suse.cz>
4600 * cfgexpand.c (account_used_vars_for_block): Remove.
4601 (estimated_stack_frame_size): Use referenced vars.
4602 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
4603 that were referenced in the original function. Test src_fn
4604 rather than cfun. Drop redundant get_var_ann.
4605 (setup_one_parameter): Drop redundant get_var_ann.
4606 (declare_return_variable): Likewise.
4607 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
4608 (copy_arguments_for_versioning): Drop redundant get_var_ann.
4609 * ipa-inline.c (compute_inline_parameters): Do not compute
4610 disregard_inline_limits here.
4611 (compute_inlinable_for_current, pass_inlinable): New.
4612 (pass_inline_parameters): Require PROP_referenced_vars.
4613 * cgraphunit.c (cgraph_process_new_functions): Don't run
4614 compute_inline_parameters explicitly unless function is in SSA form.
4615 (cgraph_analyze_function): Set .disregard_inline_limits.
4616 * tree-sra.c (convert_callers): Compute inliner parameters
4617 only for functions already in SSA form.
4619 2011-02-17 Joseph Myers <joseph@codesourcery.com>
4621 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
4622 -mlittle-endian-data.
4624 2011-02-17 Joseph Myers <joseph@codesourcery.com>
4626 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
4627 -mno-fpu, not -fpu and -no-fpu.
4628 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
4629 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
4631 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
4634 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
4635 input reload with PLUS RTX.
4637 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4639 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
4640 of InverseVar(MDMX).
4642 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4644 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
4647 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4649 * config/mn10300/mn10300.opt (mno-crt0): New.
4651 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4653 * config/m68k/uclinux.opt (static-libc): New Driver option.
4655 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4657 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
4659 2011-02-16 Joseph Myers <joseph@codesourcery.com>
4661 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
4662 %{muser-extend-enabled}.
4664 2011-02-16 Richard Guenther <rguenther@suse.de>
4666 PR tree-optimization/47738
4667 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
4668 the TODO from tree_predictive_commoning.
4670 2011-02-15 Jeff Law <law@redhat.com>
4673 2011-01-25 Jeff Law <law@redhat.com>
4675 PR rtl-optimization/37273
4676 * ira-costs.c (scan_one_insn): Detect constants living in memory and
4677 handle them like argument loads from stack slots. Do not double
4678 count memory for memory constants and argument loads from stack slots.
4680 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
4683 * combine.c (cant_combine_insn_p): Revert the last change.
4685 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
4688 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
4689 mode for vector constants. Remove code that checks for TImode.
4691 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
4695 * cgraph.h (compute_inline_parameters): Return void.
4696 * ipa-inline.c (compute_inline_parameters): Adjust.
4698 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
4702 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
4704 * cfgexpand.c (estimated_stack_frame_size): Likewise.
4705 * ipa-inline.c (compute_inline_parameters): Adjust.
4707 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
4711 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
4712 Adjust all users. Pass FN to...
4713 * tree-flow-inline.h (first_referenced_var): ... this. Add
4715 * ipa-struct-reorg.c: Adjust.
4716 * tree-dfa.c: Adjust.
4717 * tree-into-ssa.c: Adjust.
4718 * tree-sra.c: Adjust.
4719 * tree-ssa-alias.c: Adjust.
4720 * tree-ssa-live.c: Adjust.
4721 * tree-ssa.c: Adjust.
4722 * tree-ssanames.c: Adjust.
4723 * tree-tailcall.c: Adjust.
4725 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
4729 * tree-flow.h (referenced_var_lookup): Add fn parameter.
4731 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
4732 * tree-flow-inline.h: Adjust.
4733 * gimple-pretty-print.c: Adjust.
4734 * tree-into-ssa.c: Adjust.
4735 * tree-ssa.c: Adjust.
4736 * cfgexpand.c: Adjust.
4738 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
4740 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
4741 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4742 (EXTRA_CONSTRAINT): Delete.
4743 * config/iq2000/constraints.md: New file.
4744 * config/iq2000/iq2000.md: Include it.
4745 (define_insn ""): Delete.
4746 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
4747 unsupported constraint letters from patterns.
4748 (call_value, call_value_internal1): Likewise.
4749 (call_value_multiple_internal1): Likewise.
4751 2011-02-15 Nick Clifton <nickc@redhat.com>
4753 * config/mn10300/mn10300.c: Include tm-constrs.h.
4754 (struct liw_data): New data structure describing an LIW candidate
4756 (extract_bundle): Use struct liw_data. Allow small integer
4757 operands for some instructions.
4758 (check_liw_constraints): Use struct liw_data. Remove swapped
4759 parameter. Add comments describing the checks. Fix bug when
4760 assigning the source of liw1 to the source of liw2.
4761 (liw_candidate): Delete. Code moved into extract_bundle.
4762 (mn10300_bundle_liw): Use struct liw_data. Check constraints
4764 * config/mn10300/predicates.md (liw_operand): New predicate.
4765 Allows registers and small integer constants.
4766 * config/mn10300/constraints.md (O): New constraint. Accetps
4767 integers in the range -8 to +7 inclusive.
4768 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
4769 for moving a small integer into a register. Give this alternative
4771 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
4772 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
4773 using the J,K,L and M constraints,
4774 (liw): Remove SI mode on second operands to allow for HI and QI
4776 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
4779 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
4782 * combine.c (cant_combine_insn_p): Check zero/sign extended
4785 2011-02-15 Richard Guenther <rguenther@suse.de>
4787 PR tree-optimization/47743
4788 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
4789 for a non-type-compatible VN lookup bail out.
4791 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
4793 * config/fr30/constraints.md: New file.
4794 * config/fr30/fr30.md: Include it.
4795 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
4796 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4797 (EXTRA_CONSTRAINT): Delete.
4799 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
4801 * config/frv/constraints.md: New file.
4802 * config/frv/predicates.md: Include it.
4803 * config/frv/frv.c (reg_class_from_letter): Delete.
4804 (frv_option_override): Don't initialize it.
4805 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
4806 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
4807 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
4808 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
4809 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
4810 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4811 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
4812 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
4813 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
4814 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
4815 (REG_CLASS_FROM_CONSTRAINT): Delete.
4817 2011-02-15 Jakub Jelinek <jakub@redhat.com>
4820 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
4821 if frame size is 0 in a leaf function.
4823 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4826 * config/alpha/host-osf.c: New file.
4827 * config/alpha/x-osf: New file.
4828 * config.host (alpha*-dec-osf*): Use it.
4830 2011-02-14 Anatoly Sokolov <aesok@post.ru>
4832 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
4833 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
4834 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
4835 (rx_mode_dependent_address_p): ...this. Make static. Change argument
4837 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
4839 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
4841 * config/stormy16/constraints.md: New file.
4842 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
4843 Use satisfies_constraint_Q and satisfies_constraint_R.
4844 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
4846 (xstormy16_legitiamte_address_p): Declare.
4847 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
4848 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4849 (EXTRA_CONSTRAINT): Delete.
4850 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
4852 (xstormy16_extra_constraint_p): Delete.
4854 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
4856 PR tree-optimization/46494
4857 * loop-unroll.c (split_edge_and_insert): Adjust comment.
4858 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
4859 (pass_rtl_loop_done): Add TODO_verify_flow.
4860 * fwprop.c (pass_rtl_fwprop): Likewise.
4861 * modulo-sched.c (pass_sms): Likewise.
4862 * tree-ssa-dom.c (pass_dominator): Likewise.
4863 * tree-ssa-loop-ch.c (pass_ch): Likewise.
4864 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
4865 (pass_tree_loop_done): Likewise.
4866 * tree-ssa-pre.c (execute_pre): Likewise.
4867 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
4868 * tree-ssa-sink.c (pass_sink_code): Likewise.
4869 * tree-vrp.c (pass_vrp): Likewise.
4871 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
4873 * config/v850/constraints.md: New file.
4874 * config/v850/v850.md: Include it.
4875 * config/v850/predicates.md (reg_or_0_operand): Use
4876 satisfies_constraint_G.
4877 (special_symbolref_operand): Use satisfies_constraint_K.
4878 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
4879 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
4880 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
4881 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
4882 (EXTRA_CONSTRAINT): Delete.
4883 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
4884 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
4885 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
4887 2011-02-14 Anatoly Sokolov <aesok@post.ru>
4890 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
4893 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
4895 * config/mcore/constraints.md: New file.
4896 * config/mcore/mcore.md: Include it.
4897 * config/mcore/mcore.c (reg_class_from_letter): Delete.
4898 * config/mcore/mcore.h (reg_class_from_letter): Delete.
4899 (REG_CLASS_FROM_LETTER): Delete.
4900 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
4901 insn_const_int_ok_for_constraint.
4902 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
4903 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
4904 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4905 (EXTRA_CONSTRAINT): Delete.
4907 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4910 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
4911 (IS_SIGHANDLER): Define.
4912 (sparc64_is_sighandler): New function, split off from
4913 sparc64_fallback_frame_state.
4914 (sparc_is_sighandler): New function, split off from
4915 sparc_fallback_frame_state.
4916 (sparc64_fallback_frame_state): Merge with ...
4917 (sparc_fallback_frame_state): ... this into ...
4918 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
4919 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
4920 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
4921 stack instead of hardcoded offsets.
4923 2011-02-14 Andriy Gapon <avg@freebsd.org>
4926 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
4928 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4930 * configure: Regenerate.
4932 2011-02-12 Joseph Myers <joseph@codesourcery.com>
4935 * gcc.c (asm_options): Correct spec matching --target-help.
4937 2011-02-12 Martin Jambor <mjambor@suse.cz>
4939 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
4940 to gimple call error.
4942 2011-02-12 Mike Stump <mikestump@comcast.net>
4944 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
4945 comments in backslash regions.
4947 2011-02-12 Mike Stump <mikestump@comcast.net>
4948 Jakub Jelinek <jakub@redhat.com>
4949 Iain Sandoe <iains@gcc.gnu.org>
4952 * dwarf2out.c (output_cfa_loc): When required, apply the
4953 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
4954 (output_loc_sequence): Likewise.
4955 (output_loc_operands_raw): Likewise.
4956 (output_loc_sequence_raw): Likewise.
4957 (output_cfa_loc): Likewise.
4958 (output_loc_list): Suppress register number adjustment when
4959 calling output_loc_sequence()
4960 (output_die): Likewise.
4962 2011-02-12 Anatoly Sokolov <aesok@post.ru>
4964 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
4966 * config/xtensa/xtensa.c (xtensa_register_move_cost,
4967 xtensa_memory_move_cost): New functions.
4968 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
4970 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
4973 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
4974 in the current directory.
4975 * configure: Rebuilt.
4977 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
4979 * config/darwin.c (darwin_override_options): Add a hunk missed
4980 from the commit of r168571. Trim comment line lengths and
4981 correct indents of the preceding block.
4983 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
4985 * gcc.c (driver_handle_option): Concatenate the argument to -F with
4988 2011-02-11 Joseph Myers <joseph@codesourcery.com>
4990 * common.opt (nostartfiles): New Driver option.
4992 2011-02-11 Xinliang David Li <davidxl@google.com>
4994 PR tree-optimization/47707
4995 * tree-chrec.c (convert_affine_scev): Keep type precision.
4997 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
4999 PR tree-optimization/47420
5000 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
5002 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
5004 PR rtl-optimization/47614
5005 * rtl.h (check_for_inc_dec): Declare.
5006 * dse.c (check_for_inc_dec): Externalize...
5007 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
5008 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
5010 2011-02-11 Joseph Myers <joseph@codesourcery.com>
5013 * gcc.c (main): Do not compile inputs if there were errors in
5015 * opts-common.c (read_cmdline_option): Check for wrong language
5016 after other error checks.
5018 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
5020 * cgraph.c: Fix comment typos.
5021 * cgraph.h: Likewise.
5022 * cgraphunit.c: Likewise.
5023 * ipa-cp.c: Likewise.
5024 * ipa-inline.c: Likewise.
5025 * ipa-prop.c: Likewise.
5026 * ipa-pure-const.c: Likewise.
5027 * ipa-ref.c: Likewise.
5028 * ipa-reference.c: Likewise.
5030 2011-02-11 Jakub Jelinek <jakub@redhat.com>
5033 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
5035 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5038 * doc/sourcebuild.texi (Require Support): Document
5039 dg-require-ascii-locale.
5041 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
5043 * doc/lto.texi (Write summary): Fix missing parentheses.
5045 2011-02-10 DJ Delorie <dj@redhat.com>
5047 * config/m32c/m32c.c (m32c_option_override): Disable
5048 -fcombine-stack-adjustments until flag value tracking and compare
5049 optimization can be rewritten.
5051 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
5053 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
5055 (PROCESSOR_DEFAULT64): Likewise.
5057 2011-02-10 Richard Henderson <rth@redhat.com>
5059 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
5060 change from 2011-02-03.
5061 * config/rx/rx.c (flags_from_code): Likewise.
5062 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
5063 is valid, n/pz otherwise.
5064 (rx_select_cc_mode): Return CCmode if Y is not zero.
5066 2011-02-10 Richard Guenther <rguenther@suse.de>
5068 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
5070 2011-02-10 Richard Guenther <rguenther@suse.de>
5072 PR tree-optimization/47677
5073 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
5075 2011-02-10 Jakub Jelinek <jakub@redhat.com>
5078 * combine.c (make_compound_operation): Only change shifts into
5079 multiplication for SCALAR_INT_MODE_P.
5081 2011-02-10 Jie Zhang <jie@codesourcery.com>
5085 2011-02-05 Jie Zhang <jie@codesourcery.com>
5087 * web.c (entry_register): Don't clobber the number of the
5088 first uninitialized reference in used[].
5090 2011-02-09 Richard Guenther <rguenther@suse.de>
5092 PR tree-optimization/47664
5093 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
5096 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
5100 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
5102 (PROCESSOR_DEFAULT64): Same.
5103 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
5105 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5107 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
5109 2011-02-09 Martin Jambor <mjambor@suse.cz>
5112 * tree-sra.c (struct access): New flags grp_scalar_read and
5113 grp_scalar_write. Changed description of assignment read and write
5115 (dump_access): Dump new flags, reorder all of them.
5116 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
5117 to detect multiple scalar reads.
5118 (analyze_access_subtree): Use the new scalar read write flags instead
5119 of the old flags. Adjusted comments.
5121 2011-02-08 DJ Delorie <dj@redhat.com>
5124 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
5127 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5129 * config/m68k/uclinux.opt: New.
5130 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
5132 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5134 * config/cris/elf.opt (sim): New Driver option.
5136 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5138 * config/xtensa/elf.opt: New.
5139 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
5141 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5143 * config/vax/elf.opt: New.
5144 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
5146 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5148 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
5150 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5152 * config/gnu-user.opt: New.
5153 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
5154 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
5155 *-*-uclinux*): Use gnu-user.opt.
5157 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
5159 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
5160 * config/i386/gnu.h (CPP_SPEC): Likewise.
5162 2011-02-08 Ian Lance Taylor <iant@google.com>
5164 * common.opt (fcx-limited-range): Add SetByCombined flag.
5165 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
5166 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
5167 (fassociative-math, freciprocal-math): Likewise.
5168 (funsafe-math-optimizations): Likewise.
5169 * opth-gen.awk: Handle SetByCombined.
5170 * optc-gen.awk: Likewise.
5171 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5172 (set_unsafe_math_optimizations_flags): Likewise.
5173 * doc/options.texi (Option properties): Document SetByCombined.
5175 2011-02-08 Joseph Myers <joseph@codesourcery.com>
5177 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
5178 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
5179 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
5180 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
5181 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
5183 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
5185 PR tree-optimization/46834
5186 PR tree-optimization/46994
5187 PR tree-optimization/46995
5188 * graphite-sese-to-poly.c (used_outside_reduction): New.
5189 (detect_commutative_reduction): Call used_outside_reduction.
5190 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
5191 translate_scalar_reduction_to_array only when at least one
5192 loop-phi/close-phi tuple has been detected.
5194 2011-02-08 Richard Guenther <rguenther@suse.de>
5197 * tree-vect-generic.c (expand_vector_operations_1): Update
5199 (expand_vector_operations): ... not here. Cleanup EH info
5200 and the CFG if required.
5202 2011-02-08 Richard Guenther <rguenther@suse.de>
5204 PR tree-optimization/47641
5205 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
5206 require type compatibility.
5208 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5210 * gimple-low.c (lower_function_body): Don't remove the location of
5211 the return statement here.
5212 (lower_gimple_return): Do it here instead but only if the return
5213 statement is actually used twice.
5215 2011-02-08 Richard Guenther <rguenther@suse.de>
5217 PR tree-optimization/47632
5218 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
5219 unused up_to_stmt parameter, return whether cfg-cleanup is
5220 necessary, remove EH info properly.
5221 (forward_propagate_into_gimple_cond): Adjust caller.
5222 (forward_propagate_into_cond): Likewise.
5223 (forward_propagate_comparison): Likewise.
5224 (tree_ssa_forward_propagate_single_use_vars): Make
5225 forward_propagate_comparison case similar to the two others.
5227 2011-02-08 Nick Clifton <nickc@redhat.com>
5229 * config/mn10300/mn10300.opt (mliw): New command line option.
5230 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
5231 (liw_bundling): New automaton.
5232 (liw): New attribute.
5233 (liw_op): New attribute.
5234 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
5235 (movsi_internal): Add LIW attributes.
5239 (addsi3): Separate register and immediate alternatives.
5244 (lshrsi3): Likewise.
5245 (ashrsi3): Likewise.
5247 * config/mn10300/mn10300.c (liw_op_names): New
5248 (mn10300_print_operand): Handle 'W' operand descriptor.
5249 (extract_bundle): New function.
5250 (check_liw_constraints): New function.
5251 (liw_candidate): New function.
5252 (mn10300_bundle_liw): New function.
5253 (mn10300_reorg): New function.
5254 (TARGET_MACHINE_DEPENDENT_REORG): Define.
5255 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
5256 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
5257 __LIW__ or __NO_LIW__.
5258 * doc/invoke.texi: Describe the -mliw command line option.
5260 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5262 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
5263 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
5264 pthread_mutex_unlock): Remove.
5265 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
5266 * config/pa/t-pa64: Likewise.
5267 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
5268 shared libc if not linking against libpthread.
5269 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
5271 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
5274 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
5275 on 10.6 and later to ensure that we always use the unwinder from
5276 the system. Only add -no_compact_unwind when tarteting darwin
5279 2011-02-07 Steve Ellcey <sje@cup.hp.com>
5282 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
5283 (vec_interleave_lowv2sf): Ditto.
5284 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
5285 (vec_extract_oddv2sf): Ditto.
5287 2011-02-07 Mike Stump <mikestump@comcast.net>
5290 Add __ieee_divdc3 entry point.
5291 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
5293 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
5294 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
5295 * config/darwin.c (darwin_rename_builtins): Add.
5296 * config/darwin-protos.h (darwin_rename_builtins): Add.
5298 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
5301 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
5304 2011-02-07 Mike Stump <mikestump@comcast.net>
5306 * config/darwin.opt (mmacosx-version-min): Update default OS version.
5308 2011-02-07 Denis Chertykov <chertykov@gmail.com>
5311 * config/avr/libgcc.S (exit): Move .endfunc
5313 2011-02-07 Richard Guenther <rguenther@suse.de>
5315 PR tree-optimization/47615
5316 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
5317 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
5318 (run_scc_vn): Initialize it.
5319 (visit_reference_op_load): Use it.
5320 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
5322 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5324 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
5325 DImode trapping arithmetic libfuncs.
5327 2011-02-07 Richard Guenther <rguenther@suse.de>
5329 PR tree-optimization/47621
5330 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
5332 (execute_update_addresses_taken): ... here. Make it more
5333 conservative in what we accept.
5335 2011-02-06 Joseph Myers <joseph@codesourcery.com>
5337 * config/sparc/freebsd.h (ASM_SPEC): Define.
5338 * config/sparc/vxworks.h (ASM_SPEC): Define.
5340 2011-02-06 Joseph Myers <joseph@codesourcery.com>
5342 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
5344 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
5346 * doc/invoke.texi: Remove reference to compiler internals from
5349 * reg-notes.def: Remove REG_VALUE_PROFILE.
5350 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
5352 2011-02-05 Jakub Jelinek <jakub@redhat.com>
5355 * varasm.c (default_section_type_flags): If decl is NULL,
5356 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
5358 2011-02-05 Jie Zhang <jie@codesourcery.com>
5361 * web.c (entry_register): Don't clobber the number of the
5362 first uninitialized reference in used[].
5364 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
5366 PR tree-optimization/46194
5367 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
5368 (build_classic_dist_vector_1): Do not represent classic distance
5369 vectors when the access functions are variating in different loops.
5371 2011-02-04 Joseph Myers <joseph@codesourcery.com>
5373 * config/mips/iris6.opt: New.
5374 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
5376 2011-02-04 Richard Henderson <rth@redhat.com>
5377 Steve Ellcey <sje@cup.hp.com>
5380 * config/ia64/predicates.md (mux1_brcst_element): New.
5381 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
5382 * config/ia64/ia64.c (ia64_unpack_assemble): New.
5383 (ia64_unpack_sign): New.
5384 (ia64_expand_unpack): Rewrite using new routines.
5385 (ia64_expand_widen_sum): Ditto.
5386 (ia64_expand_dot_prod_v8qi): Ditto.
5387 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
5388 routines, add endian check.
5389 (pmpy2_even): Rename from pmpy2_r, add endian check.
5390 (pmpy2_odd): Rename from pmpy2_l, add endian check.
5391 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
5392 (vec_widen_smult_hi_v4hi): Ditto.
5393 (vec_widen_umult_lo_v4hi): Ditto.
5394 (vec_widen_umult_hi_v4hi): Ditto.
5395 (mulv2si3): Change endian checks.
5396 (sdot_prodv4hi): Rewrite with new calls.
5397 (udot_prodv4hi): New.
5398 (vec_pack_ssat_v4hi): Add endian check.
5399 (vec_pack_usat_v4hi): Ditto.
5400 (vec_pack_ssat_v2si): Ditto.
5401 (max1_even): Rename from max1_r, add endian check.
5402 (max1_odd): Rename from max1_l, add endian check.
5403 (*mux1_rev): Format change.
5405 (*mux1_shuf): Ditto.
5407 (*mux1_brcst_v8qi): Use new predicate.
5408 (vec_extract_evenv8qi): Remove endian check.
5409 (vec_extract_oddv8qi): Ditto.
5410 (vec_interleave_lowv4hi): Format change.
5411 (vec_interleave_highv4hi): Ditto.
5412 (mix2_even): Rename from mix2_r, add endian check.
5413 (mix2_odd): Rename from mux2_l, add endian check.
5414 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
5415 (vec_extract_evenodd_helper): Format change.
5416 (vec_extract_evenv4hi): Remove endian check.
5417 (vec_extract_oddv4hi): Remove endian check.
5418 (vec_interleave_lowv2si): Format change.
5419 (vec_interleave_highv2si): Format change.
5420 (vec_initv2si): Remove endian check.
5421 (vecinit_v2si): Add endian check.
5422 (reduc_splus_v2sf): Add endian check.
5423 (reduc_smax_v2sf): Ditto.
5424 (reduc_smin_v2sf): Ditto.
5425 (vec_initv2sf): Remove endian check.
5426 (fpack): Add endian check.
5427 (fswap): Add endian check.
5428 (vec_interleave_highv2sf): Add endian check.
5429 (vec_interleave_lowv2sf): Add endian check.
5430 (fmix_lr): Add endian check.
5431 (vec_setv2sf): Format change.
5432 (*vec_extractv2sf_0_be): Use shift to extract operand.
5433 (*vec_extractv2sf_1_be): New.
5434 (vec_pack_trunc_v4hi): Add endian check.
5435 (vec_pack_trunc_v2si): Format change.
5437 2011-02-04 Jakub Jelinek <jakub@redhat.com>
5440 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
5441 do bb, locus and block comparison and disallow loads if it is not set.
5442 (stmt_is_replaceable_p): New function.
5443 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
5445 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
5446 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
5448 * tree-flow.h (stmt_is_replaceable_p): New prototype.
5450 2011-02-04 Joseph Myers <joseph@codesourcery.com>
5452 * config/rs6000/xilinx.opt: New.
5453 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
5455 2011-02-04 Joseph Myers <joseph@codesourcery.com>
5457 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
5459 2011-02-03 Anatoly Sokolov <aesok@post.ru>
5461 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
5462 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
5463 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
5464 secondary_reload_info, xtensa_secondary_reload): Remove.
5465 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
5466 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
5467 (xtensa_preferred_reload_class): Make static. Change return and
5468 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
5469 Use CONST_DOUBLE_P predicate.
5470 (xtensa_preferred_output_reload_class): New function.
5471 (xtensa_secondary_reload): Make static.
5473 2011-02-03 Joseph Myers <joseph@codesourcery.com>
5475 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
5476 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
5477 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
5479 2011-02-03 Jakub Jelinek <jakub@redhat.com>
5482 * output.h (SECTION_RELRO): Define.
5483 (SECTION_MACH_DEP): Adjust.
5484 (get_variable_section): New prototype.
5485 * varpool.c (varpool_finalize_named_section_flags): New function.
5486 (varpool_assemble_pending_decls): Call it.
5487 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
5488 * cgraphunit.c (cgraph_output_in_order): Call
5489 varpool_finalize_named_section_flags.
5490 * varasm.c (get_section): Allow section flags conflicts between
5491 relro and read-only sections if the section hasn't been declared yet.
5492 Set SECTION_OVERRIDE after diagnosing section type conflict.
5493 (get_variable_section): No longer static.
5494 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
5495 readonly sections that need relocations.
5496 (decl_readonly_section_1): New function.
5497 (decl_readonly_section): Use it.
5500 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
5501 Steve Ellcey <sje@cup.hp.com>
5504 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
5505 if section attribute used.
5507 2011-02-03 Jakub Jelinek <jakub@redhat.com>
5509 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
5510 * config/darwin.c (SECTION_NO_ANCHOR): Define.
5511 (darwin_init_sections): Remove assertion.
5513 2011-02-03 Nick Clifton <nickc@redhat.com>
5515 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
5517 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
5518 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
5519 instead of "n" and "pz".
5520 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
5523 2011-02-03 Jakub Jelinek <jakub@redhat.com>
5526 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
5527 fma, expand FMA_EXPR as fma{,f,l} call.
5530 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
5531 copy them into a unsigned char variable and pass address of it to
5532 lto_output_data_stream.
5535 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
5536 around backend_init_target and lang_dependent_init_target calls.
5537 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
5538 (verify_cgraph_node): Don't call set_cfun here. Use
5539 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
5540 Set error_found for incorrectly represented calls to thunks.
5542 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
5545 PR rtl-optimization/43494
5546 * rtl.h (for_each_inc_dec_fn): New type.
5547 (for_each_inc_dec): Declare.
5548 * rtlanal.c (struct for_each_inc_dec_ops): New type.
5549 (for_each_inc_dec_find_inc_dec): New fn.
5550 (for_each_inc_dec_find_mem): New fn.
5551 (for_each_inc_dec): New fn.
5552 * dse.c (struct insn_size): Remove.
5553 (replace_inc_dec, replace_inc_dec_mem): Remove.
5554 (emit_inc_dec_insn_before): New fn.
5555 (check_for_inc_dec): Use it, along with for_each_inc_dec.
5556 (canon_address): Pass mem modes to cselib_lookup.
5557 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
5558 (cselib_lookup_from_insn): Likewise.
5559 (cselib_subst_to_values): Likewise.
5560 * cselib.c (find_slot_memmode): New var.
5561 (cselib_find_slot): New fn. Use it instead of
5562 htab_find_slot_with_hash everywhere.
5563 (entry_and_rtx_equal_p): Use find_slot_memmode.
5564 (autoinc_split): New fn.
5565 (rtx_equal_for_cselib_p): Rename and implement in terms of...
5566 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
5567 Deal with autoinc. Special-case recursion into MEMs.
5568 (cselib_hash_rtx): Likewise.
5569 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
5570 address and MEM modes.
5571 (cselib_subst_to_values): Add memmode, pass it on.
5573 (cselib_lookup): Add memmode argument, pass it on.
5574 (cselib_lookup_from_insn): Add memmode.
5575 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
5576 (struct cselib_record_autoinc_data): New.
5577 (cselib_record_autoinc_cb): New fn.
5578 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
5579 mode to cselib_lookup. Reset autoinced REGs here instead of...
5580 (cselib_process_insn): ... here.
5581 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
5583 (add_uses): Likewise, also to cselib_subst_to_values.
5584 (add_stores): Likewise.
5585 * sched-deps.c (add_insn_mem_dependence): Pass mode to
5586 cselib_subst_to_values.
5587 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
5588 * gcse.c (do_local_cprop): Adjusted.
5589 * postreload.c (reload_cse_simplify_set): Adjusted.
5590 (reload_cse_simplify_operands): Adjusted.
5591 * sel-sched-dump (debug_mem_addr_value): Pass mode.
5593 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
5595 PR tree-optimization/45122
5596 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
5597 unsafe assumptions when there's more than one loop exit.
5599 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
5602 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
5603 Document using vector double with the load/store builtins, and
5604 that the load/store builtins always use Altivec instructions.
5606 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
5607 to use altivec memory instructions, even on VSX.
5608 (vector_altivec_store_<mode>): Ditto.
5610 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
5613 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5614 V2DF, V2DI support to load/store overloaded builtins.
5616 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
5617 altivec load/store builtins for V2DF/V2DI types.
5619 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
5620 set avoid indexed addresses on power6 if -maltivec.
5621 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
5622 vector_altivec_load/vector_altivec_store builtins.
5623 (altivec_expand_st_builtin): Ditto.
5624 (altivec_expand_builtin): Add VSX memory builtins.
5625 (rs6000_init_builtins): Add V2DI types to internal types.
5626 (altivec_init_builtins): Add support for V2DF/V2DI altivec
5627 load/store builtins.
5628 (rs6000_address_for_altivec): Insure memory address is appropriate
5631 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
5632 vec_vsx_ld and vec_vsx_st.
5633 (vsx_store_<mode>): Ditto.
5635 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
5636 variables to hold long long types for VSX vector memory builtins.
5637 (RS6000_BTI_unsigned_long_long): Ditto.
5638 (long_long_integer_type_internal_node): Ditti.
5639 (long_long_unsigned_type_internal_node): Ditti.
5641 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
5642 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
5643 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
5645 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
5647 (vec_vsx_st): Ditto.
5649 2011-02-02 Joseph Myers <joseph@codesourcery.com>
5651 * config/pa/pa-hpux10.opt: New.
5652 * config/hpux11.opt (pthread): New Driver option.
5653 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
5654 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
5656 2011-02-02 Joseph Myers <joseph@codesourcery.com>
5658 * config/ia64/vms.opt: New.
5659 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
5661 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
5664 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
5665 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
5666 generator functions.
5667 (vsx_floatuns<VSi><mode>2): Ditto.
5668 (vsx_fix_trunc<mode><VSi>2): Ditto.
5669 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
5671 2011-02-02 Joseph Myers <joseph@codesourcery.com>
5673 * config/i386/djgpp.opt (posix): New Driver option.
5675 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
5677 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
5678 Move to the unsupported targets list.
5680 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
5682 PR rtl-optimization/47525
5683 * df-scan.c: Update copyright years.
5684 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
5685 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
5687 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5689 * config/i386/sysv4.h (TARGET_VERSION): Remove.
5690 (SUBTARGET_RETURN_IN_MEMORY): Remove.
5691 (ASM_OUTPUT_ASCII): Remove.
5692 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
5694 2011-02-02 Jeff Law <law@redhat.com>
5697 * reload.c (find_reloads_address): Handle reg+d address where both
5698 components are invalid by reloading the entire address.
5700 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
5701 Richard Guenther <rguenther@suse.de>
5703 PR tree-optimization/40979
5705 * passes.c (init_optimization_passes): After LIM call copy_prop
5706 and DCE to clean up.
5707 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
5709 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
5711 PR tree-optimization/47576
5712 PR tree-optimization/47555
5713 * doc/invoke.texi (scev-max-expr-complexity): Documented.
5714 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
5715 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
5716 * tree-scalar-evolution.c (follow_ssa_edge): Use
5717 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
5719 2011-02-02 Richard Guenther <rguenther@suse.de>
5721 PR tree-optimization/47566
5722 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
5724 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
5728 * tree-inline.c (declare_return_variable): Remove unused caller
5733 * tree-flow-inline.h (clear_is_used, is_used_p): New.
5734 * cfgexpand.c (account_used_vars_for_block): Use them.
5735 * tree-nrv.c (tree_nrv): Likewise.
5736 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
5737 (dump_scope_block): Likewise.
5738 (remove_unused_locals): Likewise.
5742 * tree-inline.c (declare_return_variable): Add result decl to
5743 local decls only once.
5744 * gimple-low.c (record_vars_into): Mark newly-created variables
5747 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
5753 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
5755 (no_real_insns_p, schedule_block, set_priorities): Drop special
5756 treatment of boundary debug insns.
5757 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
5758 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
5759 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
5760 (BOUNDARY_DEBUG_INSN_P): Likewise.
5761 (SCHEDULE_DEBUG_INSN_P): Likewise.
5762 * sched-rgn.c (init_ready_list): Drop special treatment of
5763 boundary debug insns.
5764 * final.c (rest_of_clean_state): Clear notes' BB.
5766 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5768 * config/openbsd.opt (assert=): New Driver option.
5770 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5772 * config/i386/nto.opt: New.
5773 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
5775 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5777 * config/i386/netware.opt: New.
5778 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
5780 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5782 * config/interix.opt (posix): New Driver option.
5784 2011-02-01 DJ Delorie <dj@redhat.com>
5786 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
5788 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
5791 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
5793 PR tree-optimization/47561
5794 * toplev.c (process_options): Print the Graphite flags. Add
5795 flag_loop_flatten to the list of options requiring Graphite.
5797 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5799 * config/i386/cygming.opt (posix): New Driver option.
5801 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5803 * config/arm/vxworks.opt: New.
5804 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
5806 2011-02-01 Joseph Myers <joseph@codesourcery.com>
5808 * config/alpha/elf.opt: New.
5809 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
5810 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
5812 2011-02-01 Richard Guenther <rguenther@suse.de>
5814 PR tree-optimization/47559
5815 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
5816 store-motion on references that can throw.
5818 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
5820 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
5821 * tree-pass.h (TDF_CSELIB): New macro.
5822 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
5823 cselib_lookup): Check for it rather than for TDF_DETAILS.
5825 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
5828 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
5831 * opts.c (finish_options): Don't add x_aux_base_name if it is
5834 2011-02-01 Richard Guenther <rguenther@suse.de>
5836 PR tree-optimization/47555
5838 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
5840 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
5842 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
5845 * config/lm32/t-lm32: Add multilib for all CPU options.
5847 2011-02-01 Richard Guenther <rguenther@suse.de>
5849 PR tree-optimization/47541
5850 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
5851 sure to have a field at offset zero.
5853 2011-01-31 Joseph Myers <joseph@codesourcery.com>
5855 * config/arc/arc.opt (EB, EL): New Driver options.
5857 2011-01-31 Joseph Myers <joseph@codesourcery.com>
5859 * config/alpha/osf5.opt: New.
5860 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
5862 2011-01-31 Joseph Myers <joseph@codesourcery.com>
5864 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
5866 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
5868 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
5870 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
5871 is an alias of -floop-interchange and that it requires the
5872 Graphite infrastructure.
5873 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
5874 flag_loop_interchange based on the value of flag_tree_loop_linear.
5876 2011-01-31 Jakub Jelinek <jakub@redhat.com>
5877 Richard Guenther <rguenther@suse.de>
5879 PR tree-optimization/47538
5880 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
5881 type instead of r1type, except for comparisons. For right
5882 shifts and comparisons punt if there are mismatches in
5883 sizetype vs. non-sizetype types.
5885 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5887 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5890 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5892 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
5894 * configure: Regenerate.
5896 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5898 * configure.ac (gcc_cv_ld_static_option): Define.
5899 (gcc_cv_ld_dynamic_option): Define.
5900 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
5902 (HAVE_LD_STATIC_DYNAMIC): Update message.
5903 (LD_STATIC_OPTION): Define.
5904 (LD_DYNAMIC_OPTION): Define.
5905 * configure: Regenerate.
5906 * config.in: Regenerate.
5907 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
5908 HAVE_LD_STATIC_DYNAMIC]: Use them.
5910 2011-01-31 Nick Clifton <nickc@redhat.com>
5912 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
5913 registers inside interrupt handlers if the handler is not a leaf
5916 2011-01-31 Nick Clifton <nickc@redhat.com>
5918 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
5919 reg_renumber returning an INVALID_REGNUM.
5921 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
5924 * doc/install.texi: Document host options discarded when cross
5925 configuring target libraries.
5927 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
5930 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
5933 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
5935 (no_real_insns_p, schedule_block, set_priorities): Drop special
5936 treatment of boundary debug insns.
5937 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
5938 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
5939 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
5940 (BOUNDARY_DEBUG_INSN_P): Likewise.
5941 (SCHEDULE_DEBUG_INSN_P): Likewise.
5942 * sched-rgn.c (init_ready_list): Drop special treatment of
5943 boundary debug insns.
5944 * final.c (rest_of_clean-state): Clear notes' BB.
5946 2011-01-31 Alan Modra <amodra@gmail.com>
5948 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
5949 toc relative expressions as we do in print_operand_address.
5951 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
5953 * doc/extend.texi: Follow spelling conventions.
5954 * doc/invoke.texi: Fix a typo.
5956 2011-01-30 Joseph Myers <joseph@codesourcery.com>
5958 * config/hpux11.opt: New.
5959 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
5960 ia64*-*-hpux*): Use hpux11.opt.
5962 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
5964 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
5967 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
5969 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
5972 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
5974 * doc/install.texi (Binaries): Remove outdated reference for
5975 Motorola 68HC11/68HC12 downloads.
5977 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
5979 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
5982 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
5985 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
5988 2011-01-28 Ahmad Sharif <asharif@google.com>
5990 * value-prof.c (check_counter): Corrected error message.
5992 2011-01-29 Jie Zhang <jie@codesourcery.com>
5994 * config/arm/arm.c (arm_legitimize_reload_address): New.
5995 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
5996 arm_legitimize_reload_address.
5997 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
5999 2011-01-28 Ian Lance Taylor <iant@google.com>
6001 * godump.c (go_define): Ignore macros whose definitions include
6002 two adjacent operands.
6004 2011-01-28 Jakub Jelinek <jakub@redhat.com>
6007 * varasm.c (force_const_mem): Store copy of x in desc->constant
6008 instead of x itself.
6009 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
6010 itself into REG_EQUAL note.
6012 2011-01-28 Joseph Myers <joseph@codesourcery.com>
6014 * config/freebsd.opt (posix, rdynamic): New Driver options.
6016 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6018 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
6020 * configure: Regenerate.
6022 2011-01-27 Joseph Myers <joseph@codesourcery.com>
6024 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
6025 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
6027 2011-01-27 Anatoly Sokolov <aesok@post.ru>
6029 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
6030 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
6031 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6032 (s390_preferred_reload_class): Make static. Change return and
6033 'rclass' argument type to reg_class_t.
6035 2011-01-27 Jan Hubicka <jh@suse.cz>
6038 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
6039 (process_function_and_variable_attributes): Check defined weakrefs.
6041 2011-01-27 Martin Jambor <mjambor@suse.cz>
6043 PR tree-optimization/47228
6044 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
6045 build_ref_for_offset.
6047 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6049 * config/spu/spu-elf.h (ASM_SPEC): Remove.
6051 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
6053 PR rtl-optimization/46856
6054 * postreload.c (reload_combine_recognize_const_pattern): Do not
6055 separate cc0 setter and user on cc0 targets.
6057 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
6060 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
6061 passed a VOID_TYPE expression, immediately emit an error and
6062 return error_mark_node.
6064 2011-01-26 Jeff Law <law@redhat.com>
6066 PR rtl-optimization/47464
6067 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
6068 rather than may_trap_p as needed.
6070 2011-01-26 DJ Delorie <dj@redhat.com>
6072 PR rtl-optimization/46878
6073 * combine.c (insn_a_feeds_b): Check for the implicit cc0
6074 setter/user dependency as well.
6076 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
6078 PR rtl-optimization/44469
6079 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
6080 after removing trivially dead basic blocks.
6082 2011-01-26 Joseph Myers <joseph@codesourcery.com>
6084 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
6085 * config/frv/frv.h (LINK_SPEC): Likewise.
6086 * config/i386/netware.h (LINK_SPEC): Likewise.
6087 * config/m68k/linux.h (ASM_SPEC): Likewise.
6088 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
6089 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
6090 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
6091 * config/sparc/linux.h (ASM_SPEC): Likewise.
6092 * config/sparc/linux64.h (ASM_SPEC): Likewise.
6093 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
6095 2011-01-26 Joseph Myers <joseph@codesourcery.com>
6097 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
6098 * config/frv/frv.h (ASM_SPEC): Likewise.
6099 * config/m68k/linux.h (ASM_SPEC): Likewise.
6100 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
6101 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
6102 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
6103 * config/sparc/linux.h (ASM_SPEC): Likewise.
6104 * config/sparc/linux64.h (ASM_SPEC): Likewise.
6105 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
6107 2011-01-26 Joseph Myers <joseph@codesourcery.com>
6109 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
6110 * config/frv/frv.h (LINK_SPEC): Likewise.
6111 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
6113 2011-01-26 Joseph Myers <joseph@codesourcery.com>
6115 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
6116 * config/frv/frv.h (ASM_SPEC): Likewise.
6117 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
6118 * config/m68k/linux.h (ASM_SPEC): Likewise.
6119 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
6120 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
6121 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
6122 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
6123 * config/sparc/linux.h (ASM_SPEC): Likewise.
6124 * config/sparc/linux64.h (ASM_SPEC): Likewise.
6125 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
6126 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
6128 2011-01-26 Steve Ellcey <sje@cup.hp.com>
6131 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
6133 (vec_extract_evenodd_help): Ditto.
6134 (vec_extract_evenv4hi): Ditto.
6135 (vec_extract_oddv4hi): Ditto.
6136 (vec_interleave_lowv2si): Ditto.
6137 (vec_interleave_highv2si): Ditto.
6138 (vec_extract_evenv2si): Ditto.
6139 (vec_extract_oddv2si: Ditto.
6140 (vec_pack_trunc_v2si): Ditto.
6142 2011-01-22 Jan Hubicka <jh@suse.cz>
6145 * cgraph.h (cgraph_local_info): New field can_change_signature.
6146 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
6147 signature can change.
6148 (ipcp_estimate_growth): Call sequence simplify only if calle signature
6150 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
6151 (cgraph_function_versioning): We can not change signature of functions
6152 that don't allow that.
6153 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
6154 (lto_input_node): Likewise.
6155 * ipa-inline.c (compute_inline_parameters): Compute
6156 local.can_change_signature.
6157 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
6158 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
6159 functions that can not change signature.
6160 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
6161 init_cumulative_args): Do not use local calling conventions
6162 for functions that can not change signature.
6164 2011-01-22 Jan Hubicka <jh@suse.cz>
6166 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
6168 2011-01-26 Richard Guenther <rguenther@suse.de>
6170 PR tree-optimization/47190
6171 * cgraphunit.c (process_common_attributes): New function.
6172 (process_function_and_variable_attributes): Use it.
6174 2011-01-26 Richard Guenther <rguenther@suse.de>
6177 * cgraphbuild.c (record_eh_tables): Record reference to personality
6180 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
6183 * sel-sched.c (moveup_expr): Don't let debug insns prevent
6184 non-debug insns from moving up.
6186 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
6189 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
6190 t-dlldir{,-x} fragment for build and add it to tmake_file.
6191 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
6192 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
6193 * config/i386/t-dlldir: New file.
6194 (SHLIB_DLLDIR): Define.
6195 * config/i386/t-dlldir-x: New file.
6196 (SHLIB_DLLDIR): Define.
6197 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
6198 (SHLIB_INSTALL): Use it.
6200 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
6203 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
6204 lower bound of the allowed Thumb-2 coprocessor load/store
6205 index range to -256. Add explaining comment.
6207 2011-01-25 Ian Lance Taylor <iant@google.com>
6209 * godump.c (go_define): Improve lexing of macro expansion to only
6210 accept expressions which match Go spec.
6212 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
6215 * tree.c (handle_dll_attribute): Handle it.
6216 * doc/extend.texi (@item dllexport): Mention it.
6217 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
6219 2011-01-25 Ian Lance Taylor <iant@google.com>
6221 PR tree-optimization/26854
6222 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
6223 (decl_jump_unsafe): Move higher in file, with no other change.
6224 (bind): Set has_jump_unsafe_decl if appropriate.
6225 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
6226 (check_earlier_gotos): Likewise.
6227 (c_check_switch_jump_warnings): Likewise.
6229 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
6231 * doc/invoke.texi (Warning Options): Add missing hyphen.
6232 (-fprofile-dir): Minor grammatical fixes.
6233 (-fbranch-probabilities): Likewise.
6235 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
6239 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
6241 (no_real_insns_p, schedule_block, set_priorities): Drop special
6242 treatment of boundary debug insns.
6243 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
6244 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
6245 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
6246 (BOUNDARY_DEBUG_INSN_P): Likewise.
6247 (SCHEDULE_DEBUG_INSN_P): Likewise.
6248 * sched-rgn.c (init_ready_list): Drop special treatment of
6249 boundary debug insns.
6250 * final.c (rest_of_clean-state): Clear notes' BB.
6252 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6254 * Makefile.in (LAMBDA_H): Removed.
6255 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
6256 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
6257 lambda-trans.o, and tree-loop-linear.o.
6258 (lto-symtab.o): Remove dependence on LAMBDA_H.
6259 (tree-loop-linear.o): Remove rule.
6260 (lambda-mat.o): Same.
6261 (lambda-trans.o): Same.
6262 (lambda-code.o): Same.
6263 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
6264 (tree-vect-slp.o): Same.
6265 * hwint.h (gcd): Moved here.
6266 (least_common_multiple): Same.
6267 * lambda-code.c: Removed.
6268 * lambda-mat.c: Removed.
6269 * lambda-trans.c: Removed.
6270 * lambda.h: Removed.
6271 * tree-loop-linear.c: Removed.
6272 * lto-symtab.c: Do not include lambda.h.
6273 * omega.c (gcd): Removed.
6274 * passes.c (init_optimization_passes): Remove pass_linear_transform.
6275 * tree-data-ref.c (print_lambda_vector): Moved here.
6276 (lambda_vector_copy): Same.
6277 (lambda_matrix_copy): Same.
6278 (lambda_matrix_id): Same.
6279 (lambda_vector_first_nz): Same.
6280 (lambda_matrix_row_add): Same.
6281 (lambda_matrix_row_exchange): Same.
6282 (lambda_vector_mult_const): Same.
6283 (lambda_vector_negate): Same.
6284 (lambda_matrix_row_negate): Same.
6285 (lambda_vector_equal): Same.
6286 (lambda_matrix_right_hermite): Same.
6287 * tree-data-ref.h: Do not include lambda.h.
6288 (lambda_vector): Moved here.
6289 (lambda_matrix): Same.
6290 (dependence_level): Same.
6291 (lambda_transform_legal_p): Removed declaration.
6292 (lambda_collect_parameters): Same.
6293 (lambda_compute_access_matrices): Same.
6294 (lambda_vector_gcd): Same.
6295 (lambda_vector_new): Same.
6296 (lambda_vector_clear): Same.
6297 (lambda_vector_lexico_pos): Same.
6298 (lambda_vector_zerop): Same.
6299 (lambda_matrix_new): Same.
6300 * tree-flow.h (least_common_multiple): Removed declaration.
6301 * tree-parloops.c (lambda_trans_matrix): Moved here.
6303 (LTM_ROWSIZE): Same.
6304 (LTM_COLSIZE): Same.
6305 (LTM_DENOMINATOR): Same.
6306 (lambda_trans_matrix_new): Same.
6307 (lambda_matrix_vector_mult): Same.
6308 (lambda_transform_legal_p): Same.
6309 * tree-pass.h (pass_linear_transform): Removed declaration.
6310 * tree-ssa-loop.c (tree_linear_transform): Removed.
6311 (gate_tree_linear_transform): Removed.
6312 (pass_linear_transform): Removed.
6313 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
6314 flag_loop_interchange.
6316 2011-01-25 Jakub Jelinek <jakub@redhat.com>
6318 PR tree-optimization/47265
6319 PR tree-optimization/47443
6320 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
6321 if name still has some uses.
6323 2011-01-25 Martin Jambor <mjambor@suse.cz>
6325 PR tree-optimization/47382
6326 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
6327 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
6329 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
6331 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
6332 sjlj_except_unwind_info.
6334 2011-01-25 Richard Guenther <rguenther@suse.de>
6336 PR tree-optimization/47426
6337 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
6338 visible functions results escape.
6340 2011-01-25 Jakub Jelinek <jakub@redhat.com>
6343 * config/arm/arm.c (any_sibcall_uses_r3): New function.
6344 (arm_get_frame_offsets): Use it.
6346 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6347 Jakub Jelinek <jakub@redhat.com>
6349 PR tree-optimization/47271
6350 * tree-if-conv.c (bb_postdominates_preds): New.
6351 (if_convertible_bb_p): Call bb_postdominates_preds.
6352 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
6353 (predicate_scalar_phi): Call bb_postdominates_preds.
6355 2011-01-25 Nick Clifton <nickc@redhat.com>
6357 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
6358 * config/rx/rx.c (rx_function_value): Likewise.
6359 (rx_promote_function_mode): Likewise.
6360 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
6361 in order to make it legitimate.
6362 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
6363 make sure that the first operand is the same as the result register.
6364 (addsi3_unspec): Delete.
6365 (subdi3): Do not accept immediate operands.
6366 (subdi3_internal): Likewise.
6368 2011-01-25 Jeff Law <law@redhat.com>
6370 PR rtl-optimization/37273
6371 * ira-costs.c (scan_one_insn): Detect constants living in memory and
6372 handle them like argument loads from stack slots. Do not double
6373 count memory for memory constants and argument loads from stack slots.
6375 2011-01-25 Jakub Jelinek <jakub@redhat.com>
6377 PR tree-optimization/47427
6378 PR tree-optimization/47428
6379 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
6380 coalesce if the new root var would be TREE_READONLY.
6382 2011-01-25 Richard Guenther <rguenther@suse.de>
6385 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
6386 correct type for TBAA.
6388 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6390 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
6391 (close_phi_written_to_memory): Call for_each_index with
6392 dr_indices_valid_in_loop.
6394 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6396 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
6397 when it is initialized.
6399 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6401 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
6402 call to graphite_find_data_references_in_stmt.
6403 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
6404 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
6405 call to graphite_find_data_references_in_stmt.
6406 (analyze_drs_in_stmts): Same.
6407 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
6408 in which the scalar analysis of indices is performed.
6409 (create_data_ref): Same. Update call to dr_analyze_indices.
6410 (find_data_references_in_stmt): Update call to create_data_ref.
6411 (graphite_find_data_references_in_stmt): Same.
6412 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
6414 (create_data_ref): Same.
6415 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
6416 call to create_data_ref.
6418 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6420 * graphite-sese-to-poly.c (build_poly_scop): Move
6421 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
6423 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6425 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
6426 VAR_DECL, PARM_DECL, and RESULT_DECL.
6428 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6430 * graphite-dependences.c (reduction_dr_1): Allow several reductions
6432 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
6433 that have already been marked as PBB_IS_REDUCTION.
6435 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6437 * graphite-scop-detection.c (same_close_phi_node): New.
6438 (remove_duplicate_close_phi): New.
6439 (make_close_phi_nodes_unique): New.
6440 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
6442 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6444 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
6445 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
6446 of both data references to be the same.
6448 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6450 * graphite-dependences.c (build_lexicographical_constraint): Remove
6452 (build_lexicographical_constraint): Adjust call to
6453 ppl_powerset_is_empty.
6454 (dependence_polyhedron): Same.
6455 (graphite_legal_transform_dr): Same.
6456 (graphite_carried_dependence_level_k): Same.
6457 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
6459 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
6461 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6463 * graphite-sese-to-poly.c
6464 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
6465 (close_phi_written_to_memory): New.
6466 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
6469 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6471 * doc/install.texi: Update the expected version number of PPL to 0.11.
6472 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
6473 #if PPL_VERSION_MINOR < 11.
6475 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6477 * graphite-dependences.c: Include graphite-cloog-util.h.
6478 (new_poly_ddr): Inlined into dependence_polyhedron.
6479 (free_poly_ddr): Moved close by new_poly_ddr.
6480 (dependence_polyhedron_1): Renamed dependence_polyhedron.
6481 Early return NULL when ppl_powerset_is_empty returns true.
6482 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
6483 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
6484 (graphite_legal_transform_dr): Call new_poly_ddr.
6485 (graphite_carried_dependence_level_k): Same.
6486 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
6487 (dot_transformed_deps_stmt_1): Removed.
6488 (dot_deps_stmt_1): Call dot_deps_stmt_2.
6489 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
6490 (dot_deps_1): Call dot_deps_2.
6491 * Makefile.in (graphite-dependences.o): Add missing dependence on
6492 graphite-cloog-util.h.
6494 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6496 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
6497 (build_lexicographical_constraint): Same.
6498 (dependence_polyhedron_1): Same.
6499 (graphite_legal_transform_dr): Same.
6500 (graphite_carried_dependence_level_k): Same.
6501 * graphite-ppl.c (ppl_powerset_is_empty): New.
6502 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
6503 * tree-data-ref.c (dump_data_reference): Print the basic block index.
6505 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6507 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
6508 the "a followed by b" relation and document it.
6510 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6512 * graphite-dependences.c (build_lexicographical_constraint): Stop the
6513 iteration when the bag of constraints is empty.
6515 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6517 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
6519 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6521 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
6522 nest and two loop depths as parameters.
6523 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
6524 lst_perfect_nestify.
6526 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6528 * graphite-dependences.c (print_pddr): Call
6529 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
6531 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6533 * graphite-ppl.c (debug_gmp_value): New.
6534 * graphite-ppl.h (debug_gmp_value): Declared.
6536 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
6538 * doc/install.texi: Document availability of cloog-0.16.
6540 2011-01-25 Vladimir Kargov <kargov@gmail.com>
6542 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
6543 invalid postdominance info.
6545 2011-01-24 Jan Hubicka <jh@suse.cz>
6548 * doc/extend.texi (weak pragma): Drop claim that it must
6549 appear before definition.
6550 * varasm.c (merge_weak, declare_weak): Only sanity check
6551 that DECL is not output at a time it is declared weak.
6553 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
6555 * machmode.def: Fixed comments.
6557 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
6559 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
6561 2011-01-24 Paul Koning <ni1d@arrl.net>
6563 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
6566 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
6569 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
6570 (block_info): Add scanned and prev.
6571 (move_or_delete_vzeroupper_2): Return if the basic block
6572 has been scanned and the upper 128bit state is unchanged
6574 (move_or_delete_vzeroupper_1): Return true if the exit
6576 (move_or_delete_vzeroupper): Visit basic blocks using the
6577 work-list based algorithm based on vt_find_locations in
6580 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
6582 2011-01-24 Nick Clifton <nickc@redhat.com>
6584 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
6585 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
6586 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
6587 then define __v850e1__.
6588 * doc/invoke.texi: Document -mv850es.
6590 2011-01-24 Richard Henderson <rth@redhat.com>
6592 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
6593 compound unordered comparisons.
6594 * config/rx/rx.c (rx_split_fp_compare): Remove.
6595 * config/rx/rx-protos.h: Update.
6596 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
6597 (cbranchsf4): Don't call rx_split_fp_compare.
6598 (*cbranchsf4): Use rx_split_cbranch.
6599 (*cmpsf): Don't accept "i" constraint.
6600 (*conditional_branch): Only valid after reload.
6601 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
6603 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6606 * config/rs6000/altivec.md (vector constant splitters): Add
6607 support for creating vector single precision constants if -mvsx is
6608 used and we would create the constant using Altivec primitives.
6610 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
6611 Richard Sandiford <rdsandiford@googlemail.com>
6613 PR rtl-optimization/47166
6614 * reload1.c (emit_reload_insns): Disable the spill_reg_store
6615 mechanism for PRE_MODIFY and POST_MODIFY.
6616 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
6619 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
6621 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
6623 2011-01-22 Jan Hubicka <jh@suse.cz>
6626 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
6628 2011-01-22 Jan Hubicka <jh@suse.cz>
6630 PR tree-optimization/43884
6632 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
6633 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
6635 2011-01-22 Anatoly Sokolov <aesok@post.ru>
6637 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6638 * config/s390/s390.c (s390_register_move_cost,
6639 s390_memory_move_cost): New.
6640 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
6642 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6645 * except.c (sjlj_assign_call_site_values): Move setting the
6646 crtl->uses_eh_lsda flag to ...
6647 (sjlj_mark_call_sites): ... here.
6648 (sjlj_emit_function_enter): Support NULL dispatch label.
6649 (sjlj_build_landing_pads): In a function with no landing pads
6650 that still has must-not-throw regions, generate code to register
6651 a personality function with empty LSDA.
6653 2011-01-21 Richard Henderson <rth@redhat.com>
6655 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
6657 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
6659 * compare-elim.c: New file.
6660 * Makefile.in (OBJS-common): Add it.
6661 (compare-elim.o): New.
6662 * common.opt (fcompare-elim): New.
6663 * opts.c (default_options_table): Add OPT_fcompare_elim.
6664 * tree-pass.h (pass_compare_elim_after_reload): New.
6665 * passes.c (init_optimization_passes): Add it.
6666 * recog.h: Protect against re-inclusion.
6667 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
6668 * doc/invoke.texi (-fcompare-elim): Document it.
6669 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
6670 * doc/tm.texi: Rebuild.
6672 2011-01-22 Nick Clifton <nickc@redhat.com>
6674 * config/rx/rx.md (cstoresf4): Pass comparison operator to
6675 rx_split_fp_compare.
6677 2011-01-22 Nick Clifton <nickc@redhat.com>
6679 * config/rx/rx.md (UNSPEC_CONST): New.
6680 (deallocate_and_return): Wrap the amount popped off the stack in
6681 an UNSPEC_CONST in order to stop it being rejected by
6682 -mmax-constant-size.
6683 (pop_and_return): Add a "(return)" rtx.
6684 (call): Drop the immediate operand.
6685 (call_internal): Likewise.
6686 (call_value): Likewise.
6687 (call_value_internal): Likewise.
6688 (sibcall_internal): Likewise.
6689 (sibcall_value_internal): Likewise.
6690 (sibcall): Likewise. Generate an explicit call using
6692 (sibcall_value): Likewise.
6693 (mov<>): FAIL if a constant operand is not legitimate.
6694 (addsi3_unpsec): New pattern.
6696 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
6697 (ok_for_max_constant): New function.
6698 (gen_safe_add): New function.
6699 (rx_expand_prologue): Use gen_safe_add.
6700 (rx_expand_epilogue): Likewise.
6701 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
6704 2011-01-21 Jeff Law <law@redhat.com>
6706 PR tree-optimization/47053
6707 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
6708 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
6709 statements are deleted.
6710 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
6711 is nonempty, then purge dead edges and cleanup the CFG.
6713 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
6717 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
6719 * tree-dfa.c (create_var_ann): Mark variable as used.
6721 2011-01-21 Jakub Jelinek <jakub@redhat.com>
6724 * except.c (convert_to_eh_region_ranges): Emit queued no-region
6725 notes from other section in hot/cold partitioning even if
6726 last_action is -3. Increment call_site_base.
6728 PR rtl-optimization/47366
6729 * fwprop.c (forward_propagate_into): Return bool. If
6730 any changes are made, -fnon-call-exceptions is used and
6731 REG_EH_REGION note is present, call purge_dead_edges
6732 and return true if it purged anything.
6733 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
6734 any EH edges were purged.
6736 2011-01-21 Jeff Law <law@redhat.com>
6738 PR rtl-optimization/41619
6739 * caller-save.c (setup_save_areas): Break out code to determine
6740 which hard regs are live across calls by examining the reload chains
6741 so that it is always used.
6742 Eliminate code which checked REG_N_CALLS_CROSSED.
6744 2011-01-21 Jakub Jelinek <jakub@redhat.com>
6746 PR tree-optimization/47355
6747 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
6748 NOP has non-debug uses beyond PHIs in new_bb.
6750 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
6753 * cfgexpand.c (account_used_vars_for_block): Only account vars
6754 that are annotated as used.
6755 (estimated_stack_frame_size): Don't set TREE_USED.
6756 * tree-dfa.c (create_var_ann): Mark variable as used.
6758 2011-01-21 Richard Guenther <rguenther@suse.de>
6761 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
6763 2011-01-21 Richard Guenther <rguenther@suse.de>
6765 PR tree-optimization/47365
6766 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
6767 (vn_reference_lookup_pieces): Adjust.
6768 (vn_reference_lookup): Likewise.
6769 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
6770 (vn_reference_lookup_3): Only look through kills if in
6771 VN_WALKREWRITE mode.
6772 (vn_reference_lookup_pieces): Adjust.
6773 (vn_reference_lookup): Likewise.
6774 (visit_reference_op_load): Likewise.
6775 (visit_reference_op_store): Likewise.
6776 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
6777 (compute_avail): Likewise.
6778 (eliminate): Likewise.
6780 2011-01-21 Jakub Jelinek <jakub@redhat.com>
6782 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
6783 DECL_IGNORED_P non-reg vars if they are used.
6785 PR tree-optimization/47391
6786 * varpool.c (const_value_known_p): Return false if
6789 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
6792 * config/i386/i386.c (ix86_local_alignment): Handle
6793 case for va_list_type_node is nil.
6794 (ix86_canonical_va_list_type): Likewise.
6796 2011-01-21 Alan Modra <amodra@gmail.com>
6798 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
6799 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
6801 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6803 * config/arm/arm.md (define_attr type): Rename f_load
6804 and f_store to f_fpa_load and f_fpa_store. Update.
6805 (write_conflict): Deal with rename fallout.
6806 (*push_fp_multi): Likewise.
6807 * config/arm/fpa.md (f_load): Use f_fpa_load.
6808 (f_store): Use f_fpa_store.
6809 (*movsf_fpa): Likewise.
6810 (*movdf_fpa): Likewise.
6811 (*movxf_fpa): Likewise.
6812 (*thumb2_movsf_fpa): Likewise.
6813 (*thumb2_movdf_fpa): Likewise.
6814 (*thumb2_movxf_fpa): Likewise.
6815 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
6816 f_loadd and f_stored.
6817 (*thumb2_movdi_vfp): Likewise.
6818 (*thumb2_movsf_vfp): Fix attribute to f_loads.
6819 (*thumb2_movsi_vfp): Likewise.
6820 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
6821 Use f_loads instead of f_load.
6822 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
6824 2011-01-20 Anatoly Sokolov <aesok@post.ru>
6826 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6827 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
6828 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6829 (xtensa_mode_dependent_address_p): New function.
6830 (constantpool_address_p): Make static. Change return type to bool.
6831 Change argument type to const_rtx. Use CONST_INT_P predicate.
6833 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
6836 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
6838 2011-01-20 Jakub Jelinek <jakub@redhat.com>
6841 * cfgexpand.c (expand_debug_expr): Instead of generating
6842 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
6845 2011-01-20 Richard Guenther <rguenther@suse.de>
6848 * tree-inline.c (remap_gimple_op_r): Recurse manually for
6849 the pointer operand of MEM_REFs.
6851 2011-01-20 Jakub Jelinek <jakub@redhat.com>
6853 PR tree-optimization/46130
6854 * ipa-split.c (consider_split): If return_bb contains non-virtual
6855 PHIs other than for retval or if split_function would not adjust it,
6858 2011-01-20 Richard Guenther <rguenther@suse.de>
6860 PR tree-optimization/47167
6861 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
6862 Revert previous change, only avoid enumeral type changes.
6864 2011-01-19 Mike Stump <mikestump@comcast.net>
6866 * doc/tm.texi.in (BRANCH_COST): Englishify.
6867 * doc/tm.texi (BRANCH_COST): Likewise.
6869 2011-01-19 Dodji Seketeli <dodji@redhat.com>
6872 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
6873 (gen_scheduled_generic_parms_dies): New functions.
6874 (gen_struct_or_union_type_die): Schedule template parameters DIEs
6875 generation for the end of CU compilation.
6876 (dwarf2out_finish): Generate template parameters DIEs here.
6878 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
6881 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
6882 debug bind stmt on merge edges.
6884 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
6888 * function.c (instantiate_expr): Instantiate incoming rtl of
6889 implicit arguments, and recurse on VALUE_EXPRs.
6890 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
6891 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
6893 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
6895 * c-parser.c (c_parser_for_statement): Initialize
6896 collection_expression.
6898 2011-01-19 Joseph Myers <joseph@codesourcery.com>
6900 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
6902 2011-01-19 Joseph Myers <joseph@codesourcery.com>
6904 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
6905 (LINK_SHLIB_SPEC): Don't use %(link_path).
6906 (SUBTARGET_EXTRA_SPECS): Remove link_path.
6908 2011-01-19 Joseph Myers <joseph@codesourcery.com>
6910 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
6911 (NO_SHARED_LIB_SUPPORT): Remove.
6912 (LINK_SHLIB_SPEC): Remove one conditional definition.
6914 2011-01-19 Joseph Myers <joseph@codesourcery.com>
6916 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
6918 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
6919 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
6920 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
6921 %{call_shared} and conditionals on these options not being passed.
6922 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
6925 2011-01-19 Jakub Jelinek <jakub@redhat.com>
6927 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
6930 * ipa-split.c: Spelling fixes.
6932 2011-01-19 Richard Henderson <rth@redhat.com>
6934 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
6935 (*mulsi3): Likewise.
6937 * longlong.h [__mn10300__] (count_leading_zeros): New.
6938 [__mn10300__] (umul_ppmm, smul_ppmm): New.
6939 [__mn10300__] (add_ssaaaa, subddmmss): New.
6940 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
6941 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
6943 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6945 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
6947 2011-01-19 Richard Henderson <rth@redhat.com>
6949 * config/mn10300/mn10300.md (addsi3_flags): New.
6950 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
6951 (subsi3_flags, subc_internal, subdi3): New.
6952 (subdi3_internal, *subdi3_degenerate): New.
6953 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
6955 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
6956 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
6957 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
6958 * config/mn10300/mn10300-protos.h: Update.
6959 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
6960 (return_ret): Likewise. Rename from return_internal_regs.
6961 (return_internal): Remove.
6963 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
6964 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
6965 (mn10300_legitimate_constant_p): Likewise.
6966 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
6967 (mn10300_frame_size): New.
6968 (mn10300_expand_prologue): Use it.
6969 (mn10300_expand_epilogue): Likewise.
6970 (mn10300_initial_offset): Likewise.
6971 * config/mn10300/mn10300-protos.h: Update.
6972 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
6973 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
6974 (prologue, epilogue, return_internal): Tidy output code.
6975 (mn10300_store_multiple_operation, return): Likewise.
6976 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
6977 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
6978 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
6979 (load_pic, am33_load_pic): New.
6980 (mn10300_load_pic0, mn10300_load_pic1): New.
6982 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
6983 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
6984 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
6985 (cc_flags_for_mode, cc_flags_for_code): New.
6986 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
6987 overflow flag is not valid. Validate that the flags we need
6988 for the comparison are valid.
6989 (mn10300_output_cmp): Remove.
6990 (mn10300_output_add): New.
6991 (mn10300_select_cc_mode): Use cc_flags_for_code.
6992 (mn10300_split_cbranch): New.
6993 (mn10300_match_ccmode): New.
6994 (mn10300_split_and_operand_count): New.
6995 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
6997 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
6998 (addsi3): ... here. Use mn10300_output_add.
6999 (*addsi3_flags): New.
7000 (*am33_subsi3, *mn10300_subsi3): Merge...
7001 (subsi3): ... here. Use attribute isa.
7002 (*subsi3_flags): New.
7003 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
7005 (*am33_andsi3, *mn10300_andsi3): Merge...
7007 (*andsi3_flags): New.
7008 (andsi3 splitters): New.
7009 (*am33_iorsi3, *mn10300_iorsi3): Merge...
7011 (*iorsi3_flags): New.
7012 (*am33_xorsi3, *mn10300_xorsi3): Merge...
7014 (*xorsi3_flags): New.
7015 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
7016 (one_cmplsi2): ... here.
7017 (*one_cmplsi2_flags): New.
7018 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
7019 instead of "dax" in constraints. Use mn10300_split_cbranch.
7020 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
7021 use matching constraints to eliminate a self-comparison.
7022 (*integer_conditional_branch): Rename from integer_conditional_branch.
7023 Use int_mode_flags to match CC_REG.
7024 (*cbranchsi4_btst, *btstsi): New.
7025 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
7026 mn10300_split_cbranch.
7027 (*am33_cmpsf): Rename from am33_cmpsf.
7028 (*float_conditional_branch): Rename from float_conditional_branch.
7029 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
7030 (zero_extendqisi2): ... here.
7031 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
7032 (zero_extendhisi2): ... here.
7033 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
7034 (extendqisi2): ... here.
7035 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
7036 (extendhisi2): ... here.
7037 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
7038 (ashlsi3): ... here.
7039 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
7040 (lshrsi3): ... here.
7041 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
7042 (ashrsi3): ... here.
7043 (consecutive add peephole): Remove.
7044 * config/mn10300/predicates.md (label_ref_operand): New.
7045 (int_mode_flags): New.
7046 (CCZN_comparison_operator): New.
7048 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
7049 (throughput_42_latency_43): New reservation.
7050 (mulsidi3, umulsidi3): New expanders.
7051 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
7052 the MDR register to allocation; separately allocate the low and
7053 high parts of the DImode result.
7054 (umulsidi3_internal): Similarly.
7055 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
7056 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
7057 (udivsi3, umodsi3): Remove.
7058 (udivmodsi4, divmodsi4): New expanders.
7059 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
7060 (*divmodsi4): Simiarly.
7061 (ext_internal): New.
7063 * config/mn10300/constraints.md ("z"): New constraint.
7064 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
7065 (FIXED_REGISTERS): Don't fix MDR.
7066 (CALL_USED_REGSITERS): Reformat nicely.
7067 (REG_ALLOC_ORDER): Add MDR.
7068 (enum regclass): Add MDR_REGS.
7069 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
7070 (IRA_COVER_CLASSES): Add MDR_REGS.
7071 (REGNO_REG_CLASS): Handle MDR_REG.
7072 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
7073 (mn10300_register_move_cost): Likewise.
7074 * config/mn10300/mn10300.md (MDR_REG): New.
7075 (*movsi_internal): Handle moves to/from MDR_REGS.
7077 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
7079 (mn10300_secondary_reload): Tidy combination reload classes.
7080 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
7081 addresses for AM33. Allow symbolic offsets for reg+imm.
7082 (mn10300_regno_in_class_p): New.
7083 (mn10300_legitimize_reload_address): New.
7084 * config/mn10300/mn10300.h (enum reg_class): Remove
7085 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
7086 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
7088 (REG_CLASS_NAMES): Update to match.
7089 (REG_CLASS_CONTENTS): Likewise.
7090 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
7091 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
7092 (REGNO_IN_RANGE_P): Remove.
7093 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
7094 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
7095 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
7096 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
7097 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
7098 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
7099 (REGNO_GENERAL_P): New.
7100 (HAVE_POST_MODIFY_DISP): New.
7101 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
7102 (LEGITIMIZE_RELOAD_ADDRESS): New.
7103 * config/mn10300/mn10300-protos.h: Update.
7105 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
7106 DATA_REGS for AM33 stack-pointer destination.
7107 (mn10300_preferred_output_reload_class): Likewise.
7108 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
7109 into a form appropriate for ...
7110 (TARGET_SECONDARY_RELOAD): New.
7111 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
7112 * config/mn10300/mn10300-protos.h: Update.
7113 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
7114 reload_insi; use the "A" constraint for the scratch; handle AM33
7115 moves of sp to non-address registers.
7117 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
7118 (*movqi_internal): ... here.
7119 (*am33_movhi, *mn10300_movhi): Merge into...
7120 (*movhi_internal): ... here.
7121 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
7122 as the source/destination of moves from/to SP.
7123 (movsf): Only allow for AM33-2.
7124 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
7125 any integer constant constraint. Only allow for AM33-2. Tidy
7126 all of the alternative outputs.
7127 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
7128 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
7130 (udivsi3, umodsi3): New patterns for MN103 only.
7132 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
7134 * doc/tm.texi.in: Spell out that a lack of register class unions
7136 * doc/tm.texi: Regenerate.
7138 2011-01-19 Jakub Jelinek <jakub@redhat.com>
7140 PR rtl-optimization/47337
7141 * dce.c (check_argument_store): New function.
7142 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
7144 PR tree-optimization/47290
7145 * tree-eh.c (infinite_empty_loop_p): New function.
7146 (cleanup_empty_eh): Use it.
7148 2011-01-18 Steve Ellcey <sje@cup.hp.com>
7151 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
7152 (a64_expand_widen_sum): Ditto.
7153 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
7154 (vec_extract_evenodd_help): Ditto.
7155 (vec_extract_evenv4hi): Ditto.
7156 (vec_extract_oddv4hi): Ditto.
7157 (vec_extract_evenv2si): Ditto.
7158 (vec_extract_oddv2si): Ditto.
7159 (vec_extract_evenv2sf): Ditto.
7160 (vec_extract_oddv2sf): Ditto.
7161 (vec_pack_trunc_v4hi: Ditto.
7162 (vec_pack_trunc_v2si): Ditto.
7163 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
7164 (vec_interleave_highv8qi): Ditto.
7166 (vec_extract_oddv8qi): Ditto.
7167 (vec_interleave_lowv4hi): Ditto.
7168 (vec_interleave_highv4hi): Ditto.
7169 (vec_interleave_lowv2si): Ditto.
7170 (vec_interleave_highv2si): Ditto.
7172 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7174 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
7175 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
7176 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
7177 (pa_c_mode_for_suffix): New.
7178 (TARGET_EXPAND_BUILTIN): Define.
7179 (TARGET_C_MODE_FOR_SUFFIX): Define.
7180 (pa_builtins): Define.
7181 (pa_init_builtins): Register __float128 type and init new support
7183 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
7184 * config/pa/quadlib.c (_U_Qfcopysign): New.
7186 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
7189 * explow.c (allocate_dynamic_stack_space): Do not assume more than
7190 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
7193 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7195 PR tree-optimization/47179
7196 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
7197 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
7199 2011-01-18 Richard Guenther <rguenther@suse.de>
7201 PR rtl-optimization/47216
7202 * emit-rtl.c: Include tree-flow.h.
7203 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
7204 of replicating it with different semantics.
7205 * Makefile.in (emit-rtl.o): Adjust.
7207 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7209 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
7210 (cortex_a9_dp): Handle neon types correctly.
7212 2011-01-18 Jakub Jelinek <jakub@redhat.com>
7214 PR rtl-optimization/47299
7215 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
7216 subtarget. Use normal multiplication if both operands are constants.
7217 * expmed.c (expand_widening_mult): Don't try to optimize constant
7218 multiplication if op0 has VOIDmode. Convert op1 constant to mode
7221 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7223 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
7224 spacing after 'e.g.', typos, comma, hyphenation.
7226 2011-01-17 Richard Henderson <rth@redhat.com>
7228 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
7229 (rx_restricted_mem_operand): New.
7230 (rx_shift_operand): Use register_operand.
7231 (rx_source_operand, rx_compare_operand): Likewise.
7232 * config/rx/rx.md (addsi3_flags): New expander.
7233 (adddi3): Rewrite as expander.
7234 (adc_internal, *adc_flags, adddi3_internal): New patterns.
7235 (subsi3_flags): New expander.
7236 (subdi3): Rewrite as expander.
7237 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
7239 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
7240 (rx_init_builtins): Remove sat builtin.
7241 (rx_expand_builtin): Likewise.
7242 * config/rx/rx.md (ssaddsi3): New.
7243 (*sat): Rename from sat. Represent the CC_REG input.
7245 * config/rx/predicates.md (rshift_operator): New.
7246 * config/rx/rx.c (rx_expand_insv): Remove.
7247 * config/rx/rx-protos.h: Update.
7248 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
7249 operand to the canonical position.
7250 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
7251 (*bitclr, *bitclr_in_memory): Similarly.
7252 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
7253 (insv): Retain the zero_extract in the expansion.
7255 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
7256 (bswaphi2, bitinvert, revw): Likewise.
7258 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
7259 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
7260 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
7261 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
7262 (bitset, bitset_in_memory): Likewise.
7263 (bitinvert, bitinvert_in_memory): Likewise.
7264 (bitclr, bitclr_in_memory): Likewise.
7265 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
7266 (rx_strend, rx_cmpstrn): Likewise.
7267 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
7268 (bitop peep2 patterns): Remove.
7270 * config/rx/rx.c (rx_match_ccmode): New.
7271 * config/rx/rx-protos.h: Update.
7272 * config/rx/rx.md (abssi2): Clobber, don't set flags.
7273 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
7274 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
7275 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
7276 (fix_truncsfsi2, floatsisf2): Likewise.
7277 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
7278 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
7279 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
7280 (*subsi3_flags, *xorsi3_flags): New.
7282 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
7284 * config/rx/rx.c (rx_print_operand): Remove workaround for
7285 unsplit comparison operations.
7287 * config/rx/rx.md (movsicc): Split after reload.
7288 (*movsicc): Merge *movsieq and *movsine via match_operator.
7289 (*stcc): New pattern.
7291 * config/rx/rx.c (rx_float_compare_mode): Remove.
7292 * config/rx/rx.h (rx_float_compare_mode): Remove.
7293 * config/rx/rx.md (cstoresi4): Split after reload.
7294 (*sccc): New pattern.
7296 * config/rx/predicates.md (label_ref_operand): New.
7297 (rx_z_comparison_operator): New.
7298 (rx_zs_comparison_operator): New.
7299 (rx_fp_comparison_operator): New.
7300 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
7301 Validate that the flags are set properly for the comparison.
7302 (rx_gen_cond_branch_template): Remove.
7303 (rx_cc_modes_compatible): Remove.
7304 (mode_from_flags): New.
7305 (flags_from_code): Rename from flags_needed_for_conditional.
7306 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
7307 (rx_select_cc_mode): Likewise.
7308 (rx_split_fp_compare): New.
7309 (rx_split_cbranch): New.
7310 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
7311 (*cbranchsi4): Use match_operator and rx_split_cbranch.
7312 (*cbranchsf4): Similarly.
7313 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
7314 match_operator and rx_split_cbranch.
7315 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
7316 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
7317 (*cmpsi): Rename from cmpsi.
7318 (*tstsi): Rename from tstsi.
7319 (*cmpsf): Rename from cmpsf; use CC_Fmode.
7320 (*conditional_branch): Rename from conditional_branch.
7321 (*reveresed_conditional_branch): Remove.
7322 (b<code>): Remove expander.
7323 * config/rx/rx-protos.h: Update.
7325 * config/rx/rx.c (rx_compare_redundant): Remove.
7326 * config/rx/rx.md (cmpsi): Don't use it.
7327 * config/rx/rx-protos.h: Update.
7329 * config/rx/rx-modes.def (CC_F): New mode.
7330 * config/rx/rx.c (rx_select_cc_mode): New.
7331 * config/rx/rx.h (SELECT_CC_MODE): Use it.
7332 * config/rx/rx-protos.h: Update.
7334 2011-01-17 Richard Henderson <rth@redhat.com>
7336 * except.c (dump_eh_tree): Fix stray ; after for statement.
7338 2011-01-17 Richard Guenther <rguenther@suse.de>
7340 PR tree-optimization/47313
7341 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
7342 handling before copying the body. Properly deal with
7343 by-reference result in SSA form.
7345 2011-01-17 Ian Lance Taylor <iant@google.com>
7348 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
7349 (struct_value_alias_set): Don't define.
7350 (sparc_option_override): Don't set sparc_sr_alias_set and
7351 struct_value_alias_set.
7352 (save_or_restore_regs): Use gen_frame_mem rather than calling
7354 (sparc_struct_value_rtx): Likewise.
7356 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
7359 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
7360 (_mm_maskstore_pd): Likewise.
7361 (_mm_maskload_ps): Likewise.
7362 (_mm_maskstore_ps): Likewise.
7363 (_mm256_maskload_pd): Change mask to __m256i.
7364 (_mm256_maskstore_pd): Likewise.
7365 (_mm256_maskload_ps): Likewise.
7366 (_mm256_maskstore_ps): Likewise.
7368 * config/i386/i386-builtin-types.def: Updated.
7369 (ix86_expand_special_args_builtin): Likewise.
7371 * config/i386/i386.c (bdesc_special_args): Update
7372 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
7373 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
7374 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
7375 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
7377 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
7378 Use <avxpermvecmode> on mask register.
7379 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
7381 2011-01-17 Olivier Hainque <hainque@adacore.com>
7382 Michael Haubenwallner <michael.haubenwallner@salomon.at>
7383 Eric Botcazou <ebotcazou@adacore.com>
7386 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
7387 if <= USHRT_MAX in 32-bit mode.
7389 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7391 * doc/install.texi (Configuration, Specific): Wrap long
7392 lines in examples. Allow line wrapping in long options
7393 and URLs where beneficial for PDF output.
7395 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
7397 * config/mips/mips.c (mips_classify_symbol): Don't return
7398 SYMBOL_PC_RELATIVE for nonlocal labels.
7400 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
7402 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
7404 2011-01-15 Jan Hubicka <jh@suse.cz>
7406 PR tree-optimization/47276
7407 * ipa.c (function_and_variable_visibility): Do not try to mark alias
7408 declarations as needed.
7410 2011-01-15 Martin Jambor <mjambor@suse.cz>
7412 * common.opt (fdevirtualize): New flag.
7413 * doc/invoke.texi (Option Summary): Document it.
7414 * opts.c (default_options_table): Add devirtualize flag.
7415 * ipa-prop.c (detect_type_change): Return immediately if
7416 devirtualize flag is not set.
7417 (detect_type_change_ssa): Likewise.
7418 (compute_known_type_jump_func): Likewise.
7419 (ipa_analyze_virtual_call_uses): Likewise.
7421 2011-01-14 Martin Jambor <mjambor@suse.cz>
7423 PR tree-optimization/45934
7424 PR tree-optimization/46302
7425 * ipa-prop.c (type_change_info): New type.
7426 (stmt_may_be_vtbl_ptr_store): New function.
7427 (check_stmt_for_type_change): Likewise.
7428 (detect_type_change): Likewise.
7429 (detect_type_change_ssa): Likewise.
7430 (compute_complex_assign_jump_func): Check for dynamic type change.
7431 (compute_complex_ancestor_jump_func): Likewise.
7432 (compute_known_type_jump_func): Likewise.
7433 (compute_scalar_jump_functions): Likewise.
7434 (ipa_analyze_virtual_call_uses): Likewise.
7435 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
7437 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7439 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
7440 * config/i386/i386.opt (msse5): New Alias.
7442 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7444 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
7445 * config/sparc/linux64.h (CC1_SPEC): Likewise.
7446 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
7447 * config/sparc/sparc.h (CC1_SPEC): Likewise.
7449 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7451 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
7453 * config/sparc/linux64.h (CC1_SPEC): Likewise.
7454 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
7455 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
7456 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
7458 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
7460 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7462 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
7464 2011-01-14 Mike Stump <mikestump@comcast.net>
7466 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
7467 * config/fr30/fr30.md: Likweise
7468 (movsi_push): Likewise.
7469 (movsi_pop): Likewise.
7470 (enter_func): Likewise.
7471 * config/moxie/moxie.md (movsi_push): Likewise.
7472 (movsi_pop): Likewise.
7474 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7476 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
7477 %{no_archive} %{exact_version}.
7478 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
7479 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
7480 %{no_archive} %{exact_version}.
7481 * config/mips/openbsd.h (LINK_SPEC): Likewise.
7482 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
7483 * config/mips/vxworks.h: Likewise.
7485 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7487 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
7489 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7491 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
7492 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
7494 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7496 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
7499 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7501 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
7503 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
7504 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
7506 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
7507 Don't handle -shlib.
7509 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7511 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
7512 (CC1_SPEC): Don't handle -profile.
7514 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7516 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
7517 * config/mips/mips.h (CC1_SPEC): Likewise.
7519 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7521 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
7522 * config/mips/mips.h (CC1_SPEC): Likewise.
7524 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7526 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
7527 * config/m32r/linux.h (LINK_SPEC): Likewise.
7528 * config/mips/linux.h (LINK_SPEC): Likewise.
7529 * config/mips/linux64.h (LINK_SPEC): Likewise.
7530 * config/sparc/linux.h (LINK_SPEC): Likewise.
7531 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
7532 LINK_SPEC): Likewise.
7533 * config/xtensa/linux.h (LINK_SPEC): Likewise.
7535 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7537 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
7539 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
7541 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7543 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
7544 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
7546 2011-01-14 Joseph Myers <joseph@codesourcery.com>
7548 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
7550 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7552 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
7553 supports -Bstatic/-Bdynamic.
7554 * configure: Regenerate.
7556 2011-01-14 Jan Hubicka <jh@suse.cz>
7557 Jack Howarth <howarth@bromo.med.uc.edu>
7560 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
7561 when checking debug_info_level. Test write_symbols instead of
7562 debug_hooks->var_location when setting flag_var_tracking_uninit.
7564 2011-01-14 Richard Guenther <rguenther@suse.de>
7566 PR tree-optimization/47179
7567 * target.def (ref_may_alias_errno): New target hook.
7568 * targhooks.h (default_ref_may_alias_errno): Declare.
7569 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
7570 (default_ref_may_alias_errno): New function.
7571 * target.h (struct ao_ref_s): Declare.
7572 * tree-ssa-alias.c: Include target.h.
7573 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
7574 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
7575 (targhooks.o): Likewise.
7576 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
7577 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
7579 2011-01-14 Richard Guenther <rguenther@suse.de>
7581 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
7583 2011-01-14 Richard Guenther <rguenther@suse.de>
7585 PR tree-optimization/47280
7586 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
7588 (tree_ssa_forward_propagate_single_use_vars): Deal with
7589 CFG changes from associate_plusminus.
7591 2011-01-14 Richard Guenther <rguenther@suse.de>
7595 2011-01-11 Richard Guenther <rguenther@suse.de>
7597 PR tree-optimization/46076
7598 * tree-ssa.c (useless_type_conversion_p): Conversions from
7599 unprototyped to empty argument list function types are useless.
7601 2011-01-14 Richard Guenther <rguenther@suse.de>
7603 PR tree-optimization/47286
7604 * tree-ssa-structalias.c (new_var_info): Register variables are global.
7606 2011-01-14 Martin Jambor <mjambor@suse.cz>
7609 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
7611 2011-01-13 Anatoly Sokolov <aesok@post.ru>
7613 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
7614 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7615 * config/xtensa/xtensa.c (xtensa_libcall_value,
7616 xtensa_function_value_regno_p): New functions.
7617 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
7619 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
7622 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
7624 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
7625 New function prototype.
7626 * config/i386/winnt.c (i386_pe_assemble_visibility):
7627 Warn only if attribute was specified by user.
7629 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
7632 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
7634 (floatunsdidf2_fcfidu): Ditto.
7636 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7638 * config/s390/s390.c (print_operand_address): Replace 'error' with
7639 'output_operand_lossage'.
7640 (print_operand): Likewise.
7642 2011-01-13 Jeff Law <law@redhat.com>
7644 PR rtl-optimization/39077
7645 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
7646 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
7647 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
7648 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
7649 * gcse.c (prune_insertions_deletions): New function.
7650 (compute_pre_data): Use it.
7652 2011-01-13 Dodji Seketeli <dodji@redhat.com>
7655 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
7657 (prune_unused_types_mark): Use it.
7659 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
7661 PR rtl-optimization/45352
7662 * sel-sched.c: Update copyright years.
7663 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
7664 in the advancing loop when we have issued issue_rate insns.
7666 2011-01-12 Richard Henderson <rth@redhat.com>
7668 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
7669 (TARGET_MD_ASM_CLOBBERS): New.
7671 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
7672 (TARGET_DELEGITIMIZE_ADDRESS): New.
7674 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
7675 (clzsi2, *bsch): New patterns.
7677 * config/mn10300/mn10300.md (INT): New mode iterator.
7678 (*mov<INT>_clr): New pattern, and peep2 to generate it.
7680 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
7681 flag_split_wide_types.
7683 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
7684 (mn10300_trampoline_init): Rewrite without a template, an immediate
7685 load and a direct branch.
7686 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
7688 2011-01-12 Anatoly Sokolov <aesok@post.ru>
7690 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7691 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
7692 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
7693 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7695 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
7698 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
7701 2011-01-12 Jan Hubicka <jh@suse.cz>
7704 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
7705 (PLUGIN_COND_CLOSE): New macro.
7706 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
7708 2011-01-12 Richard Guenther <rguenther@suse.de>
7711 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
7712 register variables in a MEM_REF.
7714 2011-01-12 Joseph Myers <joseph@codesourcery.com>
7716 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
7717 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
7718 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
7719 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7720 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7721 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
7722 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
7723 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
7724 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
7725 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
7726 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
7727 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
7728 * config/gnu-user.h: New. Copied from linux.h.
7729 (LINUX_TARGET_STARTFILE_SPEC): Rename to
7730 GNU_USER_TARGET_STARTFILE_SPEC.
7731 (LINUX_TARGET_ENDFILE_SPEC): Rename to
7732 GNU_USER_TARGET_ENDFILE_SPEC.
7733 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
7734 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
7735 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
7736 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
7737 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
7738 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
7739 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
7740 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
7741 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
7742 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
7743 * config/arm/linux-eabi.h (CC1_SPEC): Use
7744 GNU_USER_TARGET_CC1_SPEC.
7745 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
7746 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
7747 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
7748 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
7749 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
7750 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
7751 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
7752 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
7754 2011-01-12 Richard Guenther <rguenther@suse.de>
7757 * doc/invoke.texi (ffast-math): Document it is turned on
7760 2011-01-12 Jan Hubicka <jh@suse.cz>
7762 PR tree-optimization/47233
7763 * opts.c (common_handle_option): Disable ipa-reference with profile
7766 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
7768 * c-parser.c (c_parser_objc_at_property_declaration): Improved
7771 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
7773 * c-parser.c (c_lex_one_token): Updated and reindented some
7774 comments. No changes in code.
7776 2011-01-11 Ian Lance Taylor <iant@google.com>
7778 * godump.c (go_output_var): Don't output the variable if there is
7779 already a type with the same name.
7781 2011-01-11 Ian Lance Taylor <iant@google.com>
7783 * godump.c (go_format_type): Don't generate float80.
7785 2011-01-11 Richard Henderson <rth@redhat.com>
7787 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
7788 declaration. Rewrite for both speed and size.
7789 (mn10300_address_cost_1): Remove.
7790 (mn10300_register_move_cost): New.
7791 (mn10300_memory_move_cost): New.
7792 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
7793 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
7794 extensions, shifts, BSWAP, CLZ.
7795 (mn10300_wide_const_load_uses_clr): Remove.
7796 (TARGET_REGISTER_MOVE_COST): New.
7797 (TARGET_MEMORY_MOVE_COST): New.
7798 * config/mn10300/mn10300-protos.h: Update.
7799 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
7801 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
7802 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
7803 * config/mn10300/mn10300-protos.h: Update.
7804 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
7805 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
7806 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
7807 (*test_int_bitfield, *test_byte_bitfield): Remove.
7808 (*bit_test, *subreg_bit_test): Remove.
7809 * config/mn10300/predicates.md (const_8bit_operand): Remove.
7811 * config/mn10300/constraints.md ("c"): Rename from "A".
7812 ("A", "D"): New constraint letters.
7813 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
7814 (fmssf4, fnmasf4, fnmssf4): Likewise.
7816 * config/mn10300/mn10300.md (isa): New attribute.
7817 (enabled): New attribute.
7819 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
7820 (abssf2, negsf2): Define only for hardware fp.
7821 (sqrtsf2): Reformat.
7822 (addsf3, subsf3, mulsf3): Merge expander and insn.
7824 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
7825 (DEBUGGER_AUTO_OFFSET): Remove.
7826 (DEBUGGER_ARG_OFFSET): Remove.
7828 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
7829 Emit register stores with the same offsets as the hardware.
7830 (mn10300_store_multiple_operation): Don't check that the register
7831 save offsets are monotonic.
7832 * config/mn10300/mn10300-protos.h: Update.
7834 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
7836 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
7837 in terms of the value on the stack, not the MDR register.
7839 2011-01-11 Jan Hubicka <jh@suse.cz>
7843 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
7844 (symbol_alias_set_destroy, symbol_alias_set_contains,
7845 propagate_aliases_backward): Declare.
7846 * lto-streamer-out.c (struct sets): New sturcture.
7847 (trivally_defined_alias): New function.
7848 (output_alias_pair_p): Rewrite.
7849 (output_unreferenced_globals): Fix output of alias pairs.
7850 (produce_symtab): Likewise.
7851 * ipa.c (function_and_variable_visibility): Set weak alias destination
7853 * varasm.c (symbol_alias_set_t): Remove.
7854 (symbol_alias_set_destroy): Export.
7855 (propagate_aliases_forward, propagate_aliases_backward): New functions
7857 (compute_visible_aliases): ... this one; remove.
7858 (trivially_visible_alias): New
7859 (trivially_defined_alias): New.
7860 (remove_unreachable_alias_pairs): Rewrite.
7861 (finish_aliases_1): Reorganize code checking if alias is defined.
7862 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
7865 2011-01-11 Richard Guenther <rguenther@suse.de>
7867 PR tree-optimization/46076
7868 * tree-ssa.c (useless_type_conversion_p): Conversions from
7869 unprototyped to empty argument list function types are useless.
7871 2011-01-11 Richard Guenther <rguenther@suse.de>
7874 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
7875 volatile MEMs as MEM_READONLY_P.
7877 2011-01-11 Richard Guenther <rguenther@suse.de>
7879 PR tree-optimization/47239
7880 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
7882 2011-01-11 Jeff Law <law@redhat.com>
7884 PR tree-optimization/47086
7885 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
7886 IVs from statements that might throw.
7888 2011-01-10 Jan Hubicka <jh@suse.cz>
7891 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
7893 2011-01-10 Jan Hubicka <jh@suse.cz>
7896 * profile.c (read_profile_edge_counts): Ignore profile inconistency
7897 when correcting profile.
7899 2011-01-10 Jan Hubicka <jh@suse.cz>
7902 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
7904 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
7905 Restore DECL_FINI_PRIORITY.
7907 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7909 * doc/gimple.texi: Fix quoting of multi-word return values in
7910 @deftypefn statements. Ensure presence of return value. Wrap
7911 overlong @deftypefn lines.
7912 (is_gimple_operand, is_gimple_min_invariant_address): Remove
7913 descriptions of removed functions.
7914 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
7915 of multi-word return value in @deftypefn statement.
7917 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7919 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
7920 (Conditional Expressions, Logical Operators)
7921 (Statement and operand traversals): Do not indent smallexample
7922 code. Fix duplicate function argument in example.
7924 2011-01-10 Jeff Law <law@redhat.com>
7926 PR tree-optimization/47141
7927 * ipa-split.c (split_function): Handle case where we are
7928 returning a value and the return block has a virtual operand phi.
7930 2011-01-10 Jan Hubicka <jh@suse.cz>
7932 PR tree-optimization/47234
7933 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
7934 (pass_feedback_split_functions): Declare.
7935 * passes.c (init_optimization_passes): Add ipa-split as subpass of
7937 * ipa-split.c (gate_split_functions): Update comments; disable
7938 split-functions for profile_arc_flag and branch_probabilities.
7939 (gate_feedback_split_functions): New function.
7940 (execute_feedback_split_functions): New function.
7941 (pass_feedback_split_functions): New global var.
7943 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
7946 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
7947 calling gimple_call_set_cannot_inline.
7949 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
7951 * config/darwin-sections.def: Remove unused section.
7953 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
7956 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
7958 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
7961 * c-parser.c (c_parser_declaration_or_fndef): Improved
7964 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
7966 * config/i386/winnt.c (i386_pe_start_function): Make sure
7967 to switch back to function's section.
7969 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
7973 * plugin.c: Move include of dlfcn.h from here...
7974 * system.h: ... to here.
7976 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7978 * doc/cpp.texi (C++ Named Operators): Fix markup for header
7980 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
7981 two extra empty pages in PDF output.
7983 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
7986 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
7987 for error recovery purposes behave as if it was not specified so
7988 that the default type is usd.
7990 2011-01-07 Jan Hubicka <jh@suse.cz>
7992 PR tree-optmization/46469
7993 * ipa.c (function_and_variable_visibility): Clear needed flags on
7994 nodes with external decls; handle weakrefs merging correctly.
7996 2011-01-07 Joseph Myers <joseph@codesourcery.com>
7998 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
8001 2011-01-07 Jan Hubicka <jh@suse.cz>
8003 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
8004 and no longer claim that gold is required for linker plugin.
8005 * configure: Regenerate.
8006 * gcc.c (PLUGIN_COND): New macro.
8007 (LINK_COMMAND_SPEC): Use it.
8008 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
8009 * config.in (HAVE_LTO_PLUGIN): New.
8010 * configure.ac (--with-lto-plugin): New parameter; autodetect
8013 2011-01-07 Jan Hubicka <jh@suse.cz>
8015 PR tree-optimization/46367
8016 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
8017 when we can update original.
8018 (cgraph_mark_inline_edge): Sanity check.
8019 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
8021 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8023 * config/spu/spu.h (ASM_COMMENT_START): Define.
8025 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
8029 (SWITCH_KEEP_FOR_GCC): Likewise.
8030 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
8031 (do_spec_1): Handle "%>".
8033 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
8035 2011-01-07 Jakub Jelinek <jakub@redhat.com>
8038 * config/i386/i386.c (ix86_delegitimize_address): If
8039 simplify_gen_subreg fails, return orig_x.
8042 * value-prof.c (gimple_stringop_fixed_value): Handle
8043 lhs of the call properly.
8045 2011-01-07 Jan Hubicka <jh@suse.cz>
8048 * lto-opt.c (lto_reissue_options): Set flag_shlib.
8050 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
8052 * target.def (function_switched_text_sections): New hook.
8053 * doc/tm.texi: Regenerated.
8054 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
8055 * final.c (default_function_switched_text_sections): New.
8056 (final_scan_insn): Call function_switched_text_sections when a
8057 mid-function section change occurs.
8058 * output.h (default_function_switched_text_sections): Declare.
8059 * config/darwin-protos.h (darwin_function_switched_text_sections):
8061 * config/darwin.c (darwin_function_switched_text_sections): New.
8062 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
8064 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
8066 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
8067 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
8068 the secondary code fragment when outputting for DWARF == 2.
8070 2011-01-07 Anatoly Sokolov <aesok@post.ru>
8072 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8073 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
8075 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
8076 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8078 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
8081 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
8082 when it is not empty.
8084 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
8087 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
8088 (case ${target}): Add btver1.
8089 * config/i386/driver-i386.c (host_detect_local_cpu): Let
8090 -march=native recognize btver1 processors.
8091 * config/i386/i386-c.c (ix86_target_macros_internal): Add
8092 btver1 def_and_undef
8093 * config/i386/i386.c (struct processor_costs btver1_cost): New
8095 (m_BTVER1): New definition.
8096 (m_AMD_MULTIPLE): Includes m_BTVER1.
8097 (initial_ix86_tune_features): Add btver1 tune.
8098 (processor_target_table): Add btver1 entry.
8099 (static const char *const cpu_names): Add btver1 entry.
8100 (software_prefetching_beneficial_p): Add btver1.
8101 (ix86_option_override_internal): Add btver1 instruction sets.
8102 (ix86_issue_rate): Add btver1.
8103 (ix86_adjust_cost): Add btver1.
8104 * config/i386/i386.h (TARGET_BTVER1): New definition.
8105 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
8106 (enum processor_type): Add PROCESSOR_BTVER1.
8107 * config/i386/i386.md (define_attr "cpu"): Add btver1.
8109 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8112 * config/i386/i386.c (legitimize_tls_address)
8113 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
8114 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
8115 (tls_initial_exec_64_sun): New pattern.
8117 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
8119 * doc/invoke.texi (Overall Options): Improve wording and markup
8120 of the description of -wrapper.
8122 2011-01-06 Joseph Myers <joseph@codesourcery.com>
8124 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
8125 rdynamic, threads): New Driver options.
8127 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8130 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
8131 if coming from .tdata.
8132 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
8134 2011-01-06 Jan Hubicka <jh@suse.cz>
8137 * collect2.c (main): Do not enable LTOmode when plugin is active.
8139 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8142 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
8143 --version output if supported.
8144 * configure: Regenerate.
8146 2011-01-06 Joseph Myers <joseph@codesourcery.com>
8148 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
8151 2011-01-06 Jakub Jelinek <jakub@redhat.com>
8154 * c-convert.c (convert): When converting a complex expression
8155 other than COMPLEX_EXPR to a different complex type, ensure
8156 c_save_expr is called instead of save_expr, unless in_late_binary_op.
8157 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
8158 when converting COMPLEX_TYPE.
8160 2011-01-06 Ira Rosen <irar@il.ibm.com>
8162 PR tree-optimization/47139
8163 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
8164 only the last reduction value is used outside the loop. Update
8167 2011-01-05 Joseph Myers <joseph@codesourcery.com>
8169 * config/rtems.opt: New.
8170 * config.gcc (*-*-rtems*): Use rtems.opt.
8172 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
8174 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
8175 processors do not support 3DNow instructions.
8177 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8179 * config/spu/spu.c (spu_option_override): Set parameter
8180 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
8182 2011-01-05 Jan Hubicka <jh@suse.cz>
8184 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
8185 at the command line.
8187 2011-01-05 Martin Jambor <mjambor@suse.cz>
8190 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
8191 deltas on streamed outgoing edges.
8192 (output_node_opt_summary): Output info for outgoing edges only when
8193 the node is in new parameter set.
8194 (output_cgraph_opt_summary): New parameter set, passed to the two
8195 aforementioned functions. Update its forward declaration and its
8198 2011-01-05 Tom Tromey <tromey@redhat.com>
8200 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
8201 operator to c_finish_omp_atomic.
8202 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
8203 (build_unary_op): Update.
8204 (build_modify_expr): Update.
8205 (build_asm_expr): Update.
8207 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8209 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
8210 newly inserted insns.
8212 (spu_emit_branch_hint): Likewise.
8213 (insert_hbrp_for_ilb_runout): Likewise.
8214 (spu_machine_dependent_reorg): Call df_finish_pass after
8215 schedule_insns returns.
8217 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8219 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
8221 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
8223 PR tree-optimization/47005
8224 * tree-sra.c (struct access): Add 'non_addressable' bit.
8225 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
8226 (decide_one_param_reduction): Return 0 if the parameter is passed by
8227 reference and one of the accesses in the group is non_addressable.
8229 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
8231 PR tree-optimization/47056
8232 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
8233 (mark_load): Likewise. Handle FUNCTION_DECL specially.
8234 (mark_store): Likewise. Pass STMT to ipa_record_reference.
8236 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
8238 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
8239 initializer. Skip view conversions from aggregate types.
8241 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
8244 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
8246 2011-01-04 Philipp Thomas <pth@suse.de>
8248 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
8251 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8253 * function.c (thread_prologue_and_epilogue_insns): Do not crash
8254 on empty epilogue sequences.
8256 2011-01-04 Joseph Myers <joseph@codesourcery.com>
8258 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
8259 non-static): New Driver options.
8261 2011-01-04 Jie Zhang <jie@codesourcery.com>
8264 * gcc.c (default_compilers[]): Set combinable field to 0
8265 for all assembly languages.
8267 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
8269 * config/mips/loongson3a.md: New file.
8270 * config/mips/mips.md: Include loongson3a.md.
8271 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
8274 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
8277 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
8278 instead of convert_memory_address_addr_space on the base expression.
8280 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8282 * config/spu/spu.c (spu_option_override): Update error text
8283 for bad -march= / -mtune= values.
8285 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8287 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
8288 if branch-hint optimization will be performed.
8290 2011-01-03 Jakub Jelinek <jakub@redhat.com>
8292 PR tree-optimization/47148
8293 * ipa-split.c (split_function): Convert arguments to
8294 DECL_ARG_TYPE if possible.
8296 PR tree-optimization/47155
8297 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
8300 PR rtl-optimization/47157
8301 * combine.c (try_combine): If undobuf.other_insn becomes
8302 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
8303 and set *new_direct_jump_p too.
8305 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
8307 PR tree-optimization/47021
8308 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
8310 2011-01-03 Jakub Jelinek <jakub@redhat.com>
8312 * gcc.c (process_command): Update copyright notice dates.
8313 * gcov.c (print_version): Likewise.
8314 * gcov-dump.c (print_version): Likewise.
8315 * mips-tfile.c (main): Likewise.
8316 * mips-tdump.c (main): Likewise.
8318 2011-01-03 Martin Jambor <mjambor@suse.cz>
8320 PR tree-optimization/46801
8321 * tree-sra.c (type_internals_preclude_sra_p): Check whether
8322 aggregate fields start at byte boundary instead of the bit-field flag.
8324 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
8327 * gcc.c (main): Revert revision 168407.
8329 2011-01-03 Martin Jambor <mjambor@suse.cz>
8331 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
8333 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8335 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
8336 vector optab to expand vector/scalar shift, update gimple to vector.
8338 2011-01-03 Martin Jambor <mjambor@suse.cz>
8340 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
8343 2011-01-03 Martin Jambor <mjambor@suse.cz>
8345 PR tree-optimization/46984
8346 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
8348 (cgraph_create_indirect_edge): Fixed line length.
8349 (cgraph_indirect_call_info): Declare.
8350 (cgraph_make_edge_direct) Update declaration.
8351 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
8352 (cgraph_create_indirect_edge): Use it.
8353 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
8355 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
8356 the new thunk_delta representation.
8357 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
8359 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
8360 (ipa_read_indirect_edge_info): Likewise.
8361 * lto-cgraph.c (output_edge_opt_summary): New function.
8362 (output_node_opt_summary): Call it on all outgoing edges.
8363 (input_edge_opt_summary): New function.
8364 (input_node_opt_summary): Call it on all outgoing edges.
8366 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
8369 * gcc.c (main): Don't check have_o when settting combine_inputs.
8371 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
8373 * regrename.c: Add general comment describing the pass.
8374 (struct du_head): Remove 'length' field.
8375 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
8376 (regrename_optimize): Do not sort chains. Rework comments, add others.
8377 Force renaming to the preferred class (if any) in the first pass and do
8378 not consider registers that belong to it in the second pass.
8379 (create_new_chain): Do not set 'length' field.
8380 (scan_rtx_reg): Likewise.
8382 2011-01-02 Jakub Jelinek <jakub@redhat.com>
8384 PR tree-optimization/47140
8385 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
8386 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
8389 PR rtl-optimization/47028
8390 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
8391 parm_birth_insn instead of at the beginning of first bb.
8393 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
8395 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
8396 Remove the word "see" before "@pxref".
8397 * doc/rtl.texi: Remove the word "see" before "@pxref".
8399 2011-01-01 Jan Hubicka <jh@suse.cz>
8401 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
8404 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
8407 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
8410 Copyright (C) 2011 Free Software Foundation, Inc.
8412 Copying and distribution of this file, with or without modification,
8413 are permitted in any medium without royalty provided the copyright
8414 notice and this notice are preserved.