1 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
3 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
5 2011-07-11 Arthur Loiret <aloiret@debian.org>
7 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
8 a bi-arch compiler defaulting to 31-bit. In this case:
9 (tmake_file): Add s390/t-linux64.
10 * doc/install.texi: Add s390-linux to the list of targets supporting
13 2011-07-11 Arthur Loiret <aloiret@debian.org>
14 Matthias Klose <doko@debian.org>
16 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
17 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
18 (tm_file): Add mips/linux64.h.
19 (tmake_file): Add mips/t-linux64.
20 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
21 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
22 instead of hardcoded mabi=n32.
23 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
24 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
27 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29 * passes.c (init_optimization_passes): Add invariant motion pass
30 after induction variable optimization.
32 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
35 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
36 offsets 1..5 set cc0 in a usable way.
38 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
40 * tree.h (call_expr_arg): Remove.
41 (call_expr_argp): Likewise.
43 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
45 * config/sparc/sparc.md (save_register_window_1): Rename to...
46 (window_save): ...this.
47 * config/sparc/sparc.c (emit_save_register_window): Rename to...
48 (emit_window_save): ...this.
49 (sparc_expand_prologue): Adjust to above renaming.
51 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
53 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
56 2011-07-10 Richard Henderson <rth@redhat.com>
58 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
59 run final, instead of emitting text directly.
61 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
63 * config/i386/i386.c (ix86_option_override_internal): Turn on
64 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
65 small PIC models for TARGET_X32.
67 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
70 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
74 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
75 stray notes and debug insns by using prev_nonnote_nondebug_insn
78 2011-07-09 Richard Henderson <rth@redhat.com>
80 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
81 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
82 * dwarf2out.c: ... here.
83 (output_all_cfis): Remove.
84 (dwarf2out_switch_text_section): Use output_cfis directly.
85 (size_of_locs): Export.
86 (output_loc_sequence, output_loc_sequence_raw): Export.
87 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
88 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
89 output_cfa_loc_raw): Move to ...
90 * dwarfcfi.c: ... here.
91 * dwarf2out.h: Update decls.
93 2011-07-09 Richard Henderson <rth@redhat.com>
95 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
96 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
97 * dwarf2cfi.c: ... here.
98 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
99 (DWARF_ROUND, DWARF_CIE_ID): Remove.
100 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
101 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
102 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
104 2011-07-09 Richard Henderson <rth@redhat.com>
106 * dwarf2cfi.c (cie_return_save): New.
107 (queue_reg_save): Use compare_reg_or_pc.
108 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
109 (dwarf2out_frame_debug_expr): Likewise.
110 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
111 (initial_return_save): Likewise.
112 (execute_dwarf2_frame): Save and restore initial return save from
114 * config/mips/mips.c (mips_frame_set): Remove special case for
115 DWARF_FRAME_RETURN_COLUMN.
117 2011-07-09 Richard Henderson <rth@redhat.com>
119 * dwarf2cfi.c (lookup_cfa): Remove.
120 (execute_dwarf2_frame): Assert queues are empty on entry.
121 Setup initial cfa directly, not via lookup_cfa.
122 Don't clear args_size state here.
124 2011-07-09 Richard Henderson <rth@redhat.com>
126 * dwarf2cfi.c (add_cfi_vec): New.
127 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
128 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
129 (execute_dwarf2_frame): Set add_cfi_vec.
131 2011-07-09 Richard Henderson <rth@redhat.com>
133 * defaults.h (ASM_COMMENT_START): Move here...
134 * dwarf2asm.c: ... from here.
135 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
136 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
137 * varasm.c: Likewise.
139 2011-07-09 Richard Henderson <rth@redhat.com>
142 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
143 (create_cfi_notes): ... do it here instead.
145 2011-07-09 Jakub Jelinek <jakub@redhat.com>
148 * dwarf2out.c (size_of_int_loc_descriptor): New function.
149 (address_of_int_loc_descriptor): Use it.
150 (scompare_loc_descriptor): Optimize EQ/NE comparison with
153 2011-07-09 Richard Henderson <rth@redhat.com>
155 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
156 (prologue, epilogue): New.
158 (blockage, setd, seti): New.
159 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
160 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
161 (pdp11_saved_regno): New.
162 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
163 generate rtl instead of text.
164 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
165 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
166 * config/pdp11/pdp11-protos.h: Update.
168 2011-07-09 Richard Henderson <rth@redhat.com>
170 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
171 try to insert an rtl prologue here.
172 (rs6000_output_function_epilogue): Similarly.
173 * config/rs6000/rs6000.md (prologue): Emit a barrier to
174 satisfy !TARGET_SCHED_PROLOG.
175 (epilogue, sibcall_epilogue): Likewise.
177 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
179 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
181 (IN_OR_GLOBAL_P): Likewise.
183 2011-07-08 Jason Merrill <jason@redhat.com>
186 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
189 * cgraph.c (cgraph_add_to_same_comdat_group): New.
190 * cgraph.h: Declare it.
191 * ipa.c (function_and_variable_visibility): Make sure thunks
192 have the right visibility.
194 2011-07-08 Richard Henderson <rth@redhat.com>
197 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
198 any tablejump vector.
201 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
204 2011-07-08 Jakub Jelinek <jakub@redhat.com>
207 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
208 CONST0_RTX (dest_mode) instead of const0_rtx as second operand
210 * config/rs6000/vector.md (vector_select_<mode>,
211 vector_select_<mode>_uns): Change second operand of NE to
212 CONST0_RTX (<MODE>mode) instead of const0_rtx.
213 * config/rs6000/altivec.md (*altivec_vsel<mode>,
214 *altivec_vsel<mode>_uns): Expect second operand of NE to be
215 zero_constant of the corresponding vector mode.
216 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
219 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
221 * graphite-dependences.c (build_alias_set_powerset): Remove
222 continue from loop, add one more assert.
224 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
227 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
228 In particular, allow 8-bit values in r28 and r29.
229 (avr_hard_regno_scratch_ok): Disallow any register that might be
230 part of the frame pointer.
231 (avr_hard_regno_rename_ok): Same.
232 (avr_legitimate_address_p): Don't allow SUBREGs.
234 2011-07-08 Julian Brown <julian@codesourcery.com>
236 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
238 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
239 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
240 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
241 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
242 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
243 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
244 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
245 registers in big-endian mode.
247 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
249 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
251 (write_attr_value): Write a cast if necessary.
253 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
254 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
255 (REG_WORDS_BIG_ENDIAN): Document.
256 * doc/tm.texi: Regenerate.
257 * reload.c (operands_match_p): Take it into account.
258 (reload_adjust_reg_for_mode): Likewise.
259 * rtlanal.c (subreg_get_info): Likewise.
261 2011-07-08 Richard Guenther <rguenther@suse.de>
263 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
266 2011-07-08 Kai Tietz <ktietz@redhat.com>
268 * fold-const.c (fold_truth_andor): Factored out truth_andor
269 label from fold_binary as function.
270 (fold_binary_loc): Replace truth_andor lable
271 by function fold_truth_andor.
273 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
276 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
277 check if address is stored in register. If so - give up.
278 (check_sibcall_argument_overlap_1): Do not perform check of
279 overlapping when it is call to address.
281 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
283 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
286 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
288 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
289 GET_MODE_BITSIZE where appropriate.
290 (widen_leading, expand_parity, expand_ctz, expand_ffs,
291 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
292 expand_float, expand_fix): Likewise.
293 * expr.c (convert_move, convert_modes, expand_expr_real_2,
294 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
295 * stor-layout.c (get_mode_bounds): Likewise.
296 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
298 * convert.c (convert_to_integer): Likewise.
299 * expmed.c (expand_shift_1): Likewise.
301 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
304 * optabs.c (expand_binop): Tighten conditions for doubleword
306 (widen_bswap): Assert that mode bitsize and precision are the
308 * stor-layout.c (get_best_mode): Skip modes that have lower
309 precision than bitsize.
310 * recog.c (simplify_while_replacing): Assert that bitsize and
311 precision are the same.
313 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
315 * Makefile.in (LIBGCOV): Remove.
316 (libgcc.mvars): Remove LIBGCOV.
317 * libgov.c: Move to ../libgcc.
319 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
321 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
323 2011-07-08 Martin Jambor <mjambor@suse.cz>
325 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
326 is too big for total scalarization.
328 2011-07-07 Richard Henderson <rth@redhat.com>
330 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
331 (DBX_DEBUGGING_INFO): Undef.
333 2011-07-07 Richard Henderson <rth@redhat.com>
335 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
336 Handle some opcodes specially for debugging.
337 * print-rtl.c: Include dwarf2out.h
338 (print_rtx): Handle NOTE_INSN_CFI.
339 * Makefile.in (print-rtl.o): Update.
341 2011-07-07 Richard Henderson <rth@redhat.com>
343 * tree-pass.h (pass_dwarf2_frame): Declare.
344 * passes.c (init_optimization_passes): Add it.
345 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
346 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
347 make static, do not call add_cfis_to_fde.
348 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
349 dwarf2out_frame_init): Merge into...
350 (execute_dwarf2_frame): ... here. New function.
351 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
352 saved_do_cfi_asm to a tri-state variable.
353 (gate_dwarf2_frame, pass_dwarf2_frame): New.
354 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
355 if it has yet to be done. Don't call dwarf2cfi_function_init.
356 * dwarf2out.h, debug.h: Update decls.
357 * final.c (final_start_function): Don't call
358 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
359 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
360 * toplev.c (lang_dependent_init): Likewise.
362 2011-07-07 Richard Henderson <rth@redhat.com>
364 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
365 FDE_TABLE_INCREMENT): Replace with...
366 (fde_vec): ... this, a new vector.
367 (current_fde): Remove. Replace all users with cfun->fde.
368 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
369 (size_of_aranges, dwarf2out_finish): Likewise.
370 (dwarf2out_alloc_current_fde): Break out from ...
371 (dwarf2out_begin_prologue): ... here.
372 (dwarf2out_frame_init): Remove.
373 * dwarf2cfi.c: Update all users of current_fde.
374 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
375 * dwarf2out.h: Update decls.
376 (dw_fde_node): Add fde_index member.
377 * function.h (struct function): Add fde member.
379 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
380 Richard Henderson <rth@redhat.com>
382 * dwarf2cfi.c (add_cfi): Remove.
383 (dwarf2out_cfi_label): Remove force argument. Only generate the
385 (add_fde_cfi): Simplify the different code paths.
387 (old_cfa, old_cfa_remember): New.
388 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
389 (last_reg_save_label): Remove.
390 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
391 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
392 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
393 dwarf2out_frame_debug_cfa_expression,
394 dwarf2out_frame_debug_cfa_restore,
395 dwarf2out_frame_debug_cfa_window_save,
396 dwarf2out_frame_debug_expr): Remove label parameter.
397 (cfi_label_required_p, add_cfis_to_fde): New.
398 (dwarf2out_frame_debug_after_prologue): New.
399 (dwarf2cfi_frame_init): Initialize old_cfa.
400 (dwarf2out_frame_debug_restore_state): Likewise.
401 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
402 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
403 * final.c (final_start_function): Call
404 dwarf2out_frame_debug_after_prologue.
406 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
407 Richard Henderson <rth@redhat.com>
409 * dwarf2cfi.c (cfi_insn): New.
410 (dwarf2out_cfi_label): Don't emit cfi label here.
411 (add_fde_cfi): Create a NOTE_INSN_CFI.
412 (dwarf2out_frame_debug): Setup cfi_insn.
413 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
414 (dwarf2out_cfi_begin_epilogue): Make static.
415 (dwarf2out_frame_debug_restore_state): Make static.
416 * dwarf2out.c (output_cfi_directive): Make static.
417 (dwarf2out_emit_cfi): New.
418 * dwarf2out.h: Update.
419 * final.c (final): Remove CFI notes.
420 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
421 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
422 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
423 * insn-notes.def (NOTE_INSN_CFI): New.
424 (NOTE_INSN_CFI_LABEL): New.
425 * rtl.h (union rtunion_def): Add rt_cfi member.
426 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
428 2011-07-07 Richard Henderson <rth@redhat.com>
430 * dwarf2cfi.c: New file.
431 * Makefile.in (OBJS): Add it.
432 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
433 * gengtype.c (open_base_files): Include dwarf2out.h.
434 * coretypes.h (enum var_init_status): Move from ...
436 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
437 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
438 expand_builtin_dwarf_sp_column, init_return_column_size,
439 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
440 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
441 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
442 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
443 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
444 compute_barrier_args_size, dwarf2out_args_size,
445 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
446 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
447 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
448 queue_reg_save, dwarf2out_flush_queued_reg_saves,
449 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
450 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
451 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
452 dwarf2out_frame_debug_cfa_expression,
453 dwarf2out_frame_debug_cfa_restore,
454 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
455 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
456 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
457 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
458 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
459 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
460 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
461 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
462 dw_loc_descr_node): Move to dwarf2out.h.
463 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
464 mem_loc_descriptor): Export.
465 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
466 (dwarf2out_frame_init): Extract CIE generation code to
467 dwarf2cfi_frame_init.
469 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
472 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
473 MASK_V8PLUS, remove commented out flag and reorder.
475 2011-07-07 Jakub Jelinek <jakub@redhat.com>
478 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
479 one non-complex and one complex argument, call c_save_expr on both
482 2011-07-07 Martin Jambor <mjambor@suse.cz>
485 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
486 (verify_cgraph_node): Some functinality moved to
487 verify_edge_corresponds_to_fndecl, call it.
489 2011-07-07 Joseph Myers <joseph@codesourcery.com>
491 * config.gcc (*local*): Remove.
492 * doc/install-old.texi: Don't mention local configurations.
494 2011-07-07 Jakub Jelinek <jakub@redhat.com>
497 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
498 referencing debug insns that have been reset.
499 (dead_debug_insert_before): Don't assert reg is non-NULL,
500 instead return immediately if it is NULL.
502 2011-07-07 Joseph Myers <joseph@codesourcery.com>
504 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa:
507 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
509 * hw-doloop.c: New file.
510 * hw-doloop.h: New file.
511 * Makefile.in (OBJS): Add hw-doloop.o.
512 (hw-doloop.o): New rule.
513 ($(obj_out_file)): Add hw-doloop.h dependency.
514 * config/bfin/bfin.c: Include "hw-doloop.h".
515 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
516 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
517 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
518 type changed to hwloop_info. Return bool, true if the loop was
519 successfully optimized. Remove code that was moved to
520 hw-doloop.c, and adjust other parts.
521 (hwloop_fail): New static function, containing parts that used
522 to be in bfin_optimize_loop.
523 (bfin_discover_loop, bfin_discover_loops, free_loops,
524 bfin_reorder_loops): Remove.
525 (hwloop_pattern_reg): New static function.
526 (bfin_doloop_hooks): New variable.
527 (bfin_reorg_loops): Remove most code, call reorg_loops.
528 * config/bfin/bfin.md (doloop_end splitter): Also enable if
529 loop counter is a memory_operand.
531 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
533 * config.gcc: Support --with-multilib-list for x86 Linux
536 * configure.ac: Mention x86-64 for --with-multilib-list.
537 * configure: Regenerated.
539 * config/i386/gnu-user64.h (SPEC_64): Support x32.
541 (ASM_SPEC): Likewise.
542 (LINK_SPEC): Likewise.
543 (TARGET_THREAD_SSP_OFFSET): Likewise.
544 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
547 * config/i386/i386.h (TARGET_X32): New.
549 (LONG_TYPE_SIZE): Likewise.
550 (POINTER_SIZE): Likewise.
551 (POINTERS_EXTEND_UNSIGNED): Likewise.
552 (OPT_ARCH64): Support x32.
553 (OPT_ARCH32): Likewise.
555 * config/i386/i386.opt (mx32): New.
557 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
558 (GLIBC_DYNAMIC_LINKERX32): Likewise.
559 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
560 (GLIBC_DYNAMIC_LINKERX32): Likewise.
562 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
563 (BIONIC_DYNAMIC_LINKERX32): Likewise.
564 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
566 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
568 * doc/install.texi: Document --with-multilib-list for
571 * doc/invoke.texi: Document -mx32.
573 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
575 * doc/invoke.texi (mwords-little-endian): Deprecate.
576 * config/arm/arm.opt (mwords-little-endian): Likewise.
577 * config/arm/arm.c (arm_option_override): Warn about the deprecation
578 of -mwords-little-endian.
580 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
582 * reload1.c (choose_reload_regs): Use mode sizes to check whether
583 an old reload register completely defines the required value.
585 2011-07-07 Richard Guenther <rguenther@suse.de>
587 * fold-const.c (fold_unary_loc): Do not strip sign-changes
590 2011-07-07 Richard Guenther <rguenther@suse.de>
592 * tree-vrp.c (simplify_conversion_using_ranges): New function.
593 (simplify_stmt_using_ranges): Call it.
595 2011-07-07 Kai Tietz <ktietz@redhat.com>
597 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
598 (lookup_logical_inverted_value): Likewise.
599 (simplify_bitwise_binary_1): Likewise.
600 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
602 2011-07-07 Joseph Myers <joseph@codesourcery.com>
604 * gcc.c (%[Spec]): Don't document.
605 (struct spec_list): Update comment.
606 (do_spec_1): Don't handle %[Spec].
607 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
609 2011-07-07 Joseph Myers <joseph@codesourcery.com>
611 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
612 default based on TARGET_ASM_NAMED_SECTION.
613 * common/common-target.def (have_named_sections): Default to true.
614 * common/config/default-common.c: Don't include tm.h.
615 * common/config/picochip/picochip-common.c
616 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
617 * common/config/m32c/m32c-common.c: Remove.
618 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
619 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to
621 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to
623 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to
625 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
626 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to
628 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to
631 2011-07-07 Jakub Jelinek <jakub@redhat.com>
634 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF
635 operands and last COMPONENT_REF operand call gimplify_expr on it
638 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
641 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
643 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
646 * configure.ac (gcc_cv_as_hidden): Also accept
647 x86_64-*-solaris2.1[0-9]*.
648 (gcc_cv_as_cfi_directive): Likewise.
649 (gcc_cv_as_comdat_group_group): Likewise.
650 (set_have_as_tls): Likewise.
651 * configure: Regenerate.
652 * config.gcc (i[34567]86-*-solaris2*): Also handle
653 x86_64-*-solaris2.1[0-9]*.
654 * config.host (i[34567]86-*-solaris2*): Likewise.
655 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
656 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
657 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
658 (TARGET_LD_EMULATION): Use it.
659 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
660 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
661 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
662 (ASM_CPU64_DEFAULT_SPEC): Define.
663 (ASM_CPU_SPEC): Use %(asm_cpu_default).
664 (ASM_SPEC): Redefine.
665 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
666 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
667 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*):
669 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
671 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
673 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
675 * config/sol2.h (ASM_SPEC): Split into ...
676 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
677 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
678 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
679 (ASM_SPEC): Use ASM_SPEC_BASE.
680 * config/sparc/sol2.h (ASM_SPEC): Redefine.
682 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
684 * config/avr/avr.md (*reload_insi): Change predicate #1 to
685 const_int_operand. Ditto for peep2 producing this insn.
686 Add argument to output_reload_insisf call.
687 (*movsi,*movsf): Add argument to output_movsisf call.
688 (*reload_insf): New insn and new peep2 to produce it.
689 * config/avr/avr-protos.h (output_movsisf): Change prototype.
690 (output_reload_insisf): Change prototype.
691 * config/avr/avr.c (avr_asm_len): New function.
692 (output_reload_insisf): Rewrite.
693 (output_movsisf): Change prototype. output_reload_insisf for
694 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
695 (adjust_insn_length): Add argument to output_movsisf and
696 output_reload_insisf call.
698 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
700 * emit-rtl.c (paradoxical_subreg_p): New function.
701 * rtl.h (paradoxical_subreg_p): Declare.
702 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
703 apply_distributive_law, simplify_comparison, simplify_set): Use it.
704 * cse.c (record_jump_cond, cse_insn): Likewise.
705 * expr.c (force_operand): Likewise.
706 * rtlanal.c (num_sign_bit_copies1): Likewise.
707 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
708 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
709 (push_reload): Use precision to check for paradoxical subregs.
710 * expmed.c (extract_bit_field_1): Likewise.
712 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
713 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
714 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
715 simplify_set, simplify_logical, expand_compound_operation,
716 make_extraction, force_to_mode, if_then_else_cond, extended_count,
717 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
718 record_value_for_reg): Likewise.
719 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
720 * simplify-rtx. c (simplify_unary_operation_1,
721 simplify_binary_operation_1, simplify_const_relational_operation):
724 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
725 instead of GET_MODE_BITSIZE where appropriate.
726 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
727 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
728 init_num_sign_bit_copies_in_rep): Likewise.
729 * cse.c (fold_rtx, cse_insn): Likewise.
730 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
731 * simplify-rtx.c (simplify_unary_operation_1,
732 simplify_const_unary_operation, simplify_binary_operation_1,
733 simplify_const_binary_operation, simplify_ternary_operation,
734 simplify_const_relational_operation, simplify_subreg): Likewise.
735 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
736 simplify_if_then_else, simplify_set, expand_compound_operation,
737 expand_field_assignment, make_extraction, if_then_else_cond,
738 make_compound_operation, force_to_mode, make_field_assignment,
739 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
740 extended_count, try_widen_shift_mode, simplify_shift_const_1,
741 simplify_comparison, record_promoted_value, simplify_compare_const,
742 record_dead_and_set_regs_1): Likewise.
745 * simplify-rtx.c (simplify_const_binary_operation): Use the
746 shift_truncation_mask hook instead of performing modulo by
747 width. Compare against mode precision, not bitsize.
748 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
749 Use shift_truncation_mask instead of constructing the value
752 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
754 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
756 (rs6000_save_toc_in_prologue_p): Ditto.
758 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
759 up the static chain (r11) during indirect function calls.
760 (-msave-toc-indirect): New undocumented debug switch.
762 * config/rs6000/rs6000.c (struct machine_function): Add
763 save_toc_in_prologue field to note whether the prologue needs to
764 save the TOC value in the reserved stack location.
765 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
766 to save the TOC in the prologue, do so.
767 (rs6000_trampoline_init): Don't allow creating AIX style
768 trampolines if -mno-r11 is in effect.
769 (rs6000_call_indirect_aix): New function to create AIX style
770 indirect calls, adding support for -mno-r11 to suppress loading
771 the static chain, and saving the TOC in the prologue instead of
773 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
776 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
779 (STATIC_CHAIN_REGNUM): Ditto.
780 (ARG_POINTER_REGNUM): Ditto.
781 (SFP_REGNO): Delete, unused.
782 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
783 function descriptor offsets.
784 (TOC_SAVE_OFFSET_64BIT): Ditto.
785 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
786 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
787 (AIX_FUNC_DESC_SC_32BIT): Ditto.
788 (AIX_FUNC_DESC_SC_64BIT): Ditto.
789 (ptrload): New mode attribute for the appropriate load of a
791 (call_indirect_aix32): Delete, rewrite AIX indirect function
793 (call_indirect_aix64): Ditto.
794 (call_value_indirect_aix32): Ditto.
795 (call_value_indirect_aix64): Ditto.
796 (call_indirect_nonlocal_aix32_internal): Ditto.
797 (call_indirect_nonlocal_aix32): Ditto.
798 (call_indirect_nonlocal_aix64_internal): Ditto.
799 (call_indirect_nonlocal_aix64): Ditto.
800 (call): Rewrite AIX indirect function calls. Add support for
801 eliminating the static chain, and for moving the save of the TOC
802 to the function prologue.
804 (call_indirect_aix<ptrsize>): Ditto.
805 (call_indirect_aix<ptrsize>_internal): Ditto.
806 (call_indirect_aix<ptrsize>_internal2): Ditto.
807 (call_indirect_aix<ptrsize>_nor11): Ditto.
808 (call_value_indirect_aix<ptrsize>): Ditto.
809 (call_value_indirect_aix<ptrsize>_internal): Ditto.
810 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
811 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
812 (call_nonlocal_aix32): Relocate in the rs6000.md file.
813 (call_nonlocal_aix64): Ditto.
815 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
816 -mno-r11 documentation.
818 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
821 * doc/extend.texi (Compound Literals): Fix typo.
823 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
825 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add
828 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
830 * configure.ac (plugin-version.h): Generate
831 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
832 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
835 * configure: Regenerate.
837 * doc/plugins.texi (Building GCC plugins): Mention
838 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
840 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
842 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
843 * combine.c (make_extraction, gen_lowpart_or_truncate,
844 apply_distributive_law, simplify_comparison,
845 reg_truncated_to_mode, record_truncated_value): Use it.
846 * cse.c (notreg_cost): Likewise.
847 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
848 * expr.c (convert_move, convert_modes): Likewise.
849 * optabs.c (expand_binop, expand_unop): Likewise.
850 * postreload.c (move2add_last_label): Likewise.
851 * regmove.c (optimize_reg_copy_3): Likewise.
852 * rtlhooks.c (gen_lowpart_general): Likewise.
853 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
855 2011-07-06 Joseph Myers <joseph@codesourcery.com>
857 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
859 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
861 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
862 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
863 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
864 (simplify_const_unary_operation, simplify_binary_operation_1,
865 simplify_const_binary_operation,
866 simplify_const_relational_operation): Use them. Use
867 GET_MODE_MASK for masking and sign-extensions.
868 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
869 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
870 simplify_shift_const_1, simplify_comparison): Likewise.
871 * expr.c (convert_modes): Likewise.
872 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
873 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag):
875 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
877 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
879 2011-07-06 Richard Guenther <rguenther@suse.de>
881 PR tree-optimization/49645
882 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
884 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
885 in type qualification here ...
886 (copy_reference_ops_from_ref): ... not here.
887 (vn_reference_lookup_3): ... or here.
888 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
889 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
891 2011-07-06 Ian Lance Taylor <iant@google.com>
893 * doc/install.texi (Configuration): It's
894 --enable-gnu-indirect-function, not --enable-indirect-function.
896 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
898 * simplify-rtx.c (simplify_const_binary_operation): Use the
899 shift_truncation_mask hook instead of performing modulo by
900 width. Compare against mode precision, not bitsize.
901 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
902 Use shift_truncation_mask instead of constructing the value
905 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
908 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
909 address computation and convert to address_mode if needed.
911 2011-07-06 Richard Guenther <rguenther@suse.de>
913 * tree.c (build_common_tree_nodes_2): Merge with
914 build_common_tree_nodes.
915 * tree.h (build_common_tree_nodes): Adjust prototype.
916 (build_common_tree_nodes_2): Remove.
917 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
918 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
920 2011-07-05 Jakub Jelinek <jakub@redhat.com>
922 PR tree-optimization/49618
923 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
924 t recurse on the decl.
925 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
926 return true if expr isn't known to be defined in current
927 TU or some other LTO partition.
929 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
931 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
932 override CASE_VALUES_THRESHOLD.
934 * stmt.c (toplevel): Include params.h.
935 (case_values_threshold): Use the --param case-values-threshold
936 value if non-zero, otherwise use machine dependent value.
937 (expand_case): Use case_values_threshold.
939 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
941 * doc/invoke.texi (--param case-values-threshold): Document.
943 2011-07-05 Richard Henderson <rth@redhat.com>
945 * dwarf2out.c (dwarf2out_cfi_label): Make static.
946 (dwarf2out_flush_queued_reg_saves): Make static.
947 (dwarf2out_reg_save): Remove.
948 (dwarf2out_return_save): Remove.
949 (dwarf2out_return_reg): Remove.
950 (dwarf2out_reg_save_reg): Remove.
951 (dwarf2out_def_cfa): Merge into ...
952 (dwarf2out_frame_init): ... here.
953 * dwarf2out.h, tree.h: Remove declarations as necessary.
955 2011-07-05 Richard Henderson <rth@redhat.com>
957 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
958 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
959 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
962 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
963 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
964 (process_epilogue): Don't call dwarf2out_def_cfa.
966 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
967 indicate the return address save.
968 (process_cfa_register): Likewise.
970 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
971 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
973 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
974 for ar.pfs save at alloc insn.
976 2011-07-05 Richard Henderson <rth@redhat.com>
978 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
979 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
980 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
982 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
983 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
984 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
985 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
987 2011-07-05 Richard Henderson <rth@redhat.com>
989 * config/vax/vax.md (define_c_enum unspecv): New. Define the
990 VUNSPEC_* constants here instead of via define_constants.
991 (VUNSPEC_PEM): New constant.
992 (procedure_entry_mask): New insn.
993 (prologue): New expander.
994 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
995 (vax_expand_prologue): Rename from vax_output_function_prologue;
996 emit rtl instead of text.
997 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
998 (print_operand): Add 'x' prefix.
1000 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
1003 * calls.c (precompute_register_parameters): Promote the function
1004 argument before checking non-legitimate constant.
1006 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
1008 PR tree-optimization/47654
1009 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
1010 (lst_do_strip_mine_loop): Return an int.
1011 (lst_do_strip_mine): Same.
1012 (scop_do_strip_mine): Same.
1013 (scop_do_block): Loop blocking should strip-mine at least two loops.
1014 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
1015 (scop_do_interchange): Same.
1016 * graphite-poly.h (scop_do_interchange): Update declaration.
1017 (scop_do_strip_mine): Same.
1019 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
1021 * graphite-clast-to-gimple.c (precision_for_value): Removed.
1022 (precision_for_interval): Removed.
1023 (gcc_type_for_interval): Use mpz_sizeinbase.
1025 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
1027 * graphite-ppl.h (value_max): Correct computation of max.
1029 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
1031 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
1033 2011-07-05 Richard Guenther <rguenther@suse.de>
1035 * c-decl.c (c_init_decl_processing): Defer building common
1036 tree nodes to c_common_nodes_and_builtins.
1038 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
1040 PR tree-optimization/49580
1041 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
1042 the loop's number of iterations.
1043 * tree-parloops.c (transform_to_exit_first_loop): Add the
1044 handling of the loop's number of iterations before the call
1045 to gimple_duplicate_sese_tail.
1046 Insert the stmt caclculating the new rhs of the loop's
1047 condition stmt to the preheader instead of iters_bb.
1049 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
1051 PR rtl-optimization/47449
1052 * fwprop.c (forward_propagate_subreg): Don't propagate hard
1053 register nor zero/sign extended hard register.
1055 2011-07-05 Richard Guenther <rguenther@suse.de>
1057 PR tree-optimization/49518
1058 PR tree-optimization/49628
1059 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
1060 irrelevant and invariant data-references.
1061 (vect_analyze_data_ref_access): For invariant loads clear the
1064 2011-07-04 Jakub Jelinek <jakub@redhat.com>
1066 PR rtl-optimization/49619
1067 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
1068 pass VOIDmode as op0_mode to recursive call, and return temp even
1069 when different from tor, just if it is not IOR of the original
1072 PR rtl-optimization/49472
1073 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
1074 negating MULT, negate the second operand instead of first.
1075 (simplify_binary_operation_1) <case MULT>: If one operand is
1076 a NEG and the other is MULT, don't attempt to optimize by
1077 negation of the MULT operand if it only moves the NEG operation
1081 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
1082 get_current_def return value if it can't be trusted to be
1083 the current value of the variable in the current bb.
1085 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
1088 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
1089 general register to memory for !TARGET_INTER_UNIT_MOVES.
1091 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
1094 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
1095 instead of TREE_READONLY.
1097 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
1099 * doc/extend.texi (AVR Built-in Functions): Update documentation
1100 of __builtin_avr_fmul*.
1101 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
1102 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
1103 * config/avr/avr.md (fmul): Rename to fmul_insn.
1104 (fmuls): Rename to fmuls_insn.
1105 (fmulsu): Rename to fmulsu_insn.
1106 (fmul,fmuls,fmulsu): New expander.
1107 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
1108 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
1109 * config/avr/libgcc.S (__fmul): New function.
1110 (__fmuls): New function.
1111 (__fmulsu,__fmulsu_exit): New function.
1113 2011-07-04 Richard Guenther <rguenther@suse.de>
1115 PR tree-optimization/49615
1116 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
1117 basic-block index check.
1119 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
1121 * longlong.h (count_leading_zeros, count_trailing_zeros,
1122 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
1125 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
1127 PR tree-optimization/49610
1128 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
1131 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
1132 Olivier Hainque <hainque@adacore.com>
1133 Nicolas Setton <setton@adacore.com>
1135 * tree.h (TYPE_ARTIFICIAL): New flag.
1136 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
1137 the DIE of the type if it is artificial.
1138 (gen_array_type_die): Likewise.
1139 (gen_enumeration_type_die): Likewise.
1140 (gen_struct_or_union_type_die): Likewise.
1141 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
1142 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
1144 2011-07-01 Jakub Jelinek <jakub@redhat.com>
1146 * tree-object-size.c (pass_through_call): Handle
1147 BUILT_IN_ASSUME_ALIGNED.
1149 2011-07-01 Martin Jambor <mjambor@suse.cz>
1151 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
1153 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
1156 * explow.c (update_nonlocal_goto_save_area): Use proper mode
1157 for stack save area.
1158 * function.c (expand_function_start): Likewise.
1160 2011-07-01 Richard Guenther <rguenther@suse.de>
1163 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
1164 may have unknown refs.
1166 2011-07-01 Kai Tietz <ktietz@redhat.com>
1168 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
1170 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1172 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
1173 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
1174 (Specific, mips-sgi-irix6): Likewise.
1176 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1179 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
1181 2011-07-01 Jakub Jelinek <jakub@redhat.com>
1183 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
1184 [idx]= and [idx1 ... idx2]= before initializers if needed for
1187 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
1189 * config.gcc (score-*-elf): Remove score7.o.
1190 * config/score/t-score-elf: Likewise.
1191 * config/score/score.c: Merge score7 to score.c and
1192 remove forwarding functions.
1193 * config/score/score7.c: Deleted.
1194 * config/score/score7.h: Deleted.
1196 2011-07-01 Richard Guenther <rguenther@suse.de>
1198 PR tree-optimization/49603
1199 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
1201 2011-06-30 Martin Jambor <mjambor@suse.cz>
1203 * tree-sra.c (struct access): Rename total_scalarization to
1204 grp_total_scalarization
1205 (completely_scalarize_var): New function.
1206 (sort_and_splice_var_accesses): Set total_scalarization in the
1207 representative access.
1208 (analyze_access_subtree): Propagate total scalarization accross the
1209 tree, no holes in totally scalarized trees, simplify coverage
1211 (analyze_all_variable_accesses): Call completely_scalarize_var instead
1212 of completely_scalarize_record.
1214 2011-06-30 Richard Henderson <rth@redhat.com>
1216 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
1217 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
1218 * config/i386/i386.c: Don't include dwarf2out.h.
1219 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
1220 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
1221 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
1222 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
1223 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
1225 2011-06-30 Richard Henderson <rth@redhat.com>
1227 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
1228 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
1229 * final.c (final_scan_insn): Look for it, and invoke
1230 dwarf2out_frame_debug before the insn if found.
1232 2011-06-30 Richard Henderson <rth@redhat.com>
1234 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
1235 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
1237 2011-06-30 Richard Henderson <rth@redhat.com>
1239 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
1240 Define a vector of this type.
1241 (regs_saved_in_regs): Use a VEC.
1242 (num_regs_saved_in_regs): Remove.
1243 (compare_reg_or_pc): New.
1244 (record_reg_saved_in_reg): Split out from...
1245 (dwarf2out_flush_queued_reg_saves): ... here.
1246 (clobbers_queued_reg_save): Update for VEC.
1247 (reg_saved_in): Likewise.
1248 (dwarf2out_frame_debug_init): Likewise.
1249 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
1250 (dwarf2out_frame_debug_cfa_register): Likewise.
1252 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
1254 PR tree-optimization/49572
1255 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
1256 type of the RHS instead of that of the LHS for the expression type.
1258 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
1260 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
1263 2011-06-30 Richard Guenther <rguenther@suse.de>
1265 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
1266 * tree-ssa-structalias.c (create_variable_info_for): Do not
1267 add initial constraints for non-var-decls. Properly handle
1268 globals in other ltrans partitions.
1269 (intra_create_variable_infos): Manually create constraints for
1270 the fake no-alias parameter.
1271 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
1272 and assert there are no clones.
1274 2011-06-30 Richard Guenther <rguenther@suse.de>
1276 PR tree-optimization/46787
1277 * tree-data-ref.c (dr_address_invariant_p): Remove.
1278 (find_data_references_in_stmt): Invariant accesses are ok now.
1279 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
1280 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
1283 2011-06-30 Martin Jambor <mjambor@suse.cz>
1285 PR tree-optimization/49094
1286 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
1287 (build_accesses_from_assign): Use it.
1289 2011-06-30 Jakub Jelinek <jakub@redhat.com>
1291 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
1292 handling of BUILT_IN_ASSUME_ALIGNED.
1295 * dwarf2out.c (output_abbrev_section): Don't return early
1296 if abbrev_die_table_in_use is 1.
1297 (dwarf2out_finish): Instead don't call output_abbrev_section
1298 nor emit abbrev_section_label in that case.
1300 2011-06-30 Nick Clifton <nickc@redhat.com>
1302 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
1305 2011-06-30 Jakub Jelinek <jakub@redhat.com>
1307 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
1308 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
1310 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
1312 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1313 both pattern and original statements if necessary.
1314 (vect_transform_loop): Likewise.
1315 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
1316 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
1317 Mark the pattern statement only if the original statement doesn't
1319 (process_use): Call vect_mark_relevant with additional parameter.
1320 (vect_mark_stmts_to_be_vectorized): Likewise.
1321 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
1322 (vect_analyze_stmt): Handle both pattern and original statements
1324 (vect_transform_stmt): Don't store vectorized pattern statement
1325 in the original statement.
1326 (vect_is_simple_use_1): Use related pattern statement only if the
1327 original statement is irrelevant.
1328 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
1330 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
1332 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
1334 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
1336 (TARGET_AVX128_OPTIMAL): New definition.
1337 * config/i386/i386.c (initial_ix86_tune_features): Initialize
1338 X86_TUNE_AVX128_OPTIMAL entry.
1339 (ix86_option_override_internal): Enable the generation
1340 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
1341 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
1342 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
1344 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
1346 PR tree-optimization/49539
1347 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
1348 names by means of stmt_references_abnormal_ssa_name.
1349 (associate_plusminus): Call can_propagate_from before propagating
1350 from definition statements.
1351 (ssa_forward_propagate_and_combine): Remove superfluous newline.
1353 2011-06-29 Richard Guenther <rguenther@suse.de>
1355 * doc/invoke.texi: Document -scev dump modifier.
1356 * tree-pass.h (TDF_SCEV): New dump flag.
1357 * tree-dump.c (dump_option_value_in): Add scev.
1358 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
1359 * tree-scalar-evolution.c: Likewise.
1361 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
1363 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
1364 (cxa_type_match): Correct declaration.
1365 (__gnu_unwind_pr_common): Reconstruct additional indirection
1366 when __cxa_type_match returns succeeded_with_ptr_to_base.
1368 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1370 PR rtl-optimization/49114
1371 * reload.c (struct replacement): Remove SUBREG_LOC member.
1372 (push_reload): Do not set it.
1373 (push_replacement): Likewise.
1374 (subst_reload): Remove dead code.
1375 (copy_replacements): Remove assertion.
1376 (copy_replacements_1): Do not handle SUBREG_LOC.
1377 (move_replacements): Likewise.
1378 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
1379 Detect subregs via recursive descent instead of via SUBREG_LOC.
1381 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
1383 * config/avr/avr.c (avr_encode_section_info): Dispatch to
1384 default_encode_section_info.
1386 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
1388 PR tree-optimization/49545
1389 * builtins.c (get_object_alignment_1): Update function comment.
1390 Do not use DECL_ALIGN for functions, but test
1391 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
1392 * fold-const.c (get_pointer_modulus_and_residue): Don't check
1394 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
1396 2011-06-29 Jakub Jelinek <jakub@redhat.com>
1399 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
1400 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
1402 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
1405 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
1406 about uninitialized data attributed 'progmem' from here...
1407 (avr_encode_section_info): ...to this new function.
1408 (TARGET_ENCODE_SECTION_INFO): New define.
1409 (avr_section_type_flags): For data in ".progmem.data", remove
1410 section flag SECTION_WRITE.
1412 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
1414 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
1416 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
1417 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
1418 (__umulhisi3): Ditto.
1419 * config/avr/avr.md (mulhisi3): New insn expender.
1420 (umulhisi3): New insn expender.
1421 (*mulhisi3_call): New insn.
1422 (*umulhisi3_call): New insn.
1424 2011-06-28 Joseph Myers <joseph@codesourcery.com>
1426 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
1428 2011-06-28 Richard Henderson <rth@redhat.com>
1430 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
1431 all code and arguments that handled pushes. Update all callers.
1433 2011-06-28 Richard Henderson <rth@redhat.com>
1435 * config/arm/arm.c (arm_output_function_prologue): Don't call
1436 thumb1_output_function_prologue.
1437 (arm_expand_prologue): Avoid dead store.
1438 (number_of_first_bit_set): Use ctz_hwi.
1439 (thumb1_emit_multi_reg_push): New.
1440 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
1441 to emit the entire prologue as rtl.
1442 (thumb1_output_interwork): Split out from
1443 thumb1_output_function_prologue.
1444 (thumb1_output_function_prologue): Remove.
1445 (arm_attr_length_push_multi): Handle thumb1.
1446 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
1447 (prologue_thumb1_interwork): New.
1448 (*push_multi): Allow thumb1; use push_mult_memory_operand.
1449 * config/arm/predicates.md (push_mult_memory_operand): New.
1451 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
1453 * config/sparc/sync.md (*stbar): Delete.
1454 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
1456 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
1458 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
1460 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1462 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
1463 (TARGET_64BIT_DEFAULT): Define.
1464 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
1466 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
1468 2011-06-28 Joseph Myers <joseph@codesourcery.com>
1470 * common.opt (in_lto_p): New Variable entry.
1471 * flags.h (in_lto_p): Move to common.opt.
1472 * gcc.c: Include params.h.
1473 (set_option_handlers): Also use common_handle_option and
1474 target_handle_option.
1475 (main): Call global_init_params, finish_params and init_options_struct.
1476 * opts.c (debug_type_names): Move from toplev.c.
1477 (print_filtered_help): Access quiet_flag through opts pointer.
1478 (common_handle_option): Return early in the driver for some options.
1479 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
1481 * toplev.c (in_lto_p): Move to common.opt.
1482 (debug_type_names): Move to opts.c.
1483 * Makefile.in (OBJS): Remove opts.o.
1484 (OBJS-libcommon-target): Add opts.o.
1485 (gcc.o): Update dependencies.
1487 2011-06-28 Kai Tietz <ktietz@redhat.com>
1489 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
1491 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1493 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
1494 with '=' constraint modifier.
1495 (*divdf3_vfp): Likewise.
1496 ("*mulsf3_vfp"): Likewise.
1497 ("*muldf3_vfp"): Likewise.
1498 ("*mulsf3negsf_vfp"): Likewise.
1499 ("*muldf3negdf_vfp"): Likewise.
1501 2011-06-28 Nick Clifton <nickc@redhat.com>
1503 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
1504 relaxation when performing an incremental link.
1506 2011-06-28 Kai Tietz <ktietz@redhat.com>
1508 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
1509 within BB from last to first.
1511 2011-06-28 Joseph Myers <joseph@codesourcery.com>
1513 * genattr-common.c: New. Based on genattr.c.
1514 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
1515 (MOSTLYCLEANFILES): Add insn-attr-common.h.
1516 (opts.o): Update dependencies.
1517 (.PRECIOUS): Add insn-attr-common.h.
1518 (simple_rtl_generated_h): Add insn-attr-common.h.
1519 (build/genattr-common.o): New.
1520 (genprogrtl): Add attr-common.
1521 * genattr.c (main): Include insn-attr-common.h. Don't generate
1522 definitions of DELAY_SLOTS or INSN_SCHEDULING.
1523 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
1525 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
1527 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
1528 avr-*-* and avr-*-rtems* targets.
1530 * config/avr/elf.h: New file.
1531 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
1532 (TARGET_ASM_SELECT_SECTION): Define.
1533 (INIT_SECTION_ASM_OP): Undefine.
1534 (FINI_SECTION_ASM_OP): Undefine.
1535 (READONLY_DATA_SECTION_ASM_OP): Undefine.
1536 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
1537 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
1539 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
1540 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
1541 (MAX_OFILE_ALIGNMENT): Move to elf.h.
1542 (STRING_LIMIT): Move to elf.h.
1543 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
1544 (ASM_DECLARE_OBJECT_NAME): Remove.
1546 (ASM_OUTPUT_SKIP): Remove.
1547 (DWARF2_DEBUGGING_INFO): Remove.
1548 (OBJECT_FORMAT_ELF): Remove.
1549 (USER_LABEL_PREFIX): Remove.
1550 (ASM_OUTPUT_EXTERNAL): Remove.
1551 (ASM_OUTPUT_ASCII): Remove.
1552 (TYPE_ASM_OP): Remove.
1553 (SIZE_ASM_OP): Remove.
1554 (WEAK_ASM_OP): Remove.
1555 (STRING_ASM_OP): Remove.
1556 (SET_ASM_OP): Remove.
1557 (ASM_WEAKEN_LABEL): Remove.
1558 (TYPE_OPERAND_FMT): Remove.
1559 (ASM_DECLARE_FUNCTION_SIZE): Remove.
1560 (ASM_FINISH_DECLARE_OBJECT): Remove.
1561 (NO_DOLLAR_IN_LABEL): Remove.
1562 (ASM_GENERATE_INTERNAL_LABEL): Remove.
1563 (ASM_OUTPUT_CASE_LABEL): Remove.
1564 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
1565 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
1566 (gas_output_ascii): Remove.
1567 (gas_output_limited_string): Remove.
1568 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
1569 * config/avr/avr-protos.h
1570 (gas_output_ascii): Remove prototye.
1571 (gas_output_limited_string): Remove prototype.
1573 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
1576 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
1579 2011-06-27 Jan Hubicka <jh@suse.cz>
1581 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
1582 node instead of references in node.
1584 2011-06-27 Richard Henderson <rth@redhat.com>
1586 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
1587 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
1590 2011-06-27 Jakub Jelinek <jakub@redhat.com>
1592 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
1594 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
1595 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
1596 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
1597 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
1598 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
1599 (evaluate_stmt, execute_fold_all_builtins): Handle
1600 BUILT_IN_ASSUME_ALIGNED.
1601 * tree-ssa-dce.c (propagate_necessity): Likewise.
1602 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
1603 call_may_clobber_ref_p_1): Likewise.
1604 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
1605 (expand_builtin_assume_aligned): New function.
1606 * doc/extend.texi (__builtin_assume_aligned): Document.
1609 * cselib.c (promote_debug_loc): If cselib_preserve_constants
1610 and l has two DEBUG_INSN owned locs instead of just one, adjust
1611 the second location's setting_insn too.
1613 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1616 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
1618 2011-06-27 Nick Clifton <nickc@redhat.com>
1620 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
1621 bit position of highest bit set into a count of the high zero bits.
1623 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1625 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
1627 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1630 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
1633 2011-06-27 Richard Guenther <rguenther@suse.de>
1635 PR tree-optimization/49394
1636 * passes.c (execute_one_pass): Restore current_pass after
1637 applying IPA transforms.
1639 2011-06-27 Kai Tietz <ktietz@redhat.com>
1641 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
1642 out of type precision after operation.
1643 (find_bswap): Take for limit value the integer auto-promotion
1646 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1648 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
1649 forward scan as well.
1651 2011-06-27 Tristan Gingold <gingold@adacore.com>
1654 * config/vms/vms-protos.h: New file.
1655 * config/vms/vms-crtlmap.map: New file.
1656 * config/vms/vms.c: New file.
1657 * config/vms/make-crtlmap.awk: New file.
1658 * config/vms/vms-crtl.h: File removed.
1659 * config/vms/vms-crtl-64.h: File removed.
1660 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
1661 * config/alpha/vms64.h: Do not include vms-crtl-64.h
1662 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
1663 clear some builtins on VMS. Calls vms_patch_builtins.
1664 (avms_asm_output_external): Remove.
1665 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
1666 (struct crtl_name_spec): Remove
1667 (DO_CTRL_NAMES): Remove.
1668 * config/ia64/vms.h (struct crtl_name_spec): Remove
1669 (DO_CTRL_NAMES): Remove.
1670 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
1671 clear some builtins on VMS. Calls vms_patch_builtins.
1672 (ia64_asm_output_external): Remove DO_CRTL_NAME.
1673 * config/ia64/vms64.h: Do not include vms-crtl-64.h
1674 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
1676 2011-06-27 Tristan Gingold <gingold@adacore.com>
1678 * config/alpha/alpha.c (alpha_end_function): Always generate .end
1681 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1683 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
1684 the function receives nonlocal gotos.
1686 2011-06-27 Richard Guenther <rguenther@suse.de>
1688 PR tree-optimization/49536
1689 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
1690 For non-scalar inner types use a scalar type according to
1691 the scalar inner mode.
1693 2011-06-27 Richard Guenther <rguenther@suse.de>
1695 PR tree-optimization/49365
1696 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
1698 2011-06-27 Richard Guenther <rguenther@suse.de>
1700 PR tree-optimization/49169
1701 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
1702 the alignment of function decls.
1704 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
1707 * config/darwin.c (darwin_mergeable_string_section): Place string
1708 constants in '.cstring' rather than '.const' when CF/NSStrings are
1711 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
1713 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
1714 (emit_save_register_window): Likewise.
1715 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
1716 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
1717 Swap back %o7/%i7 in register naming.
1719 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
1722 * config/darwin.c (darwin_override_options): Improve warning when
1723 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
1724 is given with fpie/fPIE.
1725 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
1726 * config/darwin9.h (PIE_SPEC): New.
1728 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
1730 * timevar.c (timevar_print): Increase width for display of timevar
1733 2011-06-24 Jakub Jelinek <jakub@redhat.com>
1736 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
1737 instead of TYPE_CHAIN for chain_next for types.
1739 2011-06-24 Richard Henderson <rth@redhat.com>
1741 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
1742 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
1743 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
1744 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
1745 (sparc_flat_expand_prologue): Emit individual instructions
1746 instead of one of the above.
1748 2011-06-24 Easwaran Raman <eraman@google.com>
1750 PR rtl-optimization/49429
1752 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
1753 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
1754 used to copy y into x.
1755 * calls.c (initialize_argument_information): Mark
1756 an argument addressable if it is passed by invisible reference.
1757 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
1758 if it is passed by reference.
1760 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
1762 PR rtl-optimization/49504
1763 * rtlanal.c (nonzero_bits1): Properly handle addition or
1764 subtraction of a pointer in Pmode if pointers extend unsigned.
1765 (num_sign_bit_copies1): Likewise.
1767 2011-06-24 Martin Jambor <mjambor@suse.cz>
1769 PR tree-optimizations/49516
1770 * tree-sra.c (sra_modify_assign): Choose the safe path for
1771 aggregate copies if we also did scalar replacements.
1773 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1776 * config/arm/predicates.md (add_operator): New.
1777 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
1779 2011-06-24 Andi Kleen <ak@linux.intel.com>
1781 * tree-sra.c (type_internals_preclude_sra_p): Add msg
1782 parameter. Split up ifs and report reason in *msg.
1784 (find_var_candiate): Add msg variable.
1785 Split up ifs and report reason to reject.
1786 (find_param_candidates): Add msg variable.
1787 Pass msg to type_internals_preclude_sra_p.
1789 2011-06-23 Jeff Law <law@redhat.com>
1792 * reload.h (reload): Change to return a bool.
1793 * ira.c (ira): If requested by reload, run a fast DCE pass after
1794 reload has completed. Fix comment typo.
1795 * reload1.c (need_dce): New file scoped static.
1796 (reload): Set reload_completed here. Return whether or not a DCE
1797 pass after reload is needed.
1798 (delete_dead_insn): Set need_dce as needed.
1801 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
1802 to detect threading through joiner block. If there was already
1803 an edge to the new target, then do not change the PHI nodes.
1805 2011-06-23 Jakub Jelinek <jakub@redhat.com>
1807 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
1808 get_pointer_alignment to see if base isn't sufficiently aligned.
1810 2011-06-23 Jan Hubicka <jh@suse.cz>
1812 PR tree-optimize/49373
1813 * tree-pass.h (all_late_ipa_passes): Declare.
1814 * cgraphunit.c (init_lowered_empty_function): Fix properties.
1815 (cgraph_optimize): Execute late passes; remove unreachable funcions
1816 after materialization.
1817 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
1819 * passes.c (all_late_ipa_passes): Declare.
1820 (dump_passes, register_pass): Handle late ipa passes.
1821 (init_optimization_passes): Move ipa_pta to late passes; schedule
1822 fixup_cfg at beggining of all_passes.
1823 (apply_ipa_transforms): New function.
1824 (execute_one_pass): When doing simple ipa pass, apply all transforms.
1826 2011-06-23 Joseph Myers <joseph@codesourcery.com>
1828 * params.c: Include common/common-target.h. Don't include tm.h.
1829 (lang_independent_params): Move from toplev.c.
1830 (global_init_params): New.
1831 * params.h (global_init_params): Declare.
1832 * target.def (default_params): Move to common-target.def.
1833 * toplev.c (lang_independent_options): Remove.
1834 (lang_independent_params): Move to params.c.
1835 (general_init): Use global_init_params.
1836 * common/common-target.def (option_default_params): Move from
1838 * common/config/ia64/ia64-common.c: Include params.h.
1839 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1841 * common/config/rs6000/rs6000-common.c: Include params.h.
1842 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1844 * common/config/sh/sh-common.c: Include params.h.
1845 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1847 * common/config/spu/spu-common.c: Include params.h.
1848 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1850 * config/ia64/ia64.c (ia64_option_default_params,
1851 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
1852 * config/rs6000/rs6000.c (rs6000_option_default_params,
1853 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
1854 * config/sh/sh.c (sh_option_default_params,
1855 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
1856 * config/spu/spu.c (spu_option_default_params,
1857 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
1858 * Makefile.in (OBJS): Remove params.o.
1859 (OBJS-libcommon-target): Add params.o.
1860 (params.o, $(common_out_object_file)): Update dependencies.
1861 * doc/tm.texi: Regenerate.
1863 2011-06-23 Alan Modra <amodra@gmail.com>
1866 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
1867 invocation for 2011-06-09 changes.
1869 2011-06-22 Jakub Jelinek <jakub@redhat.com>
1872 * omp-low.c (expand_omp_for_static_nochunk): Only
1873 use n ceil/ nthreads size for the first n % nthreads threads in the
1874 team instead of all threads except for the last few ones which
1875 get less work or none at all.
1878 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
1881 2011-06-22 Richard Guenther <rguenther@suse.de>
1883 PR tree-optimization/49493
1884 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
1885 Refer to the alias target of variables.
1886 (associate_varinfo_to_alias_1): Remove.
1887 (ipa_pta_execute): Do not associate aliases with anything.
1888 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
1889 (cgraph_function_node): Likewise.
1890 (cgraph_function_or_thunk_node): Likewise.
1891 (varpool_variable_node): Likewise.
1893 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
1895 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
1896 * config.gcc (arm*-*-linux*): Default to gnu tls.
1897 (arm*-*-*): Add --with-tls option.
1898 (all_defaults): Add 'tls'.
1900 2011-06-22 Richard Henderson <rth@redhat.com>
1902 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
1903 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
1904 (dwarf2out_frame_debug_cfa_window_save): Rename from
1905 dwarf2out_window_save; make static.
1906 * tree.h (dwarf2out_window_save): Don't declare.
1908 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
1909 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
1910 (emit_save_register_window): Rename from gen_save_register_window;
1911 emit the insn and add REG_CFA_* notes.
1912 (sparc_expand_prologue): Update to match.
1913 * config/sparc/sparc.md (save_register_window_1): Simplify from
1914 save_register_window<P:mode>.
1916 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
1919 * config/i386/i386.md (*lea_general_2): Always allow SImode.
1920 (*lea_general_2_zext): Likewise.
1921 (imul to lea peepholes): Use const359_operand and check
1922 TARGET_PARTIAL_REG_STALL.
1924 * config/i386/predicates.md (const359_operand): New.
1926 2011-06-22 Michael Matz <matz@suse.de>
1928 * cgraphunit.c (assemble_thunk): Use correct return type.
1930 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
1931 Dmitry Melnik <dm@ispras.ru>
1933 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
1934 (neon_output_shift_immediate): Ditto.
1935 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
1937 (neon_output_shift_immediate): Ditto.
1938 * config/arm/neon.md (vashl<mode>3): Modified constraint.
1939 (vashr<mode>3_imm): New insn pattern.
1940 (vlshr<mode>3_imm): Ditto.
1941 (vashr<mode>3): Modified constraint.
1942 (vlshr<mode>3): Ditto.
1943 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
1945 (imm_for_neon_rshift_operand): Ditto.
1946 (imm_lshift_or_reg_neon): Ditto.
1947 (imm_rshift_or_reg_neon): Ditto.
1949 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
1951 2011-06-22 Jakub Jelinek <jakub@redhat.com>
1953 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
1954 builtin calls even if likelyvalue is not CONSTANT.
1955 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
1956 Return get_value_for_expr of first operand
1957 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
1958 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1959 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
1960 their non-checking counterparts.
1961 (call_may_clobber_ref_p_1): Likewise.
1962 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
1963 like their non-checking counterparts.
1964 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1965 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
1966 like their non-checking counterparts.
1967 (find_func_clobbers): Likewise.
1968 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
1969 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
1971 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
1972 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
1973 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
1974 of base type reference as argument.
1975 (resolve_addr_in_expr): Likewise. Fix keep computation.
1976 (convert_descriptor_to_signed): Renamed to...
1977 (convert_descriptor_to_mode): ... this. For wider types convert to
1978 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
1979 (typed_binop): New function.
1980 (scompare_loc_descriptor, ucompare_loc_descriptor,
1981 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
1982 default to unsigned type instead of signed.
1985 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
1986 (gimple_build_debug_source_bind_stat): New prototype.
1987 (gimple_build_debug_source_bind): Define.
1988 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
1989 gimple_debug_source_bind_get_value,
1990 gimple_debug_source_bind_get_value_ptr,
1991 gimple_debug_source_bind_set_var,
1992 gimple_debug_source_bind_set_value): New inlines.
1993 * gimple.c (gimple_build_debug_source_bind_stat): New function.
1994 * gimple-pretty-print.c (dump_gimple_debug): Handle
1995 GIMPLE_DEBUG_SOURCE_BIND.
1996 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
1997 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
1998 * tree-parloops.c (eliminate_local_variables,
1999 separate_decls_in_region): Likewise.
2000 (separate_decls_in_region_debug): Renamed from
2001 separate_decls_in_region_debug_bind. Handle
2002 gimple_debug_source_bind_p.
2003 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
2005 (DECL_HAS_DEBUG_ARGS_P): Define.
2006 (struct tree_function_decl): Add has_debug_args_flag field.
2007 * tree.c (debug_args_for_decl): New variable.
2008 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
2009 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
2010 (rewrite_debug_stmt_uses): New function.
2011 (rewrite_stmt): Use it to rewrite debug stmt uses.
2012 * rtl.def (DEBUG_PARAMETER_REF): New.
2013 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
2014 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
2015 DEBUG_PARAMETER_REF.
2016 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
2017 * print-rtl.c (print_rtx): Likewise.
2018 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
2019 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
2020 debug stmts in the first bb.
2021 * tree-inline.c (remap_ssa_name): If remapping default def
2022 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
2023 a source bind debug stmt.
2024 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
2025 (maybe_move_debug_stmts_to_successors): Likewise.
2026 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
2027 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
2028 debug args vector from old_decl to new_decl.
2029 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
2030 or modified parameters, add debug bind stmts before call
2031 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
2032 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
2033 on DECL_DEBUG_EXPRs from debug args vector.
2034 (expand_debug_source_expr): New function.
2035 (expand_debug_locations): Use it for source bind insns.
2036 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
2037 * var-tracking.c (prepare_call_arguments): Add debug args
2038 to call_arguments if any.
2039 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
2040 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
2041 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
2042 (get_ref_die_offset, parameter_ref_descriptor): New functions.
2043 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
2044 (gen_subprogram_die): Handle parameters identified by
2045 DEBUG_PARAMETER_REF.
2047 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
2049 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
2050 * doc/install.texi (Configuration): Document --with-tls.
2051 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
2052 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
2053 (arm_tls_descseq_addr): New.
2054 (legitimize_tls_address): Add tlsdesc support.
2055 (arm_cannot_copy_insn_p): Check for tlscall.
2056 (arm_emit_tls_decoration): Likewise.
2057 * config/arm/arm.h (TARGET_GNU2_TLS): New.
2058 (OPTION_DEFAULT_SPECS): Add with-tls support.
2059 * config/arm/arm.md (R1_REGNUM): Define.
2061 * config/arm/arm.opt (tls_type): New enumeration type and values.
2062 (mtls-dialect): New switch.
2063 * config/arm/arm-opts.h (enum tls_type): New.
2065 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
2067 * attribs.c (register_attribute): Added assert to check that all
2068 attribute specs are registered with a name that is not empty and
2069 does not start with '_'.
2070 (decl_attributes): Avoid the lookup of the "naked" attribute spec
2071 if the function has no attributes.
2072 * tree.c (is_attribute_with_length_p): Removed.
2073 (is_attribute_p): Removed.
2074 (private_is_attribute_p): New.
2075 (private_lookup_attribute): New.
2076 (lookup_attribute): Removed.
2077 (lookup_ident_attribute): New.
2078 (remove_attribute): Require the first argument to be in the form
2079 'text', not '__text__'. Updated asserts.
2080 (merge_attributes): Use lookup_ident_attributes instead of
2082 (merge_dllimport_decl_attributes): Use remove_attribute.
2083 (attribute_list_contained): Likewise.
2084 (attribute_list_equal): Immediately return 1 if the arguments are
2086 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
2087 'int'. Require the first argument to be in the form 'text', not
2088 '__text__'. Require the second argument to be an identifier.
2089 (lookup_attribute): Made inline. Require the first argument to be
2090 in the form 'text', not '__text__'.
2091 (private_is_attribute_p, private_lookup_attribute): New.
2094 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
2096 * builtins.c: Add sync_ or SYNC__ to builtin names.
2097 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
2098 * omp-low.c: Add sync_ or SYNC__ to builtin names.
2100 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
2103 * config/avr/avr.md (extzv): New expander.
2105 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
2106 * config/avr/constraints.md (C04): New constraint.
2107 * doc/md.texi (Machine Constraints): Document it.
2109 2011-06-21 Jakub Jelinek <jakub@redhat.com>
2112 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
2113 unsignedp argument instead of 1 for clrsb_optab.
2114 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
2115 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
2116 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
2117 * optabs.c (widen_leading): Call widen_operand and expand_unop
2118 with 0 as unsignedp argument instead of 1 for clrsb_optab.
2119 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
2121 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
2123 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
2125 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
2127 * gensupport.c (add_define_attr): New static function.
2128 (is_predicable): Allow multi-alternative lists for the "predicable"
2130 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
2131 (process_one_cond_exec): Call alter_attrs_for_insn.
2132 * doc/md.texi (Defining Attributes): Mention some standard names.
2133 (Conditional Execution): Update documentation for "predicable".
2135 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
2136 __builtin_clrsbll): Document.
2137 * doc/rtl.texi (clrsb): New entry.
2138 * optabs.c (widen_leading): Renamed from widen_clz. New argument
2139 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
2140 (expand_unop): Handle clrsb_optab.
2141 (init_optabs): Initialize it.
2142 * optabs.h (enum optab_index): New entry OTI_clrsb.
2143 (clrsb_optab): Define.
2144 * genopinit.c (optabs): Add an entry for it.
2145 * builtins.c (expand_builtin): Handle clrsb builtin functions.
2146 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
2147 BUILT_IN_CLRSBLL): New.
2148 * rtl.def (CLRSB): New code.
2149 * dwarf2out.c (mem_loc_descriptor): Handle it.
2150 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
2151 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
2153 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
2154 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
2155 (__ctzDI2): Move declaration.
2156 * config/bfin/bfin.md (clrsbsi2): New expander.
2157 (signbitssi2): Use the CLRSB rtx.
2158 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
2159 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
2161 2011-06-21 Richard Guenther <rguenther@suse.de>
2163 * ipa-inline-transform.c (inline_transform): Fix previous change.
2165 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
2167 PR tree-optimization/49478
2168 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
2169 with constant operand.
2171 2011-06-21 Richard Guenther <rguenther@suse.de>
2173 * ipa-inline-transform.c (inline_transform): Fix typo.
2175 2011-06-21 Richard Guenther <rguenther@suse.de>
2177 PR tree-optimization/49483
2178 * tree-vect-stmts.c (vectorizable_assignment): Also handle
2179 VIEW_CONVERT_EXPR conversions.
2181 2011-06-21 Joseph Myers <joseph@codesourcery.com>
2183 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
2184 * config/avr/avr-tables.opt: New file (generated).
2185 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
2186 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
2188 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
2189 (avr_option_override): Don't process -mmcu= argument here. Set
2190 avr_current_device using avr_mcu_index.
2191 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
2192 * config/avr/avr.opt (mmcu=): Use Enum.
2193 * config/avr/t-avr (avr-devices.o): Update dependencies.
2194 ($(srcdir)/config/avr/avr-tables.opt): New.
2195 * target.def (help): Remove.
2196 * doc/tm.texi.in (TARGET_HELP): Remove.
2197 * doc/tm.texi: Regenerate.
2198 * opts.c: Don't include target.h.
2199 (common_handle_option): Don't call targetm.help.
2200 * system.h (TARGET_HELP): Poison.
2201 * Makefile.in (opts.o): Update dependencies.
2203 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2205 * config/usegld.h: New file.
2206 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
2207 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
2208 (LIB_SPEC): Likewise. Search /lib.
2209 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
2210 (RDYNAMIC_SPEC): Handle GNU ld.
2211 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
2213 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
2214 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
2215 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
2216 (STACK_CHECK_STATIC_BUILTIN): Define.
2217 * config/sol2.opt (compat-bsd): Remove.
2218 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
2219 * config/sol2-bi.h: New file.
2220 * config/sol2-gld.h: Remove.
2221 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
2222 (NO_DBX_BNSYM_ENSYM): Remove.
2223 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
2224 (STACK_CHECK_STATIC_BUILTIN): Remove.
2225 Test USE_GLD instead of TARGET_GNU_LD.
2226 * config/i386/sol2-10.h: Rename to ...
2227 * config/i386/sol2-bi.h .. this.
2228 (SUBTARGET_EXTRA_SPECS): Redefine.
2229 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
2230 (MULTILIB_DEFAULTS): Remove.
2231 (DEFAULT_ARCH32_P): Define.
2232 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
2233 (ARCH64_SUBDIR): Define.
2234 Test USE_GLD instead of TARGET_GNU_LD.
2235 (I386_EMULATION): Rename to ...
2236 (ARCH32_EMULATION): ... this.
2237 (X86_64_EMULATION): Rename to ...
2238 (ARCH64_EMULATION): ... this.
2239 (TARGET_LD_EMULATION): Remove.
2240 (LINK_ARCH_SPEC): Remove.
2241 * config/i386/sol2-gas.h: Remove.
2242 * config/i386/t-sol2-10: Rename to ...
2243 * config/i386/t-sol2-64: ... this.
2244 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
2245 (AS_SPARC64_FLAG): Define.
2246 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
2247 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
2248 depending on TARGET_CPU_DEFAULT.
2249 (CPP_CPU_SPEC): Redefine.
2250 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
2251 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
2252 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
2253 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
2254 ASM_ARCH_DEFAULT_SPEC): Redefine.
2255 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
2256 LINK_ARCH_DEFAULT_SPEC.
2257 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
2258 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
2259 (ARCH64_SUBDIR): Define.
2260 (LINK_ARCH64_SPEC): Redefine.
2261 (CC1_SPEC): Redefine.
2262 (OPTION_DEFAULT_SPECS): Redefine.
2263 (MULTILIB_DEFAULTS): Define.
2264 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
2265 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
2266 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
2267 (NO_DBX_BNSYM_ENSYM): Remove.
2268 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
2269 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
2270 (TARGET_ASM_NAMED_SECTION): Likewise.
2271 (STACK_CHECK_STATIC_BUILTIN): Remove.
2272 * config/sparc/sol2-bi.h: Remove.
2273 * config/sparc/sol2-gas-bi.h: Remove.
2274 * config/sparc/sol2-gas.h: Remove.
2275 * config/sparc/sol2-gld-bi.h: Remove.
2276 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
2278 (*-*-solaris2*): ... here.
2280 2011-06-21 Christian Bruel <christian.bruel@st.com>
2283 * ipa-inline.c (can_inline_edge_p): Check
2284 !DECL_DISREGARD_INLINE_LIMITS.
2286 2011-06-21 Christian Bruel <christian.bruel@st.com>
2289 * cgraphunit.c (process_function_and_variable_attributes): warn when
2290 always_inline functions that are not inline.
2291 * ipa-inline-transform.c (inline_transform): Always call
2293 * tree-inline.c (tree_inlinable_function_p): Use error instead
2295 (expand_call_inline): Likewise.
2297 2011-06-21 Jakub Jelinek <jakub@redhat.com>
2299 * Makefile.in (dg_target_exps): Set.
2300 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
2301 instead of 7, try to divide it more evenly.
2303 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
2306 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
2307 (avx256_split_unaligned_store): New definition.
2308 (ix86_option_override_internal): Enable avx256 unaligned load/store
2309 splitting only when avx256_split_unaligned_load/store is set.
2311 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
2313 * regrename.c (scan_rtx_reg): Handle the case where we write to an
2314 open chain in a smaller mode without failing the entire block.
2316 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
2319 * combine.c (cant_combine_insn_p): Don't check zero/sign
2320 extended hard registers.
2322 2011-06-21 Alan Modra <amodra@gmail.com>
2324 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
2325 CONST high part large-toc address.
2326 (rs6000_tls_referenced_p): Make static.
2327 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
2329 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
2332 * combine.c (cant_combine_insn_p): Check zero/sign extended
2335 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2338 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
2339 one of the operands is a register.
2341 2011-06-20 Kai Tietz <ktietz@redhat.com>
2343 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
2344 operations in combination with binary and.
2346 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
2348 * regrename.c (do_replace): Don't update notes.
2350 2011-06-20 Alan Modra <amodra@gmail.com>
2352 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
2353 of toc-relative address in CONST.
2354 (rs6000_delegitimize_address): Recognize changed address.
2355 (rs6000_legitimize_reload_address): Likewise.
2356 (rs6000_emit_move): Don't force these constants to memory.
2357 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
2358 toc-relative address in CONST.
2359 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
2360 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
2362 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
2364 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
2365 (count_trailing_zeros): Likewise.
2367 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
2370 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
2371 .init_array can be used with .ctors on targets.
2372 * configure: Regenerated.
2374 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
2376 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
2377 if the element type is volatile.
2379 2011-06-18 Jan Hubicka <jh@suse.cz>
2381 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
2383 (lto_symtab_resolve_can_prevail_p): Likewise.
2384 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
2385 * cgraphbuild.c (record_reference): Remove extra body alias code.
2386 (mark_load): Likewise.
2387 (mark_store): Likewise.
2388 * cgraph.h (varpool_node): Remove extra_name filed;
2389 add alias_of and extraname_alias.
2390 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
2391 (varpool_alias_aliased_node): New inline function.
2392 (varpool_variable_node): New function.
2393 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
2394 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
2395 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
2396 (input_varpool_node): Likewise.
2397 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
2398 (varpool_externally_visible_p): Remove extra body alias code.
2399 (function_and_variable_visibility): Likewise.
2400 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
2401 (ipa_pta_execute): Use it.
2402 * varpool.c (varpool_remove_node): Remove extra name alias code.
2403 (varpool_mark_needed_node): Likewise.
2404 (varpool_analyze_pending_decls): Analyze aliases.
2405 (assemble_aliases): New functoin.
2406 (varpool_assemble_decl): Use it.
2407 (varpool_create_variable_alias): New function.
2408 (varpool_extra_name_alias): Rewrite.
2409 (varpool_for_node_and_aliases): New function.
2411 2011-06-18 Jakub Jelinek <jakub@redhat.com>
2414 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
2415 last_arg_constant and last argument doesn't match its predicate,
2416 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
2417 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
2418 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
2419 spelling of error message.
2420 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
2421 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
2422 const_0_to_255_operand instead of const_int_operand.
2425 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2427 * config/i386/sse.md (blendbits): Remove mode attribute.
2428 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2429 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2430 Check integer value of operand 3 in insn constraint.
2432 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
2434 PR rtl-optimization/48542
2435 * reload.c (find_equiv_reg): Stop looking when finding a
2437 * reload1.c (reload_as_needed): Invalidate all reload
2438 registers when crossing a setjmp-type call.
2440 2011-06-16 Jeff Law <law@redhat.com>
2442 * tree-ssa-threadupdate.c (struct redirection_data): New field
2444 (THREAD_TARGET2): Define.
2445 (redirection_data_eq): Also check that the intermediate edge is equal.
2446 (lookup_redirection_data): Drop useless argument. Extract the
2447 outgoing_edge and intermediate edge from E. Callers updated.
2448 (copy_phi_args, update_destination_phis): New functions.
2449 (fix_duplicate_block_edges): Likewise.
2450 (create_edge_and_update_destination_phis): Duplicate all the edges
2451 hung off e->aux. Use copy_phi_args.
2452 (create_duplicates): Use fix_duplicate_block_edges.
2453 (fixup_template_block): Likewise.
2454 (redirect_edges): If necessary, redirect the joiner block's incoming
2455 edge to the duplicate of the joiner block.
2456 (thread_block): Don't muck up loops when threading through a joiner
2458 (thread_through_loop_header): Handle threading through a joiner block.
2459 (mark_threaded_blocks, register_jump_thread): Likewise.
2460 * tree-flow.h (register_jump_thread): Add new argument. Callers
2462 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
2463 (thread_across_edge): Handle threading through a joiner block.
2465 2011-06-16 Martin Jambor <mjambor@suse.cz>
2467 PR tree-optimization/49343
2468 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
2469 calculate offset, provide 2nd operand for the new COMPONENT_REF.
2471 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
2473 * config/darwin-protos.h (machopic_select_rtx_section): Move to
2474 inside RTX_CODE ifdef.
2476 2011-06-16 Tom de Vries <tom@codesourcery.com>
2479 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
2480 Disallow NULL pointer for pointer arithmetic.
2482 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2486 2011-06-10 Wei Guozhi <carrot@google.com>
2489 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
2490 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
2491 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
2493 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
2495 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
2496 (arm_legitimate_ldrd_p): New prototype.
2497 (arm_output_ldrd): New prototype.
2498 * config/arm/arm.c (arm_check_ldrd_operands): New function.
2499 (arm_legitimate_ldrd_p): New function.
2500 (arm_output_ldrd): New function.
2502 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
2505 * doc/tm.texi.in: Update Copyright date.
2506 * doc/tm.texi: Regenerate.
2507 * targhooks.c (default_setup_incoming_varargs): Replace
2508 CUMULATIVE_ARGS* argument type with cumulative_args_t.
2509 (default_pretend_outgoing_varargs_named): Likewise.
2510 (hook_pass_by_reference_must_pass_in_stack): Likewise.
2511 (hook_callee_copies_named): Likewise.
2512 (default_function_arg_advance): Likewise.
2513 (default_function_arg): Likewise.
2514 (default_function_incoming_arg): Likewise.
2515 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
2516 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
2517 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
2518 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
2519 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
2520 * targhooks.h (default_setup_incoming_varargs): Likewise.
2521 (default_pretend_outgoing_varargs_named): Likewise.
2522 (hook_pass_by_reference_must_pass_in_stack): Likewise.
2523 (hook_callee_copies_named): Likewise.
2524 (default_function_arg_advance): Likewise.
2525 (default_function_arg): Likewise.
2526 (default_function_incoming_arg): Likewise.
2527 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
2528 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
2529 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
2530 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
2531 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
2532 * target.def (pass_by_reference): Likewise.
2533 (setup_incoming_varargs, strict_argument_naming): Likewise.
2534 (pretend_outgoing_varargs_named, callee_copies): Likewise.
2535 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
2536 (function_incoming_arg): Likewise.
2537 * target.h: Don't include "tm.h" .
2538 (cumulative_args_t): New typedef.
2539 [GCC_TM_H] (get_cumulative_args): New static inline function.
2540 [GCC_TM_H] (pack_cumulative_args): Likewise.
2541 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
2542 argument type with cumulative_args_t.
2543 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
2544 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
2545 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
2546 (frv_arg_partial_bytes, frv_function_arg): Likewise.
2547 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
2548 (frv_function_arg_1): Likewise.
2549 * config/s390/s390.c (s390_pass_by_reference): Likewise.
2550 (s390_function_arg_advance, s390_function_arg): Likewise.
2551 * config/m32c/m32c.c (m32c_function_arg): Likewise.
2552 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
2553 (m32c_strict_argument_naming): Likewise.
2554 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
2555 (spu_function_arg_advance): Likewise.
2556 (spu_setup_incoming_varargs): Likewise. Make static.
2557 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
2559 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
2560 CUMULATIVE_ARGS* argument type with cumulative_args_t.
2561 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
2562 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
2563 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
2564 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
2565 (mep_pass_by_reference, mep_function_arg): Likewise.
2566 (mep_function_arg_advance): Likewise.
2567 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
2568 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
2569 (m32r_function_arg, m32r_function_arg_advance): Likewise.
2570 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
2571 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
2572 (ix86_function_arg, ix86_pass_by_reference): Likewise.
2573 (ix86_setup_incoming_varargs): Likewise.
2574 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
2575 (sh_strict_argument_naming): Likewise.
2576 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
2577 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
2578 (sh_function_arg_advance, sh_function_arg): Likewise.
2579 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
2580 (pdp11_function_arg_advance): Likewise.
2581 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
2583 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
2584 * config/avr/avr.c (avr_function_arg): Likewise.
2585 (avr_function_arg_advance): Likewise.
2586 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
2587 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
2588 (xtensa_function_arg_1): Likewise.
2589 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
2591 (xstormy16_function_arg): Likewise.
2592 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
2593 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
2594 (fr30_function_arg_advance): Likewise.
2595 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
2596 (lm32_function_arg, lm32_function_arg_advance): Likewise.
2597 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
2598 (moxie_function_arg, moxie_function_arg_advance): Likewise.
2599 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
2600 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
2601 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
2602 (cris_function_arg, cris_function_incoming_arg): Likewise.
2603 (cris_function_arg_advance, cris_function_arg_1): Likewise.
2604 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
2605 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
2606 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
2607 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
2608 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
2609 (mn10300_arg_partial_bytes): Likewise.
2610 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
2611 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
2612 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
2613 (ia64_function_arg_1): Likewise.
2614 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
2615 (m68k_function_arg): Likewise.
2616 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
2617 (rs6000_function_arg, setup_incoming_varargs): Likewise.
2618 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
2619 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
2620 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
2621 (picochip_arg_advance): Likewise.
2622 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
2623 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
2624 (mcore_function_arg_advance): Likewise.
2625 * config/score/score.c (score_pass_by_reference): Likewise.
2626 (score_function_arg_advance): Likewise.
2627 (score_arg_partial_bytes): Likewise. Make static.
2628 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
2629 * config/arm/arm.c (arm_arg_partial_bytes): Replace
2630 CUMULATIVE_ARGS* argument type with cumulative_args_t.
2631 (arm_function_arg, arm_function_arg_advance): Likewise.
2632 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
2633 * config/pa/pa.c (pa_pass_by_reference): Likewise.
2634 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
2635 (pa_function_arg): Likewise.
2636 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
2637 (mips_function_arg, mips_function_arg_advance): Likewise.
2638 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
2639 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
2640 * config/vax/vax.c (vax_function_arg): Likewise.
2641 (vax_function_arg_advance): Likewise.
2642 * config/h8300/h8300.c (h8300_function_arg): Likewise.
2643 (h8300_function_arg_advance): Likewise.
2644 * config/v850/v850.c (v850_pass_by_reference): Likewise.
2645 (v850_strict_argument_naming, v850_function_arg): Likewise.
2646 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
2647 (v850_setup_incoming_varargs): Likewise.
2648 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
2649 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
2650 (mmix_function_arg, mmix_pass_by_reference): Likewise.
2651 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
2653 * config/bfin/bfin.c (setup_incoming_varargs): Replace
2654 CUMULATIVE_ARGS* argument type with cumulative_args_t.
2655 (bfin_function_arg_advance, bfin_function_arg): Likewise.
2656 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
2657 * calls.c (emit_call_1): Change type of args_so_far to
2658 cumulative_args_t. Changed all callers.
2659 (initialize_argument_information): Likewise.
2660 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
2661 * dse.c (get_call_args): Likewise.
2662 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
2663 * function.c (pass_by_reference, reference_callee_copied): Likewise.
2664 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
2665 New member args_so_far_v. Changed all users.
2666 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
2667 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
2668 * config/mips/mips.c (mips_output_args_xfer): Likewise.
2669 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
2670 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2671 * config/microblaze/microblaze.c (microblaze_expand_prologue):
2673 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
2674 m32r_pass_by_reference.
2676 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
2678 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
2679 argument to be a VEC of statements.
2680 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
2681 assert that pattern statements have to have their vector type set.
2682 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
2683 Change the first argument to be a VEC of statements. Update
2685 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
2686 (vect_handle_widen_mult_by_const): New function.
2687 (vect_recog_widen_mult_pattern): Change the first argument to be a
2688 VEC of statements. Update documentation. Check that the constant is
2689 INTEGER_CST. Support multiplication by a constant that fits an
2690 intermediate type - call vect_handle_widen_mult_by_const.
2691 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
2692 call. Handle additional pattern statements if necessary.
2694 2011-06-16 Nick Clifton <nickc@redhat.com>
2697 * config.gcc: Set cpu_type to v850 for any V850 architecture.
2698 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
2699 md_file, extra_modes, out_file and extra_options are these are all
2700 deduced from cpu_type.
2702 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
2704 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
2705 truncation mask to 63.
2707 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
2711 * longlong.h: Add AVR support:
2712 (count_leading_zeros): New macro.
2713 (count_trailing_zeros): New macro.
2714 (COUNT_LEADING_ZEROS_0): New macro.
2715 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
2716 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
2717 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
2718 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
2719 (LIB2FUNCS_EXCLUDE): Add _clz.
2720 * config/avr/libgcc.S (XCALL): Move up in file.
2721 (XJMP): New C Macro.
2722 (DEFUN): New asm macro.
2723 (ENDF): New asm macro.
2724 (__ffssi2): New function.
2725 (__ffshi2): New function.
2726 (__loop_ffsqi2): New function.
2727 (__ctzsi2): New function.
2728 (__ctzhi2): New function.
2729 (__clzdi2): New function.
2730 (__clzsi2): New function.
2731 (__clzhi2): New function.
2732 (__paritydi2): New function.
2733 (__paritysi2): New function.
2734 (__parityhi2): New function.
2735 (__parityqi2): New function.
2736 (__popcounthi2): New function.
2737 (__popcountsi2): New function.
2738 (__popcountdi2): New function.
2739 (__popcountqi2): New function.
2740 (__bswapsi2): New function.
2741 (__bswapdi2): New function.
2742 (__ashldi3): New function.
2743 (__ashrdi3): New function.
2744 (__lshrdi3): New function.
2745 Fix suspicous lines.
2747 2011-06-16 Richard Guenther <rguenther@suse.de>
2749 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
2751 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
2753 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
2754 equality compares against zero for the lower bit.
2756 2011-06-16 Jakub Jelinek <jakub@redhat.com>
2758 PR tree-optimization/49419
2759 * tree-vrp.c (execute_vrp): Call init_range_assertions
2760 before estimate_numbers_of_iterations, call
2761 free_number_of_iterations_estimates before calling
2762 remove_range_assertions.
2764 2011-06-16 Revital Eres <revital.eres@linaro.org>
2766 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
2767 (struct partial_schedule): Add rows_length field.
2768 (verify_partial_schedule): Check rows_length.
2769 (ps_insert_empty_row): Handle rows_length.
2770 (create_partial_schedule): Likewise.
2771 (free_partial_schedule): Likewise.
2772 (reset_partial_schedule): Likewise.
2773 (create_ps_insn): Remove rest_count argument.
2774 (remove_node_from_ps): Update rows_length.
2775 (add_node_to_ps): Update rows_length and call create_ps_insn
2776 without passing row_rest_count.
2777 (rotate_partial_schedule): Update rows_length.
2779 2011-06-16 Revital Eres <revital.eres@linaro.org>
2781 * ddg.c (add_intra_loop_mem_dep): New function.
2782 (build_intra_loop_deps): Call it.
2784 2011-06-13 Jeff Law <law@redhat.com>
2786 * df-problems.c (df_lr_local_compute): Manually CSE
2787 PIC_OFFSET_TABLE_REGNUM.
2788 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
2789 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
2791 2011-06-13 Jan Hubicka <jh@suse.cz>
2793 * cgraphunit.c (handle_alias_pairs): New function.
2794 (cgraph_finalize_compilation_unit): Use it.
2795 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
2796 as externally visible.
2798 2011-06-15 Richard Guenther <rguenther@suse.de>
2800 * expr.c (expand_expr_real_2): Reduce all integral types to
2802 (expand_expr_real_1): Likewise.
2804 2011-06-15 Martin Jambor <mjambor@suse.cz>
2806 PR tree-optimization/48613
2807 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
2808 ipa_node_params_vector is NULL.
2810 2011-06-15 Jakub Jelinek <jakub@redhat.com>
2813 * dwarf2out.c (dw_loc_list_node): Add force field.
2814 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
2815 location in the list, even if it is modified before first real insn.
2816 (output_loc_list): Emit empty ranges with force flag set.
2817 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
2819 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
2822 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
2823 (fence_to_rewind). Use it to notice when bookkeeping will be placed
2824 above a fence. Update comments.
2825 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
2826 placed just above it. Do not allow NULL place_to_insert.
2828 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
2830 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
2831 (slpeel_tree_peel_loop_to_edge): Don't call
2832 remove_dead_stmts_from_loop.
2833 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
2834 remove irrelevant pattern statements. For irrelevant statements
2835 check if it is the last statement of a detected pattern, use
2836 corresponding pattern statement instead.
2837 (destroy_loop_vec_info): No need to remove pattern statements,
2838 only free stmt_vec_info.
2839 (vect_transform_loop): For irrelevant statements check if it is
2840 the last statement of a detected pattern, use corresponding
2841 pattern statement instead.
2842 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
2843 pattern statements. Set basic block for the new statement.
2844 (vect_pattern_recog): Update documentation.
2845 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
2846 operands of pattern statements.
2847 (vectorizable_call): Fix printing. In case of a pattern statement
2848 use the lhs of the original statement when creating a dummy
2849 statement to replace the original call.
2850 (vect_analyze_stmt): For irrelevant statements check if it is
2851 the last statement of a detected pattern, use corresponding
2852 pattern statement instead.
2853 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
2854 statements use gsi of the original statement.
2856 2011-06-14 Joseph Myers <joseph@codesourcery.com>
2858 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
2859 common/common-target-def.h.
2860 * target.def (default_target_flags, handle_option,
2861 supports_split_stack, optimization_table, init_struct,
2862 except_unwind_info, unwind_tables_default, have_named_sections):
2863 Move to common/common-target.def.
2864 * target.h (enum opt_levels, struct default_options): Move to
2865 common/common-target.h.
2866 * targhooks.c (default_except_unwind_info,
2867 dwarf2_except_unwind_info, sjlj_except_unwind_info,
2868 default_target_handle_option, empty_optimization_table): Move to
2869 common/common-targhooks.c.
2870 * targhooks.h (default_except_unwind_info,
2871 dwarf2_except_unwind_info, sjlj_except_unwind_info,
2872 default_target_handle_option, empty_optimization_table): Move to
2873 common/common-targhooks.h.
2874 * common/common-target-def.h: Include common/common-targhooks.h.
2875 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
2877 * common/common-target.def (handle_option, option_init_struct,
2878 option_optimization_table, default_target_flags,
2879 except_unwind_info, supports_split_stack, unwind_tables_default,
2880 have_named_sections): Move from target.def.
2881 (HOOK_PREFIX): Undefine at end of file.
2882 * common/common-target.h: Include input.h.
2883 (enum opt_levels, struct default_options): Move from target.h.
2884 * common/common-targhooks.c, common/common-targhooks.h: New.
2885 * config.gcc (target_has_targetm_common): Default to yes.
2886 (moxie*): Set target_has_targetm_common=no.
2887 (hppa*-*-*): Don't set target_has_targetm_common=yes.
2888 * doc/tm.texi: Regenerate.
2889 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
2890 (C_TARGET_DEF_H): Add common/common-targhooks.h.
2891 (GCC_OBJS): Remove vec.o.
2892 (OBJS): Remove hooks.o and vec.o.
2893 (OBJS-libcommon-target): Add vec.o, hooks.o and
2894 common/common-targhooks.o.
2895 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
2896 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
2897 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
2898 cfglayout.o, $(out_object_file), $(common_out_object_file)):
2899 Update dependencies.
2900 (common/common-targhooks.o): New.
2901 * common/config/default-common.c: Include tm.h. Add FIXME comment.
2902 * common/config/pa/pa-common.c: Include more headers. Take
2903 copyright dates from pa.c.
2904 (pa_option_optimization_table, pa_handle_option,
2905 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
2906 TARGET_HANDLE_OPTION): Move from pa.c.
2907 * common/config/alpha/alpha-common.c,
2908 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
2909 common/config/bfin/bfin-common.c,
2910 common/config/cris/cris-common.c,
2911 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
2912 common/config/h8300/h8300-common.c,
2913 common/config/i386/i386-common.c,
2914 common/config/ia64/ia64-common.c,
2915 common/config/iq2000/iq2000-common.c,
2916 common/config/lm32/lm32-common.c,
2917 common/config/m32c/m32c-common.c,
2918 common/config/m32r/m32r-common.c,
2919 common/config/m68k/m68k-common.c,
2920 common/config/mcore/mcore-common.c,
2921 common/config/mep/mep-common.c,
2922 common/config/microblaze/microblaze-common.c,
2923 common/config/mips/mips-common.c,
2924 common/config/mmix/mmix-common.c,
2925 common/config/mn10300/mn10300-common.c,
2926 common/config/pdp11/pdp11-common.c,
2927 common/config/picochip/picochip-common.c,
2928 common/config/rs6000/rs6000-common.c,
2929 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
2930 common/config/score/score-common.c, common/config/sh/sh-common.c,
2931 common/config/sparc/sparc-common.c,
2932 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
2933 common/config/vax/vax-common.c,
2934 common/config/xstormy16/xstormy16-common.c,
2935 common/config/xtensa/xtensa-common.c: New.
2936 * config/alpha/alpha.c: Include common/common-target.h.
2937 (alpha_option_optimization_table, alpha_handle_option,
2938 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2939 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
2940 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
2941 * config/arm/arm.c (arm_option_optimization_table,
2942 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2943 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
2945 * config/avr/avr.c (avr_option_optimization_table,
2946 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
2948 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
2949 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
2950 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
2951 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
2952 * config/cris/cris.c (cris_option_optimization_table,
2953 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2954 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
2956 * config/fr30/fr30.c (fr30_option_optimization_table,
2957 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
2959 * config/frv/frv.c (frv_option_optimization_table,
2960 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
2961 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
2962 * config/h8300/h8300.c (h8300_option_optimization_table,
2963 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2964 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
2965 * config/i386/i386-protos.h (ix86_handle_option): Declare.
2966 * config/i386/i386.c: Include common/common-target.h.
2967 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
2968 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
2969 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
2970 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
2971 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
2972 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
2973 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
2974 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
2975 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
2976 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
2977 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
2978 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
2979 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
2980 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
2981 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
2982 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
2983 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
2984 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
2985 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
2986 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
2987 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
2988 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
2989 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
2990 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
2991 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
2992 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
2993 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
2994 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
2995 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
2996 ix86_option_optimization_table, ix86_option_init_struct,
2997 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
2998 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2999 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
3001 * config/i386/t-i386 (i386.o): Update dependencies.
3002 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
3003 * config/ia64/ia64.c (ia64_option_optimization_table,
3004 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
3005 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
3006 ia64_handle_option): Move to ia64-common.c.
3007 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
3008 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
3009 * config/lm32/lm32.c (lm32_option_optimization_table,
3010 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
3012 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
3014 * config/m32r/m32r.c (m32r_option_optimization_table,
3015 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
3016 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
3017 m32r_handle_option): Move to m32r-common.c.
3018 (m32r_memory_move_cost): Remove comment referring to
3019 TARGET_HANDLE_OPTION.
3020 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
3021 Move to m68k-common.c.
3022 * config/mcore/mcore.c (mcore_option_optimization_table,
3023 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
3024 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
3025 * config/mep/mep.c (mep_option_optimization_table,
3026 mep_handle_option, TARGET_HANDLE_OPTION,
3027 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
3028 Move to mep-common.c.
3029 * config/microblaze/microblaze.c
3030 (microblaze_option_optimization_table,
3031 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
3032 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
3033 * config/mips/mips.c (mips_handle_option,
3034 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
3035 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
3037 * config/mmix/mmix.c (mmix_option_optimization_table,
3038 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
3039 Move to mmix-common.c.
3040 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
3041 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
3042 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
3043 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
3044 * config/pa/pa.c: Include common/common-target.h.
3045 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
3046 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
3047 pa_handle_option): Move to pa-common.c.
3048 (pa_option_override): Use targetm_common.except_unwind_info.
3049 (pa_asm_output_mi_thunk, pa_function_section): Use
3050 targetm_common.have_named_sections.
3051 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
3052 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
3053 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
3054 pdp11_handle_option, pdp11_option_init_struct): Move to
3056 * config/picochip/picochip.c (picochip_option_optimization_table,
3057 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
3058 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
3059 * config/rs6000/rs6000.c: Include common/common-target.h.
3060 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
3061 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
3062 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
3063 rs6000_handle_option): Move to rs6000-common.c.
3064 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
3065 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
3066 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
3067 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
3068 * config/s390/s390.c (processor_flags_table,
3069 s390_option_optimization_table, s390_option_init_struct,
3070 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
3071 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
3072 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
3073 * config/s390/s390.h (processor_flags_table): Declare.
3074 * config/score/score.c (score_option_optimization_table,
3075 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
3076 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
3077 score_handle_option): Move to score-common.c.
3078 * config/sh/sh.c (sh_option_optimization_table,
3079 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
3080 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
3081 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
3082 * config/sparc/sparc.c: Include common/common-target.h.
3083 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
3084 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
3085 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
3086 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
3087 spu_option_init_struct): Move to spu-common.c.
3088 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
3089 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
3090 * config/v850/v850.c (small_memory_physical_max,
3091 v850_handle_memory_optionn v850_handle_option,
3092 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
3093 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
3095 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
3096 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
3097 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
3098 Move to xtensa-common.c.
3099 * cfglayout.c: Include common/common-target.h.
3100 (fixup_reorder_chain): Use targetm_common.have_named_sections.
3101 * cfgrtl.c: Include common/common-target.h.
3102 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
3103 targetm_common.have_named_sections.
3104 * dbxout.c: Include common/common-target.h.
3105 (dbxout_function_end): Use targetm_common.have_named_sections.
3106 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
3107 targetm_common.except_unwind_info.
3108 * dwarf2out.c: Include common/common-target.h.
3109 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
3110 dwarf2out_begin_prologue, dwarf2out_frame_init,
3111 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
3112 targetm_common.except_unwind_info.
3113 * except.c: Include common/common-target.h.
3114 (init_eh, finish_eh_generation,
3115 output_one_function_exception_table): Use
3116 targetm_common.except_unwind_info.
3117 (switch_to_exception_section): Use targetm_common.have_named_sections.
3118 * explow.c: Include common/common-target.h.
3119 * expr.c: Include common/common-target.h.
3120 (build_personality_function): Use targetm_common.except_unwind_info.
3121 * function.c: Include common/common-target.h.
3122 (expand_function_end): Use targetm_common.except_unwind_info.
3123 * haifa-sched.c: Include common/common-target.h.
3124 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
3125 * lto-opts.c: Include common/common-target.h instead of target.h.
3126 (lto_reissue_options): Use targetm_common.handle_option.
3127 * opts.c: Include common/common-target.h.
3128 (target_handle_option): Use targetm_common.handle_option.
3129 (init_options_struct): Update comment referring to
3130 targetm.target_option.optimization. Use
3131 targetm_common.default_target_flags,
3132 targetm_common.unwind_tables_default and
3133 targetm_common.option_init_struct.
3134 (default_options_optimization): Use
3135 targetm_common.option_optimization_table.
3136 (finish_options): Use targetm_common.except_unwind_info,
3137 targetm_common.unwind_tables_default,
3138 targetm_common.have_named_sections and
3139 targetm_common.supports_split_stack.
3140 * toplev.c: Include common/common-target.h.
3141 (process_options): Use targetm_common.have_named_sections.
3142 * tree-tailcall.c: Include common/common-target.h.
3143 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
3144 * tree.c: Include common/common-target.h.
3145 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
3146 * varasm.c: Include common/common-target.h.
3147 (resolve_unique_section, hot_function_section,
3148 default_function_section): Use targetm_common.have_named_sections.
3150 2011-06-14 Easwaran Raman <eraman@google.com>
3152 PR rtl-optimization/44194
3153 * dse.c: Include tree-flow.h
3154 (insn_info): Add new field non_frame_wild_read.
3155 (group_info): Add new fields escaped_n and escaped_p.
3156 (kill_on_calls): New variable.
3157 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
3158 (dse_step0): Initialize kill_on_calls.
3159 (can_escape): New function.
3160 (set_usage_bits): Add additional parameter; record information
3161 about escaped locations.
3162 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
3163 (dse_step2_nospill): Set kill_on_calls based on
3164 group->escaped_n and group->escaped_n.
3165 (add_wild_read): Refactor into...
3166 (reset_active_stores): ... New function, and
3167 (free_read_records): ... New function.
3168 (add_non_frame_wild_read): New function.
3169 (scan_insn): Call add_non_frame_wild_read on non-const calls.
3170 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
3171 (dse_step5_nospill): Call scan_reads_nospill for instructions
3172 marked as non_frame_wild_read.
3173 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
3175 2011-06-14 Joseph Myers <joseph@codesourcery.com>
3177 * common/common-target-def.h, common/common-target.def,
3178 common/common-target.h, common/config/default-common.c,
3179 common/config/pa/pa-common.c: New files.
3180 * Makefile.in (common_out_file, common_out_object_file,
3181 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
3182 (OBJS-libcommon-target): Include $(common_out_object_file).
3183 (prefix.o): Update dependencies.
3184 ($(common_out_object_file), common/common-target-hooks-def.h,
3185 s-common-target-hooks-def-h): New.
3186 (s-tm-texi): Also check timestamp on common-target.def.
3187 (build/genhooks.o): Update dependencies.
3188 * config.gcc (common_out_file, target_has_targetm_common): Define.
3189 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
3190 TARGET_ALWAYS_STRIP_DOTDOT.
3191 * configure.ac (common_out_object_file): Define.
3192 (common_out_file, common_out_object_file): Substitute.
3193 (common): Create directory.
3194 * configure: Regenerate.
3195 * doc/tm.texi.in (targetm_common): Document.
3196 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
3197 * doc/tm.texi: Regenerate.
3198 * genhooks.c (hook_array): Also include common/common-target.def.
3199 * prefix.c (tm.h): Don't include.
3200 (common/common-target.h): Include.
3201 (ALWAYS_STRIP_DOTDOT): Don't define.
3202 (update_path): Use targetm_common.always_strip_dotdot instead of
3203 ALWAYS_STRIP_DOTDOT.
3204 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
3206 2011-06-14 David Li <davidxl@google.com>
3208 * passes.c (execute_function_todo): Remove TODO_dump_func.
3209 (execute_one_pass): Remove TODO_dump_func.
3210 (execute_function_dump): New function.
3211 * tree-vrp.c: Remove TODO_dump_func.
3212 * regrename.c: Remove TODO_dump_func.
3213 * fwprop.c: Remove TODO_dump_func.
3214 * tree-into-ssa.c: Remove TODO_dump_func.
3215 * tree-complex.c: Remove TODO_dump_func.
3216 * tracer.c: Remove TODO_dump_func.
3217 * tree-loop-distribution.c: Remove TODO_dump_func.
3218 * postreload-gcse.c: Remove TODO_dump_func.
3219 * postreload.c: Remove TODO_dump_func.
3220 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
3221 * tree-tailcall.c: Remove TODO_dump_func.
3222 * ipa-cp.c: Remove TODO_dump_func.
3223 * final.c: Remove TODO_dump_func.
3224 * tree-emutls.c: Remove TODO_dump_func.
3225 * omp-low.c: Remove TODO_dump_func.
3226 * tree-ssa-dse.c: Remove TODO_dump_func.
3227 * tree-ssa-uncprop.c: Remove TODO_dump_func.
3228 * auto-inc-dec.c: Remove TODO_dump_func.
3229 * reorg.c: Remove TODO_dump_func.
3230 * tree-ssa-copyrename.c: Remove TODO_dump_func.
3231 * tree-ssa-ccp.c: Remove TODO_dump_func.
3232 * compare-elim.c: Remove TODO_dump_func.
3233 * mode-switching.c: Remove TODO_dump_func.
3234 * modulo-sched.c: Remove TODO_dump_func.
3235 * tree-call-cdce.c: Remove TODO_dump_func.
3236 * cse.c: Remove TODO_dump_func.
3237 * web.c: Remove TODO_dump_func.
3238 * tree-stdarg.c: Remove TODO_dump_func.
3239 * lto-streamer-out.c: Remove TODO_dump_func.
3240 * tree-ssa-math-opts.c: Remove TODO_dump_func.
3241 * tree-ssa-dom.c: Remove TODO_dump_func.
3242 * tree-nrv.c: Remove TODO_dump_func.
3243 * loop-init.c: Remove TODO_dump_func.
3244 * gimple-low.c: Remove TODO_dump_func.
3245 * ipa-inline.c: Remove TODO_dump_func.
3246 * tree-ssa-sink.c: Remove TODO_dump_func.
3247 * jump.c: Remove TODO_dump_func.
3248 * ifcvt.c: Remove TODO_dump_func.
3249 * tree-ssa-loop.c: Remove TODO_dump_func.
3250 * recog.c: Remove TODO_dump_func.
3251 * dse.c: Remove TODO_dump_func.
3252 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
3253 * matrix-reorg.c: Remove TODO_dump_func.
3254 * tree-eh.c: Remove TODO_dump_func.
3255 * regmove.c: Remove TODO_dump_func.
3256 * function.c: Remove TODO_dump_func.
3257 * tree-vectorizer.c: Remove TODO_dump_func.
3258 * ipa-split.c: Remove TODO_dump_func.
3259 * gcse.c: Remove TODO_dump_func.
3260 * tree-if-conv.c: Remove TODO_dump_func.
3261 * init-regs.c: Remove TODO_dump_func.
3262 * tree-ssa-phiopt.c: Remove TODO_dump_func.
3263 * implicit-zee.c: Remove TODO_dump_func.
3264 * lower-subreg.c: Remove TODO_dump_func.
3265 * bt-load.c: Remove TODO_dump_func.
3266 * tree-dfa.c: Remove TODO_dump_func.
3267 * except.c: Remove TODO_dump_func.
3268 * emit-rtl.c: Remove TODO_dump_func.
3269 * store-motion.c: Remove TODO_dump_func.
3270 * cfgexpand.c: Remove TODO_dump_func.
3271 * tree-cfgcleanup.c: Remove TODO_dump_func.
3272 * cfgcleanup.c: Remove TODO_dump_func.
3273 * tree-ssa-pre.c: Remove TODO_dump_func.
3274 * tree-sra.c: Remove TODO_dump_func.
3275 * tree-mudflap.c: Remove TODO_dump_func.
3276 * tree-ssa-copy.c: Remove TODO_dump_func.
3277 * cfglayout.c: Remove TODO_dump_func.
3278 * tree-ssa-forwprop.c: Remove TODO_dump_func.
3279 * tree-ssa-dce.c: Remove TODO_dump_func.
3280 * ira.c: Remove TODO_dump_func.
3281 * tree-ssa.c: Remove TODO_dump_func.
3282 * integrate.c: Remove TODO_dump_func.
3283 * tree-optimize.c: Remove TODO_dump_func.
3284 * tree-ssa-phiprop.c: Remove TODO_dump_func.
3285 * tree-object-size.c: Remove TODO_dump_func.
3286 * combine.c: Remove TODO_dump_func.
3287 * bb-reorder.c: Remove TODO_dump_func.
3288 * cprop.c: Remove TODO_dump_func.
3289 * var-tracking.c: Remove TODO_dump_func.
3290 * tree-profile.c: Remove TODO_dump_func.
3291 * tree-vect-generic.c: Remove TODO_dump_func.
3292 * reg-stack.c: Remove TODO_dump_func.
3293 * sched-rgn.c: Remove TODO_dump_func.
3294 * tree-ssa-structalias.c: Remove TODO_dump_func.
3295 * tree-switch-conversion.c: Remove TODO_dump_func.
3296 * tree-cfg.c: Remove TODO_dump_func.
3297 * tree-ssa-reassoc.c: Remove TODO_dump_func.
3298 * combine-stack-adj.c: Remove TODO_dump_func.
3299 * dce.c: Remove TODO_dump_func.
3300 * tree-ssanames.c: Remove TODO_dump_func.
3301 * regcprop.c: Remove TODO_dump_func.
3303 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
3306 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
3307 and properly handle result not in Pmode.
3309 2011-06-14 Robert Millan <rmh@gnu.org>
3311 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
3312 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
3315 * config/i386/kfreebsd-gnu64.h: New file.
3316 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
3317 with `i386/kfreebsd-gnu64.h'.
3319 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
3320 (GNU_USER_LINK_EMULATION64): New macros.
3321 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
3322 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
3323 of hardcoding `elf_i386' and `elf_x86_64'.
3325 2011-06-14 Nick Clifton <nickc@redhat.com>
3328 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
3331 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
3333 2011-06-14 Jakub Jelinek <jakub@redhat.com>
3336 * tree.h (DECL_NONSHAREABLE): Define.
3337 (struct tree_decl_common): Change decl_common_unused to
3338 decl_nonshareable_flag.
3339 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
3340 Ignore vars with DECL_NONSHAREABLE bit set.
3341 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
3342 on stores to automatic aggregate vars.
3344 PR rtl-optimization/49390
3346 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
3348 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
3351 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
3352 Tom de Vries <tom@codesourcery.com>
3355 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
3356 Document changed semantics.
3357 (max_stmt_executions, max_stmt_executions_int): Declare.
3358 * tree-data-ref.c (estimated_loop_iterations)
3359 (estimated_loop_iterations_int): Move functions...
3360 * tree-ssa-loop-niter.c (estimated_loop_iterations)
3361 (estimated_loop_iterations_int): here.
3362 (record_estimate): Change nb_iterations_upper_bound and
3363 nb_iterations_estimate semantics.
3364 (max_stmt_executions, max_stmt_executions_int): New function.
3365 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
3366 (max_stmt_executions_tree): this.
3367 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
3368 estimated_loop_iterations_tree.
3369 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
3370 max_stmt_executions_int instead of estimated_loop_iterations_int.
3371 * predict.c (predict_loops): Idem.
3372 * tree-parloops.c (parallelize_loops): Idem.
3373 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
3374 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
3375 (init_omega_for_ddr_1): Idem.
3376 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
3377 (loop_prefetch_arrays): Idem
3378 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
3379 max_stmt_executions instead of estimated_loop_iterations.
3380 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
3381 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
3382 instead of nb_iterations_upper_bound.
3384 2011-06-13 Jan Hubicka <jh@suse.cz>
3386 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
3388 2011-06-14 Richard Henderson <rth@redhat.com>
3391 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
3392 (based_loc_descr): Assert it's true.
3393 (compute_frame_pointer_to_fb_displacement): Set it, rather than
3394 aborting immediately.
3396 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
3397 Mingfeng Wu <mingfeng@faraday-tech.com>
3399 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
3401 2011-06-13 Jan Hubicka <jh@suse.cz>
3403 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
3405 2011-06-13 Jan Hubicka <jh@suse.cz>
3407 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
3408 similarly to DECL_COMDAT.
3409 * cgraphunit.c (cgraph_analyze_function): Likewise.
3410 * ipa.c (function_and_variable_visibility): Likewise.
3412 2011-06-13 Jan Hubicka <jh@suse.cz>
3414 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
3415 BINFO_VIRTUALS when streaming for ltrans unit.
3417 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
3419 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
3420 (movdi_internal64): Same.
3422 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
3425 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
3426 a set of similar patterns, where the MATCH_OPERAND for the function
3427 argument is replaced with individual references to hardware registers.
3428 (save_fpregs_<mode>): Ditto
3429 (restore_gpregs_<mode>): Ditto
3430 (return_and_restore_gpregs_<mode>): Ditto
3431 (return_and_restore_fpregs_<mode>): Ditto
3432 (return_and_restore_fpregs_aix_<mode>): Ditto
3434 2011-06-13 Jan Hubicka <jh@suse.cz>
3436 * ipa-utils.c (postorder_stack): New structure.
3437 (ipa_reverse_postorder): Handle aliases.
3439 2011-06-13 Jan Hubicka <jh@suse.cz>
3441 * ipa-inline.c (reset_edge_caches): Walk aliases.
3442 (update_caller_keys): Do not test inlinability of aliases.
3443 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
3444 (do_estimate_growth): Fix typo.
3446 2011-06-13 Jan Hubicka <jh@suse.cz>
3448 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
3449 (can_remove_node_now_p): ... here; handle same comdat groups.
3450 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
3451 (inline_call): Update use of can_remove_node_now_p.
3453 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
3455 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
3456 condition to disallow non-identical memory locations.
3457 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
3458 preference to bit manipulation instructions.
3460 2011-06-13 Jan Hubicka <jh@suse.cz>
3462 * cgraph.c (cgraph_for_node_thunks_and_aliases,
3463 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
3464 (nonremovable_p): New function.
3465 (cgraph_can_remove_if_no_direct_calls_p): New function.
3466 (used_from_object_file_p): New functoin.
3467 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
3468 references from aliases.
3469 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
3470 * ipa-inline.c (check_caller_edge): New function.
3471 (want_inline_function_called_once_p): Use it; accept aliases called
3473 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
3475 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3478 * config/arm/neon.md (vec_pack_trunc): Set the lengths
3479 correctly for the case with Quad vectors.
3481 2011-06-13 Jakub Jelinek <jakub@redhat.com>
3482 Ira Rosen <ira.rosen@linaro.org>
3484 PR tree-optimization/49352
3485 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
3486 all, make sure loop_use_stmt after the loop is a def stmt of a used
3487 SSA_NAME that is the only one defined inside of the loop. Don't
3488 check for COND_EXPR and GIMPLE_BINARY_RHS.
3489 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
3490 check_reduction is true.
3492 2011-06-11 Jan Hubicka <jh@suse.cz>
3495 * ipa.c (cgraph_externally_visible_p): Check resolution info.
3497 2011-06-11 Jan Hubicka <jh@suse.cz>
3500 * ipa-inline-transform.c: Include tree-pass.h
3501 (inline_transform): Set TODO_update_ssa_only_virtuals.
3502 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
3504 2011-06-11 Jan Hubicka <jh@suse.cz>
3507 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
3510 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
3512 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
3513 Take number of iterations to peel into account for equally frequent
3514 misalignment values.
3516 2011-06-11 Jan Hubicka <jh@suse.cz>
3518 * lto-streamer-out.c (produce_symtab): Stream out the newly
3519 represented aliases.
3521 2011-06-11 Jan Hubicka <jh@suse.cz>
3523 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
3525 (ipa_update_after_lto_read): Likewise.
3526 (ipa_write_node_info): Do not sream call_with_var_arguments.
3527 (ipa_read_node_info): Likewise.
3529 2011-06-11 Jan Hubicka <jh@suse.cz>
3531 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
3533 2011-06-11 Jan Hubicka <jh@suse.cz>
3535 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
3536 (lto_symtab_resolve_can_prevail_p): Likewise.
3537 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
3538 * cgraph.c (same_body_aliases_done): New global var.
3539 (cgraph_same_body_alias_1): Rename to ...
3540 (cgraph_create_function_alias): ... this one; reorg to new
3542 (cgraph_same_body_alias): Use cgraph_create_function_alias;
3543 record references when asked to.
3544 (cgraph_add_thunk): Fix formating.
3545 (cgraph_get_node): Kill same body alias code.
3546 (cgraph_node_for_asm): Likewise.
3547 (cgraph_remove_same_body_alias): Remove.
3548 (cgraph_remove_node): Kill same body alias code.
3549 (cgraph_mark_address_taken_node): Mark also the aliased function
3550 as having address taken.
3551 (dump_cgraph_node): Dump same body aliases.
3552 (cgraph_for_node_thunks_and_aliases): Update for new alias
3554 (cgraph_for_node_and_aliases): Likewise.
3555 * cgraph.h (same_body): Kll pointer.
3556 (same_body_alias): Update comment.
3557 (same_body_aliases_done): Declare.
3558 (cgraph_remove_same_body_alias): Remove declaration.
3559 (cgraph_create_function_alias): Declare.
3560 (cgraph_process_same_body_aliases): Declare.
3561 (cgraph_function_with_gimple_body_p): Check for alias.
3562 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
3563 (cgraph_alias_aliased_node): New function.
3564 (cgraph_function_node): Update for new aliases.
3565 (cgraph_function_or_thunk_node): Likewise.
3566 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
3567 (inline_call): Remove dead aliases.
3568 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
3569 name hack for same body aliases.
3570 (clone_of_p): Look through aliases.
3571 (verify_cgraph_node): Verify aliases.
3572 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
3573 (cgraph_process_same_body_aliases): New function.
3574 (process_function_and_variable_attributes): Disable weakref warning on
3576 (cgraph_analyze_functions): Handle aliases.
3577 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
3578 (assemble_thunks): Rename to ...
3579 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
3580 (cgraph_expand_function): Remove alias output code.
3581 (cgraph_output_in_order): Skip aliases.
3582 (cgraph_preserve_function_body_p): Aliases don't need preserving.
3583 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
3584 (ipa_record_reference): Do not assert on alias references.
3585 (ipa_ref_has_aliases_p): New function.
3586 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
3587 (ipa_ref_has_aliases_p): Declare.
3588 * lto-cgraph.c (lto_output_node): Handle aliases.
3589 (input_node): Likewise.
3590 * lto-streamer-out.c (lto_output): Skip aliases.
3591 (produce_symtab): Kill same_body_alias code.
3592 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
3593 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
3594 * ipa-inline.c (update_caller_keys): Walk aliases.
3595 (inline_small_functions): Fix thinko in previous patch.
3596 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
3597 (function_and_variable_visibility): Do not walk same body aliases.
3598 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
3599 (ipa_pta_execute): Use it.
3601 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
3603 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
3604 (*vec_dupv2df): Rename from vec_dupv2df.
3605 (vec_dupv2df): New expander.
3607 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
3609 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
3611 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
3613 * config/i386/i386.md: Use default value in "isa" attribute.
3614 * config/i386/sse.md: Ditto.
3615 * config/i386/mmx.md: Ditto.
3617 2011-06-10 Wei Guozhi <carrot@google.com>
3620 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
3621 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
3622 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
3624 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
3626 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
3627 (arm_legitimate_ldrd_p): New prototype.
3628 (arm_output_ldrd): New prototype.
3629 * config/arm/arm.c (arm_check_ldrd_operands): New function.
3630 (arm_legitimate_ldrd_p): New function.
3631 (arm_output_ldrd): New function.
3633 2011-06-10 David Li <davidxl@google.com>
3635 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
3636 * passes.c (passr_eq): New function.
3637 (create_pass_tab): New function.
3638 (pass_traverse): New function.
3639 (dump_one_pass): New function.
3640 (dump_pass_list): New function.
3641 (dump_passes): New function.
3643 2011-06-10 Jan Hubicka <jh@suse.cz>
3645 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
3646 setting the nothrow flag.
3647 * ipa-reference.c (propagate): Skip aliases.
3648 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
3649 (propagate_nothrow): Skip aliases; do not update cgraph.
3650 (local_pure_const): Do not update cgraph.
3651 * tree-profile.c (tree_profiling): Do fixup_cfg.
3653 2011-06-10 Jan Hubicka <jh@suse.cz>
3655 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
3656 (cgraph_local_node_p): ... here; handle aliases.
3657 (has_addr_references_p): Break out from ...;
3658 (cgraph_remove_unreachable_nodes) ... here.
3660 2011-06-10 Jan Hubicka <jh@suse.cz>
3662 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
3663 * common.opt (flag_inline_functions_called_once): Do not
3666 2011-06-10 Jan Hubicka <jh@suse.cz>
3668 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
3669 (ipcp_initialize_node_lattices): Do not deal with aliases;
3670 Do not try to propagate through thunks.
3671 (ipcp_change_tops_to_bottom): Do not deal with aliases.
3673 2011-06-10 Jan Hubicka <jh@suse.cz>
3675 * ipa-prop.c (ipa_write_node_info): Stream jump functions
3677 (ipa_read_node_info): Likewise.
3679 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3682 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
3683 (build_and_insert_call): Likewise.
3684 (build_and_insert_ref): New.
3685 (gimple_expand_builtin_pow): Minor cleanup.
3686 (gimple_expand_builtin_cabs): New.
3687 (execute_cse_sincos): Add case for BUILT_IN_CABS.
3689 2011-06-10 Jan Hubicka <jh@suse.cz>
3691 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
3692 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
3693 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
3694 (ipcp_propagate_stage): Skip aliases when propagating.
3695 (ipcp_need_redirect_p): Skip aliases.
3696 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
3697 collect_callers_of_node.
3698 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
3700 (ipa_compute_jump_functions): Look through aliases.
3702 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3704 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
3706 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
3708 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
3710 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
3712 2011-06-10 Jan Hubicka <jh@suse.cz>
3714 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
3715 Update call of gimple_get_virt_method_for_binfo.
3716 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
3717 refuse_thunks parameter.
3718 (gimple_fold_call): Update.
3719 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
3721 2011-06-10 Jan Hubicka <jh@suse.cz>
3723 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
3724 (not_all_callers_have_enough_arguments_p): ... this one; turn into
3725 worker for cgraph_for_node_and_aliases.
3726 (convert_callers_for_node): Break out from ...
3727 (convert_callers): ... here.
3728 (modify_function): Use collect_callers_of_node.
3729 (ipa_early_sra): Use cgraph_for_node_and_aliases.
3731 2011-06-10 Richard Guenther <rguenther@suse.de>
3733 PR tree-optimization/49361
3734 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
3735 when not already in gimple form.
3737 2011-06-10 Richard Guenther <rguenther@suse.de>
3740 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
3741 FOR_EACH_PHI_OR_STMT_USE.
3743 2011-06-10 Jan Hubicka <jh@suse.cz>
3745 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
3746 (clone_inlined_nodes): ... here.
3747 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
3748 to real destination prior inlining.
3749 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
3750 can_early_inline_edge_p, want_early_inline_function_p,
3751 want_early_inline_function_p, want_inline_small_function_p,
3752 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
3753 edge_badness, update_all_callee_keys, lookup_recursive_calls,
3754 add_new_edges_to_heap, inline_small_functions, flatten_function,
3755 inline_always_inline_functions, early_inline_small_functions): Use
3756 cgraph_function_or_thunk_node.
3757 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
3758 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
3759 (do_estimate_edge_growth_1): Break out from ...
3760 (do_estimate_growth) ... here; walk aliases.
3761 (inline_generate_summary): Skip aliases.
3763 2011-06-10 Richard Guenther <rguenther@suse.de>
3765 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
3766 forward when combining, visit inserted stmts when a stmt was changed.
3768 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
3770 * tree.h (error_operand_p): Add.
3771 * dbxout.c (dbxout_type_fields): Use the latter.
3772 * c-decl.c (add_stmt): Likewise.
3773 * gimplify.c (omp_add_variable, omp_notice_variable,
3774 gimplify_scan_omp_clauses): Likewise.
3776 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
3778 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
3779 when a value is actually passed in regs.
3781 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
3782 Laurent Rougé <laurent.rouge@menta.fr>
3784 * doc/invoke.texi (SPARC options): Add -mflat.
3785 * config/sparc/sparc.opt: Likewise.
3786 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
3787 (sparc_flat_expand_prologue): Declare.
3788 (sparc_flat_expand_epilogue): Likewise.
3789 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
3790 (CPP_ENDIAN_SPEC): Replace with...
3791 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
3792 (CPP_SPEC): Adjust to above change.
3793 (EXTRA_SPECS): Likewise.
3794 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
3795 (INCOMING_REGNO): Likewise.
3796 (OUTGOING_REGNO): Likewise.
3797 (LOCAL_REGNO): Likewise.
3798 (SETUP_FRAME_ADDRESSES): Likewise.
3799 (FIXED_REGISTERS): Set 0 for %fp.
3800 (CALL_USED_REGISTERS): Likewise.
3801 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
3802 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
3803 (RETURN_ADDR_REGNUM): Define.
3804 (RETURN_ADDR_RTX): Use it.
3805 (INCOMING_RETURN_ADDR_REGNUM): Define.
3806 (INCOMING_RETURN_ADDR_RTX): Use it.
3807 (DWARF_FRAME_RETURN_COLUMN): Likewise.
3808 (EH_RETURN_REGNUM): Define.
3809 (EH_RETURN_STACKADJ_RTX): Use it.
3810 (EH_RETURN_HANDLER_RTX): Delete.
3811 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
3812 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
3814 (struct machine_function): Add frame_size, apparent_frame_size,
3815 frame_base_reg, frame_base_offset, n_global_fp_regs and
3816 save_local_in_regs_p fields.
3817 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
3818 sparc_frame_base_offset, sparc_n_global_fp_regs,
3819 sparc_save_local_in_regs_p): New macros.
3820 (sparc_option_override): Error out if -fcall-saved-REG is specified
3822 (eligible_for_restore_insn): Fix formatting.
3823 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
3824 (eligible_for_sibcall_delay): Likewise.
3825 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
3826 (sparc_legitimate_address_p): Adjust to above change.
3827 (save_global_or_fp_reg_p): New predicate.
3828 (return_addr_reg_needed_p): Likewise.
3829 (save_local_or_in_reg_p): Likewise.
3830 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
3831 (SORR_SAVE, SORR_RESTORE): Delete.
3832 (sorr_pred_t): New typedef.
3833 (sorr_act_t): New enum.
3834 (save_or_restore_regs): Rename to...
3835 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
3836 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
3837 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
3838 mechanism. Add CFI information for double-word saves in 32-bit mode.
3839 (emit_adjust_base_to_offset): New function extracted from...
3840 (emit_save_or_restore_regs): ...this. Rename the rest to...
3841 (emit_save_or_restore_regs_global_fp_regs): ...this.
3842 (emit_save_or_restore_regs_local_in_regs): New function.
3843 (gen_create_flat_frame_[123]): New functions.
3844 (sparc_expand_prologue): Use SIZE local variable. Adjust.
3845 (sparc_flat_expand_prologue): New function.
3846 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
3847 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
3848 (sparc_flat_expand_epilogue): New function.
3849 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
3850 (output_return): Likewise.
3851 (output_sibcall): Likewise.
3852 (sparc_output_mi_thunk): Likewise.
3853 (sparc_frame_pointer_required): Likewise.
3854 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
3855 function optimization.
3856 * config/sparc/sparc.md (flat): New attribute.
3857 (prologue): Add TARGET_FLAT handling.
3858 (save_register_window): Disable if TARGET_FLAT.
3859 (create_flat_frame_[123]): New patterns.
3860 (epilogue): Add TARGET_FLAT handling.
3861 (sibcall_epilogue): Likewise.
3862 (eh_return): New expander.
3863 (eh_return_internal): New insn and splitter.
3864 (return_internal): Add TARGET_FLAT handling.
3865 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
3866 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
3867 (nonlocal_goto): Add TARGET_FLAT handling.
3868 * config/sparc/t-elf: Add -mflat multilib.
3869 * config/sparc/t-leon: Likewise.
3871 2011-06-10 Jan Hubicka <jh@suse.cz>
3873 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
3874 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
3875 (self_recursive_p): Use cgraph_function_node.
3876 (propagate_pure_const): Likewise.
3877 (propagate_nothrow): Likewise.
3878 * ipa-reference.c (ipa_reference_get_not_read_global): Use
3879 cgraph_function_node.
3880 (propagate_bits): Likewise.
3881 (propagate): Likewise.
3883 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3884 Richard Earnshaw <rearnsha@arm.com>
3886 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
3887 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
3888 (*thumb2_movdi_vfp): Delete.
3889 (*arm_movdi_vfp_cortexa8): Delete.
3890 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
3891 (*movdi_vfp_cortexa8): Likewise.
3893 2011-06-10 Richard Guenther <rguenther@suse.de>
3895 * stor-layout.c (initialize_sizetypes): Give names to all
3898 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
3900 PR tree-optimization/49318
3901 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
3902 irrelevant pattern statements.
3904 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
3906 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
3909 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
3912 2011-06-09 Jan Hubicka <jh@suse.cz>
3914 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
3915 do not recompute reachable flag.
3916 (cgraph_finalize_function, cgraph_analyze_functions): Set
3917 redefined_extern_inline here.
3919 2011-06-09 Jan Hubicka <jh@suse.cz>
3921 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
3922 (cgraph_only_called_directly_p): ... this one; bring offline.
3923 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
3924 varpool_used_from_object_file_p): Drop names from the declaratoin.
3925 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
3926 collect_callers_of_node): New.
3927 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
3928 (cgraph_edge_recursive_p): Use cgraph_function_node.
3929 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
3930 (cgraph_node_cannot_be_local_p_1): Break out from ...
3931 (cgraph_node_can_be_local_p): ... here; walk aliases.
3932 (cgraph_for_node_thunks_and_aliases): New function.
3933 (cgraph_for_node_and_aliases): New function.
3934 (cgraph_make_node_local_1): Break out from ...
3935 (cgraph_make_node_local) ... here; use
3936 cgraph_for_node_thunks_and_aliases.
3937 (cgraph_set_nothrow_flag_1): Break out from ...
3938 (cgraph_set_nothrow_flag) ... here;
3939 use cgraph_for_node_thunks_and_aliases.
3940 (cgraph_set_const_flag_1): Break out from ...
3941 (cgraph_set_const_flag) ... here;
3942 use cgraph_for_node_thunks_and_aliases.
3943 (cgraph_set_pure_flag_1): Break out from ...
3944 (cgraph_set_pure_flag) ... here;
3945 use cgraph_for_node_thunks_and_aliases.
3946 (cgraph_propagate_frequency_1): Break out from ...
3947 (cgraph_propagate_frequency) ... here; use
3948 cgraph_for_node_thunks_and_aliases.
3949 (cgraph_used_from_object_file_p): Do not care about aliases.
3950 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
3952 (collect_callers_of_node_1, collect_callers_of_node): New functions.
3954 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
3956 PR rtl-optimization/49154
3957 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
3958 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
3959 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
3960 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
3961 * config/cris/cris.h (cris_register_move_cost): Remove
3962 !TARGET_V32 code. Tweak comments.
3964 2011-06-09 Jan Hubicka <jh@suse.cz>
3966 * cgraphbuild.c (record_eh_tables): Mark personality function as having
3969 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
3971 PR rtl-optimization/49154
3972 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
3973 is a matching slot in the hashtable, assign it to classes_ptr.
3975 PR rtl-optimization/49154
3976 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
3978 * doc/tm.texi: Regenerate.
3980 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
3983 * config/sh/sh.md (UNSPEC_CHKADD): New.
3984 (chk_guard_add): New define_insn_and_split.
3985 (symGOT_load): Use chk_guard_add instead of blockage.
3987 2011-06-09 Kai Tietz <ktietz@redhat.com>
3989 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
3991 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
3993 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
3995 2011-06-09 Wei Guozhi <carrot@google.com>
3998 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
3999 (peephole2 for conditional move): Generate 16 bit instructions.
4001 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
4003 * config/i386/i386.md (*movdi_internal_rex64): Merge
4004 alternatives 6 and 8.
4006 2011-06-09 David Li <davidxl@google.com>
4008 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
4009 * passes.c (passr_eq): New function.
4010 (create_pass_tab): New function.
4011 (pass_traverse): New function.
4012 (dump_one_pass): New function.
4013 (dump_pass_list): New function.
4014 (dump_passes): New function.
4016 2011-06-09 David Li <davidxl@google.com>
4018 * tree-complex.c (tree_lower_complex): Gate cleanup.
4019 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
4020 (execute_optimize_stdarg): Ditto.
4021 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
4022 (execute_cleanup_eh_1): Ditto.
4023 (execute_cleanup_eh): Ditto.
4024 * gcse.c (gate_rtl_pre): Ditto.
4025 (execute_rtl_pre): Ditto.
4026 * except.c (finish_eh_generation): Ditto.
4027 (convert_to_eh_region_ranges): Ditto.
4028 * cprop.c (one_cprop_pass): Ditto.
4030 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
4033 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
4034 in all basic blocks.
4036 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4038 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
4039 (HAVE_ENABLE_EXECUTE_STACK): Define.
4040 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
4041 (HAVE_ENABLE_EXECUTE_STACK): Define.
4042 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
4043 (HAVE_ENABLE_EXECUTE_STACK): Define.
4044 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
4045 (ENABLE_EXECUTE_STACK): Remove.
4046 (HAVE_ENABLE_EXECUTE_STACK): Define.
4047 [IN_LIBGCC2]: Don't include <windows.h>.
4048 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
4049 (HAVE_ENABLE_EXECUTE_STACK): Define.
4050 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
4051 (HAVE_ENABLE_EXECUTE_STACK): Define.
4052 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
4053 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
4054 (HAVE_ENABLE_EXECUTE_STACK): Define.
4055 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
4056 (HAVE_ENABLE_EXECUTE_STACK): Define.
4057 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
4058 (HAVE_ENABLE_EXECUTE_STACK): Define.
4059 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
4060 (HAVE_ENABLE_EXECUTE_STACK): Define.
4061 * config/alpha/alpha.c (alpha_trampoline_init): Test
4062 HAVE_ENABLE_EXECUTE_STACK.
4063 * config/i386/i386.c (ix86_trampoline_init): Likewise.
4064 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4065 (sparc64_initialize_trampoline): Likewise.
4066 * libgcc2.c [L_enable_execute_stack]: Remove.
4067 * system.h (ENABLE_EXECUTE_STACK): Poison.
4068 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
4069 * doc/tm.texi: Regenerate.
4070 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
4072 2011-06-09 Jakub Jelinek <jakub@redhat.com>
4075 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
4076 variable. After resetting and rescanning insn continue with previous
4079 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4081 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
4082 (gcc_cv_ld_hidden): Likewise.
4083 * configure: Regenerate.
4084 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
4085 (ix86_stack_protect_fail): Mark unused.
4086 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
4087 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
4088 [TARGET_MACHO]: Don't define.
4089 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
4090 (TARGET_STACK_PROTECT_FAIL): Likewise.
4091 (rs6000_stack_protect_fail): Mark unused.
4092 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
4093 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
4095 2011-06-08 Andi Kleen <ak@linux.intel.com>
4097 * varasm.c (get_section): Print location of other conflict
4098 for section conflicts.
4100 2011-06-08 Andi Kleen <ak@linux.intel.com>
4102 * config/i386/driver-i386.c (host_detect_local_cpu):
4103 Add model 0x2d Intel CPU.
4105 2011-06-08 Andi Kleen <ak@linux.intel.com>
4107 * reginfo.c (global_regs_decl): Add.
4108 (globalize_reg): Add decl parameter. Compute location. Pass location
4109 to warnings and add inform. Store decl in global_regs_decl.
4110 * rtl.h (globalize_reg): Update prototype.
4111 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
4113 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
4115 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
4117 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
4120 * config/sh/predicates.md (general_movsrc_operand): Check
4121 mode for memory with indexed address for QI and HImode.
4122 (general_movdst_operand): Likewise.
4124 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
4126 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
4128 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
4130 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
4131 (num_ssa_operands): Likewise.
4132 (op_iter_init_phiuse): Forward-declare.
4133 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
4135 2011-06-08 Nick Clifton <nickc@redhat.com>
4137 * doc/invoke.texi (ARM Options): Update description of
4140 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
4142 * config/i386/driver-i386.c (host_detect_local_cpu): Support
4143 unknown Intel family 0x6 CPUs.
4145 2011-06-08 Martin Jambor <mjambor@suse.cz>
4147 * tree-sra.c (mark_rw_status): Removed.
4148 (analyze_access_subtree): New parameter parent instead of
4149 mark_read and mark_write, propagate from that.
4151 2011-06-08 Julian Brown <julian@codesourcery.com>
4153 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
4154 for double-precision helper functions in hard-float mode if only
4155 single-precision arithmetic is supported in hardware.
4157 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
4159 PR rtl-optimization/49303
4160 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
4161 code_motion_path_driver returned 0 or 1.
4162 (sel_region_finish): Clear h_d_i_d.
4164 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
4166 * config/sh/sh.c (prepare_move_operands): Set pic register
4167 appropriately for global and local dynamic tls models even
4168 if flag_pic is unset.
4170 2011-06-07 Jason Merrill <jason@redhat.com>
4172 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
4174 2011-06-07 Xinliang David Li <davidxl@google.com>
4175 * passes.c (enable_disable_pass): Handle assembler name.
4176 (is_pass_explicitly_enabled_or_disabled): Ditto.
4178 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4180 PR tree-optimization/48497
4181 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
4183 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4185 PR tree-optimization/46728
4186 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
4187 to use gimple_val_nonnegative_real_p.
4188 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
4189 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
4191 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
4193 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
4195 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
4197 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
4200 2011-06-07 Richard Guenther <rguenther@suse.de>
4202 * stor-layout.c (initialize_sizetypes): Initialize all
4203 sizetypes based on target definitions.
4204 (set_sizetype): Remove.
4205 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
4206 * tree.h (set_sizetype): Remove.
4208 2011-06-07 Nick Clifton <nickc@redhat.com>
4210 * config.gcc: Unify V850 architecture options and add support for
4211 newer V850 architectures.
4212 * config/v850/t-v850e: Delete.
4214 2011-06-07 Richard Guenther <rguenther@suse.de>
4216 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
4217 Call set_sizetype from here.
4219 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
4221 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
4222 (*maddhisi4tb, *maddhisi4tt): New define_insns.
4224 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
4225 Andrew Stubbs <ams@codesourcery.com>
4227 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
4229 * doc/md.texi (Canonicalization of Instructions): Document widening
4230 multiply canonicalization.
4232 2011-06-07 Jakub Jelinek <jakub@redhat.com>
4234 PR gcov-profile/49299
4235 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
4237 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
4239 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
4241 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
4242 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
4243 vect_recog_pow_pattern): Likewise.
4244 (vect_pattern_recog_1): Remove declaration.
4245 (widened_name_p): Remove declaration. Add new argument to specify
4246 whether to check that both types are either signed or unsigned.
4247 (vect_recog_widen_mult_pattern): Update documentation. Handle
4248 unsigned patterns and multiplication by constants.
4249 (vect_pattern_recog_1): Update vect_recog_func references. Use
4250 statement information from the statement returned from pattern
4251 detection functions.
4252 (vect_pattern_recog): Update vect_recog_func reference.
4253 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
4254 multiplication by a constant use the type of the other operand.
4256 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
4258 PR rtl-optimization/49145
4259 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
4261 2011-06-06 Jakub Jelinek <jakub@redhat.com>
4264 * dwarf2out.c (native_encode_initializer): Decrement count in each
4268 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
4272 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
4273 if stmt folded into nothing.
4274 * tree-inline.c (fold_marked_statements): If a builtin at the end of
4275 a bb folded into nothing, just update cgraph edges and move to next bb.
4276 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
4277 to be NULL. Don't compute count and frequency if new_call is NULL.
4279 2011-06-04 Diego Novillo <dnovillo@google.com>
4281 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
4282 (cgraph.o): Likewise.
4283 (cgraphunit.o): Likewise.
4284 * cgraphunit.c: Include lto-streamer.h
4285 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
4287 * lto-streamer-in.c (unpack_value_fields): Call
4288 streamer_hooks.unpack_value_fields if set.
4289 (lto_materialize_tree): For unhandled nodes, first try to
4290 call lto_streamer_hooks.alloc_tree, if it exists.
4291 (lto_input_ts_decl_common_tree_pointers): Move reading of
4292 DECL_INITIAL to lto_streamer_read_tree.
4293 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
4294 (lto_streamer_read_tree): New.
4295 (lto_reader_init): Rename from lto_init_reader.
4296 Move initialization code to lto/lto.c.
4297 * lto-streamer-out.c (pack_value_fields): Call
4298 streamer_hooks.pack_value_fields if set.
4299 (lto_output_tree_ref): For tree nodes that are not normally indexable,
4300 call streamer_hooks.indexable_with_decls_p before giving up.
4301 (lto_output_ts_decl_common_tree_pointers): Move handling
4302 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
4303 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
4304 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
4305 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
4306 (lto_streamer_write_tree): New.
4307 (lto_output): Call lto_streamer_init directly.
4308 (lto_writer_init): Remove.
4309 * lto-streamer.c (streamer_hooks): New.
4310 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
4311 instead of lto_preload_common_nodes.
4312 (lto_is_streamable): Move from lto-streamer.h
4313 (lto_streamer_hooks_init): New.
4314 (streamer_hooks): New.
4315 (streamer_hooks_init): New.
4316 * lto-streamer.h (struct output_block): Forward declare.
4317 (struct lto_input_block): Likewise.
4318 (struct data_in): Likewise.
4319 (struct bitpack_d): Likewise.
4320 (struct streamer_hooks): Declare.
4321 (streamer_hooks): Declare.
4322 (lto_streamer_hooks_init): Declare.
4323 (lto_streamer_write_tree): Declare.
4324 (lto_streamer_read_tree): Declare.
4325 (streamer_hooks_init): Declare.
4326 (lto_is_streamable): Move to lto-streamer.c
4328 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4330 * longlong.h (smul_ppmm): The resulting register pair contains the
4331 higher order word first.
4333 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4335 PR tree-optimization/46728
4336 * builtins.c (powi_table): Remove.
4337 (powi_lookup_cost): Remove.
4338 (powi_cost): Remove.
4339 (expand_powi_1): Remove.
4340 (expand_powi): Remove.
4341 (expand_builtin_pow_root): Remove.
4342 (expand_builtin_pow): Remove.
4343 (expand_builtin_powi): Eliminate handling of constant exponent.
4344 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
4346 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
4348 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
4350 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
4352 * dce.c (reset_unmarked_insns_debug_uses): New.
4353 (delete_unmarked_insns): Skip debug insns.
4354 (prescan_insns_for_dce): Likewise.
4355 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
4356 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
4357 active reg can be found.
4358 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
4359 (convert_regs_1): Use it.
4361 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
4363 * tree-pretty-print.c (dump_function_header): Add flags.
4364 Don't dump decl_uid with nouid.
4365 * tree-pretty-print.h (dump_function_header): Adjust.
4366 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
4367 * passes.c (pass_init_dump_file): Pass dump_flags on.
4368 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
4370 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
4373 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
4375 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
4377 PR tree-optimization/49243
4378 * calls.c (setjmp_call_p): Also check if fndecl has the
4379 returns_twice attribute.
4381 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4383 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
4386 2011-06-06 Richard Henderson <rth@redhat.com>
4387 Georg-Johann Lay <avr@gjlay.de>
4390 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
4392 * config/avr/avr.md ("insv"): New insn expander.
4393 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
4394 "*insv.not.io", "*insv.reg"): New insns.
4396 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
4399 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
4400 to nonimmediate_operand from memory_operand for the operand that is to
4401 be forced to memory by the expander. Lose the constraints.
4403 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
4405 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
4406 EH return when delayed branches are disabled.
4408 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
4410 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
4411 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
4413 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
4414 Simplify MODE_V1DF and MODE_V2SF handling.
4415 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
4416 Simplify MODE_SF handling.
4418 2011-06-04 Jan Hubicka <jh@suse.cz>
4420 PR tree-optimization/48893
4421 PR tree-optimization/49091
4422 PR tree-optimization/49179
4423 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
4426 2011-06-04 Jan Hubicka <jh@suse.cz>
4429 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
4432 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
4434 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
4436 2011-06-04 Jakub Jelinek <jakub@redhat.com>
4439 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
4440 to be strictly smaller than 1 << shiftcount.
4442 2011-06-04 Jan Hubicka <jh@suse.cz>
4444 PR tree-optimize/48929
4445 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
4448 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
4451 * calls.c (emit_call_1): Prefer the __builtin declaration of
4454 2011-06-03 Diego Novillo <dnovillo@google.com>
4456 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
4457 (lto_input_tree_pointers): Likewise.
4458 * lto-streamer-out.c (pack_value_fields): Likewise.
4459 (lto_output_tree_pointers): Likewise.
4460 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
4461 and OPTIMIZATION_NODE.
4463 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4465 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
4466 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
4467 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
4468 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
4469 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
4470 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
4471 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
4472 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
4473 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
4474 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
4475 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
4476 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
4477 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
4478 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
4479 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
4480 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
4481 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
4482 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
4483 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
4484 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
4485 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
4486 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
4487 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
4488 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
4489 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
4490 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
4491 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
4492 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
4493 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
4494 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
4495 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
4496 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
4497 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
4498 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
4499 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
4500 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
4501 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
4502 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
4503 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
4504 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
4505 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
4506 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
4507 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
4508 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
4509 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
4510 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
4511 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
4512 * system.h (MD_UNWIND_SUPPORT): Poison.
4513 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
4514 * doc/tm.texi: Regenerate.
4515 * unwind-dw2.c: Include md-unwind-support.h instead of
4517 * config/ia64/unwind-ia64.c: Likewise.
4518 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
4520 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
4522 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
4524 2011-06-03 Richard Henderson <rth@redhat.com>
4525 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4527 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
4528 (sigill_hdlr): Correct insn, insn size.
4529 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
4531 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4533 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
4535 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
4536 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
4537 * config/mips/t-iris: Remove.
4538 * config/mips/t-irix6: New file.
4539 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
4541 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4543 * Makefile.in (LIB2ADDEHDEP): Remove.
4544 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
4545 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
4546 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
4547 * config/t-darwin (LIB2ADDEHDEP): Remove.
4548 * config/t-freebsd (LIB2ADDEHDEP): Remove.
4549 * config/t-linux (LIB2ADDEHDEP): Remove.
4551 2011-06-03 Diego Novillo <dnovillo@google.com>
4553 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
4554 (lto_register_var_decl_in_symtab): Likewise.
4555 (lto_register_function_decl_in_symtab): Likewise.
4556 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
4557 logic to uniquify_nodes.
4559 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4561 * config/alpha/t-osf5: Remove.
4562 * config/alpha/t-osf-pthread: Remove.
4563 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
4564 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
4566 2011-06-03 Julian Brown <julian@codesourcery.com>
4568 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
4569 (strongarm1110): Use strongarm tuning.
4570 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
4571 * config/arm/arm.c (arm_strongarm_tune): New.
4572 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
4573 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
4574 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
4575 setting, using previous defaults or 1 for Cortex-A5.
4576 (arm_option_override): Set max_insns_skipped from current tuning.
4578 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
4580 * doc/install.texi (Options specification): Document --with-specs.
4582 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4584 * config/arm/neon.md (orndi3_neon): Actually split it.
4586 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
4588 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
4589 * var-tracking.c (reverse_op): Limite recurse depth to 5.
4591 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
4594 * target.def (delay_sched2, delay_vartrack): New.
4595 * doc/tm.texi.in: Update.
4596 * doc/tm.texi: Rebuild.
4597 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
4598 * var-tracking.c (gate_handle_var_tracking): Likewise.
4599 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
4600 (bfin_flag_var_tracking): Drop.
4601 (output_file_start): Don't save and override flag_var_tracking.
4602 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
4603 (bfin_reorg): Test original variables.
4604 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
4605 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
4606 (ia64_flag_var_tracking): Drop.
4607 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
4608 (ia64_file_start): Don't save and override flag_var_tracking.
4609 (ia64_override_options_after_change): Ditto
4610 flag_schedule_insns_after_reload.
4611 (ia64_reorg): Test original variables.
4612 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
4613 (picochip_flag_var_tracking): Drop.
4614 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
4615 (picochip_option_override): Don't save and override
4616 flag_schedule_insns_after_reload.
4617 (picochip_asm_file_start): Ditto flag_var_tracking.
4618 (picochip_reorg): Test original variables.
4619 * config/spu/spu.c (spu_flag_var_tracking): Drop.
4620 (TARGET_DELAY_VARTRACK): Define.
4621 (spu_var_tracking): New.
4622 (spu_machine_dependent_reorg): Call it.
4623 (asm_file_start): Don't save and override flag_var_tracking.
4625 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
4628 * config/sh/predicates.md (general_movsrc_operand): Return 0
4629 for memory and memory subreg of which address is an invalid
4630 indexed address for QI and HImode.
4631 (general_movdst_operand): Likewise.
4633 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
4635 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
4636 edges only, when there is a non-local label in the function.
4637 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
4639 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
4641 * config/i386/constraints.md (Y3): New register constraint.
4642 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
4643 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
4644 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
4645 *sse2_interleave_lowv2df.
4647 2011-06-02 Julian Brown <julian@codesourcery.com>
4649 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
4650 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
4651 (arm_cortex_a5_tune): New.
4653 2011-06-02 Julian Brown <julian@codesourcery.com>
4655 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
4656 * config/arm/arm.c (arm_default_branch_cost): New.
4657 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
4658 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
4659 (arm_fa726_tune): Set branch_cost field using
4660 arm_default_branch_cost.
4661 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
4662 current_tune structure.
4663 * dojump.c (tm_p.h): Include file.
4665 2011-06-02 Julian Brown <julian@codesourcery.com>
4667 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
4669 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
4670 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
4671 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
4673 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
4674 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
4675 (arm_fa726te_tune): Add prefer_constant_pool setting.
4676 (arm_v6t2_tune, arm_cortex_tune): New.
4677 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
4678 prefer_constant_pool setting.
4680 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
4682 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
4684 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
4685 (*movdf_internal) <case 6,7,8>: Ditto.
4687 * config/i386/constraints.md (Y4): New register constraint.
4688 * config/i386/sse.md (vec_set<mode>_0): Merge with
4689 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
4690 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
4691 *vec_extractv2di_1_sse.
4692 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
4693 and *vec_concatv2di_rex64_sse.
4695 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
4698 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
4699 of cgraph_local_info for null before attempting to use it.
4701 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
4703 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
4704 (current_function_dynamic_alloc_count): Delete.
4705 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
4706 (expand_builtin_nonlocal_goto): Remove obsolete comment.
4707 (expand_builtin_update_setjmp_buf): Remove dead code.
4708 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
4709 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
4711 * function.c (instantiate_virtual_regs): Likewise.
4712 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
4713 for a block with a single abnormal incoming edge.
4714 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
4715 (SETJMP_VIA_SAVE_AREA): Delete.
4716 * config/sparc/sparc-protos.h (load_got_register): Declare.
4717 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
4718 (load_got_register): Make global.
4719 (sparc_frame_pointer_required): Add 'static'.
4720 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
4721 (sparc_builtin_setjmp_frame_value): New function.
4722 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
4723 (save_stack_nonlocal): New expander.
4724 (restore_stack_nonlocal): Likewise.
4725 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
4726 (nonlocal_goto_internal): New insn.
4727 (goto_handler_and_restore): Delete.
4728 (builtin_setjmp_setup): Likewise.
4729 (do_builtin_setjmp_setup): Likewise.
4731 (builtin_setjmp_receiver): New expander.
4733 2011-06-01 David Li <davidxl@google.com>
4736 * tree-pretty-print.c (dump_function_header): Format cleanup.
4738 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
4741 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
4742 needed when original operands are used for msw_skip comparison.
4744 2011-06-01 Jakub Jelinek <jakub@redhat.com>
4747 * var-tracking.c (add_uses, add_stores): Don't call
4748 cselib_subst_to_values on ENTRY_VALUE.
4750 2011-06-01 Diego Novillo <dnovillo@google.com>
4752 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
4753 output_record_start with LTO_null instead of output_zero.
4754 (lto_output_ts_binfo_tree_pointers): Likewise.
4755 (lto_output_tree): Likewise.
4756 (output_eh_try_list): Likewise.
4757 (output_eh_region): Likewise.
4758 (output_eh_lp): Likewise.
4759 (output_eh_regions): Likewise.
4760 (output_bb): Likewise.
4761 (output_function): Likewise.
4762 (output_unreferenced_globals): Likewise.
4763 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
4764 instead of NUM_TREE_CODES.
4765 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
4766 (lto_output_int_in_range): Change << to >> when shifting VAL.
4768 2011-06-01 Diego Novillo <dnovillo@google.com>
4770 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
4771 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
4773 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
4776 * optabs.h (valid_multiword_target_p): Declare.
4777 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
4778 doing multi-word operations.
4779 * optabs.c (expand_binop): Likewise.
4780 (expand_doubleword_bswap): Likewise.
4781 (expand_absneg_bit): Likewise.
4782 (expand_unop): Likewise.
4783 (expand_copysign_bit): Likewise.
4784 (multiword_target_p): New function.
4786 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
4788 PR rtl-optimization/48830
4789 PR rtl-optimization/48808
4790 PR rtl-optimization/48792
4791 * reload.c (push_reload): Check contains_reg_of_mode.
4792 * reload1.c (strip_paradoxical_subreg): New function.
4793 (gen_reload_chain_without_interm_reg_p): Use it to handle
4794 paradoxical subregs.
4795 (emit_output_reload_insns, gen_reload): Likewise.
4797 2011-06-01 David Li <davidxl@google.com>
4799 * predict.c : Change pass name
4802 * tree-profile.c: Ditto.
4805 2011-06-01 David Li <davidxl@google.com>
4807 * tree-pretty-print.c (dump_function_header): New function.
4808 * final.c (rest_of_clean_state): Use header dumper.
4809 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
4810 * passes.c (pass_init_dump_file): Use header dumper.
4812 2011-06-01 Jakub Jelinek <jakub@redhat.com>
4814 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
4815 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
4816 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
4818 (mem_loc_descriptor): Use them.
4820 * var-tracking.c (create_entry_value): New function.
4821 (vt_add_function_parameter): Use it.
4823 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4825 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
4826 Include <signal.h>, <ucontext.h>.
4827 (sigill_caught): Define.
4828 (sigill_hdlr): New function.
4829 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
4830 insns can be executed.
4831 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
4832 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
4834 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4836 * config/t-slibgcc-darwin: Move to ...
4837 * config/t-slibgcc-dummy: ... this. Clarify comments.
4838 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
4839 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
4840 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
4841 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
4842 Remove i386/t-crtstuff from tmake_file.
4843 (i[34567]86-*-solaris2*): Remove t-svr4,
4844 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
4846 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
4847 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
4848 sparc/t-crtfm from tmake_file.
4849 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
4850 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
4852 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
4853 * config/i386/t-nwld (SHLIB_LINK): Remove.
4854 * config/i386/t-rtems-i386: Rename to ...
4855 * config/i386/t-rtems: ... this.
4856 ($(T)crti.o, $(T)crtn.o): Remove.
4857 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
4858 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
4859 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
4860 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
4861 EXTRA_MULTILIB_PARTS): Remove.
4862 * config/sparc/t-sol2-64: Likewise.
4863 * config/sparc/t-sol2: Remove.
4864 * config/sparc/t-crtin: Remove.
4865 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
4866 * config/i386/gmon-sol2.c: Remove.
4867 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
4868 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
4869 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
4870 * config/i386/sol2-gc1.asm: Remove.
4871 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
4872 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
4873 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
4874 * config/t-slibgcc-sld: Remove.
4876 2011-06-01 Jakub Jelinek <jakub@redhat.com>
4878 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
4879 base_type_for_mode with op_mode instead of mode.
4881 2011-06-01 Paul Brook <paul@cpodesourcery.com>
4883 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
4885 * config/arm/arm-tune.md: Regenerate.
4886 * config/arm/arm-tables.opt: Regenerate.
4887 * config/arm/arm.c (FL_DIV): Rename...
4888 (FL_THUMB_DIV): ... to this.
4889 (FL_ARM_DIV): Define.
4890 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
4891 (arm_arch_hwdiv): Remove.
4892 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
4893 (arm_issue_rate): Add cortexr5.
4894 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
4895 __ARM_ARCH_EXT_IDIV__.
4896 (TARGET_IDIV): Define.
4897 (arm_arch_hwdiv): Remove.
4898 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
4899 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
4900 (divsi3, udivsi3): New patterns.
4901 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
4902 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
4904 2011-06-01 Martin Jambor <mjambor@suse.cz>
4906 * ipa-utils.c (ipa_dfs_info): New field scc_no.
4907 * ipa-utils.c (searchc): Set scc_no.
4909 2011-06-01 Martin Jambor <mjambor@suse.cz>
4911 * ipa-utils.c (searchc_env): New field allow_overwritable.
4912 (searchc): do not ignore edges to overwritable nodes if indicated
4913 by env->allow_overwritable.
4914 (ipa_reduced_postorder): Set env.allow_overwritable.
4916 2011-06-01 Richard Guenther <rguenther@suse.de>
4918 * tree.c (free_lang_data): Do not reset boolean_type_node nor
4920 * lto-streamer.c (lto_record_common_node): Take node pointer,
4921 do not register types.
4922 (lto_preload_common_nodes): Explicitly skip preloading nodes
4923 that differ between frontends.
4925 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
4927 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
4930 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
4932 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
4933 parameter value for dump. Dump cost on outermost call only.
4934 (rs6000_memory_move_cost): Dump cost on outermost call only.
4936 2011-05-31 Jakub Jelinek <jakub@redhat.com>
4938 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
4939 DW_OP_GNU_convert ops.
4941 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
4942 cselib_preserve_constants.
4943 (cselib_lookup_1): If cselib_preserve_constants,
4944 a new VALUE is being created for REG and there is a VALUE for the
4945 same register in wider mode, add another loc with lowpart SUBREG of
4947 (cselib_subst_to_values): Handle ENTRY_VALUE.
4948 * var-tracking.c (replace_expr_with_values): Return NULL for
4950 * dwarf2out.c (convert_descriptor_to_signed): New function.
4951 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
4952 instead of two shifts.
4953 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
4954 the right mode if needed.
4955 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
4956 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
4957 convert_descriptor_to_signed.
4958 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
4959 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
4962 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
4964 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
4966 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
4967 of X87MODEI12 and SWI48x instead of SSEMODEI24.
4968 (SWI248x): New mode iterator, rename from X87MODEI.
4969 (X87MODEI): Remove mode iterator.
4970 (X87MODEI12): Ditto.
4971 (SSEMODEI24): Ditto.
4973 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
4975 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
4976 * doc/invoke.texi: Document max-vartrack-expr-depth.
4977 * var-tracking.c (EXPR_DEPTH): New.
4978 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
4980 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
4982 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
4983 * config/i386/sse.md: Add n to negated FMA pattern names.
4985 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
4987 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
4989 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
4991 * gengtype-state.c (read_state_params_structs): Initialize previous.
4993 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
4995 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
4996 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
4998 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
5000 * config/i386/i386.md (*movtf_internal): Avoid allocating general
5001 registers. Penalize F*r->o alternative to prevent partial memory
5002 stalls. Slightly penalize *roF->*r alternative. Generate SSE
5003 CONST_DOUBLE immediates when optimizing function for size. Do not move
5004 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
5005 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
5006 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
5007 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
5009 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
5011 (fp_register_operand splitters): Use fp_register_operand
5012 constraint. Do not use FP_REG_P in insn condition.
5013 (any_fp_register_operand splitters): Use any_fp_register_operand
5014 constraint. Do not use ANY_FP_REG_P in insn condition.
5016 2011-05-31 Jan Hubicka <jh@suse.cz>
5018 * cgraph.h (cgraph_inline_failed_t): Give enum a name
5019 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
5020 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
5021 (lto_output_edge): Use output_enum and var_len_unsigned.
5022 (lto_output_varpool_node): Likewise.
5023 (input_overwrite_node): Do not take resolution parameter;
5024 extract it from a bitpack.
5025 (input_node): Do not read resolution; use input_enum and
5027 (input_varpool_node): Likewise.
5028 (input_edge): Likewise.
5029 (input_cgraph_1): Likewise.
5031 2011-05-31 Richard Guenther <rguenther@suse.de>
5033 * gimple.c (gimple_register_canonical_type): Do not register
5034 any types via gimple_register_type.
5036 2011-05-31 Jan Hubicka <jh@suse.cz>
5038 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
5041 2011-05-31 Jakub Jelinek <jakub@redhat.com>
5043 PR rtl-optimization/49235
5044 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
5045 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
5047 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
5049 PR tree-optimization/49093
5050 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
5053 2011-05-31 Dodji Seketeli <dodji@redhat.com>
5056 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
5057 for concrete functions containing the code of cloned functions.
5059 2011-05-31 Richard Guenther <rguenther@suse.de>
5061 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
5063 (forward_propagate_into_comparison_1): ... this.
5064 (forward_propagate_comparison): Rename to ...
5065 (forward_propagate_into_comparison): ... this. Split out
5066 real forward propagation code to ...
5067 (forward_propagate_comparison): ... this.
5068 (forward_propagate_into_gimple_cond): Remove looping.
5069 (forward_propagate_into_cond): Likewise.
5070 (simplify_not_neg_expr): Return whether we have done something.
5071 (simplify_gimple_switch): Likewise.
5072 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
5073 (ssa_forward_propagate_and_combine): ... this. Re-structure
5074 to do a forward forward-propagation walk on BBs and a backward
5075 stmt combining walk on BBs. Consistently re-scan changed statements.
5076 (pass_forwprop): Adjust.
5078 2011-05-30 Ian Lance Taylor <iant@google.com>
5080 * godump.c (go_format_type): Correct length of name added to
5081 obstack for anonymous field.
5083 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
5086 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
5087 part of the second operand is 0.
5089 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
5091 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
5092 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
5093 to memory for !TARGET_MEMORY_MISMATCH_STALL.
5094 (*movdf_internal_rex64): Do not penalize F->r alternative.
5095 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
5096 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
5097 when optimizing function for size. Do not move CONST_DOUBLEs
5098 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
5099 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
5100 SUBREGs. Do not check for MEM_P operands in the insn condition,
5101 check for ANY_FP_REGNO_P instead.
5102 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
5103 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
5105 * config/i386/i386.c (ix86_option_override_internal): Do not
5106 set TARGET_INTEGER_DFMODE_MOVES here.
5108 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
5111 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
5113 2011-05-30 Jakub Jelinek <jakub@redhat.com>
5115 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
5116 DW_TAG_rvalue_reference_type even for
5117 -gdwarf-4 -fno-debug-types-section.
5119 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5121 PR tree-optimization/46728
5122 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
5123 (build_and_insert_binop): New.
5124 (gimple_expand_builtin_pow): Reorder args for
5125 build_and_insert_call; use build_and_insert_binop; add more
5126 optimizations for fractional exponents.
5128 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
5133 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5135 * tree.h (struct tree_identifier): Inherit from tree_typed, not
5137 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
5138 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
5139 TS_BASE instead of TS_COMMON.
5140 * varasm.c (assemble_name): Remove assert.
5142 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
5144 * config.gcc: Keep obselete list sorted.
5146 2011-05-30 Jakub Jelinek <jakub@redhat.com>
5147 Eric Botcazou <ebotcazou@adacore.com>
5149 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
5150 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
5151 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
5152 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
5153 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
5155 2011-05-30 Richard Guenther <rguenther@suse.de>
5157 * gimple.c (gimple_types_compatible_p_1): Compare record
5158 and union type members properly.
5160 2011-05-30 Richard Guenther <rguenther@suse.de>
5162 PR tree-optimization/49210
5163 * ipa-split.c (split_function): Care for the case where the call
5164 result is not trivially convertible to the result holding variable.
5166 2011-05-30 Richard Guenther <rguenther@suse.de>
5168 PR tree-optimization/49218
5169 * tree-vrp.c (adjust_range_with_scev): Properly check whether
5172 2011-05-30 Richard Guenther <rguenther@suse.de>
5174 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
5175 New function split out from ...
5176 (forward_propagate_into_gimple_cond): ... here. Adjust.
5177 (forward_propagate_into_cond): Likewise.
5178 (forward_propagate_comparison): Also propagate into
5179 comparisons on assignment RHS. Change return value to
5180 behave similar to forward_propagate_into_cond.
5181 (tree_ssa_forward_propagate_single_use_vars): Handle
5182 strict-overflow warnings properly for forward_propagate_comparison.
5184 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5186 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
5188 * configure: Regenerate.
5190 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
5192 PR tree-optimization/49199
5193 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
5194 non-reduction operands are either defined in the loop or by induction.
5196 2011-05-29 Xinliang David Li <davidxl@google.com>
5198 * opts-global.c (handle_common_deferred_options): Handle new options.
5199 * passes.c (register_one_dump_file): Call register_pass_name.
5200 (execute_one_pass): Check explicit enable/disable flag.
5201 (passr_hash): New function.
5203 (register_pass_name): Ditto.
5204 (get_pass_by_name): Ditto.
5207 (enable_pass): Ditto.
5208 (disable_pass): Ditto.
5209 (is_pass_explicitly_enabled_or_disabled): Ditto.
5211 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
5213 * config/i386/i386.md (*movoi_internal_avx): Use
5214 standard_sse_constant_opcode for alternative 0.
5215 (*movti_internal_sse): Ditto.
5216 (*movti_internal_rex64): Use standard_sse_constant_opcode for
5218 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
5220 (*movsi_internal): Ditto.
5221 (*movdi_internal): Ditto. Add ssecvt type moves.
5223 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
5226 * rtlanal.c (simplify_subreg_regno): Adjust comment.
5228 2011-05-29 Jakub Jelinek <jakub@redhat.com>
5230 PR rtl-optimization/49095
5231 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
5232 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
5234 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
5237 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
5238 recurse_p argument. Only follow register copies if it is set,
5239 and prevent mips_find_pic_call_symbol from recursing.
5240 (mips_find_pic_call_symbol): Add a recurse_p argument.
5241 Pass it to mips_pic_call_symbol_from_set.
5242 (mips_annotate_pic_calls): Update accordingly.
5244 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
5246 * emit-rtl.c (try_split): Use a loop to search for
5247 NOTE_INSN_CALL_ARG_LOCATIONs.
5249 2011-05-29 Richard Guenther <rguenther@suse.de>
5251 PR tree-optimization/49217
5252 * ipa-pure-const.c (propagate_pure_const): Fix typos.
5254 2011-05-28 Jan Hubicka <jh@suse.cz>
5256 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
5258 (string_slot_free): Remove
5259 (create_output_block): Initialize obstack.
5260 (destroy_output_block): Free obstack.
5261 (lto_string_index): Add PERSISTENT parameter; do not duplicate
5262 the string unless it needs to be added into the hash.
5263 (lto_output_string_with_length): Add persistent attribute;
5264 handle NULL strings.
5265 (lto_output_string): Add PERSISTENT parameter.
5266 (output_string_cst, output_identifier): Simplify.
5267 (lto_output_location_bitpack): Update.
5268 (lto_output_builtin_tree): Update.
5269 * lto-streamer.h (struct output_block): Add obstack.
5270 (lto_output_string, lto_output_string_with_length): Remove
5271 declarations; functions are static now.
5273 2011-05-28 Jan Hubicka <jh@suse.cz>
5275 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
5276 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
5277 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
5278 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
5279 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
5280 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
5281 unpack_ts_decl_with_vis_value_fields,
5282 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
5283 lto_get_builtin_tree): Use enum and variable length i/o.
5284 * basic-block.h (profile_status_d): Add PROFILE_LAST.
5285 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
5287 (bp_pack_enum, bp_unpack_enum): New macros.
5289 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
5291 * genrecog.c: Remove redundant forward declarations.
5293 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
5295 * config.gcc: Deprecate mips*-*-openbsd*.
5297 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
5300 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
5303 2011-05-27 Andrew Pinski <pinskia@gmail.com>
5306 * gengtype.c (vec_prefix_type): New function.
5307 (note_def_vec): Use vec_prefix_type and change the length
5308 attribute to be based on the prefix.
5309 * vec.c: Include coretypes.h before vec.h.
5310 (struct vec_prefix): Remove.
5311 (vec_gc_p_reserve): Change the offsetof to sizeof.
5312 (vec_gc_p_reserve_exact): Likewise.
5313 (vec_heap_p_reserve): Likewise.
5314 (vec_heap_p_reserve_exact): Likewise.
5315 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
5316 (vec_stack_p_reserve): Change the offsetof to sizeof.
5317 (vec_stack_p_reserve_exact): Likewise.
5318 * vec.h (struct vec_prefix): New struct definition.
5319 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
5320 (VEC_T_GTY(T,B)): Likewise.
5321 (DEF_VEC_FUNC_P(T)): Use prefix field.
5322 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
5323 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
5325 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5327 PR tree-optimization/46728
5328 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
5329 (powi_as_mults): Add gimple_set_location.
5330 (build_and_insert_call): New.
5331 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
5332 0.5, 0.25, 0.75, 1./3., or 1./6.
5334 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
5336 * doc/contrib.texi: Update copyright years.
5337 (Contributors): Add Zdenek Sojka.
5339 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
5341 * c-decl.c (c_push_function_context): Copy the current statement
5343 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
5344 (finish_struct): Call building_stmt_list_p instead of checking
5346 * c-parser.c (c_parser_postfix_expression): Likewise.
5347 * c-typeck.c (c_end_compound_stmt): Likewise.
5348 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
5349 * tree-iterator.c (stmt_list_cache): Change to a VEC.
5350 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
5351 (free_stmt_list): Likewise.
5352 * tree.h (struct tree_statement_list): Include typed_tree instead
5354 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
5355 as TS_TYPED instead of TS_COMMON.
5357 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5358 Uros Bizjak <ubizjak@gmail.com>
5360 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
5361 (HAVE_AS_IX86_TLSGDPTL): Define.
5362 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
5363 (HAVE_AS_IX86_TLSLDMPLT): Define.
5364 * configure: Regenerate.
5365 * config.in: Regenerate.
5366 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
5367 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
5368 TARGET_SUN_TLS, use @tlsgdplt or @plt.
5369 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
5370 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
5372 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
5374 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
5376 * sched-int.h (struct _haifa_deps_insn_data): New members cond
5378 (INSN_COND, INSN_REVERSE_COND): New macros.
5379 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
5381 (sched_get_condition_with_rev): Cache the results, and look them up
5383 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
5384 are clobbered by the current insn.
5385 * target.def (exposed_pipline): New sched data hook.
5386 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
5387 * doc/tm.texi: Regenerate.
5389 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5391 PR tree-optimization/49170
5392 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
5395 2011-05-27 Richard Guenther <rguenther@suse.de>
5398 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
5401 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
5403 * haifa-sched.c (sched_scan_info): Remove.
5404 (schedule_block): Call sched_extend_luids rather than sched_init_luids
5406 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
5408 (sched_scan): Remove.
5409 (sched_extend_luids): Renamed from luids_extend_insn and no longer
5410 static. All callers changed.
5411 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
5412 static. All callers changed.
5413 (sched_init_luids): Remove all arguments except the first. All
5414 callers changed. Don't use sched_scan.
5415 (haifa_init_h_i_d): Likewise.
5416 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
5417 manually rather than using sched_init_luids. Likewise with
5418 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
5419 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
5420 rather than sched_init_luids with NULL args.
5421 * sel-sched-ir.c (new_insns): Remove variable.
5422 (sched_scan): New static function, previously in haifa-sched.c. Remove
5423 all arguments but the first two; all callers changed.
5424 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
5425 rather than sched_init_luids.
5426 (sel_init_bbs): Remove second argument. All callers changed.
5427 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
5428 with NULL arguments.
5429 (create_insn_rtx_from_pattern): Likewise.
5430 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
5431 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
5432 (sched_init_insn_luid, sched_extend_luids): Declare.
5433 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
5436 2011-05-27 Richard Guenther <rguenther@suse.de>
5439 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
5440 A CMP B ? (T) true : (T) false for non-integral types T again.
5442 2011-05-27 Jan Hubicka <jh@suse.cz>
5444 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
5445 so 0 means NULL string.
5446 (lto_output_string_with_length): ... here.
5447 (lto_output_string, output_string_cst, output_identifier): Update
5448 handling of NULL strings.
5449 (lto_output_location_bitpack): New function.
5450 (lto_output_location): Use it.
5451 (lto_output_tree_ref): Use output_record_start.
5452 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
5454 * lto-streamer-in.c (string_for_index): Break out from ...; offset
5456 (input_string_internal): ... here;
5457 (input_string_cst, input_identifier, lto_input_string): Update handling
5459 (lto_input_location_bitpack): New function
5460 (lto_input_location): Use it.
5461 (unpack_ts_type_common_value_fields): Pack align & alias in var len
5463 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
5464 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
5465 (bp_pack_value): Sanity check the value range.
5466 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
5468 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
5471 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
5473 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
5474 call_arg_location instructions down the floor.
5476 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
5478 PR rtl-optimization/49154
5479 * ira.c (setup_pressure_classes): Process class without sublcasses
5480 as a candidate for pressure classes.
5482 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
5484 PR rtl-optimization/48575
5485 * genrecog.c (position_type): New enum.
5486 (position): New structure.
5487 (decision): Use position structure instead of a string.
5488 (root_pos, peep2_insn_pos_list): New variables.
5489 (next_position, compare_positions): New functions.
5490 (new_decision): Use position structures instead of strings.
5491 (maybe_both_true): Likewise.
5492 (change_state): Likewise.
5493 (write_tree): Likewise.
5494 (make_insn_sequence): Likewise.
5496 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5498 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
5499 TS_BASE instead of TS_COMMON.
5500 (find_decls_types_r): Check for TS_TYPED structure before looking at
5502 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
5504 (BLOCK_CHAIN): Use new chain field.
5506 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
5508 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
5509 moves expensive on Power7 also.
5511 2011-05-26 Richard Guenther <rguenther@suse.de>
5513 * fold-const.c (fold_unary_loc): Remove bogus code.
5515 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5517 * tree.h (struct tree_identifier): Inherit from tree_typed, not
5519 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
5520 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
5521 TS_BASE instead of TS_COMMON.
5522 * varasm.c (assemble_name): Remove assert.
5524 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
5526 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
5528 * libgcc-std.ver: Delete file.
5530 2011-05-26 Richard Guenther <rguenther@suse.de>
5532 PR tree-optimization/48702
5533 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
5534 only when we know the base address is within bounds.
5535 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
5536 assume the base address of TARGET_MEM_REFs is in bounds.
5538 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5541 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
5542 declaration in TARGET_SOLARIS.
5544 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
5546 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
5547 The instruction is then expanded explicitly.
5548 (supported_compare): Callable instruction.
5549 (compare): Likewise.
5551 2011-05-26 Jakub Jelinek <jakub@redhat.com>
5554 * gimplify.c (shortcut_cond_r): Don't special case
5555 COND_EXPRs if they have void type on one of their arms.
5557 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
5559 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
5560 to reduce duplication, and to achieve a slightly more logical order
5563 2011-05-26 Jakub Jelinek <jakub@redhat.com>
5565 PR tree-optimization/49161
5566 * tree-vrp.c (struct case_info): New type.
5567 (compare_case_labels): Sort case_info structs instead of
5568 trees, and not primarily by CASE_LABEL uids but by
5569 label_for_block indexes.
5570 (find_switch_asserts): Put case labels into struct case_info
5571 array instead of TREE_VEC, adjust sorting, compare label_for_block
5572 values instead of CASE_LABELs.
5574 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5576 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
5577 ("orndi3_neon"): Likewise.
5578 ("bic<mode>3_neon"): Likewise.
5580 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
5582 PR tree-optimization/49038
5583 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
5584 Ensure at least one epilogue iteration if required by data
5586 * tree-vectorizer.h (struct _loop_vec_info): Add new field
5587 to mark loops that require peeling for gaps.
5588 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
5589 (vect_get_known_peeling_cost): Take peeling for gaps into
5591 (vect_transform_loop): Generate epilogue if required by data
5593 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
5594 loop as requiring an epilogue if there are gaps in the end of
5597 2011-05-25 Ian Lance Taylor <iant@google.com>
5599 * godump.c (go_format_type): Output the first field with a usable
5602 2011-05-25 Ian Lance Taylor <iant@google.com>
5604 * godump.c (go_format_type): Check for invalid type names, pointer
5605 target types, and struct field types.
5607 2011-05-25 Jason Merrill <jason@redhat.com>
5609 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
5611 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
5613 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
5615 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5617 * config/i386/i386.md (*movqi_extv_1)): Put back
5618 "register_operand" check in "type" calculation.
5619 (*movqi_extzv_2): Likewise.
5621 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5623 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
5625 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
5628 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
5629 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
5630 __divxc3, __divtc3): Wrap definitions in #ifndef.
5632 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5635 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
5636 "register_operand" check and replace q_regs_operand with
5637 QIreg_operand in "type" calculation.
5638 (*movqi_extv_1): Likewise.
5639 (*movqi_extzv_2_rex64): Likewise.
5640 (*movqi_extzv_2): Likewise.
5642 * config/i386/predicates.md (QIreg_operand): New.
5644 2011-05-25 Richard Guenther <rguenther@suse.de>
5646 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
5647 type-based offset disambiguation, streamline MEM_REF and
5648 TARGET_MEM_REF handling.
5650 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5652 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
5653 (bdesc_special_args): Add pause intrinsic.
5655 * config/i386/i386.md (UNSPEC_PAUSE): New.
5658 * config/i386/ia32intrin.h (__pause): Likewise.
5660 * doc/extend.texi (X86 Built-in Functions): Add documentation for
5663 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5665 PR tree-optimization/46728
5666 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
5667 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
5669 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
5671 * tree.h (struct tree_exp): Inherit from struct tree_typed.
5672 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
5673 instead of TS_COMMON.
5675 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
5677 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
5678 LIBGCC2_GNU_PREFIX is defined.
5680 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
5681 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
5682 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
5683 __clz_tab): Define using __N.
5684 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
5685 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
5686 * target.def (libfunc_gnu_prefix): New hook.
5687 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
5688 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
5689 * doc/tm.texi: Regenerate.
5690 * system.h (LIBGCC2_GNU_PREFIX): Poison.
5691 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
5693 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
5694 (init_optabs): Likewise for the bswap libfuncs.
5695 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
5697 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
5698 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
5699 * libgcc-std.ver: Remove.
5700 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
5701 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
5703 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
5704 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
5705 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
5706 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
5707 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
5708 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
5709 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
5710 * config/fixed-bit.h (FIXED_OP): Define differently depending on
5711 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
5712 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
5714 2011-05-25 Jan Hubicka <jh@suse.cz>
5716 * lto-streamer-out.c (output_record_start): Use lto_output_enum
5717 (lto_output_tree): Use output_record_start.
5718 * lto-streamer-in.c (input_record_start): Use lto_input_enum
5719 (lto_get_pickled_tree): Use input_record_start.
5720 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
5721 (lto_value_range_error): New function.
5722 * lto-streamer.h (lto_value_range_error): Declare.
5723 (lto_output_int_in_range, lto_input_int_in_range): New functions.
5724 (lto_output_enum, lto_input_enum): New macros.
5726 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
5728 * common.opt (flag_stack_usage_info): New variable.
5729 (-Wstack-usage): New option.
5730 * doc/invoke.texi (Warning options): Document -Wstack-usage.
5731 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
5732 <OPT_fstack_usage>: Likewise.
5733 * toplev.c (output_stack_usage): Handle -Wstack-usage.
5734 * calls.c (expand_call): Test flag_stack_usage_info variable instead
5735 of flag_stack_usage.
5736 (emit_library_call_value_1): Likewise.
5737 * explow.c (allocate_dynamic_stack_space): Likewise.
5738 * function.c (instantiate_virtual_regs ): Likewise.
5739 (prepare_function_start): Likewise.
5740 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
5741 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
5742 * config/arm/arm.c (arm_expand_prologue): Likewise.
5743 (thumb1_expand_prologue): Likewise.
5744 * config/avr/avr.c (expand_prologue): Likewise.
5745 * config/i386/i386.c (ix86_expand_prologue): Likewise.
5746 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
5747 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
5748 * config/mips/mips.c (mips_expand_prologue): Likewise.
5749 * config/pa/pa.c (hppa_expand_prologue): Likewise.
5750 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
5751 * config/s390/s390.c (s390_emit_prologue): Likewise.
5752 * config/sh/sh.c (sh_expand_prologue): Likewise.
5753 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
5754 * config/spu/spu.c (spu_expand_prologue): Likewise.
5756 2011-05-25 Richard Guenther <rguenther@suse.de>
5758 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
5759 (gimple_canonical_types_compatible_p): Likewise.
5761 2011-05-25 Jan Hubicka <jh@suse.cz>
5764 * ipa.c (function_and_variable_visibility): Only add to same
5765 comdat group list if DECL_ONE_ONLY.
5767 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
5769 PR rtl-optimization/49014
5770 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
5772 2011-05-25 Jakub Jelinek <jakub@redhat.com>
5775 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
5777 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
5779 PR rtl-optimization/48757
5780 * ira-build.c (loop_with_eh_edge_p): Rename to
5781 loop_with_complex_edge_p, check edges on complexity, make function
5783 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
5786 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
5788 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
5789 force flag_ira_share_save_slots to 0.
5791 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
5793 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
5794 (vt_initialize): Set PROLOGUE_BB unconditionally.
5795 Add block comment about CFA_BASE_RTX machinery.
5796 Reset FP_CFA_OFFSET to -1 on all invalid paths.
5797 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
5799 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
5802 * c-parser.c (c_parser_objc_class_instance_variables): More robust
5803 parsing of syntax error in ObjC instance variable lists. In
5804 particular, avoid an infinite loop if there is a stray ']'.
5805 Updated error message.
5807 2011-05-24 Ian Lance Taylor <iant@google.com>
5809 * godump.c (go_define): Don't accept a string immediately after
5812 2011-05-24 Ian Lance Taylor <iant@google.com>
5814 * godump.c (struct godump_container): Add invalid_hash field.
5815 (go_format_type): Return false if type is found in invalid_hash.
5816 (go_output_typedef): Add invalid type to invalid_hash.
5817 (go_finish): Create and delete invalid_hash.
5819 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5821 PR tree-optimization/46728
5822 * tree-ssa-math-opts.c (powi_table): New.
5823 (powi_lookup_cost): New.
5825 (powi_as_mults_1): New.
5826 (powi_as_mults): New.
5827 (gimple_expand_builtin_powi): New.
5828 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
5829 (gate_cse_sincos): Remove sincos/cexp restriction.
5831 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5834 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
5836 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
5837 * mips-tdump.c: Likewise.
5839 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
5842 * config/i386/driver-i386.c (host_detect_local_cpu): Always
5843 add -mno-XXX. Handle FMA.
5845 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
5847 PR rtl-optimization/48633
5848 * ira-build.c (loop_with_eh_edge_p): New function.
5849 (mark_loops_for_removal): Use it.
5851 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
5853 PR rtl-optimization/48971
5854 * ira.c (setup_pressure_classes): Don't check register move cost
5855 for classes with one registers. Don't add pressure class if there
5856 is a pressure class with the same available hard registers.
5857 Check contains_reg_of_mode. Fix a typo in collecting
5858 temp_hard_regset. Ignore hard registers not belonging to a class.
5860 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
5863 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
5865 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
5866 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5868 PR gcov-profile/48845
5869 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
5871 2011-05-24 Richard Guenther <rguenther@suse.de>
5873 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
5874 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
5875 (gimple_types_compatible_p_1): Adjust.
5876 (iterative_hash_canonical_type): Do not bother about complete vs.
5878 (gimple_canonical_types_compatible_p): Likewise.
5880 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5882 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
5884 2011-05-24 Richard Guenther <rguenther@suse.de>
5887 * gimple.c (gimple_register_canonical_type): Revert
5889 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
5890 does not for a tree for the case where it matters. Cache
5891 pointer-type alias-sets.
5893 2011-05-24 Joseph Myers <joseph@codesourcery.com>
5895 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
5896 (OBJS): Remove options.o, opts-common.o and prefix.o.
5897 (OBJS-libcommon-target): New.
5898 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
5899 (BACKEND): Include libcommon-target.a.
5900 (MOSTLYCLEANFILES): Include libcommon-target.a.
5901 (libcommon-target.a): New.
5902 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
5905 2011-05-23 Joseph Myers <joseph@codesourcery.com>
5907 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
5908 parts of output shared with the driver.
5909 * optc-gen.awk: Don't generate parts of output not shared with the
5911 * opth-gen.awk: Remove GCC_DRIVER conditionals.
5912 * doc/options.texi (SourcerInclude): Mention options-save.c.
5913 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
5914 (OBJS): Add options-save.o.
5915 (options-save.c, options-save.o): New.
5916 (options.o): Update dependencies.
5917 (gcc-options.o): Remove.
5918 (mostlyclean): Remove options-save.c.
5920 2011-05-23 Jakub Jelinek <jakub@redhat.com>
5923 * dbxout.c: Include cgraph.h.
5924 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
5925 and without value expr, return NULL if no varpool node exists for
5926 it or if it is not needed.
5927 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
5930 * c-decl.c (start_decl): Convert expr to void_type_node.
5932 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
5934 PR rtl-optimization/48826
5935 * emit-rtl.c (try_split): When splitting a call that is followed
5936 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
5938 2011-05-23 Jakub Jelinek <jakub@redhat.com>
5940 * cfgexpand.c (expand_debug_expr): For unused non-addressable
5941 parameters passed in memory prefer using DECL_INCOMING_RTL over
5942 the pseudos it will be copied into.
5944 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
5947 * config/i386/i386.c (ix86_option_override_internal): Save the
5948 initial options after checking vzeroupper.
5950 2011-05-23 David Li <davidxl@google.com>
5952 PR tree-optimization/48988
5953 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
5954 Initialize has_valid_pred for each pred chain.
5956 2011-05-23 Richard Guenther <rguenther@suse.de>
5958 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
5959 (iterative_hash_gimple_type): Always hash type names.
5961 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
5963 * c-typeck.c (build_function_call_vec): Tweak call to
5964 check_function_arguments.
5966 2011-05-23 Richard Guenther <rguenther@suse.de>
5968 PR tree-optimization/49115
5969 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
5970 is not necessarily carried out, do not claim it kills the ref.
5971 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
5973 2011-05-23 Richard Guenther <rguenther@suse.de>
5976 * builtins.c (fold_builtin_memory_op): Be less restrictive about
5977 what pointer types we accept for folding.
5979 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5981 * gthr-gnat.c: Remove.
5982 * gthr-gnat.h: Remove.
5983 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
5984 * config/t-freebsd (LIB2ADDEH): Likewise.
5985 * config/t-linux (LIB2ADDEH): Likewise.
5986 * config/t-sol2 (LIB2ADDEH): Likewise.
5987 * config/ia64/t-vms (LIB2ADDEH): Likewise.
5988 * configure.ac (target_thread_file): Remove gnat handling.
5989 * configure: Regenerate.
5990 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
5992 2011-05-23 Tristan Gingold <gingold@adacore.com>
5993 Eric Botcazou <ebotcazou@adacore.com>
5995 * gcov.c (create_file_names): If no object directory is specified,
5996 keep the directory of the file.
5998 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6000 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
6001 * configure: Regenerate.
6003 2011-05-23 Jakub Jelinek <jakub@redhat.com>
6006 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
6007 failed and the comparison has a single bit signed type, use
6008 constm1_rtx instead of const1_rtx for true value.
6009 (do_store_flag): If ops->type is single bit signed type, disable
6010 signel bit test optimization and pass -1 instead of 1 as last
6011 parameter to emit_store_flag_force.
6013 2011-05-23 Tom de Vries <tom@codesourcery.com>
6016 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
6018 (infer_loop_bounds_from_undefined): Use new function.
6020 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
6022 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
6023 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
6024 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
6026 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
6028 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
6030 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
6031 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
6034 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
6036 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
6038 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
6040 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
6041 UNSPEC_MOVE_PIC pattern.
6043 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
6045 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
6046 (sparc-*-rtems*): Likewise.
6047 (sparc64-*-elf*): Likewise.
6048 (sparc64-*-rtems*): Likewise.
6049 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
6050 * config/sparc/t-crtin: New file.
6051 * config/sparc/t-sol2 (crti.o): Delete rule.
6053 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
6054 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
6055 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
6056 (ENDFILE_SPEC): Add crtn.o.
6058 2011-05-22 Tom de Vries <tom@codesourcery.com>
6061 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
6062 CODE_CONTAINS_STRUCT (TS_COMMON).
6064 2011-05-22 Jakub Jelinek <jakub@redhat.com>
6067 * expmed.c (extract_fixed_bit_field): Test whether target can be used
6068 only after deciding which mode to use.
6070 2011-05-22 Tom de Vries <tom@codesourcery.com>
6073 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
6074 for call to get_shiftadd_cost.
6076 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
6079 * config/i386/cpuid.h (bit_MMXEXT): New define.
6081 2011-05-22 Nick Clifton <nickc@redhat.com>
6083 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
6084 initialisation of non-existant args[2] element. Use args[] array
6085 not arg[] array to pass arguments to build_function_type_list.
6087 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
6089 PR tree-optimization/49087
6090 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
6092 2011-05-21 Jason Merrill <jason@redhat.com>
6095 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
6096 static storage duration.
6098 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
6100 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
6103 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
6105 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
6106 false if there are call-saved registers here...
6107 (sparc_can_use_return_insn_p): ...but here instead.
6108 (save_or_restore_regs): Fix thinko.
6109 (sparc_expand_prologue): Use current_function_is_leaf.
6110 (sparc_frame_pointer_required): Likewise.
6112 2011-05-21 Nick Clifton <nickc@redhat.com>
6115 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
6117 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
6119 * gengtype.c (walk_type): Implemented "atomic" GTY option.
6120 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
6122 2011-05-21 Joseph Myers <joseph@codesourcery.com>
6124 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
6125 * optc-gen.awk: Move common code to opt-read.awk.
6126 * opth-gen.awk: Likewise.
6127 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
6129 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
6131 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
6133 2011-05-20 Tom de Vries <tom@codesourcery.com>
6136 * tree-ssa-loop-ivopts.c: Include expmed.h.
6137 (get_shiftadd_cost): New function.
6138 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
6140 2011-05-20 Jakub Jelinek <jakub@redhat.com>
6143 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
6144 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
6146 2011-05-20 Joseph Myers <joseph@codesourcery.com>
6148 * Makefile.in: Update comment referring to $(OBJS-common).
6150 2011-05-20 Ian Lance Taylor <iant@google.com>
6152 * godump.c (go_output_typedef): Put enum constants in the macro
6153 hash table to avoid duplicate Go const definitions.
6155 2011-05-20 Joseph Myers <joseph@codesourcery.com>
6157 * Makefile.in (LIBDEPS): Add libcommon.a.
6159 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
6160 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
6161 pretty-print.o and version.o.
6162 (OBJS-libcommon): New.
6163 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
6164 (BACKEND): Add libcommon.a.
6165 (MOSTLYCLEANFILES): Likewise.
6167 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
6168 (cpp$(exeext)): Likewise.
6169 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
6170 pretty-print.o and input.o.
6171 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
6172 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
6174 (mips-tfile): Don't explicitly use version.o.
6175 (mips-tdump): Likewise.
6176 (gcov.o): Depend on $(DIAGNOSTIC_H).
6177 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
6178 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
6179 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
6180 * gcov-dump.c: Include intl.h and diagnostic.h.
6181 (main): Initialize diagnostics.
6182 * gcov.c: Include diagnostic.h.
6184 (main): Initialize diagnostics.
6185 * lto-wrapper.c: Include diagnostic.h.
6186 (main): Initialize diagnostics.
6188 2011-05-20 Michael Matz <matz@suse.de>
6190 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
6192 2011-05-20 Michael Matz <matz@suse.de>
6193 Richard Guenther <rguenther@suse.de>
6195 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
6196 use lto_streamer_cache_append directly instead of returning a VEC.
6197 (preload_common_node): Remove.
6198 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
6200 (lto_streamer_cache_create): Call lto_preload_common_nodes.
6202 2011-05-20 Richard Guenther <rguenther@suse.de>
6204 PR tree-optimization/49079
6205 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
6206 MEM_REFs correctly for the trailing array access detection.
6207 Special case constants the same way as decls for overall size
6210 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
6212 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
6215 2011-05-20 Jakub Jelinek <jakub@redhat.com>
6217 PR tree-optimization/49073
6218 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
6219 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
6220 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
6222 2011-05-20 Richard Guenther <rguenther@suse.de>
6225 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
6226 of pointer types the same way the middle-end does.
6228 2011-05-20 Richard Guenther <rguenther@suse.de>
6230 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
6231 or pointer-to chains. Delay all fixup to uniquify_nodes.
6233 2011-05-19 Quentin Neill <quentin.neill@amd.com>
6235 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
6236 (fma4_fmaddsub): Likewise
6238 2011-05-19 Jan Hubicka <jh@suse.cz>
6240 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
6241 (GIMPLE_TYPE_PAIR_SIZE): New macro.
6242 (type_pair_cache): New static var.
6243 (lookup_type_pair): Use fixed sized custom hash; make inline.
6244 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
6245 calls of lookup_type_pair.
6246 (print_gimple_types_stats): Remove cache stats.
6247 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
6250 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
6252 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
6253 when TARGET_RDRND is active.
6254 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
6255 Generate dummy SImode target register when target is NULL.
6257 2011-05-19 Joseph Myers <joseph@codesourcery.com>
6259 * config/arm/arm-fpus.def: New.
6260 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
6262 * config/arm/arm-tables.opt: Regenerate.
6263 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
6264 (arm_option_override): Don't decode FPU name to string here.
6265 * config/arm/arm.opt (mfpu=): Use Enum.
6266 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
6267 Update dependencies.
6269 2011-05-19 Joseph Myers <joseph@codesourcery.com>
6271 * collect2.c: Include diagnostic.h.
6272 (fatal_perror, fatal, error, fancy_abort): Remove.
6273 (main): Set progname. Call xmalloc_set_program_name and
6274 diagnostic_initialize.
6275 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
6276 scan_libraries, resolve_lib_name): Call fatal_error instead of
6277 fatal and fatal_perror.
6278 * collect2.h (error, fatal, fatal_perror): Don't declare.
6279 * tlink.c: Include diagnostic-core.h.
6280 (recompile_files): Call fatal_error instead of fatal_perror.
6281 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
6282 pretty-print.o and input.o.
6283 (collect2.o, tlink.o): Update dependencies.
6285 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6287 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
6289 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6292 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
6293 COMDAT group syntax, both SPARC and x86 variants.
6294 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
6295 * configure: Regenerate.
6296 * config/sol2.h (TARGET_SOLARIS): Define.
6297 (PUSHSECTION_FORMAT): Remove.
6298 (SECTION_NAME_FORMAT): Define.
6299 * config/sol2.c: Include hashtab.h.
6300 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
6301 expansion, using SECTION_NAME_FORMAT.
6302 (solaris_comdat_htab): New variable.
6303 (struct comdat_entry): Define.
6304 (comdat_hash): New function.
6305 (comdat_eq): New function.
6306 (solaris_elf_asm_comdat_section): New function.
6307 (solaris_define_comdat_signature): New function.
6308 (solaris_code_end): New function.
6309 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
6310 (solaris_code_end): Declare.
6311 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
6312 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
6314 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
6315 Remove ATTRIBUTE_UNUSED.
6316 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
6317 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
6318 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
6319 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
6320 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
6321 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
6322 (PUSHSECTION_FORMAT): Remove.
6323 (SECTION_NAME_FORMAT): Redefine.
6325 2011-05-19 Kai Tietz <ktietz@redhat.com>
6327 * tree-cfg.c (verify_gimple_assign_binary): Barf on
6328 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
6329 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
6331 2011-05-19 Anatoly Sokolov <aesok@post.ru>
6332 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6334 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
6336 2011-05-19 Richard Guenther <rguenther@suse.de>
6339 * tree-object-size.c (addr_object_size): If the pointed-to
6340 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
6342 2011-05-19 Richard Guenther <rguenther@suse.de>
6344 * gimple.c (gimple_types_compatible_p_1): Compare names of
6345 the types themselves.
6346 (iterative_hash_gimple_type): And hash them that way.
6347 (gimple_register_type_1): If we register a main variant properly
6348 initialize the leader to ourselves.
6350 2011-05-19 Tom de Vries <tom@codesourcery.com>
6353 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
6354 get_loop_invariant_expr_id.
6355 (get_loop_invariant_expr_id): Use get_expr_id.
6356 (parm_decl_cost): New function.
6357 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
6358 Improve bound cost estimation. Use different inv_expr_id for elim and
6361 2011-05-19 Tom de Vries <tom@codesourcery.com>
6364 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
6365 cost_base.cost == 0.
6367 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
6370 * config/i386/sse.md
6371 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
6374 2011-05-18 Jakub Jelinek <jakub@redhat.com>
6376 PR tree-optimization/49039
6377 * tree-vrp.c (extract_range_from_binary_expr): For
6378 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
6379 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
6381 2011-05-18 Tom de Vries <tom@codesourcery.com>
6384 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
6386 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
6388 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
6389 (*tls_global_dynamic_64): Ditto.
6390 (*tls_local_dynamic_base_32_gnu): Ditto.
6391 (*tls_local_dynamic_base_64): Ditto.
6392 (tls_initial_exec_64_sun): Ditto.
6394 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
6396 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
6397 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
6399 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
6400 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
6401 * config/bfin/bfin.c (bfin_cpus): Add bf592.
6402 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
6403 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
6404 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
6405 * config/bfin/elf.h (LIB_SPEC): Add bf592.
6407 2011-05-18 Joseph Myers <joseph@codesourcery.com>
6409 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
6410 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
6411 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
6412 target_thread_pointer, arm_structure_size_boundary, struct
6413 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
6414 struct abi_name, arm_all_abis): Remove.
6415 (arm_option_override) Don't process most enumerated option values here.
6416 Don't process target_fpe_name here. Work with integer not string for
6417 structure size boundary; use separate diagnostics for each case.
6418 * config/arm/arm.h (enum float_abi_type, enum
6419 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
6421 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
6422 arm_structure_size_boundary): Remove.
6423 * config/arm/arm.opt (mabi=): Use Enum and Init.
6424 (arm_abi_type): New Enum and EnumValue entries.
6425 (mfloat-abi=): Use Enum and Init.
6426 (float_abi_type): New Enum and EnumValue entries.
6427 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
6428 (mfp16-format=): Use Enum and Init.
6429 (arm_fp16_format_type): New Enum and EnumValue entries.
6430 (mstructure-size-boundary=): Use UInteger and Init.
6431 (mtp=): Use Enum and Init.
6432 (arm_tp_type): New Enum and EnumValue entries.
6434 2011-05-18 Richard Guenther <rguenther@suse.de>
6436 PR tree-optimization/49018
6437 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
6438 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
6439 gimple_has_side_effects.
6441 2011-05-18 Richard Guenther <rguenther@suse.de>
6443 * gimple.c (gimple_register_type_1): New function, split out from ...
6444 (gimple_register_type): ... here. Avoid infinite recursion.
6446 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
6448 PR tree-optimization/41881
6449 * tree-vectorizer.h (struct _loop_vec_info): Add new field
6450 reduction_chains along with a macro for its access.
6451 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
6452 (destroy_loop_vec_info): Free reduction chains.
6453 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
6454 (vect_is_slp_reduction): New function.
6455 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
6456 (vect_create_epilog_for_reduction): Support SLP reduction chains.
6457 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
6458 definition types for reduction chains.
6459 (vect_supported_load_permutation_p): Don't allow permutations for
6461 (vect_analyze_slp_instance): Support reduction chains.
6462 (vect_analyze_slp): Try to build SLP instance from reduction chains.
6463 (vect_get_constant_vectors): Handle reduction chains.
6464 (vect_schedule_slp_instance): Mark the first statement of the
6465 reduction chain as reduction.
6467 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
6469 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
6470 names for group elements access.
6471 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
6472 reduction chains as well. Remove data reference and interleaving
6473 related words from the fields names.
6474 * tree-vect-loop.c (vect_transform_loop): Use new names for group
6476 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
6477 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
6478 vect_update_interleaving_chain, vect_same_range_drs,
6479 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
6480 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
6481 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
6482 vect_analyze_group_access, vect_analyze_data_ref_access,
6483 vect_create_data_ref_ptr, vect_transform_strided_load,
6484 vect_record_strided_load_vectors): Likewise.
6485 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
6486 vect_model_load_cost, vectorizable_store, vectorizable_load,
6487 vect_remove_stores, new_stmt_vec_info): Likewise.
6488 * tree-vect-slp.c (vect_build_slp_tree,
6489 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
6491 2011-05-18 Richard Guenther <rguenther@suse.de>
6494 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
6495 operand verification.
6496 (verify_gimple_assign_binary): Likewise.
6497 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
6498 to non-1-precision BOOLEAN_TYPEs.
6500 2011-05-18 Tom de Vries <tom@codesourcery.com>
6503 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
6505 2011-05-18 Jakub Jelinek <jakub@redhat.com>
6507 PR tree-optimization/49000
6508 * tree-ssa.c (execute_update_addresses_taken): Call
6509 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
6510 be rewritten and decl has been marked for renaming, reset
6513 2011-05-17 Joseph Myers <joseph@codesourcery.com>
6515 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
6516 enum_opts_set when testing if attributes have set -mfpmath=.
6518 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
6520 * config/mips/mips.c (mips_handle_option): Remove unused variable.
6522 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
6524 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
6526 * tree-inline.c (maybe_inline_call_in_expr): Initialize
6527 id.transform_lang_insert_block with NULL.
6529 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
6531 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
6532 (output_fp_compare): Change args 3 and 4 to bool.
6533 (ix86_expand_call): Change arg 6 to bool.
6534 (ix86_attr_length_immediate_default): Change arg 2 to bool.
6535 (ix86_attr_length_vex_default): Change arg 3 to bool.
6536 * config/i386/i386.md: Update all uses.
6537 * config/i386/i386.c: Ditto.
6538 (ix86_flags_dependent): Change return type to bool.
6540 2011-05-17 Richard Guenther <rguenther@suse.de>
6542 * gimple.c (type_hash_pair_compare): Fix comparison.
6544 2011-05-17 Richard Guenther <rguenther@suse.de>
6546 * gimple.c (iterative_hash_gimple_type): Simplify singleton
6547 case some more, fix final hash value of the non-singleton case.
6549 2011-05-17 Richard Guenther <rguenther@suse.de>
6553 2011-05-16 Richard Guenther <rguenther@suse.de>
6555 * gimple.c (gimple_types_compatible_p_1): Use names of the
6556 type itself, not its main variant.
6557 (iterative_hash_gimple_type): Likewise.
6559 2011-05-17 Richard Guenther <rguenther@suse.de>
6561 * gimple.c (gimple_register_canonical_type): Use the main-variant
6562 leader for computing the canonical type.
6564 2011-05-17 Nick Clifton <nickc@redhat.com>
6566 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
6569 * config/rx/rx.md: Add peephole to remove redundant extensions
6571 (bitset_in_memory): Use rx_restricted_mem_operand.
6572 (bitinvert_in_memory): Likewise.
6573 (bitclr_in_memory): Likewise.
6575 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
6576 Nick Clifton <nickc@redhat.com>
6578 * config/rx/rx.md: Add peepholes to match a register move followed
6579 by a comparison of the moved register. Replace these with an
6580 addition of zero that does both actions in one instruction.
6582 2011-05-17 Jakub Jelinek <jakub@redhat.com>
6585 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
6586 predicate to allow CONST_INT.
6587 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
6589 2011-05-16 Joseph Myers <joseph@codesourcery.com>
6591 * opts-common.c (opt_enum_arg_to_value): New.
6592 * opts.h (opt_enum_arg_to_value): Declare.
6593 * config/i386/i386.opt (fpmath): Remove.
6594 (mfpmath=): Use Enum, Init and Save.
6595 (fpmath_unit): New Enum and EnumValue entries.
6596 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
6597 name for function fpmath state.
6598 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
6599 * config/i386/i386.c: Include diagnostic.h.
6600 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
6601 (ix86_target_string): Take enum fpmath_unit value instead of string.
6602 (ix86_debug_options): Update call to ix86_target_string.
6603 (ix86_option_override_internal): Don't process fpmath strings here.
6604 (x86_function_specific_save, ix86_function_specific_restore):
6605 Don't handle fpmath state specially.
6606 (ix86_function_specific_print): Pass fpmath state to
6607 ix86_target_string instead of printing in this function.
6608 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
6609 Handle enum attributes.
6610 (IX86_ATTR_ENUM, ix86_opt_enum): New.
6611 (ix86_valid_target_attribute_tree): Update option_strings
6612 handling. Handle fpmath as enum option.
6613 (ix86_can_inline_p): Update field names for function fpmath state.
6614 (ix86_expand_builtin): Update call to ix86_target_string.
6615 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
6616 (ix86_fpmath): Remove.
6617 * config/i386/t-i386 (i386.o): Update dependencies.
6619 2011-05-16 Joseph Myers <joseph@codesourcery.com>
6621 PR preprocessor/48677
6622 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
6623 from decoded_options[0], not from itself.
6625 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
6627 * config/i386/constraints.md (z): New constraint.
6628 * config/i386/i386.c (c): New mode attribute.
6629 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
6630 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
6631 constraint for operand 0.
6632 (*call_vzeroupper): Ditto.
6633 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
6634 (*call_rex64_ms_sysv_vzeroupper): Ditto.
6635 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
6636 Use "lzm" constraint for operand 0.
6637 (*call_pop_vzeroupper): Ditto.
6638 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
6639 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
6640 constraint for operand 0.
6641 (*sibcall_vzeroupper): Ditto.
6642 (*sibcall_rex64_ms_sysv): Ditto.
6643 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
6644 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
6645 *sibcall_pop_1. Use "Uz" constraint for operand 0.
6646 (*sibcall_pop_vzeroupper): Ditto.
6647 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
6648 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
6649 mode iterator. Use "<c>zm" constraint for operand 1.
6650 (*call_value_vzeroupper): Ditto.
6651 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
6653 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
6654 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
6655 *call_value_pop_1. Use "lzm" constraint for operand 1.
6656 (*call_value_pop_vzeroupper): Ditto.
6657 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
6658 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
6659 mode iterator. Use "Uz" constraint for operand 1.
6660 (*sibcall_value_vzeroupper): Ditto.
6661 (*sibcall_value_rex64_ms_sysv): Ditto.
6662 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
6663 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
6664 constraint for operand 1.
6665 (*sibcall_value_pop_vzeroupper): Ditto.
6666 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
6667 and "z" constraint for operand 2.
6668 (*tls_global_dynamic_32_gnu): Ditto.
6669 (*tls_local_dynamic_base_32_gnu): Ditto.
6670 (*tls_local_dynamic_base_64): Ditto.
6671 (*tls_local_dynamic_32_once): Ditto.
6672 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
6674 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
6676 2011-05-16 Richard Guenther <rguenther@suse.de>
6678 * gimple.c (gimple_types_compatible_p_1): Use names of the
6679 type itself, not its main variant.
6680 (iterative_hash_gimple_type): Likewise.
6682 2011-05-16 Richard Guenther <rguenther@suse.de>
6684 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
6685 always visit pointer target and function result and argument types.
6687 2011-05-16 Jason Merrill <jason@redhat.com>
6690 * tree-inline.c (copy_statement_list): Put back recursion.
6692 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
6696 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
6697 * config/avr/avr.md ("*ior<mode>qi.byte0",
6698 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
6700 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
6703 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
6704 register is needed for a function argument.
6706 2011-05-16 Richard Guenther <rguenther@suse.de>
6708 * gimple.c (struct type_hash_pair): New type.
6709 (type_hash_pair_compare): New function.
6710 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
6712 2011-05-16 Revital Eres <revital.eres@linaro.org>
6714 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
6716 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
6718 * config/i386/i386.md (floating point move splitters): Fix
6719 usage of standard_80387_constant_p.
6720 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
6722 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
6724 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
6726 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
6728 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
6729 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
6730 (tree_ssa_lim_finalize): Likewise.
6732 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
6734 * config/i386/constraint.md (Yd, Yx): New register constraints.
6735 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
6736 Yd conditional register constraint.
6737 (*movtf_internal): Use standard_sse_constant_opcode.
6738 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
6739 Yx conditional register constraint.
6740 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
6741 Yd conditional register constraint. Use standard_sse_constant_p to
6742 check for valid SSE constants and call standard_sse_constant_opcode to
6744 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
6745 constants and call standard_sse_constant_opcode to output SSE insn.
6746 * config/i386/i386.c (ix86_option_ovverride_internal): Set
6747 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
6748 optimize_size is set.
6749 (standard_sse_constant_opcode): Output conditional AVX insn templates.
6751 2011-05-14 Tobias Burnus <burnus@net-b.de>
6753 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
6755 2011-05-13 Martin Jambor <mjambor@suse.cz>
6757 * ipa-prop.c (ipa_cst_from_jfunc): New function.
6758 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
6759 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
6760 (evaluate_conditions_for_ipcp_clone): Removed.
6761 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
6762 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
6763 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
6765 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
6767 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
6768 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
6769 lieu of MAY_HAVE_DEBUG_STMTS.
6770 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
6771 debug statements if !MAY_HAVE_DEBUG_STMTS.
6773 2011-05-13 Martin Thuresson <martint@google.com>
6775 PR gcov-profile/47793
6776 * libgcov.c (gcov_exit): Support relative profile paths.
6777 * doc/invoke.texi (-fprofile-dir): Update for above change.
6779 2011-05-13 Richard Guenther <rguenther@suse.de>
6781 * gimple.c (gimple_canonical_types_compatible_p): Do not use
6782 type-pair caching, do not compare hashes.
6784 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
6787 * tree-cfg.c (edge_to_cases_cleanup): Return true.
6788 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
6790 2011-05-13 Kai Tietz <ktietz@redhat.com>
6792 * gimplify.c (gimplify_expr): Make sure operand is boolified.
6793 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
6794 compatible type for TRUTH_NOT_EXPR.
6796 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
6798 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
6799 (ix86_hard_regno_mode_ok): Change return value to bool. Use
6800 can_create_pseudo_p ().
6802 2011-05-13 Richard Guenther <rguenther@suse.de>
6805 * gimple.c (iterative_hash_gimple_type): Revert change in
6806 pointer target and function result and argument hashing.
6808 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
6810 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
6811 (*movxf_internal_nointeger): Ditto.
6812 (*movdf_internal_rex64): Ditto.
6813 (*movdf_internal): Ditto.
6814 (*movdf_internal_nointeger): Ditto.
6815 (*movsf_internal): Ditto.
6816 (sincos splitters): Use can_create_pseudo ().
6818 2011-05-13 Joseph Myers <joseph@codesourcery.com>
6820 * config/i386/i386-opts.h: New.
6821 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
6822 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
6823 ix86_section_threshold): Remove.
6824 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
6825 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
6827 (ix86_option_override_internal): Don't decode strings for options
6828 other than -march=, -mtune= and -mfpmath=. Don't allow for
6829 __attribute__ uses in remaining diagnostics for options with
6830 string arguments. Don't check for integer arguments being negative.
6831 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
6832 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
6833 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
6834 ix86_branch_cost, ix86_section_threshold): Remove.
6835 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
6837 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
6839 (masm=): Use Enum and Init.
6840 (asm_dialect): New Enum and EnumValue entries.
6841 (mbranch-cost=): Use UInteger.
6842 (mlarge-data-threshold=): Use UInteger and Init.
6843 (mcmodel=): Use Enum and Init.
6844 (cmodel): New Enum and EnumValue entries.
6845 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
6846 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
6847 mregparm=): Use UInteger.
6848 (mstringop-strategy=): Use Enum and Init.
6849 (stringop_alg): New Enum and EnumValue entries.
6850 (mtls-dialect=): Use Enum and Init.
6851 (tls_dialect): New Enum and EnumValue entries.
6852 (mabi=): Use Enum and Init.
6853 (calling_abi): New Enum and EnumValue entries.
6854 (mveclibabi=): Use Enum and Init.
6855 (ix86_veclibabi): New Enum and EnumValue entries.
6857 2011-05-13 Nick Clifton <nickc@redhat.com>
6859 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
6860 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
6862 2011-05-13 Kai Tietz <ktietz@redhat.com>
6865 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
6866 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
6867 (gimple_boolify): Check for cast for boolean_type_node instead for
6870 2011-05-13 Richard Guenther <rguenther@suse.de>
6872 PR tree-optimization/48172
6873 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
6874 multiplying by number of iterations for equal step.
6875 (vect_create_cond_for_alias_checks): Likewise.
6877 2011-05-13 Andreas Schwab <schwab@redhat.com>
6879 * configure.ac: Use AS_HELP_STRING throughout.
6880 * configure: Regenerate.
6882 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
6884 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
6885 (ix86_emit_restore_regs_using_mov): Likewise.
6886 (ix86_emit_restore_sse_regs_using_mov): Likewise.
6888 2011-05-12 Anatoly Sokolov <aesok@post.ru>
6890 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
6891 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
6892 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
6893 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
6894 RTX_OK_FOR_OLO10_P): ...here.
6895 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
6898 2011-05-12 Kai Tietz <ktietz@redhat.com>
6900 * gimplify.c (gimple_boolify): Re-boolify expression
6901 arguments even if expression type is of kind BOOLEAN_TYPE.
6902 (gimplify_boolean_expr): Removed.
6903 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
6904 and XOR. Additional take care that we keep expression's type.
6905 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
6906 of TRUTH_AND|OR|XOR_EXPR.
6908 2011-05-12 Jakub Jelinek <jakub@redhat.com>
6910 PR tree-optimization/48975
6911 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
6912 on all bbs here and free and clear ifc_bbs at the end.
6914 2011-05-12 Richard Guenther <rguenther@suse.de>
6916 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
6917 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
6918 until after simple checks.
6919 (gimple_types_compatible_p): Likewise.
6920 (iterative_hash_gimple_type): Always hash pointer targets
6921 and function return and argument types.
6922 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
6923 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
6924 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
6925 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
6926 completely in the simple compare section.
6927 (gimple_register_canonical_type): Query the cache again after
6930 2011-05-12 Richard Guenther <rguenther@suse.de>
6932 PR tree-optimization/48172
6933 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
6934 the number of iterations from the segment size calculation.
6935 (vect_create_cond_for_alias_checks): Adjust.
6937 2011-05-12 Jakub Jelinek <jakub@redhat.com>
6940 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
6941 if validate_subreg fails.
6943 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
6945 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
6946 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
6949 2011-05-12 DJ Delorie <dj@redhat.com>
6951 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
6952 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
6953 created builtin into rx_builtins array.
6954 (rx_builtin_decl): New function.
6955 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
6957 2011-05-12 DJ Delorie <dj@redhat.com>
6958 Nick Clifton <nickc@redhat.com>
6960 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
6961 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
6962 (rx_is_legitimate_address): Add pre-decrement and post-increment
6963 addressing in HImode and QImode. Fix test for out of range
6965 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
6966 (rx_align_for_label): Test label before extracting its usage count.
6967 (rx_adjust_insn_lengths): Fix selection of insn codes.
6968 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
6970 2011-05-11 Jason Merrill <jason@redhat.com>
6972 * tree.c (type_hash_canon): Use struct tree_type_non_common.
6974 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
6976 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
6977 reindent the subsequent block.
6979 2011-05-11 Satoru Takabayashi <satorux@google.com>
6980 Paul Pluzhnikov <ppluzhnikov@google.com>
6982 * doc/install.texi (Configuration): Document --with-linker-hash-style.
6983 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
6984 * config.in: Add LINKER_HASH_STYLE.
6985 * configure.ac: Add --with-linker-hash-style.
6986 * configure: Regenerate.
6988 2011-05-11 Richard Guenther <rguenther@suse.de>
6991 * gimple.c (iterative_hash_canonical_type): Fix typo.
6993 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
6995 * config/i386/i386.c (legitimize_tls_address)
6996 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
6997 expanders directly for TARGET_GNU2_TLS. Determine pic and
6998 __tls_get_addr symbol reference here. Update call to
6999 gen_tls_global_dynamic_{32,64} for added arguments.
7000 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
7001 expanders directly for TARGET_GNU2_TLS. Determine
7002 __tls_get_addr symbol reference here. Update call to
7003 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
7004 unique UNSPEC REG_EQUIV to libcall block.
7005 (ix86_tls_get_addr): Declare static.
7006 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
7007 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
7008 Do not determine pic and __tls_get_addr symbol reference here. Do not
7009 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
7010 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
7011 (tls_global_dynamic_64): Add operand 2. Do not determine
7012 __tls_get_addr symbol reference here. Do not call
7013 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
7014 (tls_local_dynamic_base64): Ditto for operand 1.
7016 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
7018 * function.c (expand_function_start): Initialize stack_check_probe_note
7019 only if the generic stack checking mechanism is used.
7021 2011-05-11 Richard Guenther <rguenther@suse.de>
7023 PR tree-optimization/15256
7024 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
7025 (A & B) | C, combine (A op CST1) op CST2.
7026 (tree_ssa_forward_propagate_single_use_vars): Only bother to
7027 visit assigns that have uses.
7029 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
7031 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
7032 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
7033 (unpack_ts_type_common_value_fields): ...this. Update comment.
7034 (unpack_value_fields): Adjust for renaming.
7035 (lto_input_ts_type_tree_pointers): Split into...
7036 (lto_input_ts_type_common_tree_pointer): ...this and...
7037 (lto_input_ts_type_non_common_tree_pointers): ...this.
7038 (lto_input_tree_pointers): Adjust for above split.
7039 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
7040 (pack_ts_type_common_value_fields): ...this. Update comment.
7041 (lto_output_ts_type_tree_pointers): Split into...
7042 (lto_output_ts_type_common_tree_pointers): ...this and...
7043 (lto_output_ts_type_non_common_tree_pointers): ...this.
7044 (lto_output_tree_pointers): Adjust for above split.
7045 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
7046 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
7047 * stor-layout.c (vector_type_mode): Adjust location of mode field.
7048 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
7050 (struct tree_type): Split into...
7051 (struct tree_type_common: ...this and...
7052 (struct tree_type_with_lang_specific): ...this and...
7053 (struct tree_type_non_common): ...this. Adjust accessor macros
7055 (TYPE_VALUES_RAW): Define.
7056 (union tree_node): Update for above changes.
7057 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
7059 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
7060 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
7061 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
7062 * treestructu.def (TS_TYPE): Remove.
7063 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
7066 2011-05-11 Jakub Jelinek <jakub@redhat.com>
7069 * tree-ssa.c (reset_debug_uses): New function.
7070 * tree-flow.h (reset_debug_uses): New prototype.
7071 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
7072 * tree-loop-distribution.c (generate_loops_for_partition): Call
7073 reset_debug_uses on the stmts that will be removed. Keep around
7074 all debug stmts, don't count them as bits in partition bitmap.
7075 (generate_builtin): Don't count debug stmts or labels as bits in
7078 2011-05-11 Richard Guenther <rguenther@suse.de>
7080 * gimple.c (gimple_type_hash_1): Merge with ...
7081 (gimple_type_hash): ... this.
7082 (gtc_visit): Remove mode parameter and simplify accordingly.
7083 (gimple_types_compatible_p_1): Likewise.
7084 (gimple_types_compatible_p): Likewise.
7085 (iterative_hash_gimple_type): Likewise.
7087 (gimple_type_eq): Adjust.
7089 2011-05-11 Revital Eres <revital.eres@linaro.org>
7091 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
7092 enters the branch create an anti edge in the opposite direction
7093 to prevent the creation of reg-moves.
7094 * modulo-sched.c: Adjust comment to reflect the fact we are
7095 scheduling closing branch.
7096 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
7097 (stage_count): New field in struct partial_schedule.
7098 (calculate_stage_count): New function.
7099 (normalize_sched_times): Rename to reset_sched_times and handle
7100 incrementing the sched time of the nodes by a constant value
7101 passed as parameter.
7102 (duplicate_insns_of_cycles): Skip closing branch.
7103 (sms_schedule_by_order): Schedule closing branch.
7104 (ps_insn_find_column): Handle closing branch.
7105 (sms_schedule): Call reset_sched_times and adjust the code to
7106 support scheduling of the closing branch.
7107 (ps_insert_empty_row): Update calls to normalize_sched_times
7108 and rotate_partial_schedule functions.
7110 2011-05-11 Richard Guenther <rguenther@suse.de>
7113 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
7115 2011-05-11 Joseph Myers <joseph@codesourcery.com>
7117 * opts.c (finish_options): Move warning settings from process_options.
7118 * toplev.c (process_options): Move warning settings to finish_options.
7120 2011-05-11 Richard Guenther <rguenther@suse.de>
7122 PR tree-optimization/18041
7123 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
7124 (simplify_bitwise_binary): ... this. Handle operand conversions
7125 by applying them to the result instead.
7126 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
7128 2011-05-11 Richard Guenther <rguenther@suse.de>
7130 * gimple.c (gimple_canonical_types_compatible_p): Split out
7131 from gimple_types_compatible_p and friends. Do not recurse
7132 to pointed-to types.
7133 (gimple_canonical_type_eq): Use it.
7134 (iterative_hash_canonical_type): Split out from
7135 iterative_hash_gimple_type and friends. Do not recurse
7136 to pointed-to types.
7137 (gimple_canonical_type_hash): Use it, allocate the hash here.
7139 2011-05-11 Revital Eres <revital.eres@linaro.org>
7141 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
7144 2011-05-11 Revital Eres <revital.eres@linaro.org>
7146 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
7147 instead of PREV_INSN.
7149 2011-05-11 Revital Eres <revital.eres@linaro.org>
7151 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
7152 * loop-doloop.c (doloop_condition_get): Likewise.
7153 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
7155 * config/arm/arm.md (*addsi3_compare0): Remove "*".
7157 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
7159 * tree.def (CASE_LABEL_EXPR): Add an operand.
7160 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
7162 2011-05-10 Joseph Myers <joseph@codesourcery.com>
7164 * c-decl.c (c_override_global_bindings_to_false): Remove.
7165 (global_bindings_p): Don't check
7166 c_override_global_bindings_to_false.
7167 * c-tree.h (c_override_global_bindings_to_false): Remove.
7168 * c-typeck.c (composite_type): Don't set
7169 c_override_global_bindings_to_false.
7171 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
7173 PR target/48857, 48495
7174 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
7176 (VSX_MOVE_MODE): Ditto.
7177 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
7178 VSX vector types. Add V2DImode.
7179 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
7180 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
7181 (MODES_TIEABLE_P): Ditto.
7183 * config/rs6000/rs6000.c (rs6000_emit_move): Use
7184 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
7186 (init_cumulative_args): Ditto.
7187 (rs6000_function_arg_boundary): Ditto.
7188 (rs6000_function_arg_advance_1): Ditto.
7189 (rs6000_function_arg): Ditto.
7190 (rs6000_function_ok_for_sibcall): Ditto.
7191 (emit_frame_save): Ditto.
7192 (rs6000_function_value): Ditto.
7193 (rs6000_libcall_value): Ditto.
7195 2011-05-10 Joseph Myers <joseph@codesourcery.com>
7197 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
7198 i386/darwin-lib.h to $libgcc_tm_file.
7199 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
7201 2011-05-10 Joseph Myers <joseph@codesourcery.com>
7203 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
7205 2011-05-10 Joseph Myers <joseph@codesourcery.com>
7207 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
7208 * config/rs6000/rs6000-tables.opt: New file (generated).
7209 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
7210 rs6000/rs6000-tables.opt to extra_options.
7211 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
7212 * config/rs6000/rs6000.c (rs6000_select): Remove.
7213 (processor_target_table): Move contents to rs6000-cpus.def.
7214 (darwin_rs6000_override_options): Check
7215 global_options_set.x_rs6000_cpu_index instead of
7216 rs6000_select[1].string.
7217 (rs6000_option_override_internal): Likewise.
7218 (rs6000_handle_option): Don't assert that global structures are in
7219 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
7220 (rs6000_default_cpu): New variable.
7221 (rs6000_file_start): Set it instead of local default_cpu. Check
7222 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
7223 global_options_set.x_rs6000_tune_index instead of rs6000_select.
7224 (rs6000_darwin_file_start): Check rs6000_default_cpu and
7225 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
7226 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
7227 rs6000_select): Remove.
7228 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
7230 (mcpu=, mtune=): Use Var, Init, Enum and Save.
7231 * config/rs6000/t-rs6000
7232 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
7233 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
7234 global_options_set.x_rs6000_cpu_index instead of
7235 rs6000_select[1].string.
7236 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
7237 global_options_set.x_rs6000_cpu_index instead of
7238 rs6000_select[1].string.
7240 2011-05-10 Joseph Myers <joseph@codesourcery.com>
7242 * config.gcc (libgcc_tm_file): Define instead of including files
7243 from ../../libgcc/config/ in tm_file.
7244 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
7245 * configure: Regenerate.
7246 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
7247 libgcc_tm.h, cs-libgcc_tm.h): New.
7248 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
7249 (clean): Remove libgcc_tm.h.
7250 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
7251 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
7252 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
7254 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
7257 * config/avr/avr.c (avr_ret_register): Return unsigned int
7259 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
7260 it to avr_libcall_value.
7261 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
7263 (avr_expand_binop_builtin): Ditto.
7264 (avr_expand_unop_builtin): Ditto.
7266 2011-05-10 DJ Delorie <dj@redhat.com>
7268 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
7269 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
7270 * config/rx/rx.c (rx_align_for_label): Add label and
7271 uses_threshold parameters. Do not align when the label is not
7273 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
7275 2011-05-10 Richard Guenther <rguenther@suse.de>
7277 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
7278 a series of conversions and apply foldings similar to what
7280 (tree_ssa_forward_propagate_single_use_vars): Call it.
7282 2011-05-10 Jakub Jelinek <jakub@redhat.com>
7284 PR tree-optimization/48611
7285 PR tree-optimization/48794
7286 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
7287 referenced from RESX or EH_DISPATCH arguments.
7290 * dfp.c (decimal_to_decnumber): Handle conversion from
7291 dconst{1,2,m1,half}.
7293 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
7295 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
7296 for !flag_prefer_avx128.
7297 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
7299 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
7301 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
7302 (fold_ternary_loc): Use expr_location_or.
7304 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
7307 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
7308 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
7309 Pmode and mem_mode is not VOIDmode.
7311 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
7313 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
7314 TYPE_QUAL_RESTRICT): Convert to enum.
7316 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
7318 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
7319 (const_pow2_1_to_8_operand): Ditto.
7320 (const_pow2_1_to_128_operand): Ditto.
7321 (const_pow2_1_to_32768_operand): Ditto.
7322 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
7323 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
7324 in insn constraint to check integer value of operand 3.
7325 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
7327 (PINSR_MODE): New mode iterator.
7328 (sse2p4_1): New mode attribute.
7329 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
7330 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
7331 iterator. Use const_int_operand instead of
7332 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
7333 exact_log2 in insn constraint to check integer value of operand 3.
7335 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
7337 * config/i386/sse.md (blendbits): Remove mode attribute.
7338 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
7339 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
7340 Check integer value of operand 3 in insn constraint.
7342 2011-05-09 Richard Guenther <rguenther@suse.de>
7344 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
7346 (lto_symtab_merge): Likewise. Do not register types here.
7347 (lto_symtab_merge_decls_2): Likewise.
7348 (lto_symtab_merge_decls_1): Likewise.
7349 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
7350 * gimple.c (enum gtc_mode): Declare.
7351 (gimple_types_compatible_p): Make static.
7353 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7355 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
7356 temporary register to match Pmode.
7358 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
7360 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
7361 and *vec_concatv4si_1_avx.
7363 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
7365 PR rtl-optimization/48927
7366 * ira-conflicts.c (commutative_constraint_p): Use
7367 recog_data.alternative_enabled_p to disable alternatives where
7368 "enabled" attribute is false.
7369 (get_dup_num): Ditto.
7370 * ira-lives.c (single_reg_class): Ditto.
7371 (ira_implicitly_set_insn_hard_regs): Ditto.
7373 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
7375 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
7376 (dataflow_set_preserve_mem_locs): Likewise.
7378 2011-05-09 Philipp Thomas <pth@suse.de>
7380 * config/mep/mep.c (mep_validate_vliw): Syntax description
7381 should not be translated.
7383 2011-05-09 Joseph Myers <joseph@codesourcery.com>
7385 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
7386 * config/mips/mips-tables.opt: New file (generated).
7387 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
7388 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
7389 MIPS_ARCH_OPTION_NATIVE): Define.
7390 * config/mips/mips.c (mips_cpu_info_table): Move contents to
7392 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
7393 mips_parse_cpu): Remove.
7394 (mips_cpu_info_from_opt, mips_default_arch): New.
7395 (mips_handle_option): Don't assert that global structures are in
7396 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
7397 (mips_option_override): Use new variables and functions to set
7398 state of these options. Use strcmp to check for individual CPU names.
7399 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
7401 * config/mips/mips.opt (march=): Use ToLower and Enum.
7402 (mips): Use ToLower, Enum and Var.
7403 (mtune=): Use ToLower and Enum.
7404 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
7406 2011-05-08 Jan Hubicka <jh@suse.cz>
7408 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
7409 Arrange type pairs to be UID ordered.
7410 (gimple_lookup_type_leader): Make inline.
7412 2011-05-09 Nick Clifton <nickc@redhat.com>
7415 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
7419 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
7422 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
7424 * combine.c (simplify_comparison): Abstract out parts into...
7425 (simplify_compare_const): ... new function.
7426 (try_combine): Generalize parallel arithmetic/compare combining
7427 to call simplify_compare_const() and CANONICALIZE_COMPARE().
7429 2011-05-08 Jan Hubicka <jh@suse.cz>
7431 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
7432 (cgraph_create_virtual_clone): Call hooks once virtual clone
7434 * cgraph.h (cgraph_clone_node): Update prototype.
7435 * ipa-cp.c (ipcp_estimate_growth): Use
7436 estimate_ipcp_clone_size_and_time.
7437 * ipa-inline-transform.c (clone_inlined_nodes): Update.
7438 * lto-cgraph.c (input_node): Update.
7439 * ipa-inline.c (recursive_inlining): Update.
7440 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
7441 (evaluate_conditions_for_known_args): Break out from ...
7442 (evaluate_conditions_for_edge): ... here.
7443 (evaluate_conditions_for_ipcp_clone): New function.
7444 (inline_node_duplication_hook): Update clone summary based
7446 (estimate_callee_size_and_time): Rename to ...
7447 (estimate_node_size_and_time): take NODE instead of EDGE;
7448 take POSSIBLE_TRUTHS as argument.
7449 (estimate_callee_size_and_time): Update.
7450 (estimate_ipcp_clone_size_and_time): New function.
7451 (do_estimate_edge_time): Update.
7453 2011-05-08 Richard Guenther <rguenther@suse.de>
7457 * expmed.c (expand_shift_1): Compute adjusted constant shift
7460 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
7462 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
7464 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
7466 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
7468 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
7470 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
7472 2011-05-07 Jan Hubicka <jh@suse.cz>
7474 * ipa-inline-transform.c (inline_call): Account when program size
7476 * ipa-inline.c (relative_time_benefit): New function.
7477 (edge_badness): Reorganize to be power 2 based; fix thinko when
7478 computing badness for negative growth; update comments to match
7479 reality; better dumps.
7481 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
7483 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
7484 type to bool and adjust comment.
7485 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
7486 (fold_mathfn_compare): Remove calls to global_bindings_p.
7487 (fold_inf_compare): Likewise.
7488 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
7489 * c-tree.h (global_bindings_p): Adjust prototype.
7490 * c-decl.c (global_bindings_p): Return bool and simplify.
7492 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
7494 PR tree-optimization/48837
7495 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
7496 when accumulator transformation is performed.
7498 2011-05-06 Jan Hubicka <jh@suse.cz>
7500 * i386.h (ix86_tune_indices): Add
7501 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
7502 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
7503 * i386.c (initial_ix86_tune_features): Add
7504 X86_SOFTARE_PREFETCHING_BENEFICIAL.
7505 (software_prefetching_beneficial_p): Remove predicate.
7506 (ix86_option_override_internal): Use new macro.
7508 2011-05-06 Jan Hubicka <jh@suse.cz>
7510 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
7512 2011-05-06 Jan Hubicka <jh@suse.cz>
7514 * cgraph.c (cgraph_add_thunk): Create real function node instead
7515 of alias node; finalize it and mark needed/reachale; arrange visibility
7516 to be right and add it into the corresponding same comdat group list.
7517 (dump_cgraph_node): Dump thunks.
7518 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
7519 cgraph_function_with_gimple_body_p,
7520 cgraph_first_function_with_gimple_body,
7521 cgraph_next_function_with_gimple_body): New functions.
7522 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
7524 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
7525 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
7526 * cgraphunit.c (cgraph_finalize_function): Only look into possible
7527 devirtualization when optimizing.
7528 (verify_cgraph_node): Verify thunks.
7529 (cgraph_analyze_function): Analyze thunks.
7530 (cgraph_mark_functions_to_output): Output thunks only in combination
7531 with function they are assigned to.
7532 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
7533 alias into normal node.
7534 (assemble_thunks): New functoin.
7535 (cgraph_expand_function): Use it.
7536 * lto-cgraph.c (lto_output_node): Stream thunks.
7537 (input_overwrite_node): Stream in thunks.
7538 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
7539 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
7540 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
7541 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
7542 (inline_analyze_function): Do not care about thunk jump functions.
7543 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
7544 * ipa-prop.c (ipa_prop_write_jump_functions): Use
7545 cgraph_function_with_gimple_body_p.
7546 * passes.c (do_per_function_toporder): Use
7547 cgraph_function_with_gimple_body_p.
7548 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
7549 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
7550 (function_called_by_processed_nodes_p): Likewise.
7552 2011-05-06 Joseph Myers <joseph@codesourcery.com>
7554 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
7555 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
7557 (mabi=): Replace with separate entries for mabi=altivec,
7558 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
7559 mabi=ieeelongdouble and mabi=ibmlongdouble.
7560 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
7561 check for -mabi=spe without SPE ABI support here.
7562 (rs6000_handle_option): Replace OPT_mabi_ handling with
7563 OPT_mabi_altivec and OPT_mabi_spe handling.
7565 2011-05-06 Cary Coutant <ccoutant@google.com>
7567 * dwarf2out.c (contains_subprogram_definition): New function.
7568 (should_move_die_to_comdat): Call it.
7570 2011-05-06 Jeff Law <law@redhat.com>
7572 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
7573 remove_ctrl_stmt_and_useless_edges.
7574 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
7575 (fixup_template_block, thread_single_edge): Likewise.
7576 (mark_threaded_blocks): Use THREAD_TARGET.
7578 2011-05-06 Alan Modra <amodra@gmail.com>
7581 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
7582 const0_rtx as the arg to the dummy __tls_get_addr libcall.
7584 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
7586 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
7587 constraint modifier to "r".
7589 2011-05-06 Joseph Myers <joseph@codesourcery.com>
7591 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
7592 fall through for OPT_mcmodel_.
7594 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7596 * config/s390/s390.c (s390_asm_trampoline_template): Comment
7598 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
7600 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7603 * config/arm/arm.opt (marm): Document it.
7604 (mthumb): Reject negative variant.
7606 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
7609 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7610 Fix typo in "ccvt" variable name.
7612 2011-05-06 Tristan Gingold <gingold@adacore.com>
7615 * config/vms/vms-ar.c (main): Remove cwd variable.
7617 2011-05-06 Jakub Jelinek <jakub@redhat.com>
7620 * var-tracking.c (prepare_call_arguments): Move else before #endif.
7622 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
7624 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
7625 * gimplify.c (gimplify_switch_expr): Likewise.
7626 * omp-low.c (expand_omp_sections): Likewise.
7627 * tree-eh.c (lower_try_finally_switch): Likewise.
7628 (lower_eh_dispatch): Likewise.
7629 * tree.h (build_case_label): Declare.
7630 * tree.c (build_case_label): Define.
7632 2011-05-05 Jason Merrill <jason@redhat.com>
7635 * tree-inline.c (copy_tree_r): Use copy_statement_list.
7636 (copy_statement_list): Don't recurse.
7637 * stor-layout.c (copy_self_referential_tree_r): Don't allow
7640 2011-05-05 Joseph Myers <joseph@codesourcery.com>
7642 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
7643 through from -mfpu= handling.
7644 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
7646 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
7648 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
7651 2011-05-05 Steve Ellcey <sje@cup.hp.com>
7653 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
7655 (hppa[12]*-*-hpux11*): Ditto.
7656 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
7657 * config/ia64/hpux-unix2003.h: New.
7658 * config/pa/pa-hpux1131.opt: New.
7659 * config/pa/pa-hpux1131.h: New.
7660 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
7661 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
7662 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
7664 2011-05-05 Jakub Jelinek <jakub@redhat.com>
7667 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
7668 instead of mode as 3rd argument to recursive call.
7669 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
7670 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
7672 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
7673 don't give up if mode is Pmode and mem_mode is not VOIDmode.
7674 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
7675 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
7677 2011-05-05 Julian Brown <julian@codesourcery.com>
7679 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
7680 parenthesis in D-register case.
7682 2011-05-05 Joseph Myers <joseph@codesourcery.com>
7684 * opt-functions.awk (var_type_struct): Handle Enum options.
7685 * optc-gen.awk: Don't check range of variables of character type.
7686 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
7687 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
7688 rs6000_sdata_name, rs6000_explicit_options): Remove.
7689 (rs6000_option_override_internal): Check for -malign-power here.
7690 Use global_options_set instead of rs6000_explicit_options.
7691 (rs6000_parse_fpu_option): Remove.
7692 (rs6000_handle_option): Access variables via opts and opts_set
7693 pointers. Use error_at and warning_at. Add fall-through
7694 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
7695 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
7696 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
7697 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
7698 here. Don't use rs6000_parse_fpu_option.
7699 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
7700 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
7701 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
7703 (mspe): Use Var and Save.
7704 (mtraceback=): Use Enum and Var.
7705 (rs6000_traceback_type): New Enum and EnumValue entries.
7706 (mfloat-gprs=): Use Enum, Var and Save.
7707 (rs6000_float_gprs): New Enum and EnumValue entries.
7708 (mlong-double-): use Var and Save.
7709 (msched-costly-dep=, minsert-sched-nops=): Use Var.
7710 (malign-): Use Enum and Var.
7711 (rs6000_alignment_flags): New Enum and EnumValue entries.
7713 (fpu_type_t): New Enum and EnumValue entries.
7714 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7715 global_options_set instead of rs6000_explicit_options.
7716 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7717 global_options_set instead of rs6000_explicit_options.
7718 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7719 global_options_set instead of rs6000_explicit_options.
7720 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7721 global_options_set instead of rs6000_explicit_options.
7722 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
7723 global_options_set instead of rs6000_explicit_options.
7724 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7725 global_options_set instead of rs6000_explicit_options.
7726 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
7728 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7729 global_options_set instead of rs6000_explicit_options.
7730 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
7731 (rs6000_cmodel): New Enum and EnumValue entries.
7732 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7733 global_options_set instead of rs6000_explicit_options.
7734 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
7735 (mtls-size=): Use Enum and Var.
7736 (rs6000_tls_size): New Enum and EnumValue entries.
7738 2011-05-05 Michael Matz <matz@suse.de>
7740 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
7741 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
7742 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
7743 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
7744 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
7745 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
7746 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
7747 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
7748 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
7749 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
7750 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
7751 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
7752 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
7753 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
7754 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
7755 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
7757 2011-05-05 Richard Guenther <rguenther@suse.de>
7759 * expmed.c (expand_variable_shift): Rename to ...
7760 (expand_shift_1): ... this. Take an expanded shift amount.
7761 For rotates recurse directly not building trees for the shift amount.
7762 (expand_variable_shift): Wrap around expand_shift_1.
7763 (expand_shift): Adjust.
7765 2011-05-05 Jakub Jelinek <jakub@redhat.com>
7767 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
7769 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
7771 * tree.h (get_pending_sizes): Remove prototype.
7772 (put_pending_size): Likewise.
7773 (put_pending_sizes): Likewise.
7774 * stor-layout.c (pending_sizes): Delete.
7775 (get_pending_sizes): Likewise.
7776 (put_pending_size): Likewise.
7777 (put_pending_sizes): Likewise.
7778 (variable_size): Do not call put_pending_size and tidy up.
7779 * function.h (struct function): Remove dont_save_pending_sizes_p.
7780 * lto-streamer-in.c (input_function): Do not stream it.
7781 * lto-streamer-out.c (output_function): Likewise.
7782 * tree-inline.c (initialize_cfun): Do not copy it.
7783 * c-decl.c (store_parm_decls): Do not set it.
7784 * omp-low.c (create_task_copyfn): Likewise.
7785 * tree-optimize.c (tree_rest_of_compilation): Likewise.
7787 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
7789 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
7791 (*movdf_internal): Ditto.
7792 (*movdf_internal_nointeger): Ditto.
7793 (*movsf_internal): Ditto.
7795 2011-05-05 Joseph Myers <joseph@codesourcery.com>
7797 * c-decl.c (finish_decl): Don't call get_pending_sizes.
7798 (grokparm): Add parameter expr. Pass it to grokdeclarator.
7799 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
7800 (c_variable_size): Remove.
7801 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
7802 call put_pending_sizes.
7803 (get_parm_info): Add parameter expr. Use it to set
7804 arg_info->pending_sizes.
7805 (store_parm_decls): Use arg_info->pending_sizes instead or calling
7807 * c-parser.c (c_parser_parms_declarator): Update call to
7808 c_parser_parms_list_declarator.
7809 (c_parser_parms_list_declarator): Take parameter expr. Update
7810 call to push_parm_decl. Update recursive call. Don't call
7811 get_pending_sizes. Update calls to get_parm_info.
7812 (c_parser_objc_method_definition): Update calls to
7813 c_parser_objc_method_decl and objc_start_method_definition.
7814 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
7815 (c_parser_objc_method_decl): Add parameter expr. Update call to
7817 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
7818 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
7819 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
7821 2011-05-05 Michael Hope <michael.hope@linaro.org>
7824 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
7827 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7829 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
7830 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
7831 (spu_output_mi_thunk): New function.
7833 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7835 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
7836 targetm.asm_out.print_operand.
7837 * config/sol2.c: Include target.h.
7839 2011-05-04 Jan Hubicka <jh@suse.cz>
7841 * ipa-inline.c (reset_edge_caches): New function.
7842 (update_caller_keys): Add check_inlinablity_for; do not
7843 reset edge caches; remove now unnecesary loop.
7844 (update_callee_keys): Add comments; reset node_growth_cache of callee.
7845 (update_all_callee_keys): Likewise.
7846 (inline_small_functions): Sanity check cache; update code
7849 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
7851 PR rtl-optimization/47612
7852 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
7853 as the last insn of the sequence to be moved.
7855 2011-05-04 Tobias Burnus <burnus@net-b.de>
7858 * doc/invoke.texi (Ofast): Document that it
7859 enables Fortran's -fno-protect-parens.
7861 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
7863 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
7865 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
7867 * stor-layout.c (variable_size): Do not issue errors.
7869 2011-05-04 Richard Guenther <rguenther@suse.de>
7871 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
7872 for array-ref indices.
7873 (tree_coverage_counter_addr): Likewise.
7874 (build_fn_info_type): Use size_int for index types.
7875 (build_gcov_info): Likewise.
7877 2011-05-04 Richard Guenther <rguenther@suse.de>
7879 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
7881 * c-typeck.c (really_start_incremental_init): Use bitsize_int
7882 for constructor indices.
7883 (push_init_level): Likewise.
7885 2011-05-04 Richard Guenther <rguenther@suse.de>
7887 * explow.c (promote_mode): Move variable declarations before code.
7889 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
7891 * tree.h (build_function_type_array): Declare.
7892 (build_varargs_function_type_array): Declare.
7893 (build_function_type_vec, build_varargs_function_type_vec): Define.
7894 * tree.c (build_function_type_array_1): New function.
7895 (build_function_type_array): New function.
7896 (build_varargs_function_type_array): New function.
7898 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
7900 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
7901 before setting STMT_VINFO_TYPE.
7903 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7905 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
7906 instead of spu_pass_by_reference.
7908 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7910 * calls.c (emit_library_call_value_1): Invoke
7911 promote_function_mode hook on libcall arguments.
7912 * explow.c (promote_function_mode, promote_mode): Handle TYPE
7913 argument being NULL.
7914 * targhooks.c (default_promote_function_mode): Lisewise.
7915 * config/s390/s390.c (s390_promote_function_mode): Likewise.
7916 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
7918 * doc/tm.texi: Document that TYPE argument might be NULL.
7920 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7922 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
7924 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7927 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
7929 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7931 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
7932 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
7934 * mips-tfile.c: ... here.
7935 Don't include coretypes.h, tm.h, filenames.h.
7936 (saber_stop): Remove definition and all calls.
7937 [__SABER__]: Remove.
7938 (__LINE__): Remove default.
7939 (Size_t, Ptrdiff_t): Remove definitions.
7940 Replace by size_t, ptrdiff_t.
7941 [!MIPS_DEBUGGING_INFO]: Remove.
7942 (SHASH_SIZE, THASH_SIZE): Remove defaults.
7943 (progname): Add const.
7945 Replace all uses by static.
7946 (ALIGN_SYMTABLE_OFFSET): Remove default.
7947 * mips-tdump.c: Don't include coretypes.h, tm.h.
7948 Remove !MIPS_IS_STAB guard.
7949 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
7950 $(TM_H), filenames.h dependencies.
7951 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
7953 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7956 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
7957 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
7959 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7962 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
7963 account and save/restore RETS.
7964 (PROFILE_BEFORE_PROLOGUE): Define.
7965 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
7966 the push insn to use predecrement.
7968 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7971 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
7973 2011-05-04 Nick Clifton <nickc@redhat.com>
7975 * config/mn10300/mn10300.c: Include cfgloop.h.
7977 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
7978 Lcc or a FLcc insn into the instruction stream.
7979 (mn10300_block_contains_call): New function. Returns true if the
7980 given basic block contains a CALL insn.
7981 (mn10300_loop_contains_call_insn): New function. Returns true if
7982 the given loop contains a CALL insn.
7983 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
7984 to use the SETLB and Lcc or FLcc insns.
7985 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
7986 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
7987 * config/mn10300/mn10300.opt (msetlb): New option. Used to
7988 disable the SETLB optimization.
7989 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
7990 __SETLB__ or __NO_SETLB__.
7991 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
7992 (movsf_internal): Handle MDR register.
7993 (cmpsi): Make visible.
7994 (setlb): New pattern.
7996 (FLcc): New pattern.
7998 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
8001 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
8002 for reg<->xmm moves.
8003 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
8004 (vec_concatv2di_rex64_sse): Ditto.
8005 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
8006 (*vec_extractv2di_1_rex64): Ditto.
8009 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
8011 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
8013 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
8015 2011-05-04 Richard Guenther <rguenther@suse.de>
8017 * tree.h (int_const_binop): Remove notrunc argument.
8018 * fold-const.c (int_const_binop): Remove notrunc argument. Always
8019 create integer constants that are properly truncated.
8020 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
8021 (const_binop): Remove zero notrunc argument to int_const_binop.
8022 (size_binop_loc): Likewise.
8023 (fold_div_compare): Likewise.
8024 (maybe_canonicalize_comparison_1): Likewise.
8025 (fold_comparison): Likewise.
8026 (fold_binary_loc): Likewise.
8027 (multiple_of_p): Likewise.
8028 * expr.c (store_constructor): Likewise.
8029 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
8030 (maybe_fold_stmt_addition): Likewise.
8031 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
8032 * stor-layout.c (layout_type): Likewise.
8033 * tree-data-ref.c (tree_fold_divides_p): Likewise.
8034 * tree-sra.c (build_ref_for_offset): Likewise.
8035 (build_user_friendly_ref_for_offset): Likewise.
8036 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
8037 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
8038 * tree-ssa-loop-niter.c (inverse): Likewise.
8039 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
8040 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
8041 * tree-switch-conversion.c (check_range): Likewise.
8042 (build_constructors): Likewise.
8043 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
8044 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
8045 (extract_range_from_assert): Likewise.
8046 (vrp_int_const_binop): Likewise.
8047 (extract_range_from_binary_expr): Likewise.
8048 (extract_range_from_unary_expr): Likewise.
8049 (check_array_ref): Likewise.
8050 (find_case_label_range): Likewise.
8051 (simplify_div_or_mod_using_ranges): Likewise.
8052 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
8053 comparing case labels for merging.
8055 2011-05-03 Mark Wielaard <mjw@redhat.com>
8057 * dwarf2out.c (debug_str_hash_forced): Removed.
8058 (gen_label_for_indirect_string): Removed.
8059 (get_debug_string_label): Removed.
8060 (AT_string_form): Generate label directly.
8061 (output_indirect_string): Test indirect_string_node for
8062 DW_FORM_strp instead of checking label and refcount.
8063 (prune_indirect_string): Removed.
8064 (prune_unused_types): Don't check debug_str_hash_forced or
8065 call prune_indirect_string.
8067 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
8070 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
8072 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
8076 * combine.c (try_combine): Skip debug insns at m_split tests.
8078 2011-04-26 Mark Wielaard <mjw@redhat.com>
8081 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
8082 when info_section_emitted.
8084 2011-05-03 Joseph Myers <joseph@codesourcery.com>
8086 * config/mips/mips-opts.h: New.
8087 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
8089 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
8090 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
8091 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
8093 * config/mips/mips.h (enum mips_code_readable_setting): Move to
8095 (mips_abi, mips_code_readable): Don't declare.
8096 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
8097 (mabi=): Use Enum and Var.
8098 (mips_abi): New Enum and EnumValue entries.
8099 (mcode-readable=): Use Enum and Var.
8100 (mips_code_readable_setting): New Enum and EnumValue entries.
8101 (mr10k-cache-barrier=): Use Enum and Var.
8102 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
8104 2011-05-03 Jan Hubicka <jh@suse.cz>
8106 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
8107 replace hash by pointer map.
8108 (cgraph_node_set_element_def, cgraph_node_set_element,
8109 const_cgraph_node_set_element, varpool_node_set_element_def,
8110 varpool_node_set_element, const_varpool_node_set_element): Remove.
8111 (free_cgraph_node_set, free_varpool_node_set): New function.
8112 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
8113 * tree-emutls.c: Free varpool node set.
8114 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
8115 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
8116 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
8117 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
8118 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
8119 Move here from ipa.c; implement using pointer_map
8120 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
8121 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
8122 debug_cgraph_node_set, varpool_node_set_new,
8123 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
8124 dump_varpool_node_set, debug_varpool_node_set):
8125 Move to ipa-uitls.c.
8126 * passes.c (ipa_write_summaries): Update.
8128 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
8130 From Mike Frysinger:
8131 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
8132 bf542/bf544/bf547/bf548/bf549.
8134 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
8136 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
8138 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
8141 * config/bfin/bfin.md (MOVCC): New mode_macro.
8142 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
8143 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
8144 comments from generated assembly.
8146 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
8149 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
8150 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
8151 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
8152 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
8153 * config/bfin/lib1funcs.asm (___muldi3): New function.
8155 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8157 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
8158 build_function_type_list instead of build_function_type.
8159 Rearrange initialization of `args' to do so.
8161 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8163 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
8164 instead of build_function_type.
8166 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8168 * config/rs6000/rs6000.c (spe_init_builtins): Call
8169 build_function_type_list instead of build_function_type.
8170 (paired_init_builtins, altivec_init_builtins): Likewise.
8171 (builtin_function_type): Likewise.
8173 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8175 * config/sh/sh.c (sh_media_init_builtins): Call
8176 build_function_type_list instead of build_function_type.
8178 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8180 * config/sparc/sparc.c (sparc_file_end): Call
8181 build_function_type_list instead of build_function_type.
8183 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8185 * config/alpha/alpha.c (alpha_init_builtins): Call
8186 build_function_type_list instead of build_function_type.
8188 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8190 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
8191 build_function_type_list instead of build_function_type.
8193 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8195 * config/iq2000/i2000.c (iq2000_init_builtins): Call
8196 build_function_type_list instead of build_function_type.
8197 Delete `endlink' variable.
8199 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8201 * config/avr/avr.c (avr_init_builtins): Call
8202 build_function_type_list instead of build_function_type.
8204 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8206 * config/picochip/picochip.c (picochip_init_builtins): Call
8207 build_function_type_list instead of build_function_type.
8208 Delete `endlink' variable.
8210 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8212 * config/bfin/bfin.c (bfin_init_builtins): Call
8213 build_function_type_list instead of build_function_type.
8215 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
8218 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
8219 that's not CONST_INT. Seemingly redundant check is due to PR39768.
8221 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
8224 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
8225 libbffastfp overrides libgcc when -mfast-fp.
8227 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
8229 Originally from Bernd Schmidt
8230 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
8231 * config/bfin/bfin.c (override_options): Test it and error if
8234 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
8236 Originally From Bernd Schmidt
8237 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
8240 2011-05-03 Jeff Law <law@redhat.com>
8242 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
8243 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
8244 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
8245 than accessing AUX field directly. Free the AUX field before
8247 (thread_block, thread_through_loop_header): Likewise.
8248 (thread_single_edge, mark_threaded_blocks): Likewise.
8249 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
8250 (register_jump_thread): Do not attempt to thread to a NULL edge.
8252 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
8254 * function.c (init_function_start): Call decide_function_section.
8255 * varasm.c (decide_function_section): New function.
8256 (assemble_start_function): When not using
8257 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
8258 or first_function_block_is_cold.
8259 * rtl.h (decide_function_section): Declare.
8261 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
8262 Jakub Jelinek <jakub@redhat.com>
8265 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
8266 only succeed if req_mode is the same as set_mode.
8268 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
8270 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
8271 * genemit.c (gen_exp): Handle RETURN.
8272 * emit-rtl.c (verify_rtx_sharing): Likewise.
8273 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
8274 * rtl.c (copy_rtx): RETURN is shared.
8275 * rtl.h (enum global_rtl_index): Add GR_RETURN.
8277 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
8278 * config/s390/s390.c (s390_emit_epilogue): Likewise.
8279 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
8280 * config/cris/cris.c (cris_expand_return): Likewise.
8281 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
8282 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
8283 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
8284 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
8285 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
8287 * config/v850/v850.c (expand_epilogue): Likewise.
8288 * config/bfin/bfin.c (bfin_expand_call): Likewise.
8289 * config/arm/arm.md (epilogue): Likewise.
8290 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
8291 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
8292 variable to ret_reg.
8294 2011-05-03 Richard Guenther <rguenther@suse.de>
8297 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
8298 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
8299 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
8301 2011-05-03 Richard Guenther <rguenther@suse.de>
8303 * c-decl.c (grokdeclarator): Instead of looking at
8304 TREE_OVERFLOW check if the constant fits in the index type.
8306 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
8308 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
8309 (vec_store_lanes<mode><mode>): Likewise.
8311 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
8313 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
8314 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
8315 convert_optab_index values.
8316 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
8317 * genopinit.c (optabs): Initialize the new optabs.
8318 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
8319 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
8320 (expand_STORE_LANES): New functions.
8321 * tree.h (build_array_type_nelts): Declare.
8322 * tree.c (build_array_type_nelts): New function.
8323 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
8324 (vect_model_load_cost): Likewise.
8325 (vect_store_lanes_supported, vect_load_lanes_supported)
8326 (vect_record_strided_load_vectors): Declare.
8327 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
8328 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
8329 (vect_transform_strided_load): Split out statement recording into...
8330 (vect_record_strided_load_vectors): ...this new function.
8331 * tree-vect-stmts.c (create_vector_array, read_vector_array)
8332 (write_vector_array, create_array_ref): New functions.
8333 (vect_model_store_cost): Add store_lanes_p argument.
8334 (vect_model_load_cost): Add load_lanes_p argument.
8335 (vectorizable_store): Try to use store-lanes functions for
8337 (vectorizable_load): Likewise load-lanes and loads.
8338 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
8339 to vect_model_store_cost.
8340 (vect_build_slp_tree): Likewise vect_model_load_cost.
8342 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
8344 * hooks.h (hook_bool_mode_uhwi_false): Declare.
8345 * hooks.c (hook_bool_mode_uhwi_false): New function.
8346 * target.def (array_mode_supported_p): New hook.
8347 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
8348 * doc/tm.texi: Regenerate.
8349 * stor-layout.c (mode_for_array): New function.
8350 (layout_type): Use it.
8351 * config/arm/arm.c (arm_array_mode_supported_p): New function.
8352 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
8354 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
8357 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
8358 for -fstack-check if the size to allocate is negative.
8360 2011-05-02 Lawrence Crowl <crowl@google.com>
8362 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
8363 (timevar_cond_start): New for starting a timer only when it is not
8365 (timevar_cond_stop): New for stopping a timer when it was not already
8368 * timevar.c (timevar_stop): Enable start/stop timers to start again.
8369 (timevar_cond_start): New as above.
8370 (timevar_cond_stop): New as above.
8372 * timevar.def: Add start/stop timers for compiler phases,
8373 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
8374 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
8375 and TV_PHASE_FINALIZE.
8376 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
8377 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
8378 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
8379 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
8380 Make unused TV_OVERLOAD into a start/stop timer.
8382 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
8383 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
8384 to indicate that they are start/stop timers.
8386 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
8387 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
8388 Move initialization to do_compile.
8389 (do_compile): Add initialization from above.
8390 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
8392 * c-decl.c (c_write_global_declarations): Add start/stop of
8393 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
8395 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
8396 or TV_PARSE_INLINE, as appropriate.
8397 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
8398 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
8400 2011-05-02 Jason Merrill <jason@redhat.com>
8403 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
8405 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
8408 * c-decl.c (finish_decl): Only create a composite if the types are
8411 2011-05-02 Joseph Myers <joseph@codesourcery.com>
8413 * config/fr30/fr30-protos.h (Mmode): Don't define.
8414 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
8415 definition where used.
8416 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
8417 define. Expand definitions where used.
8418 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
8419 Expand definitions where used.
8420 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
8421 rx_function_arg, rx_function_arg_advance,
8422 rx_function_arg_boundary): Expand definitions of those macros.
8423 * config/v850/v850-protos.h (Mmode): Don't define. Expand
8424 definition where used.
8426 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
8428 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
8430 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
8431 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
8432 with *movv2sf_internal_rex64_avx.
8433 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
8434 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
8435 Use %v prefix in insn mnemonic to handle TARGET_AVX.
8436 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
8437 "vex" in "prefix" attribute calculation.
8438 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
8440 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
8443 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
8444 inputs match the output.
8446 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
8449 * config/m68k/m68k.c (m68k_expand_prologue): Set
8450 current_function_static_stack_size.
8452 2011-05-02 Jan Hubicka <jh@suse.cz>
8454 * lto-streamer.c (lto_streamer_cache_insert_1,
8455 lto_streamer_cache_lookup, lto_streamer_cache_create,
8456 lto_streamer_cache_delete): Use pointer map instead of hashtable.
8457 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
8459 2011-05-02 Joseph Myers <joseph@codesourcery.com>
8461 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
8462 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
8463 config/m68k/t-opts: New files.
8464 * config/m68k/m68k-tables.opt: New file (generated).
8465 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
8466 extra_options and m68k/t-opts to tmake_file.
8467 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
8468 (all_isas): Initialize using m68k-isas.def.
8469 (all_microarchs): Initialize using m68k-microarchs.def.
8470 (m68k_find_selection): Remove.
8471 (m68k_handle_option): Don't assert that global structures are in
8472 use. Use error_at. Access variables via opts pointer. Don't
8473 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
8474 directly for -m68020-40 and -m68020-60.
8475 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
8476 m68k_tune_entry here.
8477 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
8479 (m68k_library_id_string): Remove declaration.
8480 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
8481 (m68k_library_id_string): New Variable.
8482 (march=, mcpu=, mtune=): Use Enum and Var.
8484 2011-05-02 Richard Guenther <rguenther@suse.de>
8486 * varasm.c (output_constructor_regular_field): Compute zero-based
8487 index with double-ints. Make sure to ICE instead of producing
8489 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
8490 in asserts. Properly use a signed type.
8492 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
8494 * config/i386/sse.md (V): New mode iterator.
8495 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
8497 (V_256): Rename from AVX256MODE.
8498 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
8499 condition to all users.
8501 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
8502 condition to all users.
8503 (VF_128): Make V4SF mode unconditional.
8504 (VF_256): Rename from AVX256MODEF2P.
8505 (VI4F_128): Rename from SSEMODE4S.
8506 (VI8F_128): Rename from SSEMODE2D.
8507 (VI4F_256): Rename from AVX256MODE8P.
8508 (VI8F_256): Rename from AVX256MODE4P.
8509 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
8510 (ssescalarmodesuffix): Remove SF and DF modes.
8511 (SSEMODE124): Remove.
8512 (SSEMODE1248): Ditto.
8513 (SSEMODEF2P): Ditto.
8514 (AVXMODEF2P): Ditto.
8515 (AVXMODEFDP): Ditto.
8516 (AVXMODEFSP): Ditto.
8517 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
8519 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
8521 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
8522 xop_pcmov_<mode>256. Use V mode iterator.
8524 Adjust RTX patterns globally for renamed mode attributes.
8526 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8528 * haifa-sched.c (sched_emit_insn): Emit insn before first
8529 non-scheduled insn. Inform back-end about new insn. Add
8530 new insn to scheduled_insns list.
8532 2011-05-02 Richard Guenther <rguenther@suse.de>
8534 PR tree-optimization/48822
8535 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
8536 (process_scc): Indicate which iteration we start.
8538 2011-05-02 Jan Hubicka <jh@suse.cz>
8540 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
8541 (lto_section_overrun): New.
8542 * lto-section-out.c (append_block): Rename to ...
8543 (lto_append_block): ... this one; export.
8544 (lto_output_1_stream): Move lto lto-streamer.h
8545 (lto_output_data_stream): Update.
8546 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
8547 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
8550 2011-05-02 Richard Guenther <rguenther@suse.de>
8552 * tree.c (tree_code_counts): New global array.
8553 (record_node_allocation_statistics): Count individual tree codes.
8554 (dump_tree_statistics): Dump individual code stats.
8556 2011-05-01 Jan Hubicka <jh@suse.cz>
8558 * ipa-inline.c (caller_growth_limits): Fix thinko when
8559 looking for largest stack frame.
8560 * ipa-inline.h (dump_inline_summary): Declare.
8561 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
8563 (dump_inline_summary): Export.
8564 (debug_inline_summary): Declare as DEBUG_FUNCTION.
8566 2011-05-01 Anatoly Sokolov <aesok@post.ru>
8568 * reginfo.c (memory_move_cost): Change rclass argument type form
8569 'enum reg_class' to reg_class_t.
8570 * reload.h (memory_move_cost): Update prototype.
8571 * postreload.c reload_cse_simplify_set): Change type dclass var to
8573 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
8575 (ira_allocate_and_set_costs): Change aclass argument type form
8576 'enum reg_class' to reg_class_t.
8577 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
8578 Change aclass argument type to reg_class_t.
8579 (update_conflict_hard_reg_costs): Change type aclass and pref vars
8581 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
8582 memory_move_cost call.
8584 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
8585 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
8586 Change type tmp var to reg_class_t.
8588 2011-04-30 Jan Hubicka <jh@suse.cz>
8590 * ipa-inline.c (can_inline_edge_p): Disregard limits when
8591 inlining into function with flatten attribute.
8592 (want_inline_small_function_p): Be more realistic about inlining
8593 cold calls where callee size grows.
8595 2011-04-30 Jan Hubicka <jh@suse.cz>
8597 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
8600 2011-04-30 Anatoly Sokolov <aesok@post.ru>
8602 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
8603 PRINT_OPERAND_PUNCT_VALID_P): Remove.
8604 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
8605 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
8606 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8607 (print_operand): Rename to...
8608 (sparc_print_operand): ...this. Make static. Adjust
8609 sparc_print_operand function call.
8610 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
8613 2011-04-30 Jan Hubicka <jh@suse.cz>
8616 * ipa-inline.c (early_inliner): Disable when doing late
8617 addition of function.
8619 2011-04-30 Jakub Jelinek <jakub@redhat.com>
8621 * dwarf2out.c (get_address_mode): New inline.
8622 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
8623 if not dwarf_strict emit
8624 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
8625 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
8626 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
8627 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
8628 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
8629 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
8630 mem_loc_descriptor callers.
8631 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
8632 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
8633 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
8634 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
8635 (base_types): New variable.
8636 (get_base_type_offset, calc_base_type_die_sizes,
8637 base_type_for_mode, mark_base_types, base_type_cmp,
8638 move_marked_base_types): New functions.
8639 (calc_die_sizes): Assert that die_offset is 0 or equal to
8641 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
8642 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
8643 callers. If not dwarf_strict, call mem_loc_descriptor even for
8644 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
8645 (gen_subprogram_die): Don't give up on call site parameters
8646 with non-integral or large integral modes. Adjust
8647 mem_loc_descriptor callers.
8648 (prune_unused_types): Call prune_unused_types_mark on base_types
8650 (resolve_addr): Call mark_base_types.
8651 (dwarf2out_finish): Call move_marked_base_types.
8653 PR tree-optimization/48809
8654 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
8656 (gen_inbound_check): Don't compute index_expr - range_min in utype
8657 again, instead reuse SSA_NAME initialized in build_arrays.
8658 Remove two useless gsi_for_stmt calls.
8660 2011-04-29 Jeff Law <law@redhat.com>
8662 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
8664 2011-04-29 Martin Jambor <mjambor@suse.cz>
8666 * cgraph.h (cgraph_postorder): Remove declaration.
8667 * ipa-utils.h (ipa_free_postorder_info): Declare.
8668 (ipa_reverse_postorder): Likewise.
8669 * cgraphunit.c: Include ipa-utils.h.
8670 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
8671 * ipa-inline.c: Include ipa-utils.h.
8672 (ipa_inline): Update call to ipa_reverse_postorder.
8673 * ipa-pure-const.c (propagate_pure_const): Update call to
8674 ipa_reduced_postorder and ipa_print_order. Call
8675 ipa_free_postorder_info to clean up.
8676 (propagate_nothrow): Likewise.
8677 * ipa-reference.c (propagate): Removed a useless call to
8678 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
8679 and ipa_print_order. Call ipa_free_postorder_info to clean up.
8680 * ipa.c: Include ipa-utils.h.
8681 (ipa_profile): Update call to ipa_reverse_postorder.
8682 (cgraph_postorder): Moved to...
8683 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
8684 (ipa_utils_print_order): Renamed to ipa_print_order.
8685 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
8687 (ipa_free_postorder_info): New function.
8688 * passes.c: Include ipa-utils.h.
8689 (do_per_function_toporder): Update call to ipa_reverse_postorder.
8690 (ipa_write_summaries): Likewise.
8691 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
8692 (cgraphunit.o): Likewise.
8694 (ipa-inline.o): Likewise.
8696 2011-04-29 Jan Hubicka <jh@suse.cz>
8698 * gcc.dg/tree-ssa/inline-10.c: New testcase.
8699 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
8700 * ipa-inline.h (clause_t): Turn into unsigned int.
8701 * ipa-inline-analysis.c (add_clause): Do more simplification.
8702 (and_predicates): Shortcut more cases.
8703 (predicates_equal_p): Move forward; check that clauses are properly
8705 (or_predicates): Shortcut more cases.
8706 (edge_execution_predicate): Rewrite as...
8707 (set_cond_stmt_execution_predicate): ... this function; handle
8708 __builtin_constant_p.
8709 (set_switch_stmt_execution_predicate): New .
8710 (compute_bb_predicates): New.
8711 (will_be_nonconstant_predicate): Update TODO.
8712 (estimate_function_body_sizes): Use compute_bb_predicates
8713 and free them later, always try to estimate if stmt is constant.
8714 (estimate_time_after_inlining, estimate_size_after_inlining):
8715 Gracefully handle optimized out edges.
8716 (read_predicate): Fix off by one error.
8718 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
8720 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
8722 2011-04-27 Xinliang David Li <davidxl@google.com>
8724 * tree-profile.c (init_ic_make_global_vars): Set
8725 tls attribute on ic vars.
8726 * coverage.c (coverage_end_function): Initialize
8727 function_list with zero.
8729 2011-04-29 Richard Guenther <rguenther@suse.de>
8731 * builtins.c (fold_builtin_classify_type): Use integer_type_node
8732 for the type of the result.
8733 (fold_builtin_isascii): Likewise.
8734 (fold_builtin_toascii): Use integer_type_node where appropriate.
8735 (fold_builtin_logb): Likewise.
8736 (fold_builtin_frexp): Likewise.
8737 (fold_builtin_strstr): Likewise.
8738 (fold_builtin_strpbrk): Likewise.
8739 (fold_builtin_fputs): Likewise.
8740 (fold_builtin_sprintf): Likewise.
8741 (fold_builtin_snprintf): Likewise.
8742 (fold_builtin_printf): Likewise.
8743 (do_mpfr_remquo): Use a proper type for the assigned constant.
8744 (do_mpfr_lgamma_r): Likewise.
8745 * dwarf2out.c (resolve_one_addr): Use size_int.
8746 * except.c (init_eh): Likewise.
8747 (assign_filter_values): Use integer_type_node for filter values.
8748 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
8750 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
8751 for EH region numbers.
8752 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
8753 for the shift amount.
8755 2011-04-29 Richard Guenther <rguenther@suse.de>
8757 * expr.h (expand_shift): Rename to ...
8758 (expand_variable_shift): ... this.
8759 (expand_shift): Take a constant shift amount.
8760 * expmed.c (expand_shift): Rename to ...
8761 (expand_variable_shift): ... this.
8762 (expand_shift): New wrapper around expand_variable_shift.
8763 * expr.c (convert_move, emit_group_load_1, emit_group_store,
8764 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
8765 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
8766 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
8767 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
8768 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
8769 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
8770 emit_store_flag_1, emit_store_flag): Likewise.
8771 * builtins.c (expand_builtin_signbit): Likewise.
8772 * calls.c (load_register_parameters): Likewise.
8773 * function.c (assign_parm_setup_block): Likewise.
8774 * lower-subreg.c (resolve_shift_zext): Likewise.
8775 * optabs.c (widen_bswap, expand_abs_nojump,
8776 expand_one_cmpl_abs_nojump, expand_float): Likewise.
8777 * spu/spu.c (spu_expand_extv): Likewise.
8778 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
8780 2011-04-29 Richard Guenther <rguenther@suse.de>
8782 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
8783 for the remapped region number.
8784 * predict.c (build_predict_expr): Use integer_type_node for the
8786 * fold-const.c (fold_binary_loc): Use integer_type_node for
8787 the shift amount. Use a proper type for the PLUS_EXPR operand.
8789 2011-04-29 Michael Matz <matz@suse.de>
8791 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
8792 other trees that just builtins.
8793 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
8795 2011-04-29 Richard Guenther <rguenther@suse.de>
8797 * tree-nested.c (get_trampoline_type): Use size_int.
8798 (get_nl_goto_field): Likewise.
8799 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
8801 (lower_eh_constructs_2): Likewise.
8802 (lower_resx): Likewise.
8803 (lower_eh_dispatch): Likewise.
8804 * tree-mudflap.c (mf_build_string): Use size_int.
8805 (mudflap_register_call): Use integer_type_node for the flag.
8806 (mudflap_enqueue_constant): Use size_int.
8807 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
8808 instead of rebuilding it.
8810 2011-04-29 Richard Guenther <rguenther@suse.de>
8812 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
8813 Handle OBJ_TYPE_REF.
8814 (find_func_aliases_for_call): Use it more consistently.
8816 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
8818 * haifa-sched.c (last_nondebug_scheduled_insn): New.
8819 (rank_for_schedule): Use it.
8820 (schedule_block): Set it.
8822 2011-04-28 David Li <davidxl@google.com>
8824 * tree.c (crc32_string): Use crc32_byte.
8825 (crc32_byte): New function.
8826 * tree.h (crc32_byte): New function.
8827 * gcov.c (read_graph_file): Handle new cfg_cksum.
8828 (read_count_file): Ditto.
8829 * profile.c (instrument_values): Ditto.
8830 (get_exec_counts): Ditto.
8831 (read_profile_edge_counts): Ditto.
8832 (compute_branch_probabilities): Ditto.
8833 (compute_value_histograms): Ditto.
8834 (branch_prob): Ditto.
8835 (end_branch_prob): Ditto.
8836 * coverage.c (read_counts_file): Ditto.
8837 (get_coverage_counts): Ditto.
8838 (tree_coverage_counter_addr): Ditto.
8839 (coverage_checksum_string): Ditto.
8840 (coverage_begin_output): Ditto.
8841 (coverage_end_function): Ditto.
8842 (build_fn_info_type): Ditto.
8843 (build_fn_info_value): Ditto.
8844 * libgcov.c (gcov_exit): Ditto.
8845 * gcov-dump.c (tag_function): Ditto.
8846 (compute_checksum): Remove.
8848 2011-04-29 Alan Modra <amodra@gmail.com>
8850 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
8851 unspec plus offset. Tidy macho code.
8853 2011-04-29 Martin Jambor <mjambor@suse.cz>
8855 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
8856 node instead of a decl. Update all callers.
8857 * cgraph.h: Update declaration.
8859 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
8861 PR tree-optimization/48765
8862 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
8863 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
8864 to indicate if loop aware SLP is being used. Scan the statements
8865 and update the vectorization factor according to the type of
8866 vectorization before statement analysis.
8867 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
8868 pass it to vect_analyze_loop_operations.
8869 (vectorizable_reduction): Set number of copies to 1 in case of pure
8871 * tree-vect-stmts.c (vectorizable_conversion,
8872 vectorizable_assignment, vectorizable_shift,
8873 vectorizable_operation, vectorizable_type_demotion,
8874 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
8876 (vectorizable_condition): Move the check that it is not SLP
8877 vectorization before the number of copies check.
8878 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
8879 to vectorize the loop using SLP.
8881 2011-04-28 Jakub Jelinek <jakub@redhat.com>
8884 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
8887 2011-04-28 Joseph Myers <joseph@codesourcery.com>
8889 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
8890 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
8891 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
8892 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
8893 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
8895 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
8896 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
8897 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
8898 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
8899 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
8900 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
8902 * config/i386/linux.h (REG_NAME): Don't define.
8903 * config/i386/linux64.h (REG_NAME): Don't define.
8904 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
8905 Undefine before defining.
8907 2011-04-28 Jan Hubicka <jh@suse.cz>
8909 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
8910 nonconstant_names array.
8911 (estimate_function_body_sizes): Build nonconstant_names array; handle
8912 BUILT_IN_CONSTANT_P.
8914 2011-04-28 Richard Guenther <rguenther@suse.de>
8918 2011-04-28 Richard Guenther <rguenther@suse.de>
8920 * tree-ssa-structalias.c (solve_constraints): Build succ graph
8921 as late as possible.
8923 2011-04-28 Richard Guenther <rguenther@suse.de>
8925 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
8926 (debug_constraint): Do it here.
8927 (dump_constraints): And here.
8928 (rewrite_constraints): And here.
8929 (dump_constraint_edge): Remove.
8930 (dump_constraint_graph): Rewrite to produce DOT output.
8931 (solve_constraints): Build succ graph as late as possible.
8932 Dump constraint graphs before and after solving.
8934 2011-04-28 Richard Guenther <rguenther@suse.de>
8936 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8937 New function split out from ...
8938 (find_func_aliases): ... here. Call it.
8939 (find_func_aliases_for_call): Likewise.
8941 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
8943 * internal-fn.h (internal_fn_name_array): Declare.
8944 (internal_fn_flags_array): Likewise.
8946 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
8948 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
8949 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
8951 (ssemodefsuffix): Remove.
8952 (ssevecmodesuffix): New mode attribute.
8953 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
8954 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
8955 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
8956 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
8957 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
8958 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
8959 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
8960 ssemodesuffix mode attribute.
8961 (float splitters): Use ssevecmodesuffix mode attribute.
8962 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
8963 (sseinsmode): Rename from avxvecmode.
8964 (avxsizesuffix): Rename from avxmodesuffix.
8965 (sseintvecmode): Rename from avxpermvecmode.
8966 (ssedoublevecmode): Rename from ssedoublesizemode.
8967 (ssehalfvecmode): Rename from avxhalfvecmode.
8968 (ssescalarmode): Rename from avxscalarmode.
8969 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
8970 templates for ssemodesuffix mode attribute.
8971 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
8974 Adjust RTX patterns globally for renamed mode attributes.
8976 2011-04-27 Jan Hubcika <jh@suse.cz>
8978 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
8979 * ipa-inline-analysis.c: Include alloc-pool.h.
8980 (edge_predicate_pool): New.
8981 (trye_predicate_p): New function
8982 (false_predicate_p): New function.
8983 (add_clause): Sanity check that false clauses are "optimized";
8984 never add clauses to predicate that is already known to be false.
8985 (and_predicate): Use flase_predicate_p.
8986 (evaulate_predicate): Rename to ...
8987 (evaluate_predicate): ... this one; update all callers; assert
8988 that false is not listed among possible truths.
8989 (dump_predicate): Use true_predicate_p.
8990 (account_size_time): Use false_predicate_p.
8991 (evaulate_conditions_for_edge): Rename to ...
8992 (evaluate_conditions_for_edge) ... this one.
8993 (edge_set_predicate): New function.
8994 (inline_edge_duplication_hook): Duplicate edge predicates.
8995 (inline_edge_removal_hook): Free edge predicates.
8996 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
8997 (dump_inline_summary): Update.
8998 (estimate_function_body_sizes): Set edge predicates.
8999 (estimate_calls_size_and_time): Handle predicates.
9000 (estimate_callee_size_and_time): Update.
9001 (remap_predicate): Add toplev_predicate; update comment.
9002 (remap_edge_predicates): New function.
9003 (inline_merge_summary): Compute toplev predicate; update.
9004 (read_predicate): New function.
9005 (read_inline_edge_summary): Use it.
9006 (inline_read_section): Likewise.
9007 (write_predicate): New function.
9008 (write_inline_edge_summary): Use it.
9009 (inline_write_summary): Likewise.
9010 (inline_free_summary): Free alloc pool and edge summary vec.
9012 2011-04-27 Richard Guenther <rguenther@suse.de>
9014 * tree-ssa-structalias.c (changed_count): Remove.
9015 (changed): Use a bitmap.
9016 (unify_nodes): Adjust.
9017 (do_sd_constraint): Likewise.
9018 (do_ds_constraint): Likewise.
9019 (do_complex_constraint): Likewise.
9020 (solve_graph): Likewise.
9022 2011-04-27 Jan Hubicka <jh@suse.cz>
9024 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
9026 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
9028 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
9029 (avx_vperm2f128_*_operand): Ditto.
9030 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
9031 Use avx_vpermilp_parallel in insn condition.
9032 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
9033 Use avx_vperm2f128_parallel in insn condition.
9035 2011-04-27 Richard Guenther <rguenther@suse.de>
9037 * Makefile.in (tree-ssa-structalias.o): Remove
9038 gt-tree-ssa-structalias.h dependency.
9039 (GTFILES): Remove tree-ssa-structalias.c.
9040 * tree.c (allocate_decl_uid): New function.
9041 (make_node_stat): Use it.
9042 (copy_node_stat): Likewise.
9043 * tree.h (allocate_decl_uid): Declare.
9044 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
9045 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
9046 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
9047 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
9048 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
9049 (struct heapvar_map): Likewise.
9050 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
9051 heapvar_insert): Likewise.
9052 (make_heapvar_for): Rename to ...
9053 (make_heapvar): ... this. Simplify.
9054 (fake_var_decl_obstack): New global var.
9055 (build_fake_var_decl): New function.
9056 (make_constraint_from_heapvar): Adjust.
9057 (handle_lhs_call): Likewise.
9058 (create_function_info_for): Likewise.
9059 (intra_create_variable_infos): Likewise.
9060 (init_alias_vars): Allocate fake_var_decl_obstack.
9061 (init_alias_heapvars, delete_alias_heapvars): Remove.
9062 (compute_points_to_sets): Do not call init_alias_heapvars.
9063 (ipa_pta_execute): Likewise.
9064 (delete_points_to_sets): Free fake_var_decl_obstack.
9066 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9068 * config/spu/divmovti4.c (union qword_UTItype): New data type.
9069 (si_from_UTItype, si_to_UTItype): New functions.
9070 (__udivmodti4): Use them to implement type-punning.
9071 * config/spu/multi3.c (union qword_TItype): New data type.
9072 (si_from_TItype, si_to_TItype): New functions.
9073 (__multi3): Use them to implement type-punning.
9075 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9077 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
9079 2011-04-27 Jan Hubicka <jh@suse.cz>
9081 * ipa-prop.c (function_insertion_hook_holder): New holder.
9082 (ipa_add_new_function): New function.
9083 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
9084 Register/deregister holder.
9086 2011-04-27 Richard Guenther <rguenther@suse.de>
9088 PR tree-optimization/48772
9089 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
9091 2011-04-27 Richard Guenther <rguenther@suse.de>
9093 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
9094 TARGET_MEM_REF handling.
9096 2011-04-27 Nick Clifton <nickc@redhat.com>
9098 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
9099 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
9100 (REG_CLASS_NAMES): Likewise.
9101 (REG_CLASS_CONTENTS): Likewise.
9102 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
9103 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
9104 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
9105 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
9106 (EVEN_REGS): New macro. Alias for QUAD_REGS.
9107 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
9108 duplicate register classes.
9109 (frv_class_likely_spilled_p): Likewise.
9110 (frv_register_move_cost): Likewise.
9112 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
9113 end of the regno_reg_class array.
9115 2011-04-27 Jakub Jelinek <jakub@redhat.com>
9118 * c-typeck.c (build_binary_op): Don't wrap arguments if
9119 int_operands is true.
9121 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
9124 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
9125 targetm.calls.must_pass_in_stack for void type.
9127 2011-04-26 Jan Hubicka <jh@suse.cz>
9129 * cgraphbuild.c (build_cgraph_edges): Update call
9130 of cgraph_create_edge and cgraph_create_indirect_edge.
9131 * cgraph.c (cgraph_create_edge_including_clones,
9132 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
9133 cgraph_update_edges_for_call_stmt_node): Do not take nest
9134 argument; do not initialize call_stmt_size/time.
9135 (dump_cgraph_node): Do not dump nest.
9136 (cgraph_clone_edge): Do not take loop_nest argument;
9137 do not propagate it; do not clone call_stmt_size/time.
9138 (cgraph_clone_node): Likewise.
9139 (cgraph_create_virtual_clone): Update.
9140 * cgraph.h (struct cgraph_edge): Remove
9141 call_stmt_size/call_stmt_time/loop_nest.
9142 (cgraph_create_edge, cgraph_create_indirect_edge,
9143 cgraph_create_edge_including_clones, cgraph_clone_node): Update
9145 * tree-emutls.c (gen_emutls_addr): Update.
9146 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
9147 loop_nest; handle indirect calls, too.
9148 (clone_inlined_nodes): Do not care about updating inline summaries.
9149 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
9150 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
9151 stream call_stmt_size/call_stmt_time/loop_nest.
9152 * ipa-inline.c (edge_badness): Update.
9153 (ipa_inline): dump summaries after inlining.
9154 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
9156 (inline_edge_summary): New function.
9157 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
9158 (inline_edge_removal_hook): Handle edge summaries.
9159 (inline_edge_duplication_hook): New hook.
9160 (inline_summary_alloc): Alloc hooks.
9161 (initialize_growth_caches): Do not register removal hooks.
9162 (free_growth_caches); Do not free removal hook.
9163 (dump_inline_edge_summary): New function.
9164 (dump_inline_summary): Use it.
9165 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
9166 (inline_update_callee_summaries): New function.
9167 (inline_merge_summary): Use it.
9168 (do_estimate_edge_time, do_estimate_edge_growth): Update.
9169 (read_inline_edge_summary): New function.
9170 (inline_read_section): Use it.
9171 (write_inline_edge_summary): New function.
9172 (inline_write_summary): Use it.
9173 (inline_free_summary): Free edge new holders.
9174 * tree-inline.c (copy_bb): Update.
9176 2011-04-26 Jason Merrill <jason@redhat.com>
9178 * tree-eh.c (lower_try_finally_switch): Create the label along with
9179 the CASE_LABEL_EXPR.
9181 2011-04-26 David S. Miller <davem@davemloft.net>
9182 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9184 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
9185 * configure: Regenerate.
9187 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
9190 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
9192 (VEC_reduc): New code iterator and splitters for vector reduction.
9193 (VEC_reduc_name): Ditto.
9194 (VEC_reduc_rtx): Ditto.
9195 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
9196 (reduc_<VEC_reduc_name>_v4sf): Ditto.
9198 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
9199 support for extracting SF on VSX.
9201 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
9202 generating xscvspdp.
9203 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
9204 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
9205 double add, minimum, maximum vector reduction.
9206 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
9207 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
9208 optimize double vector reduction.
9209 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
9211 2011-04-26 Joseph Myers <joseph@codesourcery.com>
9213 * config/fr30/fr30.h (inhibit_libc): Don't define.
9214 * config/m32r/m32r-protos.h: Correct comment.
9215 * config/v850/v850.h (GHS_default_section_names,
9216 GHS_current_section_names): Use tree, not union tree_node *.
9218 2011-04-26 Xinliang David Li <davidxl@google.com>
9220 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
9221 * c-family/c-opts.c (c_common_handle_option): Set
9222 warn_maybe_uninitialized.
9223 * opts.c (common_handle_option): Ditto.
9224 * common.opt: New option.
9225 * tree-ssa.c (warn_uninit): Add one more parameter.
9226 (warn_uninitialized_var): Pass warning code.
9227 * tree-flow.h: Interface change.
9229 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9231 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
9232 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
9233 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
9235 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9237 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
9238 * config/mips/mips.opt (mmips-tfile): Remove.
9240 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
9241 mips-tdump reference to ...
9242 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
9243 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
9244 reference by Tru64 UNIX.
9246 2011-04-26 Jakub Jelinek <jakub@redhat.com>
9249 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
9250 is error_mark_node, set value to NULL.
9252 PR tree-optimization/48734
9253 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
9254 if return value from maybe_fold_*_comparsions isn't something
9255 the code is prepared to handle.
9257 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
9259 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
9261 (ext_QIreg_nomode_operands): Remove.
9262 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
9266 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
9268 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
9270 2011-04-26 Richard Guenther <rguenther@suse.de>
9272 * c-typeck.c (build_unary_op): Do not expand array-refs via
9273 pointer arithmetic. Only adjust qualifiers for function types.
9275 2011-04-26 Richard Guenther <rguenther@suse.de>
9278 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
9279 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
9280 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
9281 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
9283 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
9285 * doc/extend.texi: Document __underlying_type.
9287 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
9289 * config/rs6000/titan.md (automata_option "progress"): Remove.
9291 2011-04-25 Jeff Law <law@redhat.com>
9293 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
9295 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9297 * system.h (ENUM_BITFIELD): Remove.
9299 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
9300 Eric Botcazou <ebotcazou@adacore.com>
9302 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
9303 for STORE_FLAG_VALUE==-1 case.
9305 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
9308 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
9309 LEGITIMATE_PIC_OPERAND_P.
9311 2011-04-24 Jan Hubicka <jh@suse.cz>
9313 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
9315 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
9316 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
9317 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
9318 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
9319 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
9320 Sanity check predicate length.
9321 (remap_predicate): Likewise; sanity check jump functions.
9322 (inline_read_section, inline_write_summary): Sanity check
9325 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
9328 * doc/extend.texi (Type Traits): Document __is_standard_layout,
9329 __is_literal_type, and __is_trivial; update throughout about
9330 possibly cv-qualified void types.
9332 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
9334 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
9335 testsuite and make it version agnostic.
9337 2011-04-22 Jan Hubicka <jh@suse.cz>
9339 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
9341 2011-04-23 Jakub Jelinek <jakub@redhat.com>
9344 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
9345 to VOID_TYPE even around MODIFY_EXPR.
9347 2011-04-22 Mike Stump <mikestump@comcast.net>
9349 * gensupport.c (read_md_rtx): Fix typo in comment.
9350 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
9353 2011-04-22 Jan Hubicka <jh@suse.cz>
9355 * gengtype.c (open_base_files): Add ipa-inline.h include.
9356 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
9357 ipa-prop.c; update all uses.
9358 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
9359 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
9360 merge summary of inlined function into former caller.
9361 * ipa-inline.c (max_benefit): Remove.
9362 (edge_badness): Compensate for removal of benefits.
9363 (update_caller_keys): Use
9364 reset_node_growth_cache/reset_edge_growth_cache.
9365 (update_callee_keys): Likewise.
9366 (update_all_callee_keys): Likewise.
9367 (inline_small_functions): Do not collect max_benefit; do not reset
9368 estimated_growth; call free_growth_caches and initialize_growth_caches.
9369 * ipa-inline.h (struct condition, type clause_t, struct predicate,
9370 struct size_time_entry): New structures.
9371 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
9372 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
9373 and estimated_growth.
9374 (edge_growth_cache_entry): New structure.
9375 (node_growth_cache, edge_growth_cache): New global vars.
9376 (estimate_growth): Turn into inline.
9377 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
9378 initialize_growth_caches, free_growth_caches): Declare.
9379 (estimate_edge_growth): Rewrite.
9380 (estimate_edge_time): Implement as inline cache lookup.
9381 (reset_node_growth_cache, reset_edge_growth_cache): New inline
9383 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
9384 (NUM_CONDITIONS): New constant.
9385 (predicate_conditions): New enum.
9386 (IS_NOT_CONSTANT): New constant.
9387 (edge_removal_hook_holder): New var.
9388 (node_growth_cache, edge_growth_cache): New global vars.
9389 (true_predicate, single_cond_predicate, false_predicate,
9390 not_inlined_predicate, add_condition, add_clause, and_predicates,
9391 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
9392 dump_clause, dump_predicate, account_size_time,
9393 evaulate_conditions_for_edge): New functions.
9394 (inline_summary_alloc): Move to heap.
9395 (inline_node_removal_hook): Clear condition and entry vectors.
9396 (inline_edge_removal_hook): New function.
9397 (initialize_growth_caches, free_growth_caches): New function.
9398 (dump_inline_summary): Update.
9399 (edge_execution_predicate): New function.
9400 (will_be_nonconstant_predicate): New function.
9401 (estimate_function_body_sizes): Compute BB and constantness predicates.
9402 (compute_inline_parameters): Do not clear estimated_growth.
9403 (estimate_edge_size_and_time): New function.
9404 (estimate_calls_size_and_time): New function.
9405 (estimate_callee_size_and_time): New function.
9406 (remap_predicate): New function.
9407 (inline_merge_summary): New function.
9408 (do_estimate_edge_time): New function based on...
9409 (estimate_edge_time): ... this one.
9410 (do_estimate_edge_growth): New function.
9411 (do_estimate_growth): New function based on....
9412 (estimate_growth): ... this one.
9413 (inline_analyze_function): Analyze after deciding on jump functions.
9414 (inline_read_section): New function.
9415 (inline_read_summary): Use it.
9416 (inline_write_summary): Write all the new data.
9417 * ipa-prop.c (ipa_get_param_decl_index): Export.
9418 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
9419 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
9421 (ipa_get_lattice): Move here from ipa-cp.c
9422 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
9423 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
9424 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
9425 cgraph_edge_inlinable_p): Remove.
9426 * cgraphunit.c: Include ipainline.h
9427 (cgraph_process_new_functions): Update call of
9428 compute_inline_parameters.
9430 2011-04-22 Richard Guenther <rguenther@suse.de>
9432 * tree.c (build_int_cst): Properly create canonicalized integer
9434 (build_int_cst_type): Remove scary comments.
9436 2011-04-22 Xinliang David Li <davidxl@google.com>
9438 * toplev.c (process_options): Enable -Werror=coverage-mismatch
9439 by default when -Wno-error is not specified.
9440 * opts-global.c (decode_options): Remove call to
9441 control_warning_options.
9443 2011-04-22 Jakub Jelinek <jakub@redhat.com>
9445 PR tree-optimization/48717
9446 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
9447 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
9449 2011-04-22 Joseph Myers <joseph@codesourcery.com>
9451 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
9452 definition where used.
9454 2011-04-22 Jakub Jelinek <jakub@redhat.com>
9457 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
9458 TREE_STATIC variables declared inside of some OpenMP construct.
9460 2011-04-22 Martin Jambor <mjambor@suse.cz>
9463 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
9465 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
9468 * c-typeck.c (pop_init_level): Do not warn about initializing
9471 2011-04-22 Alan Modra <amodra@gmail.com>
9473 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
9474 when returning call_cookie.
9475 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
9476 pointers, to functions with no more vector args than the current
9477 function, and some non-local calls for ABI_V4.
9478 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
9479 sibcall_nonlocal_aix64): Combine to ..
9480 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
9481 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
9482 (sibcall_value_nonlocal_aix<mode>): ..likewise.
9483 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
9484 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
9486 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
9487 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
9488 sibcall_value_symbolic_64): Delete.
9490 2011-04-21 Xinliang David Li <davidxl@google.com>
9492 * cgraph.h: Remove pid.
9493 * cgraph.c: Remove pid.
9494 * value-prof.c (init_node_map): New function.
9495 (del_node_map): New function.
9496 (find_func_by_funcdef_no): New function.
9497 (gimple_ic_transform): Call new function.
9498 * cgraphunit.c (cgraph_finalize_function): Remove pid.
9499 * function.c (get_last_funcdef_no): New function.
9500 * function.h (get_last_funcdef_no): New function.
9501 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
9502 to libgcov function.
9503 (tree-profiling): Call node map init and delete function.
9505 2011-04-21 Ian Lance Taylor <iant@google.com>
9507 * godump.c (go_format_type): Use exported Go name for anonymous
9510 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
9512 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
9513 Call builtin_function_type_list instead of builtin_function_type.
9514 (UNARY, BINARY, TRINARY, QUAD): Likewise.
9516 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
9518 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
9519 build_function_type_list instead of build_function_type.
9520 Delete variable `endlink'.
9522 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
9524 * config/s390/s390.c (s390_init_builtins): Call
9525 build_function_type_list instead of build_function_type.
9527 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
9529 * config/ia64/ia64.c (ia64_init_builtins): Call
9530 build_function_type_list instead of builtin_function_type.
9532 2011-04-21 Easwaran Raman <eraman@google.com>
9534 * cfgexpand.c (stack_var): Remove OFFSET...
9535 (add_stack_var): ...and its reference here...
9536 (expand_stack_vars): ...and here.
9537 (stack_var_cmp): Sort by descending order of size.
9538 (partition_stack_vars): Change heuristic.
9539 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
9540 (dump_stack_var_partition): Add newline after each partition.
9542 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
9543 Jeff Law <law@redhat.com>
9545 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
9546 * gengtype.c (matching_file_name_substitute): Likewise.
9548 2011-04-21 Richard Guenther <rguenther@suse.de>
9551 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
9553 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
9555 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
9557 2011-04-21 Richard Guenther <rguenther@suse.de>
9559 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
9562 2011-04-21 Richard Guenther <rguenther@suse.de>
9564 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
9565 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
9566 Use DECL_P, not SSA_VAR_P.
9567 (ptr_derefs_may_alias_p): Likewise.
9568 (ptr_deref_may_alias_ref_p_1): Likewise.
9569 (decl_refs_may_alias_p): Likewise.
9570 (refs_may_alias_p_1): Likewise.
9571 (ref_maybe_used_by_call_p_1): Likewise.
9572 (call_may_clobber_ref_p_1): Likewise.
9573 (indirect_ref_may_alias_decl_p): Assume indirect refrences
9574 are either MEM_REF or TARGET_MEM_REF.
9575 (indirect_refs_may_alias_p): Likewise.
9576 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
9577 for MEM_EXPR of indirect calls.
9579 2011-04-21 Tristan Gingold <gingold@adacore.com>
9581 * vmsdbgout.c (write_srccorr): Compute file length from the string.
9582 (dst_file_info_struct): Remove flen field.
9583 (lookup_filename): Remove code that set flen field.
9585 2011-04-21 Tristan Gingold <gingold@adacore.com>
9587 * config/ia64/ia64.c (ia64_start_function): Add a guard.
9589 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
9592 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
9593 vec_extract and vec_concat for non-SSE4_1 targets.
9595 2011-04-21 Richard Guenther <rguenther@suse.de>
9597 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
9600 2011-04-21 Joseph Myers <joseph@codesourcery.com>
9602 * config/i386/cygming.h (union tree_node, TREE): Don't define or
9604 (FILE): Don't undefine.
9606 2011-04-21 Joseph Myers <joseph@codesourcery.com>
9608 * config/alpha/alpha.c (struct machine_function): Use rtx, not
9610 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
9612 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
9613 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
9614 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
9616 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
9617 definitions where used.
9618 * config/microblaze/microblaze.h (struct microblaze_args): Use
9619 rtx, not struct rtx_def *.
9620 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
9622 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
9623 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
9624 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
9625 not struct rtx_def *.
9626 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
9628 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
9630 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
9632 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9634 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
9635 operand_equal_p to compare DR_BASE_ADDRESSes.
9636 (vect_check_interleaving): Likewise.
9638 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9641 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
9642 for all Neon struct constants.
9644 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9646 * target.def (legitimate_constant_p): New hook.
9647 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
9648 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
9649 * doc/tm.texi: Regenerate.
9650 * hooks.h (hook_bool_mode_rtx_true): Declare.
9651 * hooks.c (hook_bool_mode_rtx_true): Define.
9652 * system.h (LEGITIMATE_CONSTANT_P): Poison.
9653 * calls.c (precompute_register_parameters): Replace uses of
9654 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
9655 (emit_library_call_value_1): Likewise.
9656 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
9657 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
9658 * ira-costs.c (scan_one_insn): Likewise.
9659 * recog.c (general_operand, immediate_operand): Likewise.
9660 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
9661 * reload1.c (init_eliminable_invariants): Likewise.
9663 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
9665 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
9666 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
9668 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9669 * config/alpha/predicates.md (input_operand): Update call to
9670 alpha_legitimate_constant_p.
9672 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
9673 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
9674 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
9675 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9676 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
9677 (arm_legitimate_constant_p): New functions.
9678 (arm_cannot_force_const_mem): Make static.
9680 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
9682 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
9683 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
9684 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
9685 instead of bfin_legitimate_constant_p.
9686 (bfin_legitimate_constant_p): Make static. Add a mode argument.
9687 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9689 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
9691 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
9693 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
9694 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
9695 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9696 (frv_legitimate_constant_p): Make static. Add a mode argument.
9698 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
9699 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
9700 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
9702 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
9703 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
9704 * config/i386/i386.c (legitimate_constant_p): Rename to...
9705 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
9707 (ix86_cannot_force_const_mem): Update accordingly.
9708 (ix86_legitimate_address_p): Likewise.
9709 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9710 * config/i386/i386.md: Update commentary.
9712 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
9713 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
9714 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9715 (ia64_legitimate_constant_p): Make static. Add a mode argument.
9717 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
9719 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
9720 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
9721 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9722 (lm32_legitimate_constant_p): Make static. Add a mode argument.
9724 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
9725 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
9726 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
9728 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
9729 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9730 (m32r_legitimate_constant_p): New function.
9732 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
9733 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
9734 LEGITIMATE_CONSTANT_P.
9735 (LEGITIMATE_CONSTANT_P): Delete.
9736 * config/m68k/m68k.c (m68k_expand_prologue): Call
9737 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
9738 (m68k_legitimate_constant_p): New function.
9739 * config/m68k/m68k.md: Update comments.
9741 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
9742 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9743 (mcore_legitimate_constant_p): New function.
9745 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
9746 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
9747 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
9748 Add a mode argument.
9749 (mep_legitimate_address): Update accordingly.
9750 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9752 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
9754 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
9755 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
9756 static. Check OP's mode for VOIDmode.
9757 (microblaze_legitimate_constant_p): New function.
9758 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9760 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
9761 * config/mips/mips.c (mips_legitimate_constant_p): New function.
9762 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
9763 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9764 * config/mips/predicates.md: Update comments.
9766 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
9767 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
9768 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9769 (mmix_legitimate_constant_p): Make static, return a bool, and take
9771 (mmix_print_operand_address): Update accordingly.
9773 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
9775 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
9776 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
9777 static. Add a mode argument.
9778 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9780 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
9782 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
9783 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9784 (pa_legitimate_constant_p): New function.
9786 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
9788 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
9789 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9790 (pdp11_legitimate_constant_p): New function.
9792 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
9793 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9794 (rs6000_legitimate_constant_p): New function.
9796 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
9797 (rx_legitimate_constant_p): ...this.
9798 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
9799 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
9800 (rx_legitimate_constant_p): ...this.
9801 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9802 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
9804 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
9805 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
9806 * config/s390/s390.c (legitimate_constant_p): Rename to...
9807 (s390_legitimate_constant_p): ...this. Make static, return a bool,
9808 and add a mode argument.
9809 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9811 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
9813 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
9814 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9815 (sh_legitimate_constant_p): New function.
9817 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
9818 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
9819 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9820 (legitimate_constant_p): Rename to...
9821 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
9823 (constant_address_p): Update accordingly.
9825 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
9826 argument and return a bool.
9827 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
9828 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9829 (spu_legitimate_constant_p): Add a mode argument and return a bool.
9830 (spu_rtx_costs): Update accordingly.
9831 * config/spu/predicates.md (vec_imm_operand): Likewise.
9833 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
9835 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
9836 * config/v850/v850.c (v850_legitimate_constant_p): New function.
9837 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9839 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
9840 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
9841 * config/vax/vax.c (legitimate_constant_p): Likewise.
9843 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
9844 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9845 (xtensa_legitimate_constant_p): New function.
9847 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9849 * target.def (cannot_force_const_mem): Add a mode argument.
9850 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
9851 * doc/tm.texi: Regenerate.
9852 * hooks.h (hook_bool_mode_rtx_false): Declare.
9853 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
9854 (hook_bool_mode_const_rtx_true): Likewise.
9855 (hook_bool_mode_rtx_false): New function.
9856 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
9857 to be non-VOID. Update call to cannot_force_const_mem.
9858 (find_reloads): Update accordingly.
9859 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
9860 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
9862 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
9863 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
9864 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
9865 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
9866 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
9867 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
9868 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
9869 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
9870 (m68k_cannot_force_const_mem): ...this new function.
9871 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
9873 (mips_const_insns, mips_legitimize_const_move): Update calls.
9874 (mips_secondary_reload_class): Likewise.
9875 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
9876 (pa_cannot_force_const_mem): ...this new function.
9877 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
9878 (rs6000_cannot_force_const_mem): ...this new function.
9879 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
9881 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
9882 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
9884 (xtensa_cannot_force_const_mem): ...this new function.
9886 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
9888 * config/mips/mips.c (mips16_build_function_stub): Call
9889 build_function_type_list instead of build_function_type.
9890 (mips16_build_call_stub): Likewise.
9892 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
9894 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
9895 instead of build_function_type.
9897 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
9899 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
9900 instead of build_function_type.
9902 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
9905 * config/i386/i386.md (insv): Change operand 0 constraint to
9906 "register_operand". Change operand 1 and 2 constraint to
9907 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
9908 * config/i386/sse.md (sse4_1_pinsrb): Export.
9909 (sse2_pinsrw): Ditto.
9910 (sse4_1_pinsrd): Ditto.
9911 (sse4_1_pinsrq): Ditto.
9912 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
9913 * config/i386/i386.c (ix86_expand_pinsr): New.
9915 2011-04-20 Easwaran Raman <eraman@google.com>
9917 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
9918 containing union type only with -fstrict-aliasing.
9920 2011-04-20 Jim Meyering <meyering@redhat.com>
9922 Remove useless if-before-free tests.
9923 * calls.c (expand_call, save_area): Likewise.
9924 * cfgcleanup.c (try_forward_edges): Likewise.
9925 * collect2.c (collect_execute): Likewise.
9926 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
9927 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
9928 * coverage.c (coverage_checksum_string): Likewise.
9929 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
9930 * cselib.c (cselib_init): Likewise.
9931 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
9932 (df_set_clean_cfg): Likewise.
9933 * function.c (free_after_compilation): Likewise.
9934 * gcc.c (do_spec_1, main): Likewise.
9935 * gcov.c (create_file_names): Likewise.
9936 * gensupport.c (identify_predicable_attribute): Likewise.
9937 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
9938 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
9939 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
9940 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
9941 * ipa-pure-const.c (local_pure_const): Likewise.
9942 * ipa-reference.c (propagate): Likewise.
9943 * ira-costs.c (free_ira_costs): Likewise.
9944 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
9945 * matrix-reorg.c (mat_free): Likewise.
9946 * prefix.c (get_key_value): Likewise.
9947 * profile.c (compute_value_histograms): Likewise.
9948 * reload1.c (free_reg_equiv): Likewise.
9949 * sched-deps.c (free_deps): Likewise.
9950 * sel-sched-ir.c (fence_clear): Likewise.
9951 * sese.c (set_rename, if_region_set_false_region): Likewise.
9952 * tree-data-ref.c (free_rdg): Likewise.
9953 * tree-eh.c (lower_try_finally): Likewise.
9954 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
9955 * tree-ssa-live.c (delete_var_map): Likewise.
9956 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
9957 * tree-ssa-pre.c (phi_trans_add): Likewise.
9959 2011-04-20 Jakub Jelinek <jakub@redhat.com>
9961 PR tree-optimization/48611
9962 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
9963 beyond ERT_MUST_NOT_THROW region.
9965 2011-04-20 Catherine Moore <clm@codesourcery.com>
9967 * config/mips/mips.opt (mfix-24k): New.
9968 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
9969 * config/mips/mips.md (length): Increase by 4 for stores if
9971 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
9972 all noreorder if fixing 24K errata.
9973 * doc/invoke.texi: Document mfix-24k.
9975 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
9977 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
9978 quad-word modes, reduce to 9-bit index range when above 1016 limit.
9980 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
9982 * config/arm/arm.c (arm_gen_constant): Move movw support ....
9983 (const_ok_for_op): ... to here.
9985 2011-04-20 Kai Tietz <ktietz@redhat.com>
9987 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
9988 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
9990 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
9992 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
9994 2011-04-20 Richard Guenther <rguenther@suse.de>
9996 PR tree-optimization/47892
9997 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
10000 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
10002 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
10004 2011-04-20 Tristan Gingold <gingold@adacore.com>
10006 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
10008 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
10012 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
10013 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
10014 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
10015 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
10016 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
10018 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
10021 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
10022 (avr_asm_named_section, avr_asm_output_aligned_common,
10023 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
10024 New functions to update...
10025 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
10026 (avr_asm_init_sections): Overwrite section callbacks for
10027 data_section, bss_section.
10028 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
10030 (avr_file_end): ...here.
10032 2011-04-20 Richard Guenther <rguenther@suse.de>
10034 PR middle-end/48695
10035 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
10036 objects and types here. Adjust for their offset before comparing.
10038 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
10040 * tree-vect-stmts.c (vectorizable_store): Only chain one related
10041 statement per copy.
10043 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
10045 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
10046 (GIMPLE_H): Include $(INTERNAL_FN_H).
10047 (OBJS-common): Add internal-fn.o.
10048 (internal-fn.o): New rule.
10049 * internal-fn.def: New file.
10050 * internal-fn.h: Likewise.
10051 * internal-fn.c: Likewise.
10052 * gimple.h: Include internal-fn.h.
10053 (GF_CALL_INTERNAL): New gf_mask.
10054 (gimple_statement_call): Put fntype into a union with a new
10056 (gimple_build_call_internal): Declare.
10057 (gimple_build_call_internal_vec): Likewise.
10058 (gimple_call_same_target_p): Likewise.
10059 (gimple_call_internal_p): New function.
10060 (gimple_call_internal_fn): Likewise.
10061 (gimple_call_fntype): Return null for internal calls.
10062 (gimple_call_set_fntype): Assert that the function is not internal.
10063 (gimple_call_set_fn): Likewise.
10064 (gimple_call_set_fndecl): Likewise.
10065 (gimple_call_set_internal_fn): New function.
10066 (gimple_call_addr_fndecl): Handle null functions.
10067 (gimple_call_return_type): Likewise null types.
10068 * gimple.c (gimple_build_call_internal_1): New function.
10069 (gimple_build_call_internal): Likewise.
10070 (gimple_build_call_internal_vec): Likewise.
10071 (gimple_call_same_target_p): Likewise.
10072 (gimple_call_flags): Handle calls to internal functions.
10073 (gimple_call_fnspec): New function.
10074 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
10075 (gimple_has_side_effects): Handle null functions.
10076 (gimple_rhs_has_side_effects): Likewise.
10077 (gimple_call_copy_skip_args): Handle calls to internal functions.
10078 * cfgexpand.c (expand_call_stmt): Likewise.
10079 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
10080 * gimple-fold.c (gimple_fold_call): Handle null functions.
10081 (gimple_fold_stmt_to_constant_1): Don't fold
10082 calls to internal functions.
10083 * gimple-low.c (gimple_check_call_args): Handle calls to internal
10085 * gimple-pretty-print.c (dump_gimple_call): Likewise.
10086 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
10087 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
10088 (do_warn_unused_result): Likewise.
10089 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
10090 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
10091 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
10092 the target of a call.
10093 (initialize_hash_element): Update accordingly.
10094 (hashable_expr_equal_p): Use gimple_call_same_target_p.
10095 (iterative_hash_hashable_expr): Handle calls to internal functions.
10096 (print_expr_hash_elt): Likewise.
10097 * tree-ssa-pre.c (can_value_number_call): Likewise.
10098 (eliminate): Handle null functions.
10099 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
10100 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
10101 (find_func_aliases): Likewise.
10102 * value-prof.c (gimple_ic_transform): Likewise.
10103 (gimple_indirect_call_to_profile): Likewise.
10104 * lto-streamer-in.c (input_gimple_stmt): Likewise.
10105 * lto-streamer-out.c (output_gimple_stmt): Likewise.
10107 2011-04-19 Jan Hubicka <jh@suse.cz>
10109 * ipa-inline-transform.c (save_inline_function_body): Add comments.
10110 * ipa-inline.c (inline_small_functions): Compute summaries first,
10111 populate heap later.
10113 2011-04-19 Jan Hubicka <jh@suse.cz>
10115 * cgraph.h (save_inline_function_body): Remove.
10116 * ipa-inline-transform.c: New file, broke out of...
10117 * ipa-inline.c: ... this one; Update toplevel comment.
10118 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
10120 (update_noncloned_frequencies): Move to ipa-inline-transform.c
10121 (cgraph_mark_inline_edge): Rename to inline_call; move to
10122 ipa-inline-transform.c.
10123 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
10124 move to ipa-inline-transform.c
10125 (recursive_inlining, inline_small_functions, flatten_function,
10126 ipa_inline, inline_always_inline_functions,
10127 early_inline_small_functions): Update.
10128 (inline_transform): Move to ipa-inline-transform.c.
10129 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
10131 * Makefile.in (ipa-inline-transform.o): New file.
10132 * cgraphunit.c (save_inline_function_body): Move to
10133 ipa-inline-transform.c
10135 2011-04-19 DJ Delorie <dj@redhat.com>
10137 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
10138 registers if we already know there aren't any.
10139 (m32c_emit_epilogue): Don't emit a barrier here.
10140 (m32c_emit_eh_epilogue): Likewise.
10141 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
10142 operands at expand time.
10143 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
10145 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
10146 duplicates. Provide aliases instead.
10147 * config/m32c/prologue.md (eh_return): Emit a barrier here.
10148 (eh_epilogue): Add a "(return)" here as a hint to other parts of
10151 2011-04-19 Anatoly Sokolov <aesok@post.ru>
10153 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
10154 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
10155 (general_or_i64_p, sparc_register_move_cost): New function.
10157 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10159 * doc/install.texi (Configuration, --enable-threads): Remove mach.
10160 Add lynx, mipssde. Sort table.
10162 2011-04-19 Xinliang David Li <davidxl@google.com>
10164 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
10167 2011-04-19 Jakub Jelinek <jakub@redhat.com>
10170 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
10171 is a SUBREG with non-MODE_INT mode inside of it.
10173 2011-04-19 Martin Jambor <mjambor@suse.cz>
10175 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
10176 also according to actual contants.
10177 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
10178 (gimple_fold_call): Use it.
10179 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
10181 2011-04-19 Martin Jambor <mjambor@suse.cz>
10183 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
10184 non-pointer assignments.
10186 2011-04-19 Martin Jambor <mjambor@suse.cz>
10188 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
10189 account anc_offset and otr_type from the indirect edge info.
10190 * ipa-prop.c (get_ancestor_addr_info): New function.
10191 (compute_complex_ancestor_jump_func): Assignment analysis moved to
10192 get_ancestor_addr_info, call it.
10193 (ipa_note_param_call): Do not initialize information about polymorphic
10194 calls, return the indirect call graph edge. Remove the last
10195 parameter, adjust all callers.
10196 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
10197 parameters. Initialize polymorphic information in the indirect edge.
10199 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
10202 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
10203 the types if they have different enumeration identifiers.
10205 2011-04-19 Jan Hubicka <jh@suse.cz>
10207 * cgraph.h (cgraph_optimize_for_size_p): Declare.
10208 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
10209 * predict.c (cgraph_optimize_for_size_p): Break out from ...
10210 (optimize_function_for_size_p) ... here.
10212 2011-04-19 Richard Guenther <rguenther@suse.de>
10215 * tree.c (free_lang_data): Do not reset the decl-assembler-name
10218 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
10220 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
10221 if DECL_NO_INLINE_WARNING_P is set on the function.
10223 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
10226 * reload1.c (inc_for_reload): Return void. All callers changed.
10227 (emit_input_reload_insns): Don't try to delete previous output
10228 reloads to a register, or record spill_reg_store for autoincs.
10230 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
10232 * gengtype.h: Updated copyright year.
10233 (struct input_file_st): Add inpisplugin field.
10234 (type_fileloc): New function.
10236 (write_typed_struct_alloc_def): Add gcc_assert.
10237 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
10238 (write_typed_alloc_defns): Don't output for plugin files.
10239 (input_file_by_name): Clear inpisplugin field.
10240 (main): Set inpisplugin field for plugin files.
10242 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
10244 * gengtype-state.c (string_eq): New.
10245 (read_state): Use string_eq instead of strcmp when creating the
10248 2011-04-19 Wei Guozhi <carrot@google.com>
10251 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
10252 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
10254 * config/arm/constraints.md (Uu): New constraint.
10255 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
10257 2011-04-19 Tristan Gingold <gingold@adacore.com>
10259 * config.gcc (-*-*-*vms): Added.
10260 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
10262 * config/vms/vms-ld.c: New file.
10263 * config/vms/vms-ar.c: New file.
10264 * config/vms/t-vmsnative: New file.
10266 2011-04-18 Xinliang David Li <davidxl@google.com>
10268 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
10270 2011-04-18 Jakub Jelinek <jakub@redhat.com>
10272 PR middle-end/48661
10273 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
10274 if TREE_TYPE (v) is non-NULL.
10276 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
10277 gimple_get_virt_mehtod_for_binfo.
10278 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
10279 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
10281 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
10283 2011-04-18 Michael Matz <matz@suse.de>
10284 Steve Ellcey <sje@cup.hp.com>
10286 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
10287 use its mode as source mode if it isn't VOIDmode.
10289 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
10291 * doc/passes.texi: Fill crossref nodes.
10293 2011-04-18 Jim Meyering <meyering@redhat.com>
10295 Fix doubled-word typos in comments and strings
10296 * config/alpha/vms-unwind.h: s/for for/for/
10297 * config/arm/unwind-arm.h: Likewise.
10298 * config/microblaze/microblaze.c: Likewise.
10299 * config/sh/constraints.md: s/in in/in/
10300 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
10302 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
10304 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
10305 (AVX_FLOAT_MODE_P): Ditto.
10306 (AVX128_VEC_FLOAT_MODE_P): Ditto.
10307 (AVX256_VEC_FLOAT_MODE_P): Ditto.
10308 (AVX_VEC_FLOAT_MODE_P): Ditto.
10309 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
10310 (UNSPEC_MASKSTORE): Ditto.
10311 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
10312 Merge from <sse>_movmsk<ssemodesuffix> and
10313 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
10314 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
10316 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
10317 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
10318 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
10320 2011-04-18 Jan Hubicka <jh@suse.cz>
10322 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
10324 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
10325 (want_inline_function_called_once_p): Break out the logic from
10327 (edge_badness): Ensure that profile is not misupdated.
10328 (lookup_recursive_calls): Prioritize by call frequencies.
10329 (inline_small_functions): Move program size estimates here;
10330 actually process whole queue even when unit growth has been
10331 met. (to properly compute inline_failed reasons and for the
10332 case unit size decrease.) Revisit comments on recursive inlining.
10333 (ipa_inline): Remove unit summary code; first inline hot calls
10334 of functions called once, cold calls next.
10335 (order, nnodes): Remove unused variables.
10336 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
10337 (GTFILES): Remove ipa-inline.c
10338 * sel-sched.c (fill_insns): Silence uninitialized var warning.
10340 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
10342 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
10344 2011-04-18 Jie Zhang <jie@codesourcery.com>
10345 Richard Earnshaw <rearnsha@arm.com>
10347 * arm.c (neon_builtin_type_bits): Remove.
10348 (typedef enum neon_builtin_mode): New.
10349 (T_MAX): Don't define.
10350 (typedef enum neon_builtin_datum): Remove bits, codes[],
10351 num_vars and base_fcode. Add mode, code and fcode.
10352 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
10353 VAR10): Change accordingly.
10354 (neon_builtin_data[]): Change accordingly
10355 (arm_init_neon_builtins): Change accordingly.
10356 (neon_builtin_compare): Remove.
10357 (locate_neon_builtin_icode): Remove.
10358 (arm_expand_neon_builtin): Change accordingly.
10360 * arm.h (enum arm_builtins): Move to ...
10361 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
10363 * arm.c (arm_builtin_decl): Declare.
10364 (TARGET_BUILTIN_DECL): Define.
10365 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
10366 (arm_builtin_decls[]): New.
10367 (arm_init_neon_builtins): Store builtin declarations in
10368 arm_builtin_decls[].
10369 (arm_init_tls_builtins): Likewise.
10370 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
10371 (arm_builtin_decl): New.
10373 2011-04-18 Richard Guenther <rguenther@suse.de>
10375 * tree.c (upper_bound_in_type): Build properly canonicalized
10377 (lower_bound_in_type): Likewise.
10379 2011-04-18 Richard Guenther <rguenther@suse.de>
10381 * gimple.h (gimple_call_addr_fndecl): New function.
10382 (gimple_call_fndecl): Use it.
10383 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
10385 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
10386 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
10388 2011-04-18 Richard Guenther <rguenther@suse.de>
10390 PR middle-end/48650
10391 * tree.c (build_string): STRING_CST is now derived from tree_typed.
10393 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
10396 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
10397 DECL_IN_CONSTANT_POOL without RTL.
10399 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
10400 Ira Rosen <ira.rosen@linaro.org>
10403 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
10404 to match neon_vzip/vuzp/vtrn_internal.
10405 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
10406 outputs explicitly dependent on both inputs.
10407 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
10409 2011-04-18 Jakub Jelinek <jakub@redhat.com>
10411 PR tree-optimization/48616
10412 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
10413 whether the shift is by scalar or vector based on whether all SLP
10414 scalar stmts have the same rhs.
10416 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
10418 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
10421 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
10424 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
10427 2011-04-17 Jan Hubicka <jh@suse.cz>
10429 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
10430 * cgrpahunit.c (cgraph_finalize_function): Do not set
10431 finalized_by_frontend.
10432 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
10433 finalized_by_frontend.
10435 2011-04-17 Jan Hubicka <jh@suse.cz>
10437 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
10438 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
10439 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
10440 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
10442 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
10444 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
10446 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
10449 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
10450 is non-null before accessing it.
10451 (input_cgraph): Remove trailing spaces.
10453 2011-04-17 Revital Eres <revital.eres@linaro.org>
10455 * params.def (sms-min-sc): New param flag.
10456 * modulo-sched.c (sms_schedule): Use it.
10457 * doc/invoke.texi (sms-min-sc): Document it.
10459 2011-04-17 Jan Hubicka <jh@suse.cz>
10461 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
10462 present, also set gimple_call_set_cannot_inline.
10463 * ipa-inline.c: Update toplevel comment.
10464 (MAX_TIME): Remove.
10465 (cgraph_clone_inlined_nodes): Fix linebreaks.
10466 (cgraph_check_inline_limits): Restructure to ...
10467 (caller_growth_limits): ... this one; be more tolerant
10468 on growth in nested inline chains; add explanatory comment;
10469 fix stack accounting thinko introduced by previous patch.
10470 (cgraph_default_inline_p): Remove.
10471 (report_inline_failed_reason): New function.
10472 (can_inline_edge_p): New function.
10473 (can_early_inline_edge_p): New function.
10474 (leaf_node_p): Move upwards in file.
10475 (want_early_inline_function_p): New function.
10476 (want_inline_small_function_p): New function.
10477 (want_inline_self_recursive_call_p): New function.
10478 (cgraph_edge_badness): Rename to ...
10479 (edge_badness) ... this one; fix linebreaks.
10480 (update_edge_key): Update call of edge_baddness; add
10481 detailed dump about queue updates.
10482 (update_caller_keys): Use can_inline_edge_p and
10483 want_inline_small_function_p.
10484 (cgraph_decide_recursive_inlining): Rename to...
10485 (recursive_inlining): Use can_inline_edge_p and
10486 want_inline_self_recursive_call_p; simplify and remove no longer
10488 (cgraph_set_inline_failed): Remove.
10489 (add_new_edges_to_heap): Use can_inline_edge_p and
10490 want_inline_small_function_p.
10491 (cgraph_decide_inlining_of_small_functions): Rename to ...
10492 (inline_small_functions): ... this one; cleanup; use
10493 can/want predicates; cleanup debug ouput; work edges till fibheap
10494 is exhausted and do not stop once unit growth is reached; remove
10495 later loop processing remaining edges.
10496 (cgraph_flatten): Rename to ...
10497 (flatten_function): ... this one; use can_inline_edge_p
10498 and can_early_inline_edge_p predicates.
10499 (cgraph_decide_inlining): Rename to ...
10500 (ipa_inline): ... this one; remove unreachable nodes before
10501 inlining functions called once; simplify the pass.
10502 (cgraph_perform_always_inlining): Rename to ...
10503 (inline_always_inline_functions): ... this one; use
10504 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
10505 (cgraph_decide_inlining_incrementally): Rename to ...
10506 (early_inline_small_functions): ... this one; simplify
10507 using new predicates; cleanup; make dumps prettier.
10508 (cgraph_early_inlining): Rename to ...
10509 (early_inliner): newer inline regular functions into always-inlines;
10510 fix updating of call stmt summaries.
10511 (pass_early_inline): Update for new names.
10512 (inline_transform): Fix formating.
10513 (gate_cgraph_decide_inlining): Rename to ...
10514 (pass_ipa_inline): ... this one.
10515 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
10516 * ipa-inline-analysis.c (dump_inline_summary): Update.
10517 (compute_inline_parameters): Do not compute disregard_inline_limits;
10518 look for mismatching arguments.
10519 (estimate_growth): Fix handlig of non-trivial self recursion.
10520 (inline_read_summary): Do not read info->disregard_inline_limits.
10521 (inline_write_summary): Do not write info->disregard_inline_limits.
10522 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
10523 and move all checks into can_inline_edge_p predicate; re-enable code
10524 comparing optimization levels.
10525 (expand_call_inline): Do not test inline_forbidden_into_p.
10526 * Makefile.in (ipa-inline.o): Update arguments.
10528 2011-04-17 Revital Eres <revital.eres@linaro.org>
10530 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
10532 2011-04-17 Revital Eres <revital.eres@linaro.org>
10534 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
10536 2011-04-17 Michael Matz <matz@suse.de>
10538 PR tree-optimization/48622
10540 * ipa-inline-analysis.c (inline_read_summary): Read size/time
10541 in same order as they're written.
10543 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10545 * config/pa/predicates.md: Reorganize and simplify predicates.
10546 Eliminate duplicate code checks.
10547 (arith_operand): Rename to arith14_operand
10548 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
10549 * config/pa/pa.md: Use renamed operands.
10550 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
10551 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
10552 arith11_operand, adddi3_operand, indexed_memory_operand,
10553 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
10554 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
10555 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
10556 move_dest_operand, move_src_operand, prefetch_cc_operand,
10557 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
10558 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
10559 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
10560 div_operand, int5_operand, movb_comparison_operator,
10561 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
10562 arith_double_operand, ireg_operand, lhs_lshift_operand,
10563 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
10564 integer_store_memory_operand): Likewise.
10565 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
10566 (integer_store_memory_operand, read_only_operand,
10567 function_label_operand, borx_reg_operand,
10568 non_hard_reg_operand): Likewise.
10569 (eq_neq_comparison_operator): Delete unused operator.
10570 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
10571 function_label_operand.
10572 (emit_move_sequence): Likewise.
10574 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
10576 * config/i386/sse.md (sseunpackmode): New mode attribute.
10577 (ssepackmode): Ditto.
10578 (vec_pack_trunc_<mode>): Macroize expander from
10579 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
10580 (vec_unpacks_lo_<mode>): Macroize expander from
10581 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10582 (vec_unpacks_hi_<mode>): Macroize expander from
10583 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10584 (vec_unpacku_lo_<mode>): Macroize expander from
10585 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10586 (vec_unpacku_hi_<mode>): Macroize expander from
10587 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10588 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
10589 ix86_expand_sse4_unpack.
10590 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
10592 2011-04-16 Jan Hubicka <jh@suse.cz>
10594 * cgraphbuild.c: Include ipa-inline.h.
10595 (reset_inline_failed): Use initialize_inline_failed.
10596 * cgraph.c: Include ipa-inline.h.
10597 (cgraph_create_node_1): Do not initialize estimated_growth.
10598 (initialize_inline_failed): More to ipa-inline-analysis.c
10599 (dump_cgraph_node): Do not dump inline flags.
10600 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
10601 and disregard_inline_limits flags.
10602 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
10603 time, size, estimated_growth.
10604 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
10606 * cgraphunit.c (cgraph_decide_is_function_needed): Use
10607 DECL_DISREGARD_INLINE_LIMITS.
10608 (cgraph_analyze_function): Do not initialize
10609 node->local.disregard_inline_limits.
10610 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
10611 inlinable, versionable and disregard_inline_limits.
10612 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
10613 cgraph_check_inline_limits, cgraph_default_inline_p,
10614 cgraph_edge_badness, update_caller_keys, update_callee_keys,
10615 add_new_edges_to_heap): Update.
10616 (cgraph_decide_inlining_of_small_function): Update; set
10617 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
10618 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
10619 cgraph_decide_inlining_incrementally): Update.
10620 * ipa-inline.h (inline_summary): Add inlinable, versionable,
10621 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
10622 time, size and estimated_growth parameters.
10623 (estimate_edge_growth): Update.
10624 (initialize_inline_failed): Declare.
10625 * ipa-split.c: Include ipa-inline.h
10626 (execute_split_functions): Update.
10627 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
10628 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
10629 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
10630 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
10631 estimated_growth to INT_MIN.
10632 (inline_node_duplication_hook): Likewise.
10633 (dump_inline_summary): Dump new fields.
10634 (compute_inline_parameters): Update.
10635 (estimate_edge_time, estimate_time_after_inlining,
10636 estimate_size_after_inlining, estimate_growth, inline_read_summary,
10637 inline_write_summary):
10638 (initialize_inline_failed): Move here from cgraph.c.
10639 * tree-sra.c: Include ipa-inline.h.
10640 (ipa_sra_preliminary_function_checks): Update.
10641 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
10644 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
10646 * config/i386/sse.md (V16): New mode iterator.
10648 (AVXMODEQI, AVXMODEDI): Remove.
10649 (sse2, sse3): New mode attribute.
10650 (mov<mode>): Use V16 mode iterator.
10651 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
10652 (push<mode>1): Use V16 mode iterator.
10653 (movmisalign<mode>): Ditto.
10654 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
10655 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
10656 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
10657 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
10658 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
10659 avx_movdqu<avxmodesuffix>.
10660 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
10661 *avx_movdqu<avxmodesuffix>.
10662 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
10663 avx_lddqu<avxmodesuffix>.
10664 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
10665 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
10666 avx_movnt<AVXMODEDI:mode>.
10667 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
10668 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
10670 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
10673 * haifa-sched.c (prune_ready_list, schedule_block): Use
10674 sched_pressure_p rather than flag_sched_pressure.
10676 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
10678 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
10679 cgraph_get_node instead of cgraph_get_create_node.
10681 2011-04-15 Jakub Jelinek <jakub@redhat.com>
10683 * cfgexpand.c (expand_debug_expr): Use
10684 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
10686 2011-04-15 Michael Matz <matz@suse.de>
10688 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
10689 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
10690 * function.c (gimplify_parameters): Ditto.
10691 * gimplify.c (gimplify_vla_decl): Ditto.
10693 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
10694 (gimple_call_set_alloca_for_var): New inline function.
10695 (gimple_call_alloca_for_var_p): Ditto.
10696 * gimple.c (gimple_build_call_from_tree): Remember
10697 CALL_ALLOCA_FOR_VAR_P state.
10698 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
10700 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
10701 calls if they were for VLA objects.
10703 2011-04-15 Martin Jambor <mjambor@suse.cz>
10705 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
10708 2011-04-15 Martin Jambor <mjambor@suse.cz>
10710 PR middle-end/48601
10711 * tree-emutls.c (lower_emutls_function_body): Call
10712 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
10713 result is non-NULL.
10715 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
10717 * c-decl.c (detect_field_duplicates): Call
10718 objc_detect_field_duplicates instead of objc_get_interface_ivars.
10720 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
10722 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
10723 * gimple.c (gimple_asm_clobbers_memory_p): Define.
10724 * ipa-pure-const.c (check_stmt): Call it.
10725 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
10727 2011-04-15 Richard Guenther <rguenther@suse.de>
10729 PR tree-optimization/48290
10730 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
10731 Properly decide inhibiting propagation based on the valueized
10732 operand. Do loop-closed SSA form preserving here ...
10733 (init_copy_prop): ... not here.
10735 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
10738 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
10739 (*ieee_smax<mode>3): Likewise.
10741 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10743 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
10744 Replace match_operand with match_dup for the third operand in
10747 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
10749 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
10750 to track processing of conditionals. Update all callers.
10751 (try_combine, simplify_if_then_else): Update.
10753 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
10755 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
10758 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
10760 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
10761 instead of match_operand for operand 3.
10763 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
10765 * recog.h (insn_operand_data): Add an "allows_mem" field.
10766 * genoutput.c (output_operand_data): Initialize it.
10767 * optabs.c (maybe_legitimize_operand_same_code): New function.
10768 (maybe_legitimize_operand): Use it when matching the original
10771 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
10773 * gimplify.c: Fix issues in comments throughout.
10774 (voidify_wrapper_expr): Fix long line.
10775 (build_stack_save_restore): Likewise.
10776 (gimplify_loop_expr): Likewise.
10777 (gimplify_compound_lval): Likewise.
10778 (gimplify_init_ctor_eval): Likewise.
10779 (gimplify_modify_expr_rhs): Likewise.
10780 (omp_notice_threadprivate_variable): Likewise.
10782 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
10784 * cfgexpand.c (expand_call_stmt): Convert the function type to the
10785 original one if this is not a builtin function.
10787 2011-04-14 Jakub Jelinek <jakub@redhat.com>
10790 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
10791 offset it as needed based on top 2 bits in operands[3], change
10792 MEM mode to SFmode and mask those 2 bits away from operands[3].
10794 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
10796 * c-parser.c (c_parser_objc_protocol_definition): Updated for
10797 change from objc_declare_protocols() to objc_declare_protocol().
10799 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
10801 * config/i386/sse.md (sse4_1): New mode attribute.
10802 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
10803 avx_blend<ssemodesuffix><avxmodesuffix> and
10804 sse4_1_blend<ssemodesuffix> using VF mode iterator.
10805 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
10806 avx_blendv<ssemodesuffix><avxmodesuffix> and
10807 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
10808 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
10809 avx_dp<ssemodesuffix><avxmodesuffix> and
10810 sse4_1_dp<ssemodesuffix> using VF mode iterator.
10811 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
10812 (sse4_1_packusdw): Merge with *avx_packusdw.
10813 (sse4_1_pblendvb): Merge with *avx_pblendvb.
10814 (sse4_1_pblendw): Merge with *avx_pblendw.
10815 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
10816 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
10817 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
10819 (sse4_1_round<ssescalarmodesuffix>): Merge with
10820 *avx_round<ssescalarmodesuffix>.
10821 (aesenc): Merge with *avx_aesenc.
10822 (aesenclast): Merge with *avx_aesenclast.
10823 (aesdec): Merge with *avx_aesdec.
10824 (aesdeclast): Merge with *avx_aesdeclast.
10825 (pclmulqdq): Merge with *pclmulqdq.
10826 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
10828 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
10830 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
10832 PR middle-end/48608
10833 * cfgexpand.c (get_decl_align_unit): Renamed to ...
10834 (align_local_variable): This. Update DECL_ALIGN.
10835 (add_stack_var): Updated.
10836 (expand_one_stack_var): Likewise.
10838 2011-04-14 Richard Guenther <rguenther@suse.de>
10840 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
10842 (dse_initialize_block_local_data, dse_leave_block,
10843 record_voperand_set, get_stmt_uid): Likewise.
10844 (dse_possible_dead_store_p): Allow any kind of killing stmt.
10845 (dse_optimize_stmt): Remove voperand set handling code.
10846 Simplify and improve to handle any kind of killing stmt.
10847 (dse_record_phi): Remove.
10848 (dse_enter_block): Simplify.
10849 (tree_ssa_dse): Likewise.
10850 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
10852 2011-04-14 Jan Hubicka <jh@suse.cz>
10854 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
10855 * cgraph.h (struct inline_summary): Move to ipa-inline.h
10856 (cgraph_local_info): Remove inline_summary.
10857 * ipa-cp.c: Include ipa-inline.h.
10858 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
10859 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
10861 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
10862 (input_overwrite_node): Do not set inline summary.
10863 (input_node): Do not stream inline summary.
10864 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
10865 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
10866 growth; we do not have inline parameters computed for that anyway.
10867 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
10868 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
10869 (inline_summary_t): New type and VECtor.
10870 (debug_inline_summary, dump_inline_summaries): Declare.
10871 (inline_summary): Use VOCtor.
10872 (estimate_edge_growth): Kill hack computing call stmt size directly.
10873 * lto-section-in.c (lto_section_name): Add inline section.
10874 * ipa-inline-analysis.c: Include lto-streamer.h
10875 (node_removal_hook_holder, node_duplication_hook_holder): New holders
10876 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
10877 (inline_summary_vec): Define.
10878 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
10879 dump_inline_summaries): New functions.
10880 (estimate_function_body_sizes): Properly compute size/time of outgoing
10882 (compute_inline_parameters): Alloc inline_summary; do not compute
10883 size/time of incomming calls.
10884 (estimate_edge_time): Avoid missing time summary hack.
10885 (inline_read_summary): Read inline summary info.
10886 (inline_write_summary): Write inline summary info.
10887 (inline_free_summary): Free all hooks and inline summary vector.
10888 * lto-streamer.h: Add LTO_section_inline_summary section.
10889 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
10890 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
10892 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10894 * tree-vectorizer.h (vect_strided_store_supported): Add a
10895 HOST_WIDE_INT argument.
10896 (vect_strided_load_supported): Likewise.
10897 (vect_permute_store_chain): Return void.
10898 (vect_transform_strided_load): Likewise.
10899 (vect_permute_load_chain): Delete.
10900 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
10901 count argument. Check that the count is a power of two.
10902 (vect_strided_load_supported): Likewise.
10903 (vect_permute_store_chain): Return void. Update after above changes.
10904 Assert that the access is supported.
10905 (vect_permute_load_chain): Likewise.
10906 (vect_transform_strided_load): Return void.
10907 * tree-vect-stmts.c (vectorizable_store): Update calls after
10908 above interface changes.
10909 (vectorizable_load): Likewise.
10910 (vect_analyze_stmt): Don't check for strided powers of two here.
10912 2011-04-14 Richard Guenther <rguenther@suse.de>
10914 PR tree-optimization/48590
10915 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10916 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
10917 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
10918 BUILT_IN_STACK_SAVE.
10919 * tree-ssa-dce.c (propagate_necessity): Handle
10920 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
10922 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
10924 * c-parser.c (c_parser_objc_class_declaration): Updated call to
10925 objc_declare_class.
10927 2011-04-14 Richard Guenther <rguenther@suse.de>
10929 * tree.h (get_object_alignment_1): Declare.
10930 * builtins.c (get_object_alignment_1): Split out worker from ...
10931 (get_object_alignment): ... here.
10932 * fold-const.c (get_pointer_modulus_and_residue): Use
10933 get_object_alignment_1.
10935 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10937 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
10939 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
10940 parameter. Generalise code to handle arrays as well as vectors.
10941 (vect_setup_realignment): Update accordingly.
10942 * tree-vect-stmts.c (vectorizable_store): Likewise.
10943 (vectorizable_load): Likewise.
10945 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10947 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
10948 within the per-copy loop.
10950 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10952 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
10955 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10957 * doc/options.texi (Negative): Explicitly mention that the
10958 Negative chain must be circular.
10960 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
10962 * function.h (block_chainon): Declare.
10963 * function.c (block_chainon): Define.
10965 2011-04-14 Anatoly Sokolov <aesok@post.ru>
10966 Eric Weddington <eric.weddington@atmel.com>
10967 Georg-Johann Lay <avr@gjlay.de>
10969 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
10971 (avr_init_builtins, avr_expand_builtin,
10972 avr_expand_delay_cycles, avr_expand_unop_builtin,
10973 avr_expand_binop_builtin ): New functions.
10974 (avr_builtin_id): New enum
10975 (struct avr_builtin_description): New struct
10976 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
10977 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
10979 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
10980 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
10981 UNSPECV_DELAY_CYCLES): new enumeration values
10982 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
10983 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
10984 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
10985 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
10986 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
10987 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
10988 "fmulsu"): New insns
10990 * config/avr/avr-c.c: fix line endings
10991 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
10992 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
10993 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
10994 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
10995 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
10997 * doc/extend.texi (AVR Built-in Functions): New node
10998 (Target Builtins): Add documentation of AVR
10999 built-in functions.
11001 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
11004 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
11005 alone. Error if non-const data has attribute progmem.
11007 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
11009 * tree.h (struct tree_constructor): Include tree_typed instead of
11011 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
11012 TS_TYPED instead of TS_COMMON.
11014 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
11016 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
11017 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
11018 (sse2_psadbw): Merge with *avx_psadbw.
11019 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
11020 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
11021 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
11022 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
11023 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
11024 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
11025 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
11026 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
11027 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
11028 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
11029 (ssse3_palignrti): Merge with *avx_palignrti.
11031 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
11033 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
11034 * tree-ssanames.c (fini_ssanames): VEC_free it.
11035 (make_ssa_name_fn): Update for VECness of free_ssanames.
11036 (release_ssa_name, release_dead_ssa_names): Likewise.
11037 * tree.h (struct tree_ssa_name): Include tree_typed instead of
11039 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
11040 TS_TYPED instead of TS_COMMON.
11042 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
11044 * postreload-gcse.c (gcse_after_reload_main): Add calls to
11045 statistics_counter_event.
11046 * tree-ssa-copyrename.c (stats): Define.
11047 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
11048 statistics_counter_event.
11049 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
11050 (bswap_stats, widen_mul_stats): Define.
11051 (insert_reciprocals): Increment rdivs_inserted.
11052 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
11053 rfuncs_inserted. Add calls to statistics_counter_event.
11054 (execute_cse_sincos_1): Increment inserted.
11055 (execute_cse_sincos): Zeroize sincos_stats. Add call to
11056 statistics_counter_event.
11057 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
11058 of bswap_stats. Add calls to statistics_counter_event.
11059 (convert_mult_to_widen): Increment widen_mults_inserted.
11060 (convert_plusminus_to_widen): Increment maccs_inserted.
11061 (convert_mult_to_fma): Increment fmas_inserted.
11062 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
11063 calls to statistics_counter_event.
11065 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
11067 PR rtl-optimization/48455
11068 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
11069 `temp_costs->mem_cost'.
11071 2011-04-13 Jan Hubicka <jh@suse.cz>
11073 * ipa-inline.h: New file.
11074 * ipa-inline-analysis.c: New file. Broken out of ...
11075 * ipa-inline.c: ... this file; update toplevel comment;
11076 include ipa-inline.h
11077 (inline_summary): Move to ipa-inline.h
11078 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
11079 ipa-inline-analysis.c.
11080 (cgraph_estimate_time_after_inlining): Rename to
11081 estiamte_time_after_inlining; move to ipa-inline-analysis.c
11082 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
11083 to estimate_edge_growth.
11084 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
11085 rename to estimate_size_after_inlining.
11086 (cgraph_mark_inline_edge): Update for new naming convention.
11087 (cgraph_check_inline_limits): Likewise.
11088 (cgraph_edge_badness): Likewise.
11089 (cgraph_decide_recursive_inlining): Likewise.
11090 (cgraph_decide_inlining_of_small_functions): Likewise.
11091 (cgraph_decide_inlining_incrementally): Likewise.
11092 (cgraph_estimate_growth): Rename to estimate_growth; move to
11093 ipa-inline-analysis.c.
11094 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
11095 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
11096 (compute_inline_parameters): Likewise.
11097 (compute_inline_parameters_for_current): Likewise.
11098 (pass_inline_parameters): Likewise.
11099 (inline_indirect_intraprocedural_analysis): Likewise.
11100 (analyze_function): Rename to inline_analyze_function; likewise.
11101 (add_new_function): Move to ipa-inline-analysis.c.
11102 (inline_generate_summary): Likewise.
11103 (inline_read_summary): Likewise.
11104 (inline_write_summary): Likewise.
11105 * Makefile.in (ipa-inline-analysis.c): New file.
11107 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11109 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
11110 * configure: Regenerate.
11112 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
11114 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
11115 instead of tree_common.
11116 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
11118 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
11119 TS_TYPED rather than TS_COMMON.
11120 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
11122 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
11125 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
11126 r20 around calls of __tablejump_elpm__
11128 2011-04-13 Jakub Jelinek <jakub@redhat.com>
11130 PR middle-end/48591
11131 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
11133 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
11135 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
11137 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
11138 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
11139 (cfi_vec): New typedef.
11140 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
11141 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
11142 (cie_cfi_vec): New static variable.
11143 (cie_cfi_head): Delete.
11144 (add_cfi): Accept a cfi_vec * as first argument. All callers and
11145 declaration changed. Use vector rather than list operations.
11146 (new_cfi): Don't initialize the dw_cfi_next field.
11147 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
11148 rather than list operations.
11149 (lookup_cfa): Use vector rather than list operations.
11150 (output_cfis): New argument upto. Accept a cfi_vec rather than
11151 a dw_cfi_ref list head as argument. All callers changed.
11152 Iterate over the vector using upto as a maximum index.
11153 (output_all_cfis): New static function.
11154 (output_fde): Use vector rather than list operations. Use the
11155 new upto argument for output_cfis rather than manipulating a
11157 (dwarf2out_begin_prologue): Change initializations to match
11158 new struct members.
11159 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
11160 from the vector length rather than searching for the end of a list.
11161 Use output_all_cfis.
11162 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
11164 2011-04-13 Nick Clifton <nickc@redhat.com>
11166 * config/rx/rx.md (movmemsi): Do not use this pattern when
11167 volatile pointers are involved.
11169 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
11171 * config/i386/sse.md (pinsrbits): Remove.
11172 (sse2_packsswb): Merge with *avx_packsswb.
11173 (sse2_packssdw): Merge with *avx_packssdw.
11174 (sse2_packuswb): Merge with *avx_packuswb.
11175 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
11176 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
11177 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
11178 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
11179 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
11180 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
11181 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
11182 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
11183 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
11184 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
11185 (sse2_loadld): Merge with *avx_loadld.
11186 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
11187 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
11188 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
11189 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
11190 (vec_concatv2di): Merge with *vec_concatv2di_avx.
11192 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
11194 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
11195 calling TREE_CHAIN.
11196 * print-tree.c (print_node): Likewise.
11197 * tree-inline.c (copy_tree_r): Likewise.
11198 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
11199 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
11200 instead of TS_COMMON.
11201 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
11202 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
11203 (copy_node_stat): Zero TREE_CHAIN only if necessary.
11204 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
11205 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
11207 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
11209 (TREE_CHAIN): Check for a TS_COMMON structure.
11210 (TREE_TYPE): Check for a TS_TYPED structure.
11212 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
11214 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
11215 cgraph_get_create_node instead of cgraph_node.
11217 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
11219 * c-parser.c (c_parser_initelt): Updated call to
11220 objc_build_message_expr.
11221 (c_parser_postfix_expression): Likewise.
11223 2011-04-12 Kai Tietz <ktietz@redhat.com>
11225 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
11226 MASK_MS_BITFIELD_LAYOUT bit.
11228 2011-04-12 Jakub Jelinek <jakub@redhat.com>
11230 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
11231 assert it is always true.
11232 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
11235 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
11237 * c-parser.c (c_lex_one_token): Rewritten conditional used when
11238 compiling Objective-C to be more efficient.
11240 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
11242 * opts-common.c (decode_cmdline_options_to_array): Remove variable
11245 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
11247 * recog.h, genoutput.c, optabs.c: Revert last patch.
11249 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11252 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
11254 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
11256 * recog.h (insn_operand_data): Add an "allows_mem" field.
11257 * genoutput.c (output_operand_data): Initialize it.
11258 * optabs.c (maybe_legitimize_operand_same_code): New function.
11259 (maybe_legitimize_operand): Use it when matching the original
11262 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
11264 * genpreds.c (process_define_predicate): Move most processing
11265 to gensupport.c. Continue to validate the expression.
11266 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
11267 (process_define_predicate): Move processing to gensupport.c.
11268 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
11269 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
11270 (compute_predicate_codes): Moved from genrecog.c. Add lineno
11272 (valid_predicate_name_p): New function, split out from old
11273 genpreds.c:process_define_predicate.
11274 (process_define_predicate): New function, combining code from
11275 old genpreds.c and genrecog.c functions.
11276 (process_rtx): Call it for DEFINE_PREDICATE and
11277 DEFINE_SPECIAL_PREDICATE.
11279 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
11281 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
11282 size of a '%A' memory reference.
11283 (T_DREG, T_QREG): New neon_builtin_type_bits.
11284 (arm_init_neon_builtins): Assert that the load and store operands
11285 are neon_struct_operands.
11286 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
11287 (NEON_ARG_MEMORY): New builtin_arg.
11288 (neon_dereference_pointer): New function.
11289 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
11290 Handle NEON_ARG_MEMORY.
11291 (arm_expand_neon_builtin): Update after above interface changes.
11292 Use NEON_ARG_MEMORY for loads and stores.
11293 * config/arm/predicates.md (neon_struct_operand): New predicate.
11294 * config/arm/iterators.md (V_two_elem): Tweak formatting.
11295 (V_three_elem): Use BLKmode for accesses that have no associated mode.
11296 (V_four_elem): Tweak formatting.
11297 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
11298 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
11299 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
11300 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
11301 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
11302 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
11303 (neon_vst4<mode>): Replace pointer operand with a memory operand.
11304 Use %A in the output template.
11305 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
11306 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
11307 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
11308 the width of the memory access. Remove post-increment.
11309 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
11311 2011-04-12 Nick Clifton <nickc@redhat.com>
11313 * config/v850/v850.c (expand_prologue): Do not use the CALLT
11314 instruction for interrupt handlers if the target is the basic V850
11316 (expand_epilogue): Likewise.
11318 2011-04-12 Jakub Jelinek <jakub@redhat.com>
11320 PR rtl-optimization/48549
11321 * combine.c (propagate_for_debug): Also stop after BB_END of
11322 this_basic_block. Process LAST and just stop processing after it.
11323 (combine_instructions): If last_combined_insn has been deleted,
11324 set last_combined_insn to its PREV_INSN.
11326 2011-04-12 Richard Guenther <rguenther@suse.de>
11328 PR tree-optimization/46076
11329 * gimple.h (struct gimple_statement_call): Add fntype field.
11330 (gimple_call_fntype): Adjust.
11331 (gimple_call_set_fntype): New function.
11332 * gimple.c (gimple_build_call_1): Set the call function type.
11333 * gimplify.c (gimplify_call_expr): Preserve the function
11334 type the frontend used for the call.
11335 (gimplify_modify_expr): Likewise.
11336 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
11338 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
11340 * tree-ssa.c (useless_type_conversion_p): Function pointer
11341 conversions are useless.
11343 2011-04-12 Martin Jambor <mjambor@suse.cz>
11345 * cgraph.h (cgraph_node): Remove function declaration.
11346 (cgraph_create_node): Declare.
11347 (cgraph_get_create_node): Likewise.
11348 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
11349 Updated all callers.
11350 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
11351 the decl does not already exist. Call cgraph_get_create_node instead
11353 (cgraph_get_create_node): New function.
11354 (cgraph_same_body_alias): Update comment.
11355 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
11356 assert it does not return NULL.
11357 (cgraph_update_edges_for_call_stmt): Likewise.
11358 (cgraph_clone_edge): Likewise.
11359 (cgraph_create_virtual_clone): Likewise.
11360 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
11361 instead of cgraph_node.
11362 (cgraph_add_new_function): Call cgraph_create_node or
11363 cgraph_get_create_node instead of cgraph_node.
11364 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
11365 instead of cgraph_node.
11366 (record_eh_tables): Likewise.
11367 (mark_address): Likewise.
11368 (mark_load): Likewise.
11369 (build_cgraph_edges): Call cgraph_get_create_node instead
11371 (rebuild_cgraph_edges): Likewise.
11372 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
11373 instead of cgraph_node.
11374 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
11376 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
11377 cgraph_create_node instead of cgraph_node.
11378 * c-decl.c (finish_function): Call cgraph_get_create_node instead
11380 * lto-cgraph.c (input_node): Likewise.
11381 * lto-streamer-in.c (input_function): Likewise.
11382 * varasm.c (mark_decl_referenced): Likewise.
11383 (assemble_alias): Likewise.
11385 2011-04-12 Martin Jambor <mjambor@suse.cz>
11387 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
11388 instead of cgraph_node and assert it does not return NULL.
11389 * lto-streamer-in.c (lto_read_body): Likewise.
11390 * omp-low.c (new_omp_context): Likewise.
11391 (create_task_copyfn): Likewise.
11392 * tree-emutls.c (lower_emutls_function_body): Likewise.
11393 * matrix-reorg.c (transform_allocation_sites): Likewise.
11395 2011-04-12 Jakub Jelinek <jakub@redhat.com>
11398 * c-typeck.c (build_asm_expr): Error out on attempts to use
11399 void type outputs or inputs for constraints that allow reg or
11400 don't allow memory.
11402 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
11403 Richard Earnshaw <rearnsha@arm.com>
11406 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
11407 to use sign-magnitude offsets. Reject unsupported unaligned
11408 cases. Add detailed description in comments.
11409 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
11410 condition from TARGET_32BIT to TARGET_ARM.
11412 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
11414 * tree.h (struct typed_tree): New.
11415 (struct tree_common): Include it instead of tree_base.
11416 (TREE_TYPE): Update for new location of type field.
11417 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
11418 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
11419 (union tree_node): Add typed field.
11420 * treestruct.def (TS_TYPED): New.
11421 * lto-streamer.c (check_handled_ts_structures): Handle it.
11422 * tree.c (MARK_TS_TYPED): New macro.
11423 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
11425 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
11427 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
11428 (force_nonfallthru): Do not alter the loop nest if no basic block
11431 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
11433 * config/i386/sse.md (VI): New mode iterator.
11434 (SSEMODEI): Remove.
11435 (AVX256MODEI): Ditto.
11436 (AVXMODEF4P): Ditto.
11437 (avxvecpsmode): Ditto.
11438 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
11439 (sse2_andnot<mode>3): New expander.
11440 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
11441 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
11442 (<any_logic:code><mode>3): Use VI mode iterator.
11443 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
11444 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
11445 (*andnottf3): Handle AVX three-operand constraints.
11446 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
11448 2011-04-11 Joseph Myers <joseph@codesourcery.com>
11449 Robert Millan <rmh@gnu.org>
11451 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
11452 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
11453 GNU_USER_DYNAMIC_LINKER64): Define.
11454 (REG_NAME): Don't undefine.
11455 (MD_UNWIND_SUPPORT): Undefine.
11456 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
11457 (REG_NAME): Don't undefine.
11458 (MD_UNWIND_SUPPORT): Undefine.
11459 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
11461 2011-04-11 Joseph Myers <joseph@codesourcery.com>
11463 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
11464 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
11466 2011-04-11 Xinliang David Li <davidxl@google.com>
11468 * value-profile.c (check_ic_target): New function.
11469 (gimple_ic_transform): Sanity check indirect call target.
11470 * gimple-low.c (gimple_check_call_args): Interface change.
11471 (gimple_check_call_matching_types): New function.
11472 * tree-inline.c (tree_can_inline_p): Call new function.
11474 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
11476 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
11477 tree-pretty-print.h & realmpfr.h.
11479 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
11481 PR middle-end/48464
11482 * ira.c (setup_pressure_classes): Fix typo in loop condition.
11483 (setup_allocno_and_important_classes): Ditto.
11485 2011-04-11 Joseph Myers <joseph@codesourcery.com>
11487 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
11488 GNU_USER_DYNAMIC_LINKER.
11489 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
11490 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11491 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
11492 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
11493 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
11494 GNU_USER_TARGET_OS_CPP_BUILTINS.
11495 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
11496 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11497 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
11498 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11499 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
11500 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
11501 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
11502 GNU_USER_TARGET_OS_CPP_BUILTINS.
11503 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11504 GNU_USER_DYNAMIC_LINKER.
11505 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11506 GNU_USER_TARGET_OS_CPP_BUILTINS.
11507 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
11508 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11509 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
11510 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11511 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
11512 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
11513 GNU_USER_DYNAMIC_LINKER64): Remove.
11514 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
11515 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11516 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11517 GNU_USER_DYNAMIC_LINKER.
11518 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11519 GNU_USER_TARGET_OS_CPP_BUILTINS.
11520 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11521 GNU_USER_TARGET_OS_CPP_BUILTINS.
11522 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
11523 to GNU_USER_TARGET_OS_CPP_BUILTINS.
11524 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11525 GNU_USER_TARGET_OS_CPP_BUILTINS.
11526 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
11527 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
11528 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
11529 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
11530 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11531 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11532 GNU_USER_DYNAMIC_LINKER.
11533 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
11534 GNU_USER_TARGET_OS_CPP_BUILTINS.
11535 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
11536 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11537 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11538 GNU_USER_DYNAMIC_LINKER.
11539 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
11540 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11541 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
11542 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11543 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11544 GNU_USER_DYNAMIC_LINKER.
11545 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
11546 GNU_USER_DYNAMIC_LINKERN32.
11547 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
11548 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
11549 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
11550 GNU_USER_DYNAMIC_LINKER32.
11551 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
11552 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11553 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11554 GNU_USER_DYNAMIC_LINKER.
11555 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
11556 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11557 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
11558 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11559 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
11560 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
11561 GNU_USER_DYNAMIC_LINKER32.
11562 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
11563 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
11564 GNU_USER_DYNAMIC_LINKER.
11565 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
11566 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11567 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
11568 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
11569 GNU_USER_DYNAMIC_LINKER64.
11570 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
11571 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11572 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11573 GNU_USER_DYNAMIC_LINKER.
11574 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
11575 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11576 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11577 GNU_USER_DYNAMIC_LINKER.
11578 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
11579 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11580 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
11581 GNU_USER_DYNAMIC_LINKER32.
11582 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
11583 GNU_USER_DYNAMIC_LINKER64.
11584 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
11585 GNU_USER_DYNAMIC_LINKER64.
11586 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
11587 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11588 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
11589 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11590 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
11592 2011-04-11 Joseph Myers <joseph@codesourcery.com>
11594 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
11595 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
11596 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
11597 GNU_USER_DYNAMIC_LINKER.
11598 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
11599 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
11600 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
11601 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
11602 GNU_USER_DYNAMIC_LINKER64.
11603 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
11604 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
11605 GNU_USER_LINK_EMULATION.
11606 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
11607 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
11608 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
11609 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
11610 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
11611 CPP_SPEC, CC1_SPEC): Remove.
11612 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
11613 (GNU_USER_DYNAMIC_LINKER): Define.
11614 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
11615 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
11616 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
11617 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
11618 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
11619 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
11620 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
11621 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
11622 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
11623 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
11624 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
11625 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
11626 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
11627 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
11628 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
11629 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
11630 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11631 GNU_USER_DYNAMIC_LINKER.
11632 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11633 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
11634 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11635 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
11636 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11637 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
11638 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
11639 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
11640 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
11641 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
11643 2011-04-11 Kai Tietz <ktietz@redhat.com>
11647 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
11648 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
11650 (ix86_is_msabi_thiscall): Removed.
11651 (ix86_is_type_thiscall): Likewise.
11652 (ix86_get_callcvt): New function.
11653 (ix86_comp_type_attributes): Simplify check.
11654 (ix86_function_regparm): Use ix86_get_callcvt for calling
11655 convention attribute checks.
11656 (ix86_return_pops_args): Likewise.
11657 (ix86_static_chain): Likewise.
11658 (x86_this_parameter): Likewise.
11659 (x86_output_mi_thunk): Likewise.
11660 (ix86_function_type_abi): Optimize check for types without attributes.
11661 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
11662 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
11663 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
11665 (IX86_BASE_CALLCVT): Helper macro.
11666 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
11667 Use ix86_get_callcvt for calling convention attribute checks and avoid
11668 symbol-decoration for stdcall in TARGET_RTD case.
11669 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
11671 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
11674 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
11676 * config/i386/sse.md (VI_128): New mode iterator.
11677 (VI12_128): Rename from SSEMODE12.
11678 (VI14_128): Rename from SSEMODE14.
11679 (VI124_128): New mode iterator.
11680 (VI24_128): Rename from SSEMODE248.
11681 (VI248_128): Rename from SSEMODE248.
11682 (SSEMODE124C8): Remove.
11683 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
11684 (*sse2_<plusminus_insn><mode>3): Merge with
11685 *avx_<plusminus_insn><mode>3.
11686 (*mulv8hi3): Merge with *avx_mulv8hi3.
11687 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
11688 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
11689 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
11690 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
11691 (ashr<mode>3): Merge with *avx_ashr<mode>3.
11692 (lshr<mode>3): Merge with *avx_lshr<mode>3.
11693 (ashl<mode>3): Merge with *avx_ashl<mode>3.
11694 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
11695 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
11696 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11697 (*<smaxmin:code>v8hi3): Ditto.
11698 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
11699 (*<smaxmin:code>v16qi3): Ditto.
11700 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
11701 (*sse2_eq<mode>3): Ditto.
11702 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
11703 (*sse2_gt<mode>3): Ditto.
11704 (vcondv2di): Split out of vcond<mode>.
11705 (vconduv2di): Split out of vcondu<mode>.
11707 2011-04-11 Richard Guenther <rguenther@suse.de>
11709 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
11710 before calling tree_low_cst.
11712 2011-04-11 Richard Guenther <rguenther@suse.de>
11714 * stor-layout.c (layout_type): Compute all array index size operations
11715 in the original type.
11716 (initialize_sizetypes): Add comment.
11717 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
11719 2011-04-11 Joseph Myers <joseph@codesourcery.com>
11721 * common.opt (Tbss=, Tdata=, Ttext=): New options.
11723 2011-04-11 Martin Jambor <mjambor@suse.cz>
11725 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
11726 of cgraph_node, handle NULL return value.
11727 (cgraph_global_info): Likewise.
11728 (cgraph_rtl_info): Likewise.
11729 * tree-inline.c (estimate_num_insns): Likewise.
11730 * gimplify.c (unshare_body): Likewise.
11731 (unvisit_body): Likewise.
11732 (gimplify_body): Likewise.
11733 * predict.c (optimize_function_for_size_p): Likewise.
11734 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
11735 (call_may_clobber_ref_p_1): Likewise.
11736 * varasm.c (function_section_1): Likewise.
11737 (assemble_start_function): Likewise.
11739 2011-04-11 Martin Jambor <mjambor@suse.cz>
11741 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
11743 * final.c (rest_of_clean_state): Likewise.
11744 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
11745 * passes.c (pass_init_dump_file): Likewise.
11746 (execute_all_ipa_transforms): Likewise.
11747 (function_called_by_processed_nodes_p): Likewise.
11748 * predict.c (maybe_hot_frequency_p): Likewise.
11749 (probably_never_executed_bb_p): Likewise.
11750 (compute_function_frequency): Likewise.
11751 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
11752 (unnest_nesting_tree_1): Likewise.
11753 (lower_nested_functions): Likewise.
11754 * tree-optimize.c (execute_fixup_cfg): Likewise.
11755 (tree_rest_of_compilation): Likewise.
11756 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
11757 * tree-sra.c (ipa_early_sra): Likewise.
11758 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
11759 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
11760 * ipa.c (record_cdtor_fn): Likewise.
11761 * ipa-inline.c (cgraph_early_inlining): Likewise.
11762 (compute_inline_parameters_for_current): Likewise.
11763 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
11764 * ipa-pure-const.c (local_pure_const): Likewise.
11765 * ipa-split.c (split_function): Likewise.
11766 (execute_split_functions): Likewise.
11767 * cgraphbuild.c (build_cgraph_edges): Likewise.
11768 (rebuild_cgraph_edges): Likewise.
11769 (cgraph_rebuild_references): Likewise.
11770 (remove_cgraph_callee_edges): Likewise.
11771 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
11772 (verify_cgraph_node): Likewise.
11773 (cgraph_analyze_functions): Likewise.
11774 (cgraph_preserve_function_body_p): Likewise.
11775 (save_inline_function_body): Likewise.
11776 (save_inline_function_body): Likewise.
11777 * tree-inline.c (copy_bb): Likewise.
11778 (optimize_inline_calls): Likewise.
11780 2011-04-11 Martin Jambor <mjambor@suse.cz>
11782 PR tree-optimization/48195
11783 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
11784 ipa_check_create_edge_args.
11785 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
11786 ipa_check_create_edge_args.
11787 * ipa-inline.c (inline_generate_summary): Do not call
11788 ipa_check_create_node_params and ipa_check_create_edge_args.
11789 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
11790 ipa_check_create_edge_args.
11792 2011-04-09 Anatoly Sokolov <aesok@post.ru>
11794 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
11796 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11797 * function.c (record_hard_reg_sets): Likewise.
11798 * ira.c (compute_regs_asm_clobbered): Likewise.
11799 * sched-deps.c (sched_analyze_1): Likewise.
11800 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
11802 2011-04-09 Xinliang David Li <davidxl@google.com>
11804 PR tree-optimization/PR48484
11805 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
11806 has_valid_pred lazily
11808 2011-04-09 Duncan Sands <baldrick@free.fr>
11810 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
11812 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
11814 * combine.c (combine_validate_cost): Adjust comments. Set registered
11815 cost of I0 to zero at the end, if any.
11817 2011-04-08 Xinliang David Li <davidxl@google.com>
11819 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
11820 to insane profile data.
11822 2011-04-08 Xinliang David Li <davidxl@google.com>
11824 * ipa-cp.c (ipcp_update_profiling): Correct
11825 negative scale factor due to insane profile data.
11827 2011-04-08 Xinliang David Li <davidxl@google.com>
11829 * final.c (dump_basic_block_info): New function.
11830 (final): Dump basic block.
11831 (final_scan_insn): Remove old dump.
11833 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
11836 * config.gcc (i386-*-freebsd): Disable unwind table generation for
11839 2011-04-08 Michael Matz <matz@suse.de>
11841 PR middle-end/48389
11842 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
11844 (rebuild_jump_labels): Call rebuild_jump_labels_1.
11845 * rtl.h (rebuild_jump_labels_chain): Declare.
11846 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
11847 insns inserted on edges.
11849 2011-04-08 Joseph Myers <joseph@codesourcery.com>
11851 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
11852 * config/arm/arm-arches.def: New.
11853 * config/arm/arm-opts.h: New.
11854 * config/arm/genopt.sh: New.
11855 * config/arm/arm-tables.opt: New (generated).
11856 * config/arm/arm.c (arm_handle_option, arm_target_help,
11857 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
11858 (all_architectures): Get most table contents from arm-arches.def.
11859 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
11860 arm_selected_tune here.
11861 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
11862 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
11863 (march=, mcpu=, mtune=): Use Enum and Var.
11864 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
11865 (arm.o): Update dependencies.
11867 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
11869 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
11871 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
11872 (write_typed_alloc_defns): Likewise.
11873 (main): Calls write_typed_alloc_defns with output_header.
11875 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
11877 PR inline-asm/48435
11878 * ira-color.c (setup_profitable_hard_regs): Add comments.
11879 Don't take prohibited hard regs into account.
11880 (setup_conflict_profitable_regs): Rename to
11881 get_conflict_profitable_regs.
11882 (check_hard_reg_p): Check prohibited hard regs.
11884 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
11886 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
11887 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
11888 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
11890 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11893 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
11894 move from floating point to shift amount register.
11895 (emit_move_sequence): Remove secondary reload support for floating
11896 point to shift amount amount register copies.
11897 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
11898 amount register copies.
11899 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
11900 register, return false if mode isn't a scalar integer mode.
11901 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
11903 2011-04-08 Richard Guenther <rguenther@suse.de>
11905 * gimple.c (gimple_call_flags): Remove kludge.
11907 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
11909 * sel-sched.c (sel_region_init): Move call to
11910 sel_setup_region_sched_flags after setup_current_loop_nest.
11912 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
11914 PR rtl-optimization/48272
11915 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
11916 init_insn_reg_pressure_info. Adjust a caller.
11917 * sched-int.h (init_insn_reg_pressure_info): Declare.
11918 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
11919 when sched-pressure is enabled.
11921 2011-04-08 Richard Guenther <rguenther@suse.de>
11923 * gimple.c (gimple_set_modified): Do not queue calls to
11924 MODIFIED_NORETURN_CALLS here ...
11925 * tree-ssa-operands.c (update_stmt_operands): ... but here.
11927 2011-04-08 Richard Guenther <rguenther@suse.de>
11930 * toplev.c (lang_dependent_init): Do not open asm_out_file
11931 in WPA mode, nor perform debug machinery initialization.
11932 (finalize): Do not unlink asm_out_file in WPA mode.
11934 2011-04-08 Richard Guenther <rguenther@suse.de>
11936 * gimple.h (gimple_call_fntype): New function.
11937 (gimple_call_return_type): Use it.
11938 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
11939 * gimple-low.c (gimple_check_call_args): Likewise.
11940 * gimple.c (gimple_call_flags): Likewise.
11941 (gimple_call_arg_flags): Likewise.
11942 (gimple_call_return_flags): Likewise.
11943 * tree-cfg.c (verify_gimple_call): Likewise.
11944 (do_warn_unused_result): Likewise.
11945 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
11946 * value-prof.c (gimple_ic_transform): Fix fndecl check.
11948 2011-04-08 Dmitry Melnik <dm@ispras.ru>
11950 PR rtl-optimization/48235
11951 * sel-sched.c (code_motion_process_successors): Recompute the last
11952 insn in basic block if control flow changed.
11953 (code_motion_path_driver): Ditto. Recompute the first insn as well.
11954 Update condition for ilist_remove.
11956 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
11958 PR rtl-optimization/48302
11959 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
11960 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
11961 it to record added preheader blocks.
11962 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
11963 on to sel_add_loop_preheaders.
11964 (sel_region_init): Move call to setup_current_loop_nest after
11967 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
11970 * cfgloop.h (loop_has_exit_edges): New helper.
11971 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
11973 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
11974 that have no exit edges.
11976 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
11978 PR rtl-optimization/48442
11979 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
11980 all callers. Adjust assert.
11982 2011-04-08 Jakub Jelinek <jakub@redhat.com>
11984 PR tree-optimization/48377
11985 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
11986 is_packed to true even for types with smaller TYPE_ALIGN than
11989 2011-04-08 Richard Guenther <rguenther@suse.de>
11992 * doc/tm.texi: Re-generate.
11994 2011-04-08 Wei Guozhi <carrot@google.com>
11997 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
11998 * config/arm/arm.c (arm_attr_length_push_multi): New function.
11999 * config/arm/arm.md (*push_multi): Change the length computation to
12002 2011-04-08 Anatoly Sokolov <aesok@post.ru>
12004 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
12005 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
12006 * doc/tm.texi: Regenerate.
12007 * system.h (ASM_OUTPUT_BSS): Poison.
12008 * varasm.c (asm_output_bss): Remove function.
12009 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
12011 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
12012 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
12013 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
12014 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
12016 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
12018 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
12020 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12022 2011-04-07 Joseph Myers <joseph@codesourcery.com>
12024 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
12027 2011-04-07 Joseph Myers <joseph@codesourcery.com>
12029 * config/m68k/m68k.c (m68k_handle_option): Don't handle
12030 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
12031 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
12033 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
12034 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
12035 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
12036 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
12037 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
12038 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
12039 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
12040 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
12041 options. Don't map other m68k options manually. Don't handle
12042 old-style options as canonical.
12043 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
12044 * doc/install.texi (m68k-*-*): Document binutils version requirement.
12046 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
12048 * basic-block.h (force_nonfallthru): Move to...
12049 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
12050 (force_nonfallthru): ...here.
12051 * cfghooks.c (force_nonfallthru): New function.
12052 * cfgrtl.c (force_nonfallthru): Rename into...
12053 (rtl_force_nonfallthru): ...this.
12054 (commit_one_edge_insertion): Do not set AUX field.
12055 (commit_edge_insertions): Do not discover new basic blocks.
12056 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
12057 (cfg_layout_rtl_cfg_hooks): Likewise.
12058 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
12059 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
12060 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
12062 2011-04-07 Anatoly Sokolov <aesok@post.ru>
12064 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12067 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
12069 * config/i386/sse.md: Update copyright year.
12070 (avxcvtvecmode): Remove.
12071 (sse_movhlps): Merge with *avx_movhlps.
12072 (sse_movlhps): Merge with *avx_movlhps.
12073 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
12074 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
12075 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
12076 (sse_loadhps): Merge with *avx_loadhps.
12077 (sse_storelps): Merge with *avx_storelps.
12078 (sse_loadlps): Merge with *avx_loadlps.
12079 (sse_movss): Merge with *avx_movss.
12080 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
12081 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
12082 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
12083 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
12084 (vec_set<mode>_0): Ditto.
12085 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
12086 (sse4_1_insertps): Merge with *avx_insertps.
12087 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
12088 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
12089 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
12090 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
12091 (sse2_storehpd): Merge with *avx_storehpd.
12092 (sse2_loadhpd): Merge with *avx_loadhpd.
12093 (sse2_loadlpd): Merge with *avx_loadlpd.
12094 (sse2_movsd): Merge with *avx_movsd.
12095 (*vec_concatv2df): Merge with *vec_concatv2df.
12097 2011-04-07 Jakub Jelinek <jakub@redhat.com>
12100 * combine.c (combine_instructions): Add last_combined_insn,
12101 update it if insn is after it, pass it to all try_combine calls.
12102 (try_combine): Add last_combined_insn parameter, pass it instead of
12103 i3 to propagate_for_debug.
12105 2011-04-07 Nick Clifton <nickc@redhat.com>
12107 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
12108 to handle MDR <-> data register transfers.
12109 (movhi_internal): Likewise.
12111 2011-04-07 Alan Modra <amodra@gmail.com>
12113 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
12114 previous stack info.
12116 2011-04-07 Tom de Vries <tom@codesourcery.com>
12119 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
12120 flow_find_cross_jump. Swap variables to implement backward replacement.
12121 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
12123 2011-04-07 Tom de Vries <tom@codesourcery.com>
12126 * cfgcleanup.c (walk_to_nondebug_insn): New function.
12127 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
12129 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
12130 src1 or src2. Redirect edges to the last basic block. Update
12131 frequency and count on multiple basic blocks in case of fallthru.
12133 2011-04-07 Tom de Vries <tom@codesourcery.com>
12136 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
12138 (old_insns_match_p): Change return type. Replace return false/true
12139 with return dir_none/dir_both. Use can_replace_by.
12140 (flow_find_cross_jump): Add dir_p parameter. Init replacement
12141 direction from dir_p. Register replacement direction in dir, last_dir
12142 and afterlast_dir. Handle new return type of old_insns_match_p using
12143 merge_dir. Return replacement direction in dir_p.
12144 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
12145 return type of old_insns_match_p.
12146 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
12147 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
12148 flow_find_cross_jump.
12149 * basic-block.h (enum replace_direction): New type.
12150 (flow_find_cross_jump): Add parameter to declaration.
12152 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
12154 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
12155 (AVXMODEDCVTPS2DQ): Ditto.
12156 (VEC_FLOAT_MODE): Ditto.
12157 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
12158 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
12159 (<any_logic:code><mode>3): Use VF mode iterator.
12160 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
12161 Use VF mode iterator.
12162 (copysign<mode>3): Use VF mode iterator.
12163 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
12164 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
12165 (*<any_logic:code><MODEF:mode>3): Merge with
12166 *avx_<any_logic:code><MODEF:mode>3.
12167 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
12168 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
12169 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
12170 (avx_cvtdq2ps<avxmodesuffix>): Remove.
12171 (sse2_cvtdq2ps): Use %v modifier.
12172 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
12173 (avx_cvtps2dq<avxmodesuffix>): Remove.
12174 (sse2_cvtps2dq): Use %v modifier.
12175 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
12176 (avx_cvttps2dq<avxmodesuffix>): Remove.
12177 (sse2_cvttps2dq): Use %v modifier.
12178 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
12179 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
12180 (sse2_cvtsd2siq): Fix insn template.
12181 (sse2_cvtsd2siq_2): Ditto.
12182 (sse2_cvttsd2siq): Ditto.
12183 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
12184 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
12186 2011-04-06 Joseph Myers <joseph@codesourcery.com>
12188 * gcov-io.c: Use GCC Runtime Library Exception.
12190 2011-04-06 Jakub Jelinek <jakub@redhat.com>
12193 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
12194 as base_reg whatever register reg has been eliminated to, instead
12195 of hardcoding STACK_POINTER_REGNUM.
12197 2011-04-06 Joseph Myers <joseph@codesourcery.com>
12199 * doc/tm.texi.in: Document C target hooks as separate from general
12201 * doc/tm.texi: Regenerate.
12202 * genhooks.c (struct hook_desc): Add docname field.
12203 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
12205 (hook_array): Include c-target.def.
12206 (emit_documentation): Use docname field in output.
12207 (emit_init_macros): Take docname argument. Only emit definitions
12208 for hooks matching docname.
12209 (main): Expect additional arguments in all cases. Pass argument
12210 to emit_init_macros.
12211 * target.def: Move initial macro definitions and comments to
12212 target-hooks-macros.h.
12213 (gcc_targetcm): Move to c-family/c-target.def.
12214 * target.h (targetcm): Move declaration to c-family/c-target.h.
12215 * targhooks.c (default_handle_c_option): Move to
12217 * targhooks.h (default_handle_c_option): Move declaration to
12218 c-family/c-common.h.
12219 * target-hooks-macros.h: New file.
12220 * config.gcc (target_has_targetcm): Define and use to add to
12221 c_target_objs and cxx_target_objs.
12222 * config/default-c.c: New file.
12223 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
12224 of target.h and target-def.h.
12225 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
12226 (darwin_objc_construct_string, darwin_cfstring_ref_p,
12227 darwin_check_cfstring_format_arg): Make static.
12228 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
12229 TARGET_STRING_OBJECT_REF_TYPE_P,
12230 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
12231 * config/darwin-protos.h (darwin_objc_construct_string,
12232 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
12234 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
12235 TARGET_STRING_OBJECT_REF_TYPE_P,
12236 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
12237 * config/t-darwin (darwin-c.o): Update dependencies.
12238 * system.h (TARGET_HAS_TARGETCM): Poison.
12239 * Makefile.in (TARGET_H): Update.
12240 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
12241 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
12242 (default-c.o): New target.
12243 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
12244 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
12245 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
12247 (build/genhooks.o): Update dependencies.
12249 2011-04-06 Richard Guenther <rguenther@suse.de>
12251 * ipa-inline.c (enum inlining_mode): Remove.
12252 (cgraph_flatten): Use some other token.
12253 (cgraph_edge_early_inlinable_p): New function, split out from ...
12254 (cgraph_perform_always_inlining): New function, split out from ...
12255 (cgraph_decide_inlining_incrementally): ... here.
12256 (cgraph_mark_inline_edge): Adjust.
12257 (cgraph_early_inlining): Re-structure.
12258 (pass_early_inline): Require SSA form.
12260 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
12261 Julian Brown <julian@codesourcery.com>
12262 Mark Shinwell <shinwell@codesourcery.com>
12264 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
12265 LO_REGS only for Thumb-1.
12266 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
12267 be used in short instructions when optimising for size on Thumb-2.
12269 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
12271 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
12272 associated with user returns to be preserved.
12274 2011-04-06 Tristan Gingold <gingold@adacore.com>
12276 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
12277 symbol_queue_size, DBXOUT_DECR_NESTING,
12278 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
12279 if XCOFF_DEBUGGING_INFO.
12281 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
12283 * config/i386/i386.md (attribute isa): New.
12284 (attribute enabled): New.
12285 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
12286 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
12287 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
12288 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
12289 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
12290 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
12291 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
12292 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
12294 * config/i386/sse.md (VF): New mode iterator.
12298 (SSEMODEF4): Remove.
12299 (attribute sse): Handle V8SF and V4DF modes.
12300 (<absneg:code><mode>2): Use VF mode iterator.
12301 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
12303 (<plusminus_insn><mode>3): Use VF mode iterator.
12304 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
12305 Use VF mode iterator.
12306 (<sse>_vm<plusminus_insn><mode>3): Merge with
12307 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
12308 (mul<mode>3): Use VF mode iterator.
12309 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
12310 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
12312 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
12313 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
12314 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
12315 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
12317 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
12318 Use VF1 mode iterator.
12319 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
12320 (sqrt<VF2:mode>2): New expander.
12321 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
12322 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
12323 and sqrtv2df2. Use VF mode iterator.
12324 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
12326 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
12327 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
12328 Use VF1 mode iterator.
12329 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
12330 (<smaxmin:code><mode>3): Use VF mode iterator.
12331 (*<smaxmin:code><mode>3_finite): Merge with
12332 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
12333 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
12334 (<sse>_vm<smaxmin:code><mode>2): Merge with
12335 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
12336 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
12338 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
12340 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
12341 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
12342 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
12343 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
12344 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
12346 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
12347 Use VF_128 mode iterator.
12348 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
12350 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
12351 VF_128 mode iterator.
12352 (vcond<mode>): Use VF mode iterator.
12353 * config/i386/predicates.md (sse_comparison_operator): Merge with
12354 avx_comparison_float_operator. Do not declare as special_predicate.
12355 * config/i386/i386.c (struct builtin_description): Update for renamed
12357 (ix86_expand_args_builtin): Ditto.
12358 (ix86_expand_sse_compare_mask): Ditto.
12360 2011-04-06 Richard Guenther <rguenther@suse.de>
12362 * tree-inline.c (estimate_num_insns): For calls simply account
12363 for all passed arguments and a used return value.
12365 2011-04-06 Richard Guenther <rguenther@suse.de>
12367 PR tree-optimization/47663
12368 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
12369 call_stmt_time fields.
12370 (cgraph_edge_inlinable_p): Declare.
12371 (cgraph_edge_recursive_p): New inline function.
12372 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
12373 (cgraph_clone_edge): Copy it.
12374 * ipa-inline.c (cgraph_estimate_edge_time): New function.
12375 Account for call stmt time.
12376 (cgraph_estimate_time_after_inlining): Take edge argument.
12377 (cgraph_estimate_edge_growth): Account call stmt size.
12378 (cgraph_estimate_size_after_inlining): Take edge argument.
12379 (cgraph_mark_inline_edge): Adjust.
12380 (cgraph_check_inline_limits): Likewise.
12381 (cgraph_recursive_inlining_p): Remove.
12382 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
12383 (cgraph_decide_recursive_inlining): Take edge argument and
12385 (cgraph_decide_inlining_of_small_functions): Do not avoid
12386 diags for recursive inlining here.
12387 (cgraph_flatten): Adjust.
12388 (cgraph_decide_inlining_incrementally): Likewise.
12389 (estimate_function_body_sizes): Remove call cost handling.
12390 (compute_inline_parameters): Initialize caller edge call costs.
12391 (cgraph_estimate_edge_growth): New function.
12392 (cgraph_estimate_growth): Use it.
12393 (cgraph_edge_badness): Likewise.
12394 (cgraph_check_inline_limits): Take an edge argument.
12395 (cgraph_decide_inlining_of_small_functions): Adjust.
12396 (cgraph_decide_inlining): Likewise.
12397 * tree-inline.c (estimate_num_insns): Only account for call
12398 return value if it is used.
12399 (expand_call_inline): Avoid diagnostics on recursive inline
12401 * lto-cgraph.c (lto_output_edge): Output edge call costs.
12402 (input_edge): Input edge call costs.
12404 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12406 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
12408 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
12410 * doc/invoke.texi (Spec Files): Fix typo.
12412 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
12414 * profile.c (branch_prob): Move declaration of local variable. Remove
12415 obsolete ??? comment. Expand the location explicitly instead of using
12416 the LOCATION_FILE and LOCATION_LINE macros.
12418 2011-04-06 Wei Guozhi <carrot@google.com>
12421 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
12422 (arm_cond_branch): Likewise.
12423 (arm_cond_branch_reversed): Likewise.
12424 (arm_jump): Likewise.
12425 (push_multi): Likewise.
12426 * config/arm/constraints.md (Py): New constraint.
12428 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12431 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
12433 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
12434 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
12435 #ifdef DBX_DEBUGGING_INFO.
12437 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
12440 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
12441 if old and new states differ.
12443 2011-04-05 Joseph Myers <joseph@codesourcery.com>
12445 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
12446 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
12447 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
12448 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
12449 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
12450 mcfv4e): Use Alias.
12451 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
12452 ColdFire options to -mcpu= options.
12454 2011-04-05 Jeff Law <law@redhat.com>
12456 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
12457 check if BB is a successor of LOOP->header and return
12458 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
12460 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
12462 * cprop.c (struct reg_use): Remove.
12463 (reg_use_table): Make an array of RTX.
12464 (find_used_regs, constprop_register, local_cprop_pass,
12465 bypass_block): Simplify users of reg_use_table.
12466 (cprop_insn): Likewise. Iterate if copy propagation succeeded
12467 on one of the uses found by find_used_regs.
12469 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12472 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
12475 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12477 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
12479 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
12481 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
12483 PR middle-end/48441
12484 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
12486 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12488 * combine.c: Include obstack.h.
12489 (struct insn_link): Define.
12490 (uid_log_links): Adjust type.
12491 (FOR_EACH_LOG_LINK): New macro.
12492 (insn_link_obstack): Declare.
12493 (alloc_insn_link): Define.
12494 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
12495 type of link variables.
12496 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
12497 (try_combine, record_promoted_values, distribute_notes): Likewise.
12498 (distribute_links): Likewise. Tweak prototype.
12499 (clear_log_links): Delete.
12500 (adjust_for_new_dest): Call alloc_insn_link.
12501 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
12503 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12505 * gcse.c (modify_mem_list): Convert to an array of VECs.
12506 (canon_modify_mem_list, compute_transp): Tweak formatting.
12507 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
12508 (load_killed_in_block_p): Likewise.
12509 (record_last_mem_set_info): Likewise.
12510 (clear_modify_mem_tables): Likewise.
12512 2011-04-05 Tom de Vries <tom@codesourcery.com>
12514 PR middle-end/48461
12515 * function.c (emit_use_return_register_into_block): Only define if
12518 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
12520 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
12522 2011-04-05 Joseph Myers <joseph@codesourcery.com>
12524 * config/rx/rx-opts.h: New.
12525 * config/rx/rx.c (rx_cpu_type): Remove.
12526 (rx_handle_option): Don't assert that global structures are in
12527 use. Access variables via opts pointer. Defer most handling of
12528 OPT_mint_register_. Use error_at.
12529 (rx_option_override): Handle deferred OPT_mint_register_ here.
12530 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
12531 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
12532 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
12533 (rx_cpu_types): New Enum and EnumValue entries.
12534 (mint-register=): Use Defer and use Var accordingly.
12536 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12538 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
12539 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
12540 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
12542 (debug_free_queue, debug_nesting, symbol_queue_index):
12544 * dbxout.c: ...to here. Make static.
12546 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12548 * gcse.c (modify_pair): Define. Define a VEC of it.
12549 (canon_modify_mem_list): Convert to an array of VECs.
12550 (free_insn_expr_list_list): Delete.
12551 (clear_modify_mem_tables): Call VEC_free instead.
12552 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
12553 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
12554 (canon_list_insert, compute_transp): Likewise.
12556 2011-04-05 Tom de Vries <tom@codesourcery.com>
12559 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
12562 2011-04-05 Tom de Vries <tom@codesourcery.com>
12565 * function.c (emit_use_return_register_into_block): New function.
12566 (thread_prologue_and_epilogue_insns): Use
12567 emit_use_return_register_into_block.
12569 2011-04-05 Tom de Vries <tom@codesourcery.com>
12572 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
12575 2011-04-05 Tom de Vries <tom@codesourcery.com>
12577 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
12579 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
12581 * config/arm/arm.md (define_constants for unspec): Replace with
12583 (define_constants for unspecv): Replace with define_c_enum.
12584 * config/arm/neon.md (define_constants for unspec): Replace with
12587 2011-04-04 Richard Henderson <rth@redhat.com>
12590 * dwarf2out.c (output_line_info): Always emit line info from
12591 at least one section.
12592 (dwarf2out_init): Create text_section_line_info here ...
12593 (set_cur_line_info_table): ... not here.
12595 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
12598 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
12601 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
12603 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
12605 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
12606 (expr_equiv_p): Remove.
12607 (insert_set_in_table): Look at <dest, src> pair instead of expr.
12608 (hash_scan_set): Update call to insert_set_in_table.
12609 (dump_hash_table): Dump <dest, src> pair.
12610 (lookup_set): Simplify. Lookup <dest, src> pair.
12611 (compute_transp): Remove, fold heavily simplified code into...
12612 (compute_local_properties): ...here. Expect COMP and TRANSP
12614 (find_avail_set): Take set directly from struct expr.
12615 (find_bypass-set): Likewise.
12616 (bypass_block): Likewise.
12617 (cprop_insn): Likewise. Remove redundant INSN_P test.
12619 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
12620 checks on form of COND from find_implicit_sets to here.
12621 (find_implicit_sets): Cleanup control flow. Split critical edges
12622 if it exposes implicit sets. Allocate/resize implicit_sets as
12624 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
12625 changed something. Run df_analyze after find_implicit_sets if any
12626 edges were split. Do not allocate implicit_sets here.
12628 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
12629 (gcse_obstack): Renamed to cprop_obstack.
12630 (GNEW, GNEWVEC, GNEWVAR): Remove.
12632 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
12633 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
12634 (gcse_alloc): Likewise, and rename to cprop_alloc.
12635 (alloc_gcse_men, free_gcse_mem): Remove.
12636 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
12637 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
12638 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
12640 * cprop.c (oprs_not_set_p): Remove.
12641 (mark_set, mark_clobber): Remove.
12642 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
12643 (reg_not_set_p): New function.
12644 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
12645 (cprop_insn): Likewise.
12646 (cprop_jump): Use FOR_EACH_EDGE.
12648 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
12651 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
12652 (rank_for_schedule): Use scheduled_insns vector instead of
12653 last_scheduled_insn.
12654 (ok_for_early_queue_removal): Likewise.
12655 (queue_to_ready): Search forward in nonscheduled_insns_begin if
12657 (choose_ready): Likewise.
12658 (commit_schedule): Use VEC_iterate.
12659 (schedule_block): Initialize nonscheduled_insns_begin. If we have
12660 a dbg_cnt, use it and ensure the first insn is in the ready list.
12661 (haifa_sched_init): Allocate scheduled_insns.
12662 (sched_extend_ready_list): Don't allocate it; reserve space.
12663 (haifa_sched_finish): Free it.
12665 2011-04-04 Joseph Myers <joseph@codesourcery.com>
12667 * optc-gen.awk: Always remove type from Variable entry before
12668 recording in var_seen.
12670 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
12672 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
12673 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
12674 call to tidy_fallthru_edges.
12676 2011-04-04 Joseph Myers <joseph@codesourcery.com>
12678 * doc/options.texi (ToLower): Document.
12679 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
12680 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
12681 * opts.h (cl_option): Add cl_tolower field.
12682 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
12683 arguments with lowercase strings.
12684 * config/rx/rx.opt (mcpu=): Add ToLower.
12685 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
12688 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
12690 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
12692 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
12694 * config/vax/vax.c: Include reload.h.
12696 2011-04-04 Anatoly Sokolov <aesok@post.ru>
12698 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
12699 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12700 (sparc_preferred_reload_class): New function.
12702 2011-04-04 Jakub Jelinek <jakub@redhat.com>
12705 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
12706 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
12708 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
12710 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
12711 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
12713 2011-04-03 Anatoly Sokolov <aesok@post.ru>
12715 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
12716 (ASM_OUTPUT_ALIGNED_BSS): Define.
12718 2011-04-03 Michael Matz <matz@suse.de>
12720 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
12721 and next_slot members.
12722 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
12723 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
12724 (lto_streamer_cache_append): Declare.
12725 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
12726 unsigned index, remove offset parameter, ensure that we append
12727 or update existing entries.
12728 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
12729 parameter, update next_slot for append.
12730 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
12732 (lto_streamer_cache_insert_at): Likewise.
12733 (lto_streamer_cache_append): New function.
12734 (lto_streamer_cache_lookup): Use unsigned index.
12735 (lto_streamer_cache_get): Likewise.
12736 (lto_record_common_node): Don't test tree_node_can_be_shared.
12737 (preload_common_node): Adjust call to lto_streamer_cache_insert.
12738 (lto_streamer_cache_delete): Don't free offsets member.
12739 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
12740 (lto_output_string_with_length): Use lto_output_data_stream.
12741 (lto_output_tree_header): Remove ix parameter, don't write it.
12742 (lto_output_builtin_tree): Likewise.
12743 (lto_write_tree): Adjust callers to above, don't track and write
12744 offset, write unsigned index.
12745 (output_unreferenced_globals): Don't emit all global vars.
12746 (write_global_references): Use unsigned indices.
12747 (lto_output_decl_state_refs): Likewise.
12748 (write_symbol): Likewise.
12749 * lto-streamer-in.c (lto_input_chain): Move earlier.
12750 (input_function): Use unsigned index.
12751 (input_alias_pairs): Don't read and then ignore all global vars.
12752 (lto_materialize_tree): Remove ix_p parameter, don't read index,
12753 don't pass it back, use lto_streamer_cache_append.
12754 (lto_register_var_decl_in_symtab): Use unsigned index.
12755 (lto_register_function_decl_in_symtab): Likewise.
12756 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
12758 (lto_get_builtin_tree): Don't read index, use
12759 lto_streamer_cache_append.
12760 (lto_read_tree): Adjust call to lto_materialize_tree.
12762 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
12763 don't use function calls in arguments to MIN.
12765 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
12768 * gimple.c (gimple_type_leader_entry): Mark deletable.
12770 2011-04-03 Alan Modra <amodra@gmail.com>
12772 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
12774 2011-04-03 Michael Matz <matz@suse.de>
12776 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
12778 * tree.h (tree_decl_non_common.vindex): Adjust comment.
12780 2011-04-03 Michael Matz <matz@suse.de>
12782 * cgraphbuild.c (record_reference): Canonicalize constructor values.
12783 * gimple-fold.c (canonicalize_constructor_val): Accept being called
12784 without function context.
12785 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
12786 current_function_decl and cfun.
12788 2011-04-03 Michael Matz <matz@suse.de>
12790 * tree.c (decl_init_priority_insert): Don't create entry for
12792 (decl_fini_priority_insert): Ditto.
12793 (fields_compatible_p, find_compatible_field): Remove.
12794 * tree.h (fields_compatible_p, find_compatible_field): Remove.
12795 * gimple.c (gimple_compare_field_offset): Adjust block comment.
12797 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
12799 * combine.c (try_combine): Remove useless local variable.
12801 2011-04-03 Richard Guenther <rguenther@suse.de>
12802 Ira Rosen <ira.rosen@linaro.org>
12804 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
12805 non-variable offsets and compare the remaining bases of the two
12806 accesses instead of looking for exact same data-ref.
12808 2011-04-02 Kai Tietz <ktietz@redhat.com>
12811 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
12813 * i386.c (ix86_is_msabi_thiscall): New helper function.
12814 (ix86_is_type_thiscall): New helper function.
12815 (ix86_comp_type_attributes): Handle thiscall for method-functions
12817 (init_cumulative_args): Likewise.
12818 (find_drap_reg): Likewise.
12819 (ix86_static_chain): Likewise.
12820 (x86_this_parameter): Likewise.
12821 (x86_output_mi_thunk): Likewise.
12823 2011-04-01 Olivier Hainque <hainque@adacore.com>
12824 Nicolas Setton <setton@adacore.com>
12825 Eric Botcazou <ebotcazou@adacore.com>
12827 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
12828 (add_gnat_descriptive_type_attribute): New function.
12829 (gen_array_type_die): Call it.
12830 (gen_enumeration_type_die): Likewise.
12831 (gen_struct_or_union_type_die): Likewise.
12832 (modified_type_die): Likewise.
12833 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
12834 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
12835 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
12837 2011-04-01 Jakub Jelinek <jakub@redhat.com>
12840 * dwarf2out.c (resolve_addr): Don't call force_decl_die
12841 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
12844 2011-03-17 Richard Guenther <rguenther@suse.de>
12847 * lto-cgraph.c (input_overwrite_node): Clear the abstract
12848 origin for decls in other ltrans units.
12849 (input_varpool_node): Likewise.
12851 2011-04-01 Jakub Jelinek <jakub@redhat.com>
12853 PR middle-end/48335
12854 * expr.c (expand_assignment): Handle all possibilities
12855 if TO_RTX is CONCAT.
12856 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
12857 (store_split_bit_field): If SUBREG_REG (op0) or
12858 op0 itself has smaller mode than word, return it
12859 for offset 0 and const0_rtx for out-of-bounds stores.
12860 If word is const0_rtx, skip it.
12862 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
12864 * config/h8300/h8300.c (print_operand_address): Rename to...
12865 (h8300_print_operand_address): ...this. Make static. Adjust comments.
12866 Call h8300_print_operand and h8300_print_operand_address instead of
12867 print_operand and print_operand_address. Declare.
12868 (print_operand): Renake to...
12869 (h8300_print_operand): ...this. Make static. Adjust comments.
12870 Call h8300_print_operand instead of print_operand. Declare.
12871 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
12872 (h8300_register_move_cost): Likewise.
12873 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
12874 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
12875 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
12876 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
12877 * config/h8300/h8300-protos.h (print_operand): Delete.
12878 (print_operand_address): Delete.
12880 2011-04-01 Richard Henderson <rth@redhat.com>
12883 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
12884 in strict mode before dwarf4. Re-order tests to early out
12885 before switching sections.
12887 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
12889 * config/h8300/constraints.md: New file.
12890 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
12891 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
12892 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
12893 * config/h8300/predicates.md (bit_operand): Likewise.
12894 (incdec_operand): Use satisfies_constraint_M and
12895 satisfies_constraint_O. Don't use C code block.
12896 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
12897 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
12898 (compute_mov_length): Use satisfies_constraint_G.
12899 (fix_bit_operand): Use satisfies_constraint_U.
12900 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
12901 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
12902 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
12903 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
12904 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
12905 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
12906 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12907 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
12908 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
12909 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
12910 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
12911 (EXTRA_MEMORY_CONSTRAINT): Delete.
12913 2011-04-01 Andrew Pinski <pinskia@gmail.com>
12914 Michael Meissner <meissner@linux.vnet.ibm.com>
12917 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
12918 operands, as per the specifications.
12920 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
12921 (vec_extract_evenv4sf): Ditto.
12922 (vec_extract_evenv8hi): Ditto.
12923 (vec_extract_evenv16qi): Ditto.
12924 (vec_extract_oddv4si): Ditto.
12926 2011-03-31 Mark Wielaard <mjw@redhat.com>
12928 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
12929 high_pc attribute if the CU has no associated code. Only output
12930 DW_AT_entry_pc for CU if not generating strict dwarf and
12933 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
12935 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
12936 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
12938 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
12939 * final.c (final_start_function): Call the new function rather
12940 than using a NULL argument for dwarf2out_frame_debug.
12942 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
12943 that contains the prologue.
12945 * haifa-sched.c (queue_insn): New arg REASON. All callers
12946 changed. Print it in debugging output.
12948 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
12950 * sched-ebb.c (begin_schedule_ready): Remove second argument.
12951 Split most of the code into...
12952 (begin_move_insn): ... here. New function.
12953 (ebb_sched_info): Add a pointer to it.
12954 * haifa-sched.c (scheduled_insns): New static variable.
12955 (sched_extend_ready_list): Allocate it.
12956 (schedule_block): Use it to record the order of scheduled insns.
12957 Perform RTL changes to move insns only after all scheduling
12958 decisions have been made.
12959 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
12960 begin_move_insn field.
12961 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
12962 * sched-int.h (struct haifa_sched_info): Remove second argument
12963 from begin_schedule_ready hook. Add new member begin_move_insn.
12964 * sched-rgn.c (begin_schedule_ready): Remove second argument.
12965 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
12967 * haifa-sched.c (prune_ready_list): New function, broken out of
12969 (schedule_block): Use it.
12971 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12973 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
12975 2011-04-01 Kai Tietz <ktietz@redhat.com>
12977 * config.gcc (*-*-mingw*): Allow as option the
12978 posix threading model.
12979 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
12980 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
12982 (CPP_SPEC): Add pthread/no-pthread handling.
12983 (LIB_SPEC): Likewise.
12984 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
12985 (LIB_SPEC): Likewise.
12986 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
12987 flag to pass -pthread option for shared libgcc build.
12988 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
12989 for shared libgcc build.
12990 * config/i386/t-mingw-pthread: New file.
12991 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
12992 New define to enable use of library pthread by default.
12993 * config/i386/mingw.opt (pthread): New driver option.
12994 (no-pthread): New driver option.
12995 * config/i386/cygming.opt: Make sure trailing empty line is retained.
12996 * config/i386/mingw-w64.opt: Likewise.
12998 2011-04-01 Gary Funck <gary@intrepid.com>
13000 * c-decl.c (grokdeclarator): Fix formatting.
13002 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
13004 * expr.c (emit_block_move_via_movmem): Use n_generator_args
13005 instead of n_operands.
13006 (set_storage_via_setmem): Likewise.
13007 * optabs.c (maybe_gen_insn): Likewise.
13008 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
13009 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
13010 (mips_expand_builtin_direct): Likewise.
13011 * config/spu/spu.c (expand_builtin_args): Likewise.
13013 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
13015 * recog.h (insn_data_d): Add n_generator_args.
13016 * genoutput.c (data): Likewise.
13017 (output_insn_data): Print it.
13018 (max_opno, num_dups): Delete.
13019 (scan_operands): Just fill in "d->operand[...]".
13020 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
13022 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
13024 * gensupport.h (pattern_stats): New structure.
13025 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
13026 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
13027 (max_operand_1, max_operand_vec): Delete.
13028 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
13030 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
13032 * emit-rtl.c (emit_pattern_after_setloc): New function.
13033 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
13034 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
13035 (emit_pattern_after): New function.
13036 (emit_insn_after, emit_jump_insn_after): Call it.
13037 (emit_call_insn_after, emit_debug_insn_after): Likewise.
13038 (emit_pattern_before_setloc): New function.
13039 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
13040 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
13042 (emit_pattern_before): New function.
13043 (emit_insn_before, emit_jump_insn_before): Call it.
13044 (emit_call_insn_before, emit_debug_insn_before): Likewise.
13046 2011-03-31 Richard Henderson <rth@redhat.com>
13048 * dwarf2out.c (dw_separate_line_info_ref): Remove.
13049 (dw_separate_line_info_entry): Remove.
13050 (enum dw_line_info_opcode): New.
13051 (dw_line_info_entry): Use it.
13052 (dw_line_info_table, dw_line_info_table_p): New.
13053 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
13054 (line_info_table, line_info_label_num): Remove.
13055 (line_info_table_in_use): Remove.
13056 (separate_line_info_table): Remove.
13057 (separate_line_info_table_allocated): Remove.
13058 (separate_line_info_table_in_use): Remove.
13059 (LINE_INFO_TABLE_INCREMENT): Remove.
13060 (line_info_label_num): New.
13061 (cur_line_info_table): New.
13062 (text_section_line_info, cold_text_section_line_info): New.
13063 (separate_line_info): New.
13064 (SEPARATE_LINE_CODE_LABEL): Remove.
13065 (print_dwarf_line_table): Remove.
13066 (debug_dwarf): Don't dump it.
13067 (output_one_line_info_table): New.
13068 (output_line_info): Use it.
13069 (new_line_info_table): New.
13070 (set_cur_line_info_table): New.
13071 (dwarf2out_switch_text_section): Use it.
13072 (dwarf2out_begin_function): Likewise.
13073 (push_dw_line_info_entry): New.
13074 (dwarf2out_source_line): Rewrite for new line info tables.
13075 (dwarf2out_init): Remove dead initailizations.
13077 2011-03-31 Joseph Myers <joseph@codesourcery.com>
13079 * opts.h (cl_option): Add comments to fields. Add bit-fields for
13081 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
13082 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
13083 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
13084 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
13085 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
13086 * opt-functions.awk (flag_init, switch_bit_fields): New.
13087 (switch_flags): Don't handle flags moved to bit-fields. Don't
13088 generate CL_MISSING_OK or CL_SAVE.
13089 * optc-gen.awk: Update to generate bit-field output as well as
13091 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
13092 bit-field instead of CL_REJECT_DRIVER flag.
13093 * opts-common.c (generate_canonical_option,
13094 decode_cmdline_option): Use bit-fields instead of CL_* flags.
13095 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
13096 instead of CL_REJECT_NEGATIVE flag.
13097 * toplev.c (print_switch_values): Use cl_report bit-field instead
13100 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
13102 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
13103 a zero minimum index only if it is redundant.
13105 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
13107 PR rtl-optimization/48381
13108 * ira-color.c (assign_hard_reg): Use hard reg set intersection
13109 instead of ira_class_hard_reg_index for calculating conflicting
13112 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
13114 * cprop.c: Clean up hash table building.
13115 (reg_avail_info): Remove.
13116 (oprs_available_p): Remove.
13117 (record_last_reg_set_info): Remove.
13118 (record_last_set_info): Remove.
13119 (reg_available_p): New function.
13120 (gcse_constant_p): Do not treat unfolded conditions as constants.
13121 (make_set_regs_unavailable): New function.
13122 (hash_scan_set): Simplify with new reg_available_p.
13123 (compute_hash_table_work): Traverse insns stream only once.
13124 Do not compute reg_avail_info. Traverse insns in reverse order.
13125 Record implicit sets after recording explicit sets from the block.
13127 2011-03-31 Michael Matz <matz@suse.de>
13129 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
13131 2011-03-31 Anatoly Sokolov <aesok@post.ru>
13133 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
13134 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
13135 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13136 (h8300_mode_dependent_address_p): New function.
13137 (h8300_get_index): Make static.
13139 2011-03-31 Jeff Law <law@redhat.com>
13141 * reload1.c (elimination_effects): Fix typo in recent change.
13143 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
13144 typo potentially leading to null pointer dereference.
13146 * caller-save.c (new_saved_hard_reg): Eliminate return value.
13147 (setup_save_areas): Corresponding changes to avoid useless
13150 * jump.c (reversed_comparison_code_parts): Avoid successive return
13151 statements when REVERSE_CONDITION is defined.
13153 * expr.c (expand_assignment): Avoid useless assignments.
13154 (expand_expr_real_1): Likewise.
13155 (expand_expr_real_2): Avoid useless statements.
13157 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
13159 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
13161 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
13164 * stmt.c (expand_expr_stmt): Avoid useless assignment.
13166 2011-03-31 Joseph Myers <joseph@codesourcery.com>
13169 * doc/tm.texi.in (TARGET_VERSION): Remove.
13170 * doc/tm.texi: Regenerate.
13171 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
13172 * collect2.c (main): Don't use TARGET_VERSION.
13173 * mips-tdump.c (main): Don't use TARGET_VERSION.
13174 * mips-tfile.c (main): Don't use TARGET_VERSION.
13175 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
13176 * config/rs6000/vxworksae.h: Remove.
13177 * config/alpha/alpha.h (TARGET_VERSION): Remove.
13178 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
13179 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
13180 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
13181 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
13182 * config/arm/arm.h (TARGET_VERSION): Remove.
13183 * config/arm/coff.h (TARGET_VERSION): Remove.
13184 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
13185 * config/arm/elf.h (TARGET_VERSION): Remove.
13186 * config/arm/freebsd.h (TARGET_VERSION): Remove.
13187 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
13188 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
13189 * config/arm/pe.h (TARGET_VERSION): Remove.
13190 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
13191 * config/arm/semi.h (TARGET_VERSION): Remove.
13192 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
13193 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
13194 * config/arm/vxworks.h (TARGET_VERSION): Remove.
13195 * config/avr/avr.h (TARGET_VERSION): Remove.
13196 * config/bfin/bfin.h (TARGET_VERSION): Remove.
13197 * config/fr30/fr30.h (TARGET_VERSION): Remove.
13198 * config/frv/frv.h (TARGET_VERSION): Remove.
13199 * config/h8300/h8300.h (TARGET_VERSION): Remove.
13200 * config/i386/cygwin.h (TARGET_VERSION): Remove.
13201 * config/i386/darwin.h (TARGET_VERSION): Remove.
13202 * config/i386/darwin64.h (TARGET_VERSION): Remove.
13203 * config/i386/djgpp.h (TARGET_VERSION): Remove.
13204 * config/i386/freebsd.h (TARGET_VERSION): Remove.
13205 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
13206 * config/i386/gnu.h (TARGET_VERSION): Remove.
13207 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
13208 * config/i386/i386elf.h (TARGET_VERSION): Remove.
13209 * config/i386/linux.h (TARGET_VERSION): Remove.
13210 * config/i386/linux64.h (TARGET_VERSION): Remove.
13211 * config/i386/lynx.h (TARGET_VERSION): Remove.
13212 * config/i386/mingw32.h (TARGET_VERSION): Remove.
13213 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
13214 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
13215 * config/i386/netware.h (TARGET_VERSION): Remove.
13216 * config/i386/nto.h (TARGET_VERSION): Remove.
13217 * config/i386/openbsd.h (TARGET_VERSION): Remove.
13218 * config/i386/vxworks.h (TARGET_VERSION): Remove.
13219 * config/ia64/elf.h (TARGET_VERSION): Remove.
13220 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
13221 * config/ia64/hpux.h (TARGET_VERSION): Remove.
13222 * config/ia64/linux.h (TARGET_VERSION): Remove.
13223 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
13224 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
13225 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
13226 * config/lm32/lm32.h (TARGET_VERSION): Remove.
13227 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
13228 * config/m32c/m32c.h (TARGET_VERSION): Remove.
13229 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
13230 * config/m32r/m32r.h (TARGET_VERSION): Remove.
13231 * config/m68k/linux.h (TARGET_VERSION): Remove.
13232 * config/m68k/m68k.h (TARGET_VERSION): Remove.
13233 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
13234 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
13235 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
13236 * config/mep/mep.h (TARGET_VERSION): Remove.
13237 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
13238 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
13239 * config/mips/iris6.h (MACHINE_TYPE): Remove.
13240 * config/mips/linux.h (TARGET_VERSION): Remove.
13241 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
13242 * config/mips/vxworks.h (TARGET_VERSION): Remove.
13243 * config/mmix/mmix.h (TARGET_VERSION): Remove.
13244 * config/mn10300/linux.h (TARGET_VERSION): Remove.
13245 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
13246 * config/pa/pa.h (TARGET_VERSION): Remove.
13247 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
13248 * config/picochip/picochip.h (TARGET_VERSION): Remove.
13249 * config/rs6000/aix.h (TARGET_VERSION): Remove.
13250 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
13251 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
13252 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
13253 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
13254 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
13255 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
13256 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
13257 * config/rs6000/linux.h (TARGET_VERSION): Remove.
13258 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
13259 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
13260 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
13261 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
13262 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
13263 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
13264 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
13265 * config/s390/linux.h (TARGET_VERSION): Remove.
13266 * config/s390/s390.h (TARGET_VERSION): Remove.
13267 * config/s390/tpf.h (TARGET_VERSION): Remove.
13268 * config/score/score.h (TARGET_VERSION): Remove.
13269 * config/sh/linux.h (TARGET_VERSION): Remove.
13270 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
13271 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
13272 * config/sh/sh.h (TARGET_VERSION): Remove.
13273 * config/sh/sh64.h (TARGET_VERSION): Remove.
13274 * config/sh/superh.h (TARGET_VERSION): Remove.
13275 * config/sh/vxworks.h (TARGET_VERSION): Remove.
13276 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
13277 * config/sparc/linux.h (TARGET_VERSION): Remove.
13278 * config/sparc/linux64.h (TARGET_VERSION): Remove.
13279 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
13280 TARGET_NAME32, TARGET_NAME): Remove.
13281 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
13282 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
13283 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
13284 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
13285 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
13286 * config/spu/spu.h (TARGET_VERSION): Remove.
13287 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
13288 * config/v850/v850.h (TARGET_VERSION): Remove.
13289 * config/vax/linux.h (TARGET_VERSION): Remove.
13290 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
13291 * config/xtensa/elf.h (TARGET_VERSION): Remove.
13292 * config/xtensa/linux.h (TARGET_VERSION): Remove.
13294 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
13297 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
13298 frame-related from frame-unrelated adjustments to the stack pointer.
13300 2011-03-31 Jakub Jelinek <jakub@redhat.com>
13302 * common.opt (fdebug-types-section): Move earlier.
13303 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
13305 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
13307 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
13310 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
13312 * tree.h (CASE_CHAIN): Define.
13313 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
13314 (gimple_redirect_edge_and_branch): Likewise.
13316 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
13318 PR middle-end/48367
13319 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
13322 2011-03-30 Jeff Law <law@redhat.com>
13324 * PR bootstrap/48371
13325 * reload1.c (reload): Fix botch in last change.
13327 * reload.h (struct reload): Fix typo introduced in last change.
13329 2011-03-30 Joseph Myers <joseph@codesourcery.com>
13331 * config/arm/arm.opt (mhard-float, msoft-float): Mark
13332 Undocumented. Remove help text.
13333 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
13336 2011-03-30 Joseph Myers <joseph@codesourcery.com>
13338 * doc/options.texi (NegativeAlias): Document.
13339 (Alias): Mention NegativeAlias.
13340 * opt-functions.awk: Handle NegativeAlias.
13341 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
13342 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
13343 * opts.h (CL_NEGATIVE_ALIAS): Define.
13344 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
13345 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
13347 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
13349 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
13350 mno-spe and mno-isel instead of mspe=no and -misel=no.
13352 2011-03-29 Mark Wielaard <mjw@redhat.com>
13354 * common.opt (fdebug-types-section): New flag.
13355 * doc/invoke.texi: Document new -fno-debug-types-section flag.
13356 * dwarf2out.c (use_debug_types): New define.
13357 (struct die_struct): Mark die_id with GTY desc use_debug_types.
13358 (print_die): Guard output of type unit signatures using
13360 (build_abbrev_table): Replace assert of dwarf_version >= 4
13361 with assert on use_debug_types.
13362 (size_of_die): Likewise.
13363 (unmark_dies): Likewise.
13364 (value_format): Decide AT_ref_external form on use_debug_types.
13365 (output_die): Replace dwarf_version version check guard with
13366 use_debug_types where appropriate.
13367 (modified_type_die): Likewise.
13368 (gen_reference_type_die): Likewise.
13369 (dwarf2out_start_source_file): Likewise.
13370 (dwarf2out_end_source_file): Likewise.
13371 (prune_unused_types_walk_attribs): Likewise.
13372 (dwarf2out_finish): Likewise.
13374 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
13376 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
13378 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
13380 PR rtl-optimization/48332
13381 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
13382 mode of input operand N and modeN to its actual mode.
13384 2011-03-30 Jeff Law <law@redhat.com>
13386 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
13387 define accessor macro.
13388 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
13389 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
13390 (reg_equiv_init): Likewise.
13391 (reg_equivs_size): New variable.
13392 (reg_equiv_init_size): Remove.
13393 (allocate_initial_values): Move prototype to here from....
13394 * integrate.h (allocate_initial_values): Remove prototype.
13395 * integrate.c: Include reload.h.
13396 (allocate_initial_values): Corresponding changes.
13397 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
13398 (fix_reg_equiv_init, no_equiv): Corresponding changes.
13399 (update_equiv_regs): Corresponding changes.
13400 (ira): Corresponding changes.
13401 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
13402 (push_secondary_reload): Corresponding changes.
13403 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
13404 (make_memloc, find_reloads_address): Corresponding changes.
13405 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
13406 (find_reloads_address_1): Corresponding changes.
13407 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
13408 (refers_to_regno_for_reload_p): Corresponding changes.
13409 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
13410 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
13411 * reload1.c: Include ggc.h.
13412 (grow_reg_equivs): New function.
13413 (replace_pseudos_in, reload): Corresponding changes.
13414 (calculate_needs_all_insns, alter_regs): Corresponding changes.
13415 (eliminate_regs_1, elimination_effects): Corresponding changes.
13416 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
13417 (delete_output_reload): Likewise.
13418 * caller-save.c (mark_referenced_regs): Corresponding changes.
13419 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
13420 * frv/predicates.md (frv_load_operand): Corresponding changes.
13421 * microblaze/microblaze.c (double_memory_operand): Corresponding
13423 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
13424 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
13425 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
13426 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
13427 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
13429 * pa/pa.c (emit_move_sequence): Corresponding changes.
13430 * vax/vax.c (nonindexed_address_p): Corresponding changes.
13432 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
13435 * config/arm/arm.c (coproc_secondary_reload_class): Handle
13436 structure modes. Don't check neon_vector_mem_operand for
13437 vector or structure modes.
13439 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
13440 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13443 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
13444 operand 1 and reshuffle the operands to match.
13445 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
13447 2011-03-30 Christian Schüler <cschueler@gmx.de>
13450 * config/c.opt (F): Added 'Driver' to -F option.
13453 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
13455 * config/darwin.opt: Added '-arch' option.
13457 2011-03-30 Nick Clifton <nickc@redhat.com>
13459 * config/rx/rx.md: Add peepholes and patterns to combine
13460 extending loads and simple arithmetic instructions.
13461 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
13462 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
13463 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
13464 modes to use pre-decrement and post-increment addressing.
13465 (rx_is_restricted_memory_address): Add range checking of REG+INT
13467 (rx_print_operand): Add support for %Q. Fix handling of %Q.
13468 (rx_memory_move_cost): Adjust cost of stores.
13469 (rx_adjust_insn_length): New function.
13471 2011-03-30 Jakub Jelinek <jakub@redhat.com>
13474 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
13475 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
13476 matching arg00/arg01 types.
13478 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
13480 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
13481 last_location to UNKNOWN_LOCATION.
13483 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
13486 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
13489 2011-03-30 Joseph Myers <joseph@codesourcery.com>
13490 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13493 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
13494 Init(PROCESSOR_V7).
13495 (sparc_cpu): Likewise.
13496 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
13499 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
13502 PR middle-end/48342
13503 PR rtl-optimization/48345
13504 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
13505 hard regs for given mode from profitable regs when doing secondary
13508 2011-03-29 Jeff Law <law@redhat.com>
13511 * tree-ssa-threadupdate.c (struct redirection_data): Remove
13512 do_not_duplicate field.
13513 (lookup_redirection_data): Corresponding changes.
13514 (create_duplicates): Always create a template block.
13515 (redirect_edges): Remove code which reused the original block
13516 when it was going to become unreachable code.
13517 (thread_block): Don't set do_not_duplicate field.
13519 2011-03-29 Joseph Myers <joseph@codesourcery.com>
13521 * lto-opts.c (register_user_option_p, lto_register_user_option):
13522 Make type argument unsigned.
13523 * lto-streamer.h (lto_register_user_option): Make type argument
13525 * opth-gen.awk: Make CL_* macros unsigned.
13526 * opts-common.c (find_opt): Make lang_mask argument unsigned.
13527 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
13528 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
13529 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
13530 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
13531 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
13532 (find_opt): Make lang_mask argument unsigned.
13534 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
13536 PR rtl-optimization/48331
13537 PR rtl-optimization/48334
13538 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
13539 for any used algorithm.
13541 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
13543 * ira-conflicts.c (build_object_conflicts): Add unused attribute
13546 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
13548 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
13549 (alpha_option_override): Don't set alpha_sr_alias_set.
13550 (emit_frame_store_1): Use gen_frame_mem rather than calling
13552 (alpha_expand_epilogue): Ditto.
13554 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
13556 PR tree-optimization/48290
13557 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
13558 vectorization, check that relevant phis in the basic block after
13559 the inner loop are really inner loop's exit phis.
13561 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
13564 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
13565 (cached_dw_loc_list_def): New structure.
13566 (cached_dw_loc_list): New typedef.
13567 (cached_dw_loc_list_table): New variable.
13568 (cached_dw_loc_list_table_hash): New function.
13569 (cached_dw_loc_list_table_eq): Likewise.
13570 (add_location_or_const_value_attribute): Take a bool cache_p.
13571 Cache the list when the parameter is true.
13572 (gen_formal_parameter_die): Update caller.
13573 (gen_variable_die): Likewise.
13574 (dwarf2out_finish): Likewise.
13575 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
13576 while generating debug info for the decl.
13577 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
13578 (dwarf2out_init): Initialize cached_dw_loc_list_table.
13579 (resolve_addr): Cache the result of resolving a chain of
13582 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
13584 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
13585 conflict object hard regset nodes have intersecting hard reg sets.
13587 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
13588 after regstat_init_n_sets_and_refs.
13590 * ira.c: Add more comments at the top.
13591 (setup_stack_reg_pressure_class, setup_pressure_classes):
13592 Add comments how we compute the register pressure classes.
13593 (setup_allocno_and_important_classes): Add more comments.
13594 (setup_class_translate_array, reorder_important_classes)
13595 (setup_reg_class_relations): Add comments.
13597 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
13600 * ira-color.c: Add 2011 to the Copyright line.
13601 (assign_hard_reg): Add more comments.
13602 (improve_allocation): Ditto.
13604 * ira-costs.c: Add 2011 to the Copyright line.
13605 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
13607 (setup_regno_cost_classes_by_mode): Ditto.
13609 Initial patches from ira-improv branch:
13611 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
13613 * ira-build.c (ira_create_object): Remove initialization of
13614 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
13615 (ira_create_allocno): Remove initialization of
13616 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
13617 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
13618 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
13619 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
13620 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
13621 Initialize ALLOCNO_ADD_DATA.
13622 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
13623 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
13625 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
13626 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
13628 * ira.c (ira_reallocate): Remove.
13629 (setup_pressure_classes): Call
13630 ira_init_register_move_cost_if_necessary. Use
13631 ira_register_move_cost instead of ira_get_register_move_cost.
13632 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
13633 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
13635 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
13636 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
13637 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
13638 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
13639 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
13640 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
13642 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
13643 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
13644 (struct allocno_color_data): New.
13645 (allocno_color_data_t): New typedef.
13646 (allocno_color_data): New definition.
13647 (ALLOCNO_COLOR_DATA): New macro.
13648 (struct object_color_data): New.
13649 (object_color_data_t): New typedef.
13650 (object_color_data): New definition.
13651 (OBJECT_COLOR_DATA): New macro.
13652 (update_copy_costs, calculate_allocno_spill_cost): Call
13653 ira_init_register_move_cost_if_necessary. Use
13654 ira_register_move_cost instead of ira_get_register_move_cost.
13655 (move_spill_restore, update_curr_costs): Ditto.
13656 (allocno_spill_priority): Make it inline.
13657 (color_pass): Allocate and free allocno_color_dat and object_color_data.
13658 (struct coalesce_data, coalesce_data_t): New.
13659 (allocno_coalesce_data): New definition.
13660 (ALLOCNO_COALESCE_DATA): New macro.
13661 (merge_allocnos, coalesced_allocno_conflict_p): Use
13662 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
13663 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
13664 (coalesce_allocnos): Ditto.
13665 (setup_coalesced_allocno_costs_and_nums): Ditto.
13666 (collect_spilled_coalesced_allocnos): Ditto.
13667 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
13668 (setup_slot_coalesced_allocno_live_ranges): Ditto.
13669 (coalesce_spill_slots): Ditto.
13670 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
13671 free allocno_coalesce_data.
13673 * ira-conflicts.c: Fix formatting.
13674 (process_regs_for_copy): Call
13675 ira_init_register_move_cost_if_necessary. Use
13676 ira_register_move_cost instead of ira_get_register_move_cost.
13677 (build_object_conflicts): Optimize.
13679 * ira-costs.c (record_reg_classes): Optimize. Call
13680 ira_init_register_move_cost_if_necessary. Use
13681 ira_register_move_cost, ira_may_move_in_cost, and
13682 ira_may_move_out_cost instead of ira_get_register_move_cost and
13683 ira_get_may_move_cost.
13684 (record_address_regs): Ditto.
13685 (scan_one_insn): Optimize.
13686 (find_costs_and_classes): Optimize.
13687 (process_bb_node_for_hard_reg_moves): Call
13688 ira_init_register_move_cost_if_necessary. Use
13689 ira_register_move_cost instead of ira_get_register_move_cost.
13691 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
13692 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
13693 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
13694 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
13696 (ira_initiate_emit_data, ira_finish_emit_data)
13697 (create_new_allocno): New functions.
13698 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
13699 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
13700 Use ira_register_move_cost instead of ira_get_register_move_cost.
13702 * ira-int.h: Fix some comments.
13703 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
13704 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
13705 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
13706 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
13708 (struct ira_allocno): Make mode and aclass a bitfield. Move other
13709 bitfield after mode. Make hard_regno a short int. Make
13710 hard_regno short. Remove first_coalesced_allocno and
13711 next_coalesced_allocno. Move mem_optimized_dest_p,
13712 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
13713 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
13714 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
13715 temp, colorable_p. Add new member add_data.
13716 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
13717 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
13718 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
13719 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
13720 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
13721 (ALLOCNO_ADD_DATA): New macro.
13722 (ira_emit_data_t): New typedef.
13723 (struct ira_emit_data): New. Move mem_optimized_dest_p,
13724 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
13725 from struct ira_allocno.
13726 (ALLOCNO_EMIT_DATA): New macro.
13727 (ira_allocno_emit_data, allocno_emit_reg): New.
13728 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
13729 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
13730 (OBJECT_ADD_DATA): New macro.
13731 (ira_reallocate): Remove.
13732 (ira_initiate_emit_data, ira_finish_emit_data): New.
13733 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
13734 (ira_init_register_move_cost_if_necessary): New.
13735 (ira_object_conflict_iter_next): Merge into
13736 ira_object_conflict_iter_cond.
13737 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
13739 * ira-live.c (process_single_reg_class_operands): Call
13740 ira_init_register_move_cost_if_necessary. Use
13741 ira_register_move_cost instead of ira_get_register_move_cost.
13743 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
13745 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
13747 * ira-costs.c: Fix formatting.
13748 (cost_classes, cost_classes_num): Remove.
13749 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
13750 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
13751 (cost_classes_del, cost_classes_htab): New.
13752 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
13753 (initiate_regno_cost_classes, setup_cost_classes): New.
13754 (setup_regno_cost_classes_by_aclass): New.
13755 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
13756 (record_reg_classes): Use regno_cost_classes instead of
13757 cost_classes. Move checking opposite operand up.
13758 (record_address_regs): Use regno_cost_classes
13759 instead of cost_classes.
13760 (scan_one_insn): Ditto. Use always general register.
13761 (print_allocno_costs): Use regno_cost_classes instead of
13763 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
13764 (find_costs_and_classes): Set up cost classes for each registers.
13765 Use also their mode for this. Use regno_cost_classes instead of
13767 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
13769 (free_ira_costs, ira_init_costs): Don't use cost_classes.
13770 (ira_costs, ira_set_pseudo_classes): Call
13771 initiate_regno_cost_classes and finish_regno_cost_classes.
13773 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
13775 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
13777 * target.def (ira_cover_classes): Remove.
13779 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
13781 * doc/tm.texi.in: Ditto.
13783 * ira-conflicts.c: Remove mentioning cover classes from the file.
13784 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
13785 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
13787 * targhooks.c (default_ira_cover_classes): Remove.
13789 * targhooks.h (default_ira_cover_classes): Ditto.
13791 * haifa-sched.c: Remove mentioning cover classes from the file.
13792 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
13793 ira_pressure_classes and ira_pressure_classes_num instead of
13794 ira_reg_class_cover_size and ira_reg_class_cover. Use
13795 sched_regno_pressure_class instead of sched_regno_cover_class.
13796 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
13797 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13799 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
13800 classes from the file.
13801 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
13802 (struct object_hard_regs, struct object_hard_regs_node): New.
13803 (struct ira_object): New members profitable_hard_regs,
13804 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
13805 (struct ira_allocno): Rename cover_class to aclass. Rename
13806 cover_class_cost and updated_cover_class_cost to class_cost and
13807 updated_class_cost. Remove splay_removed_p and
13808 left_conflict_size. Add new members colorable_p.
13809 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
13810 (ALLOCNO_COLORABLE_P): New macro.
13811 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
13812 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
13813 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
13814 (OBJECT_...): Rename parameter C to O.
13815 (OBJECT_PROFITABLE_HARD_REGS): New macro.
13816 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
13817 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
13818 (struct target_ira_int): New members x_ira_max_memory_move_cost,
13819 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
13820 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
13821 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
13822 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
13823 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
13824 x_ira_reg_class_subunion.
13825 (ira_max_memory_move_cost, ira_max_register_move_cost)
13826 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
13827 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
13828 (ira_important_class_nums, ira_reg_class_superunion): New macros.
13829 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
13830 (ira_reg_class_union): Rename to ira_reg_class_subunion.
13831 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
13832 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
13833 (ira_tune_allocno_costs_and_cover_classes): Rename to
13834 ira_tune_allocno_costs.
13835 (ira_debug_hard_regs_forest): New.
13836 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
13837 (ira_object_conflict_iter_next): Fix comments.
13838 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
13839 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
13840 cover_class to aclass.
13841 (ira_allocate_and_accumulate_costs): Ditto.
13842 (ira_allocate_and_set_or_copy_costs): Ditto.
13844 * opts.c (decode_options): Remove ira_cover_class check.
13846 * ira-color.c: Remove mentioning cover classes from the file. Use
13847 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
13848 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
13849 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
13850 (splay-tree.h): Remove include.
13851 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
13852 before copy_freq_compare_func.
13853 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
13854 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
13856 (hard_regs_roots, hard_regs_node_vec): Ditto.
13857 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
13858 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
13859 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
13860 (create_new_object_hard_regs_node): Ditto.
13861 (add_new_object_hard_regs_node_to_forest): Ditto.
13862 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
13863 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
13865 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
13866 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
13867 (remove_unused_object_hard_regs_nodes): Ditto.
13868 (enumerate_object_hard_regs_nodes): Ditto.
13869 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
13870 (object_hard_regs_subnode_t): Ditto.
13871 (struct object_hard_regs_subnode): Ditto.
13872 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
13873 (setup_object_hard_regs_subnode_index): Ditto.
13874 (get_object_hard_regs_subnodes_num): Ditto.
13875 (form_object_hard_regs_nodes_forest): Ditto.
13876 (finish_object_hard_regs_nodes_tree): Ditto.
13877 (finish_object_hard_regs_nodes_forest): Ditto.
13878 (allocnos_have_intersected_live_ranges_p): Rename to
13879 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
13880 (pseudos_have_intersected_live_ranges_p): Rename to
13881 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
13882 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
13883 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
13884 (update_copy_costs): Remove assert. Skip cost update if the hard
13885 reg does not belong the class.
13886 (assign_hard_reg): Process only profitable hard regs.
13887 (uncolorable_allocnos_num): Make it scalar.
13888 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
13889 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
13890 and ira_reg_class_max_nregs.
13891 (bucket_allocno_compare_func): Check frequency first.
13892 (sort_bucket): Add compare function as a parameter.
13893 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
13894 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
13895 (push_allocno_to_stack): Rewrite for checking new allocno
13897 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
13898 (push_only_colorable): Pass new parameter to sort_bucket.
13899 (push_allocno_to_spill): Remove.
13900 (allocno_spill_priority_compare): Make it inline and rewrite.
13901 (splay_tree_allocate, splay_tree_free): Remove.
13902 (allocno_spill_sort_compare): New function.
13903 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
13904 build and use splay tree. Choose first allocno in uncolorable
13905 allocno bucket to spill. Remove setting spill cost.
13906 (all_conflicting_hard_regs): Remove.
13907 (setup_allocno_available_regs_num): Check only profitable hard
13908 regs. Print info about hard regs nodes.
13909 (setup_allocno_left_conflicts_size): Remove.
13910 (put_allocno_into_bucket): Don't call
13911 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
13912 (improve_allocation): New.
13913 (color_allocnos): Call setup_profitable_hard_regs,
13914 form_object_hard_regs_nodes_forest, improve_allocation,
13915 finish_object_hard_regs_nodes_forest. Setup spill cost.
13916 (print_loop_title): Use pressure classes.
13917 (color_allocnso): Ditto.
13918 (do_coloring): Remove allocation and freeing splay_tree_node_pool
13919 and allocnos_for_spilling.
13920 (ira_sort_regnos_for_alter_reg): Don't setup members
13921 {first,next}_coalesced_allocno.
13922 (color): Remove allocating and freeing removed_splay_allocno_vec.
13923 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
13924 prohibited_class_mode_regs.
13926 * ira-lives.c: Remove mentioning cover classes from the file. Fix
13928 (update_allocno_pressure_excess_length): Use pressure classes.
13929 (inc_register_pressure, dec_register_pressure): Check for pressure
13931 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
13932 pressure class. Use ira_reg_class_nregs instead of
13933 ira_reg_class_max_nregs.
13934 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
13935 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
13936 (single_reg_class): Use ira_reg_class_nregs instead of
13937 ira_reg_class_max_nregs.
13938 (process_bb_node_lives): Use pressure classes.
13940 * ira-emit.c: Remove mentioning cover classes from the file. Use
13941 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
13942 (change_loop): Use pressure classes.
13943 (modify_move_list): Call ira_set_allocno_class instead of
13944 ira_set_allocno_cover_class.
13946 * ira-build.c: Remove mentioning cover classes from the file. Use
13947 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
13948 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
13949 ALLOCNO_UPDATED_CLASS_COST instead of
13950 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
13951 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
13952 (ira_create_allocno): Remove initialization of
13953 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
13954 ALLOCNO_COLORABLE_P.
13955 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
13956 Update conflict regs for the objects.
13957 (create_cap_allocno): Remove assert. Don't propagate
13958 ALLOCNO_AVAILABLE_REGS_NUM.
13959 (ira_free_allocno_costs): New function.
13960 (finish_allocno): Change a part of code into call of
13961 ira_free_allocno_costs.
13962 (low_pressure_loop_node_p): Use pressure classes.
13963 (object_range_compare_func): Don't compare classes.
13964 (setup_min_max_conflict_allocno_ids): Ditto.
13966 * loop-invariant.c: Remove mentioning cover classes from the file.
13967 Use ira_pressure_classes and ira_pressure_classes_num instead of
13968 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
13969 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
13970 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13971 Use reg_allocno_class instead of reg_cover_class.
13972 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
13973 STACK_REG_COVER_CLASS.
13974 (get_regno_cover_class): Rename to get_regno_pressure_class.
13975 (move_loop_invariants): Initialize and finalize regstat.
13977 * ira.c: Remove mentioning cover classes from the file. Add
13978 comments about coloring without cover classes. Use ALLOCNO_CLASS
13979 instead of ALLOCNO_COVER_CLASS. Fix formatting.
13980 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
13981 setup_class_subset_and_memory_move_costs.
13982 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
13983 (setup_cover_and_important_classes): Rename to
13984 setup_allocno_and_important_classes.
13985 (setup_class_translate_array): New.
13986 (setup_class_translate): Call it for allocno and pressure classes.
13987 (cover_class_order): Rename to allocno_class_order.
13988 (comp_reg_classes_func): Use ira_allocno_class_translate instead
13989 of ira_class_translate.
13990 (reorder_important_classes): Set up ira_important_class_nums.
13991 (setup_reg_class_relations): Set up ira_reg_class_superunion.
13992 (print_class_cover): Rename to print_classes. Add parameter.
13993 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
13994 Print pressure classes too.
13995 (find_reg_class_closure): Rename to find_reg_classes. Don't call
13996 setup_reg_subclasses.
13997 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
13998 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
13999 (setup_prohibited_class_mode_regs): Use
14000 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
14001 (clarify_prohibited_class_mode_regs): New function.
14002 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
14003 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
14004 (ira_init_once): Initialize them.
14005 (free_register_move_costs): Process them.
14006 (ira_init): Move calls of find_reg_classes and
14007 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
14008 Call clarify_prohibited_class_mode_regs.
14009 (ira_no_alloc_reg): Remove.
14010 (too_high_register_pressure_p): Use pressure classes.
14012 * sched-deps.c: Remove mentioning cover classes from the file.
14013 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
14014 ira_pressure_classes and ira_pressure_classes_num instead of
14015 ira_reg_class_cover_size and ira_reg_class_cover.
14016 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
14017 sched_regno_pressure_class instead of sched_regno_cover_class.
14018 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
14019 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
14021 * ira.h: Add 2010 to Copyright.
14022 (ira_no_alloc_reg): Remove external.
14023 (struct target_ira): Rename x_ira_hard_regno_cover_class,
14024 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
14025 x_ira_class_translate to x_ira_hard_regno_allocno_class,
14026 x_ira_allocno_classes_num, x_ira_allocno_classes, and
14027 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
14028 x_ira_pressure_classes, x_ira_pressure_class_translate, and
14029 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
14030 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
14031 x_ira_no_alloc_regs.
14032 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
14033 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
14034 ira_allocno_classes_num and ira_allocno_classes.
14035 (ira_class_translate): Rename to ira_allocno_class_translate.
14036 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
14037 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
14038 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
14039 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
14040 (ira_no_alloc_regs): New.
14042 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
14043 classes from the file. Use ALLOCNO_CLASS instead of
14044 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
14045 ALLOCNO_COVER_CLASS_COST.
14046 (regno_cover_class): Rename to regno_aclass.
14047 (record_reg_classes): Use ira_reg_class_subunion instead of
14048 ira_reg_class_union.
14049 (record_address_regs): Check overflow.
14050 (scan_one_insn): Ditto.
14051 (print_allocno_costs): Print total mem cost fore regional allocation.
14052 (print_pseudo_costs): Use REG_N_REFS.
14053 (find_costs_and_classes): Use classes intersected with them on the
14054 1st pass. Check overflow. Use ira_reg_class_subunion instead of
14055 ira_reg_class_union. Use ira_allocno_class_translate and
14056 regno_aclass instead of ira_class_translate and regno_cover_class.
14057 Modify code for finding regno_aclass. Setup preferred classes for
14059 (setup_allocno_cover_class_and_costs): Rename to
14060 setup_allocno_class_and_costs. Use regno_aclass instead of
14061 regno_cover_class. Use ira_set_allocno_class instead of
14062 ira_set_allocno_cover_class.
14063 (init_costs, finish_costs): Use regno_aclass instead of
14065 (ira_costs): Use setup_allocno_class_and_costs instead of
14066 setup_allocno_cover_class_and_costs.
14067 (ira_tune_allocno_costs_and_cover_classes): Rename to
14068 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
14069 by processing objects. Use ira_reg_class_max_nregs instead of
14070 ira_reg_class_nregs.
14072 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
14074 * sched-int.h: Remove mentioning cover classes from the file.
14075 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
14077 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
14078 classes from the file.
14079 (struct reg_pref): Rename coverclass into allocnoclass.
14080 (reg_cover_class): Rename to reg_allocno_class.
14082 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
14084 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
14086 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
14088 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
14090 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
14092 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
14094 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
14096 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
14098 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
14100 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
14102 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
14103 (i386_ira_cover_classes): Ditto.
14105 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
14107 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
14109 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
14111 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
14113 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
14115 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
14117 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
14118 (mips_ira_cover_classes): Ditto.
14120 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
14122 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
14124 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
14126 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
14128 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
14130 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
14131 (IRA_COVER_CLASSES_VSX): Ditto.
14133 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
14134 (rs6000_ira_cover_classes): Ditto.
14136 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
14138 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
14140 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
14142 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
14144 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
14146 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
14148 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
14150 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
14152 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
14154 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
14156 2011-03-29 Jakub Jelinek <jakub@redhat.com>
14159 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
14160 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
14161 dw_fde_unlikely_section_end_label, cold_in_std_section,
14162 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
14163 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
14165 (output_fde): Use dw_fde_second_{begin,end} if second is
14166 true, otherwise dw_fde_{begin,end}.
14167 (output_call_frame_info): Test dw_fde_second_begin != NULL
14168 instead of dw_fde_switched_sections.
14169 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
14170 fields, initialize new fields. Initialize in_std_section
14171 unconditionally from the first partition.
14172 (dwarf2out_end_epilogue): Don't override dw_fde_end when
14173 dw_fde_second_begin is non-NULL.
14174 (dwarf2out_switch_text_section): Stop initializing removed
14175 dw_fde_struct fields, initialize new fields, initialize
14176 also dw_fde_end here. Set dw_fde_switch_cfi even when
14177 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
14178 (struct var_loc_list_def): Add last_before_switch field.
14179 (arange_table, arange_table_allocated, arange_table_in_use,
14180 ARANGE_TABLE_INCREMENT, add_arange): Removed.
14181 (size_of_aranges): Count !in_std_section and !second_in_std_section
14182 hunks in fdes, instead of looking at arange_table_in_use.
14183 (output_aranges): Add aranges_length argument, don't call
14184 size_of_aranges here. Instead of using aranges_table*
14185 emit ranges for fdes when !in_std_section resp.
14186 !second_in_std_section.
14187 (dw_loc_list): Break ranges crossing section switch.
14188 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
14189 use dw_fde_second_end instead of dw_fde_end as end of last range.
14190 (gen_subprogram_die): Don't call add_arange. Use
14191 dw_fde_{begin,end} for first partition and if switched
14192 section dw_fde_second_{begin,end} for the second.
14193 (var_location_switch_text_section_1,
14194 var_location_switch_text_section): New functions.
14195 (dwarf2out_begin_function): Initialize cold_text_section even
14196 when function_section () isn't text_section.
14197 (prune_unused_types): Don't walk arange_table.
14198 (dwarf2out_finish): Don't needlessly test
14199 flag_reorder_blocks_and_partition when testing cold_text_section_used.
14200 If info_section_emitted, call size_of_aranges and if it indicates
14201 non-empty .debug_aranges, call output_aranges with the computed
14202 size. Stop using removed dw_fde_struct fields, use
14203 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
14207 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
14208 create ENTRY_VALUE if incoming or address of incoming's MEM
14210 * dwarf2out.c (mem_loc_descriptor): Don't emit
14211 DW_OP_GNU_entry_value of DW_OP_fbreg.
14212 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
14213 on ENTRY_VALUE is able to find the canonical parameter VALUE.
14214 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
14215 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
14217 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
14218 is a REG_P or MEM_P with REG_P address, compute hash directly
14219 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
14220 (preserve_only_constants): Don't clear VALUES forwaring
14221 ENTRY_VALUE to some other VALUE.
14223 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
14225 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
14226 instead of GEN_INT.
14228 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
14230 * cfgexpand.c (expand_gimple_cond): Always set the source location and
14231 block before expanding the statement.
14232 (expand_gimple_stmt_1): Likewise. Set them here...
14233 (expand_gimple_stmt): ...and not here. Tidy.
14234 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
14237 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
14239 * Makefile.in: New rule for cprop.o.
14240 * gcse.c: Move constant/copy propagation to cprop.c.
14241 (compute_local_properties): Only handle expression tables.
14242 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
14243 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
14244 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
14245 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
14246 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
14247 compute_cprop_data, find_used_regs, try_replace_reg,
14248 find_avail_set, cprop_jump, constprop_register, cprop_insn,
14249 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
14250 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
14251 find_bypass_set, reg_killed_on_edge, bypass_block,
14252 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
14253 execute_rtl_cprop, pass_rtl_cprop): Move to...
14254 * cprop.c: ...here. New file, constant/copy propagation for RTL
14255 moved from gcse.c to here with minor cleanups in duplicated code.
14257 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
14259 * config/i386/i386.c (flag_opts): Fix a typo in
14260 -mavx256-split-unaligned-store.
14262 2011-03-28 Anatoly Sokolov <aesok@post.ru>
14264 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
14265 LIBCALL_VALUE): Remove macros.
14266 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14267 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14268 (h8300_function_value, h8300_libcall_value,
14269 h8300_function_value_regno_p): New functions.
14271 2011-03-28 Anatoly Sokolov <aesok@post.ru>
14273 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
14275 2011-03-28 Jeff Law <law@redhat.com>
14277 * tree-ssa-threadupdate.c (redirect_edges): Call
14278 create_edge_and_update_destination_phis as needed.
14279 (create_edge_and_update_destination_phis): Accept new BB argument.
14280 All callers updated.
14281 (thread_block): Do not update the profile when threading around
14282 intermediate blocks.
14283 (thread_single_edge): Likewise.
14284 (determine_bb_domination_status): If BB is not a successor of the
14285 loop header, return NONDOMINATING.
14286 (register_jump_thread): Note when we register a jump thread around
14287 an intermediate block.
14288 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
14289 (thread_across_edge): Use it.
14291 2011-03-28 Tristan Gingold <gingold@adacore.com>
14293 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
14294 when for_return is 2.
14296 2011-03-28 Jeff Law <law@redhat.com>
14298 * var-tracking.c (canonicalize_values_mark): Delete unused
14300 (canonicalize_values_star, set_variable_part): Likewise.
14301 (clobber_variable_part, delete_variable_part): Likewise.
14303 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
14305 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
14307 2011-03-28 Martin Jambor <mjambor@suse.cz>
14309 * tree-inline.c (expand_call_inline): Do not check that destination
14311 (optimize_inline_calls): Assert that destination node is analyzed.
14312 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
14313 not call tree_lowering_passes.
14314 * cgraph.h (cgraph_analyze_function): Declare.
14315 * cgraphunit.c (cgraph_analyze_function): Make public.
14317 2011-03-28 Joseph Myers <joseph@codesourcery.com>
14319 * config/sparc/sparc-opts.h: New.
14320 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
14321 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
14322 (sparc_option_override): Store processor_type enumeration rather
14323 than string in cpu_default. Remove name and enumeration from
14324 cpu_table. Directly default -mcpu then default -mtune from -mcpu
14325 without using sparc_select. Use target_flags_explicit instead of
14327 * config/sparc/sparc.h (enum processor_type): Move to
14329 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
14330 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
14331 HeaderInclude entry.
14332 (mcpu=, mtune=): Use Var and Enum.
14333 (sparc_processor_type): New Enum and EnumValue entries.
14335 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14336 Iain Sandoe <iains@gcc.gnu.org>
14339 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
14341 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
14343 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
14344 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
14345 Insert new statements at it in lieu of STMT.
14346 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
14347 * tree-vect-stmts.c (vectorizable_store): Likewise.
14348 (vectorizable_load): Likewise.
14350 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
14352 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
14357 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
14359 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
14360 unaligned 256bit load/store.
14361 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
14362 (*avx_movdqu<avxmodesuffix>): Likewise.
14364 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14367 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
14368 * config/pa/pa.md (iordi3): Use new predicate in expander.
14369 (iorsi3): Likewise.
14371 2011-03-27 Anatoly Sokolov <aesok@post.ru>
14373 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
14374 FUNCTION_VALUE_REGNO_P): Remove macros.
14375 * config/mips/mips-protos.h (mips_function_value): Remove.
14376 * config/mips/mips.c (mips_function_value): Rename to...
14377 (mips_function_value_1): ... this. Make static. Handle receiving
14378 the function type in 'fn_decl_or_type' argument.
14379 (mips_function_value, mips_libcall_value,
14380 mips_function_value_regno_p): New function.
14381 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14382 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14384 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
14386 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
14387 and -mavx256-split-unaligned-store.
14388 (ix86_option_override_internal): Split 32-byte AVX unaligned
14389 load/store by default.
14390 (ix86_avx256_split_vector_move_misalign): New.
14391 (ix86_expand_vector_move_misalign): Use it.
14393 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
14394 -mavx256-split-unaligned-store.
14396 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
14397 256bit load/store. Generate unaligned store on misaligned memory
14399 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
14401 (*avx_movdqu<avxmodesuffix>): Likewise.
14403 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
14404 -mavx256-split-unaligned-store.
14406 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
14409 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
14412 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
14414 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
14415 opno arguments with an expand_operand. Use create_input_operand.
14416 (mips_prepare_builtin_target): Delete.
14417 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
14419 (mips_expand_builtin_direct): Use create_output_operand and
14420 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
14421 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
14422 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
14424 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
14426 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
14428 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
14430 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
14432 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
14433 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
14434 basic blocks and call commit_edge_insertions directly.
14435 (fixup_abnormal_edges): Move from here to...
14436 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
14437 on the edges and return whether some have actually been inserted.
14438 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
14441 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
14443 PR rtl-optimization/48144
14444 * sel-sched-ir.c (merge_history_vect): Factor out from ...
14445 (merge_expr_data): ... here.
14446 (av_set_intersect): Rename to av_set_code_motion_filter.
14447 Update all callers. Call merge_history_vect when an expression
14448 is found in both sets.
14449 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
14451 2011-03-26 Alan Modra <amodra@gmail.com>
14453 * config/rs6000/predicates.md (word_offset_memref_op): Handle
14454 cmodel medium addresses.
14455 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
14456 64-bit gpr loads and stores.
14457 (rs6000_secondary_reload_ppc64): New function.
14458 * config/rs6000/rs6000-protos.h: Declare it.
14459 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
14461 2011-03-26 Alan Modra <amodra@gmail.com>
14464 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
14465 GNU Go in traceback table.
14467 2011-03-25 Richard Henderson <rth@redhat.com>
14469 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
14470 if there are exactly 6 operands.
14471 (set_storage_via_setmem): Similarly.
14473 2011-03-25 Kai Tietz <ktietz@redhat.com>
14475 * collect2.c (write_c_file_stat): Handle backslash
14476 as right-hand directory separator.
14477 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
14478 checking just for slash.
14479 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
14480 instead of checking for trailing slash.
14481 * gcc.c (record_temp_file): Use filename_cmp instead
14483 (do_spec_1): Likewise.
14484 (replace_outfile_spec_function): Likewise.
14485 (is_directory): Use filename_ncmp instead of strncmp.
14486 (print_multilib_info): Likewise.
14487 * gcov.c (find_source): Use filename_cmp instead
14489 (make_gcov_file_name): Fix order of slash/backslash
14491 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
14492 (add_standard_paths): Likewise.
14493 * mips-tfile.c (saber_stop): Handle backslash.
14494 * prefix.c (update_path): Use filename_ncmp instead of
14496 * profile.c (output_location): Use filename_cmp instead
14498 * read-md.c (handle_toplevel_file): Handle backslash.
14499 * tlink.c (frob_extension): Likewise.
14500 * tree-cfg.c (same_line_p): Use filename_cmp instead of
14502 * tree-dump.c (dequeue_and_dump): Handle backslash.
14503 * tree.c (get_file_function_name): Likewise.
14504 * gengtype.c (read_input_list): Likewise.
14505 (get_file_realbasename): Likewise.
14506 (get_output_file_with_visibility): Use filename_cmp
14509 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
14511 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
14514 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
14516 * fold-const.c (expr_location_or): New function.
14517 (fold_truth_not_expr): Call it.
14519 2011-03-25 Jeff Law <law@redhat.com>
14521 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
14523 * c-family/c-common.c (def_fn_type): Likewise.
14524 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
14525 * emit-rtl.c (gen_rtvec): Likewise.
14526 * lto/lto-lang.c (def_fn_type): Likewise.
14528 2011-03-25 Richard Guenther <rguenther@suse.de>
14530 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
14531 also generate copies.
14532 (fini_copy_prop): Handle constant values properly.
14534 2011-03-25 Jakub Jelinek <jakub@redhat.com>
14536 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
14537 mode size instead of bitsize with DWARF2_ADDR_SIZE.
14538 (hash_loc_operands, compare_loc_operands): Handle
14539 DW_OP_GNU_entry_value.
14541 2011-03-25 Kai Tietz <ktietz@redhat.com>
14543 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
14544 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
14545 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
14546 comment and use macro TARGET_64BIT_MS_ABI instead.
14547 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
14548 and change default behavior for 32-bit MS_ABI.
14549 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
14550 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
14552 (ix86_cfun_abi): Likewise.
14553 (ix86_maybe_switch_abi): Adjust comment.
14554 (init_cumulative_args): Check for bit-ness in MS_ABI case.
14555 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
14556 instead of checking for SYSV_ABI.
14557 (ix86_nsaved_sseregs): Likewise.
14558 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
14560 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
14561 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
14562 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
14563 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
14564 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
14566 2011-03-25 Richard Guenther <rguenther@suse.de>
14568 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
14569 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
14570 (verify_gimple): Remove.
14571 * tree-cfg.c (verify_gimple_call): Merge verification
14573 (verify_gimple_phi): Merge verification from verify_stmts.
14574 (verify_gimple_label): New function.
14575 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
14576 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
14577 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
14578 (verify_stmts): Rename to verify_gimple_in_cfg.
14579 (verify_gimple_in_cfg): New function.
14580 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
14581 * tree-ssa.c (verify_ssa): Likewise.
14582 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
14584 2011-03-25 Richard Guenther <rguenther@suse.de>
14586 * passes.c (init_optimization_passes): Add FRE pass after
14589 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
14590 Andrew Stubbs <ams@codesourcery.com>
14592 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
14594 (arm_movdi_vfp_cortexa8): New pattern.
14595 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
14596 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
14597 instructions when tuning for Cortex-A8. Set attribute "arch".
14598 * config/arm/arm.md: Move include arm-tune.md up a bit.
14599 (define_attr "arch"): Add "onlya8" and "nota8" values.
14600 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
14602 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
14606 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14608 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
14609 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
14610 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
14611 * passes.c (init_optimization_passes): Move
14612 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
14614 2011-03-25 Kai Tietz <ktietz@redhat.com>
14616 * c-typeck.c (comptypes_internal): Replace target
14617 hook call of comp_type_attributes by version in tree.c file.
14618 * gimple.c (gimple_types_compatible_p_1): Likewise.
14619 * tree-ssa.c (useless_type_conversion_p): Likewise.
14620 * tree.c (build_type_attribute_qual_variant): Likewise.
14621 (attribute_value_equal): New static helper function.
14622 (comp_type_attributes): New function.
14623 (merge_attributes): Use attribute_value_equal for comparison.
14624 (attribute_list_contained): Likewise.
14625 * tree.h (comp_type_attributes): New prototype.
14627 2011-03-25 Richard Guenther <rguenther@suse.de>
14629 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
14630 of complex types at -O0.
14631 (verify_gimple_assign_binary): Likewise.
14632 (verify_gimple_assign_ternary): Likewise.
14634 2011-03-24 Mark Wielaard <mjw@redhat.com>
14636 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
14637 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
14639 2011-03-24 Mark Wielaard <mjw@redhat.com>
14642 * dwarf2out.c (output_abbrev_section): Only write table when
14643 abbrev_die_table_in_use > 1.
14645 2011-02-24 Richard Henderson <rth@redhat.com>
14647 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
14648 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
14649 (alpha_expand_unaligned_load_words): Use extql.
14650 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
14651 (emit_insxl): Handle all modes for consistency.
14653 2011-02-24 Richard Henderson <rth@redhat.com>
14655 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
14656 (alpha_expand_unaligned_load): Likewise.
14657 (alpha_expand_unaligned_store): Likewise.
14658 (alpha_expand_unaligned_load_words): Likewise.
14659 (alpha_expand_unaligned_store_words): Likewise.
14660 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
14661 (alpha_split_lock_test_and_set_12): Likewise.
14662 (print_operand, alpha_fold_builtin_extxx): Likewise.
14663 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
14664 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
14665 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
14666 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
14667 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
14668 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
14669 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
14670 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
14671 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
14672 (extwl, extll, extql): Similarly.
14673 (inswh, inslh, insqh): Similarly.
14674 (mskbl, mskwl, mskll, mskql): Similarly.
14675 (mskwh, msklh, mskqh): Similarly.
14677 2011-02-24 Richard Henderson <rth@redhat.com>
14679 * config/alpha/alpha.md (attribute isa): Add er, ner.
14680 (attribute enabled): Handle them.
14681 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
14683 2011-02-24 Richard Henderson <rth@redhat.com>
14685 * config/alpha/alpha.md (attribute isa): Add vms.
14686 (attribute enabled): Handle it.
14687 (*movsf): Merge *movsf_{nofix,fix,nofp}.
14688 (*movdf): Merge *movdf_{nofix,fix,nofp}.
14689 (*movtf): Rename from *movtf_internal for consistency.
14690 (*movsi): Merge with *movsi_nt_vms.
14691 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
14692 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
14693 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
14694 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
14696 2011-02-24 Richard Henderson <rth@redhat.com>
14698 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
14699 (extendqisi2, extendhisi2): Likewise.
14700 (extendqidi2): Simplify BWX/non-BWX expansions.
14701 (extendhidi2): Similarly.
14703 2011-02-24 Richard Henderson <rth@redhat.com>
14705 * config/alpha/alpha.md (attribute isa): New.
14706 (attribute enabled): New.
14707 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
14708 (zero_extendqisi2, zero_extendqidi2): Similarly.
14709 (zero_extendhisi2, zero_extendhidi2): Similarly.
14710 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
14712 2011-02-24 Richard Henderson <rth@redhat.com>
14714 * config/alpha/predicates.md (input_operand): Revert last change;
14715 update comment to mention 32-bit VMS rather than Windows.
14717 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14719 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
14720 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
14721 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
14722 * passes.c (init_optimization_passes): Move
14723 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
14725 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14727 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
14729 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
14731 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
14734 2011-03-24 Jakub Jelinek <jakub@redhat.com>
14737 * simplify-rtx.c (simplify_const_unary_operation): Call
14738 real_convert when changing mode class with FLOAT_EXTEND.
14740 2011-03-24 Nick Clifton <nickc@redhat.com>
14742 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
14743 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
14744 * config/rx/rx.c (rx_option_override): Set align_jumps,
14745 align_loops and align_labels if not set by the user.
14746 (rx_align_for_label): New function.
14747 (rx_max_skip_for_label): New function.
14748 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
14749 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
14750 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
14751 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
14752 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
14754 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
14756 PR rtl-optimization/48263
14757 * optabs.c (expand_binop_directly): Reinstate convert_modes code
14758 and original commutative_p handling. Use maybe_gen_insn.
14760 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14762 * reload.c (find_reloads_subreg_address): Add address_reloaded
14763 parameter and return true there if the full address has been
14765 (find_reloads_toplev): Pass address_reloaded flag.
14766 (find_reloads_address_1): Don't use address_reloaded parameter.
14768 2011-03-24 Jeff Law <law@redhat.com>
14770 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
14771 unused variable "ann".
14772 (remove_unused_locals): Likewise.
14774 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
14777 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
14780 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14782 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
14783 for invalid symbolic addresses.
14784 (s390_secondary_reload): Don't use s390_check_symref_alignment for
14787 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14789 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
14790 the argument in calls to fold_truth_not_expr.
14792 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14794 * tree.c (record_node_allocation_statistics): New function.
14795 (make_node_stat, copy_node_stat, build_string): Call it.
14796 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
14797 (build1_stat, build_omp_clause): Likewise.
14799 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
14801 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
14804 2011-03-24 Richard Guenther <rguenther@suse.de>
14806 PR tree-optimization/48271
14807 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
14808 blocks that still exist.
14810 2011-03-24 Richard Guenther <rguenther@suse.de>
14812 PR tree-optimization/48270
14813 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
14814 not free datarefs before ddrs.
14816 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14818 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
14819 from the address built for a reference with variable offset.
14821 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
14824 * config/i386/i386.md (*movdf_internal_rex64): Do not split
14825 alternatives that can be handled with movq or movabsq insn.
14826 (*movdf_internal): Disable for !TARGET_64BIT.
14827 (*movdf_internal_nointeger): Ditto.
14828 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
14830 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14832 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14833 (FUNCTION_ARG_ADVANCE): Likewise.
14834 * tm.texi.in: Change references to them to hook references.
14835 * tm.texi: Regenerate.
14836 * targhooks.c (default_function_arg): Eliminate check for target macro.
14837 (default_function_incoming_arg): Likewise.
14838 (default_function_arg_advance): Likewise.
14839 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
14840 (function_arg_advance): Likewise.
14841 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14843 2011-03-24 Richard Guenther <rguenther@suse.de>
14845 PR middle-end/48269
14846 * tree-object-size.c (addr_object_size): Do not double-account
14847 for MEM_REF offsets.
14849 2011-03-24 Diego Novillo <dnovillo@google.com>
14851 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
14852 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
14853 (lto_input_data_block): Move from lto-opts.c. Make extern.
14855 (lto_input_string): Rename from input_string. Make extern.
14857 * lto-streamer-out.c (lto_output_string_with_length): Rename from
14858 output_string_with_length.
14859 Output 0 to indicate a non-NULL string. Update all callers to
14861 (lto_output_string): Rename from output_string. Make extern.
14863 (lto_output_decl_state_streams): Make extern.
14864 (lto_output_decl_state_refs): Make extern.
14865 * lto-streamer.h (lto_input_string): Declare.
14866 (lto_input_data_block): Declare.
14867 (lto_output_string): Declare.
14868 (lto_output_string_with_length): Declare.
14869 (lto_output_decl_state_streams): Declare.
14870 (lto_output_decl_state_refs): Declare.
14872 2011-03-24 Richard Guenther <rguenther@suse.de>
14874 PR tree-optimization/46562
14875 * tree.c (build_invariant_address): New function.
14876 * tree.h (build_invariant_address): Declare.
14877 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
14878 a renamed function moved ...
14879 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
14880 Take valueization callback parameter.
14881 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
14882 * gimple-fold.h: New file.
14883 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
14884 (ccp_fold, fold_const_aggregate_ref,
14885 fold_ctor_reference, fold_nonarray_ctor_reference,
14886 fold_array_ctor_reference, fold_string_cst_ctor_reference,
14887 get_base_constructor): Move ...
14888 * gimple-fold.c: ... here.
14889 (gimple_fold_stmt_to_constant_1): New function
14890 split out from ccp_fold. Take a valueization callback parameter.
14891 Valueize all operands.
14892 (gimple_fold_stmt_to_constant): New wrapper function.
14893 (fold_const_aggregate_ref_1): New function split out from
14894 fold_const_aggregate_ref. Take a valueization callback parameter.
14895 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
14896 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
14897 invariant POINTER_PLUS_EXPRs to invariant form.
14898 (vn_valueize): New function.
14899 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
14900 * tree-vrp.c (vrp_valueize): New function.
14901 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
14902 to fold statements to constants.
14903 * tree-ssa-pre.c (eliminate): Properly guard propagation of
14904 function declarations.
14905 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
14906 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
14908 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
14910 * config/h8300/predicates.md (jump_address_operand): Fix register
14913 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
14915 * doc/invoke.texi (max-stores-to-sink): Document.
14916 * params.h (MAX_STORES_TO_SINK): Define.
14917 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
14918 if either vectorization or if-conversion is disabled.
14919 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
14920 tree-vect-data-refs.c vect_equal_offsets.
14921 (dr_equal_offsets_p): New function.
14922 (find_data_references_in_bb): Remove static.
14923 * tree-data-ref.h (find_data_references_in_bb): Declare.
14924 (dr_equal_offsets_p): Likewise.
14925 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
14926 (vect_drs_dependent_in_basic_block): Update calls to
14927 vect_equal_offsets.
14928 (vect_check_interleaving): Likewise.
14929 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
14930 (cond_if_else_store_replacement): Rename to...
14931 (cond_if_else_store_replacement_1): ... this. Change arguments and
14933 (cond_if_else_store_replacement): New function.
14934 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
14935 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
14937 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
14940 * config/arm/arm.md (casesi): Use the gen_int_mode() function
14941 to subtract lower bound instead of GEN_INT().
14943 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
14948 * doc/extend.texi (Alignment): Move section to match order in TOC.
14949 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
14950 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
14952 2011-03-23 Jeff Law <law@redhat.com>
14954 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
14955 before removing the edge.
14957 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
14958 it may have been freed by redirect_branch_edge or
14959 redirect_edge_succ_nodup.
14961 2011-03-23 Richard Guenther <rguenther@suse.de>
14963 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
14964 (check_va_list_escapes): Likewise.
14965 (check_all_va_list_escapes): Likewise.
14967 2011-03-23 Richard Guenther <rguenther@suse.de>
14969 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
14970 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
14971 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
14972 (alias.o): Likewise.
14973 (ipa-type-escape.o): Remove.
14974 (ipa-struct-reorg.o): Likewise.
14975 (GTFILES): Remove ipa-struct-reorg.c.
14976 * alias.c: Do not include ipa-type-escape.h.
14977 * tree-ssa-alias.c: Likewise.
14978 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
14979 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
14980 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
14981 and ipa-type-escape passes.
14982 * tree-pass.h (pass_ipa_type_escape): Remove.
14983 (pass_ipa_struct_reorg): Likewise.
14984 * ipa-struct-reorg.h: Remove.
14985 * ipa-struct-reorg.c: Likewise.
14986 * ipa-type-escape.h: Likewise.
14987 * ipa-type-escape.c: Likewise.
14988 * doc/invoke.texi (-fipa-struct-reorg): Remove.
14989 (--param struct-reorg-cold-struct-ratio): Likewise.
14990 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
14991 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
14992 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
14994 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14996 * config/s390/2084.md: Enable all insn reservations also for z9_ec
14997 cpu attribute value.
14998 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
14999 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
15000 * config/s390/s390.c (processor_flags_table): New constant array.
15001 (s390_handle_arch_option): Remove.
15002 (s390_handle_option): Remove s390_handle_arch_option invocations
15003 and OPT_mwarn_framesize_ handling.
15004 (s390_option_override): Remove s390_handle_arch_option invocation.
15005 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
15007 * config/s390/s390.md (cpu attribute): Add z9_ec value.
15008 * config/s390/s390.opt (s390_tune, s390_arch)
15009 (march=): Replace s390_arch_option enum and values with
15010 processor_type. Set variable name to s390_arch. Set
15011 initialization value.
15012 (mtune=): Replace s390_arch_option with processor_type. Set
15013 variable name to s390_tune. Set initialization value.
15015 2011-03-23 Julian Brown <julian@codesourcery.com>
15017 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
15018 accesses which are not naturally aligned.
15020 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
15023 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
15025 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
15027 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
15028 parameter from "int" to "enum insn_code".
15029 (expand_operand_type): New enum.
15030 (expand_operand): New structure.
15031 (create_expand_operand): New function.
15032 (create_fixed_operand, create_output_operand): Likewise
15033 (create_input_operand, create_convert_operand_to): Likewise.
15034 (create_convert_operand_from, create_address_operand): Likewise.
15035 (create_integer_operand): Likewise.
15036 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
15037 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
15038 (expand_insn, expand_jump_insn): Likewise.
15039 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
15040 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
15041 (expand_movstr, expand_builtin___clear_cache): Likewise.
15042 (expand_builtin_lock_release): Likewise.
15043 * explow.c (allocate_dynamic_stack_space): Likewise.
15044 (probe_stack_range): Likewise. Allow check_stack to FAIL,
15045 and use the default handling in that case.
15046 * expmed.c (check_predicate_volatile_ok): Delete.
15047 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
15048 (emit_cstore): Likewise.
15049 * expr.c (emit_block_move_via_movmem): Likewise.
15050 (set_storage_via_setmem, expand_assignment): Likewise.
15051 (emit_storent_insn, try_casesi): Likewise.
15052 (emit_single_push_insn): Likewise. Allow the expansion to fail.
15053 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
15054 (expand_vec_shift_expr, expand_binop_directly): Likewise.
15055 (expand_twoval_unop, expand_twoval_binop): Likewise.
15056 (expand_unop_direct, emit_indirect_jump): Likewise.
15057 (emit_conditional_move, vector_compare_rtx): Likewise.
15058 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
15059 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
15060 (expand_sync_lock_test_and_set): Likewise.
15061 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
15062 (emit_unop_insn): Likewise.
15063 (expand_copysign_absneg): Change icode to an insn_code.
15064 (create_convert_operand_from_type): New function.
15065 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
15066 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
15067 (expand_insn, expand_jump_insn): Likewise.
15068 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
15069 than const_int_operand for operand 2.
15071 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15073 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
15076 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
15078 * emit-rtl.c (emit_pattern_before_noloc): New function.
15079 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
15080 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
15081 (emit_pattern_after_noloc): New function.
15082 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
15083 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
15085 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
15087 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
15088 (__ffsDI2): Likewise.
15090 2011-03-22 Richard Henderson <rth@redhat.com>
15092 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
15093 of !TARGET_ABI_OPEN_VMS.
15094 (alpha_trampoline_init, alpha_start_function): Likewise.
15095 (alpha_expand_epilogue, alpha_file_start): Likewise.
15096 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
15097 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
15098 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
15099 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
15100 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
15102 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15104 * config/s390/s390-opts.h: New.
15105 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
15106 s390_arch_flags, s390_warn_framesize, s390_stack_size,
15107 s390_stack_guard): Remove.
15108 (s390_handle_arch_option): Return void. Take enum
15109 s390_arch_option value instead of string and searching array.
15110 (s390_handle_option): Don't assert that global structures are in
15111 use. Access variables via opts pointer. Use error_at. Don't use
15112 sscanf for -mstack-guard= or -mstack-size=. Update call to
15113 s390_handle_arch_option.
15114 (s390_option_override): Update call to s390_handle_arch_option.
15115 (s390_emit_prologue): Use %d format for s390_stack_size in
15116 diagnostic. Use %wd for HOST_WIDE_INT.
15117 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
15118 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
15119 * config/s390/s390.opt (config/s390/s390-opts.h): New
15120 HeaderInclude entry.
15121 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
15122 s390_arch_flags, s390_warn_framesize): New Variable entries.
15123 (s390_arch_option): New Enum and EnumValue entries.
15124 (march=): Use Enum instead of Var.
15125 (mstack-guard=, mstack-size=): Use UInteger and Var.
15126 (mtune=): Use Enum.
15128 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15130 * config/score/score.c (score_handle_option): Don't assert that
15131 global structures are in use. Access target_flags via opts
15132 pointer. Use value of -march= option to determine target_flags
15134 * config/score/score.opt (march=): Use Enum.
15135 (score_arch): New Enum and EnumValue entries.
15137 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15139 * config/mep/mep.c (option_mtiny_specified): Remove.
15140 (mep_option_override): Move register handling for -mivc2 from
15141 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
15142 instead of option_mtiny_specified.
15143 (mep_handle_option): Access target_flags via opts pointer. Don't
15144 assert that global structures are in use. Defer part of -mivc2
15145 handling and move it to mep_option_override.
15146 * config/mep/mep.opt (IVC2): New Mask entry.
15147 (mivc2): Use Var and Defer instead of Mask.
15149 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15151 * config/v850/v850-opts.h: New.
15152 * config/v850/v850.c (small_memory): Replace with
15153 small_memory_physical_max array. Make that array static const.
15154 (v850_handle_memory_option): Take integer value of argument. Take
15155 gcc_options pointer, option text and location. Return void.
15156 Update for changes to small memory structures.
15157 (v850_handle_option): Access target_flags via opts pointer. Don't
15158 assert that global structures are in use. Update calls to
15159 v850_handle_memory_option.
15160 (v850_encode_data_area): Update references to small memory settings.
15161 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
15162 (enum small_memory_type): Move to v850-opts.h.
15163 * config/v850/v850.opt (config/v850/v850-opts.h): New
15164 HeaderInclude entry.
15165 (small_memory_max): New Variable entry.
15166 (msda): Replace by pair of options msda= and msda-. Use UInteger.
15167 (mtda, mzda): Likewise.
15169 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15171 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
15172 pointer. Don't assert that global structures are in use.
15174 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15176 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
15177 via opts pointer. Don't assert that global structures are in use.
15179 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15181 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
15182 (munix=93): Use Var.
15183 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
15184 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
15185 * config/pa/pa-opts.h: New.
15186 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
15187 (pa_handle_option): Don't assert that global structures are in
15188 use. Access target_flags via opts pointer. Don't handle
15189 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
15191 (pa_option_override): Handle deferred OPT_mfixed_range_.
15193 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15195 * config/mn10300/mn10300-opts.h: New.
15196 * config/mn10300/mn10300.c (mn10300_processor,
15197 mn10300_tune_string): Remove.
15198 (mn10300_handle_option): Don't assert that global structures are
15199 in use. Access mn10300_processor via opts pointer. Don't handle
15201 * config/mn10300/mn10300.h (enum processor_type): Move to
15203 (mn10300_processor): Remove.
15204 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
15205 HeaderInclude entry.
15206 (mn10300_processor): New Variable entry.
15209 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15211 * config/microblaze/microblaze.c: Don't include opts.h.
15212 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
15213 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
15214 (mno-clearbss): Use Var and Warn.
15216 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15218 * config/m32r/m32r-opts.h: New.
15219 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
15220 (m32r_handle_option): Don't assert that global structures are in
15221 use. Access target_flags and m32r_cache_flush_func via opts
15222 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
15223 OPT_mno_flush_trap here.
15224 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
15225 include of m32r-opts.h.
15226 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
15227 HeaderInclude entry.
15228 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
15229 (mmodel=): Use Enum and Var.
15230 (m32r_model): New Enum and EnumValue entries.
15231 (mno-flush-trap): Use Var.
15232 (msdata=): Use Enum and Var.
15233 (m32r_sdata): New Enum and EnumValue entries.
15235 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15237 * config/m32c/m32c.c: Don't include opts.h.
15238 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
15239 m32c_handle_option): Remove.
15240 (m32c_option_override): Check global_options_set.x_target_memregs
15241 instead of target_memregs_set.
15242 * config/m32c/m32c.h (target_memregs): Remove.
15243 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
15246 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15248 * config/iq2000/iq2000-opts.h: New.
15249 * config/iq2000/iq2000.c: Don't include opts.h.
15250 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
15251 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
15252 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
15253 HeaderInclude entry.
15254 (iq2000_tune): New Variable entry.
15255 (march=): Add comment. Use Enum.
15256 (iq2000_arch): New Enum and EnumValue entries.
15257 (mcpu=): Use Enum and Var.
15258 (iq2000_tune): New Enum and EnumValue entries.
15260 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15262 * config/ia64/ia64-opts.h: New.
15263 * config/ia64/ia64.c (ia64_tune): Remove.
15264 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
15265 here. Use error_at.
15266 (ia64_option_override): Handle deferred OPT_mfixed_range_.
15267 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
15268 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
15269 HeaderInclude entry.
15270 (ia64_tune): New Variable entry.
15271 (mfixed-range=): Use Defer and Var.
15272 (mtune=): Use Enum and Var.
15273 (ia64_tune): New Enum and EnumValue entries.
15275 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15277 * config/frv/frv-opts.h: New.
15278 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
15280 (frv_cpu_type): Remove.
15281 * config/frv/frv.c: Don't include opts.h.
15282 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
15283 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
15284 (frv_cpu_type): New Variable entry.
15285 (frv_cpu): New Enum and EnumValue entries.
15287 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15289 * config/cris/cris.c (cris_handle_option): Access target_flags via
15290 opts pointer. Don't assert that global structures are in use.
15291 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
15292 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
15294 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15296 * config/bfin/bfin-opts.h: New.
15297 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
15298 bfin_si_revision, bfin_workarounds): Remove.
15299 (bfin_cpus): Make static const.
15300 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
15301 not bfin_lib_id_given.
15302 (bfin_handle_option): Don't set bfin_lib_id_given. Access
15303 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
15304 pointer. Use error_at. Don't assert that global structures are in use.
15305 * config/bfin/bfin.h: Include bfin-opts.h.
15306 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
15307 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
15308 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
15309 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
15312 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15314 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
15315 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
15316 or -msoft-float here.
15317 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
15318 -msoft-float and -mhard-float.
15319 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
15320 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
15322 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
15324 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
15325 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
15327 (LIBGCC_SPEC): Don't handle -msoft-float.
15328 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
15330 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
15332 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
15333 -mfloat-abi=*, not -msoft-float and -mhard-float.
15334 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
15336 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
15337 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
15338 mhard-float and msoft-float.
15339 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
15340 mfloat-abi=soft in comments, not mhard-float and msoft-float.
15341 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
15342 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
15344 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
15345 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
15347 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
15349 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
15352 2011-03-22 Richard Henderson <rth@redhat.com>
15354 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
15355 TARGET_ABI_WINDOWS_NT.
15356 (alpha_output_function_end_prologue): Likewise.
15357 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
15358 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
15359 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
15360 (trap, *movsi_nt_vms): Likewise.
15361 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
15362 (*tablejump_osf_nt_internal): Remove.
15363 * config/alpha/predicates.md (input_operand): Only test Pmode.
15365 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15367 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
15368 via opts pointer. Use error_at. Don't assert that global
15369 structures are in use.
15371 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15373 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
15374 (ix86_handle_option): Access ix86_isa_flags and
15375 ix86_isa_flags_explicit via opts pointer. Don't assert that
15376 global structures are in use.
15377 (ix86_function_specific_save, ix86_function_specific_restore):
15378 Update ix86_isa_flags_explicit field name.
15379 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
15380 (ix86_isa_flags_explicit): Rename TargetSave entry to
15381 x_ix86_isa_flags_explicit.
15383 2011-03-22 Richard Henderson <rth@redhat.com>
15385 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
15386 (alpha_option_override, direct_return): Likewise.
15387 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
15388 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
15389 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
15390 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
15391 (alpha_expand_epilogue, alpha_end_function): Likewise.
15392 (alpha_init_libfuncs): Likewise.
15393 (struct machine_function): Remove unicosmk members.
15394 (print_operand) ['t']: Remove.
15395 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
15396 unicosmk_output_module_name, unicosmk_output_common,
15397 current_section_align, unicosmk_output_text_section_asm_op,
15398 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
15399 unicosmk_section_type_flags, unicosmk_unique_section,
15400 unicosmk_asm_named_section, unicosmk_insert_attributes,
15401 unicosmk_output_align, unicosmk_defer_case_vector,
15402 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
15403 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
15404 unicosmk_output_ssib, unicosmk_add_call_info_word,
15405 unicosmk_extern_head, unicosmk_output_default_externs,
15406 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
15407 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
15408 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
15409 * config/alpha/alpha-protos.h: Update.
15410 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
15411 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
15412 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
15413 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
15414 (*mulsi_se, mulvsi3): Likewise.
15415 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
15416 (*divmodsi_internal, call, call_value, realign): Likewise.
15417 (moddi3, umoddi3): Likewise; remove duplicate expander.
15418 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
15419 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
15420 (*movdi_nofix): Remove r/U alternative.
15421 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
15422 * config/alpha/constraints.md ("U"): Remove.
15423 * config/alpha/predicates.md (call_operand"): Don't test
15424 TARGET_ABI_UNICOSMK.
15426 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15428 * target.def (handle_option): Take gcc_options and
15429 cl_decoded_option pointers and location_t.
15430 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
15431 * doc/tm.texi: Regenerate.
15432 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
15433 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
15434 * lto-opts.c (lto_reissue_options): Generate option structure for
15435 targetm.handle_option call.
15436 * opts.c (target_handle_option): Update call to
15437 targetm.handle_option. Remove assertions about values now passed
15439 * targhooks.c (default_target_handle_option): New.
15440 * targhooks.h (default_target_handle_option): Declare.
15441 * config/alpha/alpha.c: Include opts.h.
15442 (alpha_handle_option): Update to new hook interface.
15443 * config/arm/arm.c: Include opts.h.
15444 (arm_handle_option): Update to new hook interface.
15445 * config/arm/t-arm (arm.o): Update dependencies.
15446 * config/bfin/bfin.c: Include opts.h.
15447 (bfin_handle_option): Update to new hook interface.
15448 * config/cris/cris.c: Include opts.h.
15449 (cris_handle_option): Update to new hook interface.
15450 * config/frv/frv.c: Include opts.h.
15451 (frv_handle_option): Update to new hook interface.
15452 * config/i386/i386.c: Include opts.h.
15453 (ix86_handle_option): Update to new hook interface.
15454 (ix86_valid_target_attribute_inner_p): Generate option structure
15455 for call to ix86_handle_option.
15456 * config/i386/t-i386 (i386.o): Update dependencies.
15457 * config/ia64/ia64.c: Include opts.h.
15458 (ia64_handle_option): Update to new hook interface.
15459 * config/ia64/t-ia64 (ia64.o): Update dependencies.
15460 * config/iq2000/iq2000.c: Include opts.h.
15461 (iq2000_handle_option): Update to new hook interface.
15462 * config/m32c/m32c.c: Include opts.h.
15463 (m32c_handle_option): Update to new hook interface.
15464 * config/m32r/m32r.c: Include opts.h.
15465 (m32r_handle_option): Update to new hook interface.
15466 * config/m68k/m68k.c: Include opts.h.
15467 (m68k_handle_option): Update to new hook interface.
15468 * config/mep/mep.c: Include opts.h.
15469 (mep_handle_option): Update to new hook interface.
15470 * config/microblaze/microblaze.c: Include opts.h.
15471 (microblaze_handle_option): Update to new hook interface.
15472 * config/mips/mips.c: Include opts.h.
15473 (mips_handle_option): Update to new hook interface.
15474 * config/mn10300/mn10300.c: Include opts.h.
15475 (mn10300_handle_option): Update to new hook interface.
15476 * config/pa/pa.c: Include opts.h.
15477 (pa_handle_option): Update to new hook interface.
15478 * config/pdp11/pdp11.c: Include opts.h.
15479 (pdp11_handle_option): Update to new hook interface.
15480 * config/rs6000/rs6000.c: Include opts.h.
15481 (rs6000_handle_option): Update to new hook interface.
15482 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
15483 * config/rx/rx.c: Include opts.h.
15484 (rx_handle_option): Update to new hook interface.
15485 * config/s390/s390.c: Include opts.h.
15486 (s390_handle_option): Update to new hook interface.
15487 * config/score/score.c: Include opts.h.
15488 (score_handle_option): Update to new hook interface.
15489 * config/sh/sh.c: Include opts.h.
15490 (sh_handle_option): Update to new hook interface.
15491 * config/sparc/sparc.c: Include opts.h.
15492 (sparc_handle_option): Update to new hook interface.
15493 * config/v850/v850.c: Include opts.h.
15494 (v850_handle_option): Update to new hook interface.
15496 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15498 * gcc.c (driver_unknown_option_callback): Only permit and save
15499 unknown -Wno- options.
15500 (driver_wrong_lang_callback): Save options directly instead of via
15501 driver_unknown_option_callback.
15503 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
15505 * combine.c (simplify_set): Try harder to find the best CC mode when
15506 simplifying a nested COMPARE on the RHS.
15508 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15510 * config/alpha/gnu.h: Remove.
15511 * config/arc: Remove directory.
15512 * config/arm/netbsd.h: Remove.
15513 * config/arm/t-pe: Remove.
15514 * config/crx: Remove directory.
15515 * config/i386/netbsd.h: Remove.
15516 * config/m68hc11: Remove directory.
15517 * config/m68k/uclinux-oldabi.h: Remove.
15518 * config/mcore/mcore-pe.h: Remove.
15519 * config/mcore/t-mcore-pe: Remove.
15520 * config/netbsd-aout.h: Remove.
15521 * config/rs6000/gnu.h: Remove.
15522 * config/sh/sh-symbian.h: Remove.
15523 * config/sh/symbian-base.c: Remove.
15524 * config/sh/symbian-c.c: Remove.
15525 * config/sh/symbian-cxx.c: Remove.
15526 * config/sh/symbian-post.h: Remove.
15527 * config/sh/symbian-pre.h: Remove.
15528 * config/sh/t-symbian: Remove.
15529 * config/svr3.h: Remove.
15530 * config/vax/netbsd.h: Remove.
15531 * config.build: Don't handle i[34567]86-*-pe.
15532 * config.gcc: Remove handling of deprecations for most deprecated
15534 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
15535 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
15536 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
15537 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
15538 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
15539 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
15541 * config.host: Don't handle i[34567]86-*-pe.
15542 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
15543 (ASM_SPEC32): Don't handle -mcall-gnu.
15544 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
15546 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
15547 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
15548 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
15549 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
15550 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
15551 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
15552 conditional on SYMBIAN.
15553 * configure.ac: Don't handle powerpc*-*-gnu*.
15554 * configure: Regenerate.
15555 * doc/extend.texi (interrupt attribute): Don't mention CRX.
15556 * doc/install-old.texi (m6811, m6812): Don't mention.
15557 * doc/install.texi (arc-*-elf*): Don't document multilib option.
15558 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
15559 (m68k-uclinuxoldabi): Don't mention.
15560 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
15562 (-mcall-gnu): Remove.
15563 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
15564 families): Remove constraint documentation.
15566 2011-03-22 Marius Strobl <marius@FreeBSD.org>
15568 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
15569 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
15570 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
15572 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15575 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
15576 vector when peeking at the next token for vector, don't expand the
15579 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
15581 * config/avr/avr-protos.h (expand_epilogue): Change prototype
15582 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
15583 * config/avr/avr.c (init_cumulative_args)
15584 (avr_function_arg_advance): Use it.
15585 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
15587 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
15588 (avr_function_ok_for_sibcall): ...this new function.
15589 (avr_lookup_function_attribute1): New static Function.
15590 (avr_naked_function_p, interrupt_function_p)
15591 (signal_function_p, avr_OS_task_function_p)
15592 (avr_OS_main_function_p): Use it.
15593 * config/avr/avr.md ("sibcall", "sibcall_value")
15594 ("sibcall_epilogue"): New expander.
15595 ("*call_insn", "*call_value_insn"): New insn.
15596 ("call_insn", "call_value_insn"): Remove
15597 ("call", "call_value", "epilogue"): Change expander to handle
15600 2011-03-21 Nick Clifton <nickc@redhat.com>
15602 * doc/invoke.texi (Overall Options): Move closing brace to end of
15604 (Optimization Options): Add missing @gol.
15605 (Directory Options): Likewise.
15606 (i386 and x86-64 Options): Likewise.
15607 (RS6000 and PowerPC Options): Likewise.
15608 (i386 and x86-64 Windows Options): Likewise.
15609 (V850 Options): Add text missing from descriptions.
15611 2011-03-22 Richard Henderson <rth@redhat.com>
15613 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
15614 (avr_incoming_return_addr_rtx): New.
15615 (emit_push_byte): New.
15616 (expand_prologue): Use it. Remove incorrect dwarf annotation for
15617 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
15618 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
15619 (emit_pop_byte): New.
15620 (expand_epilogue): Use it. Pop frame pointer by bytes.
15621 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
15622 (INCOMING_RETURN_ADDR_RTX): New.
15623 (INCOMING_FRAME_SP_OFFSET): New.
15624 (ARG_POINTER_CFA_OFFSET): New.
15625 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
15626 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
15629 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
15631 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
15633 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
15634 (FUNCTION_ARG_ADVANCE): Likewise.
15635 * tm.texi.in: Change references to them to hook references.
15636 * tm.texi: Regenerate.
15637 * targhooks.c (default_function_arg): Eliminate check for target
15639 (default_function_incoming_arg): Likewise.
15640 (default_function_arg_advance): Likewise.
15641 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
15642 (function_arg_advance): Likewise.
15643 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
15645 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
15647 * tree.c (build_call_1): New function.
15648 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
15650 2011-03-22 Richard Guenther <rguenther@suse.de>
15652 PR tree-optimization/48228
15653 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
15654 for single-arg PHIs.
15656 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
15658 PR rtl-optimization/48143
15659 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
15660 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
15661 sse2_cvtps2pd): Likewise.
15663 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15665 * recog.c (canonicalize_change_group): Use validate_unshare_change.
15667 2011-03-22 Richard Guenther <rguenther@suse.de>
15669 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
15670 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
15671 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
15672 and REALIGN_LOAD_EXPR.
15673 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
15674 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
15675 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
15676 DOT_PROD_EXPR case ...
15677 (expand_expr_real_2): ... here.
15678 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
15679 and REALIGN_LOAD_EXPR.
15680 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
15681 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
15682 (vect_create_epilog_for_reduction): Likewise.
15683 (vectorizable_reduction): Likewise.
15684 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
15685 * tree-vect-stmts.c (vectorizable_load): Likewise.
15687 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
15689 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
15691 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15693 * config/s390/s390.c (s390_delegitimize_address): Fix offset
15694 handling for PLTOFF/GOTOFF.
15696 2011-03-22 Nick Clifton <nickc@redhat.com>
15698 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
15699 trailing backslash from the end of the macro definition.
15701 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15703 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
15706 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
15708 * expr.h (prepare_operand): Move to...
15709 * optabs.h (prepare_operand): ...here and change the insn code
15710 parameter from "int" to "enum insn_code".
15711 (insn_operand_matches): Declare.
15712 * expr.c (init_expr_target): Use insn_operand_matches.
15713 (compress_float_constant): Likewise.
15714 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
15715 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
15716 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
15717 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
15719 (gen_cond_trap): Likewise.
15720 (prepare_operand): Likewise. Change icode to an insn_code.
15721 (insn_operand_matches): New function.
15722 * reload.c (find_reloads_address_1): Use insn_operand_matches.
15723 * reload1.c (gen_reload): Likewise.
15724 * targhooks.c (default_secondary_reload): Likewise.
15726 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
15728 * config/alpha/alpha.md (unspec): New define_c_enum.
15731 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
15734 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
15735 between a call and its CALL_ARG_LOCATION note.
15737 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
15739 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
15741 2011-03-21 Jakub Jelinek <jakub@redhat.com>
15745 * c-common.c (shorten_compare): If primopN is first sign-extended
15746 to opN and then zero-extended to result type, set primopN to opN.
15748 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
15750 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
15751 for barrier handlers.
15753 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15755 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
15756 UNSPEC constants to be in the unspec enumeration, and redefine
15757 all UNSPECV constants to be in the unspecv enumeration, so that
15758 dumps print which unspec/unspec_volatile this is.
15759 * config/rs6000/vector.md (UNSPEC_*): Ditto.
15760 * config/rs6000/paired.md (UNSPEC_*): Ditto.
15761 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
15762 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
15763 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
15765 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
15766 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
15767 UNSPECV_LWSYNC, since these are used as unspec_volatile.
15768 * config/rs6000/sync.md (isync, lwsync): Ditto.
15770 2011-03-21 Richard Guenther <rguenther@suse.de>
15772 * params.def (lto-min-partition): Fix typo.
15774 2011-03-21 Richard Guenther <rguenther@suse.de>
15777 * c-decl.c (grokdeclarator): Drop to the main variant only
15778 for array types. Drop flag_gen_aux_info check.
15780 2011-03-21 Richard Guenther <rguenther@suse.de>
15782 PR translation/47911
15783 * params.def (lto-partitions): Fix typo.
15784 (lto-min-partition): Fix wording.
15786 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
15788 * config/rs6000/t-freebsd: Remove duplication from file.
15790 2011-03-21 Richard Guenther <rguenther@suse.de>
15792 PR middle-end/47661
15793 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
15795 2011-03-21 Richard Guenther <rguenther@suse.de>
15798 * params.def (lto-partitions): Require at least 1 partition.
15800 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15802 * gthr-solaris.h: Remove.
15803 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
15804 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
15805 (LIB_SPEC): Likewise.
15806 * config/sol2.opt (threads): Remove.
15807 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
15808 (sparc*-*-solaris2*): Likewise.
15809 * configure.ac (enable_threads): Enable solaris support.
15810 * configure: Regenerate.
15811 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
15812 * doc/install.texi (Configuration, --enable-threads=lib): Remove
15815 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15817 * config.gcc: Obsolete *-*-solaris2.8*.
15818 * doc/install.texi (Specific, *-*-solaris2*): Document it.
15820 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15823 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
15824 reference. Solaris 8 perl works.
15826 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15829 * doc/install.texi (Prerequisites): Move jar etc. up.
15830 Explain support library version requirements.
15832 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15835 * doc/install.texi (Prerequisites): Move Perl to build
15836 requirements. Always necessary on Solaris 2 with Sun ld.
15838 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15840 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
15842 (Specific, i?86-*-solaris2.[89]): Likewise.
15843 (Specific, i?86-*-solaris2.10): Likewise.
15844 (Specific, mips-sgi-irix6): Likewise.
15845 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
15846 Update for binutils 2.21.
15848 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15850 * configure.ac (gcc_cv_lto_plugin): Fix typo.
15851 Allow -fuse-linker-plugin for non-default plugin linker.
15852 * configure: Regenerate.
15854 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
15857 * gengtype.c (files_rules): Added rule for cp/parser.h.
15859 2011-03-21 Jakub Jelinek <jakub@redhat.com>
15862 * config/s390/s390.c (s390_delegitimize_address): Don't call
15863 lowpart_subreg if orig_x has BLKmode.
15865 2011-03-21 Kai Tietz <ktietz@redhat.com>
15868 * doc/plugins.texi: Adjust documentation for plugin register_callback.
15869 * tree.h (attribute_spec): Add new member affects_type_identity.
15870 * attribs.c (empty_attribute_table): Adjust attribute_spec
15872 * config/alpha/alpha.c: Likewise.
15873 * config/arc/arc.c: Likewise.
15874 * config/arm/arm.c: Likewise.
15875 * config/avr/avr.c: Likewise.
15876 * config/bfin/bfin.c: Likewise.
15877 * config/crx/crx.c: Likewise.
15878 * config/darwin.h: Likewise.
15879 * config/h8300/h8300.c: Likewise.
15880 * config/i386/cygming.h: Likewise.
15881 * config/i386/i386.c: Likewise.
15882 * config/ia64/ia64.c: Likewise.
15883 * config/m32c/m32c.c: Likewise.
15884 * config/m32r/m32r.c: Likewise.
15885 * config/m68hc11/m68hc11.c: Likewise.
15886 * config/m68k/m68k.c: Likewise.
15887 * config/mcore/mcore.c: Likewise.
15888 * config/mep/mep.c: Likewise.
15889 * config/microblaze/microblaze.c: Likewise.
15890 * config/mips/mips.c: Likewise.
15891 * config/rs6000/rs6000.c: Likewise.
15892 * config/rx/rx.c: Likewise.
15893 * config/sh/sh.c: Likewise.
15894 * config/sol2.h: Likewise.
15895 * config/sparc/sparc.c: Likewise.
15896 * config/spu/spu.c: Likewise.
15897 * config/stormy16/stormy16.c: Likewise.
15898 * config/v850/v850.c: Likewise.
15900 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
15902 * simplify-rtx.c (simplify_binary_operation_1): Handle
15903 (xor (and A B) C) case when B and C are both constants.
15905 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
15907 * tree-dfa.c (add_referenced_var): Fix typo in comment.
15909 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
15912 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
15914 2011-03-20 Jakub Jelinek <jakub@redhat.com>
15916 PR rtl-optimization/48156
15917 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
15918 assume df and df_lr are not NULL.
15920 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15923 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
15924 between a call and its CALL_ARG_LOCATION note.
15926 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
15929 * config/sh/sh.c (find_barrier): Don't emit a constant pool
15930 between a call and its corresponding CALL_ARG_LOCATION note.
15932 2011-03-19 Anatoly Sokolov <aesok@post.ru>
15934 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
15935 instead of loop. Use HARD_REGISTER_NUM_P predicate.
15936 * haifa-sched.c (setup_ref_regs): Ditto.
15937 * caller-save.c (add_used_regs_1): Ditto.
15938 * dse.c (look_for_hardregs): Ditto.
15939 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
15940 * sched-rgn.c (check_live_1): Ditto.
15942 2011-03-18 Joseph Myers <joseph@codesourcery.com>
15944 * c-decl.c (diagnose_mismatched_decls): Give an error for
15945 redefining a typedef with variably modified type.
15947 2011-03-18 Joseph Myers <joseph@codesourcery.com>
15949 * c-decl.c (grokfield): Don't allow typedefs for structures or
15950 unions with no tag by default.
15951 * doc/extend.texi (Unnamed Fields): Update.
15953 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
15955 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
15956 Rewrite using indirect functions.
15957 (lwp_slwpcb): Ditto.
15958 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
15959 (avx_vinsertf128<mode>): Ditto.
15961 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15963 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
15966 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15968 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
15969 splitting between a call and its corresponding CALL_ARG_LOCATION note.
15971 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
15973 PR rtl-optimization/48170
15974 * gcse.c (hoist_code): Remove bogus asserts.
15976 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
15978 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
15979 computation for prologue/epilogue.
15981 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15983 * Makefile.in (check-consistency): Remove.
15985 2011-03-18 Jakub Jelinek <jakub@redhat.com>
15988 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
15989 arange_table_in_use is 0, but either text_section_used or
15990 cold_text_section_used is true. Don't call it if
15991 !info_section_emitted.
15993 2011-03-18 Anatoly Sokolov <aesok@post.ru>
15995 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
15996 FUNCTION_VALUE_REGNO_P): Remove.
15997 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
15999 * config/avr/avr.c (avr_ret_register): Make static inline.
16000 (avr_function_value_regno_p): New function.
16001 (avr_libcall_value): Make static. Add 'func' argument.
16002 (avr_function_value): Make static. Rename 'func' argument to
16003 'fn_decl_or_type', forward it to avr_libcall_value. Call
16004 avr_ret_register function instead of RET_REGISTER macro.
16005 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
16007 2011-03-18 Jason Merrill <jason@redhat.com>
16010 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
16012 2011-03-18 Richard Guenther <rguenther@suse.de>
16014 * doc/install.texi (--enable-gold): Remove.
16015 (--with-plugin-ld): Document.
16016 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
16018 2011-03-18 Andrew Pinski <pinskia@gmail.com>
16020 PR middle-end/47790
16021 * expr.c (optimize_bitfield_assignment_op): Revamp to work
16022 again after expansion changes.
16024 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
16026 * combine.c (try_combine): Do simplification only call of
16027 subst() on i2 even when i1 is present. Update comments.
16029 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
16031 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
16032 and UNSPEC_PCREL_SYMOFF.
16034 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16036 * config/s390/s390.md: Use define_c_enum for the unspec constant
16039 2011-03-18 Richard Henderson <rth@redhat.com>
16040 Jakub Jelinek <jakub@redhat.com>
16043 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
16044 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
16046 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
16048 PR middle-end/47725
16049 * combine.c (cant_combine_insn_p): Don't check zero/sign
16050 extended hard registers.
16052 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
16054 PR middle-end/47725
16055 * combine.c (cant_combine_insn_p): Check zero/sign extended
16058 2011-03-17 Anatoly Sokolov <aesok@post.ru>
16060 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16061 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
16062 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
16063 Change return type to bool.
16064 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16066 2011-03-17 Jakub Jelinek <jakub@redhat.com>
16069 * var-tracking.c (prepare_call_arguments): If CALL target
16070 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
16071 pc instead of looking it up using cselib_lookup and use
16072 Pmode for it if x has VOIDmode.
16073 * dwarf2out.c (gen_subprogram_die): If also both first and
16074 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
16077 * function.c (assign_parms): For data.passed_pointer parms
16078 use MEM of data.entry_parm instead of data.entry_parm itself
16079 as DECL_INCOMING_RTL.
16080 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
16081 also when passed and declared mode is the same, DECL_RTL
16082 is a MEM with pseudo as address and DECL_INCOMING_RTL is
16085 2011-03-16 Jeff Law <law@redhat.com>
16087 PR rtl-optimization/37273
16088 * ira-costs.c (scan_one_insn): Detect constants living in memory and
16089 handle them like argument loads from stack slots. Do not double
16090 count memory for memory constants and argument loads from stack slots.
16092 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
16095 * var-tracking.c (prepare_call_arguments): Check SUBREG.
16097 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
16100 * config/i386/i386.opt: Add Save to -mavx and -mfma.
16102 2011-03-17 Jakub Jelinek <jakub@redhat.com>
16105 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
16107 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
16108 Clear call_arg_locations and call_arg_loc_last always.
16110 PR middle-end/48152
16111 * var-tracking.c (prepare_call_arguments): If argument needs to be
16112 passed by reference, adjust argtype and mode.
16114 2011-03-17 Richard Guenther <rguenther@suse.de>
16116 PR middle-end/48134
16117 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
16118 a value make sure to fold the statement.
16120 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
16123 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
16124 return condition with !cfun->calls_alloca.
16126 2011-03-17 Richard Guenther <rguenther@suse.de>
16129 * lto-cgraph.c (input_overwrite_node): Clear the abstract
16130 origin for decls in other ltrans units.
16131 (input_varpool_node): Likewise.
16133 2011-03-17 Richard Guenther <rguenther@suse.de>
16135 PR middle-end/48165
16136 * tree-object-size.c (compute_object_offset): Properly return
16137 the offset operand of MEM_REFs as sizetype.
16139 2011-03-17 Jakub Jelinek <jakub@redhat.com>
16141 PR rtl-optimization/48141
16142 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
16143 * dse.c: Include params.h.
16144 (active_local_stores_len): New variable.
16145 (add_wild_read, dse_step1): Clear it when setting active_local_stores
16147 (record_store, check_mem_read_rtx): Decrease it when removing
16149 (scan_insn): Likewise. Increase it when adding to chain, if it
16150 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
16151 set active_local_stores to NULL before the addition.
16152 * Makefile.in (dse.o): Depend on $(PARAMS_H).
16154 PR rtl-optimization/48141
16155 * dse.c (record_store): If no positions are needed in an insn
16156 that cannot be deleted, at least unchain it from active_local_stores.
16158 2011-03-16 Dodji Seketeli <dodji@redhat.com>
16161 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
16162 (lookup_type_die_strip_naming_typedef): ... here.
16163 (get_context_die): Use it.
16164 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
16165 the anonymous struct named by the naming typedef.
16167 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
16170 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
16171 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
16173 2011-03-16 Jeff Law <law@redhat.com>
16175 * tree-vrp.c (identify_jump_threads): Slightly simplify type
16176 check for operands of conditional. Allow type to be a pointer.
16178 2011-03-16 Richard Guenther <rguenther@suse.de>
16180 PR tree-optimization/48149
16181 * fold-const.c (fold_binary_loc): Fold
16182 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
16184 2011-03-16 Richard Guenther <rguenther@suse.de>
16186 PR tree-optimization/26134
16187 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
16188 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
16189 (non_rewritable_mem_ref_base): Handle complex type component
16190 accesses, constrain offsets for vector and complex extracts
16193 2011-03-16 Richard Guenther <rguenther@suse.de>
16195 PR tree-optimization/48146
16196 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
16197 operands avoiding the need for renaming.
16199 2011-03-16 Richard Guenther <rguenther@suse.de>
16201 * gimple-fold.c (maybe_fold_reference): Open-code relevant
16202 constant folding. Move MEM_REF canonicalization first.
16203 Rely on fold_const_aggregate_ref for initializer folding.
16204 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
16206 2011-03-16 Jakub Jelinek <jakub@redhat.com>
16208 PR middle-end/48136
16209 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
16210 arg0/arg1 or their arguments are always fold converted to matching
16213 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
16216 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16219 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
16220 Handle in-tree gold.
16221 (ld_vers): Extract binutils version for gold.
16222 (gcc_cv_ld_hidden): Handle gold here.
16223 (gcc_cv_lto_plugin): Determine level of linker plugin support.
16224 * configure: Regenerate.
16225 * config.in: Regenerate.
16226 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
16227 -fuse-linker-plugin otherwise.
16228 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
16229 (LINK_COMMAND_SPEC): Use it.
16230 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
16232 2011-03-16 Jakub Jelinek <jakub@redhat.com>
16234 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
16235 * calls.c: Remove debug.h include.
16236 (emit_call_1): Don't call virtual_call_token debug hook.
16237 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
16238 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
16239 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
16240 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
16241 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
16242 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
16243 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
16244 dwarf2out_virtual_call): Remove.
16245 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
16246 copy_call_info and virtual_call hooks.
16247 (dwarf2out_init): Don't initialize vcall_insn_table,
16248 debug_dcall_section and debug_vcall_section.
16249 (prune_unused_types): Don't mark nodes from dcall_table.
16250 (dwarf2out_finish): Don't output dcall or vcall tables.
16251 * final.c (final_scan_insn): Don't call direct_call or
16252 virtual_call debug hooks.
16253 * debug.h (struct gcc_debug_hooks): Remove direct_call,
16254 virtual_call_token, copy_call_info and virtual_call hooks.
16255 (debug_nothing_uid): Remove prototype.
16256 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
16257 copy_call_info and virtual_call hooks.
16258 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
16259 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
16260 * debug.c (do_nothing_debug_hooks): Likewise.
16261 (debug_nothing_uid): Remove.
16262 * doc/invoke.texi (-fenable-icf-debug): Remove.
16263 * common.opt (-fenable-icf-debug): Likewise.
16265 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
16266 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
16267 call's MEM. Handle functions returning aggregate through a hidden
16268 first pointer. For virtual calls add clobbered pc to call arguments
16270 * dwarf2out.c (gen_subprogram_die): Emit
16271 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
16275 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
16276 * rtl.h (ENTRY_VALUE_EXP): Define.
16277 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
16278 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
16279 * print-rtl.c (print_rtx): Likewise.
16280 * gengtype.c (adjust_field_rtx_def): Likewise.
16281 * var-tracking.c (vt_add_function_parameter): Adjust
16282 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
16283 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
16284 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
16285 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
16286 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
16288 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
16289 Call var_location debug hook even on CALL_INSNs.
16290 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
16291 * rtl.def (ENTRY_VALUE): New.
16292 * dwarf2out.c: Include cfglayout.h.
16293 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
16294 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
16295 (struct call_arg_loc_node): New type.
16296 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
16297 tail_call_site_count): New variables.
16298 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
16299 DW_TAG_GNU_call_site_parameter.
16300 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
16301 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
16302 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
16303 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
16304 and DW_AT_GNU_all_source_call_sites.
16305 (mem_loc_descriptor): Handle ENTRY_VALUE.
16306 (add_src_coords_attributes): Don't add enything if
16307 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
16308 (dwarf2out_abstract_function): Save and clear call_arg_location,
16309 call_site_count and tail_call_site_count around dwarf2out_decl call.
16310 (gen_call_site_die): New function.
16311 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
16312 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
16313 (dwarf2out_function_decl): Clear call_arg_locations,
16314 call_arg_loc_last, set call_site_count and tail_call_site_count
16315 to -1 and free block_map.
16316 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
16317 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
16318 followed by any real instructions.
16319 (dwarf2out_begin_function): Set call_site_count and
16320 tail_call_site_count to 0.
16321 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
16322 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
16323 attempt to force a DIE for it and worst case remove the attribute.
16324 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
16325 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
16327 * var-tracking.c: Include tm_p.h.
16328 (vt_stack_adjustments): For calls call note_register_arguments.
16329 (argument_reg_set): New variable.
16330 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
16331 ensure the VALUE is resolved.
16332 (call_arguments): New variable.
16333 (prepare_call_arguments): New function.
16334 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
16335 (struct expand_loc_callback_data): Add ignore_cur_loc field.
16336 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
16337 always use the best expression.
16338 (vt_expand_loc): Add ignore_cur_loc argument.
16339 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
16340 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
16341 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
16342 note for all calls.
16343 (vt_add_function_parameter): Use cselib_lookup_from_insn.
16344 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
16345 argument. Don't call cselib_preserve_only_values and
16346 cselib_reset_table.
16347 (note_register_arguments): New function.
16348 (vt_initialize): Compute argument_reg_set. Call
16349 vt_add_function_parameters before processing basic blocks instead of
16350 afterwards. For calls call prepare_call_arguments before calling
16351 cselib_process_insn.
16352 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
16353 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
16354 (var-tracking.o): Depend on $(TM_P_H).
16355 * cfglayout.h (insn_scope): New prototype.
16356 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
16357 * cfglayout.c (insn_scope): No longer static.
16358 * insn-notes.def (CALL_ARG_LOCATION): New.
16359 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
16360 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
16361 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
16362 nothing for DECL_EXTERNAL BLOCK_VARS.
16364 2011-03-16 Alan Modra <amodra@gmail.com>
16367 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
16368 create invalid offset address for vsx splat insn.
16369 * config/rs6000/predicates.md (splat_input_operand): New.
16370 * config/rs6000/vsx.md (vsx_splat_*): Use it.
16372 2011-03-15 Xinliang David Li <davidxl@google.com>
16375 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
16376 (normalize_preds): New function.
16377 (is_use_properly_guarded): Normalize def predicates.
16379 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16382 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
16383 in the output template.
16385 2011-03-15 Richard Guenther <rguenther@suse.de>
16387 PR middle-end/47650
16388 * tree-pretty-print.c (dump_function_declaration): Properly
16389 dump unprototyped and varargs function types.
16391 2011-03-15 Richard Guenther <rguenther@suse.de>
16393 PR tree-optimization/13954
16394 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
16397 2011-03-15 Richard Guenther <rguenther@suse.de>
16399 PR tree-optimization/48037
16400 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
16401 selects into BIT_FIELD_REFs.
16402 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
16405 2011-03-15 Jakub Jelinek <jakub@redhat.com>
16407 PR tree-optimization/48129
16408 * builtins.c (fold_builtin_snprintf): Convert to type of
16409 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
16410 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
16412 2011-03-15 Richard Guenther <rguenther@suse.de>
16414 PR tree-optimization/41490
16415 * tree-ssa-dce.c (propagate_necessity): Handle returns without
16416 value but with VUSE.
16417 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
16419 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
16420 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
16421 * tree-tailcall.c (find_tail_calls): Ignore returns.
16423 2011-03-15 Richard Guenther <rguenther@suse.de>
16425 PR middle-end/48031
16426 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
16427 or variable-indexed array accesses when in gimple form.
16429 2011-03-15 Richard Guenther <rguenther@suse.de>
16431 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
16433 2011-03-15 Alan Modra <amodra@gmail.com>
16436 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
16437 presume symbol_refs without a symbol_ref_decl are suitably
16438 aligned, nor other trees we may see here. Handle anchor symbols.
16439 (legitimate_constant_pool_address_p): Comment. Add mode param.
16440 Check cmodel=medium addresses. Adjust all calls.
16441 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
16442 creating cmodel=medium optimized access to locals.
16443 * config/rs6000/constraints.md (R): Pass QImode to
16444 legitimate_constant_pool_address_p.
16445 * config/rs6000/predicates.md (input_operand): Pass mode to
16446 legitimate_constant_pool_address_p.
16447 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
16450 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
16453 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
16454 64-bit constants being loaded into registers other than GPRs such
16455 as loading 0 into a VSX register.
16457 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16459 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
16461 2011-03-14 Jakub Jelinek <jakub@redhat.com>
16463 PR middle-end/47917
16464 * builtins.c (fold_builtin_snprintf): New function.
16465 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
16466 (fold_builtin_4): Likewise.
16468 PR middle-end/38878
16469 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
16470 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
16471 and C - X == X also strip nops from +/-/p+ operand.
16472 When optimizing -X == C, fold C to arg0's type.
16475 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
16476 emit it as add_AT_int instead of add_AT_unsigned.
16478 2011-03-14 Tom Tromey <tromey@redhat.com>
16480 * unwind-dw2.c: Include sys/sdt.h if it exists.
16481 (_Unwind_DebugHook): Use STAP_PROBE2.
16482 * config.in, configure: Rebuild.
16483 * configure.ac: Check for sys/sdt.h.
16485 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
16487 * config/i386/i386.md (ROUND_FLOOR): New constant.
16488 (ROUND_CEIL): Ditto.
16489 (ROUND_TRUNC): Ditto.
16490 (ROUND_MXCSR): Ditto.
16491 (ROUND_NO_EXC): Ditto.
16492 (rint<mode>2): Use new defines instead of numerical constants.
16493 (floor<mode>2): Ditto.
16494 (ceil<mode>2): Ditto.
16495 (btrunc<mode>2): Ditto.
16496 * config/i386/i386-builtin-types.def: Define ROUND function type
16498 * config/i386/i386.c (enum ix86_builtins): Add
16499 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
16500 (struct builtin_description): Add
16501 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
16502 (ix86_expand_sse_round): New static function.
16503 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
16505 (ix86_builtin_vectorized_function): Handle
16506 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
16508 2011-03-14 Tom Tromey <tromey@redhat.com>
16510 * c-parser.c (c_parser_asm_string_literal): Clear
16511 warn_overlength_strings.
16513 2011-03-14 Tom Tromey <tromey@redhat.com>
16515 * c-parser.c (disable_extension_diagnostics): Save
16516 warn_overlength_strings.
16517 (restore_extension_diagnostics): Restore warn_overlength_strings.
16519 2011-03-14 Jakub Jelinek <jakub@redhat.com>
16521 * BASE-VER: Change to 4.7.0.
16523 2011-03-14 Richard Guenther <rguenther@suse.de>
16525 PR middle-end/48098
16526 * tree.c (build_vector_from_val): Adjust assert to requirements
16529 2011-03-14 Jakub Jelinek <jakub@redhat.com>
16532 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
16534 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
16536 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
16537 terms of target_flags_explicit. Adjust copyright year.
16539 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
16540 * config/rs6000/t-freebsd: New file. Add override for
16543 2011-03-13 Chris Demetriou <cgd@google.com>
16545 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
16546 (-fno-diagnostics-show-option): this, to reflect current default.
16547 (-Werror=): Update text about -fno-diagnostics-show-option.
16549 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
16552 * config/rs6000/predicates.md (easy_vector_constant_add_self,
16553 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
16554 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
16555 mode is not V2DImode or V2DFmode.
16556 (vspltis_constant): Do not handle V2DImode and V2DFmode.
16557 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
16558 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
16560 (movdi_internal64): Likewise.
16562 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
16564 PR tree-optimization/47127
16565 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
16567 (set_cloog_options): Same.
16568 (scop_to_clast): Same.
16569 (print_clast_stmt): Do not call cloog_state_malloc and
16571 (print_generated_program): Same.
16573 * graphite-clast-to-gimple.h (cloog_state): Declared.
16574 (scop_to_clast): Adjust declaration.
16575 * graphite.c (cloog_state): Defined here.
16576 (graphite_initialize): Call cloog_state_malloc.
16577 (graphite_finalize): Call cloog_state_free.
16579 2011-03-11 Jason Merrill <jason@redhat.com>
16581 * attribs.c (lookup_attribute_spec): Take const_tree.
16584 2011-03-11 Joseph Myers <joseph@codesourcery.com>
16586 * config/sparc/sparc.c (sparc_option_override): Use
16587 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
16589 2011-03-11 Richard Guenther <rguenther@suse.de>
16591 PR tree-optimization/48067
16592 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
16593 multiplication result will be only used once on the target
16596 2011-03-11 Richard Guenther <rguenther@suse.de>
16598 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
16600 2011-03-11 Richard Guenther <rguenther@suse.de>
16603 * tree.c (find_decls_types_r): Do not walk types only reachable
16604 from IDENTIFIER_NODEs.
16606 2011-03-11 Jakub Jelinek <jakub@redhat.com>
16608 PR middle-end/48044
16609 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
16610 all vnode->force_output nodes as needed.
16612 2011-03-11 Jason Merrill <jason@redhat.com>
16615 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
16616 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
16618 2011-03-11 Martin Jambor <mjambor@suse.cz>
16620 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
16623 2011-03-11 Jakub Jelinek <jakub@redhat.com>
16625 PR tree-optimization/48063
16626 * ipa-inline.c (cgraph_decide_inlining): Don't try to
16627 inline functions called once if !tree_can_inline_p (node->callers).
16629 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
16631 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
16633 * config/score/score3.c: Delete.
16634 * config/score/score3.h: Delete.
16635 * config/score/mul-div.S: Delete.
16636 * config/score/sfp-machine.h: Add new file.
16637 * config/score/constraints.md: Add new file.
16638 * config/score/t-score-softfp: Add new file.
16639 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
16640 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
16641 (score7_extra_constraint): Delete.
16642 (score7_option_override): Remove unused code.
16643 * config/score/score.c: Remove score3 and score5 define and code.
16644 * config/score/score.h: Remove score3 and score5 define and code.
16645 * config/score/score.md: Remove score3 template and unusual insn.
16646 * config/score/score.opt: Remove score3 and score5 options.
16648 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16650 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
16651 when _HPUX_SOURCE is defined.
16652 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
16654 2011-03-10 Jason Merrill <jason@redhat.com>
16657 * stor-layout.c (layout_type): Don't set structural equality
16658 on arrays of incomplete type.
16659 * tree.c (type_hash_eq): Handle comparing them properly.
16661 2011-03-10 Jakub Jelinek <jakub@redhat.com>
16664 * config/s390/s390.c (s390_delegitimize_address): Make sure the
16665 result mode matches original rtl mode.
16667 2011-03-10 Nick Clifton <nickc@redhat.com>
16669 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
16670 (andsi3, andsi3_flags): Fix timings for three operand alternative.
16672 2011-03-09 Jakub Jelinek <jakub@redhat.com>
16674 PR rtl-optimization/47866
16675 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
16676 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
16677 if target wasn't scalar.
16678 * function.c (assign_stack_temp_for_type): Assert that neither
16679 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
16680 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
16682 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
16684 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16686 * config/s390/s390-protos.h (s390_label_align): New prototype.
16687 * config/s390/s390.c (s390_label_align): New function.
16688 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
16690 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
16693 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
16694 V2DI/V2DF constants. Only all 0's or all 1's are easy.
16695 (output_vec_const_move): Ditto.
16697 2011-03-08 Anatoly Sokolov <aesok@post.ru>
16699 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
16700 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
16701 * config/mips/mips.c (mips_preferred_reload_class): Make static.
16702 Change 'rclass' argument and result type to reg_class_t.
16703 (TARGET_PREFERRED_RELOAD_CLASS): Define.
16705 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
16707 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
16708 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
16709 (TARGET_MEMORY_MOVE_COST): Define.
16710 (avr_register_move_cost, avr_memory_move_cost): New Functions.
16712 2011-03-08 Jakub Jelinek <jakub@redhat.com>
16715 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
16718 PR tree-optimization/48022
16719 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
16722 2011-03-07 Jakub Jelinek <jakub@redhat.com>
16725 * var-tracking.c (find_use_val): Return NULL for
16726 cui->sets && cui->store_p BLKmode MEMs.
16728 2011-03-07 Anatoly Sokolov <aesok@post.ru>
16730 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
16732 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
16733 xstormy16_print_operand_address): Remove.
16734 * config/stormy16/stormy16.c (xstormy16_print_operand,
16735 xstormy16_print_operand_address): Make static.
16736 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16738 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
16741 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
16742 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
16745 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
16748 * cfgloopmanip.c (fix_bb_placements): Return immediately
16749 if FROM is BASE_LOOP's header.
16751 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
16753 * gimplify.c (gimplify_function_tree): Fix building calls
16754 to __builtin_return_address.
16756 2011-03-07 Alan Modra <amodra@gmail.com>
16758 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
16759 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
16760 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
16761 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
16763 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
16764 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
16765 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
16766 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
16767 * config/rs6000/rs6000.c
16768 (rs6000_elf_end_indicate_exec_stack): Rename to..
16769 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
16770 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
16771 (rs6000_file_start): ..here.
16772 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
16773 file scope variables.
16774 (call_ABI_of_interest): New function.
16775 (init_cumulative_args): Set above vars when function return value
16776 is a float, vector, or small struct.
16777 (rs6000_function_arg_advance_1): Likewise for function args.
16778 (rs6000_va_start): Set rs6000_passes_float if variable arg function
16779 references float args.
16781 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
16783 * doc/cfg.texi: Remove "See" before @ref.
16784 * doc/invoke.texi: Likewise.
16786 2011-03-05 Jason Merrill <jason@redhat.com>
16788 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
16790 2011-03-05 Anthony Green <green@moxielogic.com>
16792 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
16794 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
16796 PR rtl-optimization/47899
16797 * cfgloopmanip.c (fix_bb_placements): Fix first argument
16798 to flow_loop_nested_p when moving the loop upward.
16800 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
16803 * arm.md (movhi_insn_arch4): Accept any immediate constant.
16805 2011-03-05 Jakub Jelinek <jakub@redhat.com>
16807 PR tree-optimization/47967
16808 * ipa-cp.c (build_const_val): Return NULL instead of creating
16809 VIEW_CONVERT_EXPR for mismatching sizes.
16810 (ipcp_create_replace_map): Return NULL if build_const_val failed.
16811 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
16812 give up on versioning.
16814 2011-03-05 Alan Modra <amodra@gmail.com>
16817 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
16818 full cmodel medium/large lo_sum + high addresses.
16820 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16822 * config/s390/s390.c (s390_decompose_address): Reject non-literal
16823 pool references in UNSPEC_LTREL_OFFSET.
16825 2011-03-04 Jan Hubicka <jh@suse.cz>
16828 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
16829 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
16830 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
16832 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
16833 cgraph_add_thunk): Add node pointers.
16834 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
16835 associated to right node.
16836 (input_node): Update use of cgraph_same_body_alias
16837 and cgraph_add_thunk.
16839 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
16841 * config/i386/i386.opt (mprefer-avx128): New flag.
16842 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
16843 modes when the flag -mprefer-avx128 is on.
16845 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
16847 * dwarf2out.c (compare_loc_operands): Fix address handling.
16849 2011-03-04 Alan Modra <amodra@gmail.com>
16851 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
16853 2011-03-04 Richard Guenther <rguenther@suse.de>
16855 PR middle-end/47968
16856 * expmed.c (extract_bit_field_1): Prefer vector modes that
16857 vec_extract patterns can handle.
16859 2011-03-04 Richard Guenther <rguenther@suse.de>
16861 PR middle-end/47975
16862 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
16864 2011-03-04 Richard Henderson <rth@redhat.com>
16866 * explow.c (emit_stack_save): Remove 'after' parameter.
16867 (emit_stack_restore): Likewise.
16868 * expr.h: Update to match.
16869 * builtins.c, calls.c, stmt.c: Likewise.
16870 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
16871 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
16872 * function.c (expand_function_end): Insert the emit_stack_save
16873 sequence before parm_birth_insn instead of after.
16875 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
16877 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
16878 (ssse3_pmaddubsw128): Ditto.
16879 (ssse3_pmaddubsw): Ditto.
16881 2011-03-03 Steve Ellcey <sje@cup.hp.com>
16883 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
16885 2011-03-03 Jakub Jelinek <jakub@redhat.com>
16888 * gimplify.c (omp_add_variable): Only call omp_notice_variable
16889 on TYPE_SIZE_UNIT if it is a DECL.
16892 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
16893 first operand is not is_gimple_mem_ref_addr, try to fold it.
16894 If the operand still isn't is_gimple_mem_ref_addr, clear
16897 2011-03-03 Richard Guenther <rguenther@suse.de>
16899 PR middle-end/47283
16900 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
16902 (refs_may_alias_p_1): For release branches return true if
16903 we are confused by our input.
16905 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16907 * config/s390/s390.c (s390_function_value): Rename to ...
16908 (s390_function_and_libcall_value): ... this.
16909 (s390_function_value): New function.
16910 (s390_libcall_value): New function.
16911 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
16912 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
16913 target macro definitions.
16914 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
16916 2011-03-02 Joseph Myers <joseph@codesourcery.com>
16918 * config/i386/freebsd64.h (CC1_SPEC): Define.
16919 * config/i386/linux64.h (CC1_SPEC): Define.
16920 * config/i386/x86-64.h (CC1_SPEC): Don't define.
16922 2011-03-02 Anatoly Sokolov <aesok@post.ru>
16924 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16926 * config/stormy16/stormy16.c: Include reload.h.
16927 (xstormy16_memory_move_cost): New function.
16928 (TARGET_MEMORY_MOVE_COST): Define.
16930 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
16932 PR rtl-optimization/47925
16933 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
16934 with side effects. Remove the more-specific check for volatile asms.
16936 2011-03-02 Alan Modra <amodra@gmail.com>
16939 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
16940 toc relative addresses for valid offsets.
16942 2011-03-01 Richard Guenther <rguenther@suse.de>
16944 PR tree-optimization/47890
16945 * tree-vect-loop.c (get_initial_def_for_induction): Set
16946 related stmt properly.
16948 2011-03-01 Richard Guenther <rguenther@suse.de>
16951 * lto-streamer.c (lto_record_common_node): Also register
16952 the canonical type.
16954 2011-03-01 Richard Guenther <rguenther@suse.de>
16957 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
16958 Do not stream DECL_ABSTRACT_ORIGIN.
16959 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
16960 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
16961 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
16962 Do not stream DECL_ABSTRACT_ORIGIN.
16963 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
16964 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
16966 2011-02-28 Anatoly Sokolov <aesok@post.ru>
16968 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
16969 FUNCTION_VALUE_REGNO_P): Remove.
16970 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
16971 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
16972 Add 'outgoing' argument.
16973 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
16975 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16976 TARGET_FUNCTION_VALUE_REGNO_P): Define.
16978 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
16981 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
16982 (lookup_filename): Likewise.
16983 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
16985 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
16986 Jakub Jelinek <jakub@redhat.com>
16988 PR middle-end/47893
16989 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
16990 (assign_stack_local_1): Change last argument type to int.
16991 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
16992 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
16993 don't record padding space into frame_space_list nor use those areas.
16994 (assign_stack_local): Adjust caller.
16995 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
16996 of assign_stack_local, pass 0 as last argument.
16997 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
17000 2011-02-28 Jakub Jelinek <jakub@redhat.com>
17003 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
17004 Use target address_mode and pointer_mode hooks instead of hardcoded
17005 Pmode and ptr_mode. Handle some simple cases of extending if
17006 POINTERS_EXTEND_UNSIGNED < 0.
17007 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
17008 Call convert_debug_memory_address.
17009 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
17010 convert_debug_memory_address.
17012 PR middle-end/46790
17013 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
17014 * configure: Regenerated.
17015 * config.in: Regenerated.
17016 * varasm.c (default_function_section): Return NULL
17017 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
17019 2011-02-28 Martin Jambor <mjambor@suse.cz>
17021 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
17022 the description to match the printed values.
17024 2011-02-28 Richard Guenther <rguenther@suse.de>
17026 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
17027 of the copied scope tree.
17029 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17031 * doc/extend.texi (Function Attributes): Avoid deeply (and
17032 wrongly) nested tables.
17034 2011-02-27 Jakub Jelinek <jakub@redhat.com>
17036 PR middle-end/47903
17037 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
17038 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
17039 r isn't op0 nor op1.
17041 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
17043 * config/avr/avr.md: Remove magic comment for emacs.
17045 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
17048 * config/avr/avr.c (avr_option_override): Use error on bad options.
17049 (avr_help): New function.
17050 (TARGET_HELP): Define.
17052 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
17055 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
17056 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
17058 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
17060 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
17061 (ARM Options): Ditto.
17062 (i386 and x86-64 Options): Ditto.
17063 (RX Options): Ditto.
17064 (SPARC Options): Ditto.
17066 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
17068 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
17069 FreeBSD 6 and later. Generally use cpu generic.
17071 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
17073 * doc/cpp.texi: Update copyright years.
17075 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
17078 * config/lm32/lm32.md (ashrsi3): Added needed variable.
17080 2011-02-25 Jon Beniston <jon@beniston.com>
17083 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
17084 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
17085 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
17086 (lm32_block_move_inline): Add type cast to remove warning.
17087 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
17088 (gen_int_relational): Move declarations to start of function.
17090 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
17092 PR tree-optimization/45470
17093 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
17094 can throw internally only.
17095 * tree-vect-stmts.c (vectorizable_call): Likewise.
17097 2011-02-24 Anatoly Sokolov <aesok@post.ru>
17099 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
17100 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
17101 * config/stormy16/stormy16-protos.h
17102 (xstormy16_preferred_reload_class): Remove.
17103 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
17104 static. Change 'rclass' argument and return type to reg_class_t.
17105 (TARGET_PREFERRED_RELOAD_CLASS,
17106 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
17108 2011-02-24 Richard Guenther <rguenther@suse.de>
17110 * lto-streamer-in.c (input_bb): Do not find referenced vars
17111 in debug statements.
17113 2011-02-23 Jason Merrill <jason@redhat.com>
17115 * common.opt (fabi-version): Document v5 and v6.
17117 2011-02-23 Richard Guenther <rguenther@suse.de>
17119 PR tree-optimization/47849
17120 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
17122 2011-02-23 Jie Zhang <jie@codesourcery.com>
17124 * opts-common.c (decode_cmdline_option): Print empty string
17125 argument as "" in decoded->orig_option_with_args_text.
17126 * gcc.c (execute): Print empty string argument as ""
17127 in the verbose output.
17128 (do_spec_1): Keep empty string argument.
17130 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
17132 * config.gcc: Declare score-* and crx-* obsolete.
17134 2011-02-23 Jie Zhang <jie@codesourcery.com>
17136 PR rtl-optimization/47763
17137 * web.c (web_main): Ignore naked clobber when replacing register.
17139 2011-02-22 Anatoly Sokolov <aesok@post.ru>
17141 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
17144 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
17147 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
17149 2011-02-22 Mike Stump <mikestump@comcast.net>
17151 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
17153 * configure: Regenerate.
17155 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
17157 PR rtl-optimization/46002
17158 * ira-color.c (update_copy_costs): Change class intersection
17159 test to reg_class_contents[] test of 'hard_regno'.
17161 2011-02-21 Joseph Myers <joseph@codesourcery.com>
17163 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
17164 than Driver option.
17165 * config/hpux11.opt (mt): Likewise.
17166 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
17167 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
17168 * config/vax/elf.opt (mno-asm-pic): Likewise.
17169 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
17171 2011-02-21 Mike Stump <mikestump@comcast.net>
17174 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
17175 tree so we can get save the type.
17176 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
17177 for CFString instead of trying to use past the end of the builtins.
17178 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
17179 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
17180 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
17181 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
17182 Rename to darwin_builtin_cfstring.
17183 (darwin_init_cfstring_builtins): Return the built type.
17185 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
17188 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
17189 (_mm256_insert_epi64): Use _mm_insert_epi64.
17191 2011-02-21 Anatoly Sokolov <aesok@post.ru>
17193 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
17194 * config/stormy16/stormy16-protos.h
17195 (xstormy16_mode_dependent_address_p): Remove.
17196 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
17197 Make static. Change return type to bool. Change argument type to
17198 const_rtx. Remove dead code.
17199 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
17201 2011-02-21 Richard Guenther <rguenther@suse.de>
17204 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
17205 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
17206 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
17208 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
17209 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
17211 2011-02-20 Richard Guenther <rguenther@suse.de>
17214 * tree.c (free_lang_data_in_decl): Clean builtins from
17215 the TU decl BLOCK_VARS.
17217 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
17221 * haifa-sched.c (fix_tick_ready): Skip tick computation
17224 2011-02-19 Richard Guenther <rguenther@suse.de>
17227 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
17228 Remove lazy BLOCK_VARS streaming.
17229 (lto_input_ts_block_tree_pointers): Likewise.
17230 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
17232 2011-02-19 Joseph Myers <joseph@codesourcery.com>
17234 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
17236 2011-02-19 Joseph Myers <joseph@codesourcery.com>
17238 * config/i386/biarch32.h, config/i386/mach.h,
17239 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
17241 2011-02-19 Jakub Jelinek <jakub@redhat.com>
17244 * config/i386/i386.md (peephole2 for shift and plus): Use
17245 operands[1] original mode in the first insn.
17247 2011-02-18 Mike Stump <mikestump@comcast.net>
17249 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
17251 2011-02-18 Jan Hubicka <jh@suse.cz>
17253 PR middle-end/47788
17254 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
17255 to zero when the function is not inlinable at all.
17257 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17259 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
17260 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
17261 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
17262 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
17263 * config/pa/t-pa64: Likewise.
17264 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
17266 2011-02-18 Jakub Jelinek <jakub@redhat.com>
17269 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
17271 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17274 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
17276 2011-02-18 Anatoly Sokolov <aesok@post.ru>
17278 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
17279 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
17280 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
17281 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
17282 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
17283 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
17284 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
17285 m32r_load_postinc_p, m32r_store_preinc_predec_p,
17286 m32r_legitimate_address_p): New functions.
17287 * config/m32r/constraints.md (constraint "S"): Don't use
17288 STORE_PREINC_PREDEC_P.
17289 (constraint "U"): Don't use LOAD_POSTINC_P.
17291 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
17293 PR rtl-optimization/46178
17294 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
17295 compute ira_hard_regno_cover_class[].
17297 2011-02-18 Richard Guenther <rguenther@suse.de>
17300 * lto-streamer.h (lto_global_var_decls): Declare.
17301 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
17302 statics for global var processing.
17304 2011-02-18 Richard Guenther <rguenther@suse.de>
17306 PR tree-optimization/47737
17307 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
17308 edge dominance check.
17310 2011-02-18 Jakub Jelinek <jakub@redhat.com>
17313 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
17314 avoid invalid rtx sharing.
17316 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
17318 * doc/cpp.texi (Obsolete Features): Add background on the
17319 origin of assertions.
17321 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
17323 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
17325 * config/darwin.c (output_objc_section_asm_op): Added support for
17327 (is_objc_metadata): New.
17328 (darwin_objc2_section): New.
17329 (darwin_objc1_section): New.
17330 (machopic_select_section): Added support for ABI v1 and v2.
17331 (darwin_emit_objc_zeroed): New.
17332 (darwin_output_aligned_bss): Detect objc metadata and treat it
17334 (darwin_asm_output_aligned_decl_common): Same.
17335 (darwin_asm_output_aligned_decl_local): Same.
17336 * config/darwin-sections.def: Updated for ABI v1 and v2.
17337 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
17338 compiling Objective-C code for the NeXT runtime, default to using
17339 ABI version 0 for 32-bit, and version 2 for 64-bit.
17341 2011-02-17 Joseph Myers <joseph@codesourcery.com>
17343 * common.opt (optimize_fast): New Variable.
17344 * opts.c (default_options_optimization): Use opts->x_optimize_fast
17345 instead of local variable ofast.
17347 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
17349 * doc/invoke.texi (fobjc-abi-version): Documented.
17350 (fobjc-nilcheck): Documented.
17351 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
17354 2011-02-17 Joseph Myers <joseph@codesourcery.com>
17357 * common.opt (export-dynamic): New Driver option.
17358 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
17360 2011-02-17 Joseph Myers <joseph@codesourcery.com>
17362 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
17364 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
17365 Jan Hubicka <jh@suse.cz>
17369 * cfgexpand.c (account_used_vars_for_block): Remove.
17370 (estimated_stack_frame_size): Use referenced vars.
17371 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
17372 that were referenced in the original function. Test src_fn
17373 rather than cfun. Drop redundant get_var_ann.
17374 (setup_one_parameter): Drop redundant get_var_ann.
17375 (declare_return_variable): Likewise.
17376 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
17377 (copy_arguments_for_versioning): Drop redundant get_var_ann.
17378 * ipa-inline.c (compute_inline_parameters): Do not compute
17379 disregard_inline_limits here.
17380 (compute_inlinable_for_current, pass_inlinable): New.
17381 (pass_inline_parameters): Require PROP_referenced_vars.
17382 * cgraphunit.c (cgraph_process_new_functions): Don't run
17383 compute_inline_parameters explicitly unless function is in SSA form.
17384 (cgraph_analyze_function): Set .disregard_inline_limits.
17385 * tree-sra.c (convert_callers): Compute inliner parameters
17386 only for functions already in SSA form.
17388 2011-02-17 Joseph Myers <joseph@codesourcery.com>
17390 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
17391 -mlittle-endian-data.
17393 2011-02-17 Joseph Myers <joseph@codesourcery.com>
17395 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
17396 -mno-fpu, not -fpu and -no-fpu.
17397 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
17398 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
17400 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
17403 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
17404 input reload with PLUS RTX.
17406 2011-02-16 Joseph Myers <joseph@codesourcery.com>
17408 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
17409 of InverseVar(MDMX).
17411 2011-02-16 Joseph Myers <joseph@codesourcery.com>
17413 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
17416 2011-02-16 Joseph Myers <joseph@codesourcery.com>
17418 * config/mn10300/mn10300.opt (mno-crt0): New.
17420 2011-02-16 Joseph Myers <joseph@codesourcery.com>
17422 * config/m68k/uclinux.opt (static-libc): New Driver option.
17424 2011-02-16 Joseph Myers <joseph@codesourcery.com>
17426 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
17428 2011-02-16 Joseph Myers <joseph@codesourcery.com>
17430 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
17431 %{muser-extend-enabled}.
17433 2011-02-16 Richard Guenther <rguenther@suse.de>
17435 PR tree-optimization/47738
17436 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
17437 the TODO from tree_predictive_commoning.
17439 2011-02-15 Jeff Law <law@redhat.com>
17442 2011-01-25 Jeff Law <law@redhat.com>
17444 PR rtl-optimization/37273
17445 * ira-costs.c (scan_one_insn): Detect constants living in memory and
17446 handle them like argument loads from stack slots. Do not double
17447 count memory for memory constants and argument loads from stack slots.
17449 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
17451 PR middle-end/47725
17452 * combine.c (cant_combine_insn_p): Revert the last change.
17454 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
17457 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
17458 mode for vector constants. Remove code that checks for TImode.
17460 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
17464 * cgraph.h (compute_inline_parameters): Return void.
17465 * ipa-inline.c (compute_inline_parameters): Adjust.
17467 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
17471 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
17473 * cfgexpand.c (estimated_stack_frame_size): Likewise.
17474 * ipa-inline.c (compute_inline_parameters): Adjust.
17476 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
17480 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
17481 Adjust all users. Pass FN to...
17482 * tree-flow-inline.h (first_referenced_var): ... this. Add
17484 * ipa-struct-reorg.c: Adjust.
17485 * tree-dfa.c: Adjust.
17486 * tree-into-ssa.c: Adjust.
17487 * tree-sra.c: Adjust.
17488 * tree-ssa-alias.c: Adjust.
17489 * tree-ssa-live.c: Adjust.
17490 * tree-ssa.c: Adjust.
17491 * tree-ssanames.c: Adjust.
17492 * tree-tailcall.c: Adjust.
17494 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
17498 * tree-flow.h (referenced_var_lookup): Add fn parameter.
17499 Adjust all callers.
17500 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
17501 * tree-flow-inline.h: Adjust.
17502 * gimple-pretty-print.c: Adjust.
17503 * tree-into-ssa.c: Adjust.
17504 * tree-ssa.c: Adjust.
17505 * cfgexpand.c: Adjust.
17507 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
17509 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
17510 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17511 (EXTRA_CONSTRAINT): Delete.
17512 * config/iq2000/constraints.md: New file.
17513 * config/iq2000/iq2000.md: Include it.
17514 (define_insn ""): Delete.
17515 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
17516 unsupported constraint letters from patterns.
17517 (call_value, call_value_internal1): Likewise.
17518 (call_value_multiple_internal1): Likewise.
17520 2011-02-15 Nick Clifton <nickc@redhat.com>
17522 * config/mn10300/mn10300.c: Include tm-constrs.h.
17523 (struct liw_data): New data structure describing an LIW candidate
17525 (extract_bundle): Use struct liw_data. Allow small integer
17526 operands for some instructions.
17527 (check_liw_constraints): Use struct liw_data. Remove swapped
17528 parameter. Add comments describing the checks. Fix bug when
17529 assigning the source of liw1 to the source of liw2.
17530 (liw_candidate): Delete. Code moved into extract_bundle.
17531 (mn10300_bundle_liw): Use struct liw_data. Check constraints
17533 * config/mn10300/predicates.md (liw_operand): New predicate.
17534 Allows registers and small integer constants.
17535 * config/mn10300/constraints.md (O): New constraint. Accetps
17536 integers in the range -8 to +7 inclusive.
17537 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
17538 for moving a small integer into a register. Give this alternative
17540 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
17541 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
17542 using the J,K,L and M constraints,
17543 (liw): Remove SI mode on second operands to allow for HI and QI
17545 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
17548 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
17550 PR middle-end/47725
17551 * combine.c (cant_combine_insn_p): Check zero/sign extended
17554 2011-02-15 Richard Guenther <rguenther@suse.de>
17556 PR tree-optimization/47743
17557 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
17558 for a non-type-compatible VN lookup bail out.
17560 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
17562 * config/fr30/constraints.md: New file.
17563 * config/fr30/fr30.md: Include it.
17564 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
17565 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17566 (EXTRA_CONSTRAINT): Delete.
17568 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
17570 * config/frv/constraints.md: New file.
17571 * config/frv/predicates.md: Include it.
17572 * config/frv/frv.c (reg_class_from_letter): Delete.
17573 (frv_option_override): Don't initialize it.
17574 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
17575 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
17576 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
17577 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
17578 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
17579 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17580 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
17581 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
17582 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
17583 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
17584 (REG_CLASS_FROM_CONSTRAINT): Delete.
17586 2011-02-15 Jakub Jelinek <jakub@redhat.com>
17588 PR middle-end/47581
17589 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
17590 if frame size is 0 in a leaf function.
17592 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17595 * config/alpha/host-osf.c: New file.
17596 * config/alpha/x-osf: New file.
17597 * config.host (alpha*-dec-osf*): Use it.
17599 2011-02-14 Anatoly Sokolov <aesok@post.ru>
17601 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
17602 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
17603 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
17604 (rx_mode_dependent_address_p): ...this. Make static. Change argument
17606 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
17608 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
17610 * config/stormy16/constraints.md: New file.
17611 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
17612 Use satisfies_constraint_Q and satisfies_constraint_R.
17613 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
17615 (xstormy16_legitiamte_address_p): Declare.
17616 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
17617 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17618 (EXTRA_CONSTRAINT): Delete.
17619 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
17621 (xstormy16_extra_constraint_p): Delete.
17623 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
17625 PR tree-optimization/46494
17626 * loop-unroll.c (split_edge_and_insert): Adjust comment.
17627 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
17628 (pass_rtl_loop_done): Add TODO_verify_flow.
17629 * fwprop.c (pass_rtl_fwprop): Likewise.
17630 * modulo-sched.c (pass_sms): Likewise.
17631 * tree-ssa-dom.c (pass_dominator): Likewise.
17632 * tree-ssa-loop-ch.c (pass_ch): Likewise.
17633 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
17634 (pass_tree_loop_done): Likewise.
17635 * tree-ssa-pre.c (execute_pre): Likewise.
17636 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
17637 * tree-ssa-sink.c (pass_sink_code): Likewise.
17638 * tree-vrp.c (pass_vrp): Likewise.
17640 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
17642 * config/v850/constraints.md: New file.
17643 * config/v850/v850.md: Include it.
17644 * config/v850/predicates.md (reg_or_0_operand): Use
17645 satisfies_constraint_G.
17646 (special_symbolref_operand): Use satisfies_constraint_K.
17647 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
17648 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
17649 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
17650 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
17651 (EXTRA_CONSTRAINT): Delete.
17652 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
17653 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
17654 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
17656 2011-02-14 Anatoly Sokolov <aesok@post.ru>
17659 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
17662 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
17664 * config/mcore/constraints.md: New file.
17665 * config/mcore/mcore.md: Include it.
17666 * config/mcore/mcore.c (reg_class_from_letter): Delete.
17667 * config/mcore/mcore.h (reg_class_from_letter): Delete.
17668 (REG_CLASS_FROM_LETTER): Delete.
17669 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
17670 insn_const_int_ok_for_constraint.
17671 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
17672 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
17673 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17674 (EXTRA_CONSTRAINT): Delete.
17676 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17679 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
17680 (IS_SIGHANDLER): Define.
17681 (sparc64_is_sighandler): New function, split off from
17682 sparc64_fallback_frame_state.
17683 (sparc_is_sighandler): New function, split off from
17684 sparc_fallback_frame_state.
17685 (sparc64_fallback_frame_state): Merge with ...
17686 (sparc_fallback_frame_state): ... this into ...
17687 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
17688 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
17689 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
17690 stack instead of hardcoded offsets.
17692 2011-02-14 Andriy Gapon <avg@freebsd.org>
17695 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
17697 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17699 * configure: Regenerate.
17701 2011-02-12 Joseph Myers <joseph@codesourcery.com>
17704 * gcc.c (asm_options): Correct spec matching --target-help.
17706 2011-02-12 Martin Jambor <mjambor@suse.cz>
17708 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
17709 to gimple call error.
17711 2011-02-12 Mike Stump <mikestump@comcast.net>
17713 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
17714 comments in backslash regions.
17716 2011-02-12 Mike Stump <mikestump@comcast.net>
17717 Jakub Jelinek <jakub@redhat.com>
17718 Iain Sandoe <iains@gcc.gnu.org>
17721 * dwarf2out.c (output_cfa_loc): When required, apply the
17722 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
17723 (output_loc_sequence): Likewise.
17724 (output_loc_operands_raw): Likewise.
17725 (output_loc_sequence_raw): Likewise.
17726 (output_cfa_loc): Likewise.
17727 (output_loc_list): Suppress register number adjustment when
17728 calling output_loc_sequence()
17729 (output_die): Likewise.
17731 2011-02-12 Anatoly Sokolov <aesok@post.ru>
17733 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
17735 * config/xtensa/xtensa.c (xtensa_register_move_cost,
17736 xtensa_memory_move_cost): New functions.
17737 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
17739 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
17742 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
17743 in the current directory.
17744 * configure: Rebuilt.
17746 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
17748 * config/darwin.c (darwin_override_options): Add a hunk missed
17749 from the commit of r168571. Trim comment line lengths and
17750 correct indents of the preceding block.
17752 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
17754 * gcc.c (driver_handle_option): Concatenate the argument to -F with
17757 2011-02-11 Joseph Myers <joseph@codesourcery.com>
17759 * common.opt (nostartfiles): New Driver option.
17761 2011-02-11 Xinliang David Li <davidxl@google.com>
17763 PR tree-optimization/47707
17764 * tree-chrec.c (convert_affine_scev): Keep type precision.
17766 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
17768 PR tree-optimization/47420
17769 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
17771 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
17773 PR rtl-optimization/47614
17774 * rtl.h (check_for_inc_dec): Declare.
17775 * dse.c (check_for_inc_dec): Externalize...
17776 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
17777 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
17779 2011-02-11 Joseph Myers <joseph@codesourcery.com>
17782 * gcc.c (main): Do not compile inputs if there were errors in
17784 * opts-common.c (read_cmdline_option): Check for wrong language
17785 after other error checks.
17787 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
17789 * cgraph.c: Fix comment typos.
17790 * cgraph.h: Likewise.
17791 * cgraphunit.c: Likewise.
17792 * ipa-cp.c: Likewise.
17793 * ipa-inline.c: Likewise.
17794 * ipa-prop.c: Likewise.
17795 * ipa-pure-const.c: Likewise.
17796 * ipa-ref.c: Likewise.
17797 * ipa-reference.c: Likewise.
17799 2011-02-11 Jakub Jelinek <jakub@redhat.com>
17802 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
17804 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17807 * doc/sourcebuild.texi (Require Support): Document
17808 dg-require-ascii-locale.
17810 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
17812 * doc/lto.texi (Write summary): Fix missing parentheses.
17814 2011-02-10 DJ Delorie <dj@redhat.com>
17816 * config/m32c/m32c.c (m32c_option_override): Disable
17817 -fcombine-stack-adjustments until flag value tracking and compare
17818 optimization can be rewritten.
17820 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
17822 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
17824 (PROCESSOR_DEFAULT64): Likewise.
17826 2011-02-10 Richard Henderson <rth@redhat.com>
17828 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
17829 change from 2011-02-03.
17830 * config/rx/rx.c (flags_from_code): Likewise.
17831 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
17832 is valid, n/pz otherwise.
17833 (rx_select_cc_mode): Return CCmode if Y is not zero.
17835 2011-02-10 Richard Guenther <rguenther@suse.de>
17837 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
17839 2011-02-10 Richard Guenther <rguenther@suse.de>
17841 PR tree-optimization/47677
17842 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
17844 2011-02-10 Jakub Jelinek <jakub@redhat.com>
17847 * combine.c (make_compound_operation): Only change shifts into
17848 multiplication for SCALAR_INT_MODE_P.
17850 2011-02-10 Jie Zhang <jie@codesourcery.com>
17854 2011-02-05 Jie Zhang <jie@codesourcery.com>
17856 * web.c (entry_register): Don't clobber the number of the
17857 first uninitialized reference in used[].
17859 2011-02-09 Richard Guenther <rguenther@suse.de>
17861 PR tree-optimization/47664
17862 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
17865 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
17869 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
17871 (PROCESSOR_DEFAULT64): Same.
17872 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
17874 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17876 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
17878 2011-02-09 Martin Jambor <mjambor@suse.cz>
17880 PR middle-end/45505
17881 * tree-sra.c (struct access): New flags grp_scalar_read and
17882 grp_scalar_write. Changed description of assignment read and write
17884 (dump_access): Dump new flags, reorder all of them.
17885 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
17886 to detect multiple scalar reads.
17887 (analyze_access_subtree): Use the new scalar read write flags instead
17888 of the old flags. Adjusted comments.
17890 2011-02-08 DJ Delorie <dj@redhat.com>
17893 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
17896 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17898 * config/m68k/uclinux.opt: New.
17899 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
17901 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17903 * config/cris/elf.opt (sim): New Driver option.
17905 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17907 * config/xtensa/elf.opt: New.
17908 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
17910 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17912 * config/vax/elf.opt: New.
17913 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
17915 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17917 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
17919 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17921 * config/gnu-user.opt: New.
17922 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
17923 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
17924 *-*-uclinux*): Use gnu-user.opt.
17926 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
17928 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
17929 * config/i386/gnu.h (CPP_SPEC): Likewise.
17931 2011-02-08 Ian Lance Taylor <iant@google.com>
17933 * common.opt (fcx-limited-range): Add SetByCombined flag.
17934 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
17935 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
17936 (fassociative-math, freciprocal-math): Likewise.
17937 (funsafe-math-optimizations): Likewise.
17938 * opth-gen.awk: Handle SetByCombined.
17939 * optc-gen.awk: Likewise.
17940 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
17941 (set_unsafe_math_optimizations_flags): Likewise.
17942 * doc/options.texi (Option properties): Document SetByCombined.
17944 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17946 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
17947 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
17948 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
17949 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
17950 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
17952 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
17954 PR tree-optimization/46834
17955 PR tree-optimization/46994
17956 PR tree-optimization/46995
17957 * graphite-sese-to-poly.c (used_outside_reduction): New.
17958 (detect_commutative_reduction): Call used_outside_reduction.
17959 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
17960 translate_scalar_reduction_to_array only when at least one
17961 loop-phi/close-phi tuple has been detected.
17963 2011-02-08 Richard Guenther <rguenther@suse.de>
17965 PR middle-end/47639
17966 * tree-vect-generic.c (expand_vector_operations_1): Update
17968 (expand_vector_operations): ... not here. Cleanup EH info
17969 and the CFG if required.
17971 2011-02-08 Richard Guenther <rguenther@suse.de>
17973 PR tree-optimization/47641
17974 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
17975 require type compatibility.
17977 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17979 * gimple-low.c (lower_function_body): Don't remove the location of
17980 the return statement here.
17981 (lower_gimple_return): Do it here instead but only if the return
17982 statement is actually used twice.
17984 2011-02-08 Richard Guenther <rguenther@suse.de>
17986 PR tree-optimization/47632
17987 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
17988 unused up_to_stmt parameter, return whether cfg-cleanup is
17989 necessary, remove EH info properly.
17990 (forward_propagate_into_gimple_cond): Adjust caller.
17991 (forward_propagate_into_cond): Likewise.
17992 (forward_propagate_comparison): Likewise.
17993 (tree_ssa_forward_propagate_single_use_vars): Make
17994 forward_propagate_comparison case similar to the two others.
17996 2011-02-08 Nick Clifton <nickc@redhat.com>
17998 * config/mn10300/mn10300.opt (mliw): New command line option.
17999 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
18000 (liw_bundling): New automaton.
18001 (liw): New attribute.
18002 (liw_op): New attribute.
18003 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
18004 (movsi_internal): Add LIW attributes.
18005 (andsi3): Likewise.
18006 (iorsi3): Likewise.
18007 (xorsi3): Likewise.
18008 (addsi3): Separate register and immediate alternatives.
18009 Add LIW attributes.
18010 (subsi3): Likewise.
18012 (aslsi3): Likewise.
18013 (lshrsi3): Likewise.
18014 (ashrsi3): Likewise.
18015 (liw): New pattern.
18016 * config/mn10300/mn10300.c (liw_op_names): New
18017 (mn10300_print_operand): Handle 'W' operand descriptor.
18018 (extract_bundle): New function.
18019 (check_liw_constraints): New function.
18020 (liw_candidate): New function.
18021 (mn10300_bundle_liw): New function.
18022 (mn10300_reorg): New function.
18023 (TARGET_MACHINE_DEPENDENT_REORG): Define.
18024 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
18025 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
18026 __LIW__ or __NO_LIW__.
18027 * doc/invoke.texi: Describe the -mliw command line option.
18029 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18031 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
18032 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
18033 pthread_mutex_unlock): Remove.
18034 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
18035 * config/pa/t-pa64: Likewise.
18036 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
18037 shared libc if not linking against libpthread.
18038 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
18040 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
18043 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
18044 on 10.6 and later to ensure that we always use the unwinder from
18045 the system. Only add -no_compact_unwind when tarteting darwin
18048 2011-02-07 Steve Ellcey <sje@cup.hp.com>
18051 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
18052 (vec_interleave_lowv2sf): Ditto.
18053 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
18054 (vec_extract_oddv2sf): Ditto.
18056 2011-02-07 Mike Stump <mikestump@comcast.net>
18059 Add __ieee_divdc3 entry point.
18060 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
18062 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
18063 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
18064 * config/darwin.c (darwin_rename_builtins): Add.
18065 * config/darwin-protos.h (darwin_rename_builtins): Add.
18067 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
18070 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
18073 2011-02-07 Mike Stump <mikestump@comcast.net>
18075 * config/darwin.opt (mmacosx-version-min): Update default OS version.
18077 2011-02-07 Denis Chertykov <chertykov@gmail.com>
18080 * config/avr/libgcc.S (exit): Move .endfunc
18082 2011-02-07 Richard Guenther <rguenther@suse.de>
18084 PR tree-optimization/47615
18085 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
18086 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
18087 (run_scc_vn): Initialize it.
18088 (visit_reference_op_load): Use it.
18089 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
18091 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18093 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
18094 DImode trapping arithmetic libfuncs.
18096 2011-02-07 Richard Guenther <rguenther@suse.de>
18098 PR tree-optimization/47621
18099 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
18101 (execute_update_addresses_taken): ... here. Make it more
18102 conservative in what we accept.
18104 2011-02-06 Joseph Myers <joseph@codesourcery.com>
18106 * config/sparc/freebsd.h (ASM_SPEC): Define.
18107 * config/sparc/vxworks.h (ASM_SPEC): Define.
18109 2011-02-06 Joseph Myers <joseph@codesourcery.com>
18111 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
18113 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
18115 * doc/invoke.texi: Remove reference to compiler internals from
18116 user documentation.
18118 * reg-notes.def: Remove REG_VALUE_PROFILE.
18119 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
18121 2011-02-05 Jakub Jelinek <jakub@redhat.com>
18123 PR middle-end/47610
18124 * varasm.c (default_section_type_flags): If decl is NULL,
18125 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
18127 2011-02-05 Jie Zhang <jie@codesourcery.com>
18130 * web.c (entry_register): Don't clobber the number of the
18131 first uninitialized reference in used[].
18133 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
18135 PR tree-optimization/46194
18136 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
18137 (build_classic_dist_vector_1): Do not represent classic distance
18138 vectors when the access functions are variating in different loops.
18140 2011-02-04 Joseph Myers <joseph@codesourcery.com>
18142 * config/mips/iris6.opt: New.
18143 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
18145 2011-02-04 Richard Henderson <rth@redhat.com>
18146 Steve Ellcey <sje@cup.hp.com>
18149 * config/ia64/predicates.md (mux1_brcst_element): New.
18150 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
18151 * config/ia64/ia64.c (ia64_unpack_assemble): New.
18152 (ia64_unpack_sign): New.
18153 (ia64_expand_unpack): Rewrite using new routines.
18154 (ia64_expand_widen_sum): Ditto.
18155 (ia64_expand_dot_prod_v8qi): Ditto.
18156 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
18157 routines, add endian check.
18158 (pmpy2_even): Rename from pmpy2_r, add endian check.
18159 (pmpy2_odd): Rename from pmpy2_l, add endian check.
18160 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
18161 (vec_widen_smult_hi_v4hi): Ditto.
18162 (vec_widen_umult_lo_v4hi): Ditto.
18163 (vec_widen_umult_hi_v4hi): Ditto.
18164 (mulv2si3): Change endian checks.
18165 (sdot_prodv4hi): Rewrite with new calls.
18166 (udot_prodv4hi): New.
18167 (vec_pack_ssat_v4hi): Add endian check.
18168 (vec_pack_usat_v4hi): Ditto.
18169 (vec_pack_ssat_v2si): Ditto.
18170 (max1_even): Rename from max1_r, add endian check.
18171 (max1_odd): Rename from max1_l, add endian check.
18172 (*mux1_rev): Format change.
18173 (*mux1_mix): Ditto.
18174 (*mux1_shuf): Ditto.
18175 (*mux1_alt): Ditto.
18176 (*mux1_brcst_v8qi): Use new predicate.
18177 (vec_extract_evenv8qi): Remove endian check.
18178 (vec_extract_oddv8qi): Ditto.
18179 (vec_interleave_lowv4hi): Format change.
18180 (vec_interleave_highv4hi): Ditto.
18181 (mix2_even): Rename from mix2_r, add endian check.
18182 (mix2_odd): Rename from mux2_l, add endian check.
18183 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
18184 (vec_extract_evenodd_helper): Format change.
18185 (vec_extract_evenv4hi): Remove endian check.
18186 (vec_extract_oddv4hi): Remove endian check.
18187 (vec_interleave_lowv2si): Format change.
18188 (vec_interleave_highv2si): Format change.
18189 (vec_initv2si): Remove endian check.
18190 (vecinit_v2si): Add endian check.
18191 (reduc_splus_v2sf): Add endian check.
18192 (reduc_smax_v2sf): Ditto.
18193 (reduc_smin_v2sf): Ditto.
18194 (vec_initv2sf): Remove endian check.
18195 (fpack): Add endian check.
18196 (fswap): Add endian check.
18197 (vec_interleave_highv2sf): Add endian check.
18198 (vec_interleave_lowv2sf): Add endian check.
18199 (fmix_lr): Add endian check.
18200 (vec_setv2sf): Format change.
18201 (*vec_extractv2sf_0_be): Use shift to extract operand.
18202 (*vec_extractv2sf_1_be): New.
18203 (vec_pack_trunc_v4hi): Add endian check.
18204 (vec_pack_trunc_v2si): Format change.
18206 2011-02-04 Jakub Jelinek <jakub@redhat.com>
18208 PR inline-asm/23200
18209 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
18210 do bb, locus and block comparison and disallow loads if it is not set.
18211 (stmt_is_replaceable_p): New function.
18212 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
18214 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
18215 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
18217 * tree-flow.h (stmt_is_replaceable_p): New prototype.
18219 2011-02-04 Joseph Myers <joseph@codesourcery.com>
18221 * config/rs6000/xilinx.opt: New.
18222 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
18224 2011-02-04 Joseph Myers <joseph@codesourcery.com>
18226 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
18228 2011-02-03 Anatoly Sokolov <aesok@post.ru>
18230 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
18231 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
18232 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
18233 secondary_reload_info, xtensa_secondary_reload): Remove.
18234 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
18235 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
18236 (xtensa_preferred_reload_class): Make static. Change return and
18237 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
18238 Use CONST_DOUBLE_P predicate.
18239 (xtensa_preferred_output_reload_class): New function.
18240 (xtensa_secondary_reload): Make static.
18242 2011-02-03 Joseph Myers <joseph@codesourcery.com>
18244 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
18245 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
18246 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
18248 2011-02-03 Jakub Jelinek <jakub@redhat.com>
18250 PR middle-end/31490
18251 * output.h (SECTION_RELRO): Define.
18252 (SECTION_MACH_DEP): Adjust.
18253 (get_variable_section): New prototype.
18254 * varpool.c (varpool_finalize_named_section_flags): New function.
18255 (varpool_assemble_pending_decls): Call it.
18256 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
18257 * cgraphunit.c (cgraph_output_in_order): Call
18258 varpool_finalize_named_section_flags.
18259 * varasm.c (get_section): Allow section flags conflicts between
18260 relro and read-only sections if the section hasn't been declared yet.
18261 Set SECTION_OVERRIDE after diagnosing section type conflict.
18262 (get_variable_section): No longer static.
18263 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
18264 readonly sections that need relocations.
18265 (decl_readonly_section_1): New function.
18266 (decl_readonly_section): Use it.
18269 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
18270 Steve Ellcey <sje@cup.hp.com>
18272 PR middle-end/31490
18273 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
18274 if section attribute used.
18276 2011-02-03 Jakub Jelinek <jakub@redhat.com>
18278 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
18279 * config/darwin.c (SECTION_NO_ANCHOR): Define.
18280 (darwin_init_sections): Remove assertion.
18282 2011-02-03 Nick Clifton <nickc@redhat.com>
18284 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
18286 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
18287 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
18288 instead of "n" and "pz".
18289 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
18292 2011-02-03 Jakub Jelinek <jakub@redhat.com>
18295 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
18296 fma, expand FMA_EXPR as fma{,f,l} call.
18299 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
18300 copy them into a unsigned char variable and pass address of it to
18301 lto_output_data_stream.
18304 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
18305 around backend_init_target and lang_dependent_init_target calls.
18306 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
18307 (verify_cgraph_node): Don't call set_cfun here. Use
18308 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
18309 Set error_found for incorrectly represented calls to thunks.
18311 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
18314 PR rtl-optimization/43494
18315 * rtl.h (for_each_inc_dec_fn): New type.
18316 (for_each_inc_dec): Declare.
18317 * rtlanal.c (struct for_each_inc_dec_ops): New type.
18318 (for_each_inc_dec_find_inc_dec): New fn.
18319 (for_each_inc_dec_find_mem): New fn.
18320 (for_each_inc_dec): New fn.
18321 * dse.c (struct insn_size): Remove.
18322 (replace_inc_dec, replace_inc_dec_mem): Remove.
18323 (emit_inc_dec_insn_before): New fn.
18324 (check_for_inc_dec): Use it, along with for_each_inc_dec.
18325 (canon_address): Pass mem modes to cselib_lookup.
18326 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
18327 (cselib_lookup_from_insn): Likewise.
18328 (cselib_subst_to_values): Likewise.
18329 * cselib.c (find_slot_memmode): New var.
18330 (cselib_find_slot): New fn. Use it instead of
18331 htab_find_slot_with_hash everywhere.
18332 (entry_and_rtx_equal_p): Use find_slot_memmode.
18333 (autoinc_split): New fn.
18334 (rtx_equal_for_cselib_p): Rename and implement in terms of...
18335 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
18336 Deal with autoinc. Special-case recursion into MEMs.
18337 (cselib_hash_rtx): Likewise.
18338 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
18339 address and MEM modes.
18340 (cselib_subst_to_values): Add memmode, pass it on.
18342 (cselib_lookup): Add memmode argument, pass it on.
18343 (cselib_lookup_from_insn): Add memmode.
18344 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
18345 (struct cselib_record_autoinc_data): New.
18346 (cselib_record_autoinc_cb): New fn.
18347 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
18348 mode to cselib_lookup. Reset autoinced REGs here instead of...
18349 (cselib_process_insn): ... here.
18350 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
18352 (add_uses): Likewise, also to cselib_subst_to_values.
18353 (add_stores): Likewise.
18354 * sched-deps.c (add_insn_mem_dependence): Pass mode to
18355 cselib_subst_to_values.
18356 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
18357 * gcse.c (do_local_cprop): Adjusted.
18358 * postreload.c (reload_cse_simplify_set): Adjusted.
18359 (reload_cse_simplify_operands): Adjusted.
18360 * sel-sched-dump (debug_mem_addr_value): Pass mode.
18362 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
18364 PR tree-optimization/45122
18365 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
18366 unsafe assumptions when there's more than one loop exit.
18368 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
18371 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
18372 Document using vector double with the load/store builtins, and
18373 that the load/store builtins always use Altivec instructions.
18375 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
18376 to use altivec memory instructions, even on VSX.
18377 (vector_altivec_store_<mode>): Ditto.
18379 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
18382 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18383 V2DF, V2DI support to load/store overloaded builtins.
18385 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
18386 altivec load/store builtins for V2DF/V2DI types.
18388 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
18389 set avoid indexed addresses on power6 if -maltivec.
18390 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
18391 vector_altivec_load/vector_altivec_store builtins.
18392 (altivec_expand_st_builtin): Ditto.
18393 (altivec_expand_builtin): Add VSX memory builtins.
18394 (rs6000_init_builtins): Add V2DI types to internal types.
18395 (altivec_init_builtins): Add support for V2DF/V2DI altivec
18396 load/store builtins.
18397 (rs6000_address_for_altivec): Insure memory address is appropriate
18400 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
18401 vec_vsx_ld and vec_vsx_st.
18402 (vsx_store_<mode>): Ditto.
18404 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
18405 variables to hold long long types for VSX vector memory builtins.
18406 (RS6000_BTI_unsigned_long_long): Ditto.
18407 (long_long_integer_type_internal_node): Ditti.
18408 (long_long_unsigned_type_internal_node): Ditti.
18410 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
18411 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
18412 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
18414 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
18416 (vec_vsx_st): Ditto.
18418 2011-02-02 Joseph Myers <joseph@codesourcery.com>
18420 * config/pa/pa-hpux10.opt: New.
18421 * config/hpux11.opt (pthread): New Driver option.
18422 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
18423 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
18425 2011-02-02 Joseph Myers <joseph@codesourcery.com>
18427 * config/ia64/vms.opt: New.
18428 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
18430 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
18433 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
18434 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
18435 generator functions.
18436 (vsx_floatuns<VSi><mode>2): Ditto.
18437 (vsx_fix_trunc<mode><VSi>2): Ditto.
18438 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
18440 2011-02-02 Joseph Myers <joseph@codesourcery.com>
18442 * config/i386/djgpp.opt (posix): New Driver option.
18444 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
18446 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
18447 Move to the unsupported targets list.
18449 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
18451 PR rtl-optimization/47525
18452 * df-scan.c: Update copyright years.
18453 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
18454 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
18456 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18458 * config/i386/sysv4.h (TARGET_VERSION): Remove.
18459 (SUBTARGET_RETURN_IN_MEMORY): Remove.
18460 (ASM_OUTPUT_ASCII): Remove.
18461 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
18463 2011-02-02 Jeff Law <law@redhat.com>
18465 PR middle-end/47543
18466 * reload.c (find_reloads_address): Handle reg+d address where both
18467 components are invalid by reloading the entire address.
18469 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
18470 Richard Guenther <rguenther@suse.de>
18472 PR tree-optimization/40979
18474 * passes.c (init_optimization_passes): After LIM call copy_prop
18475 and DCE to clean up.
18476 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
18478 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
18480 PR tree-optimization/47576
18481 PR tree-optimization/47555
18482 * doc/invoke.texi (scev-max-expr-complexity): Documented.
18483 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
18484 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
18485 * tree-scalar-evolution.c (follow_ssa_edge): Use
18486 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
18488 2011-02-02 Richard Guenther <rguenther@suse.de>
18490 PR tree-optimization/47566
18491 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
18493 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
18497 * tree-inline.c (declare_return_variable): Remove unused caller
18502 * tree-flow-inline.h (clear_is_used, is_used_p): New.
18503 * cfgexpand.c (account_used_vars_for_block): Use them.
18504 * tree-nrv.c (tree_nrv): Likewise.
18505 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
18506 (dump_scope_block): Likewise.
18507 (remove_unused_locals): Likewise.
18511 * tree-inline.c (declare_return_variable): Add result decl to
18512 local decls only once.
18513 * gimple-low.c (record_vars_into): Mark newly-created variables
18516 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
18522 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
18524 (no_real_insns_p, schedule_block, set_priorities): Drop special
18525 treatment of boundary debug insns.
18526 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
18527 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
18528 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
18529 (BOUNDARY_DEBUG_INSN_P): Likewise.
18530 (SCHEDULE_DEBUG_INSN_P): Likewise.
18531 * sched-rgn.c (init_ready_list): Drop special treatment of
18532 boundary debug insns.
18533 * final.c (rest_of_clean_state): Clear notes' BB.
18535 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18537 * config/openbsd.opt (assert=): New Driver option.
18539 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18541 * config/i386/nto.opt: New.
18542 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
18544 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18546 * config/i386/netware.opt: New.
18547 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
18549 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18551 * config/interix.opt (posix): New Driver option.
18553 2011-02-01 DJ Delorie <dj@redhat.com>
18555 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
18557 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
18560 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
18562 PR tree-optimization/47561
18563 * toplev.c (process_options): Print the Graphite flags. Add
18564 flag_loop_flatten to the list of options requiring Graphite.
18566 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18568 * config/i386/cygming.opt (posix): New Driver option.
18570 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18572 * config/arm/vxworks.opt: New.
18573 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
18575 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18577 * config/alpha/elf.opt: New.
18578 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
18579 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
18581 2011-02-01 Richard Guenther <rguenther@suse.de>
18583 PR tree-optimization/47559
18584 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
18585 store-motion on references that can throw.
18587 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
18589 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
18590 * tree-pass.h (TDF_CSELIB): New macro.
18591 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
18592 cselib_lookup): Check for it rather than for TDF_DETAILS.
18594 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
18597 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
18598 is HOST_BIT_BUCKET.
18600 * opts.c (finish_options): Don't add x_aux_base_name if it is
18603 2011-02-01 Richard Guenther <rguenther@suse.de>
18605 PR tree-optimization/47555
18607 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
18609 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
18611 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
18614 * config/lm32/t-lm32: Add multilib for all CPU options.
18616 2011-02-01 Richard Guenther <rguenther@suse.de>
18618 PR tree-optimization/47541
18619 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
18620 sure to have a field at offset zero.
18622 2011-01-31 Joseph Myers <joseph@codesourcery.com>
18624 * config/arc/arc.opt (EB, EL): New Driver options.
18626 2011-01-31 Joseph Myers <joseph@codesourcery.com>
18628 * config/alpha/osf5.opt: New.
18629 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
18631 2011-01-31 Joseph Myers <joseph@codesourcery.com>
18633 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
18635 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
18637 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
18638 -floop-interchange.
18639 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
18640 is an alias of -floop-interchange and that it requires the
18641 Graphite infrastructure.
18642 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
18643 flag_loop_interchange based on the value of flag_tree_loop_linear.
18645 2011-01-31 Jakub Jelinek <jakub@redhat.com>
18646 Richard Guenther <rguenther@suse.de>
18648 PR tree-optimization/47538
18649 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
18650 type instead of r1type, except for comparisons. For right
18651 shifts and comparisons punt if there are mismatches in
18652 sizetype vs. non-sizetype types.
18654 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18656 * doc/sourcebuild.texi (Effective-Target Keywords): Document
18659 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18661 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
18663 * configure: Regenerate.
18665 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18667 * configure.ac (gcc_cv_ld_static_option): Define.
18668 (gcc_cv_ld_dynamic_option): Define.
18669 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
18671 (HAVE_LD_STATIC_DYNAMIC): Update message.
18672 (LD_STATIC_OPTION): Define.
18673 (LD_DYNAMIC_OPTION): Define.
18674 * configure: Regenerate.
18675 * config.in: Regenerate.
18676 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
18677 HAVE_LD_STATIC_DYNAMIC]: Use them.
18679 2011-01-31 Nick Clifton <nickc@redhat.com>
18681 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
18682 registers inside interrupt handlers if the handler is not a leaf
18685 2011-01-31 Nick Clifton <nickc@redhat.com>
18687 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
18688 reg_renumber returning an INVALID_REGNUM.
18690 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
18693 * doc/install.texi: Document host options discarded when cross
18694 configuring target libraries.
18696 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
18699 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
18702 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
18704 (no_real_insns_p, schedule_block, set_priorities): Drop special
18705 treatment of boundary debug insns.
18706 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
18707 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
18708 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
18709 (BOUNDARY_DEBUG_INSN_P): Likewise.
18710 (SCHEDULE_DEBUG_INSN_P): Likewise.
18711 * sched-rgn.c (init_ready_list): Drop special treatment of
18712 boundary debug insns.
18713 * final.c (rest_of_clean-state): Clear notes' BB.
18715 2011-01-31 Alan Modra <amodra@gmail.com>
18717 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
18718 toc relative expressions as we do in print_operand_address.
18720 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
18722 * doc/extend.texi: Follow spelling conventions.
18723 * doc/invoke.texi: Fix a typo.
18725 2011-01-30 Joseph Myers <joseph@codesourcery.com>
18727 * config/hpux11.opt: New.
18728 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
18729 ia64*-*-hpux*): Use hpux11.opt.
18731 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
18733 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
18736 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
18738 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
18741 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
18743 * doc/install.texi (Binaries): Remove outdated reference for
18744 Motorola 68HC11/68HC12 downloads.
18746 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
18748 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
18751 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
18754 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
18757 2011-01-28 Ahmad Sharif <asharif@google.com>
18759 * value-prof.c (check_counter): Corrected error message.
18761 2011-01-29 Jie Zhang <jie@codesourcery.com>
18763 * config/arm/arm.c (arm_legitimize_reload_address): New.
18764 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
18765 arm_legitimize_reload_address.
18766 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
18768 2011-01-28 Ian Lance Taylor <iant@google.com>
18770 * godump.c (go_define): Ignore macros whose definitions include
18771 two adjacent operands.
18773 2011-01-28 Jakub Jelinek <jakub@redhat.com>
18776 * varasm.c (force_const_mem): Store copy of x in desc->constant
18777 instead of x itself.
18778 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
18779 itself into REG_EQUAL note.
18781 2011-01-28 Joseph Myers <joseph@codesourcery.com>
18783 * config/freebsd.opt (posix, rdynamic): New Driver options.
18785 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18787 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
18788 -Bstatic/-Bdynamic.
18789 * configure: Regenerate.
18791 2011-01-27 Joseph Myers <joseph@codesourcery.com>
18793 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
18794 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
18796 2011-01-27 Anatoly Sokolov <aesok@post.ru>
18798 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
18799 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
18800 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
18801 (s390_preferred_reload_class): Make static. Change return and
18802 'rclass' argument type to reg_class_t.
18804 2011-01-27 Jan Hubicka <jh@suse.cz>
18806 PR middle-end/46949
18807 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
18808 (process_function_and_variable_attributes): Check defined weakrefs.
18810 2011-01-27 Martin Jambor <mjambor@suse.cz>
18812 PR tree-optimization/47228
18813 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
18814 build_ref_for_offset.
18816 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18818 * config/spu/spu-elf.h (ASM_SPEC): Remove.
18820 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
18822 PR rtl-optimization/46856
18823 * postreload.c (reload_combine_recognize_const_pattern): Do not
18824 separate cc0 setter and user on cc0 targets.
18826 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
18829 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
18830 passed a VOID_TYPE expression, immediately emit an error and
18831 return error_mark_node.
18833 2011-01-26 Jeff Law <law@redhat.com>
18835 PR rtl-optimization/47464
18836 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
18837 rather than may_trap_p as needed.
18839 2011-01-26 DJ Delorie <dj@redhat.com>
18841 PR rtl-optimization/46878
18842 * combine.c (insn_a_feeds_b): Check for the implicit cc0
18843 setter/user dependency as well.
18845 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
18847 PR rtl-optimization/44469
18848 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
18849 after removing trivially dead basic blocks.
18851 2011-01-26 Joseph Myers <joseph@codesourcery.com>
18853 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
18854 * config/frv/frv.h (LINK_SPEC): Likewise.
18855 * config/i386/netware.h (LINK_SPEC): Likewise.
18856 * config/m68k/linux.h (ASM_SPEC): Likewise.
18857 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
18858 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
18859 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
18860 * config/sparc/linux.h (ASM_SPEC): Likewise.
18861 * config/sparc/linux64.h (ASM_SPEC): Likewise.
18862 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
18864 2011-01-26 Joseph Myers <joseph@codesourcery.com>
18866 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
18867 * config/frv/frv.h (ASM_SPEC): Likewise.
18868 * config/m68k/linux.h (ASM_SPEC): Likewise.
18869 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
18870 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
18871 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
18872 * config/sparc/linux.h (ASM_SPEC): Likewise.
18873 * config/sparc/linux64.h (ASM_SPEC): Likewise.
18874 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
18876 2011-01-26 Joseph Myers <joseph@codesourcery.com>
18878 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
18879 * config/frv/frv.h (LINK_SPEC): Likewise.
18880 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
18882 2011-01-26 Joseph Myers <joseph@codesourcery.com>
18884 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
18885 * config/frv/frv.h (ASM_SPEC): Likewise.
18886 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
18887 * config/m68k/linux.h (ASM_SPEC): Likewise.
18888 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
18889 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
18890 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
18891 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
18892 * config/sparc/linux.h (ASM_SPEC): Likewise.
18893 * config/sparc/linux64.h (ASM_SPEC): Likewise.
18894 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
18895 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
18897 2011-01-26 Steve Ellcey <sje@cup.hp.com>
18900 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
18902 (vec_extract_evenodd_help): Ditto.
18903 (vec_extract_evenv4hi): Ditto.
18904 (vec_extract_oddv4hi): Ditto.
18905 (vec_interleave_lowv2si): Ditto.
18906 (vec_interleave_highv2si): Ditto.
18907 (vec_extract_evenv2si): Ditto.
18908 (vec_extract_oddv2si: Ditto.
18909 (vec_pack_trunc_v2si): Ditto.
18911 2011-01-22 Jan Hubicka <jh@suse.cz>
18914 * cgraph.h (cgraph_local_info): New field can_change_signature.
18915 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
18916 signature can change.
18917 (ipcp_estimate_growth): Call sequence simplify only if calle signature
18919 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
18920 (cgraph_function_versioning): We can not change signature of functions
18921 that don't allow that.
18922 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
18923 (lto_input_node): Likewise.
18924 * ipa-inline.c (compute_inline_parameters): Compute
18925 local.can_change_signature.
18926 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
18927 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
18928 functions that can not change signature.
18929 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
18930 init_cumulative_args): Do not use local calling conventions
18931 for functions that can not change signature.
18933 2011-01-22 Jan Hubicka <jh@suse.cz>
18935 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
18937 2011-01-26 Richard Guenther <rguenther@suse.de>
18939 PR tree-optimization/47190
18940 * cgraphunit.c (process_common_attributes): New function.
18941 (process_function_and_variable_attributes): Use it.
18943 2011-01-26 Richard Guenther <rguenther@suse.de>
18946 * cgraphbuild.c (record_eh_tables): Record reference to personality
18949 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
18952 * sel-sched.c (moveup_expr): Don't let debug insns prevent
18953 non-debug insns from moving up.
18955 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
18958 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
18959 t-dlldir{,-x} fragment for build and add it to tmake_file.
18960 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
18961 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
18962 * config/i386/t-dlldir: New file.
18963 (SHLIB_DLLDIR): Define.
18964 * config/i386/t-dlldir-x: New file.
18965 (SHLIB_DLLDIR): Define.
18966 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
18967 (SHLIB_INSTALL): Use it.
18969 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
18972 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
18973 lower bound of the allowed Thumb-2 coprocessor load/store
18974 index range to -256. Add explaining comment.
18976 2011-01-25 Ian Lance Taylor <iant@google.com>
18978 * godump.c (go_define): Improve lexing of macro expansion to only
18979 accept expressions which match Go spec.
18981 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
18984 * tree.c (handle_dll_attribute): Handle it.
18985 * doc/extend.texi (@item dllexport): Mention it.
18986 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
18988 2011-01-25 Ian Lance Taylor <iant@google.com>
18990 PR tree-optimization/26854
18991 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
18992 (decl_jump_unsafe): Move higher in file, with no other change.
18993 (bind): Set has_jump_unsafe_decl if appropriate.
18994 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
18995 (check_earlier_gotos): Likewise.
18996 (c_check_switch_jump_warnings): Likewise.
18998 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
19000 * doc/invoke.texi (Warning Options): Add missing hyphen.
19001 (-fprofile-dir): Minor grammatical fixes.
19002 (-fbranch-probabilities): Likewise.
19004 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
19008 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
19010 (no_real_insns_p, schedule_block, set_priorities): Drop special
19011 treatment of boundary debug insns.
19012 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
19013 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
19014 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
19015 (BOUNDARY_DEBUG_INSN_P): Likewise.
19016 (SCHEDULE_DEBUG_INSN_P): Likewise.
19017 * sched-rgn.c (init_ready_list): Drop special treatment of
19018 boundary debug insns.
19019 * final.c (rest_of_clean-state): Clear notes' BB.
19021 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19023 * Makefile.in (LAMBDA_H): Removed.
19024 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
19025 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
19026 lambda-trans.o, and tree-loop-linear.o.
19027 (lto-symtab.o): Remove dependence on LAMBDA_H.
19028 (tree-loop-linear.o): Remove rule.
19029 (lambda-mat.o): Same.
19030 (lambda-trans.o): Same.
19031 (lambda-code.o): Same.
19032 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
19033 (tree-vect-slp.o): Same.
19034 * hwint.h (gcd): Moved here.
19035 (least_common_multiple): Same.
19036 * lambda-code.c: Removed.
19037 * lambda-mat.c: Removed.
19038 * lambda-trans.c: Removed.
19039 * lambda.h: Removed.
19040 * tree-loop-linear.c: Removed.
19041 * lto-symtab.c: Do not include lambda.h.
19042 * omega.c (gcd): Removed.
19043 * passes.c (init_optimization_passes): Remove pass_linear_transform.
19044 * tree-data-ref.c (print_lambda_vector): Moved here.
19045 (lambda_vector_copy): Same.
19046 (lambda_matrix_copy): Same.
19047 (lambda_matrix_id): Same.
19048 (lambda_vector_first_nz): Same.
19049 (lambda_matrix_row_add): Same.
19050 (lambda_matrix_row_exchange): Same.
19051 (lambda_vector_mult_const): Same.
19052 (lambda_vector_negate): Same.
19053 (lambda_matrix_row_negate): Same.
19054 (lambda_vector_equal): Same.
19055 (lambda_matrix_right_hermite): Same.
19056 * tree-data-ref.h: Do not include lambda.h.
19057 (lambda_vector): Moved here.
19058 (lambda_matrix): Same.
19059 (dependence_level): Same.
19060 (lambda_transform_legal_p): Removed declaration.
19061 (lambda_collect_parameters): Same.
19062 (lambda_compute_access_matrices): Same.
19063 (lambda_vector_gcd): Same.
19064 (lambda_vector_new): Same.
19065 (lambda_vector_clear): Same.
19066 (lambda_vector_lexico_pos): Same.
19067 (lambda_vector_zerop): Same.
19068 (lambda_matrix_new): Same.
19069 * tree-flow.h (least_common_multiple): Removed declaration.
19070 * tree-parloops.c (lambda_trans_matrix): Moved here.
19071 (LTM_MATRIX): Same.
19072 (LTM_ROWSIZE): Same.
19073 (LTM_COLSIZE): Same.
19074 (LTM_DENOMINATOR): Same.
19075 (lambda_trans_matrix_new): Same.
19076 (lambda_matrix_vector_mult): Same.
19077 (lambda_transform_legal_p): Same.
19078 * tree-pass.h (pass_linear_transform): Removed declaration.
19079 * tree-ssa-loop.c (tree_linear_transform): Removed.
19080 (gate_tree_linear_transform): Removed.
19081 (pass_linear_transform): Removed.
19082 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
19083 flag_loop_interchange.
19085 2011-01-25 Jakub Jelinek <jakub@redhat.com>
19087 PR tree-optimization/47265
19088 PR tree-optimization/47443
19089 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
19090 if name still has some uses.
19092 2011-01-25 Martin Jambor <mjambor@suse.cz>
19094 PR tree-optimization/47382
19095 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
19096 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
19098 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
19100 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
19101 sjlj_except_unwind_info.
19103 2011-01-25 Richard Guenther <rguenther@suse.de>
19105 PR tree-optimization/47426
19106 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
19107 visible functions results escape.
19109 2011-01-25 Jakub Jelinek <jakub@redhat.com>
19112 * config/arm/arm.c (any_sibcall_uses_r3): New function.
19113 (arm_get_frame_offsets): Use it.
19115 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19116 Jakub Jelinek <jakub@redhat.com>
19118 PR tree-optimization/47271
19119 * tree-if-conv.c (bb_postdominates_preds): New.
19120 (if_convertible_bb_p): Call bb_postdominates_preds.
19121 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
19122 (predicate_scalar_phi): Call bb_postdominates_preds.
19124 2011-01-25 Nick Clifton <nickc@redhat.com>
19126 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
19127 * config/rx/rx.c (rx_function_value): Likewise.
19128 (rx_promote_function_mode): Likewise.
19129 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
19130 in order to make it legitimate.
19131 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
19132 make sure that the first operand is the same as the result register.
19133 (addsi3_unspec): Delete.
19134 (subdi3): Do not accept immediate operands.
19135 (subdi3_internal): Likewise.
19137 2011-01-25 Jeff Law <law@redhat.com>
19139 PR rtl-optimization/37273
19140 * ira-costs.c (scan_one_insn): Detect constants living in memory and
19141 handle them like argument loads from stack slots. Do not double
19142 count memory for memory constants and argument loads from stack slots.
19144 2011-01-25 Jakub Jelinek <jakub@redhat.com>
19146 PR tree-optimization/47427
19147 PR tree-optimization/47428
19148 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
19149 coalesce if the new root var would be TREE_READONLY.
19151 2011-01-25 Richard Guenther <rguenther@suse.de>
19153 PR middle-end/47414
19154 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
19155 correct type for TBAA.
19157 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19159 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
19160 (close_phi_written_to_memory): Call for_each_index with
19161 dr_indices_valid_in_loop.
19163 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19165 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
19166 when it is initialized.
19168 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19170 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
19171 call to graphite_find_data_references_in_stmt.
19172 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
19173 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
19174 call to graphite_find_data_references_in_stmt.
19175 (analyze_drs_in_stmts): Same.
19176 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
19177 in which the scalar analysis of indices is performed.
19178 (create_data_ref): Same. Update call to dr_analyze_indices.
19179 (find_data_references_in_stmt): Update call to create_data_ref.
19180 (graphite_find_data_references_in_stmt): Same.
19181 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
19183 (create_data_ref): Same.
19184 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
19185 call to create_data_ref.
19187 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19189 * graphite-sese-to-poly.c (build_poly_scop): Move
19190 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
19192 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19194 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
19195 VAR_DECL, PARM_DECL, and RESULT_DECL.
19197 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19199 * graphite-dependences.c (reduction_dr_1): Allow several reductions
19200 in a reduction PBB.
19201 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
19202 that have already been marked as PBB_IS_REDUCTION.
19204 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19206 * graphite-scop-detection.c (same_close_phi_node): New.
19207 (remove_duplicate_close_phi): New.
19208 (make_close_phi_nodes_unique): New.
19209 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
19211 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19213 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
19214 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
19215 of both data references to be the same.
19217 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19219 * graphite-dependences.c (build_lexicographical_constraint): Remove
19220 the gdim parameter.
19221 (build_lexicographical_constraint): Adjust call to
19222 ppl_powerset_is_empty.
19223 (dependence_polyhedron): Same.
19224 (graphite_legal_transform_dr): Same.
19225 (graphite_carried_dependence_level_k): Same.
19226 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
19228 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
19230 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19232 * graphite-sese-to-poly.c
19233 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
19234 (close_phi_written_to_memory): New.
19235 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
19238 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19240 * doc/install.texi: Update the expected version number of PPL to 0.11.
19241 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
19242 #if PPL_VERSION_MINOR < 11.
19244 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19246 * graphite-dependences.c: Include graphite-cloog-util.h.
19247 (new_poly_ddr): Inlined into dependence_polyhedron.
19248 (free_poly_ddr): Moved close by new_poly_ddr.
19249 (dependence_polyhedron_1): Renamed dependence_polyhedron.
19250 Early return NULL when ppl_powerset_is_empty returns true.
19251 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
19252 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
19253 (graphite_legal_transform_dr): Call new_poly_ddr.
19254 (graphite_carried_dependence_level_k): Same.
19255 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
19256 (dot_transformed_deps_stmt_1): Removed.
19257 (dot_deps_stmt_1): Call dot_deps_stmt_2.
19258 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
19259 (dot_deps_1): Call dot_deps_2.
19260 * Makefile.in (graphite-dependences.o): Add missing dependence on
19261 graphite-cloog-util.h.
19263 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19265 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
19266 (build_lexicographical_constraint): Same.
19267 (dependence_polyhedron_1): Same.
19268 (graphite_legal_transform_dr): Same.
19269 (graphite_carried_dependence_level_k): Same.
19270 * graphite-ppl.c (ppl_powerset_is_empty): New.
19271 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
19272 * tree-data-ref.c (dump_data_reference): Print the basic block index.
19274 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19276 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
19277 the "a followed by b" relation and document it.
19279 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19281 * graphite-dependences.c (build_lexicographical_constraint): Stop the
19282 iteration when the bag of constraints is empty.
19284 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19286 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
19288 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19290 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
19291 nest and two loop depths as parameters.
19292 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
19293 lst_perfect_nestify.
19295 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19297 * graphite-dependences.c (print_pddr): Call
19298 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
19300 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19302 * graphite-ppl.c (debug_gmp_value): New.
19303 * graphite-ppl.h (debug_gmp_value): Declared.
19305 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
19307 * doc/install.texi: Document availability of cloog-0.16.
19309 2011-01-25 Vladimir Kargov <kargov@gmail.com>
19311 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
19312 invalid postdominance info.
19314 2011-01-24 Jan Hubicka <jh@suse.cz>
19317 * doc/extend.texi (weak pragma): Drop claim that it must
19318 appear before definition.
19319 * varasm.c (merge_weak, declare_weak): Only sanity check
19320 that DECL is not output at a time it is declared weak.
19322 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
19324 * machmode.def: Fixed comments.
19326 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
19328 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
19330 2011-01-24 Paul Koning <ni1d@arrl.net>
19332 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
19335 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
19338 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
19339 (block_info): Add scanned and prev.
19340 (move_or_delete_vzeroupper_2): Return if the basic block
19341 has been scanned and the upper 128bit state is unchanged
19342 from the last scan.
19343 (move_or_delete_vzeroupper_1): Return true if the exit
19345 (move_or_delete_vzeroupper): Visit basic blocks using the
19346 work-list based algorithm based on vt_find_locations in
19349 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
19351 2011-01-24 Nick Clifton <nickc@redhat.com>
19353 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
19354 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
19355 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
19356 then define __v850e1__.
19357 * doc/invoke.texi: Document -mv850es.
19359 2011-01-24 Richard Henderson <rth@redhat.com>
19361 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
19362 compound unordered comparisons.
19363 * config/rx/rx.c (rx_split_fp_compare): Remove.
19364 * config/rx/rx-protos.h: Update.
19365 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
19366 (cbranchsf4): Don't call rx_split_fp_compare.
19367 (*cbranchsf4): Use rx_split_cbranch.
19368 (*cmpsf): Don't accept "i" constraint.
19369 (*conditional_branch): Only valid after reload.
19370 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
19372 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
19375 * config/rs6000/altivec.md (vector constant splitters): Add
19376 support for creating vector single precision constants if -mvsx is
19377 used and we would create the constant using Altivec primitives.
19379 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
19380 Richard Sandiford <rdsandiford@googlemail.com>
19382 PR rtl-optimization/47166
19383 * reload1.c (emit_reload_insns): Disable the spill_reg_store
19384 mechanism for PRE_MODIFY and POST_MODIFY.
19385 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
19388 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
19390 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
19392 2011-01-22 Jan Hubicka <jh@suse.cz>
19395 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
19397 2011-01-22 Jan Hubicka <jh@suse.cz>
19399 PR tree-optimization/43884
19401 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
19402 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
19404 2011-01-22 Anatoly Sokolov <aesok@post.ru>
19406 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
19407 * config/s390/s390.c (s390_register_move_cost,
19408 s390_memory_move_cost): New.
19409 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
19411 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19413 PR middle-end/47401
19414 * except.c (sjlj_assign_call_site_values): Move setting the
19415 crtl->uses_eh_lsda flag to ...
19416 (sjlj_mark_call_sites): ... here.
19417 (sjlj_emit_function_enter): Support NULL dispatch label.
19418 (sjlj_build_landing_pads): In a function with no landing pads
19419 that still has must-not-throw regions, generate code to register
19420 a personality function with empty LSDA.
19422 2011-01-21 Richard Henderson <rth@redhat.com>
19424 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
19426 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
19428 * compare-elim.c: New file.
19429 * Makefile.in (OBJS-common): Add it.
19430 (compare-elim.o): New.
19431 * common.opt (fcompare-elim): New.
19432 * opts.c (default_options_table): Add OPT_fcompare_elim.
19433 * tree-pass.h (pass_compare_elim_after_reload): New.
19434 * passes.c (init_optimization_passes): Add it.
19435 * recog.h: Protect against re-inclusion.
19436 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
19437 * doc/invoke.texi (-fcompare-elim): Document it.
19438 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
19439 * doc/tm.texi: Rebuild.
19441 2011-01-22 Nick Clifton <nickc@redhat.com>
19443 * config/rx/rx.md (cstoresf4): Pass comparison operator to
19444 rx_split_fp_compare.
19446 2011-01-22 Nick Clifton <nickc@redhat.com>
19448 * config/rx/rx.md (UNSPEC_CONST): New.
19449 (deallocate_and_return): Wrap the amount popped off the stack in
19450 an UNSPEC_CONST in order to stop it being rejected by
19451 -mmax-constant-size.
19452 (pop_and_return): Add a "(return)" rtx.
19453 (call): Drop the immediate operand.
19454 (call_internal): Likewise.
19455 (call_value): Likewise.
19456 (call_value_internal): Likewise.
19457 (sibcall_internal): Likewise.
19458 (sibcall_value_internal): Likewise.
19459 (sibcall): Likewise. Generate an explicit call using
19461 (sibcall_value): Likewise.
19462 (mov<>): FAIL if a constant operand is not legitimate.
19463 (addsi3_unpsec): New pattern.
19465 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
19466 (ok_for_max_constant): New function.
19467 (gen_safe_add): New function.
19468 (rx_expand_prologue): Use gen_safe_add.
19469 (rx_expand_epilogue): Likewise.
19470 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
19473 2011-01-21 Jeff Law <law@redhat.com>
19475 PR tree-optimization/47053
19476 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
19477 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
19478 statements are deleted.
19479 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
19480 is nonempty, then purge dead edges and cleanup the CFG.
19482 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
19485 Temporarily revert:
19486 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
19488 * tree-dfa.c (create_var_ann): Mark variable as used.
19490 2011-01-21 Jakub Jelinek <jakub@redhat.com>
19492 PR middle-end/45566
19493 * except.c (convert_to_eh_region_ranges): Emit queued no-region
19494 notes from other section in hot/cold partitioning even if
19495 last_action is -3. Increment call_site_base.
19497 PR rtl-optimization/47366
19498 * fwprop.c (forward_propagate_into): Return bool. If
19499 any changes are made, -fnon-call-exceptions is used and
19500 REG_EH_REGION note is present, call purge_dead_edges
19501 and return true if it purged anything.
19502 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
19503 any EH edges were purged.
19505 2011-01-21 Jeff Law <law@redhat.com>
19507 PR rtl-optimization/41619
19508 * caller-save.c (setup_save_areas): Break out code to determine
19509 which hard regs are live across calls by examining the reload chains
19510 so that it is always used.
19511 Eliminate code which checked REG_N_CALLS_CROSSED.
19513 2011-01-21 Jakub Jelinek <jakub@redhat.com>
19515 PR tree-optimization/47355
19516 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
19517 NOP has non-debug uses beyond PHIs in new_bb.
19519 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
19522 * cfgexpand.c (account_used_vars_for_block): Only account vars
19523 that are annotated as used.
19524 (estimated_stack_frame_size): Don't set TREE_USED.
19525 * tree-dfa.c (create_var_ann): Mark variable as used.
19527 2011-01-21 Richard Guenther <rguenther@suse.de>
19529 PR middle-end/47395
19530 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
19532 2011-01-21 Richard Guenther <rguenther@suse.de>
19534 PR tree-optimization/47365
19535 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
19536 (vn_reference_lookup_pieces): Adjust.
19537 (vn_reference_lookup): Likewise.
19538 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
19539 (vn_reference_lookup_3): Only look through kills if in
19540 VN_WALKREWRITE mode.
19541 (vn_reference_lookup_pieces): Adjust.
19542 (vn_reference_lookup): Likewise.
19543 (visit_reference_op_load): Likewise.
19544 (visit_reference_op_store): Likewise.
19545 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
19546 (compute_avail): Likewise.
19547 (eliminate): Likewise.
19549 2011-01-21 Jakub Jelinek <jakub@redhat.com>
19551 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
19552 DECL_IGNORED_P non-reg vars if they are used.
19554 PR tree-optimization/47391
19555 * varpool.c (const_value_known_p): Return false if
19558 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
19561 * config/i386/i386.c (ix86_local_alignment): Handle
19562 case for va_list_type_node is nil.
19563 (ix86_canonical_va_list_type): Likewise.
19565 2011-01-21 Alan Modra <amodra@gmail.com>
19567 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
19568 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
19570 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19572 * config/arm/arm.md (define_attr type): Rename f_load
19573 and f_store to f_fpa_load and f_fpa_store. Update.
19574 (write_conflict): Deal with rename fallout.
19575 (*push_fp_multi): Likewise.
19576 * config/arm/fpa.md (f_load): Use f_fpa_load.
19577 (f_store): Use f_fpa_store.
19578 (*movsf_fpa): Likewise.
19579 (*movdf_fpa): Likewise.
19580 (*movxf_fpa): Likewise.
19581 (*thumb2_movsf_fpa): Likewise.
19582 (*thumb2_movdf_fpa): Likewise.
19583 (*thumb2_movxf_fpa): Likewise.
19584 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
19585 f_loadd and f_stored.
19586 (*thumb2_movdi_vfp): Likewise.
19587 (*thumb2_movsf_vfp): Fix attribute to f_loads.
19588 (*thumb2_movsi_vfp): Likewise.
19589 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
19590 Use f_loads instead of f_load.
19591 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
19593 2011-01-20 Anatoly Sokolov <aesok@post.ru>
19595 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
19596 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
19597 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
19598 (xtensa_mode_dependent_address_p): New function.
19599 (constantpool_address_p): Make static. Change return type to bool.
19600 Change argument type to const_rtx. Use CONST_INT_P predicate.
19602 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
19605 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
19607 2011-01-20 Jakub Jelinek <jakub@redhat.com>
19610 * cfgexpand.c (expand_debug_expr): Instead of generating
19611 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
19614 2011-01-20 Richard Guenther <rguenther@suse.de>
19616 PR middle-end/47370
19617 * tree-inline.c (remap_gimple_op_r): Recurse manually for
19618 the pointer operand of MEM_REFs.
19620 2011-01-20 Jakub Jelinek <jakub@redhat.com>
19622 PR tree-optimization/46130
19623 * ipa-split.c (consider_split): If return_bb contains non-virtual
19624 PHIs other than for retval or if split_function would not adjust it,
19627 2011-01-20 Richard Guenther <rguenther@suse.de>
19629 PR tree-optimization/47167
19630 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
19631 Revert previous change, only avoid enumeral type changes.
19633 2011-01-19 Mike Stump <mikestump@comcast.net>
19635 * doc/tm.texi.in (BRANCH_COST): Englishify.
19636 * doc/tm.texi (BRANCH_COST): Likewise.
19638 2011-01-19 Dodji Seketeli <dodji@redhat.com>
19641 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
19642 (gen_scheduled_generic_parms_dies): New functions.
19643 (gen_struct_or_union_type_die): Schedule template parameters DIEs
19644 generation for the end of CU compilation.
19645 (dwarf2out_finish): Generate template parameters DIEs here.
19647 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
19650 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
19651 debug bind stmt on merge edges.
19653 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
19657 * function.c (instantiate_expr): Instantiate incoming rtl of
19658 implicit arguments, and recurse on VALUE_EXPRs.
19659 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
19660 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
19662 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
19664 * c-parser.c (c_parser_for_statement): Initialize
19665 collection_expression.
19667 2011-01-19 Joseph Myers <joseph@codesourcery.com>
19669 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
19671 2011-01-19 Joseph Myers <joseph@codesourcery.com>
19673 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
19674 (LINK_SHLIB_SPEC): Don't use %(link_path).
19675 (SUBTARGET_EXTRA_SPECS): Remove link_path.
19677 2011-01-19 Joseph Myers <joseph@codesourcery.com>
19679 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
19680 (NO_SHARED_LIB_SUPPORT): Remove.
19681 (LINK_SHLIB_SPEC): Remove one conditional definition.
19683 2011-01-19 Joseph Myers <joseph@codesourcery.com>
19685 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
19687 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
19688 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
19689 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
19690 %{call_shared} and conditionals on these options not being passed.
19691 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
19694 2011-01-19 Jakub Jelinek <jakub@redhat.com>
19696 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
19699 * ipa-split.c: Spelling fixes.
19701 2011-01-19 Richard Henderson <rth@redhat.com>
19703 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
19704 (*mulsi3): Likewise.
19706 * longlong.h [__mn10300__] (count_leading_zeros): New.
19707 [__mn10300__] (umul_ppmm, smul_ppmm): New.
19708 [__mn10300__] (add_ssaaaa, subddmmss): New.
19709 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
19710 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
19712 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19714 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
19716 2011-01-19 Richard Henderson <rth@redhat.com>
19718 * config/mn10300/mn10300.md (addsi3_flags): New.
19719 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
19720 (subsi3_flags, subc_internal, subdi3): New.
19721 (subdi3_internal, *subdi3_degenerate): New.
19722 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
19724 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
19725 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
19726 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
19727 * config/mn10300/mn10300-protos.h: Update.
19728 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
19729 (return_ret): Likewise. Rename from return_internal_regs.
19730 (return_internal): Remove.
19732 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
19733 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
19734 (mn10300_legitimate_constant_p): Likewise.
19735 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
19736 (mn10300_frame_size): New.
19737 (mn10300_expand_prologue): Use it.
19738 (mn10300_expand_epilogue): Likewise.
19739 (mn10300_initial_offset): Likewise.
19740 * config/mn10300/mn10300-protos.h: Update.
19741 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
19742 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
19743 (prologue, epilogue, return_internal): Tidy output code.
19744 (mn10300_store_multiple_operation, return): Likewise.
19745 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
19746 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
19747 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
19748 (load_pic, am33_load_pic): New.
19749 (mn10300_load_pic0, mn10300_load_pic1): New.
19751 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
19752 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
19753 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
19754 (cc_flags_for_mode, cc_flags_for_code): New.
19755 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
19756 overflow flag is not valid. Validate that the flags we need
19757 for the comparison are valid.
19758 (mn10300_output_cmp): Remove.
19759 (mn10300_output_add): New.
19760 (mn10300_select_cc_mode): Use cc_flags_for_code.
19761 (mn10300_split_cbranch): New.
19762 (mn10300_match_ccmode): New.
19763 (mn10300_split_and_operand_count): New.
19764 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
19766 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
19767 (addsi3): ... here. Use mn10300_output_add.
19768 (*addsi3_flags): New.
19769 (*am33_subsi3, *mn10300_subsi3): Merge...
19770 (subsi3): ... here. Use attribute isa.
19771 (*subsi3_flags): New.
19772 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
19774 (*am33_andsi3, *mn10300_andsi3): Merge...
19775 (andsi3): ... here.
19776 (*andsi3_flags): New.
19777 (andsi3 splitters): New.
19778 (*am33_iorsi3, *mn10300_iorsi3): Merge...
19779 (iorsi3): ... here.
19780 (*iorsi3_flags): New.
19781 (*am33_xorsi3, *mn10300_xorsi3): Merge...
19782 (xorsi3): ... here.
19783 (*xorsi3_flags): New.
19784 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
19785 (one_cmplsi2): ... here.
19786 (*one_cmplsi2_flags): New.
19787 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
19788 instead of "dax" in constraints. Use mn10300_split_cbranch.
19789 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
19790 use matching constraints to eliminate a self-comparison.
19791 (*integer_conditional_branch): Rename from integer_conditional_branch.
19792 Use int_mode_flags to match CC_REG.
19793 (*cbranchsi4_btst, *btstsi): New.
19794 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
19795 mn10300_split_cbranch.
19796 (*am33_cmpsf): Rename from am33_cmpsf.
19797 (*float_conditional_branch): Rename from float_conditional_branch.
19798 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
19799 (zero_extendqisi2): ... here.
19800 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
19801 (zero_extendhisi2): ... here.
19802 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
19803 (extendqisi2): ... here.
19804 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
19805 (extendhisi2): ... here.
19806 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
19807 (ashlsi3): ... here.
19808 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
19809 (lshrsi3): ... here.
19810 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
19811 (ashrsi3): ... here.
19812 (consecutive add peephole): Remove.
19813 * config/mn10300/predicates.md (label_ref_operand): New.
19814 (int_mode_flags): New.
19815 (CCZN_comparison_operator): New.
19817 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
19818 (throughput_42_latency_43): New reservation.
19819 (mulsidi3, umulsidi3): New expanders.
19820 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
19821 the MDR register to allocation; separately allocate the low and
19822 high parts of the DImode result.
19823 (umulsidi3_internal): Similarly.
19824 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
19825 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
19826 (udivsi3, umodsi3): Remove.
19827 (udivmodsi4, divmodsi4): New expanders.
19828 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
19829 (*divmodsi4): Simiarly.
19830 (ext_internal): New.
19832 * config/mn10300/constraints.md ("z"): New constraint.
19833 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
19834 (FIXED_REGISTERS): Don't fix MDR.
19835 (CALL_USED_REGSITERS): Reformat nicely.
19836 (REG_ALLOC_ORDER): Add MDR.
19837 (enum regclass): Add MDR_REGS.
19838 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
19839 (IRA_COVER_CLASSES): Add MDR_REGS.
19840 (REGNO_REG_CLASS): Handle MDR_REG.
19841 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
19842 (mn10300_register_move_cost): Likewise.
19843 * config/mn10300/mn10300.md (MDR_REG): New.
19844 (*movsi_internal): Handle moves to/from MDR_REGS.
19846 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
19848 (mn10300_secondary_reload): Tidy combination reload classes.
19849 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
19850 addresses for AM33. Allow symbolic offsets for reg+imm.
19851 (mn10300_regno_in_class_p): New.
19852 (mn10300_legitimize_reload_address): New.
19853 * config/mn10300/mn10300.h (enum reg_class): Remove
19854 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
19855 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
19856 SP_OR_GENERAL_REGS.
19857 (REG_CLASS_NAMES): Update to match.
19858 (REG_CLASS_CONTENTS): Likewise.
19859 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
19860 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
19861 (REGNO_IN_RANGE_P): Remove.
19862 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
19863 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
19864 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
19865 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
19866 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
19867 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
19868 (REGNO_GENERAL_P): New.
19869 (HAVE_POST_MODIFY_DISP): New.
19870 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
19871 (LEGITIMIZE_RELOAD_ADDRESS): New.
19872 * config/mn10300/mn10300-protos.h: Update.
19874 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
19875 DATA_REGS for AM33 stack-pointer destination.
19876 (mn10300_preferred_output_reload_class): Likewise.
19877 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
19878 into a form appropriate for ...
19879 (TARGET_SECONDARY_RELOAD): New.
19880 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
19881 * config/mn10300/mn10300-protos.h: Update.
19882 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
19883 reload_insi; use the "A" constraint for the scratch; handle AM33
19884 moves of sp to non-address registers.
19886 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
19887 (*movqi_internal): ... here.
19888 (*am33_movhi, *mn10300_movhi): Merge into...
19889 (*movhi_internal): ... here.
19890 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
19891 as the source/destination of moves from/to SP.
19892 (movsf): Only allow for AM33-2.
19893 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
19894 any integer constant constraint. Only allow for AM33-2. Tidy
19895 all of the alternative outputs.
19896 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
19897 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
19899 (udivsi3, umodsi3): New patterns for MN103 only.
19901 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
19903 * doc/tm.texi.in: Spell out that a lack of register class unions
19905 * doc/tm.texi: Regenerate.
19907 2011-01-19 Jakub Jelinek <jakub@redhat.com>
19909 PR rtl-optimization/47337
19910 * dce.c (check_argument_store): New function.
19911 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
19913 PR tree-optimization/47290
19914 * tree-eh.c (infinite_empty_loop_p): New function.
19915 (cleanup_empty_eh): Use it.
19917 2011-01-18 Steve Ellcey <sje@cup.hp.com>
19920 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
19921 (a64_expand_widen_sum): Ditto.
19922 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
19923 (vec_extract_evenodd_help): Ditto.
19924 (vec_extract_evenv4hi): Ditto.
19925 (vec_extract_oddv4hi): Ditto.
19926 (vec_extract_evenv2si): Ditto.
19927 (vec_extract_oddv2si): Ditto.
19928 (vec_extract_evenv2sf): Ditto.
19929 (vec_extract_oddv2sf): Ditto.
19930 (vec_pack_trunc_v4hi: Ditto.
19931 (vec_pack_trunc_v2si): Ditto.
19932 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
19933 (vec_interleave_highv8qi): Ditto.
19935 (vec_extract_oddv8qi): Ditto.
19936 (vec_interleave_lowv4hi): Ditto.
19937 (vec_interleave_highv4hi): Ditto.
19938 (vec_interleave_lowv2si): Ditto.
19939 (vec_interleave_highv2si): Ditto.
19941 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19943 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
19944 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
19945 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
19946 (pa_c_mode_for_suffix): New.
19947 (TARGET_EXPAND_BUILTIN): Define.
19948 (TARGET_C_MODE_FOR_SUFFIX): Define.
19949 (pa_builtins): Define.
19950 (pa_init_builtins): Register __float128 type and init new support
19952 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
19953 * config/pa/quadlib.c (_U_Qfcopysign): New.
19955 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
19957 PR middle-end/46894
19958 * explow.c (allocate_dynamic_stack_space): Do not assume more than
19959 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
19962 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19964 PR tree-optimization/47179
19965 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
19966 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
19968 2011-01-18 Richard Guenther <rguenther@suse.de>
19970 PR rtl-optimization/47216
19971 * emit-rtl.c: Include tree-flow.h.
19972 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
19973 of replicating it with different semantics.
19974 * Makefile.in (emit-rtl.o): Adjust.
19976 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19978 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
19979 (cortex_a9_dp): Handle neon types correctly.
19981 2011-01-18 Jakub Jelinek <jakub@redhat.com>
19983 PR rtl-optimization/47299
19984 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
19985 subtarget. Use normal multiplication if both operands are constants.
19986 * expmed.c (expand_widening_mult): Don't try to optimize constant
19987 multiplication if op0 has VOIDmode. Convert op1 constant to mode
19990 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19992 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
19993 spacing after 'e.g.', typos, comma, hyphenation.
19995 2011-01-17 Richard Henderson <rth@redhat.com>
19997 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
19998 (rx_restricted_mem_operand): New.
19999 (rx_shift_operand): Use register_operand.
20000 (rx_source_operand, rx_compare_operand): Likewise.
20001 * config/rx/rx.md (addsi3_flags): New expander.
20002 (adddi3): Rewrite as expander.
20003 (adc_internal, *adc_flags, adddi3_internal): New patterns.
20004 (subsi3_flags): New expander.
20005 (subdi3): Rewrite as expander.
20006 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
20008 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
20009 (rx_init_builtins): Remove sat builtin.
20010 (rx_expand_builtin): Likewise.
20011 * config/rx/rx.md (ssaddsi3): New.
20012 (*sat): Rename from sat. Represent the CC_REG input.
20014 * config/rx/predicates.md (rshift_operator): New.
20015 * config/rx/rx.c (rx_expand_insv): Remove.
20016 * config/rx/rx-protos.h: Update.
20017 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
20018 operand to the canonical position.
20019 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
20020 (*bitclr, *bitclr_in_memory): Similarly.
20021 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
20022 (insv): Retain the zero_extract in the expansion.
20024 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
20025 (bswaphi2, bitinvert, revw): Likewise.
20027 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
20028 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
20029 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
20030 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
20031 (bitset, bitset_in_memory): Likewise.
20032 (bitinvert, bitinvert_in_memory): Likewise.
20033 (bitclr, bitclr_in_memory): Likewise.
20034 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
20035 (rx_strend, rx_cmpstrn): Likewise.
20036 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
20037 (bitop peep2 patterns): Remove.
20039 * config/rx/rx.c (rx_match_ccmode): New.
20040 * config/rx/rx-protos.h: Update.
20041 * config/rx/rx.md (abssi2): Clobber, don't set flags.
20042 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
20043 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
20044 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
20045 (fix_truncsfsi2, floatsisf2): Likewise.
20046 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
20047 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
20048 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
20049 (*subsi3_flags, *xorsi3_flags): New.
20051 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
20053 * config/rx/rx.c (rx_print_operand): Remove workaround for
20054 unsplit comparison operations.
20056 * config/rx/rx.md (movsicc): Split after reload.
20057 (*movsicc): Merge *movsieq and *movsine via match_operator.
20058 (*stcc): New pattern.
20060 * config/rx/rx.c (rx_float_compare_mode): Remove.
20061 * config/rx/rx.h (rx_float_compare_mode): Remove.
20062 * config/rx/rx.md (cstoresi4): Split after reload.
20063 (*sccc): New pattern.
20065 * config/rx/predicates.md (label_ref_operand): New.
20066 (rx_z_comparison_operator): New.
20067 (rx_zs_comparison_operator): New.
20068 (rx_fp_comparison_operator): New.
20069 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
20070 Validate that the flags are set properly for the comparison.
20071 (rx_gen_cond_branch_template): Remove.
20072 (rx_cc_modes_compatible): Remove.
20073 (mode_from_flags): New.
20074 (flags_from_code): Rename from flags_needed_for_conditional.
20075 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
20076 (rx_select_cc_mode): Likewise.
20077 (rx_split_fp_compare): New.
20078 (rx_split_cbranch): New.
20079 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
20080 (*cbranchsi4): Use match_operator and rx_split_cbranch.
20081 (*cbranchsf4): Similarly.
20082 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
20083 match_operator and rx_split_cbranch.
20084 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
20085 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
20086 (*cmpsi): Rename from cmpsi.
20087 (*tstsi): Rename from tstsi.
20088 (*cmpsf): Rename from cmpsf; use CC_Fmode.
20089 (*conditional_branch): Rename from conditional_branch.
20090 (*reveresed_conditional_branch): Remove.
20091 (b<code>): Remove expander.
20092 * config/rx/rx-protos.h: Update.
20094 * config/rx/rx.c (rx_compare_redundant): Remove.
20095 * config/rx/rx.md (cmpsi): Don't use it.
20096 * config/rx/rx-protos.h: Update.
20098 * config/rx/rx-modes.def (CC_F): New mode.
20099 * config/rx/rx.c (rx_select_cc_mode): New.
20100 * config/rx/rx.h (SELECT_CC_MODE): Use it.
20101 * config/rx/rx-protos.h: Update.
20103 2011-01-17 Richard Henderson <rth@redhat.com>
20105 * except.c (dump_eh_tree): Fix stray ; after for statement.
20107 2011-01-17 Richard Guenther <rguenther@suse.de>
20109 PR tree-optimization/47313
20110 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
20111 handling before copying the body. Properly deal with
20112 by-reference result in SSA form.
20114 2011-01-17 Ian Lance Taylor <iant@google.com>
20117 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
20118 (struct_value_alias_set): Don't define.
20119 (sparc_option_override): Don't set sparc_sr_alias_set and
20120 struct_value_alias_set.
20121 (save_or_restore_regs): Use gen_frame_mem rather than calling
20123 (sparc_struct_value_rtx): Likewise.
20125 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
20128 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
20129 (_mm_maskstore_pd): Likewise.
20130 (_mm_maskload_ps): Likewise.
20131 (_mm_maskstore_ps): Likewise.
20132 (_mm256_maskload_pd): Change mask to __m256i.
20133 (_mm256_maskstore_pd): Likewise.
20134 (_mm256_maskload_ps): Likewise.
20135 (_mm256_maskstore_ps): Likewise.
20137 * config/i386/i386-builtin-types.def: Updated.
20138 (ix86_expand_special_args_builtin): Likewise.
20140 * config/i386/i386.c (bdesc_special_args): Update
20141 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
20142 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
20143 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
20144 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
20146 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
20147 Use <avxpermvecmode> on mask register.
20148 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
20150 2011-01-17 Olivier Hainque <hainque@adacore.com>
20151 Michael Haubenwallner <michael.haubenwallner@salomon.at>
20152 Eric Botcazou <ebotcazou@adacore.com>
20155 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
20156 if <= USHRT_MAX in 32-bit mode.
20158 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20160 * doc/install.texi (Configuration, Specific): Wrap long
20161 lines in examples. Allow line wrapping in long options
20162 and URLs where beneficial for PDF output.
20164 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
20166 * config/mips/mips.c (mips_classify_symbol): Don't return
20167 SYMBOL_PC_RELATIVE for nonlocal labels.
20169 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
20171 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
20173 2011-01-15 Jan Hubicka <jh@suse.cz>
20175 PR tree-optimization/47276
20176 * ipa.c (function_and_variable_visibility): Do not try to mark alias
20177 declarations as needed.
20179 2011-01-15 Martin Jambor <mjambor@suse.cz>
20181 * common.opt (fdevirtualize): New flag.
20182 * doc/invoke.texi (Option Summary): Document it.
20183 * opts.c (default_options_table): Add devirtualize flag.
20184 * ipa-prop.c (detect_type_change): Return immediately if
20185 devirtualize flag is not set.
20186 (detect_type_change_ssa): Likewise.
20187 (compute_known_type_jump_func): Likewise.
20188 (ipa_analyze_virtual_call_uses): Likewise.
20190 2011-01-14 Martin Jambor <mjambor@suse.cz>
20192 PR tree-optimization/45934
20193 PR tree-optimization/46302
20194 * ipa-prop.c (type_change_info): New type.
20195 (stmt_may_be_vtbl_ptr_store): New function.
20196 (check_stmt_for_type_change): Likewise.
20197 (detect_type_change): Likewise.
20198 (detect_type_change_ssa): Likewise.
20199 (compute_complex_assign_jump_func): Check for dynamic type change.
20200 (compute_complex_ancestor_jump_func): Likewise.
20201 (compute_known_type_jump_func): Likewise.
20202 (compute_scalar_jump_functions): Likewise.
20203 (ipa_analyze_virtual_call_uses): Likewise.
20204 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
20206 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20208 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
20209 * config/i386/i386.opt (msse5): New Alias.
20211 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20213 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
20214 * config/sparc/linux64.h (CC1_SPEC): Likewise.
20215 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
20216 * config/sparc/sparc.h (CC1_SPEC): Likewise.
20218 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20220 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
20222 * config/sparc/linux64.h (CC1_SPEC): Likewise.
20223 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
20224 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
20225 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
20227 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
20229 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20231 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
20233 2011-01-14 Mike Stump <mikestump@comcast.net>
20235 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
20236 * config/fr30/fr30.md: Likweise
20237 (movsi_push): Likewise.
20238 (movsi_pop): Likewise.
20239 (enter_func): Likewise.
20240 * config/moxie/moxie.md (movsi_push): Likewise.
20241 (movsi_pop): Likewise.
20243 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20245 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
20246 %{no_archive} %{exact_version}.
20247 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
20248 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
20249 %{no_archive} %{exact_version}.
20250 * config/mips/openbsd.h (LINK_SPEC): Likewise.
20251 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
20252 * config/mips/vxworks.h: Likewise.
20254 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20256 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
20258 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20260 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
20261 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
20263 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20265 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
20268 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20270 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
20272 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
20273 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
20275 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
20276 Don't handle -shlib.
20278 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20280 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
20281 (CC1_SPEC): Don't handle -profile.
20283 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20285 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
20286 * config/mips/mips.h (CC1_SPEC): Likewise.
20288 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20290 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
20291 * config/mips/mips.h (CC1_SPEC): Likewise.
20293 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20295 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
20296 * config/m32r/linux.h (LINK_SPEC): Likewise.
20297 * config/mips/linux.h (LINK_SPEC): Likewise.
20298 * config/mips/linux64.h (LINK_SPEC): Likewise.
20299 * config/sparc/linux.h (LINK_SPEC): Likewise.
20300 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
20301 LINK_SPEC): Likewise.
20302 * config/xtensa/linux.h (LINK_SPEC): Likewise.
20304 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20306 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
20308 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
20310 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20312 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
20313 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
20315 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20317 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
20319 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20321 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
20322 supports -Bstatic/-Bdynamic.
20323 * configure: Regenerate.
20325 2011-01-14 Jan Hubicka <jh@suse.cz>
20326 Jack Howarth <howarth@bromo.med.uc.edu>
20329 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
20330 when checking debug_info_level. Test write_symbols instead of
20331 debug_hooks->var_location when setting flag_var_tracking_uninit.
20333 2011-01-14 Richard Guenther <rguenther@suse.de>
20335 PR tree-optimization/47179
20336 * target.def (ref_may_alias_errno): New target hook.
20337 * targhooks.h (default_ref_may_alias_errno): Declare.
20338 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
20339 (default_ref_may_alias_errno): New function.
20340 * target.h (struct ao_ref_s): Declare.
20341 * tree-ssa-alias.c: Include target.h.
20342 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
20343 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
20344 (targhooks.o): Likewise.
20345 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
20346 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
20348 2011-01-14 Richard Guenther <rguenther@suse.de>
20350 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
20352 2011-01-14 Richard Guenther <rguenther@suse.de>
20354 PR tree-optimization/47280
20355 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
20356 return CFG changes.
20357 (tree_ssa_forward_propagate_single_use_vars): Deal with
20358 CFG changes from associate_plusminus.
20360 2011-01-14 Richard Guenther <rguenther@suse.de>
20362 PR middle-end/47281
20364 2011-01-11 Richard Guenther <rguenther@suse.de>
20366 PR tree-optimization/46076
20367 * tree-ssa.c (useless_type_conversion_p): Conversions from
20368 unprototyped to empty argument list function types are useless.
20370 2011-01-14 Richard Guenther <rguenther@suse.de>
20372 PR tree-optimization/47286
20373 * tree-ssa-structalias.c (new_var_info): Register variables are global.
20375 2011-01-14 Martin Jambor <mjambor@suse.cz>
20377 PR middle-end/46823
20378 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
20380 2011-01-13 Anatoly Sokolov <aesok@post.ru>
20382 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
20383 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
20384 * config/xtensa/xtensa.c (xtensa_libcall_value,
20385 xtensa_function_value_regno_p): New functions.
20386 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
20388 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
20391 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
20393 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
20394 New function prototype.
20395 * config/i386/winnt.c (i386_pe_assemble_visibility):
20396 Warn only if attribute was specified by user.
20398 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
20401 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
20403 (floatunsdidf2_fcfidu): Ditto.
20405 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20407 * config/s390/s390.c (print_operand_address): Replace 'error' with
20408 'output_operand_lossage'.
20409 (print_operand): Likewise.
20411 2011-01-13 Jeff Law <law@redhat.com>
20413 PR rtl-optimization/39077
20414 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
20415 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
20416 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
20417 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
20418 * gcse.c (prune_insertions_deletions): New function.
20419 (compute_pre_data): Use it.
20421 2011-01-13 Dodji Seketeli <dodji@redhat.com>
20424 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
20426 (prune_unused_types_mark): Use it.
20428 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
20430 PR rtl-optimization/45352
20431 * sel-sched.c: Update copyright years.
20432 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
20433 in the advancing loop when we have issued issue_rate insns.
20435 2011-01-12 Richard Henderson <rth@redhat.com>
20437 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
20438 (TARGET_MD_ASM_CLOBBERS): New.
20440 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
20441 (TARGET_DELEGITIMIZE_ADDRESS): New.
20443 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
20444 (clzsi2, *bsch): New patterns.
20446 * config/mn10300/mn10300.md (INT): New mode iterator.
20447 (*mov<INT>_clr): New pattern, and peep2 to generate it.
20449 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
20450 flag_split_wide_types.
20452 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
20453 (mn10300_trampoline_init): Rewrite without a template, an immediate
20454 load and a direct branch.
20455 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
20457 2011-01-12 Anatoly Sokolov <aesok@post.ru>
20459 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
20460 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
20461 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
20462 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
20464 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
20467 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
20470 2011-01-12 Jan Hubicka <jh@suse.cz>
20473 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
20474 (PLUGIN_COND_CLOSE): New macro.
20475 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
20477 2011-01-12 Richard Guenther <rguenther@suse.de>
20480 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
20481 register variables in a MEM_REF.
20483 2011-01-12 Joseph Myers <joseph@codesourcery.com>
20485 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
20486 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
20487 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
20488 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
20489 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
20490 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
20491 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
20492 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
20493 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
20494 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
20495 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
20496 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
20497 * config/gnu-user.h: New. Copied from linux.h.
20498 (LINUX_TARGET_STARTFILE_SPEC): Rename to
20499 GNU_USER_TARGET_STARTFILE_SPEC.
20500 (LINUX_TARGET_ENDFILE_SPEC): Rename to
20501 GNU_USER_TARGET_ENDFILE_SPEC.
20502 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
20503 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
20504 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
20505 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
20506 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
20507 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
20508 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
20509 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
20510 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
20511 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
20512 * config/arm/linux-eabi.h (CC1_SPEC): Use
20513 GNU_USER_TARGET_CC1_SPEC.
20514 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
20515 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
20516 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
20517 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
20518 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
20519 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
20520 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
20521 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
20523 2011-01-12 Richard Guenther <rguenther@suse.de>
20526 * doc/invoke.texi (ffast-math): Document it is turned on
20529 2011-01-12 Jan Hubicka <jh@suse.cz>
20531 PR tree-optimization/47233
20532 * opts.c (common_handle_option): Disable ipa-reference with profile
20535 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
20537 * c-parser.c (c_parser_objc_at_property_declaration): Improved
20540 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
20542 * c-parser.c (c_lex_one_token): Updated and reindented some
20543 comments. No changes in code.
20545 2011-01-11 Ian Lance Taylor <iant@google.com>
20547 * godump.c (go_output_var): Don't output the variable if there is
20548 already a type with the same name.
20550 2011-01-11 Ian Lance Taylor <iant@google.com>
20552 * godump.c (go_format_type): Don't generate float80.
20554 2011-01-11 Richard Henderson <rth@redhat.com>
20556 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
20557 declaration. Rewrite for both speed and size.
20558 (mn10300_address_cost_1): Remove.
20559 (mn10300_register_move_cost): New.
20560 (mn10300_memory_move_cost): New.
20561 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
20562 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
20563 extensions, shifts, BSWAP, CLZ.
20564 (mn10300_wide_const_load_uses_clr): Remove.
20565 (TARGET_REGISTER_MOVE_COST): New.
20566 (TARGET_MEMORY_MOVE_COST): New.
20567 * config/mn10300/mn10300-protos.h: Update.
20568 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
20570 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
20571 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
20572 * config/mn10300/mn10300-protos.h: Update.
20573 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
20574 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
20575 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
20576 (*test_int_bitfield, *test_byte_bitfield): Remove.
20577 (*bit_test, *subreg_bit_test): Remove.
20578 * config/mn10300/predicates.md (const_8bit_operand): Remove.
20580 * config/mn10300/constraints.md ("c"): Rename from "A".
20581 ("A", "D"): New constraint letters.
20582 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
20583 (fmssf4, fnmasf4, fnmssf4): Likewise.
20585 * config/mn10300/mn10300.md (isa): New attribute.
20586 (enabled): New attribute.
20588 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
20589 (abssf2, negsf2): Define only for hardware fp.
20590 (sqrtsf2): Reformat.
20591 (addsf3, subsf3, mulsf3): Merge expander and insn.
20593 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
20594 (DEBUGGER_AUTO_OFFSET): Remove.
20595 (DEBUGGER_ARG_OFFSET): Remove.
20597 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
20598 Emit register stores with the same offsets as the hardware.
20599 (mn10300_store_multiple_operation): Don't check that the register
20600 save offsets are monotonic.
20601 * config/mn10300/mn10300-protos.h: Update.
20603 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
20605 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
20606 in terms of the value on the stack, not the MDR register.
20608 2011-01-11 Jan Hubicka <jh@suse.cz>
20612 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
20613 (symbol_alias_set_destroy, symbol_alias_set_contains,
20614 propagate_aliases_backward): Declare.
20615 * lto-streamer-out.c (struct sets): New sturcture.
20616 (trivally_defined_alias): New function.
20617 (output_alias_pair_p): Rewrite.
20618 (output_unreferenced_globals): Fix output of alias pairs.
20619 (produce_symtab): Likewise.
20620 * ipa.c (function_and_variable_visibility): Set weak alias destination
20622 * varasm.c (symbol_alias_set_t): Remove.
20623 (symbol_alias_set_destroy): Export.
20624 (propagate_aliases_forward, propagate_aliases_backward): New functions
20626 (compute_visible_aliases): ... this one; remove.
20627 (trivially_visible_alias): New
20628 (trivially_defined_alias): New.
20629 (remove_unreachable_alias_pairs): Rewrite.
20630 (finish_aliases_1): Reorganize code checking if alias is defined.
20631 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
20634 2011-01-11 Richard Guenther <rguenther@suse.de>
20636 PR tree-optimization/46076
20637 * tree-ssa.c (useless_type_conversion_p): Conversions from
20638 unprototyped to empty argument list function types are useless.
20640 2011-01-11 Richard Guenther <rguenther@suse.de>
20642 PR middle-end/45235
20643 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
20644 volatile MEMs as MEM_READONLY_P.
20646 2011-01-11 Richard Guenther <rguenther@suse.de>
20648 PR tree-optimization/47239
20649 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
20651 2011-01-11 Jeff Law <law@redhat.com>
20653 PR tree-optimization/47086
20654 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
20655 IVs from statements that might throw.
20657 2011-01-10 Jan Hubicka <jh@suse.cz>
20660 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
20662 2011-01-10 Jan Hubicka <jh@suse.cz>
20665 * profile.c (read_profile_edge_counts): Ignore profile inconistency
20666 when correcting profile.
20668 2011-01-10 Jan Hubicka <jh@suse.cz>
20671 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
20672 DECL_FINI_PRIORITY.
20673 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
20674 Restore DECL_FINI_PRIORITY.
20676 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20678 * doc/gimple.texi: Fix quoting of multi-word return values in
20679 @deftypefn statements. Ensure presence of return value. Wrap
20680 overlong @deftypefn lines.
20681 (is_gimple_operand, is_gimple_min_invariant_address): Remove
20682 descriptions of removed functions.
20683 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
20684 of multi-word return value in @deftypefn statement.
20686 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20688 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
20689 (Conditional Expressions, Logical Operators)
20690 (Statement and operand traversals): Do not indent smallexample
20691 code. Fix duplicate function argument in example.
20693 2011-01-10 Jeff Law <law@redhat.com>
20695 PR tree-optimization/47141
20696 * ipa-split.c (split_function): Handle case where we are
20697 returning a value and the return block has a virtual operand phi.
20699 2011-01-10 Jan Hubicka <jh@suse.cz>
20701 PR tree-optimization/47234
20702 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
20703 (pass_feedback_split_functions): Declare.
20704 * passes.c (init_optimization_passes): Add ipa-split as subpass of
20706 * ipa-split.c (gate_split_functions): Update comments; disable
20707 split-functions for profile_arc_flag and branch_probabilities.
20708 (gate_feedback_split_functions): New function.
20709 (execute_feedback_split_functions): New function.
20710 (pass_feedback_split_functions): New global var.
20712 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
20715 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
20716 calling gimple_call_set_cannot_inline.
20718 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
20720 * config/darwin-sections.def: Remove unused section.
20722 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
20725 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
20727 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
20730 * c-parser.c (c_parser_declaration_or_fndef): Improved
20733 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
20735 * config/i386/winnt.c (i386_pe_start_function): Make sure
20736 to switch back to function's section.
20738 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
20742 * plugin.c: Move include of dlfcn.h from here...
20743 * system.h: ... to here.
20745 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20747 * doc/cpp.texi (C++ Named Operators): Fix markup for header
20749 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
20750 two extra empty pages in PDF output.
20752 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
20755 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
20756 for error recovery purposes behave as if it was not specified so
20757 that the default type is usd.
20759 2011-01-07 Jan Hubicka <jh@suse.cz>
20761 PR tree-optmization/46469
20762 * ipa.c (function_and_variable_visibility): Clear needed flags on
20763 nodes with external decls; handle weakrefs merging correctly.
20765 2011-01-07 Joseph Myers <joseph@codesourcery.com>
20767 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
20770 2011-01-07 Jan Hubicka <jh@suse.cz>
20772 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
20773 and no longer claim that gold is required for linker plugin.
20774 * configure: Regenerate.
20775 * gcc.c (PLUGIN_COND): New macro.
20776 (LINK_COMMAND_SPEC): Use it.
20777 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
20778 * config.in (HAVE_LTO_PLUGIN): New.
20779 * configure.ac (--with-lto-plugin): New parameter; autodetect
20782 2011-01-07 Jan Hubicka <jh@suse.cz>
20784 PR tree-optimization/46367
20785 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
20786 when we can update original.
20787 (cgraph_mark_inline_edge): Sanity check.
20788 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
20790 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20792 * config/spu/spu.h (ASM_COMMENT_START): Define.
20794 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
20797 * gcc.c (%>S): New.
20798 (SWITCH_KEEP_FOR_GCC): Likewise.
20799 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
20800 (do_spec_1): Handle "%>".
20802 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
20804 2011-01-07 Jakub Jelinek <jakub@redhat.com>
20807 * config/i386/i386.c (ix86_delegitimize_address): If
20808 simplify_gen_subreg fails, return orig_x.
20811 * value-prof.c (gimple_stringop_fixed_value): Handle
20812 lhs of the call properly.
20814 2011-01-07 Jan Hubicka <jh@suse.cz>
20817 * lto-opt.c (lto_reissue_options): Set flag_shlib.
20819 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
20821 * target.def (function_switched_text_sections): New hook.
20822 * doc/tm.texi: Regenerated.
20823 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
20824 * final.c (default_function_switched_text_sections): New.
20825 (final_scan_insn): Call function_switched_text_sections when a
20826 mid-function section change occurs.
20827 * output.h (default_function_switched_text_sections): Declare.
20828 * config/darwin-protos.h (darwin_function_switched_text_sections):
20830 * config/darwin.c (darwin_function_switched_text_sections): New.
20831 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
20833 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
20835 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
20836 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
20837 the secondary code fragment when outputting for DWARF == 2.
20839 2011-01-07 Anatoly Sokolov <aesok@post.ru>
20841 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
20842 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
20844 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
20845 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
20847 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
20850 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
20851 when it is not empty.
20853 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
20856 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
20857 (case ${target}): Add btver1.
20858 * config/i386/driver-i386.c (host_detect_local_cpu): Let
20859 -march=native recognize btver1 processors.
20860 * config/i386/i386-c.c (ix86_target_macros_internal): Add
20861 btver1 def_and_undef
20862 * config/i386/i386.c (struct processor_costs btver1_cost): New
20864 (m_BTVER1): New definition.
20865 (m_AMD_MULTIPLE): Includes m_BTVER1.
20866 (initial_ix86_tune_features): Add btver1 tune.
20867 (processor_target_table): Add btver1 entry.
20868 (static const char *const cpu_names): Add btver1 entry.
20869 (software_prefetching_beneficial_p): Add btver1.
20870 (ix86_option_override_internal): Add btver1 instruction sets.
20871 (ix86_issue_rate): Add btver1.
20872 (ix86_adjust_cost): Add btver1.
20873 * config/i386/i386.h (TARGET_BTVER1): New definition.
20874 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
20875 (enum processor_type): Add PROCESSOR_BTVER1.
20876 * config/i386/i386.md (define_attr "cpu"): Add btver1.
20878 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20881 * config/i386/i386.c (legitimize_tls_address)
20882 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
20883 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
20884 (tls_initial_exec_64_sun): New pattern.
20886 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
20888 * doc/invoke.texi (Overall Options): Improve wording and markup
20889 of the description of -wrapper.
20891 2011-01-06 Joseph Myers <joseph@codesourcery.com>
20893 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
20894 rdynamic, threads): New Driver options.
20896 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20899 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
20900 if coming from .tdata.
20901 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
20903 2011-01-06 Jan Hubicka <jh@suse.cz>
20906 * collect2.c (main): Do not enable LTOmode when plugin is active.
20908 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20911 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
20912 --version output if supported.
20913 * configure: Regenerate.
20915 2011-01-06 Joseph Myers <joseph@codesourcery.com>
20917 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
20920 2011-01-06 Jakub Jelinek <jakub@redhat.com>
20923 * c-convert.c (convert): When converting a complex expression
20924 other than COMPLEX_EXPR to a different complex type, ensure
20925 c_save_expr is called instead of save_expr, unless in_late_binary_op.
20926 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
20927 when converting COMPLEX_TYPE.
20929 2011-01-06 Ira Rosen <irar@il.ibm.com>
20931 PR tree-optimization/47139
20932 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
20933 only the last reduction value is used outside the loop. Update
20936 2011-01-05 Joseph Myers <joseph@codesourcery.com>
20938 * config/rtems.opt: New.
20939 * config.gcc (*-*-rtems*): Use rtems.opt.
20941 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
20943 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
20944 processors do not support 3DNow instructions.
20946 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20948 * config/spu/spu.c (spu_option_override): Set parameter
20949 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
20951 2011-01-05 Jan Hubicka <jh@suse.cz>
20953 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
20954 at the command line.
20956 2011-01-05 Martin Jambor <mjambor@suse.cz>
20959 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
20960 deltas on streamed outgoing edges.
20961 (output_node_opt_summary): Output info for outgoing edges only when
20962 the node is in new parameter set.
20963 (output_cgraph_opt_summary): New parameter set, passed to the two
20964 aforementioned functions. Update its forward declaration and its
20967 2011-01-05 Tom Tromey <tromey@redhat.com>
20969 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
20970 operator to c_finish_omp_atomic.
20971 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
20972 (build_unary_op): Update.
20973 (build_modify_expr): Update.
20974 (build_asm_expr): Update.
20976 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20978 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
20979 newly inserted insns.
20980 (pad_bb): Likewise.
20981 (spu_emit_branch_hint): Likewise.
20982 (insert_hbrp_for_ilb_runout): Likewise.
20983 (spu_machine_dependent_reorg): Call df_finish_pass after
20984 schedule_insns returns.
20986 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20988 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
20990 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
20992 PR tree-optimization/47005
20993 * tree-sra.c (struct access): Add 'non_addressable' bit.
20994 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
20995 (decide_one_param_reduction): Return 0 if the parameter is passed by
20996 reference and one of the accesses in the group is non_addressable.
20998 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
21000 PR tree-optimization/47056
21001 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
21002 (mark_load): Likewise. Handle FUNCTION_DECL specially.
21003 (mark_store): Likewise. Pass STMT to ipa_record_reference.
21005 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
21007 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
21008 initializer. Skip view conversions from aggregate types.
21010 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
21013 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
21015 2011-01-04 Philipp Thomas <pth@suse.de>
21017 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
21020 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21022 * function.c (thread_prologue_and_epilogue_insns): Do not crash
21023 on empty epilogue sequences.
21025 2011-01-04 Joseph Myers <joseph@codesourcery.com>
21027 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
21028 non-static): New Driver options.
21030 2011-01-04 Jie Zhang <jie@codesourcery.com>
21033 * gcc.c (default_compilers[]): Set combinable field to 0
21034 for all assembly languages.
21036 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
21038 * config/mips/loongson3a.md: New file.
21039 * config/mips/mips.md: Include loongson3a.md.
21040 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
21043 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
21045 PR middle-end/47017
21046 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
21047 instead of convert_memory_address_addr_space on the base expression.
21049 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21051 * config/spu/spu.c (spu_option_override): Update error text
21052 for bad -march= / -mtune= values.
21054 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21056 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
21057 if branch-hint optimization will be performed.
21059 2011-01-03 Jakub Jelinek <jakub@redhat.com>
21061 PR tree-optimization/47148
21062 * ipa-split.c (split_function): Convert arguments to
21063 DECL_ARG_TYPE if possible.
21065 PR tree-optimization/47155
21066 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
21067 when computing uns.
21069 PR rtl-optimization/47157
21070 * combine.c (try_combine): If undobuf.other_insn becomes
21071 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
21072 and set *new_direct_jump_p too.
21074 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
21076 PR tree-optimization/47021
21077 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
21079 2011-01-03 Jakub Jelinek <jakub@redhat.com>
21081 * gcc.c (process_command): Update copyright notice dates.
21082 * gcov.c (print_version): Likewise.
21083 * gcov-dump.c (print_version): Likewise.
21084 * mips-tfile.c (main): Likewise.
21085 * mips-tdump.c (main): Likewise.
21087 2011-01-03 Martin Jambor <mjambor@suse.cz>
21089 PR tree-optimization/46801
21090 * tree-sra.c (type_internals_preclude_sra_p): Check whether
21091 aggregate fields start at byte boundary instead of the bit-field flag.
21093 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
21096 * gcc.c (main): Revert revision 168407.
21098 2011-01-03 Martin Jambor <mjambor@suse.cz>
21100 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
21102 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21104 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
21105 vector optab to expand vector/scalar shift, update gimple to vector.
21107 2011-01-03 Martin Jambor <mjambor@suse.cz>
21109 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
21112 2011-01-03 Martin Jambor <mjambor@suse.cz>
21114 PR tree-optimization/46984
21115 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
21117 (cgraph_create_indirect_edge): Fixed line length.
21118 (cgraph_indirect_call_info): Declare.
21119 (cgraph_make_edge_direct) Update declaration.
21120 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
21121 (cgraph_create_indirect_edge): Use it.
21122 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
21124 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
21125 the new thunk_delta representation.
21126 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
21128 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
21129 (ipa_read_indirect_edge_info): Likewise.
21130 * lto-cgraph.c (output_edge_opt_summary): New function.
21131 (output_node_opt_summary): Call it on all outgoing edges.
21132 (input_edge_opt_summary): New function.
21133 (input_node_opt_summary): Call it on all outgoing edges.
21135 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
21138 * gcc.c (main): Don't check have_o when settting combine_inputs.
21140 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
21142 * regrename.c: Add general comment describing the pass.
21143 (struct du_head): Remove 'length' field.
21144 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
21145 (regrename_optimize): Do not sort chains. Rework comments, add others.
21146 Force renaming to the preferred class (if any) in the first pass and do
21147 not consider registers that belong to it in the second pass.
21148 (create_new_chain): Do not set 'length' field.
21149 (scan_rtx_reg): Likewise.
21151 2011-01-02 Jakub Jelinek <jakub@redhat.com>
21153 PR tree-optimization/47140
21154 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
21155 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
21156 to bit_value_binop.
21158 PR rtl-optimization/47028
21159 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
21160 parm_birth_insn instead of at the beginning of first bb.
21162 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
21164 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
21165 Remove the word "see" before "@pxref".
21166 * doc/rtl.texi: Remove the word "see" before "@pxref".
21168 2011-01-01 Jan Hubicka <jh@suse.cz>
21170 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
21173 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
21176 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
21179 Copyright (C) 2011 Free Software Foundation, Inc.
21181 Copying and distribution of this file, with or without modification,
21182 are permitted in any medium without royalty provided the copyright
21183 notice and this notice are preserved.